@dxtmisha/functional-basic 1.10.1 → 1.11.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/library.js CHANGED
@@ -1,70 +1,69 @@
1
- import e from "@oxc-project/runtime/helpers/defineProperty";
2
- import { geo as t } from "@dxtmisha/media";
1
+ import { geo as e } from "@dxtmisha/media";
3
2
  //#region src/functions/isObject.ts
4
- function n(e) {
3
+ function t(e) {
5
4
  return !!(e && typeof e == "object");
6
5
  }
7
6
  //#endregion
8
7
  //#region src/functions/isObjectNotArray.ts
9
- function r(e) {
10
- return n(e) && !Array.isArray(e);
8
+ function n(e) {
9
+ return t(e) && !Array.isArray(e);
11
10
  }
12
11
  //#endregion
13
12
  //#region src/functions/forEach.ts
14
- function i(e, t, r) {
15
- if (n(e)) {
16
- let n = [], i = (e, i, a) => {
17
- let o = t(e, i, a);
18
- (r || o !== void 0) && n.push(o);
13
+ function r(e, n, r) {
14
+ if (t(e)) {
15
+ let t = [], i = (e, i, a) => {
16
+ let o = n(e, i, a);
17
+ (r || o !== void 0) && t.push(o);
19
18
  };
20
19
  if (Array.isArray(e)) e.forEach((t, n) => i(t, n, e));
21
20
  else if (e instanceof Map) e.forEach((t, n) => i(t, n, e));
22
21
  else if (e instanceof Set) e.forEach((t) => i(t, t, e));
23
22
  else for (let t in e) Object.prototype.hasOwnProperty.call(e, t) && i(e[t], t, e);
24
- return n;
23
+ return t;
25
24
  }
26
25
  return [];
27
26
  }
28
27
  //#endregion
29
28
  //#region src/functions/isArray.ts
30
- function a(e) {
29
+ function i(e) {
31
30
  return Array.isArray(e);
32
31
  }
33
32
  //#endregion
34
33
  //#region src/functions/toString.ts
35
- function o(e) {
34
+ function a(e) {
36
35
  return String(e == null ? "" : e);
37
36
  }
38
37
  //#endregion
39
38
  //#region src/functions/getRequestString.ts
40
- function s(e, t = "=", r = "&", c) {
41
- return i(e, (i, l) => {
42
- let u = encodeURIComponent(o(l).trim());
39
+ function o(e, n = "=", s = "&", c) {
40
+ return r(e, (r, l) => {
41
+ let u = encodeURIComponent(a(l).trim());
43
42
  if (u !== "") {
44
- let l = c ? `${c}[${a(e) ? "" : u}]` : u;
45
- return n(i) ? s(i, t, r, l) : `${l}${t}${encodeURIComponent(o(i))}`;
43
+ let l = c ? `${c}[${i(e) ? "" : u}]` : u;
44
+ return t(r) ? o(r, n, s, l) : `${l}${n}${encodeURIComponent(a(r))}`;
46
45
  }
47
- }).sort().join(r);
46
+ }).sort().join(s);
48
47
  }
49
48
  //#endregion
50
49
  //#region src/functions/isDomRuntime.ts
51
- function c() {
50
+ function s() {
52
51
  return typeof window < "u" && !!window.document;
53
52
  }
54
53
  //#endregion
55
54
  //#region src/functions/isNull.ts
56
- function l(e) {
55
+ function c(e) {
57
56
  return e == null;
58
57
  }
59
58
  //#endregion
60
59
  //#region src/functions/isFilled.ts
61
- function u(e, t) {
60
+ function l(e, t) {
62
61
  if (e) {
63
62
  if (t && e === "0") return !0;
64
63
  switch (typeof e) {
65
64
  case "function":
66
65
  case "symbol": return !0;
67
- case "object": return Array.isArray(e) ? e.length > 0 : e instanceof RegExp ? !0 : e instanceof Map || e instanceof Set ? e.size > 0 : Object.values(e).some((e) => !l(e));
66
+ case "object": return Array.isArray(e) ? e.length > 0 : e instanceof RegExp ? !0 : e instanceof Map || e instanceof Set ? e.size > 0 : Object.values(e).some((e) => !c(e));
68
67
  case "string": return ![
69
68
  "",
70
69
  "undefined",
@@ -80,17 +79,17 @@ function u(e, t) {
80
79
  }
81
80
  //#endregion
82
81
  //#region src/functions/isOnLine.ts
83
- function d() {
84
- return !c() || typeof navigator > "u" || navigator.onLine;
82
+ function u() {
83
+ return !s() || typeof navigator > "u" || navigator.onLine;
85
84
  }
86
85
  //#endregion
87
86
  //#region src/functions/isString.ts
88
- function f(e) {
87
+ function d(e) {
89
88
  return typeof e == "string";
90
89
  }
91
90
  //#endregion
92
91
  //#region src/functions/random.ts
93
- function p(e, t) {
92
+ function f(e, t) {
94
93
  return Math.floor(Math.random() * (t - e + 1) + e);
95
94
  }
96
95
  //#endregion
@@ -100,73 +99,111 @@ function ee(e) {
100
99
  }
101
100
  //#endregion
102
101
  //#region src/functions/isFunction.ts
103
- function m(e) {
102
+ function p(e) {
104
103
  return e instanceof Function || typeof e == "function";
105
104
  }
106
105
  //#endregion
107
106
  //#region src/functions/executeFunction.ts
108
- function h(e, ...t) {
109
- return m(e) ? e(...t) : e;
107
+ function m(e, ...t) {
108
+ return p(e) ? e(...t) : e;
110
109
  }
111
110
  //#endregion
112
111
  //#region src/functions/isNumber.ts
113
- var g = /^-?[0-9]+(\.[0-9]+)?$/;
114
- function _(e) {
112
+ var h = /^-?[0-9]+(\.[0-9]+)?$/;
113
+ function g(e) {
115
114
  switch (typeof e) {
116
115
  case "number": return Number.isFinite(e);
117
116
  case "bigint": return !0;
118
- case "string": return g.test(e.trim());
117
+ case "string": return h.test(e.trim());
119
118
  default: return !1;
120
119
  }
121
120
  }
122
121
  //#endregion
123
122
  //#region src/functions/toNumber.ts
124
- var v = /[^-+\d., ]+/g, te = /( [0-9]{3}[ ,.]|[0-9] [0-9])/, y = / /g, b = /,/g, ne = /,[0-9]{3}[,.]/, re = /[.][0-9]{3}[,.]/, ie = /[.]/g;
125
- function x(e) {
123
+ var _ = /[^-+\d., ]+/g, v = /( [0-9]{3}[ ,.]|[0-9] [0-9])/, te = / /g, y = /,/g, ne = /,[0-9]{3}[,.]/, re = /[.][0-9]{3}[,.]/, ie = /[.]/g;
124
+ function b(e) {
126
125
  if (typeof e == "number") return Number.isFinite(e) && e || 0;
127
- if (u(e) && f(e)) {
128
- let t = e.replace(v, "");
129
- return t = te.test(t) ? t.replace(y, "").replace(b, ".") : ne.test(t) ? t.replace(b, "") : re.test(t) ? t.replace(ie, "").replace(b, ".") : t.replace(b, "."), parseFloat(t) || 0;
126
+ if (l(e) && d(e)) {
127
+ let t = e.replace(_, "");
128
+ return t = v.test(t) ? t.replace(te, "").replace(y, ".") : ne.test(t) ? t.replace(y, "") : re.test(t) ? t.replace(ie, "").replace(y, ".") : t.replace(y, "."), parseFloat(t) || 0;
130
129
  }
131
130
  return 0;
132
131
  }
133
132
  //#endregion
134
133
  //#region src/functions/isSelected.ts
135
- function ae(e, t) {
136
- return l(e) ? !1 : Array.isArray(t) ? t.includes(e) : _(e) && _(t) ? x(e) === x(t) : e === t;
134
+ function x(e, t) {
135
+ return c(e) ? !1 : Array.isArray(t) ? t.includes(e) : g(e) && g(t) ? b(e) === b(t) : e === t;
137
136
  }
138
137
  //#endregion
139
138
  //#region src/functions/anyToString.ts
140
- function S(e, t = !0, r = !0) {
141
- var i;
142
- if (f(e)) return r ? e.trim() : e;
143
- if (l(e)) return "";
144
- if (a(e) && !e.some((e) => n(e)) && t) return e.join(",");
145
- if (n(e)) try {
139
+ function S(e, n = !0, r = !0) {
140
+ var a;
141
+ if (d(e)) return r ? e.trim() : e;
142
+ if (c(e)) return "";
143
+ if (i(e) && !e.some((e) => t(e)) && n) return e.join(",");
144
+ if (t(e)) try {
146
145
  return JSON.stringify(e);
147
146
  } catch (t) {
148
147
  return String(e);
149
148
  }
150
- return e === !0 ? "1" : e === !1 ? "0" : (i = e == null ? void 0 : e.toString()) == null ? "" : i;
149
+ return e === !0 ? "1" : e === !1 ? "0" : (a = e == null ? void 0 : e.toString()) == null ? "" : a;
151
150
  }
152
151
  //#endregion
153
152
  //#region src/functions/isDomData.ts
154
- function oe() {
155
- return c() && location.href.startsWith("data:");
153
+ function ae() {
154
+ return s() && location.href.startsWith("data:");
156
155
  }
157
156
  //#endregion
158
157
  //#region src/functions/strSplit.ts
159
- function se(e, t, n) {
158
+ function oe(e, t, n) {
160
159
  let r = S(e);
161
160
  if (!n || n <= 0) return r.split(t);
162
161
  let i = r.split(t, n), a = r.split(t);
163
162
  return i.length === a.length ? i : (i.pop(), [...i, a.slice(n - 1).join(t)]);
164
163
  }
165
164
  //#endregion
165
+ //#region \0@oxc-project+runtime@0.147.0/helpers/esm/typeof.js
166
+ function C(e) {
167
+ "@babel/helpers - typeof";
168
+ return C = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
169
+ return typeof e;
170
+ } : function(e) {
171
+ return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
172
+ }, C(e);
173
+ }
174
+ //#endregion
175
+ //#region \0@oxc-project+runtime@0.147.0/helpers/esm/toPrimitive.js
176
+ function se(e, t) {
177
+ if (C(e) != "object" || !e) return e;
178
+ var n = e[Symbol.toPrimitive];
179
+ if (n !== void 0) {
180
+ var r = n.call(e, t || "default");
181
+ if (C(r) != "object") return r;
182
+ throw TypeError("@@toPrimitive must return a primitive value.");
183
+ }
184
+ return (t === "string" ? String : Number)(e);
185
+ }
186
+ //#endregion
187
+ //#region \0@oxc-project+runtime@0.147.0/helpers/esm/toPropertyKey.js
188
+ function ce(e) {
189
+ var t = se(e, "string");
190
+ return C(t) == "symbol" ? t : t + "";
191
+ }
192
+ //#endregion
193
+ //#region \0@oxc-project+runtime@0.147.0/helpers/esm/defineProperty.js
194
+ function w(e, t, n) {
195
+ return (t = ce(t)) in e ? Object.defineProperty(e, t, {
196
+ value: n,
197
+ enumerable: !0,
198
+ configurable: !0,
199
+ writable: !0
200
+ }) : e[t] = n, e;
201
+ }
202
+ //#endregion
166
203
  //#region src/classes/ErrorCenterHandler.ts
167
- var ce = class {
168
- constructor(t, n = !0) {
169
- e(this, "handlers", []), e(this, "callbacks", []), e(this, "isConsole", !0), this.isConsole = n, t && this.addList(t);
204
+ var le = class {
205
+ constructor(e, t = !0) {
206
+ w(this, "handlers", []), w(this, "callbacks", []), w(this, "isConsole", !0), this.isConsole = t, e && this.addList(e);
170
207
  }
171
208
  has(e) {
172
209
  return !!this.get(e);
@@ -196,15 +233,15 @@ var ce = class {
196
233
  return n && n.handlers.forEach((t) => t(e)), this.callbacks.forEach((t) => t(e)), this.toConsole(e), this;
197
234
  }
198
235
  toConsole(e) {
199
- if (h(this.isConsole, e) && (console.error(`Error Center: ${e.code}`), console.error("Error Center/message: ", e.message), console.error("Error Center/details: ", e.details), !c())) {
236
+ if (m(this.isConsole, e) && (console.error(`Error Center: ${e.code}`), console.error("Error Center/message: ", e.message), console.error("Error Center/details: ", e.details), !s())) {
200
237
  let e = (/* @__PURE__ */ Error()).stack;
201
238
  console.error("Error Center/trace: ", e);
202
239
  }
203
240
  return this;
204
241
  }
205
- }, le = class {
206
- constructor(t, n = new ce()) {
207
- e(this, "handler", void 0), e(this, "causes", []), this.handler = n, t && this.addList(t);
242
+ }, ue = class {
243
+ constructor(e, t = new le()) {
244
+ w(this, "handler", void 0), w(this, "causes", []), this.handler = t, e && this.addList(e);
208
245
  }
209
246
  has(e, t) {
210
247
  return !!this.get(e, t);
@@ -247,7 +284,7 @@ var ce = class {
247
284
  }
248
285
  return e;
249
286
  }
250
- }, ue = [
287
+ }, de = [
251
288
  {
252
289
  group: "api",
253
290
  code: "cacheClear",
@@ -398,7 +435,7 @@ var ce = class {
398
435
  label: "Translate Error",
399
436
  message: "An error occurred while loading translations."
400
437
  }
401
- ], C = class {
438
+ ], T = class {
402
439
  static getItem() {
403
440
  return this.item;
404
441
  }
@@ -430,10 +467,10 @@ var ce = class {
430
467
  this.getItem().on(e);
431
468
  }
432
469
  };
433
- e(C, "item", new le(ue));
470
+ w(T, "item", new ue(de));
434
471
  //#endregion
435
472
  //#region src/functions/transformation.ts
436
- function w(e, t = !1) {
473
+ function fe(e, t = !1) {
437
474
  if (typeof e == "string") {
438
475
  let r = e.trim();
439
476
  switch (r) {
@@ -446,7 +483,7 @@ function w(e, t = !1) {
446
483
  if (/^[{[]/.exec(r)) try {
447
484
  return JSON.parse(r);
448
485
  } catch (e) {
449
- C.on({
486
+ T.on({
450
487
  group: "transformation",
451
488
  code: "error",
452
489
  details: e
@@ -454,39 +491,39 @@ function w(e, t = !1) {
454
491
  }
455
492
  else if (/^-?[0-9]+\.[0-9]+$/.exec(r)) return parseFloat(r);
456
493
  else if (/^-?[0-9]+$/.exec(r)) return parseInt(r, 10);
457
- else if (t && c() && typeof ((n = window) == null ? void 0 : n[r]) == "function") return window[r];
494
+ else if (t && s() && typeof ((n = window) == null ? void 0 : n[r]) == "function") return window[r];
458
495
  }
459
496
  }
460
497
  return e;
461
498
  }
462
499
  //#endregion
463
500
  //#region src/functions/encodeLiteAttribute.ts
464
- var de = {
501
+ var pe = {
465
502
  "<": "&lt;",
466
503
  ">": "&gt;",
467
504
  "&": "&amp;"
468
505
  };
469
- function fe(e) {
506
+ function me(e) {
470
507
  return String(e).replace(/[<>&]/g, (e) => {
471
508
  var t;
472
- return (t = de == null ? void 0 : de[e]) == null ? e : t;
509
+ return (t = pe == null ? void 0 : pe[e]) == null ? e : t;
473
510
  });
474
511
  }
475
512
  //#endregion
476
513
  //#region src/functions/getElementSafeScript.ts
477
- function pe(e, t) {
514
+ function he(e, t) {
478
515
  return `<script id="${e.replace(/"/g, "&quot;")}" type="application/json">${JSON.stringify(t).replace(/<\/(script)>/gi, "<\\/$1>")}<\/script>`;
479
516
  }
480
517
  //#endregion
481
518
  //#region src/functions/getHydrationData.ts
482
- function me(e, t, n = !0) {
519
+ function ge(e, t, n = !0) {
483
520
  if (typeof document < "u") {
484
521
  let t = document.getElementById(e);
485
522
  if (t) try {
486
523
  let e = JSON.parse(t.textContent || "");
487
524
  return n && t.remove(), e;
488
525
  } catch (t) {
489
- C.on({
526
+ T.on({
490
527
  group: "hydration",
491
528
  code: "error",
492
529
  details: {
@@ -500,7 +537,7 @@ function me(e, t, n = !0) {
500
537
  }
501
538
  //#endregion
502
539
  //#region src/classes/ServerStorage.ts
503
- var he = "__ui:server-storage__", ge = "__ui:server:storage:id__", T = class {
540
+ var _e = "__ui:server-storage__", ve = "__ui:server:storage:id__", E = class {
504
541
  static init(e) {
505
542
  return this.listener || (this.listener = e), this;
506
543
  }
@@ -530,26 +567,26 @@ var he = "__ui:server-storage__", ge = "__ui:server:storage:id__", T = class {
530
567
  e in t && delete t[e];
531
568
  }
532
569
  static toString() {
533
- return pe(ge, this.getDataForHydration());
570
+ return he(ve, this.getDataForHydration());
534
571
  }
535
572
  static getStorage(e = !0, t) {
536
573
  var n;
537
- if (c()) return this.getStorageDom();
574
+ if (s()) return this.getStorageDom();
538
575
  let r = (n = this.listener) == null ? void 0 : n.call(this);
539
576
  if (!r) {
540
577
  var i;
541
- return this.hideError || C.on({
578
+ return this.hideError || T.on({
542
579
  group: "storage",
543
580
  code: "context",
544
581
  details: { status: t }
545
582
  }), e && !this.storage && (this.storage = {}), (i = this.storage) == null ? {} : i;
546
583
  }
547
- return he in r || (r[he] = {}), r[he];
584
+ return _e in r || (r[_e] = {}), r[_e];
548
585
  }
549
586
  static getStorageDom() {
550
587
  if (!this.storage) {
551
- let e = me(ge, {});
552
- this.storage = {}, i(e, (e, t) => {
588
+ let e = ge(ve, {});
589
+ this.storage = {}, r(e, (e, t) => {
553
590
  this.storage[t] = {
554
591
  value: e,
555
592
  hydration: !0
@@ -560,33 +597,33 @@ var he = "__ui:server-storage__", ge = "__ui:server:storage:id__", T = class {
560
597
  }
561
598
  static getDataForHydration() {
562
599
  let e = this.getStorage(void 0, "hydration"), t = {};
563
- return i(e, (e, n) => {
600
+ return r(e, (e, n) => {
564
601
  e.hydration && (t[n] = e.value);
565
602
  }), t;
566
603
  }
567
604
  };
568
- e(T, "storage", void 0), e(T, "listener", void 0), e(T, "hideError", void 0);
605
+ w(E, "storage", void 0), w(E, "listener", void 0), w(E, "hideError", void 0);
569
606
  //#endregion
570
607
  //#region src/classes/DataStorage.ts
571
- var _e = "ui-storage", ve = () => T.get("__ui:data-storage__", () => ({})), E = class {
608
+ var ye = "ui-storage", be = () => E.get("__ui:data-storage__", () => ({})), D = class {
572
609
  static setPrefix(e) {
573
- _e = e;
610
+ ye = e;
574
611
  }
575
- constructor(t, n = !1, r = C.getItem()) {
576
- e(this, "name", void 0), e(this, "isSession", void 0), e(this, "errorCenter", void 0), e(this, "value", void 0), e(this, "age", void 0), this.name = t, this.isSession = n, this.errorCenter = r;
577
- let i = `${n ? "session" : "storage"}#${t}`, a = ve();
578
- if (i in a) return a[i];
579
- this.make(), a[i] = this;
612
+ constructor(e, t = !1, n = T.getItem()) {
613
+ w(this, "name", void 0), w(this, "isSession", void 0), w(this, "errorCenter", void 0), w(this, "value", void 0), w(this, "age", void 0), this.name = e, this.isSession = t, this.errorCenter = n;
614
+ let r = `${t ? "session" : "storage"}#${e}`, i = be();
615
+ if (r in i) return i[r];
616
+ this.make(), i[r] = this;
580
617
  }
581
618
  get(e, t) {
582
- if (!l(this.value) && this.isCache(t)) return this.value;
619
+ if (!c(this.value) && this.isCache(t)) return this.value;
583
620
  if (e !== void 0) return this.set(e);
584
621
  }
585
622
  set(e) {
586
- if (this.value = h(e), this.age = Date.now(), this.value === void 0) this.remove();
623
+ if (this.value = m(e), this.age = Date.now(), this.value === void 0) this.remove();
587
624
  else {
588
625
  var t;
589
- (t = this.getMethod()) == null || t.setItem(this.getIndex(), fe(JSON.stringify({
626
+ (t = this.getMethod()) == null || t.setItem(this.getIndex(), me(JSON.stringify({
590
627
  value: this.value,
591
628
  age: this.age
592
629
  })));
@@ -601,17 +638,17 @@ var _e = "ui-storage", ve = () => T.get("__ui:data-storage__", () => ({})), E =
601
638
  return this.make(), this;
602
639
  }
603
640
  isCache(e) {
604
- return l(e) || this.age && this.age + e * 1e3 >= Date.now();
641
+ return c(e) || this.age && this.age + e * 1e3 >= Date.now();
605
642
  }
606
643
  getMethod() {
607
- if (c() && !oe()) {
644
+ if (s() && !ae()) {
608
645
  var e, t;
609
646
  let n = this.isSession ? (e = window) == null ? void 0 : e.sessionStorage : (t = window) == null ? void 0 : t.localStorage;
610
647
  if (n) return n;
611
648
  }
612
649
  }
613
650
  getIndex() {
614
- return `${_e}__${this.name}`;
651
+ return `${ye}__${this.name}`;
615
652
  }
616
653
  getValue() {
617
654
  var e, t;
@@ -630,9 +667,9 @@ var _e = "ui-storage", ve = () => T.get("__ui:data-storage__", () => ({})), E =
630
667
  let e = this.getValue();
631
668
  return e ? (this.value = e.value, this.age = e.age) : (this.value = void 0, this.age = void 0), this;
632
669
  }
633
- }, ye = "__ui:cookie-block__", be = class {
670
+ }, xe = "__ui:cookie-block__", Se = class {
634
671
  constructor() {
635
- e(this, "storage", new E(ye));
672
+ w(this, "storage", new D(xe));
636
673
  }
637
674
  get() {
638
675
  var e;
@@ -641,9 +678,9 @@ var _e = "ui-storage", ve = () => T.get("__ui:data-storage__", () => ({})), E =
641
678
  set(e) {
642
679
  this.storage.set(e);
643
680
  }
644
- }, xe = class {
681
+ }, Ce = class {
645
682
  static getItem() {
646
- return T.get("__ui:cookie-block__", () => new be());
683
+ return E.get("__ui:cookie-block__", () => new Se());
647
684
  }
648
685
  static get() {
649
686
  return this.getItem().get();
@@ -651,7 +688,7 @@ var _e = "ui-storage", ve = () => T.get("__ui:data-storage__", () => ({})), E =
651
688
  static set(e) {
652
689
  this.getItem().set(e);
653
690
  }
654
- }, Se = "__ui:cookie-storage__", D = class {
691
+ }, we = "__ui:cookie-storage__", O = class {
655
692
  static init(e, t, n) {
656
693
  this.getListener = e, this.getListenerRaw = t, this.setListener = n;
657
694
  }
@@ -661,11 +698,11 @@ var _e = "ui-storage", ve = () => T.get("__ui:data-storage__", () => ({})), E =
661
698
  static get(e, t) {
662
699
  var n, r;
663
700
  let i = (n = (r = this.getListener) == null ? void 0 : r.call(this, e)) == null ? this.initItems()[e] : n;
664
- return i === void 0 && t !== void 0 ? this.set(e, t) : w(i);
701
+ return i === void 0 && t !== void 0 ? this.set(e, t) : fe(i);
665
702
  }
666
703
  static set(e, t, n) {
667
- let r = h(t);
668
- if (xe.get()) return r;
704
+ let r = m(t);
705
+ if (Ce.get()) return r;
669
706
  let i = S(r, !1);
670
707
  return this.setListener ? this.setListener(e, i, this.format(e, i, n), n) : (this.initItems()[e] = i === "" ? void 0 : r, this.hasDom() && (document.cookie = this.format(e, i, n))), r;
671
708
  }
@@ -673,7 +710,7 @@ var _e = "ui-storage", ve = () => T.get("__ui:data-storage__", () => ({})), E =
673
710
  this.set(e, "", { age: -1 });
674
711
  }
675
712
  static update() {
676
- c() && (T.remove(Se), this.initItems());
713
+ s() && (E.remove(we), this.initItems());
677
714
  }
678
715
  static format(e, t, n) {
679
716
  return [
@@ -689,22 +726,22 @@ var _e = "ui-storage", ve = () => T.get("__ui:data-storage__", () => ({})), E =
689
726
  ].filter(Boolean).join("; ");
690
727
  }
691
728
  static hasDom() {
692
- return c() && !oe();
729
+ return s() && !ae();
693
730
  }
694
731
  static parse(e) {
695
732
  let t = {};
696
733
  for (let n of e.split(";")) {
697
- let [e, r] = se(n.trim(), "=", 2);
698
- e && u(r) && (t[e] = r);
734
+ let [e, r] = oe(n.trim(), "=", 2);
735
+ e && l(r) && (t[e] = r);
699
736
  }
700
737
  return t;
701
738
  }
702
739
  static initItems() {
703
- return T.get(Se, () => {
740
+ return E.get(we, () => {
704
741
  var e;
705
742
  if (this.hasDom()) return this.parse(document.cookie);
706
743
  let t = (e = this.getListenerRaw) == null ? void 0 : e.call(this);
707
- return u(t) ? this.parse(t) : {};
744
+ return l(t) ? this.parse(t) : {};
708
745
  });
709
746
  }
710
747
  static toMaxAge(e, t) {
@@ -732,35 +769,35 @@ var _e = "ui-storage", ve = () => T.get("__ui:data-storage__", () => ({})), E =
732
769
  return e === void 0 ? [] : Array.isArray(e) ? e : Object.entries(e).map(([e, t]) => `${e}=${S(t)}`);
733
770
  }
734
771
  };
735
- e(D, "getListener", void 0), e(D, "getListenerRaw", void 0), e(D, "setListener", void 0);
772
+ w(O, "getListener", void 0), w(O, "getListenerRaw", void 0), w(O, "setListener", void 0);
736
773
  //#endregion
737
774
  //#region src/classes/Cookie.ts
738
- var Ce = () => T.get("__ui:cookie-items__", () => ({})), we = class t {
739
- static getInstance(e) {
775
+ var Te = () => E.get("__ui:cookie-items__", () => ({})), Ee = class e {
776
+ static getInstance(t) {
740
777
  var n, r;
741
- return (n = (r = Ce()) == null ? void 0 : r[e]) == null ? new t(e) : n;
778
+ return (n = (r = Te()) == null ? void 0 : r[t]) == null ? new e(t) : n;
742
779
  }
743
- constructor(t) {
744
- e(this, "name", void 0), e(this, "value", void 0), e(this, "options", {}), this.name = t;
745
- let n = Ce();
746
- if (t in n) return n[t];
747
- this.value = D.get(this.name), n[t] = this;
780
+ constructor(e) {
781
+ w(this, "name", void 0), w(this, "value", void 0), w(this, "options", {}), this.name = e;
782
+ let t = Te();
783
+ if (e in t) return t[e];
784
+ this.value = O.get(this.name), t[e] = this;
748
785
  }
749
786
  get(e, t) {
750
787
  return this.value === void 0 && e && this.set(e, t), this.value;
751
788
  }
752
789
  set(e, t) {
753
- this.value = h(e), Object.assign(this.options, t), this.update();
790
+ this.value = m(e), Object.assign(this.options, t), this.update();
754
791
  }
755
792
  remove() {
756
793
  this.set("");
757
794
  }
758
795
  update() {
759
- D.set(this.name, this.value, this.options);
796
+ O.set(this.name, this.value, this.options);
760
797
  }
761
- }, Te = "ui-geo-code", Ee = "__ui:geo-code__", De = class {
798
+ }, De = "ui-geo-code", Oe = "__ui:geo-code__", ke = class {
762
799
  constructor() {
763
- e(this, "list", [...t]), e(this, "storage", new E(Ee)), e(this, "location", void 0), e(this, "valueDefault", void 0), e(this, "item", void 0), e(this, "language", void 0), e(this, "timezone", (/* @__PURE__ */ new Date()).getTimezoneOffset()), this.location = this.findLocation(), this.item = this.getByCode(this.location), this.language = this.findLanguage(this.location);
800
+ w(this, "list", [...e]), w(this, "storage", new D(Oe)), w(this, "location", void 0), w(this, "valueDefault", void 0), w(this, "item", void 0), w(this, "language", void 0), w(this, "timezone", (/* @__PURE__ */ new Date()).getTimezoneOffset()), this.location = this.findLocation(), this.item = this.getByCode(this.location), this.language = this.findLanguage(this.location);
764
801
  }
765
802
  get() {
766
803
  return this.item;
@@ -798,7 +835,7 @@ var Ce = () => T.get("__ui:cookie-items__", () => ({})), we = class t {
798
835
  return e && (/([A-Z]{2}-[a-z]{2})|([a-z]{2}-[A-Z]{2})/.test(e) && (n = this.getByCodeFull(e)), !n && /[A-Z]{2}/.test(e) && (n = this.getByCountry(this.toCountry(e))), !n && /[a-z]{2}/.test(e) && (n = this.getByLanguage(this.toLanguage(e)))), this.toFull((t = n) == null ? this.getList()[0] : t, e);
799
836
  }
800
837
  getByCodeFull(e) {
801
- return this.getList().find((t) => ae(e, [`${t.language}-${t.country}`, `${t.country}-${t.language}`]));
838
+ return this.getList().find((t) => x(e, [`${t.language}-${t.country}`, `${t.country}-${t.language}`]));
802
839
  }
803
840
  getByCountry(e) {
804
841
  return this.getList().find((t) => {
@@ -855,19 +892,19 @@ var Ce = () => T.get("__ui:cookie-items__", () => ({})), we = class t {
855
892
  return (this.item.country === e || this.toCountry(this.location) === e) && (this.item = this.getByCode(this.location), this.language = this.findLanguage(this.location)), this;
856
893
  }
857
894
  addList(e) {
858
- return i(e, (e, t) => {
895
+ return r(e, (e, t) => {
859
896
  this.add(t, e);
860
897
  }), this;
861
898
  }
862
899
  getCookie() {
863
- return we.getInstance(Te);
900
+ return Ee.getInstance(De);
864
901
  }
865
902
  findLocation() {
866
- return this.getCookie().get() || this.findLocationDom() || h(this.valueDefault) || "en-GB";
903
+ return this.getCookie().get() || this.findLocationDom() || m(this.valueDefault) || "en-GB";
867
904
  }
868
905
  findLocationDom() {
869
906
  var e;
870
- return c() && (this.storage.get() || ((e = document.querySelector("html")) == null ? void 0 : e.lang) || navigator.language || navigator.languages[0] || void 0) || void 0;
907
+ return s() && (this.storage.get() || ((e = document.querySelector("html")) == null ? void 0 : e.lang) || navigator.language || navigator.languages[0] || void 0) || void 0;
871
908
  }
872
909
  findLanguage(e) {
873
910
  if (e) {
@@ -896,9 +933,9 @@ var Ce = () => T.get("__ui:cookie-items__", () => ({})), we = class t {
896
933
  locationLanguage: n
897
934
  };
898
935
  }
899
- }, O = class {
936
+ }, k = class {
900
937
  static getObject() {
901
- return T.get("__ui:geo-instance__", () => new De());
938
+ return E.get("__ui:geo-instance__", () => new ke());
902
939
  }
903
940
  static get() {
904
941
  return this.getObject().get();
@@ -972,15 +1009,15 @@ var Ce = () => T.get("__ui:cookie-items__", () => ({})), we = class t {
972
1009
  };
973
1010
  //#endregion
974
1011
  //#region src/functions/isWindow.ts
975
- function Oe(e) {
976
- return c() && e === window;
1012
+ function Ae(e) {
1013
+ return s() && e === window;
977
1014
  }
978
1015
  //#endregion
979
1016
  //#region src/functions/getElement.ts
980
- function k(e) {
981
- if (!c()) return f(e) ? void 0 : e;
982
- if (Oe(e)) return document.body;
983
- if (f(e)) {
1017
+ function A(e) {
1018
+ if (!s()) return d(e) ? void 0 : e;
1019
+ if (Ae(e)) return document.body;
1020
+ if (d(e)) {
984
1021
  var t;
985
1022
  return (t = document.querySelector(e)) == null ? void 0 : t;
986
1023
  }
@@ -988,30 +1025,30 @@ function k(e) {
988
1025
  }
989
1026
  //#endregion
990
1027
  //#region src/functions/getElementOrWindow.ts
991
- function ke(e) {
992
- return Oe(e) ? e : k(e);
1028
+ function je(e) {
1029
+ return Ae(e) ? e : A(e);
993
1030
  }
994
1031
  //#endregion
995
1032
  //#region src/functions/isInDom.ts
996
- function Ae(e) {
1033
+ function Me(e) {
997
1034
  var t;
998
- return (e == null ? void 0 : e.isConnected) || !!((t = k(e)) != null && t.closest("html"));
1035
+ return (e == null ? void 0 : e.isConnected) || !!((t = A(e)) != null && t.closest("html"));
999
1036
  }
1000
1037
  //#endregion
1001
1038
  //#region src/functions/toArray.ts
1002
- function A(e) {
1039
+ function j(e) {
1003
1040
  return Array.isArray(e) ? e : [e];
1004
1041
  }
1005
1042
  //#endregion
1006
1043
  //#region src/classes/EventItem.ts
1007
- var je = class {
1008
- constructor(t, r = ["click"], i, a, o) {
1009
- e(this, "listener", void 0), e(this, "options", void 0), e(this, "detail", void 0), e(this, "element", void 0), e(this, "elementControl", void 0), e(this, "elementControlEdit", void 0), e(this, "type", void 0), e(this, "listenerRecent", (e) => {
1010
- if (Ae(this.elementControl)) {
1011
- var t, r;
1012
- (t = this.listener) == null || t.call(this.element, e, this.detail), n(this.options) && (r = this.options) != null && r.once && this.stop();
1044
+ var Ne = class {
1045
+ constructor(e, n = ["click"], r, i, a) {
1046
+ w(this, "listener", void 0), w(this, "options", void 0), w(this, "detail", void 0), w(this, "element", void 0), w(this, "elementControl", void 0), w(this, "elementControlEdit", void 0), w(this, "type", void 0), w(this, "listenerRecent", (e) => {
1047
+ if (Me(this.elementControl)) {
1048
+ var n, r;
1049
+ (n = this.listener) == null || n.call(this.element, e, this.detail), t(this.options) && (r = this.options) != null && r.once && this.stop();
1013
1050
  } else this.stop();
1014
- }), e(this, "activity", !1), e(this, "activityItems", []), this.listener = i, this.options = a, this.detail = o, this.element = ke(t), this.elementControl = k(t), this.type = A(r);
1051
+ }), w(this, "activity", !1), w(this, "activityItems", []), this.listener = r, this.options = i, this.detail = a, this.element = je(e), this.elementControl = A(e), this.type = j(n);
1015
1052
  }
1016
1053
  isActive() {
1017
1054
  return this.activity;
@@ -1020,14 +1057,14 @@ var je = class {
1020
1057
  return this.element;
1021
1058
  }
1022
1059
  setElement(e) {
1023
- let t = ke(e);
1024
- return this.elementControlEdit || (this.elementControl = k(e)), this.element = t, this.reset(), this;
1060
+ let t = je(e);
1061
+ return this.elementControlEdit || (this.elementControl = A(e)), this.element = t, this.reset(), this;
1025
1062
  }
1026
1063
  setElementControl(e) {
1027
- return this.elementControl = k(e), this.elementControlEdit = !l(this.elementControl), this.elementControlEdit || (this.elementControl = k(this.element)), this;
1064
+ return this.elementControl = A(e), this.elementControlEdit = !c(this.elementControl), this.elementControlEdit || (this.elementControl = A(this.element)), this;
1028
1065
  }
1029
1066
  setType(e) {
1030
- return this.type = A(e), this.reset(), this;
1067
+ return this.type = j(e), this.reset(), this;
1031
1068
  }
1032
1069
  setListener(e) {
1033
1070
  return this.listener = e, this;
@@ -1045,7 +1082,7 @@ var je = class {
1045
1082
  }), this;
1046
1083
  }
1047
1084
  start() {
1048
- return !this.activity && c() && (this.activity = !0, this.activityItems = [], this.type.forEach((e) => {
1085
+ return !this.activity && s() && (this.activity = !0, this.activityItems = [], this.type.forEach((e) => {
1049
1086
  this.element && !(e === "resize" && this.makeResize()) && !(e === "scroll-sync" && this.makeScroll()) && (this.element.addEventListener(e, this.listenerRecent, this.options), this.activityItems.push({
1050
1087
  element: this.element,
1051
1088
  type: e
@@ -1064,7 +1101,7 @@ var je = class {
1064
1101
  return this.activity && (this.stop(), this.start()), this;
1065
1102
  }
1066
1103
  isObserver() {
1067
- return c() && "ResizeObserver" in window;
1104
+ return s() && "ResizeObserver" in window;
1068
1105
  }
1069
1106
  makeResize() {
1070
1107
  if (this.element && this.element instanceof HTMLElement && this.element !== document.body && this.isObserver()) {
@@ -1096,9 +1133,9 @@ var je = class {
1096
1133
  }
1097
1134
  return !1;
1098
1135
  }
1099
- }, Me = "ui-loading", Ne = class {
1100
- constructor(t = Me) {
1101
- e(this, "eventName", void 0), e(this, "value", 0), e(this, "event", void 0), e(this, "registrationList", []), this.eventName = t, c() && (this.event = new je(window, this.eventName));
1136
+ }, Pe = "ui-loading", Fe = class {
1137
+ constructor(e = Pe) {
1138
+ w(this, "eventName", void 0), w(this, "value", 0), w(this, "event", void 0), w(this, "registrationList", []), this.eventName = e, s() && (this.event = new Ne(window, this.eventName));
1102
1139
  }
1103
1140
  is() {
1104
1141
  return this.value > 0;
@@ -1113,8 +1150,8 @@ var je = class {
1113
1150
  this.is() && (this.value--, this.dispatch());
1114
1151
  }
1115
1152
  registrationEvent(e, t) {
1116
- if (c()) {
1117
- let n = new je(window, this.eventName, e).setElementControl(t).start();
1153
+ if (s()) {
1154
+ let n = new Ne(window, this.eventName, e).setElementControl(t).start();
1118
1155
  this.registrationList.push({
1119
1156
  item: n,
1120
1157
  listener: e,
@@ -1129,7 +1166,7 @@ var je = class {
1129
1166
  var e;
1130
1167
  (e = this.event) == null || e.dispatch({ loading: this.is() });
1131
1168
  }
1132
- }, j = class {
1169
+ }, M = class {
1133
1170
  static is() {
1134
1171
  return this.getItem().is();
1135
1172
  }
@@ -1137,7 +1174,7 @@ var je = class {
1137
1174
  return this.getItem().get();
1138
1175
  }
1139
1176
  static getItem() {
1140
- return T.get("__ui:loading-instance__", () => new Ne());
1177
+ return E.get("__ui:loading-instance__", () => new Fe());
1141
1178
  }
1142
1179
  static show() {
1143
1180
  this.getItem().show();
@@ -1151,7 +1188,7 @@ var je = class {
1151
1188
  static unregistrationEvent(e, t) {
1152
1189
  this.getItem().unregistrationEvent(e, t);
1153
1190
  }
1154
- }, Pe, Fe = 86400, M = class {
1191
+ }, Ie, Le = 86400, N = class {
1155
1192
  static init(e, t, n, r) {
1156
1193
  this.getListener = e, this.setListener = t, this.removeListener = n, r && (this.cacheStepAgeClearOld = r, this.stepAgeClearOld = r);
1157
1194
  }
@@ -1161,7 +1198,7 @@ var je = class {
1161
1198
  static async get(e) {
1162
1199
  let t = await this.getItemOrListener(e);
1163
1200
  return this.clearOld().catch((e) => {
1164
- C.on({
1201
+ T.on({
1165
1202
  group: "api",
1166
1203
  code: "cacheClear",
1167
1204
  details: e
@@ -1173,7 +1210,7 @@ var je = class {
1173
1210
  let t = this.generateKey(e);
1174
1211
  return await this.get(t);
1175
1212
  }
1176
- static async set(e, t, n = Fe) {
1213
+ static async set(e, t, n = Le) {
1177
1214
  let r = {
1178
1215
  value: t,
1179
1216
  age: n,
@@ -1192,7 +1229,7 @@ var je = class {
1192
1229
  }
1193
1230
  static isCache(e) {
1194
1231
  let { cache: t, enableClientCache: n } = e;
1195
- return c() && !n ? !1 : !!t;
1232
+ return s() && !n ? !1 : !!t;
1196
1233
  }
1197
1234
  static isAge(e) {
1198
1235
  return e ? !e.age || e.age * 1e3 + e.cacheAge >= Date.now() : !1;
@@ -1236,12 +1273,12 @@ var je = class {
1236
1273
  }
1237
1274
  }
1238
1275
  };
1239
- Pe = M, e(M, "items", void 0), e(M, "getListener", void 0), e(M, "setListener", void 0), e(M, "removeListener", void 0), e(M, "cacheStepAgeClearOld", 16384), e(M, "stepAgeClearOld", Pe.cacheStepAgeClearOld);
1276
+ Ie = N, w(N, "items", void 0), w(N, "getListener", void 0), w(N, "setListener", void 0), w(N, "removeListener", void 0), w(N, "cacheStepAgeClearOld", 16384), w(N, "stepAgeClearOld", Ie.cacheStepAgeClearOld);
1240
1277
  //#endregion
1241
1278
  //#region src/classes/ApiStatus.ts
1242
- var Ie = class {
1279
+ var Re = class {
1243
1280
  constructor() {
1244
- e(this, "value", void 0);
1281
+ w(this, "value", void 0);
1245
1282
  }
1246
1283
  get() {
1247
1284
  return this.value;
@@ -1287,7 +1324,7 @@ var Ie = class {
1287
1324
  return this.set({ error: e }), this;
1288
1325
  }
1289
1326
  setLastResponse(e) {
1290
- return e && r(e) && ("message" in e && this.setLastMessage(String(e.message)), "status" in e && this.setLastStatus(String(e.status)), "code" in e && this.setLastCode(String(e.code))), this.set({ lastResponse: e }), this;
1327
+ return e && n(e) && ("message" in e && this.setLastMessage(String(e.message)), "status" in e && this.setLastStatus(String(e.status)), "code" in e && this.setLastCode(String(e.code))), this.set({ lastResponse: e }), this;
1291
1328
  }
1292
1329
  setLastStatus(e) {
1293
1330
  return this.set({ lastStatus: e }), this;
@@ -1301,15 +1338,15 @@ var Ie = class {
1301
1338
  setValue(e, t) {
1302
1339
  this.value || (this.value = {}), this.value[e] = t;
1303
1340
  }
1304
- }, Le = [
1341
+ }, ze = [
1305
1342
  "success",
1306
1343
  "status",
1307
1344
  "code",
1308
1345
  "message",
1309
1346
  "error"
1310
- ], Re = class {
1311
- constructor(t, n, r, i) {
1312
- e(this, "apiFetch", void 0), e(this, "query", void 0), e(this, "end", void 0), e(this, "error", void 0), e(this, "data", void 0), e(this, "dataMod", void 0), this.apiFetch = t, this.query = n, this.end = r, this.error = i;
1347
+ ], Be = class {
1348
+ constructor(e, t, n, r) {
1349
+ w(this, "apiFetch", void 0), w(this, "query", void 0), w(this, "end", void 0), w(this, "error", void 0), w(this, "data", void 0), w(this, "dataMod", void 0), this.apiFetch = e, this.query = t, this.end = n, this.error = r;
1313
1350
  }
1314
1351
  async init() {
1315
1352
  return this.data = await this.readData(), this;
@@ -1319,7 +1356,7 @@ var Ie = class {
1319
1356
  }
1320
1357
  getAndStatus(e) {
1321
1358
  let t = this.get();
1322
- return t && r(t) ? {
1359
+ return t && n(t) ? {
1323
1360
  ...t,
1324
1361
  statusObject: e.get(),
1325
1362
  errorObject: this.error
@@ -1335,34 +1372,34 @@ var Ie = class {
1335
1372
  }
1336
1373
  initData() {
1337
1374
  let { toData: e = !0 } = this.apiFetch, t = this.getData();
1338
- return t ? !e || !t || !r(t) || !("data" in t) ? t : t.data !== null && typeof t.data != "object" || a(t.data) ? t.data : this.initItem(t) : {};
1375
+ return t ? !e || !t || !n(t) || !("data" in t) ? t : t.data !== null && typeof t.data != "object" || i(t.data) ? t.data : this.initItem(t) : {};
1339
1376
  }
1340
1377
  initItem(e) {
1341
1378
  let t = { ...e.data };
1342
- return Le.forEach((n) => {
1343
- if (n in e && !(n in t) && (t[n] = e[n], n === "error" && r(e[n]))) {
1379
+ return ze.forEach((r) => {
1380
+ if (r in e && !(r in t) && (t[r] = e[r], r === "error" && n(e[r]))) {
1344
1381
  var i, a, o, s;
1345
- t.code = (i = (a = e[n]) == null ? void 0 : a.code) == null ? e.code : i, t.message = (o = (s = e[n]) == null ? void 0 : s.message) == null ? e.message : o;
1382
+ t.code = (i = (a = e[r]) == null ? void 0 : a.code) == null ? e.code : i, t.message = (o = (s = e[r]) == null ? void 0 : s.message) == null ? e.message : o;
1346
1383
  }
1347
1384
  }), t;
1348
1385
  }
1349
- }, N = /* @__PURE__ */ function(e) {
1386
+ }, P = /* @__PURE__ */ function(e) {
1350
1387
  return e.delete = "DELETE", e.get = "GET", e.post = "POST", e.put = "PUT", e.patch = "PATCH", e;
1351
- }({}), ze = class {
1388
+ }({}), Ve = class {
1352
1389
  constructor() {
1353
- e(this, "value", void 0);
1390
+ w(this, "value", void 0);
1354
1391
  }
1355
1392
  is() {
1356
1393
  return !!this.value;
1357
1394
  }
1358
1395
  get() {
1359
- return h(this.value);
1396
+ return m(this.value);
1360
1397
  }
1361
1398
  request(e) {
1362
1399
  let t = this.get();
1363
- if (u(t)) {
1400
+ if (l(t)) {
1364
1401
  if (e instanceof FormData) this.addByFormData(e, t);
1365
- else if (r(e)) return {
1402
+ else if (n(e)) return {
1366
1403
  ...t,
1367
1404
  ...e
1368
1405
  };
@@ -1377,9 +1414,9 @@ var Ie = class {
1377
1414
  e.has(t) || e.set(t, n);
1378
1415
  }), this;
1379
1416
  }
1380
- }, Be = class {
1381
- constructor(t, n, r) {
1382
- e(this, "method", void 0), e(this, "response", void 0), e(this, "error", void 0), e(this, "jsonResponse", void 0), this.method = t, this.response = n, this.error = r;
1417
+ }, He = class {
1418
+ constructor(e, t, n) {
1419
+ w(this, "method", void 0), w(this, "response", void 0), w(this, "error", void 0), w(this, "jsonResponse", void 0), this.method = e, this.response = t, this.error = n;
1383
1420
  }
1384
1421
  getMethod() {
1385
1422
  return this.method;
@@ -1396,14 +1433,14 @@ var Ie = class {
1396
1433
  }
1397
1434
  getMessage() {
1398
1435
  var e;
1399
- return h((e = this.error) == null ? void 0 : e.message, this.getResponse());
1436
+ return m((e = this.error) == null ? void 0 : e.message, this.getResponse());
1400
1437
  }
1401
1438
  getStatus() {
1402
1439
  return this.response.status;
1403
1440
  }
1404
- }, Ve = class {
1441
+ }, Ue = class {
1405
1442
  constructor() {
1406
- e(this, "storage", []);
1443
+ w(this, "storage", []);
1407
1444
  }
1408
1445
  async find(e, t) {
1409
1446
  let n = await this.getBody(t), r = this.getCode(n), i = this.getMessage(n) || t.statusText, a = this.findItem(e, t, r);
@@ -1420,7 +1457,7 @@ var Ie = class {
1420
1457
  };
1421
1458
  }
1422
1459
  add(e, t, n) {
1423
- return A(e).forEach((e) => {
1460
+ return j(e).forEach((e) => {
1424
1461
  let r = e.url || t, i = e.method || n;
1425
1462
  r && i && this.storage.push({
1426
1463
  ...e,
@@ -1446,8 +1483,8 @@ var Ie = class {
1446
1483
  }
1447
1484
  }
1448
1485
  getDataByKey(e, t) {
1449
- if (f(e == null ? void 0 : e[t])) return e[t];
1450
- if (r(e == null ? void 0 : e.error) && f(e.error[t])) return e.error[t];
1486
+ if (d(e == null ? void 0 : e[t])) return e[t];
1487
+ if (n(e == null ? void 0 : e.error) && d(e.error[t])) return e.error[t];
1451
1488
  }
1452
1489
  getCode(e) {
1453
1490
  return this.getDataByKey(e, "code");
@@ -1455,25 +1492,25 @@ var Ie = class {
1455
1492
  getMessage(e) {
1456
1493
  return this.getDataByKey(e, "message");
1457
1494
  }
1458
- }, He = class {
1495
+ }, We = class {
1459
1496
  static getStorage() {
1460
- return T.get("__ui:api-error-storage__", () => new Ve());
1497
+ return E.get("__ui:api-error-storage__", () => new Ue());
1461
1498
  }
1462
1499
  static add(e, t, n) {
1463
1500
  this.getStorage().add(e, t, n);
1464
1501
  }
1465
1502
  static async getItem(e, t) {
1466
- return new Be(e, t, await this.getStorage().find(e, t));
1503
+ return new He(e, t, await this.getStorage().find(e, t));
1467
1504
  }
1468
- }, Ue = class {
1505
+ }, Ge = class {
1469
1506
  constructor() {
1470
- e(this, "headers", {});
1507
+ w(this, "headers", {});
1471
1508
  }
1472
1509
  get(e, t = "application/json;charset=UTF-8") {
1473
1510
  if (e === null) return;
1474
- let n = { ...h(this.headers) };
1475
- if (r(e)) for (let t in e) n[t.toLowerCase()] = e[t];
1476
- return u(t) && (n["content-type"] = t), n;
1511
+ let r = { ...m(this.headers) };
1512
+ if (n(e)) for (let t in e) r[t.toLowerCase()] = e[t];
1513
+ return l(t) && (r["content-type"] = t), r;
1477
1514
  }
1478
1515
  getByRequest(e, t, n = "application/json;charset=UTF-8") {
1479
1516
  return e instanceof FormData ? this.get(t, null) : this.get(t, n);
@@ -1481,16 +1518,16 @@ var Ie = class {
1481
1518
  set(e) {
1482
1519
  return this.headers = e, this;
1483
1520
  }
1484
- }, We = "__ui:api:hydration:id__", Ge = class {
1521
+ }, Ke = "__ui:api:hydration:id__", qe = class {
1485
1522
  constructor() {
1486
- e(this, "list", []);
1523
+ w(this, "list", []);
1487
1524
  }
1488
1525
  initResponse(e) {
1489
- c() && e.add(this.getListByClient());
1526
+ s() && e.add(this.getListByClient());
1490
1527
  }
1491
1528
  toClient(e, t) {
1492
- let { path: n, method: r = N.get, request: i, global: a = r === N.get } = e;
1493
- !a || !n || c() || this.list.push({
1529
+ let { path: n, method: r = P.get, request: i, global: a = r === P.get } = e;
1530
+ !a || !n || s() || this.list.push({
1494
1531
  path: n,
1495
1532
  method: r,
1496
1533
  request: i,
@@ -1498,14 +1535,14 @@ var Ie = class {
1498
1535
  });
1499
1536
  }
1500
1537
  toString() {
1501
- return pe(We, this.list);
1538
+ return he(Ke, this.list);
1502
1539
  }
1503
1540
  getListByClient() {
1504
- return me(We, []);
1541
+ return ge(Ke, []);
1505
1542
  }
1506
- }, Ke = class {
1543
+ }, Je = class {
1507
1544
  constructor() {
1508
- e(this, "callback", void 0), e(this, "callbackEnd", void 0), e(this, "loading", !1);
1545
+ w(this, "callback", void 0), w(this, "callbackEnd", void 0), w(this, "loading", !1);
1509
1546
  }
1510
1547
  async make(e, t) {
1511
1548
  if (e && this.callback) return this.go(t);
@@ -1531,15 +1568,15 @@ var Ie = class {
1531
1568
  };
1532
1569
  //#endregion
1533
1570
  //#region src/functions/executePromise.ts
1534
- async function P(e, ...t) {
1535
- let n = h(e, ...t);
1571
+ async function F(e, ...t) {
1572
+ let n = m(e, ...t);
1536
1573
  return n instanceof Promise ? await n : n;
1537
1574
  }
1538
1575
  //#endregion
1539
1576
  //#region src/classes/ApiResponse.ts
1540
- var qe = "d-response-loading", Je = class {
1541
- constructor(t) {
1542
- e(this, "requestDefault", void 0), e(this, "first", []), e(this, "response", []), e(this, "loading", void 0), e(this, "devMode", !1), this.requestDefault = t;
1577
+ var Ye = "d-response-loading", Xe = class {
1578
+ constructor(e) {
1579
+ w(this, "requestDefault", void 0), w(this, "first", []), w(this, "response", []), w(this, "loading", void 0), w(this, "devMode", !1), this.requestDefault = e;
1543
1580
  }
1544
1581
  get(e = "", t, n, r) {
1545
1582
  return this.response.find((i) => !this.isDisable(i) && this.isPath(i, e) && t === i.method && this.isFirst(i, r) && this.isResponse(i, n) ? (this.isDevMode(r) && console.warn(`Response type: ${i.path}`), this.first.push(i), !0) : !1);
@@ -1548,7 +1585,7 @@ var qe = "d-response-loading", Je = class {
1548
1585
  return this.response.filter((e) => e.isForGlobal !== !0);
1549
1586
  }
1550
1587
  add(e) {
1551
- return this.response.push(...A(e)), this;
1588
+ return this.response.push(...j(e)), this;
1552
1589
  }
1553
1590
  setDevMode(e) {
1554
1591
  return this.devMode = e, this;
@@ -1565,7 +1602,7 @@ var qe = "d-response-loading", Je = class {
1565
1602
  if (t) return this.fetchAsync(t.response);
1566
1603
  }
1567
1604
  isDisable(e) {
1568
- return !!h(e == null ? void 0 : e.disable);
1605
+ return !!m(e == null ? void 0 : e.disable);
1569
1606
  }
1570
1607
  isPath(e, t) {
1571
1608
  return t === e.path || !!(e.path instanceof RegExp && e.path.test(t));
@@ -1577,12 +1614,12 @@ var qe = "d-response-loading", Je = class {
1577
1614
  return this.first.indexOf(e) === -1 || this.isDevMode(t);
1578
1615
  }
1579
1616
  isResponse(e, t) {
1580
- let n = this.requestDefault.request(e == null ? void 0 : e.request);
1581
- return t === n || n === "*any" || u(t) && u(n) && r(t) && r(n) && !(t instanceof FormData) && !(n instanceof FormData) && Object.values(t).length === Object.values(n).length && Object.entries(n).every(([e, n]) => n === (t == null ? void 0 : t[e]) || n === "*any");
1617
+ let r = this.requestDefault.request(e == null ? void 0 : e.request);
1618
+ return t === r || r === "*any" || l(t) && l(r) && n(t) && n(r) && !(t instanceof FormData) && !(r instanceof FormData) && Object.values(t).length === Object.values(r).length && Object.entries(r).every(([e, n]) => n === (t == null ? void 0 : t[e]) || n === "*any");
1582
1619
  }
1583
1620
  readData(e) {
1584
- if (!c()) return;
1585
- let { path: t = "", method: n = N.get, global: r = n === N.get, devMode: i = !1 } = e;
1621
+ if (!s()) return;
1622
+ let { path: t = "", method: n = P.get, global: r = n === P.get, devMode: i = !1 } = e;
1586
1623
  if (r || this.isDevMode(i)) {
1587
1624
  let r = this.requestDefault.request(e.request), a = this.get(t, n, r, i);
1588
1625
  if (a) return {
@@ -1593,10 +1630,10 @@ var qe = "d-response-loading", Je = class {
1593
1630
  }
1594
1631
  fetch(e, t) {
1595
1632
  return this.startResponseLoading(), new Promise((n) => {
1596
- P(m(e.response) ? e.response(t) : e.response).then((t) => {
1597
- e != null && e.lag ? (j.show(), setTimeout(() => {
1598
- this.stopResponseLoading(), n(t), j.hide();
1599
- }, p(0, 2e3))) : (this.stopResponseLoading(), n(t));
1633
+ F(p(e.response) ? e.response(t) : e.response).then((t) => {
1634
+ e != null && e.lag ? (M.show(), setTimeout(() => {
1635
+ this.stopResponseLoading(), n(t), M.hide();
1636
+ }, f(0, 2e3))) : (this.stopResponseLoading(), n(t));
1600
1637
  });
1601
1638
  });
1602
1639
  }
@@ -1604,21 +1641,21 @@ var qe = "d-response-loading", Je = class {
1604
1641
  return e.response;
1605
1642
  }
1606
1643
  startResponseLoading() {
1607
- this.loading && clearTimeout(this.loading), c() && document.body.classList.add(qe);
1644
+ this.loading && clearTimeout(this.loading), s() && document.body.classList.add(Ye);
1608
1645
  }
1609
1646
  stopResponseLoading() {
1610
- c() && (this.loading = setTimeout(() => {
1611
- this.loading = void 0, document.body.classList.remove(qe);
1647
+ s() && (this.loading = setTimeout(() => {
1648
+ this.loading = void 0, document.body.classList.remove(Ye);
1612
1649
  }, 2400));
1613
1650
  }
1614
- }, Ye = class {
1615
- constructor(t = "/api/", n = {}) {
1616
- e(this, "url", void 0), e(this, "geo", void 0), e(this, "headers", void 0), e(this, "requestDefault", void 0), e(this, "status", void 0), e(this, "response", void 0), e(this, "preparation", void 0), e(this, "loading", void 0), e(this, "errorCenter", void 0), e(this, "hydration", void 0), e(this, "timeout", 16e3), e(this, "origin", void 0), e(this, "wrapper", void 0), this.url = t;
1617
- let { headersClass: r = Ue, requestDefaultClass: i = ze, statusClass: a = Ie, responseClass: o = Je, preparationClass: s = Ke, loadingClass: c = j.getItem(), errorCenterClass: l = C.getItem(), hydrationClass: u = Ge, wrapper: d } = n;
1618
- this.geo = O.getObject(), this.headers = new r(), this.requestDefault = new i(), this.status = new a(), this.response = new o(this.requestDefault), this.preparation = new s(), this.loading = c, this.errorCenter = l, this.hydration = new u(), this.wrapper = d, this.hydration.initResponse(this.response);
1651
+ }, Ze = class {
1652
+ constructor(e = "/api/", t = {}) {
1653
+ w(this, "url", void 0), w(this, "geo", void 0), w(this, "headers", void 0), w(this, "requestDefault", void 0), w(this, "status", void 0), w(this, "response", void 0), w(this, "preparation", void 0), w(this, "loading", void 0), w(this, "errorCenter", void 0), w(this, "hydration", void 0), w(this, "timeout", 16e3), w(this, "origin", void 0), w(this, "wrapper", void 0), this.url = e;
1654
+ let { headersClass: n = Ge, requestDefaultClass: r = Ve, statusClass: i = Re, responseClass: a = Xe, preparationClass: o = Je, loadingClass: s = M.getItem(), errorCenterClass: c = T.getItem(), hydrationClass: l = qe, wrapper: u } = t;
1655
+ this.geo = k.getObject(), this.headers = new n(), this.requestDefault = new r(), this.status = new i(), this.response = new a(this.requestDefault), this.preparation = new o(), this.loading = s, this.errorCenter = c, this.hydration = new l(), this.wrapper = u, this.hydration.initResponse(this.response);
1619
1656
  }
1620
1657
  isLocalhost() {
1621
- return c() && typeof location < "u" && location.hostname === "localhost";
1658
+ return s() && typeof location < "u" && location.hostname === "localhost";
1622
1659
  }
1623
1660
  getStatus() {
1624
1661
  return this.status;
@@ -1635,14 +1672,14 @@ var qe = "d-response-loading", Je = class {
1635
1672
  getUrl(e, t = !0) {
1636
1673
  return `${t ? this.getOrigin() : ""}${e}`.replace("{locale}", this.geo.getLocation()).replace("{country}", this.geo.getCountry()).replace("{language}", this.geo.getLanguage());
1637
1674
  }
1638
- getBody(e = {}, t = N.get) {
1675
+ getBody(e = {}, t = P.get) {
1639
1676
  if (e instanceof FormData) return e;
1640
- if (t !== N.get && u(e)) return f(e) ? e : JSON.stringify(e);
1677
+ if (t !== P.get && l(e)) return d(e) ? e : JSON.stringify(e);
1641
1678
  }
1642
- getBodyForGet(e, t = "", n = N.get) {
1643
- if (n === N.get) {
1644
- let n = t.match(/\?/) ? "&" : "?", r = typeof e == "object" ? s(e) : e;
1645
- if (u(r)) return `${n}${r}`;
1679
+ getBodyForGet(e, t = "", n = P.get) {
1680
+ if (n === P.get) {
1681
+ let n = t.match(/\?/) ? "&" : "?", r = typeof e == "object" ? o(e) : e;
1682
+ if (l(r)) return `${n}${r}`;
1646
1683
  }
1647
1684
  return "";
1648
1685
  }
@@ -1675,48 +1712,48 @@ var qe = "d-response-loading", Je = class {
1675
1712
  }
1676
1713
  async request(e) {
1677
1714
  var t;
1678
- let n = f(e) ? { path: e } : e, r = (t = n.wrapper) == null ? this.wrapper : t;
1715
+ let n = d(e) ? { path: e } : e, r = (t = n.wrapper) == null ? this.wrapper : t;
1679
1716
  return r ? await r(() => this.fetch(n), n) : await this.fetch(n);
1680
1717
  }
1681
1718
  get(e) {
1682
1719
  return this.request({
1683
1720
  ...e,
1684
- method: N.get
1721
+ method: P.get
1685
1722
  });
1686
1723
  }
1687
1724
  post(e) {
1688
1725
  return this.request({
1689
1726
  ...e,
1690
- method: N.post
1727
+ method: P.post
1691
1728
  });
1692
1729
  }
1693
1730
  put(e) {
1694
1731
  return this.request({
1695
1732
  ...e,
1696
- method: N.put
1733
+ method: P.put
1697
1734
  });
1698
1735
  }
1699
1736
  patch(e) {
1700
1737
  return this.request({
1701
1738
  ...e,
1702
- method: N.patch
1739
+ method: P.patch
1703
1740
  });
1704
1741
  }
1705
1742
  delete(e) {
1706
1743
  return this.request({
1707
1744
  ...e,
1708
- method: N.delete
1745
+ method: P.delete
1709
1746
  });
1710
1747
  }
1711
1748
  getRetryDelay(e, t) {
1712
- return p(t, t + e * t);
1749
+ return f(t, t + e * t);
1713
1750
  }
1714
1751
  async fetch(e, t = 0) {
1715
- let { method: n = N.get, api: r = !0, path: i = "", hideError: a = !1, hideLoading: o = !1, retry: s = 0, retryDelay: c = 64, globalPreparation: l = !0, globalEnd: u = !0, initError: d = !0, endResetLimit: f = 8 } = e, p = this.getUrl(i, r), m = await this.response.emulator(e);
1752
+ let { method: n = P.get, api: r = !0, path: i = "", hideError: a = !1, hideLoading: o = !1, retry: s = 0, retryDelay: c = 64, globalPreparation: l = !0, globalEnd: u = !0, initError: d = !0, endResetLimit: f = 8 } = e, p = this.getUrl(i, r), m = await this.response.emulator(e);
1716
1753
  if (m) return m;
1717
- let h = await M.getByFetch(e);
1754
+ let h = await N.getByFetch(e);
1718
1755
  if (h) return this.hydration.toClient(e, h), h;
1719
- let g = new Ie(), _, v;
1756
+ let g = new Re(), _, v;
1720
1757
  o || this.loading.show();
1721
1758
  try {
1722
1759
  await this.preparation.make(l, e);
@@ -1725,19 +1762,19 @@ var qe = "d-response-loading", Je = class {
1725
1762
  let m = await this.preparation.makeEnd(u, r, e);
1726
1763
  if (g.setStatus(r.status, r.statusText), this.status.setStatus(r.status, r.statusText), !a && r.status >= 400) {
1727
1764
  var te;
1728
- d && (v = await He.getItem(n, r)), this.makeErrorQuery((te = v) == null ? r : te);
1765
+ d && (v = await We.getItem(n, r)), this.makeErrorQuery((te = v) == null ? r : te);
1729
1766
  }
1730
1767
  if (m != null && m.reset && t < f || t < s) return await ee(this.getRetryDelay(t, c)), o || this.loading.hide(), await this.fetch(e, t + 1);
1731
- _ = new Re(e, r, m, v), await _.init();
1768
+ _ = new Be(e, r, m, v), await _.init();
1732
1769
  } catch (e) {
1733
1770
  throw a || this.makeError(e), g.setError(String(e)), this.status.setError(String(e)), o || this.loading.hide(), e;
1734
1771
  }
1735
1772
  g.setLastResponse(_.getData()), this.status.setLastResponse(_.getData());
1736
1773
  let y = _.getAndStatus(g);
1737
- return o || this.loading.hide(), this.hydration.toClient(e, y), await M.setByFetch(e, y), y;
1774
+ return o || this.loading.hide(), this.hydration.toClient(e, y), await N.setByFetch(e, y), y;
1738
1775
  }
1739
1776
  async makeQuery(e, t) {
1740
- let n = this.requestDefault.request(e.request), { pathFull: r = void 0, method: i = N.get, headers: a = {}, type: o = "application/json;charset=UTF-8", init: s = {} } = e, c = r == null ? t : r, l = `${c}${this.getBodyForGet(n, c, i)}`, u = this.headers.getByRequest(e.request, a, o), d = {
1777
+ let n = this.requestDefault.request(e.request), { pathFull: r = void 0, method: i = P.get, headers: a = {}, type: o = "application/json;charset=UTF-8", init: s = {} } = e, c = r == null ? t : r, l = `${c}${this.getBodyForGet(n, c, i)}`, u = this.headers.getByRequest(e.request, a, o), d = {
1741
1778
  ...s,
1742
1779
  method: i,
1743
1780
  body: this.getBody(n, i)
@@ -1749,10 +1786,10 @@ var qe = "d-response-loading", Je = class {
1749
1786
  ...(f = s.headers) == null ? {} : f
1750
1787
  };
1751
1788
  }
1752
- let p = this.initController(e, d);
1789
+ let ee = this.initController(e, d);
1753
1790
  return {
1754
1791
  query: await fetch(l, d),
1755
- timeoutId: p
1792
+ timeoutId: ee
1756
1793
  };
1757
1794
  }
1758
1795
  makeError(e, t = "api") {
@@ -1765,7 +1802,7 @@ var qe = "d-response-loading", Je = class {
1765
1802
  });
1766
1803
  break;
1767
1804
  case "AbortError": break;
1768
- default: d() ? this.errorCenter.on({
1805
+ default: u() ? this.errorCenter.on({
1769
1806
  group: t,
1770
1807
  code: "unknown",
1771
1808
  details: e
@@ -1831,12 +1868,12 @@ var qe = "d-response-loading", Je = class {
1831
1868
  }, n);
1832
1869
  }
1833
1870
  }
1834
- }, F = class {
1871
+ }, I = class {
1835
1872
  static isLocalhost() {
1836
1873
  return this.getItem().isLocalhost();
1837
1874
  }
1838
1875
  static getItem() {
1839
- return T.get("__ui:api-instance__", () => new Ye());
1876
+ return E.get("__ui:api-instance__", () => new Ze());
1840
1877
  }
1841
1878
  static getStatus() {
1842
1879
  return this.getItem().getStatus();
@@ -1856,10 +1893,10 @@ var qe = "d-response-loading", Je = class {
1856
1893
  static getUrl(e, t = !0) {
1857
1894
  return this.getItem().getUrl(e, t);
1858
1895
  }
1859
- static getBody(e = {}, t = N.get) {
1896
+ static getBody(e = {}, t = P.get) {
1860
1897
  return this.getItem().getBody(e, t);
1861
1898
  }
1862
- static getBodyForGet(e, t = "", n = N.get) {
1899
+ static getBodyForGet(e, t = "", n = P.get) {
1863
1900
  return this.getItem().getBodyForGet(e, t, n);
1864
1901
  }
1865
1902
  static setHeaders(e) {
@@ -1887,7 +1924,7 @@ var qe = "d-response-loading", Je = class {
1887
1924
  this.getItem().setWrapper(e);
1888
1925
  }
1889
1926
  static setConfig(e) {
1890
- e && r(e) && (e.urlRoot && this.setUrl(e.urlRoot), e.headers && this.setHeaders(e.headers), e.requestDefault && this.setRequestDefault(e.requestDefault), e.preparation && this.setPreparation(e.preparation), e.end && this.setEnd(e.end), e.timeout && this.setTimeout(e.timeout), e.devMode && this.getResponse().setDevMode(e.devMode), e.origin && this.setOrigin(e.origin), e.wrapper && this.setWrapper(e.wrapper));
1927
+ e && n(e) && (e.urlRoot && this.setUrl(e.urlRoot), e.headers && this.setHeaders(e.headers), e.requestDefault && this.setRequestDefault(e.requestDefault), e.preparation && this.setPreparation(e.preparation), e.end && this.setEnd(e.end), e.timeout && this.setTimeout(e.timeout), e.devMode && this.getResponse().setDevMode(e.devMode), e.origin && this.setOrigin(e.origin), e.wrapper && this.setWrapper(e.wrapper));
1891
1928
  }
1892
1929
  static async request(e) {
1893
1930
  return this.getItem().request(e);
@@ -1907,18 +1944,18 @@ var qe = "d-response-loading", Je = class {
1907
1944
  static delete(e) {
1908
1945
  return this.getItem().delete(e);
1909
1946
  }
1910
- }, Xe = class {
1911
- constructor(t, n, r, i = C.getItem()) {
1912
- if (e(this, "callback", void 0), e(this, "callbackError", void 0), e(this, "channel", void 0), e(this, "update", (e) => {
1947
+ }, Qe = class {
1948
+ constructor(e, t, n, r = T.getItem()) {
1949
+ if (w(this, "callback", void 0), w(this, "callbackError", void 0), w(this, "channel", void 0), w(this, "update", (e) => {
1913
1950
  var t;
1914
1951
  return (t = this.callback) == null || t.call(this, e), this;
1915
- }), e(this, "updateError", (e) => {
1952
+ }), w(this, "updateError", (e) => {
1916
1953
  var t;
1917
1954
  return (t = this.callbackError) == null || t.call(this, e), this;
1918
- }), this.callback = n, this.callbackError = r, c()) try {
1919
- this.channel = new BroadcastChannel(`${Ze()}__${t}`), this.channel.onmessage = this.update, this.channel.onmessageerror = this.updateError;
1955
+ }), this.callback = t, this.callbackError = n, s()) try {
1956
+ this.channel = new BroadcastChannel(`${$e()}__${e}`), this.channel.onmessage = this.update, this.channel.onmessageerror = this.updateError;
1920
1957
  } catch (e) {
1921
- i.on({
1958
+ r.on({
1922
1959
  group: "broadcast",
1923
1960
  code: "error",
1924
1961
  details: e
@@ -1942,9 +1979,9 @@ var qe = "d-response-loading", Je = class {
1942
1979
  var e;
1943
1980
  return (e = this.channel) == null || e.close(), this.channel = void 0, this;
1944
1981
  }
1945
- }, Ze = () => new E("__ui:broadcast-name__").get(() => `name_${p(1e6, 9999999)}`), Qe = class {
1946
- constructor(t) {
1947
- e(this, "callback", void 0), e(this, "cache", void 0), e(this, "cacheOld", void 0), e(this, "comparisons", []), this.callback = t;
1982
+ }, $e = () => new D("__ui:broadcast-name__").get(() => `name_${f(1e6, 9999999)}`), et = class {
1983
+ constructor(e) {
1984
+ w(this, "callback", void 0), w(this, "cache", void 0), w(this, "cacheOld", void 0), w(this, "comparisons", []), this.callback = e;
1948
1985
  }
1949
1986
  getCache(e) {
1950
1987
  return this.isUpdate(e) && (this.cacheOld = this.cache, this.setCache()), this.cache;
@@ -1964,9 +2001,9 @@ var qe = "d-response-loading", Je = class {
1964
2001
  isUpdate(e) {
1965
2002
  return this.cache === void 0 || this.comparisons.length !== e.length || this.comparisons.findIndex((t, n) => t !== e[n]) >= 0 ? (this.comparisons = [...e], !0) : !1;
1966
2003
  }
1967
- }, $e = class {
2004
+ }, tt = class {
1968
2005
  constructor() {
1969
- e(this, "cache", {});
2006
+ w(this, "cache", {});
1970
2007
  }
1971
2008
  get(e, t, n) {
1972
2009
  return this.getCacheItem(e, t).getCache(n == null ? [] : n);
@@ -1975,11 +2012,11 @@ var qe = "d-response-loading", Je = class {
1975
2012
  return await this.getCacheItem(e, t).getCacheAsync(n == null ? [] : n);
1976
2013
  }
1977
2014
  getCacheItem(e, t) {
1978
- return e in this.cache || (this.cache[e] = new Qe(t)), this.cache[e];
2015
+ return e in this.cache || (this.cache[e] = new et(t)), this.cache[e];
1979
2016
  }
1980
- }, et = class {
2017
+ }, nt = class {
1981
2018
  static getItem() {
1982
- return T.get("__ui:cache-static__", () => new $e());
2019
+ return E.get("__ui:cache-static__", () => new tt());
1983
2020
  }
1984
2021
  static get(e, t, n) {
1985
2022
  return this.getItem().get(e, t, n);
@@ -1990,41 +2027,41 @@ var qe = "d-response-loading", Je = class {
1990
2027
  };
1991
2028
  //#endregion
1992
2029
  //#region src/functions/toDate.ts
1993
- function I(e) {
1994
- var t, n, r, i, a, o, s, c;
2030
+ function L(e) {
2031
+ var t, n, r, i, a, o, s, l;
1995
2032
  if (e instanceof Date) return e;
1996
- if (l(e)) return /* @__PURE__ */ new Date();
2033
+ if (c(e)) return /* @__PURE__ */ new Date();
1997
2034
  if (typeof e == "number") return new Date(e);
1998
- let u = e, d = O.getTimezoneFormat().trim();
2035
+ let u = e, d = k.getTimezoneFormat().trim();
1999
2036
  e.replace(/^([\s\S]+)([-+]\d{2}:?\d{2})$/, (e, t, n) => (u = t, d = n.trim(), e));
2000
- let f = (t = (n = (r = (i = (a = (o = (s = (c = /^\d{4}\d{2}\d{2}$/.exec(u) && `${u.replace(/^(\d{4})(\d{2})(\d{2})$/, "$1-$2-$3")}T00:00:00`) == null ? /^\d{4}\d{2}$/.exec(u) && `${u.replace(/^(\d{4})(\d{2})$/, "$1-$2")}-01T00:00:00` : c) == null ? /^\d{4}\d{2}\d{2} \d{2}:\d{2}:\d{2}$/.exec(u) && u.replace(/^(\d{4})(\d{2})(\d{2}) (\d{2}):(\d{2}):(\d{2})$/, "$1-$2-$3T$4:$5:$6") : s) == null ? /^\d{4}-\d{2}-\d{2}$/.exec(u) && `${u}T00:00:00` : o) == null ? /^\d{4}-\d{2}$/.exec(u) && `${u}-01T00:00:00` : a) == null ? /^\d{4}$/.exec(u) && `${u}-01-01T00:00:00` : i) == null ? /^\d{2}:\d{2}$/.exec(u) && `2000-01-01T${u}:00` : r) == null ? /^\d{2}:\d{2}:\d{2}$/.exec(u) && `2000-01-01T${u}` : n) == null ? u.replace(" ", "T") : t;
2037
+ let f = (t = (n = (r = (i = (a = (o = (s = (l = /^\d{4}\d{2}\d{2}$/.exec(u) && `${u.replace(/^(\d{4})(\d{2})(\d{2})$/, "$1-$2-$3")}T00:00:00`) == null ? /^\d{4}\d{2}$/.exec(u) && `${u.replace(/^(\d{4})(\d{2})$/, "$1-$2")}-01T00:00:00` : l) == null ? /^\d{4}\d{2}\d{2} \d{2}:\d{2}:\d{2}$/.exec(u) && u.replace(/^(\d{4})(\d{2})(\d{2}) (\d{2}):(\d{2}):(\d{2})$/, "$1-$2-$3T$4:$5:$6") : s) == null ? /^\d{4}-\d{2}-\d{2}$/.exec(u) && `${u}T00:00:00` : o) == null ? /^\d{4}-\d{2}$/.exec(u) && `${u}-01T00:00:00` : a) == null ? /^\d{4}$/.exec(u) && `${u}-01-01T00:00:00` : i) == null ? /^\d{2}:\d{2}$/.exec(u) && `2000-01-01T${u}:00` : r) == null ? /^\d{2}:\d{2}:\d{2}$/.exec(u) && `2000-01-01T${u}` : n) == null ? u.replace(" ", "T") : t;
2001
2038
  return /* @__PURE__ */ new Date(`${f.trim()}${d}`);
2002
2039
  }
2003
2040
  //#endregion
2004
2041
  //#region src/functions/getColumn.ts
2005
- function tt(e, t) {
2006
- return i(e, (e) => e == null ? void 0 : e[t], !0);
2042
+ function rt(e, t) {
2043
+ return r(e, (e) => e == null ? void 0 : e[t], !0);
2007
2044
  }
2008
2045
  //#endregion
2009
2046
  //#region src/classes/GeoIntl.ts
2010
- var L = class t {
2011
- static isItem(e = O.getLocation()) {
2012
- return this.getLocation(e) in z;
2047
+ var R = class e {
2048
+ static isItem(e = k.getLocation()) {
2049
+ return this.getLocation(e) in B;
2013
2050
  }
2014
- static getLocation(e = O.getLocation()) {
2015
- if (e in R) return R[e];
2016
- let t = O.find(e);
2017
- return R[e] = t.standard, t.standard;
2051
+ static getLocation(e = k.getLocation()) {
2052
+ if (e in z) return z[e];
2053
+ let t = k.find(e);
2054
+ return z[e] = t.standard, t.standard;
2018
2055
  }
2019
- static getInstance(e = O.getLocation()) {
2020
- let n = this.getLocation(e);
2021
- return n in z ? z[n] : new t(e);
2056
+ static getInstance(t = k.getLocation()) {
2057
+ let n = this.getLocation(t);
2058
+ return n in B ? B[n] : new e(t);
2022
2059
  }
2023
- constructor(t = O.getLocation(), n = C.getItem()) {
2024
- e(this, "errorCenter", void 0), e(this, "geo", void 0), this.errorCenter = n, this.geo = O.find(t);
2025
- let r = this.getLocation();
2026
- if (r in z) return z[r];
2027
- R[t] = r, z[r] = this;
2060
+ constructor(e = k.getLocation(), t = T.getItem()) {
2061
+ w(this, "errorCenter", void 0), w(this, "geo", void 0), this.errorCenter = t, this.geo = k.find(e);
2062
+ let n = this.getLocation();
2063
+ if (n in B) return B[n];
2064
+ z[e] = n, B[n] = this;
2028
2065
  }
2029
2066
  getLocation() {
2030
2067
  return this.geo.standard;
@@ -2055,7 +2092,7 @@ var L = class t {
2055
2092
  type: "language",
2056
2093
  style: t
2057
2094
  };
2058
- return this.display(O.getByCode(e).language, n);
2095
+ return this.display(k.getByCode(e).language, n);
2059
2096
  }
2060
2097
  countryName(e, t) {
2061
2098
  let n = {
@@ -2083,7 +2120,7 @@ var L = class t {
2083
2120
  }
2084
2121
  number(e, t) {
2085
2122
  var n, r;
2086
- return ((n = this.numberObject(t)) == null || (r = n.format) == null ? void 0 : r.call(n, x(e))) || e.toString();
2123
+ return ((n = this.numberObject(t)) == null || (r = n.format) == null ? void 0 : r.call(n, b(e))) || e.toString();
2087
2124
  }
2088
2125
  decimal() {
2089
2126
  var e, t, n;
@@ -2097,7 +2134,7 @@ var L = class t {
2097
2134
  }, i = e.toString().replace(/^([\S\s]+[\d ])([a-zA-Z]{3})$/i, (...e) => (r.currency = String(e[2]).toUpperCase(), String(e[1])));
2098
2135
  if (n) {
2099
2136
  let t = this.numberObject(r);
2100
- return t ? tt(t.formatToParts(x(e)).filter((e) => ["literal", "currency"].indexOf(e.type) === -1), "value").join("") : e.toString();
2137
+ return t ? rt(t.formatToParts(b(e)).filter((e) => ["literal", "currency"].indexOf(e.type) === -1), "value").join("") : e.toString();
2101
2138
  }
2102
2139
  return "currency" in r ? this.number(typeof e == "number" ? e : i, r) : this.number(typeof e == "number" ? e : i, {
2103
2140
  ...r,
@@ -2120,8 +2157,8 @@ var L = class t {
2120
2157
  return this.number(r, n);
2121
2158
  }
2122
2159
  sizeFile(e, t = "byte") {
2123
- let n = x(e);
2124
- if (n > 1024 && f(t)) switch (t) {
2160
+ let n = b(e);
2161
+ if (n > 1024 && d(t)) switch (t) {
2125
2162
  case "byte": return this.sizeFile(n / 1024, "kilobyte");
2126
2163
  case "kilobyte": return this.sizeFile(n / 1024, "megabyte");
2127
2164
  case "megabyte": return this.sizeFile(n / 1024, "gigabyte");
@@ -2137,11 +2174,11 @@ var L = class t {
2137
2174
  });
2138
2175
  }
2139
2176
  percentBy100(e, t) {
2140
- return this.percent(x(e) / 100, t);
2177
+ return this.percent(b(e) / 100, t);
2141
2178
  }
2142
2179
  plural(e, t, n, r) {
2143
2180
  var i;
2144
- let a = x(e), o = t.split("|");
2181
+ let a = b(e), o = t.split("|");
2145
2182
  if (o.length > 1) try {
2146
2183
  if (typeof Intl < "u") {
2147
2184
  var s;
@@ -2176,18 +2213,18 @@ var L = class t {
2176
2213
  return `${this.number(a, r)} ${(i = o == null ? void 0 : o[0]) == null ? "" : i}`.trim();
2177
2214
  }
2178
2215
  date(e, t, n, r) {
2179
- let i = I(e), a = typeof n == "string", o = this.dateOptions(t, a ? n : "short");
2216
+ let i = L(e), a = typeof n == "string", o = this.dateOptions(t, a ? n : "short");
2180
2217
  return r && (o.hour12 = !1), a || Object.assign(o, n), i.toLocaleString(this.getLocation(), o);
2181
2218
  }
2182
2219
  relative(e, t, n) {
2183
- let r = I(e), i = n || /* @__PURE__ */ new Date(), a = {
2220
+ let r = L(e), i = n || /* @__PURE__ */ new Date(), a = {
2184
2221
  numeric: "auto",
2185
2222
  ...typeof t == "string" ? { style: t } : t || {}
2186
2223
  }, o = "second", s = (r.getTime() - i.getTime()) / 1e3;
2187
2224
  return Math.abs(s) >= 60 && (o = "minute", s /= 60, Math.abs(s) >= 60 && (o = "hour", s /= 60, Math.abs(s) >= 24 && (o = "day", s /= 24, Math.abs(s) >= 30 && (o = "month", s /= 30, Math.abs(s) >= 12 && (o = "year", s /= 12))))), this.relativeByValue(s, o, a);
2188
2225
  }
2189
2226
  relativeLimit(e, t, n, r, i, a, o) {
2190
- let s = I(e), c = n || /* @__PURE__ */ new Date(), l = new Date(c), u = new Date(c);
2227
+ let s = L(e), c = n || /* @__PURE__ */ new Date(), l = new Date(c), u = new Date(c);
2191
2228
  return l.setDate(c.getDate() - t), u.setDate(c.getDate() + t), s >= l && s <= u ? this.relative(s, r, c) : this.date(s, a, i, o);
2192
2229
  }
2193
2230
  relativeByValue(e, t, n) {
@@ -2196,7 +2233,7 @@ var L = class t {
2196
2233
  ...typeof n == "string" ? { style: n } : n || {}
2197
2234
  };
2198
2235
  try {
2199
- if (this.hasIntl() && Intl.RelativeTimeFormat !== void 0) return new Intl.RelativeTimeFormat(this.getLocation(), r).format(Math.round(x(e)), t);
2236
+ if (this.hasIntl() && Intl.RelativeTimeFormat !== void 0) return new Intl.RelativeTimeFormat(this.getLocation(), r).format(Math.round(b(e)), t);
2200
2237
  } catch (e) {
2201
2238
  this.errorCenter.on({
2202
2239
  group: "intl",
@@ -2208,7 +2245,7 @@ var L = class t {
2208
2245
  }
2209
2246
  month(e, t) {
2210
2247
  try {
2211
- if (this.hasIntlDateTimeFormat()) return Intl.DateTimeFormat(this.getLocation(), { month: t || "long" }).format(I(e));
2248
+ if (this.hasIntlDateTimeFormat()) return Intl.DateTimeFormat(this.getLocation(), { month: t || "long" }).format(L(e));
2212
2249
  } catch (e) {
2213
2250
  this.errorCenter.on({
2214
2251
  group: "intl",
@@ -2242,7 +2279,7 @@ var L = class t {
2242
2279
  }
2243
2280
  weekday(e, t) {
2244
2281
  try {
2245
- if (this.hasIntlDateTimeFormat()) return new Intl.DateTimeFormat(this.getLocation(), { weekday: t || "long" }).format(I(e));
2282
+ if (this.hasIntlDateTimeFormat()) return new Intl.DateTimeFormat(this.getLocation(), { weekday: t || "long" }).format(L(e));
2246
2283
  } catch (e) {
2247
2284
  this.errorCenter.on({
2248
2285
  group: "intl",
@@ -2344,15 +2381,15 @@ var L = class t {
2344
2381
  "second"
2345
2382
  ].indexOf(e) !== -1 && (n.second = "2-digit")), n;
2346
2383
  }
2347
- }, R = {}, z = {}, nt = class t {
2348
- constructor(t, n = "date", r = O.getLocation()) {
2349
- e(this, "type", void 0), e(this, "code", void 0), e(this, "date", void 0), e(this, "hour24", !1), e(this, "watch", void 0), this.type = n, this.code = r, this.date = I(t), isNaN(this.date.getTime()) && C.on({
2384
+ }, z = {}, B = {}, it = class e {
2385
+ constructor(e, t = "date", n = k.getLocation()) {
2386
+ w(this, "type", void 0), w(this, "code", void 0), w(this, "date", void 0), w(this, "hour24", !1), w(this, "watch", void 0), this.type = t, this.code = n, this.date = L(e), isNaN(this.date.getTime()) && T.on({
2350
2387
  group: "intl",
2351
2388
  code: "invalid"
2352
2389
  });
2353
2390
  }
2354
2391
  getIntl() {
2355
- return L.getInstance(this.code);
2392
+ return R.getInstance(this.code);
2356
2393
  }
2357
2394
  getDate() {
2358
2395
  return this.date;
@@ -2424,8 +2461,8 @@ var L = class t {
2424
2461
  localeSecond(e = "numeric") {
2425
2462
  return this.locale("second", { second: e });
2426
2463
  }
2427
- standard(e = !0) {
2428
- let n = new t(this.date, this.type, "en-GB"), r = [], i;
2464
+ standard(t = !0) {
2465
+ let n = new e(this.date, this.type, "en-GB"), r = [], i;
2429
2466
  return n.setHour24(!0), this.type === "hour-minute" ? i = n.locale(this.type, {
2430
2467
  year: "numeric",
2431
2468
  month: "2-digit",
@@ -2452,10 +2489,10 @@ var L = class t {
2452
2489
  "hour",
2453
2490
  "minute",
2454
2491
  "second"
2455
- ].indexOf(this.type) !== -1 && (i = n.locale("time"))), `${r.join("-")}${i ? `T${i}${e ? n.getTimeZone() : ""}` : ""}`;
2492
+ ].indexOf(this.type) !== -1 && (i = n.locale("time"))), `${r.join("-")}${i ? `T${i}${t ? n.getTimeZone() : ""}` : ""}`;
2456
2493
  }
2457
2494
  setDate(e) {
2458
- return this.date = I(e), this.update(), this;
2495
+ return this.date = L(e), this.update(), this;
2459
2496
  }
2460
2497
  setType(e) {
2461
2498
  return this.type = e, this.update(), this;
@@ -2607,24 +2644,24 @@ var L = class t {
2607
2644
  };
2608
2645
  //#endregion
2609
2646
  //#region src/functions/getItemByPath.ts
2610
- function B(e, t) {
2647
+ function V(e, n) {
2611
2648
  var r;
2612
- if (!u(t, !0)) return;
2613
- let i = se(t, ".", 2), a = i[0];
2614
- return a && e != null && e[a] && n(e[a]) && i != null && i[1] ? B(e[a], i[1]) : (r = e == null ? void 0 : e[a]) == null ? void 0 : r;
2649
+ if (!l(n, !0)) return;
2650
+ let i = oe(n, ".", 2), a = i[0];
2651
+ return a && e != null && e[a] && t(e[a]) && i != null && i[1] ? V(e[a], i[1]) : (r = e == null ? void 0 : e[a]) == null ? void 0 : r;
2615
2652
  }
2616
2653
  //#endregion
2617
2654
  //#region src/functions/toCamelCase.ts
2618
- function rt(e) {
2655
+ function at(e) {
2619
2656
  return e.toString().trim().replace(/[^\w-. ]+/g, "").replace(/[ .]+/g, "-").replace(/(?<=[A-Z])([A-Z])/g, (e) => `${e.toLowerCase()}`).replace(/-+([a-zA-Z0-9])/g, (...e) => `${String(e[1]).toUpperCase()}`).replace(/^([A-Z])/, (e) => `${e.toLowerCase()}`);
2620
2657
  }
2621
2658
  //#endregion
2622
2659
  //#region src/types/formattersTypes.ts
2623
- var V = /* @__PURE__ */ function(e) {
2660
+ var H = /* @__PURE__ */ function(e) {
2624
2661
  return e.currency = "currency", e.date = "date", e.name = "name", e.number = "number", e.plural = "plural", e.unit = "unit", e;
2625
- }({}), it = class {
2626
- constructor(t, n) {
2627
- e(this, "options", void 0), e(this, "list", void 0), this.options = t, this.list = n;
2662
+ }({}), ot = class {
2663
+ constructor(e, t) {
2664
+ w(this, "options", void 0), w(this, "list", void 0), this.options = e, this.list = t;
2628
2665
  }
2629
2666
  is() {
2630
2667
  return !!this.list;
@@ -2636,7 +2673,7 @@ var V = /* @__PURE__ */ function(e) {
2636
2673
  return this.list ? this.isArray() ? this.list.length : 1 : 0;
2637
2674
  }
2638
2675
  getList() {
2639
- return this.list ? A(this.list) : [];
2676
+ return this.list ? j(this.list) : [];
2640
2677
  }
2641
2678
  getOptions() {
2642
2679
  return this.options;
@@ -2645,7 +2682,7 @@ var V = /* @__PURE__ */ function(e) {
2645
2682
  return this.list = e, this;
2646
2683
  }
2647
2684
  to() {
2648
- let e = i(this.getList(), (e) => ({
2685
+ let e = r(this.getList(), (e) => ({
2649
2686
  ...e,
2650
2687
  ...this.getFormatData(e)
2651
2688
  }));
@@ -2653,62 +2690,62 @@ var V = /* @__PURE__ */ function(e) {
2653
2690
  }
2654
2691
  getFormatData(e) {
2655
2692
  let t = {};
2656
- return i(this.options, (n, r) => {
2657
- let i = `${rt(r)}Format`, a = B(e, r);
2658
- n != null && n.transformation ? u(a) ? t[i] = n.transformation(a, e, n.options) : t[i] = "" : t[i] = this.transformation(a, e, n.type, n.options);
2693
+ return r(this.options, (n, r) => {
2694
+ let i = `${at(r)}Format`, a = V(e, r);
2695
+ n != null && n.transformation ? l(a) ? t[i] = n.transformation(a, e, n.options) : t[i] = "" : t[i] = this.transformation(a, e, n.type, n.options);
2659
2696
  }), t;
2660
2697
  }
2661
2698
  transformation(e, t, n, r) {
2662
- if (u(e) || n === V.name) switch (n) {
2663
- case V.currency: return this.formatCurrency(e, t, r);
2664
- case V.date: return this.formatDate(e, r);
2665
- case V.name: return this.formatName(t, r);
2666
- case V.number: return this.formatNumber(e, r);
2667
- case V.plural: return this.formatPlural(e, r);
2668
- case V.unit: return this.formatUnit(e, r);
2699
+ if (l(e) || n === H.name) switch (n) {
2700
+ case H.currency: return this.formatCurrency(e, t, r);
2701
+ case H.date: return this.formatDate(e, r);
2702
+ case H.name: return this.formatName(t, r);
2703
+ case H.number: return this.formatNumber(e, r);
2704
+ case H.plural: return this.formatPlural(e, r);
2705
+ case H.unit: return this.formatUnit(e, r);
2669
2706
  default: return String(e);
2670
2707
  }
2671
2708
  return "";
2672
2709
  }
2673
2710
  formatCurrency(e, t, n) {
2674
2711
  var r;
2675
- let i = n != null && n.currencyPropName ? B(t, n.currencyPropName) : t == null ? void 0 : t.currency;
2676
- return L.getInstance().currency(e, (r = n == null ? void 0 : n.options) == null ? i : r, n == null ? void 0 : n.numberOnly);
2712
+ let i = n != null && n.currencyPropName ? V(t, n.currencyPropName) : t == null ? void 0 : t.currency;
2713
+ return R.getInstance().currency(e, (r = n == null ? void 0 : n.options) == null ? i : r, n == null ? void 0 : n.numberOnly);
2677
2714
  }
2678
2715
  formatDate(e, t) {
2679
- return L.getInstance().date(e, t == null ? void 0 : t.type, t == null ? void 0 : t.options, t == null ? void 0 : t.hour24);
2716
+ return R.getInstance().date(e, t == null ? void 0 : t.type, t == null ? void 0 : t.options, t == null ? void 0 : t.hour24);
2680
2717
  }
2681
2718
  formatName(e, t) {
2682
2719
  var n, r, i;
2683
- let a = B(e, (n = t == null ? void 0 : t.lastPropName) == null ? "lastName" : n), o = B(e, (r = t == null ? void 0 : t.firstPropName) == null ? "firstName" : r), s = B(e, (i = t == null ? void 0 : t.surname) == null ? "surname" : i);
2684
- return a && o ? L.getInstance().fullName(a, o, s, t == null ? void 0 : t.short) : "";
2720
+ let a = V(e, (n = t == null ? void 0 : t.lastPropName) == null ? "lastName" : n), o = V(e, (r = t == null ? void 0 : t.firstPropName) == null ? "firstName" : r), s = V(e, (i = t == null ? void 0 : t.surname) == null ? "surname" : i);
2721
+ return a && o ? R.getInstance().fullName(a, o, s, t == null ? void 0 : t.short) : "";
2685
2722
  }
2686
2723
  formatNumber(e, t) {
2687
- return L.getInstance().number(e, t == null ? void 0 : t.options);
2724
+ return R.getInstance().number(e, t == null ? void 0 : t.options);
2688
2725
  }
2689
2726
  formatPlural(e, t) {
2690
- return t && t.words ? L.getInstance().plural(e, t == null ? void 0 : t.words, t == null ? void 0 : t.options, t == null ? void 0 : t.optionsNumber) : e;
2727
+ return t && t.words ? R.getInstance().plural(e, t == null ? void 0 : t.words, t == null ? void 0 : t.options, t == null ? void 0 : t.optionsNumber) : e;
2691
2728
  }
2692
2729
  formatUnit(e, t) {
2693
- return t && t.unit ? L.getInstance().unit(e, t.unit) : e;
2730
+ return t && t.unit ? R.getInstance().unit(e, t.unit) : e;
2694
2731
  }
2695
- }, at = "f", ot = class t {
2696
- constructor(t = O.getLocation()) {
2697
- e(this, "code", void 0), this.code = t;
2732
+ }, st = "f", ct = class e {
2733
+ constructor(e = k.getLocation()) {
2734
+ w(this, "code", void 0), this.code = e;
2698
2735
  }
2699
- get(e = this.getCode()) {
2700
- let n = O.find(e);
2736
+ get(t = this.getCode()) {
2737
+ let n = k.find(t);
2701
2738
  if (n) {
2702
2739
  var r;
2703
- let e = this.getCountry(n);
2740
+ let t = this.getCountry(n);
2704
2741
  return {
2705
2742
  language: this.getLanguageName(n),
2706
2743
  languageCode: n.language,
2707
- country: e,
2744
+ country: t,
2708
2745
  countryCode: n.country,
2709
2746
  standard: n.standard,
2710
- icon: (r = t.flags) == null ? void 0 : r[n.country],
2711
- label: e,
2747
+ icon: (r = e.flags) == null ? void 0 : r[n.country],
2748
+ label: t,
2712
2749
  value: n.country,
2713
2750
  phoneCode: n.phoneCode
2714
2751
  };
@@ -2723,55 +2760,55 @@ var V = /* @__PURE__ */ function(e) {
2723
2760
  };
2724
2761
  }
2725
2762
  getCode() {
2726
- return this.code || O.getLocation();
2763
+ return this.code || k.getLocation();
2727
2764
  }
2728
2765
  getFlag(e = this.getCode()) {
2729
2766
  var t;
2730
2767
  return (t = this.get(e)) == null ? void 0 : t.icon;
2731
2768
  }
2732
2769
  getList(e, t = !0) {
2733
- let n = i(this.getCodes(e), (e) => this.get(e));
2734
- return t ? new L().sort(n, (e, t) => [e.label, t.label]) : n;
2770
+ let n = r(this.getCodes(e), (e) => this.get(e));
2771
+ return t ? new R().sort(n, (e, t) => [e.label, t.label]) : n;
2735
2772
  }
2736
2773
  getListLanguage(e, t = !0) {
2737
- let n = [], r = /* @__PURE__ */ new Set();
2738
- return i(this.getCodes(e), (e) => {
2774
+ let n = [], i = /* @__PURE__ */ new Set();
2775
+ return r(this.getCodes(e), (e) => {
2739
2776
  let t = this.getLanguage(e);
2740
- t && !r.has(t.value) && (n.push(t), r.add(t.value));
2741
- }), t ? new L().sort(n, (e, t) => [e.label, t.label]) : n;
2777
+ t && !i.has(t.value) && (n.push(t), i.add(t.value));
2778
+ }), t ? new R().sort(n, (e, t) => [e.label, t.label]) : n;
2742
2779
  }
2743
- getNational(e, n = !0) {
2744
- let r = i(this.getList(e, !1), (e) => {
2745
- let n = new t(e.standard).get(e.standard);
2780
+ getNational(t, n = !0) {
2781
+ let i = r(this.getList(t, !1), (t) => {
2782
+ let n = new e(t.standard).get(t.standard);
2746
2783
  return {
2747
- ...e,
2784
+ ...t,
2748
2785
  description: n == null ? void 0 : n.country,
2749
2786
  nationalLanguage: n == null ? void 0 : n.language,
2750
2787
  nationalCountry: n == null ? void 0 : n.country
2751
2788
  };
2752
2789
  });
2753
- return n ? new L().sort(r, (e, t) => [e.label, t.label]) : r;
2790
+ return n ? new R().sort(i, (e, t) => [e.label, t.label]) : i;
2754
2791
  }
2755
- getNationalLanguage(e, n = !0) {
2756
- let r = i(this.getListLanguage(e, !1), (e) => {
2757
- let n = new t(e.standard).getLanguage(e.standard);
2792
+ getNationalLanguage(t, n = !0) {
2793
+ let i = r(this.getListLanguage(t, !1), (t) => {
2794
+ let n = new e(t.standard).getLanguage(t.standard);
2758
2795
  return {
2759
- ...e,
2796
+ ...t,
2760
2797
  description: n == null ? void 0 : n.language,
2761
2798
  nationalLanguage: n == null ? void 0 : n.language,
2762
2799
  nationalCountry: n == null ? void 0 : n.country
2763
2800
  };
2764
2801
  });
2765
- return n ? new L().sort(r, (e, t) => [e.label, t.label]) : r;
2802
+ return n ? new R().sort(i, (e, t) => [e.label, t.label]) : i;
2766
2803
  }
2767
2804
  setCode(e) {
2768
2805
  return this.code = e, this;
2769
2806
  }
2770
2807
  getLocation() {
2771
- return new L(this.code);
2808
+ return new R(this.code);
2772
2809
  }
2773
- getCodes(e) {
2774
- return e == null ? Object.keys(t.flags) : e;
2810
+ getCodes(t) {
2811
+ return t == null ? Object.keys(e.flags) : t;
2775
2812
  }
2776
2813
  getLanguageName(e) {
2777
2814
  return this.getLocation().languageName(e.language);
@@ -2780,7 +2817,7 @@ var V = /* @__PURE__ */ function(e) {
2780
2817
  return this.getLocation().countryName(e.country);
2781
2818
  }
2782
2819
  };
2783
- e(ot, "flags", {
2820
+ w(ct, "flags", {
2784
2821
  RU: "f-ru",
2785
2822
  FR: "f-fr",
2786
2823
  GB: "f-gb",
@@ -3024,7 +3061,7 @@ e(ot, "flags", {
3024
3061
  });
3025
3062
  //#endregion
3026
3063
  //#region src/classes/GeoPhone.ts
3027
- var st = class {
3064
+ var lt = class {
3028
3065
  static get(e) {
3029
3066
  return this.getList().find((t) => e === t.value);
3030
3067
  }
@@ -3058,7 +3095,7 @@ var st = class {
3058
3095
  return this.map || this.makeMap(), (e = this.map) == null ? {} : e;
3059
3096
  }
3060
3097
  static toMask(e, t) {
3061
- if (u(e) && Array.isArray(t) && t.length > 0) {
3098
+ if (l(e) && Array.isArray(t) && t.length > 0) {
3062
3099
  let n = this.removeZero(e), r = n.length;
3063
3100
  for (let e of t) if (this.getUnnecessaryLength(e) === r) return this.toStandard(n, e);
3064
3101
  }
@@ -3080,11 +3117,11 @@ var st = class {
3080
3117
  return (t = (n = e.match(/\*/g)) == null ? void 0 : n.length) == null ? 0 : t;
3081
3118
  }
3082
3119
  static makeList() {
3083
- let e = i(O.getList(), (e) => {
3120
+ let e = r(k.getList(), (e) => {
3084
3121
  if (e != null && e.phoneMask) return {
3085
3122
  phone: (e == null ? void 0 : e.phoneCode) && Number(e.phoneCode.replace(/[^0-9]+/g, "")) || void 0,
3086
3123
  within: (e == null ? void 0 : e.phoneWithin) || 0,
3087
- mask: A(e.phoneMask),
3124
+ mask: j(e.phoneMask),
3088
3125
  value: e.country
3089
3126
  };
3090
3127
  });
@@ -3123,10 +3160,10 @@ var st = class {
3123
3160
  return e.replace(/\*/, this.getWithinSymbol(t));
3124
3161
  }
3125
3162
  };
3126
- e(st, "list", void 0), e(st, "map", void 0);
3163
+ w(lt, "list", void 0), w(lt, "map", void 0);
3127
3164
  //#endregion
3128
3165
  //#region src/classes/GeoUnit.ts
3129
- var H = {}, ct = {
3166
+ var U = {}, ut = {
3130
3167
  "millimeter->inch": .03937007874,
3131
3168
  "centimeter->inch": .3937007874,
3132
3169
  "meter->foot": 3.280839895,
@@ -3139,16 +3176,16 @@ var H = {}, ct = {
3139
3176
  "milliliter->fluid-ounce": .0338140227,
3140
3177
  "liter->gallon": .2641720524,
3141
3178
  "kilometer-per-hour->mile-per-hour": .621371192
3142
- }, lt = class t {
3143
- static getInstance(e = O.getLocation()) {
3144
- let n = O.find(e).standard;
3145
- return n in H ? H[n] : new t(e);
3179
+ }, dt = class e {
3180
+ static getInstance(t = k.getLocation()) {
3181
+ let n = k.find(t).standard;
3182
+ return n in U ? U[n] : new e(t);
3146
3183
  }
3147
- constructor(t = O.getLocation()) {
3148
- e(this, "geo", void 0), this.geo = O.find(t);
3149
- let n = this.getLocation();
3150
- if (n in H) return H[n];
3151
- H[n] = this;
3184
+ constructor(e = k.getLocation()) {
3185
+ w(this, "geo", void 0), this.geo = k.find(e);
3186
+ let t = this.getLocation();
3187
+ if (t in U) return U[t];
3188
+ U[t] = this;
3152
3189
  }
3153
3190
  getLocation() {
3154
3191
  return this.geo.standard;
@@ -3218,8 +3255,8 @@ var H = {}, ct = {
3218
3255
  return ((t = this.geo.unit) == null ? void 0 : t[e]) || e;
3219
3256
  }
3220
3257
  formatUnit(e, t, n) {
3221
- let r = x(e), i = this.getTargetUnit(t), a = this.convert(r, t, i);
3222
- return L.getInstance(this.getLocation()).unit(a, {
3258
+ let r = b(e), i = this.getTargetUnit(t), a = this.convert(r, t, i);
3259
+ return R.getInstance(this.getLocation()).unit(a, {
3223
3260
  unit: i,
3224
3261
  ...n
3225
3262
  });
@@ -3228,16 +3265,16 @@ var H = {}, ct = {
3228
3265
  if (t !== n) {
3229
3266
  if (this.isCelsiusToFahrenheit(t, n)) return this.celsiusToFahrenheit(e);
3230
3267
  let r = `${t}->${n}`;
3231
- if (r in ct) return e * ct[r];
3268
+ if (r in ut) return e * ut[r];
3232
3269
  }
3233
3270
  return e;
3234
3271
  }
3235
3272
  celsiusToFahrenheit(e) {
3236
3273
  return e * 1.8 + 32;
3237
3274
  }
3238
- }, ut = class {
3275
+ }, ft = class {
3239
3276
  static getItem() {
3240
- return T.get("__ui:global-instance__", () => ({}));
3277
+ return E.get("__ui:global-instance__", () => ({}));
3241
3278
  }
3242
3279
  static get(e) {
3243
3280
  var t;
@@ -3247,9 +3284,9 @@ var H = {}, ct = {
3247
3284
  let t = this.getItem();
3248
3285
  Object.keys(t).length > 0 || Object.assign(t, e);
3249
3286
  }
3250
- }, dt = class {
3287
+ }, pt = class {
3251
3288
  constructor() {
3252
- e(this, "data", void 0), e(this, "watch", {}), e(this, "block", !1), e(this, "time", void 0);
3289
+ w(this, "data", void 0), w(this, "watch", {}), w(this, "block", !1), w(this, "time", void 0);
3253
3290
  }
3254
3291
  get(e, t) {
3255
3292
  let n = this.getData();
@@ -3257,7 +3294,7 @@ var H = {}, ct = {
3257
3294
  }
3258
3295
  set(e, t) {
3259
3296
  var n;
3260
- let r = h(t);
3297
+ let r = m(t);
3261
3298
  return r !== ((n = this.data) == null ? void 0 : n[e]) && (this.getData()[e] = r, this.update()), this;
3262
3299
  }
3263
3300
  addWatch(e, t) {
@@ -3283,29 +3320,29 @@ var H = {}, ct = {
3283
3320
  return this.makeWatch(e), this.data = e, this;
3284
3321
  }
3285
3322
  makeWatch(e) {
3286
- return i(this.watch, (t, n) => {
3323
+ return r(this.watch, (t, n) => {
3287
3324
  var r;
3288
3325
  ((r = this.data) == null ? void 0 : r[n]) !== (e == null ? void 0 : e[n]) && t.forEach((t) => t(e[n]));
3289
3326
  }), this;
3290
3327
  }
3291
- }, ft = class extends dt {
3328
+ }, mt = class extends pt {
3292
3329
  init() {
3293
- return this.initData(), c() && addEventListener("hashchange", () => this.reload()), this;
3330
+ return this.initData(), s() && addEventListener("hashchange", () => this.reload()), this;
3294
3331
  }
3295
3332
  getLocation() {
3296
3333
  let e = {};
3297
- if (c()) {
3334
+ if (s()) {
3298
3335
  let t = location.hash.matchAll(/([\w-]+)[:=]([^;]+)/gi);
3299
- for (let n of t) e[n[1]] = w(n[2]);
3336
+ for (let n of t) e[n[1]] = fe(n[2]);
3300
3337
  }
3301
3338
  return e;
3302
3339
  }
3303
3340
  update() {
3304
- if (c()) {
3341
+ if (s()) {
3305
3342
  clearTimeout(this.time), this.block = !0;
3306
3343
  try {
3307
3344
  let e = this.getData();
3308
- history.replaceState(null, "", `#${s(e, "=", ";")}`);
3345
+ history.replaceState(null, "", `#${o(e, "=", ";")}`);
3309
3346
  } finally {
3310
3347
  this.time = setTimeout(() => {
3311
3348
  this.block = !1;
@@ -3314,9 +3351,9 @@ var H = {}, ct = {
3314
3351
  }
3315
3352
  return this;
3316
3353
  }
3317
- }, pt = class {
3354
+ }, ht = class {
3318
3355
  static getItem() {
3319
- return T.get("__ui:hash-instance__", () => new ft());
3356
+ return E.get("__ui:hash-instance__", () => new mt());
3320
3357
  }
3321
3358
  static get(e, t) {
3322
3359
  return this.getItem().get(e, t);
@@ -3333,35 +3370,35 @@ var H = {}, ct = {
3333
3370
  static reload() {
3334
3371
  this.getItem().reload();
3335
3372
  }
3336
- }, mt = 320, ht = "--LOAD--", gt = class {
3373
+ }, gt = 320, _t = "--LOAD--", vt = class {
3337
3374
  static is(e) {
3338
3375
  return e in this.icons || this.getName(e) in this.icons;
3339
3376
  }
3340
3377
  static async get(e, t = "", n = 18e4) {
3341
3378
  let r = this.getRaw(e, t);
3342
- return typeof r == "string" ? r === ht && n > 0 ? (await this.wait(), this.get(e, t, n - mt)) : r : m(r) ? await r() : await r;
3379
+ return typeof r == "string" ? r === _t && n > 0 ? (await this.wait(), this.get(e, t, n - gt)) : r : p(r) ? await r() : await r;
3343
3380
  }
3344
3381
  static getAsync(e, t = "") {
3345
3382
  let n = this.getRaw(e, t);
3346
- return typeof n == "string" && n !== ht ? n : "";
3383
+ return typeof n == "string" && n !== _t ? n : "";
3347
3384
  }
3348
3385
  static getNameList() {
3349
- return i(this.icons, (e, t) => t.replace(/^@/, ""));
3386
+ return r(this.icons, (e, t) => t.replace(/^@/, ""));
3350
3387
  }
3351
3388
  static getUrlGlobal() {
3352
- return `${F.isLocalhost(), ""}${this.url}`;
3389
+ return `${I.isLocalhost(), ""}${this.url}`;
3353
3390
  }
3354
3391
  static add(e, t) {
3355
3392
  this.icons[this.getName(e)] = t;
3356
3393
  }
3357
3394
  static addLoad(e) {
3358
- this.icons[this.getName(e)] = ht;
3395
+ this.icons[this.getName(e)] = _t;
3359
3396
  }
3360
3397
  static addGlobal(e, t) {
3361
3398
  this.icons[this.getName(e)] = `${this.getUrlGlobal()}${t}`;
3362
3399
  }
3363
3400
  static addByList(e) {
3364
- i(e, (e, t) => this.add(t, e));
3401
+ r(e, (e, t) => this.add(t, e));
3365
3402
  }
3366
3403
  static setUrl(e) {
3367
3404
  this.url = e;
@@ -3377,61 +3414,61 @@ var H = {}, ct = {
3377
3414
  return (n = (r = (i = this.icons) == null ? void 0 : i[this.getName(e)]) == null ? (a = this.icons) == null ? void 0 : a[e] : r) == null ? `${e.replace(/^@/, t || this.url)}.svg` : n;
3378
3415
  }
3379
3416
  static wait() {
3380
- return new Promise((e) => setTimeout(() => e(), mt));
3417
+ return new Promise((e) => setTimeout(() => e(), gt));
3381
3418
  }
3382
3419
  };
3383
- e(gt, "icons", {}), e(gt, "url", "/icons/");
3420
+ w(vt, "icons", {}), w(vt, "url", "/icons/");
3384
3421
  //#endregion
3385
3422
  //#region src/functions/getElementItem.ts
3386
- function _t(e, t, n) {
3423
+ function yt(e, t, n) {
3387
3424
  var r, i;
3388
- return (r = (i = k(e)) == null ? void 0 : i[t]) == null ? n : r;
3425
+ return (r = (i = A(e)) == null ? void 0 : i[t]) == null ? n : r;
3389
3426
  }
3390
3427
  //#endregion
3391
3428
  //#region src/functions/setElementItem.ts
3392
- function vt(e, t, r) {
3393
- let a = k(e);
3429
+ function bt(e, n, i) {
3430
+ let a = A(e);
3394
3431
  if (a) {
3395
- let e = _t(a, t);
3396
- if (n(e) && n(r)) i(r, (t, n) => {
3397
- e[n] = h(t);
3432
+ let e = yt(a, n);
3433
+ if (t(e) && t(i)) r(i, (t, n) => {
3434
+ e[n] = m(t);
3398
3435
  });
3399
3436
  else {
3400
- let e = h(r);
3401
- !(t in a) && typeof e == "string" ? a.setAttribute(t.toString(), e) : a[t] = e;
3437
+ let e = m(i);
3438
+ !(n in a) && typeof e == "string" ? a.setAttribute(n.toString(), e) : a[n] = e;
3402
3439
  }
3403
3440
  }
3404
3441
  return a;
3405
3442
  }
3406
3443
  //#endregion
3407
3444
  //#region src/functions/createElement.ts
3408
- function U(e, t = "div", n, a) {
3409
- if (!c()) return;
3445
+ function W(e, t = "div", i, a) {
3446
+ if (!s()) return;
3410
3447
  let o = document.createElement(t);
3411
- return typeof n == "function" ? n(o) : r(n) && i(n, (e, t) => {
3412
- vt(o, t, e);
3448
+ return typeof i == "function" ? i(o) : n(i) && r(i, (e, t) => {
3449
+ bt(o, t, e);
3413
3450
  }), e == null || e.insertBefore(o, a == null ? null : a), o;
3414
3451
  }
3415
3452
  //#endregion
3416
3453
  //#region src/functions/encodeAttribute.ts
3417
- var yt = {
3454
+ var xt = {
3418
3455
  "&": "&amp;",
3419
3456
  "<": "&lt;",
3420
3457
  ">": "&gt;",
3421
3458
  "\"": "&quot;",
3422
3459
  "'": "&#39;"
3423
3460
  };
3424
- function W(e) {
3461
+ function G(e) {
3425
3462
  return String(e).replace(/[&<>"']/g, (e) => {
3426
3463
  var t;
3427
- return (t = yt == null ? void 0 : yt[e]) == null ? e : t;
3464
+ return (t = xt == null ? void 0 : xt[e]) == null ? e : t;
3428
3465
  });
3429
3466
  }
3430
3467
  //#endregion
3431
3468
  //#region src/classes/MetaManager.ts
3432
- var G = class {
3433
- constructor(t, n = !1) {
3434
- e(this, "listMeta", void 0), e(this, "isProperty", void 0), e(this, "items", {}), this.listMeta = t, this.isProperty = n, this.update();
3469
+ var K = class {
3470
+ constructor(e, t = !1) {
3471
+ w(this, "listMeta", void 0), w(this, "isProperty", void 0), w(this, "items", {}), this.listMeta = e, this.isProperty = t, this.update();
3435
3472
  }
3436
3473
  getListMeta() {
3437
3474
  return this.listMeta;
@@ -3444,19 +3481,19 @@ var G = class {
3444
3481
  return this.items;
3445
3482
  }
3446
3483
  html() {
3447
- return i(this.listMeta, (e) => this.toHtmlString(e)).join("");
3484
+ return r(this.listMeta, (e) => this.toHtmlString(e)).join("");
3448
3485
  }
3449
3486
  set(e, t) {
3450
3487
  return this.get(e) !== t && this.setItem(e, t).setMeta(e), this;
3451
3488
  }
3452
3489
  setByList(e) {
3453
- return i(e, (e, t) => this.set(t, String(e))), this;
3490
+ return r(e, (e, t) => this.set(t, String(e))), this;
3454
3491
  }
3455
3492
  getAttributeName() {
3456
3493
  return this.isProperty ? "property" : "name";
3457
3494
  }
3458
3495
  findMetaElement(e) {
3459
- if (!c()) return;
3496
+ if (!s()) return;
3460
3497
  let t = `meta[${this.getAttributeName()}="${e}"]`;
3461
3498
  return document.querySelector(t) || void 0;
3462
3499
  }
@@ -3465,23 +3502,23 @@ var G = class {
3465
3502
  }
3466
3503
  setMeta(e) {
3467
3504
  var t;
3468
- if (!c()) return this;
3505
+ if (!s()) return this;
3469
3506
  let n = (t = this.items[e]) == null ? "" : t;
3470
3507
  if (e === "title") return document.title = n, this;
3471
3508
  let r = this.findMetaElement(e);
3472
3509
  if (r) return r.content = n, this;
3473
3510
  let i = { content: n };
3474
- return this.isProperty ? i.property = e : i.name = e, U(document.head, "meta", i), this;
3511
+ return this.isProperty ? i.property = e : i.name = e, W(document.head, "meta", i), this;
3475
3512
  }
3476
3513
  toHtmlString(e) {
3477
3514
  var t;
3478
3515
  let n = (t = this.items[e]) == null ? "" : t;
3479
3516
  if (e === "title") return "";
3480
- let r = W(n);
3517
+ let r = G(n);
3481
3518
  return r ? `<meta ${this.getAttributeName()}="${e}" content="${r}">` : "";
3482
3519
  }
3483
3520
  toHtmlTitle(e) {
3484
- return fe(e);
3521
+ return me(e);
3485
3522
  }
3486
3523
  update() {
3487
3524
  return this.listMeta.forEach((e) => {
@@ -3489,121 +3526,121 @@ var G = class {
3489
3526
  this.items[e] = (t = (n = this.findMetaElement(e)) == null ? void 0 : n.content) == null ? "" : t;
3490
3527
  }), this;
3491
3528
  }
3492
- }, K = /* @__PURE__ */ function(e) {
3529
+ }, q = /* @__PURE__ */ function(e) {
3493
3530
  return e.title = "title", e.description = "description", e.keywords = "keywords", e.canonical = "canonical", e.robots = "robots", e.author = "author", e;
3494
- }({}), bt = /* @__PURE__ */ function(e) {
3531
+ }({}), St = /* @__PURE__ */ function(e) {
3495
3532
  return e.indexFollow = "index, follow", e.noIndexFollow = "noindex, follow", e.indexNoFollow = "index, nofollow", e.noIndexNoFollow = "noindex, nofollow", e.noArchive = "noarchive", e.noSnippet = "nosnippet", e.noImageIndex = "noimageindex", e.images = "images", e.noTranslate = "notranslate", e.noPreview = "nopreview", e.textOnly = "textonly", e.noIndexSubpages = "noindex, noarchive", e.none = "none", e;
3496
- }({}), q = /* @__PURE__ */ function(e) {
3533
+ }({}), J = /* @__PURE__ */ function(e) {
3497
3534
  return e.title = "og:title", e.type = "og:type", e.url = "og:url", e.image = "og:image", e.description = "og:description", e.locale = "og:locale", e.siteName = "og:site_name", e.localeAlternate = "og:locale:alternate", e.imageUrl = "og:image:url", e.imageSecureUrl = "og:image:secure_url", e.imageType = "og:image:type", e.imageWidth = "og:image:width", e.imageHeight = "og:image:height", e.imageAlt = "og:image:alt", e.video = "og:video", e.videoUrl = "og:video:url", e.videoSecureUrl = "og:video:secure_url", e.videoType = "og:video:type", e.videoWidth = "og:video:width", e.videoHeight = "og:video:height", e.audio = "og:audio", e.audioSecureUrl = "og:audio:secure_url", e.audioType = "og:audio:type", e.articlePublishedTime = "article:published_time", e.articleModifiedTime = "article:modified_time", e.articleExpirationTime = "article:expiration_time", e.articleAuthor = "article:author", e.articleSection = "article:section", e.articleTag = "article:tag", e.bookAuthor = "book:author", e.bookIsbn = "book:isbn", e.bookReleaseDate = "book:release_date", e.bookTag = "book:tag", e.musicDuration = "music:duration", e.musicAlbum = "music:album", e.musicAlbumDisc = "music:album:disc", e.musicAlbumTrack = "music:album:track", e.musicMusician = "music:musician", e.musicSong = "music:song", e.musicSongDisc = "music:song:disc", e.musicSongTrack = "music:song:track", e.musicReleaseDate = "music:release_date", e.musicCreator = "music:creator", e.videoActor = "video:actor", e.videoActorRole = "video:actor:role", e.videoDirector = "video:director", e.videoWriter = "video:writer", e.videoDuration = "video:duration", e.videoReleaseDate = "video:release_date", e.videoTag = "video:tag", e.videoSeries = "video:series", e.profileFirstName = "profile:first_name", e.profileLastName = "profile:last_name", e.profileUsername = "profile:username", e.profileGender = "profile:gender", e.productBrand = "product:brand", e.productAvailability = "product:availability", e.productCondition = "product:condition", e.productPriceAmount = "product:price:amount", e.productPriceCurrency = "product:price:currency", e.productRetailerItemId = "product:retailer_item_id", e.productCategory = "product:category", e.productEan = "product:ean", e.productIsbn = "product:isbn", e.productMfrPartNo = "product:mfr_part_no", e.productUpc = "product:upc", e.productWeightValue = "product:weight:value", e.productWeightUnits = "product:weight:units", e.productColor = "product:color", e.productMaterial = "product:material", e.productPattern = "product:pattern", e.productAgeGroup = "product:age_group", e.productGender = "product:gender", e;
3498
- }({}), xt = /* @__PURE__ */ function(e) {
3535
+ }({}), Ct = /* @__PURE__ */ function(e) {
3499
3536
  return e.website = "website", e.article = "article", e.video = "video.other", e.videoTvShow = "video.tv_show", e.videoEpisode = "video.episode", e.videoMovie = "video.movie", e.musicAlbum = "music.album", e.musicPlaylist = "music.playlist", e.musicSong = "music.song", e.musicRadioStation = "music.radio_station", e.app = "app", e.product = "product", e.business = "business.business", e.place = "place", e.event = "event", e.profile = "profile", e.book = "book", e;
3500
- }({}), St = /* @__PURE__ */ function(e) {
3537
+ }({}), wt = /* @__PURE__ */ function(e) {
3501
3538
  return e.inStock = "in stock", e.outOfStock = "out of stock", e.preorder = "preorder", e.backorder = "backorder", e.discontinued = "discontinued", e.pending = "pending", e;
3502
- }({}), Ct = /* @__PURE__ */ function(e) {
3539
+ }({}), Tt = /* @__PURE__ */ function(e) {
3503
3540
  return e.new = "new", e.used = "used", e.refurbished = "refurbished", e;
3504
- }({}), wt = /* @__PURE__ */ function(e) {
3541
+ }({}), Et = /* @__PURE__ */ function(e) {
3505
3542
  return e.newborn = "newborn", e.infant = "infant", e.toddler = "toddler", e.kids = "kids", e.adult = "adult", e;
3506
- }({}), Tt = /* @__PURE__ */ function(e) {
3543
+ }({}), Dt = /* @__PURE__ */ function(e) {
3507
3544
  return e.female = "female", e.male = "male", e.unisex = "unisex", e;
3508
- }({}), J = /* @__PURE__ */ function(e) {
3545
+ }({}), Y = /* @__PURE__ */ function(e) {
3509
3546
  return e.card = "twitter:card", e.site = "twitter:site", e.creator = "twitter:creator", e.url = "twitter:url", e.title = "twitter:title", e.description = "twitter:description", e.image = "twitter:image", e.imageAlt = "twitter:image:alt", e.imageSrc = "twitter:image:src", e.imageWidth = "twitter:image:width", e.imageHeight = "twitter:image:height", e.label1 = "twitter:label1", e.data1 = "twitter:data1", e.label2 = "twitter:label2", e.data2 = "twitter:data2", e.appNameIphone = "twitter:app:name:iphone", e.appIdIphone = "twitter:app:id:iphone", e.appUrlIphone = "twitter:app:url:iphone", e.appNameIpad = "twitter:app:name:ipad", e.appIdIpad = "twitter:app:id:ipad", e.appUrlIpad = "twitter:app:url:ipad", e.appNameGooglePlay = "twitter:app:name:googleplay", e.appIdGooglePlay = "twitter:app:id:googleplay", e.appUrlGooglePlay = "twitter:app:url:googleplay", e.player = "twitter:player", e.playerWidth = "twitter:player:width", e.playerHeight = "twitter:player:height", e.playerStream = "twitter:player:stream", e.playerStreamContentType = "twitter:player:stream:content_type", e;
3510
- }({}), Et = /* @__PURE__ */ function(e) {
3547
+ }({}), Ot = /* @__PURE__ */ function(e) {
3511
3548
  return e.summary = "summary", e.summaryLargeImage = "summary_large_image", e.app = "app", e.player = "player", e.product = "product", e.gallery = "gallery", e.photo = "photo", e.leadGeneration = "lead_generation", e.audio = "audio", e.poll = "poll", e;
3512
- }({}), Dt = class extends G {
3549
+ }({}), kt = class extends K {
3513
3550
  constructor() {
3514
- super(Object.values(q), !0);
3551
+ super(Object.values(J), !0);
3515
3552
  }
3516
3553
  getTitle() {
3517
- return this.get(q.title);
3554
+ return this.get(J.title);
3518
3555
  }
3519
3556
  getType() {
3520
- return this.get(q.type);
3557
+ return this.get(J.type);
3521
3558
  }
3522
3559
  getUrl() {
3523
- return this.get(q.url);
3560
+ return this.get(J.url);
3524
3561
  }
3525
3562
  getImage() {
3526
- return this.get(q.image);
3563
+ return this.get(J.image);
3527
3564
  }
3528
3565
  getDescription() {
3529
- return this.get(q.description);
3566
+ return this.get(J.description);
3530
3567
  }
3531
3568
  getLocale() {
3532
- return this.get(q.locale);
3569
+ return this.get(J.locale);
3533
3570
  }
3534
3571
  getSiteName() {
3535
- return this.get(q.siteName);
3572
+ return this.get(J.siteName);
3536
3573
  }
3537
3574
  setTitle(e) {
3538
- return this.set(q.title, e);
3575
+ return this.set(J.title, e);
3539
3576
  }
3540
3577
  setType(e) {
3541
- return this.set(q.type, e);
3578
+ return this.set(J.type, e);
3542
3579
  }
3543
3580
  setUrl(e) {
3544
- return this.set(q.url, e);
3581
+ return this.set(J.url, e);
3545
3582
  }
3546
3583
  setImage(e) {
3547
- return this.set(q.image, e);
3584
+ return this.set(J.image, e);
3548
3585
  }
3549
3586
  setDescription(e) {
3550
- return this.set(q.description, e);
3587
+ return this.set(J.description, e);
3551
3588
  }
3552
3589
  setLocale(e) {
3553
- return this.set(q.locale, e);
3590
+ return this.set(J.locale, e);
3554
3591
  }
3555
3592
  setSiteName(e) {
3556
- return this.set(q.siteName, e);
3593
+ return this.set(J.siteName, e);
3557
3594
  }
3558
- }, Ot = class extends G {
3595
+ }, At = class extends K {
3559
3596
  constructor() {
3560
- super(Object.values(J));
3597
+ super(Object.values(Y));
3561
3598
  }
3562
3599
  getCard() {
3563
- return this.get(J.card);
3600
+ return this.get(Y.card);
3564
3601
  }
3565
3602
  getSite() {
3566
- return this.get(J.site);
3603
+ return this.get(Y.site);
3567
3604
  }
3568
3605
  getCreator() {
3569
- return this.get(J.creator);
3606
+ return this.get(Y.creator);
3570
3607
  }
3571
3608
  getUrl() {
3572
- return this.get(J.url);
3609
+ return this.get(Y.url);
3573
3610
  }
3574
3611
  getTitle() {
3575
- return this.get(J.title);
3612
+ return this.get(Y.title);
3576
3613
  }
3577
3614
  getDescription() {
3578
- return this.get(J.description);
3615
+ return this.get(Y.description);
3579
3616
  }
3580
3617
  getImage() {
3581
- return this.get(J.image);
3618
+ return this.get(Y.image);
3582
3619
  }
3583
3620
  setCard(e) {
3584
- return this.set(J.card, e), this;
3621
+ return this.set(Y.card, e), this;
3585
3622
  }
3586
3623
  setSite(e) {
3587
- return this.set(J.site, e), this;
3624
+ return this.set(Y.site, e), this;
3588
3625
  }
3589
3626
  setCreator(e) {
3590
- return this.set(J.creator, e), this;
3627
+ return this.set(Y.creator, e), this;
3591
3628
  }
3592
3629
  setUrl(e) {
3593
- return this.set(J.url, e), this;
3630
+ return this.set(Y.url, e), this;
3594
3631
  }
3595
3632
  setTitle(e) {
3596
- return this.set(J.title, e), this;
3633
+ return this.set(Y.title, e), this;
3597
3634
  }
3598
3635
  setDescription(e) {
3599
- return this.set(J.description, e), this;
3636
+ return this.set(Y.description, e), this;
3600
3637
  }
3601
3638
  setImage(e) {
3602
- return this.set(J.image, e), this;
3639
+ return this.set(Y.image, e), this;
3603
3640
  }
3604
- }, kt = class extends G {
3641
+ }, jt = class extends K {
3605
3642
  constructor() {
3606
- super(Object.values(K)), e(this, "suffix", void 0), e(this, "og", void 0), e(this, "twitter", void 0), this.og = new Dt(), this.twitter = new Ot();
3643
+ super(Object.values(q)), w(this, "suffix", void 0), w(this, "og", void 0), w(this, "twitter", void 0), this.og = new kt(), this.twitter = new At();
3607
3644
  }
3608
3645
  getOg() {
3609
3646
  return this.og;
@@ -3612,26 +3649,26 @@ var G = class {
3612
3649
  return this.twitter;
3613
3650
  }
3614
3651
  getTitle() {
3615
- let e = this.get(K.title);
3616
- return !u(e) && c() && (e = document.title), e.replace(this.getSuffix(), "").trim();
3652
+ let e = this.get(q.title);
3653
+ return !l(e) && s() && (e = document.title), e.replace(this.getSuffix(), "").trim();
3617
3654
  }
3618
3655
  getKeywords() {
3619
- return this.get(K.keywords);
3656
+ return this.get(q.keywords);
3620
3657
  }
3621
3658
  getDescription() {
3622
- return this.get(K.description);
3659
+ return this.get(q.description);
3623
3660
  }
3624
3661
  getImage() {
3625
3662
  return this.og.getImage();
3626
3663
  }
3627
3664
  getCanonical() {
3628
- return this.get(K.canonical);
3665
+ return this.get(q.canonical);
3629
3666
  }
3630
3667
  getRobots() {
3631
- return this.get(K.robots);
3668
+ return this.get(q.robots);
3632
3669
  }
3633
3670
  getAuthor() {
3634
- return this.get(K.author);
3671
+ return this.get(q.author);
3635
3672
  }
3636
3673
  getSiteName() {
3637
3674
  return this.og.getSiteName();
@@ -3640,26 +3677,26 @@ var G = class {
3640
3677
  return this.og.getLocale();
3641
3678
  }
3642
3679
  setTitle(e) {
3643
- let t = u(e) ? `${e}${this.getSuffix()}` : this.suffix ? this.suffix : "";
3644
- return c() && (document.title = t), this.set(K.title, t), this.og.setTitle(t), this.twitter.setTitle(t), this;
3680
+ let t = l(e) ? `${e}${this.getSuffix()}` : this.suffix ? this.suffix : "";
3681
+ return s() && (document.title = t), this.set(q.title, t), this.og.setTitle(t), this.twitter.setTitle(t), this;
3645
3682
  }
3646
3683
  setKeywords(e) {
3647
- return this.set(K.keywords, A(e).join(", ")), this;
3684
+ return this.set(q.keywords, j(e).join(", ")), this;
3648
3685
  }
3649
3686
  setDescription(e) {
3650
- return this.set(K.description, e), this;
3687
+ return this.set(q.description, e), this;
3651
3688
  }
3652
3689
  setImage(e) {
3653
3690
  return this.og.setImage(e), this.twitter.setImage(e), this;
3654
3691
  }
3655
3692
  setCanonical(e) {
3656
- return this.set(K.canonical, e), this.og.setUrl(e), this.twitter.setUrl(e), this;
3693
+ return this.set(q.canonical, e), this.og.setUrl(e), this.twitter.setUrl(e), this;
3657
3694
  }
3658
3695
  setRobots(e) {
3659
- return this.set(K.robots, e), this;
3696
+ return this.set(q.robots, e), this;
3660
3697
  }
3661
3698
  setAuthor(e) {
3662
- return this.set(K.author, e), this;
3699
+ return this.set(q.author, e), this;
3663
3700
  }
3664
3701
  setSiteName(e) {
3665
3702
  return this.og.setSiteName(e), this.twitter.setSite(e), this;
@@ -3674,14 +3711,14 @@ var G = class {
3674
3711
  return `${super.html()}${this.og.html()}${this.twitter.html()}`;
3675
3712
  }
3676
3713
  htmlTitle() {
3677
- return this.toHtmlTitle(this.get(K.title));
3714
+ return this.toHtmlTitle(this.get(q.title));
3678
3715
  }
3679
3716
  getSuffix() {
3680
- return u(this.suffix) ? ` - ${this.suffix}` : "";
3717
+ return l(this.suffix) ? ` - ${this.suffix}` : "";
3681
3718
  }
3682
- }, At = class {
3719
+ }, Mt = class {
3683
3720
  static getItem() {
3684
- return T.get("__ui:meta-instance__", () => new kt());
3721
+ return E.get("__ui:meta-instance__", () => new jt());
3685
3722
  }
3686
3723
  static getOg() {
3687
3724
  return this.getItem().getOg();
@@ -3752,12 +3789,12 @@ var G = class {
3752
3789
  static htmlTitle() {
3753
3790
  return this.getItem().htmlTitle();
3754
3791
  }
3755
- }, Y = class t {
3792
+ }, X = class e {
3756
3793
  static getInstance() {
3757
- return T.get("__ui:url-item__", () => new t());
3794
+ return E.get("__ui:url-item__", () => new e());
3758
3795
  }
3759
- constructor(t) {
3760
- e(this, "url", void 0), this.set(t);
3796
+ constructor(e) {
3797
+ w(this, "url", void 0), this.set(e);
3761
3798
  }
3762
3799
  get href() {
3763
3800
  return this.url.href;
@@ -3805,18 +3842,18 @@ var G = class {
3805
3842
  getParams() {
3806
3843
  let e = {};
3807
3844
  return this.url.searchParams.forEach((t, n) => {
3808
- e[n] = w(t);
3845
+ e[n] = fe(t);
3809
3846
  }), e;
3810
3847
  }
3811
3848
  set(e) {
3812
- return this.url = e ? e instanceof URL ? new URL(e.href) : /^[a-z0-9+.-]+:/i.test(e) ? new URL(e) : c() ? new URL(e, window.location.origin) : new URL(e, "http://localhost") : c() ? new URL(window.location.href) : new URL("http://localhost"), this;
3849
+ return this.url = e ? e instanceof URL ? new URL(e.href) : /^[a-z0-9+.-]+:/i.test(e) ? new URL(e) : s() ? new URL(e, window.location.origin) : new URL(e, "http://localhost") : s() ? new URL(window.location.href) : new URL("http://localhost"), this;
3813
3850
  }
3814
3851
  setParam(e, t) {
3815
3852
  return this.url.searchParams.set(e, t), this;
3816
3853
  }
3817
3854
  setParams(e) {
3818
- return Array.from(this.url.searchParams.keys()).forEach((e) => this.deleteParam(e)), i(e, (e, t) => {
3819
- u(e) && this.setParam(t, String(e));
3855
+ return Array.from(this.url.searchParams.keys()).forEach((e) => this.deleteParam(e)), r(e, (e, t) => {
3856
+ l(e) && this.setParam(t, String(e));
3820
3857
  }), this;
3821
3858
  }
3822
3859
  deleteParam(e) {
@@ -3828,18 +3865,18 @@ var G = class {
3828
3865
  toJSON() {
3829
3866
  return this.url.toJSON();
3830
3867
  }
3831
- }, jt = class extends dt {
3868
+ }, Nt = class extends pt {
3832
3869
  init() {
3833
- return c() && addEventListener("popstate", () => {
3834
- Y.getInstance().set(), this.reload();
3870
+ return s() && addEventListener("popstate", () => {
3871
+ X.getInstance().set(), this.reload();
3835
3872
  }), this.initData(), this;
3836
3873
  }
3837
3874
  getLocation() {
3838
- return c() && Y.getInstance().set(), Y.getInstance().getParams();
3875
+ return s() && X.getInstance().set(), X.getInstance().getParams();
3839
3876
  }
3840
3877
  update() {
3841
- let e = this.getData(), t = Y.getInstance();
3842
- if (t.setParams(e), c()) {
3878
+ let e = this.getData(), t = X.getInstance();
3879
+ if (t.setParams(e), s()) {
3843
3880
  clearTimeout(this.time), this.block = !0;
3844
3881
  try {
3845
3882
  let e = t.search, n = `${location.pathname}${e}${location.hash}`;
@@ -3852,9 +3889,9 @@ var G = class {
3852
3889
  }
3853
3890
  return this;
3854
3891
  }
3855
- }, Mt = class {
3892
+ }, Pt = class {
3856
3893
  static getItem() {
3857
- return T.get("__ui:query-instance__", () => new jt());
3894
+ return E.get("__ui:query-instance__", () => new Nt());
3858
3895
  }
3859
3896
  static get(e, t) {
3860
3897
  return this.getItem().get(e, t);
@@ -3871,9 +3908,9 @@ var G = class {
3871
3908
  static reload() {
3872
3909
  this.getItem().reload();
3873
3910
  }
3874
- }, Nt = class {
3875
- constructor(t, n = 320, r = !1) {
3876
- e(this, "callback", void 0), e(this, "delay", void 0), e(this, "timerId", void 0), e(this, "startTime", void 0), e(this, "remaining", void 0), e(this, "completed", !1), this.callback = t, this.delay = n, r || this.resume();
3911
+ }, Ft = class {
3912
+ constructor(e, t = 320, n = !1) {
3913
+ w(this, "callback", void 0), w(this, "delay", void 0), w(this, "timerId", void 0), w(this, "startTime", void 0), w(this, "remaining", void 0), w(this, "completed", !1), this.callback = e, this.delay = t, n || this.resume();
3877
3914
  }
3878
3915
  resume() {
3879
3916
  if (this.timerId || this.completed) return this;
@@ -3909,14 +3946,14 @@ var G = class {
3909
3946
  stop() {
3910
3947
  return this.timerId && (clearTimeout(this.timerId), this.timerId = void 0), this;
3911
3948
  }
3912
- }, Pt = class {
3949
+ }, It = class {
3913
3950
  static async is() {
3914
3951
  let e = await this.get();
3915
3952
  return e !== -1 && e <= 8;
3916
3953
  }
3917
3954
  static async get() {
3918
3955
  var e;
3919
- if (!c()) return 0;
3956
+ if (!s()) return 0;
3920
3957
  let t = (e = this.getStorage().get()) == null ? -1 : e;
3921
3958
  if (!this.calculate && t === -1) {
3922
3959
  let e = await this.init();
@@ -3925,14 +3962,14 @@ var G = class {
3925
3962
  return t;
3926
3963
  }
3927
3964
  static getStorage() {
3928
- return new E("__ui:scrollbar__", !0);
3965
+ return new D("__ui:scrollbar__", !0);
3929
3966
  }
3930
3967
  static getCalculate() {
3931
3968
  return this.calculate;
3932
3969
  }
3933
3970
  static createElement() {
3934
- return U(document.body, "div", (e) => {
3935
- e.style.height = "24px", e.style.overflowY = "scroll", e.style.position = "fixed", e.style.width = "100%", U(e, "div", (e) => {
3971
+ return W(document.body, "div", (e) => {
3972
+ e.style.height = "24px", e.style.overflowY = "scroll", e.style.position = "fixed", e.style.width = "100%", W(e, "div", (e) => {
3936
3973
  e.style.height = "100px";
3937
3974
  });
3938
3975
  });
@@ -3947,36 +3984,36 @@ var G = class {
3947
3984
  });
3948
3985
  }
3949
3986
  };
3950
- e(Pt, "calculate", !1);
3987
+ w(It, "calculate", !1);
3951
3988
  //#endregion
3952
3989
  //#region src/functions/escapeExp.ts
3953
- function X(e) {
3990
+ function Z(e) {
3954
3991
  return String(e).replace(/[.*+?^${}()|[\]\\/]/g, "\\$&");
3955
3992
  }
3956
3993
  //#endregion
3957
3994
  //#region src/functions/getSeparatingSearchExp.ts
3958
- function Ft(e, t = 128) {
3995
+ function Lt(e, t = 128) {
3959
3996
  if (e instanceof RegExp) return e;
3960
3997
  if (!e || e.trim().length === 0 || e.length > t) return /^/;
3961
- let n = String(e).replace(/\s+/g, " ").trim().split(" ").map(X).join("|");
3998
+ let n = String(e).replace(/\s+/g, " ").trim().split(" ").map(Z).join("|");
3962
3999
  return RegExp(`(${n})`, "ig");
3963
4000
  }
3964
4001
  //#endregion
3965
4002
  //#region src/functions/addTagHighlightMatch.ts
3966
- var It = `___HIGHLIGHT_START_${p(1e5, 999999)}___`, Lt = `___HIGHLIGHT_END_${p(1e5, 999999)}___`, Rt = RegExp(`${It}|${Lt}`, "g");
3967
- function zt(e, t, n = "sys-highlight-match", r = !1) {
3968
- let i = o(e);
3969
- if (u(i) && u(t)) {
3970
- let e = i.replace(Ft(t), `${It}$1${Lt}`);
3971
- return r && (e = W(e)), e.replace(Rt, (e) => e === It ? `<span class="${n}">` : "</span>");
3972
- }
3973
- return r ? W(i) : i;
4003
+ var Rt = `___HIGHLIGHT_START_${f(1e5, 999999)}___`, zt = `___HIGHLIGHT_END_${f(1e5, 999999)}___`, Bt = RegExp(`${Rt}|${zt}`, "g");
4004
+ function Vt(e, t, n = "sys-highlight-match", r = !1) {
4005
+ let i = a(e);
4006
+ if (l(i) && l(t)) {
4007
+ let e = i.replace(Lt(t), `${Rt}$1${zt}`);
4008
+ return r && (e = G(e)), e.replace(Bt, (e) => e === Rt ? `<span class="${n}">` : "</span>");
4009
+ }
4010
+ return r ? G(i) : i;
3974
4011
  }
3975
4012
  //#endregion
3976
4013
  //#region src/classes/SearchListData.ts
3977
- var Bt = class {
3978
- constructor(t, n, r, i) {
3979
- e(this, "list", void 0), e(this, "columns", void 0), e(this, "item", void 0), e(this, "options", void 0), e(this, "listCache", void 0), this.list = t, this.columns = n, this.item = r, this.options = i;
4014
+ var Ht = class {
4015
+ constructor(e, t, n, r) {
4016
+ w(this, "list", void 0), w(this, "columns", void 0), w(this, "item", void 0), w(this, "options", void 0), w(this, "listCache", void 0), this.list = e, this.columns = t, this.item = n, this.options = r;
3980
4017
  }
3981
4018
  is() {
3982
4019
  return !!(this.list && this.columns);
@@ -4013,8 +4050,8 @@ var Bt = class {
4013
4050
  toFormatItem(e, t) {
4014
4051
  let n = {};
4015
4052
  return this.columns && this.columns.forEach((r) => {
4016
- let i = this.getColumnName(r), a = B(e, r);
4017
- n[i] = u(a) && t ? this.addTag(a) : S(a);
4053
+ let i = this.getColumnName(r), a = V(e, r);
4054
+ n[i] = l(a) && t ? this.addTag(a) : S(a);
4018
4055
  }), {
4019
4056
  ...e,
4020
4057
  ...n,
@@ -4025,7 +4062,7 @@ var Bt = class {
4025
4062
  return e.replace(/\.([a-z0-9])/gi, (e, t) => t.toUpperCase()) + "Search";
4026
4063
  }
4027
4064
  addTag(e) {
4028
- return zt(S(e), this.item.get(), this.options.getClassName());
4065
+ return Vt(S(e), this.item.get(), this.options.getClassName());
4029
4066
  }
4030
4067
  generateCache() {
4031
4068
  if (!this.isList()) return [];
@@ -4033,8 +4070,8 @@ var Bt = class {
4033
4070
  for (let t of this.list) {
4034
4071
  let n = "";
4035
4072
  if (this.columns) for (let e of this.columns) {
4036
- let r = B(t, e);
4037
- u(r) && (n += ` ${S(r)}`);
4073
+ let r = V(t, e);
4074
+ l(r) && (n += ` ${S(r)}`);
4038
4075
  }
4039
4076
  e.push({
4040
4077
  item: t,
@@ -4049,9 +4086,9 @@ var Bt = class {
4049
4086
  resetCache() {
4050
4087
  this.listCache = void 0;
4051
4088
  }
4052
- }, Vt = class {
4053
- constructor(t, n) {
4054
- e(this, "value", void 0), e(this, "options", void 0), this.value = t, this.options = n;
4089
+ }, Ut = class {
4090
+ constructor(e, t) {
4091
+ w(this, "value", void 0), w(this, "options", void 0), this.value = e, this.options = t;
4055
4092
  }
4056
4093
  is() {
4057
4094
  return !!this.value;
@@ -4069,30 +4106,30 @@ var Bt = class {
4069
4106
  };
4070
4107
  //#endregion
4071
4108
  //#region src/functions/getExp.ts
4072
- function Ht(e, t = "ig", n = ":value") {
4073
- let r = X(e);
4109
+ function Wt(e, t = "ig", n = ":value") {
4110
+ let r = Z(e);
4074
4111
  return new RegExp(n.replace(/:value/g, r), t);
4075
4112
  }
4076
4113
  //#endregion
4077
4114
  //#region src/functions/getExactSearchExp.ts
4078
- function Ut(e) {
4079
- return Ht(e, "i", "(:value)");
4115
+ function Gt(e) {
4116
+ return Wt(e, "i", "(:value)");
4080
4117
  }
4081
4118
  //#endregion
4082
4119
  //#region src/functions/getSearchExp.ts
4083
- function Wt(e, t = 128) {
4084
- if (!f(e) || e.trim().length === 0 || e.length > t) return /^/;
4120
+ function Kt(e, t = 128) {
4121
+ if (!d(e) || e.trim().length === 0 || e.length > t) return /^/;
4085
4122
  let n = [];
4086
- return o(e).split(" ").forEach((e) => {
4087
- let t = X(e).trim();
4088
- u(t) && n.push(`(?=.*?${t})`);
4123
+ return a(e).split(" ").forEach((e) => {
4124
+ let t = Z(e).trim();
4125
+ l(t) && n.push(`(?=.*?${t})`);
4089
4126
  }), RegExp(`^${n.join("")}`, "i");
4090
4127
  }
4091
4128
  //#endregion
4092
4129
  //#region src/classes/SearchListMatcher.ts
4093
- var Gt = class {
4094
- constructor(t, n) {
4095
- e(this, "item", void 0), e(this, "options", void 0), e(this, "matcher", void 0), this.item = t, this.options = n, this.initMatcher();
4130
+ var qt = class {
4131
+ constructor(e, t) {
4132
+ w(this, "item", void 0), w(this, "options", void 0), w(this, "matcher", void 0), this.item = e, this.options = t, this.initMatcher();
4096
4133
  }
4097
4134
  is() {
4098
4135
  return !!this.matcher;
@@ -4107,11 +4144,11 @@ var Gt = class {
4107
4144
  this.initMatcher();
4108
4145
  }
4109
4146
  initMatcher() {
4110
- this.matcher = this.item.is() ? this.options.getFindExactMatch() ? Ut(this.item.get()) : Wt(this.item.get()) : void 0;
4147
+ this.matcher = this.item.is() ? this.options.getFindExactMatch() ? Gt(this.item.get()) : Kt(this.item.get()) : void 0;
4111
4148
  }
4112
- }, Kt = class {
4113
- constructor(t) {
4114
- e(this, "options", void 0), this.options = t;
4149
+ }, Jt = class {
4150
+ constructor(e) {
4151
+ w(this, "options", void 0), this.options = e;
4115
4152
  }
4116
4153
  getOptions() {
4117
4154
  return this.options || {};
@@ -4139,12 +4176,12 @@ var Gt = class {
4139
4176
  setOptions(e) {
4140
4177
  return this.options = e, this;
4141
4178
  }
4142
- }, qt = class {
4143
- constructor(t, n, r, i) {
4144
- e(this, "options", void 0), e(this, "item", void 0), e(this, "matcher", void 0), e(this, "data", void 0), e(this, "callbackToSelection", (e, t) => {
4179
+ }, Yt = class {
4180
+ constructor(e, t, n, r) {
4181
+ w(this, "options", void 0), w(this, "item", void 0), w(this, "matcher", void 0), w(this, "data", void 0), w(this, "callbackToSelection", (e, t) => {
4145
4182
  if (this.matcher.isSelection(t)) return this.data.toFormatItem(e, !0);
4146
4183
  if (this.options.getReturnEverything()) return this.data.toFormatItem(e, !1);
4147
- }), e(this, "callbackToNone", (e) => this.data.toFormatItem(e, !1)), this.options = new Kt(i), this.item = new Vt(r, this.options), this.matcher = new Gt(this.item, this.options), this.data = new Bt(t, n, this.item, this.options);
4184
+ }), w(this, "callbackToNone", (e) => this.data.toFormatItem(e, !1)), this.options = new Jt(r), this.item = new Ut(n, this.options), this.matcher = new qt(this.item, this.options), this.data = new Ht(e, t, this.item, this.options);
4148
4185
  }
4149
4186
  getData() {
4150
4187
  return this.data;
@@ -4179,17 +4216,17 @@ var Gt = class {
4179
4216
  to() {
4180
4217
  if (this.item.isSearch()) return this.data.forEach(this.callbackToSelection);
4181
4218
  let e = this.data.getList();
4182
- return e ? i(e, this.callbackToNone) : [];
4219
+ return e ? r(e, this.callbackToNone) : [];
4183
4220
  }
4184
- }, Jt = () => T.get("__ui:storage-callback__", () => ({})), Yt = class t {
4185
- static getInstance(e, n = "main") {
4186
- return new t(e, n);
4221
+ }, Xt = () => E.get("__ui:storage-callback__", () => ({})), Zt = class e {
4222
+ static getInstance(t, n = "main") {
4223
+ return new e(t, n);
4187
4224
  }
4188
- constructor(t, n = "main") {
4189
- e(this, "name", void 0), e(this, "group", void 0), e(this, "callbacks", []), e(this, "loading", !1), this.name = t, this.group = n;
4190
- let r = `${n}:${t}`, i = Jt();
4191
- if (r in i) return i[r];
4192
- i[r] = this;
4225
+ constructor(e, t = "main") {
4226
+ w(this, "name", void 0), w(this, "group", void 0), w(this, "callbacks", []), w(this, "loading", !1), this.name = e, this.group = t;
4227
+ let n = `${t}:${e}`, r = Xt();
4228
+ if (n in r) return r[n];
4229
+ r[n] = this;
4193
4230
  }
4194
4231
  isLoading() {
4195
4232
  return this.loading;
@@ -4214,10 +4251,10 @@ var Gt = class {
4214
4251
  }
4215
4252
  async run(e) {
4216
4253
  this.loading = !1;
4217
- for (let { callback: t, isOnce: n } of this.callbacks) await P(t, e), n && this.removeCallback(t);
4254
+ for (let { callback: t, isOnce: n } of this.callbacks) await F(t, e), n && this.removeCallback(t);
4218
4255
  return this;
4219
4256
  }
4220
- }, Xt = [
4257
+ }, Qt = [
4221
4258
  "d",
4222
4259
  "e",
4223
4260
  "f",
@@ -4237,43 +4274,43 @@ var Gt = class {
4237
4274
  "t",
4238
4275
  "u",
4239
4276
  "v"
4240
- ], Zt = RegExp(`%(${Xt.join("|")})`, "g"), Qt = (e, t = {}) => {
4241
- let n = String(e);
4242
- return Array.isArray(t) && e.match(/%[a-z]/) && (n = n.replace(Zt, (e, n) => {
4243
- let r = Xt.indexOf(n);
4277
+ ], $t = RegExp(`%(${Qt.join("|")})`, "g"), en = (e, t = {}) => {
4278
+ let r = String(e);
4279
+ return Array.isArray(t) && e.match(/%[a-z]/) && (r = r.replace($t, (e, n) => {
4280
+ let r = Qt.indexOf(n);
4244
4281
  if (r !== -1) {
4245
4282
  var i;
4246
4283
  return String((i = t == null ? void 0 : t[r]) == null ? "" : i);
4247
4284
  }
4248
4285
  return e;
4249
- })), r(t) && (n = n.replace(/[[{](.*?)[\]}](.*?)[[{]\/\1[\]}]/g, (e, n, r) => {
4286
+ })), n(t) && (r = r.replace(/[[{](.*?)[\]}](.*?)[[{]\/\1[\]}]/g, (e, n, r) => {
4250
4287
  if (n in t) {
4251
4288
  var i;
4252
4289
  return String((i = t[n]) == null ? "" : i).replace(/[[{]content[\]}]/g, () => r);
4253
4290
  }
4254
4291
  return e;
4255
- }), n = n.replace(/[[{](.*?)[\]}]/g, (e, n) => {
4292
+ }), r = r.replace(/[[{](.*?)[\]}]/g, (e, n) => {
4256
4293
  if (n in t) {
4257
4294
  var r;
4258
4295
  return String((r = t[n]) == null ? "" : r);
4259
4296
  }
4260
4297
  return e;
4261
- })), n;
4262
- }, $t = (e) => {
4298
+ })), r;
4299
+ }, tn = (e) => {
4263
4300
  var t;
4264
- return a(e) ? !0 : !!(e && r(e) && ((e == null ? void 0 : e.status) === "success" || e != null && e.success || e != null && (t = e.statusObject) != null && t.status && /^2/.test(String(e.statusObject.status)) || !("status" in e) && !("success" in e) && !("statusObject" in e) && /^2/.test(String(F.getStatus().getStatus()))));
4265
- }, en = "global", tn = 160, nn = class {
4266
- constructor(t, n = () => O.getLanguage(), r = () => O.getLocation()) {
4267
- e(this, "language", void 0), e(this, "location", void 0), e(this, "files", {}), e(this, "data", {}), this.language = n, this.location = r, t && this.add(t);
4301
+ return i(e) ? !0 : !!(e && n(e) && ((e == null ? void 0 : e.status) === "success" || e != null && e.success || e != null && (t = e.statusObject) != null && t.status && /^2/.test(String(e.statusObject.status)) || !("status" in e) && !("success" in e) && !("statusObject" in e) && /^2/.test(String(I.getStatus().getStatus()))));
4302
+ }, nn = "global", rn = 160, an = class {
4303
+ constructor(e, t = () => k.getLanguage(), n = () => k.getLocation()) {
4304
+ w(this, "language", void 0), w(this, "location", void 0), w(this, "files", {}), w(this, "data", {}), this.language = t, this.location = n, e && this.add(e);
4268
4305
  }
4269
4306
  isFile() {
4270
4307
  return Object.keys(this.files).length > 0 && this.getIndex() !== void 0;
4271
4308
  }
4272
4309
  getLocation() {
4273
- return h(this.location);
4310
+ return m(this.location);
4274
4311
  }
4275
4312
  getLanguage() {
4276
- return h(this.language);
4313
+ return m(this.language);
4277
4314
  }
4278
4315
  async getList() {
4279
4316
  let e = this.getIndex();
@@ -4283,8 +4320,8 @@ var Gt = class {
4283
4320
  }
4284
4321
  }
4285
4322
  add(e) {
4286
- i(e, (e, t) => {
4287
- m(e) && (this.files[t] = e);
4323
+ r(e, (e, t) => {
4324
+ p(e) && (this.files[t] = e);
4288
4325
  });
4289
4326
  }
4290
4327
  getIndex() {
@@ -4292,25 +4329,25 @@ var Gt = class {
4292
4329
  if (e in this.files) return e;
4293
4330
  let t = this.getLanguage();
4294
4331
  if (t in this.files) return t;
4295
- if ("global" in this.files) return en;
4332
+ if ("global" in this.files) return nn;
4296
4333
  }
4297
4334
  getByData(e) {
4298
4335
  if (e in this.data) return this.data[e];
4299
4336
  }
4300
4337
  async getByFile(e) {
4301
4338
  if (e in this.files) {
4302
- let t = await h(this.files[e]);
4339
+ let t = await m(this.files[e]);
4303
4340
  return t && (this.data[e] = t), t;
4304
4341
  }
4305
4342
  }
4306
- }, rn = class {
4307
- constructor(t = "/api/translate", n = "list", r = new nn()) {
4308
- e(this, "url", void 0), e(this, "propsName", void 0), e(this, "files", void 0), e(this, "data", {}), e(this, "cache", []), e(this, "resolveList", []), e(this, "timeout", void 0), e(this, "isReadApi", !0), this.url = t, this.propsName = n, this.files = r;
4343
+ }, on = class {
4344
+ constructor(e = "/api/translate", t = "list", n = new an()) {
4345
+ w(this, "url", void 0), w(this, "propsName", void 0), w(this, "files", void 0), w(this, "data", {}), w(this, "cache", []), w(this, "resolveList", []), w(this, "timeout", void 0), w(this, "isReadApi", !0), this.url = e, this.propsName = t, this.files = n;
4309
4346
  }
4310
4347
  async get(e, t) {
4311
4348
  var n;
4312
4349
  let r = this.getText(e);
4313
- return r ? this.replacement(r, t) : (F.isLocalhost() || await this.add(e), this.replacement((n = this.getText(e)) == null ? e : n));
4350
+ return r ? this.replacement(r, t) : (I.isLocalhost() || await this.add(e), this.replacement((n = this.getText(e)) == null ? e : n));
4314
4351
  }
4315
4352
  getSync(e, t = !1, n) {
4316
4353
  let r = this.getText(e);
@@ -4346,13 +4383,13 @@ var Gt = class {
4346
4383
  });
4347
4384
  }
4348
4385
  addSync(e) {
4349
- i(e, (e, t) => {
4350
- f(e) && u(e) && (this.data[this.getName(t)] = e);
4386
+ r(e, (e, t) => {
4387
+ d(e) && l(e) && (this.data[this.getName(t)] = e);
4351
4388
  });
4352
4389
  }
4353
4390
  async addNormalOrSync(e) {
4354
- if (u(e)) {
4355
- if (F.isLocalhost()) this.addSync(e);
4391
+ if (l(e)) {
4392
+ if (I.isLocalhost()) this.addSync(e);
4356
4393
  else {
4357
4394
  let t = Object.keys(e);
4358
4395
  t.length > 0 && await this.add(t);
@@ -4360,7 +4397,7 @@ var Gt = class {
4360
4397
  }
4361
4398
  }
4362
4399
  addSyncByLocation(e) {
4363
- i(e, (e, t) => i(e, (e, n) => {
4400
+ r(e, (e, t) => r(e, (e, n) => {
4364
4401
  let r = `${t}-${n}`;
4365
4402
  r in this.data || (this.data[r] = e);
4366
4403
  }));
@@ -4395,16 +4432,16 @@ var Gt = class {
4395
4432
  return `${this.files.getLanguage()}-${e}`;
4396
4433
  }
4397
4434
  getNameByGlobal(e) {
4398
- return `${en}-${e}`;
4435
+ return `${nn}-${e}`;
4399
4436
  }
4400
4437
  getNamesNone(e) {
4401
4438
  let t = [];
4402
- return A(e).forEach((e) => {
4439
+ return j(e).forEach((e) => {
4403
4440
  e !== "__TRANSLATE_START__" && e !== "__TRANSLATE_END__" && !this.hasName(e) && t.push(e);
4404
4441
  }), t;
4405
4442
  }
4406
4443
  async getResponse() {
4407
- let e = await F.get({
4444
+ let e = await I.get({
4408
4445
  api: !1,
4409
4446
  path: this.url,
4410
4447
  request: { [this.propsName]: this.cache },
@@ -4412,14 +4449,14 @@ var Gt = class {
4412
4449
  timeout: 12e3,
4413
4450
  global: !0
4414
4451
  });
4415
- return $t(e) || C.on({
4452
+ return tn(e) || T.on({
4416
4453
  group: "translate",
4417
4454
  code: "error",
4418
4455
  details: e
4419
4456
  }), e == null ? {} : e;
4420
4457
  }
4421
4458
  replacement(e, t) {
4422
- return t ? Qt(e, t) : e;
4459
+ return t ? en(e, t) : e;
4423
4460
  }
4424
4461
  async make() {
4425
4462
  let e;
@@ -4431,12 +4468,12 @@ var Gt = class {
4431
4468
  this.data[this.getName(t)] = (n = e == null ? void 0 : e[t]) == null ? "" : n;
4432
4469
  }), this.cache = [];
4433
4470
  }
4434
- }, an = class {
4471
+ }, sn = class {
4435
4472
  static async get(e, t) {
4436
4473
  return this.getItem().get(e, t);
4437
4474
  }
4438
4475
  static getItem() {
4439
- return this.item || (this.item = new rn()), this.item;
4476
+ return this.item || (this.item = new on()), this.item;
4440
4477
  }
4441
4478
  static getSync(e, t = !1, n) {
4442
4479
  return this.getItem().getSync(e, t, n);
@@ -4475,18 +4512,18 @@ var Gt = class {
4475
4512
  e.url && this.getItem().setUrl(e.url), e.propsName && this.getItem().setPropsName(e.propsName), typeof e.readApi == "boolean" && this.getItem().setReadApi(e.readApi);
4476
4513
  }
4477
4514
  };
4478
- e(an, "item", void 0);
4515
+ w(sn, "item", void 0);
4479
4516
  //#endregion
4480
4517
  //#region src/functions/arrFill.ts
4481
- function on(e, t) {
4518
+ function cn(e, t) {
4482
4519
  return Array(t).fill(e);
4483
4520
  }
4484
4521
  //#endregion
4485
4522
  //#region src/functions/blobToBase64.ts
4486
- var sn = () => cn() !== void 0, cn = () => {
4523
+ var ln = () => un() !== void 0, un = () => {
4487
4524
  var e;
4488
4525
  return (e = globalThis) == null ? void 0 : e.Buffer;
4489
- }, ln = async (e) => new Promise((t, n) => {
4526
+ }, dn = async (e) => new Promise((t, n) => {
4490
4527
  if (typeof FileReader < "u") {
4491
4528
  let r = new FileReader();
4492
4529
  r.onloadend = () => {
@@ -4497,110 +4534,110 @@ var sn = () => cn() !== void 0, cn = () => {
4497
4534
  t(r.result.replace(/^data:.*?,/, ""));
4498
4535
  }, r.onerror = n, r.readAsDataURL(e);
4499
4536
  } else n();
4500
- }), un = (e) => {
4537
+ }), fn = (e) => {
4501
4538
  var t;
4502
4539
  return ((t = globalThis) == null ? void 0 : t.Buffer).from(e).toString("base64");
4503
4540
  };
4504
- async function dn(e, t = !1) {
4505
- let n = c() ? await ln(e) : sn() ? un(await e.arrayBuffer()) : void 0;
4541
+ async function pn(e, t = !1) {
4542
+ let n = s() ? await dn(e) : ln() ? fn(await e.arrayBuffer()) : void 0;
4506
4543
  if (n) return t ? n : `data:${e.type};base64,${n}`;
4507
4544
  }
4508
4545
  //#endregion
4509
4546
  //#region src/functions/capitalize.ts
4510
- function fn(e, t = !1) {
4547
+ function mn(e, t = !1) {
4511
4548
  let n = String(e);
4512
- return n.length > 0 ? t ? n.charAt(0).toLocaleUpperCase(O.getLocation()) + n.slice(1) : n.charAt(0).toUpperCase() + n.slice(1) : n;
4549
+ return n.length > 0 ? t ? n.charAt(0).toLocaleUpperCase(k.getLocation()) + n.slice(1) : n.charAt(0).toUpperCase() + n.slice(1) : n;
4513
4550
  }
4514
4551
  //#endregion
4515
4552
  //#region src/functions/copyObject.ts
4516
- function Z(e) {
4553
+ function Q(e) {
4517
4554
  return JSON.parse(JSON.stringify(e));
4518
4555
  }
4519
4556
  //#endregion
4520
4557
  //#region src/functions/copyObjectLite.ts
4521
- function pn(e, t) {
4558
+ function hn(e, t) {
4522
4559
  return Object.assign({}, e, t);
4523
4560
  }
4524
4561
  //#endregion
4525
4562
  //#region src/functions/domContentLoaded.ts
4526
- async function mn(e) {
4527
- return !c() || document.readyState !== "loading" ? P(e) : new Promise((t, n) => {
4563
+ async function gn(e) {
4564
+ return !s() || document.readyState !== "loading" ? F(e) : new Promise((t, n) => {
4528
4565
  document.addEventListener("DOMContentLoaded", () => {
4529
- P(e).then(t, n);
4566
+ F(e).then(t, n);
4530
4567
  }, { once: !0 });
4531
4568
  });
4532
4569
  }
4533
4570
  //#endregion
4534
4571
  //#region src/functions/domQuerySelector.ts
4535
- function hn(e) {
4536
- if (c()) {
4572
+ function _n(e) {
4573
+ if (s()) {
4537
4574
  var t;
4538
4575
  return (t = document.querySelector(e)) == null ? void 0 : t;
4539
4576
  }
4540
4577
  }
4541
4578
  //#endregion
4542
4579
  //#region src/functions/domQuerySelectorAll.ts
4543
- function gn(e) {
4544
- if (c()) return document.querySelectorAll(e);
4580
+ function vn(e) {
4581
+ if (s()) return document.querySelectorAll(e);
4545
4582
  }
4546
4583
  //#endregion
4547
4584
  //#region src/functions/getElementImage.ts
4548
- function _n(e) {
4549
- return f(e) ? U(void 0, "img", { src: e }) : e;
4585
+ function yn(e) {
4586
+ return d(e) ? W(void 0, "img", { src: e }) : e;
4550
4587
  }
4551
4588
  //#endregion
4552
4589
  //#region src/functions/resizeImageByMax.ts
4553
- function vn(e, t = "auto") {
4590
+ function bn(e, t = "auto") {
4554
4591
  switch (t) {
4555
4592
  case "auto": return e.naturalWidth >= e.naturalHeight;
4556
4593
  case "width": return !0;
4557
4594
  case "height": return !1;
4558
4595
  }
4559
4596
  }
4560
- function Q(e, t, n = "auto", r) {
4561
- let i = _n(e);
4562
- if (c() && i && i.naturalWidth && i.naturalHeight && (i.naturalWidth > t && (n === "auto" || n === "width") || i.naturalHeight > t && (n === "auto" || n === "height"))) {
4597
+ function xn(e, t, n = "auto", r) {
4598
+ let i = yn(e);
4599
+ if (s() && i && i.naturalWidth && i.naturalHeight && (i.naturalWidth > t && (n === "auto" || n === "width") || i.naturalHeight > t && (n === "auto" || n === "height"))) {
4563
4600
  var a;
4564
- let e = vn(i, n), o = (a = document.createElement("canvas")) == null ? void 0 : a.getContext("2d");
4601
+ let e = bn(i, n), o = (a = document.createElement("canvas")) == null ? void 0 : a.getContext("2d");
4565
4602
  if (o) return o.canvas.width = e ? t : i.naturalWidth / i.naturalHeight * t, o.canvas.height = e ? i.naturalHeight / i.naturalWidth * t : t, o.drawImage(i, 0, 0, o.canvas.width, o.canvas.height), o.canvas.toDataURL(r);
4566
4603
  }
4567
4604
  }
4568
4605
  //#endregion
4569
4606
  //#region src/functions/ensureMaxSize.ts
4570
- async function yn(e, t = .56, n = "image/jpeg") {
4607
+ async function Sn(e, t = .56, n = "image/jpeg") {
4571
4608
  return new Promise((r) => {
4572
- if (!c()) {
4609
+ if (!s()) {
4573
4610
  r("");
4574
4611
  return;
4575
4612
  }
4576
- let i = new Blob([e], { type: n }), a = URL.createObjectURL(i), o = _n(a);
4613
+ let i = new Blob([e], { type: n }), a = URL.createObjectURL(i), o = yn(a);
4577
4614
  o ? (o.onload = () => {
4578
- let e = Q(o, t * o.naturalWidth, "width", n);
4615
+ let e = xn(o, t * o.naturalWidth, "width", n);
4579
4616
  r(e == null ? "" : e), URL.revokeObjectURL(a);
4580
4617
  }, o.onerror = () => {
4581
4618
  URL.revokeObjectURL(a), r("");
4582
- }) : dn(i).then((e) => r(String(e == null ? "" : e)));
4619
+ }) : pn(i).then((e) => r(String(e == null ? "" : e)));
4583
4620
  });
4584
4621
  }
4585
4622
  //#endregion
4586
4623
  //#region src/functions/eventStopPropagation.ts
4587
- function bn(e) {
4624
+ function Cn(e) {
4588
4625
  e.preventDefault(), e.stopPropagation();
4589
4626
  }
4590
4627
  //#endregion
4591
4628
  //#region src/functions/frame.ts
4592
- function xn(e, t, n) {
4629
+ function wn(e, t, n) {
4593
4630
  let r = () => {
4594
- e(), c() && t != null && t() ? xn(e, t, n) : n == null || n();
4631
+ e(), s() && t != null && t() ? wn(e, t, n) : n == null || n();
4595
4632
  };
4596
- c() ? requestAnimationFrame(r) : r();
4633
+ s() ? requestAnimationFrame(r) : r();
4597
4634
  }
4598
4635
  //#endregion
4599
4636
  //#region src/functions/getArrayHighlightMatch.ts
4600
- function Sn(e, t) {
4601
- let n = o(e);
4602
- if (u(n) && u(t)) {
4603
- let e = [], r = Ft(t), i = 0, a;
4637
+ function Tn(e, t) {
4638
+ let n = a(e);
4639
+ if (l(n) && l(t)) {
4640
+ let e = [], r = Lt(t), i = 0, a;
4604
4641
  for (; (a = r.exec(n)) !== null && a.index !== r.lastIndex;) a.index > i && e.push({
4605
4642
  text: n.substring(i, a.index),
4606
4643
  isMatch: !1
@@ -4620,8 +4657,8 @@ function Sn(e, t) {
4620
4657
  }
4621
4658
  //#endregion
4622
4659
  //#region src/functions/getAttributes.ts
4623
- function Cn(e) {
4624
- let t = {}, n = k(e);
4660
+ function En(e) {
4661
+ let t = {}, n = A(e);
4625
4662
  if (n) for (let e of n.attributes) {
4626
4663
  var r;
4627
4664
  t[e.name] = (r = (e == null ? void 0 : e.value) || (e == null ? void 0 : e.textContent)) == null ? void 0 : r;
@@ -4630,12 +4667,12 @@ function Cn(e) {
4630
4667
  }
4631
4668
  //#endregion
4632
4669
  //#region src/functions/getClipboardData.ts
4633
- async function wn(e) {
4634
- if (c()) try {
4670
+ async function Dn(e) {
4671
+ if (s()) try {
4635
4672
  var t, n;
4636
4673
  return (t = e == null || (n = e.clipboardData) == null ? void 0 : n.getData("text")) == null ? await navigator.clipboard.readText() || "" : t;
4637
4674
  } catch (e) {
4638
- C.on({
4675
+ T.on({
4639
4676
  group: "clipboard",
4640
4677
  code: "error",
4641
4678
  details: e
@@ -4645,46 +4682,46 @@ async function wn(e) {
4645
4682
  }
4646
4683
  //#endregion
4647
4684
  //#region src/functions/getCurrentDate.ts
4648
- function Tn(e = "datetime") {
4649
- return new nt(void 0, e).standard();
4685
+ function On(e = "datetime") {
4686
+ return new it(void 0, e).standard();
4650
4687
  }
4651
4688
  //#endregion
4652
4689
  //#region src/functions/getCurrentTime.ts
4653
- function En() {
4690
+ function kn() {
4654
4691
  return Date.now();
4655
4692
  }
4656
4693
  //#endregion
4657
4694
  //#region src/functions/getElementId.ts
4658
- var Dn, On = () => {
4659
- let e = Dn == null ? void 0 : Dn();
4695
+ var An, jn = () => {
4696
+ let e = An == null ? void 0 : An();
4660
4697
  if (e) return String(e);
4661
- let t = T.get("__ui:getElementId__", () => ({ id: 1e5 }));
4698
+ let t = E.get("__ui:getElementId__", () => ({ id: 1e5 }));
4662
4699
  return `id-${t.id++}`;
4663
4700
  };
4664
- function kn(e, t) {
4701
+ function Mn(e, t) {
4665
4702
  if (e) {
4666
- let n = k(e);
4667
- if (n) return u(n.id) || n.setAttribute("id", On()), t ? `#${n.id}${t}`.trim() : n.id;
4703
+ let n = A(e);
4704
+ if (n) return l(n.id) || n.setAttribute("id", jn()), t ? `#${n.id}${t}`.trim() : n.id;
4668
4705
  }
4669
- return On();
4706
+ return jn();
4670
4707
  }
4671
- function An(e) {
4672
- Dn || (Dn = e);
4708
+ function Nn(e) {
4709
+ An || (An = e);
4673
4710
  }
4674
4711
  //#endregion
4675
4712
  //#region src/functions/getFirst.ts
4676
- function jn(e) {
4677
- if (a(e)) return e == null ? void 0 : e[0];
4678
- if (n(e)) {
4679
- var t;
4680
- return (t = Object.values(e)) == null ? void 0 : t[0];
4713
+ function Pn(e) {
4714
+ if (i(e)) return e == null ? void 0 : e[0];
4715
+ if (t(e)) {
4716
+ var n;
4717
+ return (n = Object.values(e)) == null ? void 0 : n[0];
4681
4718
  }
4682
4719
  return e;
4683
4720
  }
4684
4721
  //#endregion
4685
4722
  //#region src/functions/getImageSrc.ts
4686
- function Mn(e) {
4687
- if (f(e)) return e;
4723
+ function Fn(e) {
4724
+ if (d(e)) return e;
4688
4725
  if (e && "src" in e) {
4689
4726
  var t;
4690
4727
  return (t = e.src) == null ? "" : t;
@@ -4693,15 +4730,15 @@ function Mn(e) {
4693
4730
  }
4694
4731
  //#endregion
4695
4732
  //#region src/functions/getKey.ts
4696
- function Nn(e) {
4733
+ function In(e) {
4697
4734
  var t, n, r;
4698
4735
  return (t = (n = e == null ? void 0 : e.key) == null ? e == null ? void 0 : e.code : n) == null ? e == null || (r = e.keyCode) == null ? void 0 : r.toString() : t;
4699
4736
  }
4700
4737
  //#endregion
4701
4738
  //#region src/functions/getLast.ts
4702
- function Pn(e) {
4703
- if (a(e)) return e == null ? void 0 : e[e.length - 1];
4704
- if (n(e)) {
4739
+ function Ln(e) {
4740
+ if (i(e)) return e == null ? void 0 : e[e.length - 1];
4741
+ if (t(e)) {
4705
4742
  let t = Object.values(e);
4706
4743
  return t == null ? void 0 : t[t.length - 1];
4707
4744
  }
@@ -4709,129 +4746,129 @@ function Pn(e) {
4709
4746
  }
4710
4747
  //#endregion
4711
4748
  //#region src/functions/getLength.ts
4712
- function Fn(e) {
4713
- return e == null ? 0 : typeof e == "string" || Array.isArray(e) ? e.length : e instanceof Map || e instanceof Set ? e.size : n(e) ? Object.keys(e).length : 0;
4749
+ function Rn(e) {
4750
+ return e == null ? 0 : typeof e == "string" || Array.isArray(e) ? e.length : e instanceof Map || e instanceof Set ? e.size : t(e) ? Object.keys(e).length : 0;
4714
4751
  }
4715
4752
  //#endregion
4716
4753
  //#region src/functions/getLengthOfAllArray.ts
4717
- function In(e) {
4718
- return i(e, (e) => {
4754
+ function zn(e) {
4755
+ return r(e, (e) => {
4719
4756
  var t;
4720
4757
  return (t = e == null ? void 0 : e.length) == null ? 0 : t;
4721
4758
  });
4722
4759
  }
4723
4760
  //#endregion
4724
4761
  //#region src/functions/getMaxLengthAllArray.ts
4725
- function Ln(e) {
4726
- if (!u(e)) return 0;
4727
- let t = In(e);
4762
+ function Bn(e) {
4763
+ if (!l(e)) return 0;
4764
+ let t = zn(e);
4728
4765
  return t.length > 1e4 ? t.reduce((e, t) => Math.max(e, t)) : Math.max(...t);
4729
4766
  }
4730
4767
  //#endregion
4731
4768
  //#region src/functions/getMinLengthAllArray.ts
4732
- function Rn(e) {
4733
- if (!u(e)) return 0;
4734
- let t = In(e);
4769
+ function Vn(e) {
4770
+ if (!l(e)) return 0;
4771
+ let t = zn(e);
4735
4772
  return t.length > 1e4 ? t.reduce((e, t) => Math.min(e, t)) : Math.min(...t);
4736
4773
  }
4737
4774
  //#endregion
4738
4775
  //#region src/functions/getMouseClientX.ts
4739
- function zn(e) {
4776
+ function Hn(e) {
4740
4777
  var t, n;
4741
4778
  return "clientX" in e ? e.clientX : (e == null || (t = e.targetTouches) == null || (t = t[0]) == null ? void 0 : t.clientX) || (e == null || (n = e.touches) == null || (n = n[0]) == null ? void 0 : n.clientX) || 0;
4742
4779
  }
4743
4780
  //#endregion
4744
4781
  //#region src/functions/getMouseClientY.ts
4745
- function Bn(e) {
4782
+ function Un(e) {
4746
4783
  var t, n;
4747
4784
  return "clientY" in e ? e.clientY : (e == null || (t = e.targetTouches) == null || (t = t[0]) == null ? void 0 : t.clientY) || (e == null || (n = e.touches) == null || (n = n[0]) == null ? void 0 : n.clientY) || 0;
4748
4785
  }
4749
4786
  //#endregion
4750
4787
  //#region src/functions/getMouseClient.ts
4751
- function Vn(e) {
4788
+ function Wn(e) {
4752
4789
  return {
4753
- x: zn(e),
4754
- y: Bn(e)
4790
+ x: Hn(e),
4791
+ y: Un(e)
4755
4792
  };
4756
4793
  }
4757
4794
  //#endregion
4758
4795
  //#region src/functions/getObjectByKeys.ts
4759
- function Hn(e, t) {
4760
- let n = {};
4761
- return r(e) && t.forEach((t) => {
4762
- t in e && e[t] !== void 0 && (n[t] = e[t]);
4763
- }), n;
4796
+ function Gn(e, t) {
4797
+ let r = {};
4798
+ return n(e) && t.forEach((t) => {
4799
+ t in e && e[t] !== void 0 && (r[t] = e[t]);
4800
+ }), r;
4764
4801
  }
4765
4802
  //#endregion
4766
4803
  //#region src/functions/getObjectNoUndefined.ts
4767
- function Un(e, t = void 0) {
4804
+ function Kn(e, t = void 0) {
4768
4805
  let n = {};
4769
- return i(e, (e, r) => {
4806
+ return r(e, (e, r) => {
4770
4807
  e !== t && (n[r] = e);
4771
4808
  }), n;
4772
4809
  }
4773
4810
  //#endregion
4774
4811
  //#region src/functions/getObjectOrNone.ts
4775
- function Wn(e) {
4776
- return r(e) ? e : {};
4812
+ function qn(e) {
4813
+ return n(e) ? e : {};
4777
4814
  }
4778
4815
  //#endregion
4779
4816
  //#region src/functions/getOnlyText.ts
4780
- function Gn(e) {
4817
+ function Jn(e) {
4781
4818
  return S(e).replace(/[^\p{L}\p{N}\s]+/gu, "").trim();
4782
4819
  }
4783
4820
  //#endregion
4784
4821
  //#region src/functions/getRandomItem.ts
4785
- function Kn(e) {
4786
- if (a(e)) return e.length === 0 ? void 0 : e[p(0, e.length - 1)];
4787
- if (n(e)) {
4822
+ function Yn(e) {
4823
+ if (i(e)) return e.length === 0 ? void 0 : e[f(0, e.length - 1)];
4824
+ if (t(e)) {
4788
4825
  let t = Object.values(e);
4789
- return t.length === 0 ? void 0 : t[p(0, t.length - 1)];
4826
+ return t.length === 0 ? void 0 : t[f(0, t.length - 1)];
4790
4827
  }
4791
4828
  return e == null ? void 0 : e;
4792
4829
  }
4793
4830
  //#endregion
4794
4831
  //#region src/functions/strFill.ts
4795
- function qn(e, t) {
4832
+ function Xn(e, t) {
4796
4833
  return String(e).repeat(t);
4797
4834
  }
4798
4835
  //#endregion
4799
4836
  //#region src/functions/getRandomText.ts
4800
- function Jn(e, t, n = "#", r = 2, i = 12) {
4801
- let a = p(e, t), o = [];
4802
- for (let e = 0; e < a; e++) o.push(qn(n, p(r, i)));
4837
+ function Zn(e, t, n = "#", r = 2, i = 12) {
4838
+ let a = f(e, t), o = [];
4839
+ for (let e = 0; e < a; e++) o.push(Xn(n, f(r, i)));
4803
4840
  return o.join(" ");
4804
4841
  }
4805
4842
  //#endregion
4806
4843
  //#region src/functions/getStepPercent.ts
4807
- function Yn(e, t) {
4844
+ function Qn(e, t) {
4808
4845
  let n = e == null ? 0 : e;
4809
4846
  return t > n ? 100 / (t - n) : 0;
4810
4847
  }
4811
4848
  //#endregion
4812
4849
  //#region src/functions/getStepValue.ts
4813
- function Xn(e, t) {
4850
+ function $n(e, t) {
4814
4851
  let n = e == null ? 0 : e;
4815
4852
  return t > n ? (t - n) / 100 : 0;
4816
4853
  }
4817
4854
  //#endregion
4818
4855
  //#region src/functions/goScroll.ts
4819
- var Zn = 0;
4820
- function Qn(e, t, n) {
4821
- if (!c()) return;
4856
+ var er = 0;
4857
+ function tr(e, t, n) {
4858
+ if (!s()) return;
4822
4859
  let r = t == null ? void 0 : t.closest(e);
4823
4860
  if (t && r && r.scrollHeight !== r.offsetHeight) {
4824
4861
  let e = r.getBoundingClientRect(), i = t.getBoundingClientRect();
4825
4862
  if (n) {
4826
4863
  let a = n.getBoundingClientRect();
4827
4864
  r.scrollTop = t.offsetTop - (a.top - e.top) - (a.height / 2 - i.height / 2), r.scrollTop + r.offsetHeight < t.offsetTop + t.offsetHeight && (r.scrollTop = t.offsetTop + t.offsetHeight - r.offsetHeight);
4828
- } else r.scrollTop > t.offsetTop ? r.scrollTop = i.top - e.top - Zn : r.scrollTop + r.offsetHeight < t.offsetTop + t.offsetHeight && (r.scrollTop = i.top - e.top + i.height - e.height + Zn);
4865
+ } else r.scrollTop > t.offsetTop ? r.scrollTop = i.top - e.top - er : r.scrollTop + r.offsetHeight < t.offsetTop + t.offsetHeight && (r.scrollTop = i.top - e.top + i.height - e.height + er);
4829
4866
  }
4830
4867
  }
4831
4868
  //#endregion
4832
4869
  //#region src/functions/goScrollSmooth.ts
4833
- function $n(e, t, n = 0) {
4834
- if (!c()) return;
4870
+ function nr(e, t, n = 0) {
4871
+ if (!s()) return;
4835
4872
  let r = (t == null ? void 0 : t.behavior) || "smooth";
4836
4873
  if ("scrollIntoView" in e && !n) {
4837
4874
  e.scrollIntoView({
@@ -4852,8 +4889,8 @@ function $n(e, t, n = 0) {
4852
4889
  }
4853
4890
  //#endregion
4854
4891
  //#region src/functions/goScrollTo.ts
4855
- function er(e, t, n = "smooth") {
4856
- if (!c() || !e || !t) return;
4892
+ function rr(e, t, n = "smooth") {
4893
+ if (!s() || !e || !t) return;
4857
4894
  let r = e.getBoundingClientRect(), i = t.getBoundingClientRect();
4858
4895
  e.scrollBy({
4859
4896
  top: i.top - r.top,
@@ -4863,16 +4900,16 @@ function er(e, t, n = "smooth") {
4863
4900
  }
4864
4901
  //#endregion
4865
4902
  //#region src/functions/isShare.ts
4866
- function tr() {
4867
- return c() && typeof navigator < "u" && !!navigator.share;
4903
+ function ir() {
4904
+ return s() && typeof navigator < "u" && !!navigator.share;
4868
4905
  }
4869
4906
  //#endregion
4870
4907
  //#region src/functions/handleShare.ts
4871
- async function nr(e) {
4872
- if (tr() && navigator.canShare && navigator.canShare(e)) try {
4908
+ async function ar(e) {
4909
+ if (ir() && navigator.canShare && navigator.canShare(e)) try {
4873
4910
  return await navigator.share(e), !0;
4874
4911
  } catch (e) {
4875
- C.on({
4912
+ T.on({
4876
4913
  group: "share",
4877
4914
  code: "error",
4878
4915
  details: e
@@ -4882,54 +4919,54 @@ async function nr(e) {
4882
4919
  }
4883
4920
  //#endregion
4884
4921
  //#region src/functions/inArray.ts
4885
- function rr(e, t) {
4922
+ function or(e, t) {
4886
4923
  return e.includes(t);
4887
4924
  }
4888
4925
  //#endregion
4889
4926
  //#region src/functions/initScrollbarOffset.ts
4890
- async function ir() {
4891
- if (c()) {
4892
- let e = await Pt.get();
4927
+ async function sr() {
4928
+ if (s()) {
4929
+ let e = await It.get();
4893
4930
  document.body.style.setProperty("--sys-scrollbar-offset", `${e}px`);
4894
4931
  }
4895
4932
  }
4896
4933
  //#endregion
4897
4934
  //#region src/functions/intersectKey.ts
4898
- function ar(e, t) {
4899
- let r = {};
4900
- return n(e) && n(t) && i(e, (e, n) => {
4901
- n in t && (r[n] = e);
4902
- }), r;
4935
+ function cr(e, n) {
4936
+ let i = {};
4937
+ return t(e) && t(n) && r(e, (e, t) => {
4938
+ t in n && (i[t] = e);
4939
+ }), i;
4903
4940
  }
4904
4941
  //#endregion
4905
4942
  //#region src/functions/isDifferent.ts
4906
- function or(e, t) {
4943
+ function lr(e, t) {
4907
4944
  let n = Object.keys(e).length !== Object.keys(t).length;
4908
- return n || i(e, (e, r) => {
4945
+ return n || r(e, (e, r) => {
4909
4946
  e !== (t == null ? void 0 : t[r]) && (n = !0);
4910
4947
  }), n;
4911
4948
  }
4912
4949
  //#endregion
4913
4950
  //#region src/functions/isElementVisible.ts
4914
- function sr(e) {
4915
- if (!c()) return !1;
4916
- let t = k(e);
4951
+ function ur(e) {
4952
+ if (!s()) return !1;
4953
+ let t = A(e);
4917
4954
  if (!t || "isConnected" in t && t.isConnected === !1) return !1;
4918
4955
  let n = window.getComputedStyle(t);
4919
4956
  return n.display !== "none" && n.visibility !== "hidden" && n.opacity !== "0" && t.offsetWidth !== 0 && t.offsetHeight !== 0;
4920
4957
  }
4921
4958
  //#endregion
4922
4959
  //#region src/functions/isInput.ts
4923
- var cr = (e) => {
4960
+ var dr = (e) => {
4924
4961
  if (e instanceof HTMLElement) {
4925
4962
  let t = e.tagName.toLowerCase();
4926
4963
  return !!(t === "input" || t === "textarea" || t === "select" || e.isContentEditable || e.getAttribute("contenteditable") === "true") && !(e != null && e.readOnly) && !(e != null && e.disabled);
4927
4964
  }
4928
4965
  return !1;
4929
- }, lr = (e, t) => e.code !== "Space" && e.code !== "Enter" && e.key !== " " && e.key !== "Spacebar" && e.key !== "Enter" && e.keyCode !== 13 && e.keyCode !== 32 ? !1 : t === void 0 ? !cr(e.target) : !t;
4966
+ }, fr = (e, t) => e.code !== "Space" && e.code !== "Enter" && e.key !== " " && e.key !== "Spacebar" && e.key !== "Enter" && e.keyCode !== 13 && e.keyCode !== 32 ? !1 : t === void 0 ? !dr(e.target) : !t;
4930
4967
  //#endregion
4931
4968
  //#region src/functions/isFloat.ts
4932
- function ur(e) {
4969
+ function pr(e) {
4933
4970
  switch (typeof e) {
4934
4971
  case "number": return !0;
4935
4972
  case "string": return /^-?\d+(\.\d+)?$/.test(e);
@@ -4938,24 +4975,24 @@ function ur(e) {
4938
4975
  }
4939
4976
  //#endregion
4940
4977
  //#region src/functions/isIntegerBetween.ts
4941
- function dr(e, t) {
4978
+ function mr(e, t) {
4942
4979
  let n = Math.floor(t);
4943
4980
  return e >= n && e < n + 1;
4944
4981
  }
4945
4982
  //#endregion
4946
4983
  //#region src/functions/isMetaKey.ts
4947
- var fr = (e) => !!(e.metaKey || e.altKey || e.ctrlKey);
4984
+ var hr = (e) => !!(e.metaKey || e.altKey || e.ctrlKey);
4948
4985
  //#endregion
4949
4986
  //#region src/functions/isSelectedByList.ts
4950
- function pr(e, t) {
4951
- return Array.isArray(e) ? e.every((e) => ae(e, t)) : ae(e, t);
4987
+ function gr(e, t) {
4988
+ return Array.isArray(e) ? e.every((e) => x(e, t)) : x(e, t);
4952
4989
  }
4953
4990
  //#endregion
4954
4991
  //#region src/functions/isTab.ts
4955
- var mr = (e) => e.key === "Tab" || e.code === "Tab" || e.keyCode === 9;
4992
+ var _r = (e) => e.key === "Tab" || e.code === "Tab" || e.keyCode === 9;
4956
4993
  //#endregion
4957
4994
  //#region src/functions/removeCommonPrefix.ts
4958
- function hr(e, t) {
4995
+ function vr(e, t) {
4959
4996
  if (e.startsWith(t)) return e.slice(t.length).trim();
4960
4997
  let n = 0;
4961
4998
  for (; e[n] === t[n] && n < e.length && n < t.length;) n++;
@@ -4963,53 +5000,53 @@ function hr(e, t) {
4963
5000
  }
4964
5001
  //#endregion
4965
5002
  //#region src/functions/replaceComponentName.ts
4966
- var gr = (e, t, n) => {
5003
+ var yr = (e, t, n) => {
4967
5004
  var r;
4968
5005
  return e == null || (r = e.replace(RegExp(`<${t}`, "ig"), `<${n}`)) == null || (r = r.replace(RegExp(`</${t}`, "ig"), `</${n}`)) == null ? void 0 : r.trim();
4969
5006
  };
4970
5007
  //#endregion
4971
5008
  //#region src/functions/uniqueArray.ts
4972
- function _r(e) {
5009
+ function br(e) {
4973
5010
  return [...new Set(e)];
4974
5011
  }
4975
5012
  //#endregion
4976
5013
  //#region src/functions/replaceRecursive.ts
4977
- function $(e, t, r = !0) {
4978
- let a = Z(e);
4979
- return n(e) && n(t) && i(t, (t, i) => {
4980
- let o = e == null ? void 0 : e[i];
4981
- n(o) && n(t) ? r && Array.isArray(o) && Array.isArray(t) ? a[i] = Z(_r([...o, ...t])) : a[i] = $(Array.isArray(o) ? { ...o } : o, t, r) : a[i] = n(t) ? Z(t) : t;
5014
+ function $(e, n, i = !0) {
5015
+ let a = Q(e);
5016
+ return t(e) && t(n) && r(n, (n, r) => {
5017
+ let o = e == null ? void 0 : e[r];
5018
+ t(o) && t(n) ? i && Array.isArray(o) && Array.isArray(n) ? a[r] = Q(br([...o, ...n])) : a[r] = $(Array.isArray(o) ? { ...o } : o, n, i) : a[r] = t(n) ? Q(n) : n;
4982
5019
  }), a;
4983
5020
  }
4984
5021
  //#endregion
4985
5022
  //#region src/functions/replaceTemplate.ts
4986
- function vr(e, t) {
5023
+ function xr(e, t) {
4987
5024
  let n = e;
4988
- return i(t, (e, t) => {
4989
- n = n.replace(Ht(`[${t}]`), h(e));
5025
+ return r(t, (e, t) => {
5026
+ n = n.replace(Wt(`[${t}]`), m(e));
4990
5027
  }), n;
4991
5028
  }
4992
5029
  //#endregion
4993
5030
  //#region src/functions/resizeImage.ts
4994
- async function yr(e, t = 1280, n) {
4995
- let r = Mn(e);
4996
- if (!c() || !r || t <= 0) return r;
5031
+ async function Sr(e, t = 1280, n) {
5032
+ let r = Fn(e);
5033
+ if (!s() || !r || t <= 0) return r;
4997
5034
  if (typeof e != "string" && e.complete && e.naturalWidth) {
4998
5035
  var i;
4999
- return (i = Q(e, t, "auto", n)) == null ? r : i;
5036
+ return (i = xn(e, t, "auto", n)) == null ? r : i;
5000
5037
  }
5001
5038
  return new Promise((e) => {
5002
5039
  let i = new Image();
5003
5040
  i.onerror = () => e(r), i.onload = () => {
5004
5041
  var a;
5005
- e((a = Q(i, t, "auto", n)) == null ? r : a);
5042
+ e((a = xn(i, t, "auto", n)) == null ? r : a);
5006
5043
  }, i.src = r;
5007
5044
  });
5008
5045
  }
5009
5046
  //#endregion
5010
5047
  //#region src/functions/secondToTime.ts
5011
- function br(e, t) {
5012
- let n = x(e);
5048
+ function Cr(e, t) {
5049
+ let n = b(e);
5013
5050
  if (n > 0) {
5014
5051
  let e = String(Math.floor(n / 60)).padStart(2, "0"), r = String(n % 60).padStart(2, "0");
5015
5052
  return t && Number(e) >= 60 ? `${String(Math.floor(Number(e) / 60)).padStart(2, "0")}:${String(Number(e) % 60).padStart(2, "0")}:${r}` : `${e}:${r}`;
@@ -5018,19 +5055,19 @@ function br(e, t) {
5018
5055
  }
5019
5056
  //#endregion
5020
5057
  //#region src/functions/setValues.ts
5021
- function xr(e, t, { multiple: n = !1, maxlength: r = 0, alwaysChange: i = !0, notEmpty: o = !1 }) {
5058
+ function wr(e, t, { multiple: n = !1, maxlength: r = 0, alwaysChange: a = !0, notEmpty: o = !1 }) {
5022
5059
  if (n) {
5023
- if (a(e)) {
5060
+ if (i(e)) {
5024
5061
  let n = e.indexOf(t), i = [...e];
5025
5062
  return n === -1 ? (!r || e.length < r) && i.push(t) : (!o || i.length > 1) && i.splice(n, 1), i;
5026
5063
  }
5027
5064
  return e === t ? [] : e ? [e, t] : [t];
5028
5065
  }
5029
- return i || e !== t ? t : e;
5066
+ return a || e !== t ? t : e;
5030
5067
  }
5031
5068
  //#endregion
5032
5069
  //#region src/functions/sortList.ts
5033
- function Sr(e, t, n) {
5070
+ function Tr(e, t, n) {
5034
5071
  var r;
5035
5072
  if (t.length === 0 || e.length < 2) return e;
5036
5073
  let i = ((r = Intl) == null ? void 0 : r.Collator) === void 0 ? void 0 : new Intl.Collator(void 0, {
@@ -5045,54 +5082,54 @@ function Sr(e, t, n) {
5045
5082
  if (t !== 0) return t;
5046
5083
  continue;
5047
5084
  }
5048
- let t = B(e, a), s = B(r, a);
5085
+ let t = V(e, a), s = V(r, a);
5049
5086
  if (t === s) continue;
5050
- if (l(t)) return 1;
5051
- if (l(s)) return -1;
5052
- let c = o === "desc" ? -1 : 1;
5053
- if (_(t) && _(s)) return (x(t) - x(s)) * c;
5054
- if (typeof t == "boolean" && typeof s == "boolean") return (Number(t) - Number(s)) * c;
5087
+ if (c(t)) return 1;
5088
+ if (c(s)) return -1;
5089
+ let l = o === "desc" ? -1 : 1;
5090
+ if (g(t) && g(s)) return (b(t) - b(s)) * l;
5091
+ if (typeof t == "boolean" && typeof s == "boolean") return (Number(t) - Number(s)) * l;
5055
5092
  let u = String(t), d = String(s);
5056
- return (i ? i.compare(u, d) : u.localeCompare(d)) * c;
5093
+ return (i ? i.compare(u, d) : u.localeCompare(d)) * l;
5057
5094
  }
5058
5095
  return 0;
5059
5096
  });
5060
5097
  }
5061
5098
  //#endregion
5062
5099
  //#region src/functions/splice.ts
5063
- function Cr(e, t, r) {
5064
- if (n(e) && n(t)) {
5065
- if (r) {
5100
+ function Er(e, n, i) {
5101
+ if (t(e) && t(n)) {
5102
+ if (i) {
5066
5103
  let a = {}, o = !1;
5067
- return i(e, (e, i) => {
5068
- !o && (r === i || r === e) ? (o = !0, a = $(a, t)) : o ? a = $(a, { [i]: e }) : a[i] = n(e) ? Z(e) : e;
5069
- }), o ? a : $(e, t);
5104
+ return r(e, (e, r) => {
5105
+ !o && (i === r || i === e) ? (o = !0, a = $(a, n)) : o ? a = $(a, { [r]: e }) : a[r] = t(e) ? Q(e) : e;
5106
+ }), o ? a : $(e, n);
5070
5107
  }
5071
- if (n(t)) return $(e, t);
5108
+ if (t(n)) return $(e, n);
5072
5109
  }
5073
- return Z(e);
5110
+ return Q(e);
5074
5111
  }
5075
5112
  //#endregion
5076
5113
  //#region src/functions/toCamelCaseFirst.ts
5077
- function wr(e) {
5078
- return rt(e).replace(/^([a-z])/, (e) => `${e.toUpperCase()}`);
5114
+ function Dr(e) {
5115
+ return at(e).replace(/^([a-z])/, (e) => `${e.toUpperCase()}`);
5079
5116
  }
5080
5117
  //#endregion
5081
5118
  //#region src/functions/toKebabCase.ts
5082
- function Tr(e) {
5119
+ function Or(e) {
5083
5120
  return e.toString().trim().replace(/[^\w-. ]+/g, "").replace(/[ .]+/g, "-").replace(/(?<=[A-Z])([A-Z])/g, (e) => `${e.toLowerCase()}`).replace(/^[A-Z]/, (e) => e.toLowerCase()).replace(/(?<=[\w ])[A-Z]/g, (e) => `-${e.toLowerCase()}`).replace(/[A-Z]/g, (e) => e.toLowerCase());
5084
5121
  }
5085
5122
  //#endregion
5086
5123
  //#region src/functions/toNumberByMax.ts
5087
- function Er(e, t, n, r) {
5088
- let i = x(e), a = x(t);
5089
- return t && a < i ? `${Dr(a, n, r)}+` : Dr(i, n, r);
5124
+ function kr(e, t, n, r) {
5125
+ let i = b(e), a = b(t);
5126
+ return t && a < i ? `${Ar(a, n, r)}+` : Ar(i, n, r);
5090
5127
  }
5091
- var Dr = (e, t, n) => t ? new L(n).number(e) : e;
5128
+ var Ar = (e, t, n) => t ? new R(n).number(e) : e;
5092
5129
  //#endregion
5093
5130
  //#region src/functions/toNumberPositive.ts
5094
- function Or(e, t = 0) {
5095
- if (u(e)) {
5131
+ function jr(e, t = 0) {
5132
+ if (l(e)) {
5096
5133
  let t = Number(e);
5097
5134
  if (Number.isFinite(t) && t > 0) return t;
5098
5135
  }
@@ -5100,20 +5137,20 @@ function Or(e, t = 0) {
5100
5137
  }
5101
5138
  //#endregion
5102
5139
  //#region src/functions/toPercent.ts
5103
- function kr(e, t) {
5140
+ function Mr(e, t) {
5104
5141
  return e === 0 ? t : 1 / e * t;
5105
5142
  }
5106
5143
  //#endregion
5107
5144
  //#region src/functions/toPercentBy100.ts
5108
- function Ar(e, t) {
5109
- return kr(e, t) * 100;
5145
+ function Nr(e, t) {
5146
+ return Mr(e, t) * 100;
5110
5147
  }
5111
5148
  //#endregion
5112
5149
  //#region src/functions/uint8ArrayToBase64.ts
5113
- function jr(e) {
5150
+ function Pr(e) {
5114
5151
  let t = "";
5115
5152
  for (let n of e) t += String.fromCharCode(n);
5116
- if (c()) return window.btoa(t);
5153
+ if (s()) return window.btoa(t);
5117
5154
  if (globalThis && globalThis.Buffer) {
5118
5155
  var n;
5119
5156
  return (n = globalThis) == null ? void 0 : n.Buffer.from(e).toString("base64");
@@ -5122,8 +5159,8 @@ function jr(e) {
5122
5159
  }
5123
5160
  //#endregion
5124
5161
  //#region src/functions/writeClipboardData.ts
5125
- async function Mr(e) {
5126
- if (c()) try {
5162
+ async function Fr(e) {
5163
+ if (s()) try {
5127
5164
  await navigator.clipboard.writeText(e);
5128
5165
  } catch (n) {
5129
5166
  var t;
@@ -5131,4 +5168,4 @@ async function Mr(e) {
5131
5168
  }
5132
5169
  }
5133
5170
  //#endregion
5134
- export { F as Api, M as ApiCache, Re as ApiDataReturn, ze as ApiDefault, He as ApiError, Be as ApiErrorItem, Ve as ApiErrorStorage, Ue as ApiHeaders, Ge as ApiHydration, Ye as ApiInstance, N as ApiMethodItem, Ke as ApiPreparation, Je as ApiResponse, Ie as ApiStatus, Xe as BroadcastMessage, $e as Cache, Qe as CacheItem, et as CacheStatic, we as Cookie, xe as CookieBlock, be as CookieBlockInstance, D as CookieStorage, E as DataStorage, nt as Datetime, C as ErrorCenter, ce as ErrorCenterHandler, le as ErrorCenterInstance, je as EventItem, it as Formatters, V as FormattersType, at as GEO_FLAG_ICON_NAME, O as Geo, ot as GeoFlag, De as GeoInstance, L as GeoIntl, st as GeoPhone, lt as GeoUnit, ut as Global, pt as Hash, ft as HashInstance, gt as Icons, j as Loading, Ne as LoadingInstance, kt as Meta, G as MetaManager, Dt as MetaOg, wt as MetaOpenGraphAge, St as MetaOpenGraphAvailability, Ct as MetaOpenGraphCondition, Tt as MetaOpenGraphGender, q as MetaOpenGraphTag, xt as MetaOpenGraphType, bt as MetaRobots, At as MetaStatic, K as MetaTag, Ot as MetaTwitter, Et as MetaTwitterCard, J as MetaTwitterTag, Mt as Query, jt as QueryInstance, Nt as ResumableTimer, Pt as ScrollbarWidth, qt as SearchList, Bt as SearchListData, Vt as SearchListItem, Gt as SearchListMatcher, Kt as SearchListOptions, T as ServerStorage, Yt as StorageCallback, en as TRANSLATE_GLOBAL_PREFIX, tn as TRANSLATE_TIME_OUT, an as Translate, nn as TranslateFile, rn as TranslateInstance, Te as UI_GEO_COOKIE_KEY, dt as UrlInstanceAbstract, Y as UrlItem, zt as addTagHighlightMatch, S as anyToString, Qt as applyTemplate, on as arrFill, dn as blobToBase64, fn as capitalize, Z as copyObject, pn as copyObjectLite, U as createElement, mn as domContentLoaded, hn as domQuerySelector, gn as domQuerySelectorAll, W as encodeAttribute, fe as encodeLiteAttribute, yn as ensureMaxSize, X as escapeExp, bn as eventStopPropagation, h as executeFunction, P as executePromise, i as forEach, xn as frame, Sn as getArrayHighlightMatch, Cn as getAttributes, wn as getClipboardData, tt as getColumn, Tn as getCurrentDate, En as getCurrentTime, k as getElement, kn as getElementId, _n as getElementImage, _t as getElementItem, ke as getElementOrWindow, pe as getElementSafeScript, Ut as getExactSearchExp, Ht as getExp, jn as getFirst, me as getHydrationData, Mn as getImageSrc, B as getItemByPath, Nn as getKey, Pn as getLast, Fn as getLength, In as getLengthOfAllArray, Ln as getMaxLengthAllArray, Rn as getMinLengthAllArray, Vn as getMouseClient, zn as getMouseClientX, Bn as getMouseClientY, Hn as getObjectByKeys, Un as getObjectNoUndefined, Wn as getObjectOrNone, Gn as getOnlyText, Kn as getRandomItem, Jn as getRandomText, s as getRequestString, Wt as getSearchExp, Ft as getSeparatingSearchExp, Yn as getStepPercent, Xn as getStepValue, Qn as goScroll, $n as goScrollSmooth, er as goScrollTo, nr as handleShare, rr as inArray, An as initGetElementId, ir as initScrollbarOffset, ar as intersectKey, $t as isApiSuccess, a as isArray, or as isDifferent, oe as isDomData, c as isDomRuntime, sr as isElementVisible, lr as isEnter, u as isFilled, ur as isFloat, m as isFunction, Ae as isInDom, cr as isInput, dr as isIntegerBetween, fr as isMetaKey, l as isNull, _ as isNumber, n as isObject, r as isObjectNotArray, d as isOnLine, ae as isSelected, pr as isSelectedByList, tr as isShare, f as isString, mr as isTab, Oe as isWindow, p as random, hr as removeCommonPrefix, gr as replaceComponentName, $ as replaceRecursive, vr as replaceTemplate, yr as resizeImage, Q as resizeImageByMax, br as secondToTime, vt as setElementItem, xr as setValues, ee as sleep, Sr as sortList, Cr as splice, qn as strFill, se as strSplit, A as toArray, rt as toCamelCase, wr as toCamelCaseFirst, I as toDate, Tr as toKebabCase, x as toNumber, Er as toNumberByMax, Or as toNumberPositive, kr as toPercent, Ar as toPercentBy100, o as toString, w as transformation, jr as uint8ArrayToBase64, _r as uniqueArray, Mr as writeClipboardData };
5171
+ export { I as Api, N as ApiCache, Be as ApiDataReturn, Ve as ApiDefault, We as ApiError, He as ApiErrorItem, Ue as ApiErrorStorage, Ge as ApiHeaders, qe as ApiHydration, Ze as ApiInstance, P as ApiMethodItem, Je as ApiPreparation, Xe as ApiResponse, Re as ApiStatus, Qe as BroadcastMessage, tt as Cache, et as CacheItem, nt as CacheStatic, Ee as Cookie, Ce as CookieBlock, Se as CookieBlockInstance, O as CookieStorage, D as DataStorage, it as Datetime, T as ErrorCenter, le as ErrorCenterHandler, ue as ErrorCenterInstance, Ne as EventItem, ot as Formatters, H as FormattersType, st as GEO_FLAG_ICON_NAME, k as Geo, ct as GeoFlag, ke as GeoInstance, R as GeoIntl, lt as GeoPhone, dt as GeoUnit, ft as Global, ht as Hash, mt as HashInstance, vt as Icons, M as Loading, Fe as LoadingInstance, jt as Meta, K as MetaManager, kt as MetaOg, Et as MetaOpenGraphAge, wt as MetaOpenGraphAvailability, Tt as MetaOpenGraphCondition, Dt as MetaOpenGraphGender, J as MetaOpenGraphTag, Ct as MetaOpenGraphType, St as MetaRobots, Mt as MetaStatic, q as MetaTag, At as MetaTwitter, Ot as MetaTwitterCard, Y as MetaTwitterTag, Pt as Query, Nt as QueryInstance, Ft as ResumableTimer, It as ScrollbarWidth, Yt as SearchList, Ht as SearchListData, Ut as SearchListItem, qt as SearchListMatcher, Jt as SearchListOptions, E as ServerStorage, Zt as StorageCallback, nn as TRANSLATE_GLOBAL_PREFIX, rn as TRANSLATE_TIME_OUT, sn as Translate, an as TranslateFile, on as TranslateInstance, De as UI_GEO_COOKIE_KEY, pt as UrlInstanceAbstract, X as UrlItem, Vt as addTagHighlightMatch, S as anyToString, en as applyTemplate, cn as arrFill, pn as blobToBase64, mn as capitalize, Q as copyObject, hn as copyObjectLite, W as createElement, gn as domContentLoaded, _n as domQuerySelector, vn as domQuerySelectorAll, G as encodeAttribute, me as encodeLiteAttribute, Sn as ensureMaxSize, Z as escapeExp, Cn as eventStopPropagation, m as executeFunction, F as executePromise, r as forEach, wn as frame, Tn as getArrayHighlightMatch, En as getAttributes, Dn as getClipboardData, rt as getColumn, On as getCurrentDate, kn as getCurrentTime, A as getElement, Mn as getElementId, yn as getElementImage, yt as getElementItem, je as getElementOrWindow, he as getElementSafeScript, Gt as getExactSearchExp, Wt as getExp, Pn as getFirst, ge as getHydrationData, Fn as getImageSrc, V as getItemByPath, In as getKey, Ln as getLast, Rn as getLength, zn as getLengthOfAllArray, Bn as getMaxLengthAllArray, Vn as getMinLengthAllArray, Wn as getMouseClient, Hn as getMouseClientX, Un as getMouseClientY, Gn as getObjectByKeys, Kn as getObjectNoUndefined, qn as getObjectOrNone, Jn as getOnlyText, Yn as getRandomItem, Zn as getRandomText, o as getRequestString, Kt as getSearchExp, Lt as getSeparatingSearchExp, Qn as getStepPercent, $n as getStepValue, tr as goScroll, nr as goScrollSmooth, rr as goScrollTo, ar as handleShare, or as inArray, Nn as initGetElementId, sr as initScrollbarOffset, cr as intersectKey, tn as isApiSuccess, i as isArray, lr as isDifferent, ae as isDomData, s as isDomRuntime, ur as isElementVisible, fr as isEnter, l as isFilled, pr as isFloat, p as isFunction, Me as isInDom, dr as isInput, mr as isIntegerBetween, hr as isMetaKey, c as isNull, g as isNumber, t as isObject, n as isObjectNotArray, u as isOnLine, x as isSelected, gr as isSelectedByList, ir as isShare, d as isString, _r as isTab, Ae as isWindow, f as random, vr as removeCommonPrefix, yr as replaceComponentName, $ as replaceRecursive, xr as replaceTemplate, Sr as resizeImage, xn as resizeImageByMax, Cr as secondToTime, bt as setElementItem, wr as setValues, ee as sleep, Tr as sortList, Er as splice, Xn as strFill, oe as strSplit, j as toArray, at as toCamelCase, Dr as toCamelCaseFirst, L as toDate, Or as toKebabCase, b as toNumber, kr as toNumberByMax, jr as toNumberPositive, Mr as toPercent, Nr as toPercentBy100, a as toString, fe as transformation, Pr as uint8ArrayToBase64, br as uniqueArray, Fr as writeClipboardData };