@dxtmisha/functional-basic 1.3.8 → 1.3.9

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
@@ -98,43 +98,43 @@ function ee(e) {
98
98
  return new Promise((t) => setTimeout(t, e));
99
99
  }
100
100
  //#endregion
101
- //#region src/functions/isNumber.ts
102
- var te = /^-?[0-9]+(\.[0-9]+)?$/;
101
+ //#region src/functions/isFunction.ts
103
102
  function p(e) {
103
+ return e instanceof Function || typeof e == "function";
104
+ }
105
+ //#endregion
106
+ //#region src/functions/executeFunction.ts
107
+ function m(e, ...t) {
108
+ return p(e) ? e(...t) : e;
109
+ }
110
+ //#endregion
111
+ //#region src/functions/isNumber.ts
112
+ var h = /^-?[0-9]+(\.[0-9]+)?$/;
113
+ function g(e) {
104
114
  switch (typeof e) {
105
115
  case "number": return Number.isFinite(e);
106
116
  case "bigint": return !0;
107
- case "string": return te.test(e.trim());
117
+ case "string": return h.test(e.trim());
108
118
  default: return !1;
109
119
  }
110
120
  }
111
121
  //#endregion
112
122
  //#region src/functions/toNumber.ts
113
- var m = /[^-+\d., ]+/g, h = /( [0-9]{3}[ ,.]|[0-9] [0-9])/, g = / /g, _ = /,/g, ne = /,[0-9]{3}[,.]/, v = /[.][0-9]{3}[,.]/, re = /[.]/g;
114
- function y(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) {
115
125
  if (typeof e == "number") return Number.isFinite(e) && e || 0;
116
126
  if (!e) return 0;
117
- let t = e.replace(m, "");
118
- return t = h.test(t) ? t.replace(g, "").replace(_, ".") : ne.test(t) ? t.replace(_, "") : v.test(t) ? t.replace(re, "").replace(_, ".") : t.replace(_, "."), parseFloat(t) || 0;
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;
119
129
  }
120
130
  //#endregion
121
131
  //#region src/functions/isSelected.ts
122
- function b(e, t) {
123
- return c(e) ? !1 : Array.isArray(t) ? t.includes(e) : p(e) && p(t) ? y(e) === y(t) : e === t;
124
- }
125
- //#endregion
126
- //#region src/functions/isFunction.ts
127
- function x(e) {
128
- return e instanceof Function || typeof e == "function";
129
- }
130
- //#endregion
131
- //#region src/functions/executeFunction.ts
132
- function S(e, ...t) {
133
- return x(e) ? e(...t) : e;
132
+ function x(e, t) {
133
+ return c(e) ? !1 : Array.isArray(t) ? t.includes(e) : g(e) && g(t) ? b(e) === b(t) : e === t;
134
134
  }
135
135
  //#endregion
136
136
  //#region src/functions/anyToString.ts
137
- function C(e, n = !0, r = !0) {
137
+ function S(e, n = !0, r = !0) {
138
138
  var a;
139
139
  if (d(e)) return r ? e.trim() : e;
140
140
  if (c(e)) return "";
@@ -148,49 +148,49 @@ function C(e, n = !0, r = !0) {
148
148
  }
149
149
  //#endregion
150
150
  //#region src/functions/isDomData.ts
151
- function ie() {
151
+ function ae() {
152
152
  return s() && location.href.startsWith("data:");
153
153
  }
154
154
  //#endregion
155
155
  //#region src/functions/strSplit.ts
156
- function ae(e, t, n) {
157
- let r = C(e);
156
+ function oe(e, t, n) {
157
+ let r = S(e);
158
158
  if (!n || n <= 0) return r.split(t);
159
159
  let i = r.split(t, n), a = r.split(t);
160
160
  return i.length === a.length ? i : (i.pop(), [...i, a.slice(n - 1).join(t)]);
161
161
  }
162
162
  //#endregion
163
163
  //#region \0@oxc-project+runtime@0.130.0/helpers/typeof.js
164
- function w(e) {
164
+ function C(e) {
165
165
  "@babel/helpers - typeof";
166
- return w = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
166
+ return C = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
167
167
  return typeof e;
168
168
  } : function(e) {
169
169
  return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
170
- }, w(e);
170
+ }, C(e);
171
171
  }
172
172
  //#endregion
173
173
  //#region \0@oxc-project+runtime@0.130.0/helpers/toPrimitive.js
174
- function oe(e, t) {
175
- if (w(e) != "object" || !e) return e;
174
+ function se(e, t) {
175
+ if (C(e) != "object" || !e) return e;
176
176
  var n = e[Symbol.toPrimitive];
177
177
  if (n !== void 0) {
178
178
  var r = n.call(e, t || "default");
179
- if (w(r) != "object") return r;
179
+ if (C(r) != "object") return r;
180
180
  throw TypeError("@@toPrimitive must return a primitive value.");
181
181
  }
182
182
  return (t === "string" ? String : Number)(e);
183
183
  }
184
184
  //#endregion
185
185
  //#region \0@oxc-project+runtime@0.130.0/helpers/toPropertyKey.js
186
- function se(e) {
187
- var t = oe(e, "string");
188
- return w(t) == "symbol" ? t : t + "";
186
+ function ce(e) {
187
+ var t = se(e, "string");
188
+ return C(t) == "symbol" ? t : t + "";
189
189
  }
190
190
  //#endregion
191
191
  //#region \0@oxc-project+runtime@0.130.0/helpers/defineProperty.js
192
- function T(e, t, n) {
193
- return (t = se(t)) in e ? Object.defineProperty(e, t, {
192
+ function w(e, t, n) {
193
+ return (t = ce(t)) in e ? Object.defineProperty(e, t, {
194
194
  value: n,
195
195
  enumerable: !0,
196
196
  configurable: !0,
@@ -199,9 +199,9 @@ function T(e, t, n) {
199
199
  }
200
200
  //#endregion
201
201
  //#region src/classes/ErrorCenterHandler.ts
202
- var ce = class {
202
+ var le = class {
203
203
  constructor(e) {
204
- T(this, "handlers", []), e && this.addList(e);
204
+ w(this, "handlers", []), e && this.addList(e);
205
205
  }
206
206
  has(e) {
207
207
  return !!this.get(e);
@@ -227,9 +227,9 @@ var ce = class {
227
227
  toConsole(e) {
228
228
  return console.error(`Error Center: ${e.code}`), console.error("Error Center/message: ", e.message), console.error("Error Center/details", e.details), this;
229
229
  }
230
- }, le = class {
231
- constructor(e, t = new ce()) {
232
- T(this, "handler", void 0), T(this, "causes", []), this.handler = t, e && this.addList(e);
230
+ }, ue = class {
231
+ constructor(e, t = new le()) {
232
+ w(this, "handler", void 0), w(this, "causes", []), this.handler = t, e && this.addList(e);
233
233
  }
234
234
  has(e, t) {
235
235
  return !!this.get(e, t);
@@ -266,7 +266,7 @@ var ce = class {
266
266
  }
267
267
  return e;
268
268
  }
269
- }, ue = [
269
+ }, de = [
270
270
  {
271
271
  group: "api",
272
272
  code: "cacheClear",
@@ -417,7 +417,7 @@ var ce = class {
417
417
  label: "Translate Error",
418
418
  message: "An error occurred while loading translations."
419
419
  }
420
- ], E = class {
420
+ ], T = class {
421
421
  static getItem() {
422
422
  return this.item;
423
423
  }
@@ -443,10 +443,10 @@ var ce = class {
443
443
  this.getItem().on(e);
444
444
  }
445
445
  };
446
- T(E, "item", new le(ue));
446
+ w(T, "item", new ue(de));
447
447
  //#endregion
448
448
  //#region src/functions/transformation.ts
449
- function de(e, t = !1) {
449
+ function fe(e, t = !1) {
450
450
  if (typeof e == "string") {
451
451
  let r = e.trim();
452
452
  switch (r) {
@@ -459,7 +459,7 @@ function de(e, t = !1) {
459
459
  if (/^[{[]/.exec(r)) try {
460
460
  return JSON.parse(r);
461
461
  } catch (e) {
462
- E.on({
462
+ T.on({
463
463
  group: "transformation",
464
464
  code: "error",
465
465
  details: e
@@ -474,32 +474,32 @@ function de(e, t = !1) {
474
474
  }
475
475
  //#endregion
476
476
  //#region src/functions/encodeLiteAttribute.ts
477
- var fe = {
477
+ var pe = {
478
478
  "<": "&lt;",
479
479
  ">": "&gt;",
480
480
  "&": "&amp;"
481
481
  };
482
- function pe(e) {
482
+ function me(e) {
483
483
  return String(e).replace(/[<>&]/g, (e) => {
484
484
  var t;
485
- return (t = fe == null ? void 0 : fe[e]) == null ? e : t;
485
+ return (t = pe == null ? void 0 : pe[e]) == null ? e : t;
486
486
  });
487
487
  }
488
488
  //#endregion
489
489
  //#region src/functions/getElementSafeScript.ts
490
- function me(e, t) {
490
+ function he(e, t) {
491
491
  return `<script id="${e.replace(/"/g, "&quot;")}" type="application/json">${JSON.stringify(t).replace(/<\/(script)>/gi, "<\\/$1>")}<\/script>`;
492
492
  }
493
493
  //#endregion
494
494
  //#region src/functions/getHydrationData.ts
495
- function he(e, t, n = !0) {
495
+ function ge(e, t, n = !0) {
496
496
  if (typeof document < "u") {
497
497
  let t = document.getElementById(e);
498
498
  if (t) try {
499
499
  let e = JSON.parse(t.textContent || "");
500
500
  return n && t.remove(), e;
501
501
  } catch (t) {
502
- E.on({
502
+ T.on({
503
503
  group: "hydration",
504
504
  code: "error",
505
505
  details: {
@@ -513,7 +513,7 @@ function he(e, t, n = !0) {
513
513
  }
514
514
  //#endregion
515
515
  //#region src/classes/ServerStorage.ts
516
- var ge = "__ui:server-storage__", _e = "__ui:server:storage:id__", D = class {
516
+ var _e = "__ui:server-storage__", ve = "__ui:server:storage:id__", E = class {
517
517
  static init(e) {
518
518
  return this.listener || (this.listener = e), this;
519
519
  }
@@ -543,7 +543,7 @@ var ge = "__ui:server-storage__", _e = "__ui:server:storage:id__", D = class {
543
543
  e in t && delete t[e];
544
544
  }
545
545
  static toString() {
546
- return me(_e, this.getDataForHydration());
546
+ return he(ve, this.getDataForHydration());
547
547
  }
548
548
  static getStorage(e = !0, t) {
549
549
  var n;
@@ -551,17 +551,17 @@ var ge = "__ui:server-storage__", _e = "__ui:server:storage:id__", D = class {
551
551
  let r = (n = this.listener) == null ? void 0 : n.call(this);
552
552
  if (!r) {
553
553
  var i;
554
- return this.hideError || E.on({
554
+ return this.hideError || T.on({
555
555
  group: "storage",
556
556
  code: "context",
557
557
  details: { status: t }
558
558
  }), e && !this.storage && (this.storage = {}), (i = this.storage) == null ? {} : i;
559
559
  }
560
- return ge in r || (r[ge] = {}), r[ge];
560
+ return _e in r || (r[_e] = {}), r[_e];
561
561
  }
562
562
  static getStorageDom() {
563
563
  if (!this.storage) {
564
- let e = he(_e, {});
564
+ let e = ge(ve, {});
565
565
  this.storage = {}, r(e, (e, t) => {
566
566
  this.storage[t] = {
567
567
  value: e,
@@ -578,16 +578,16 @@ var ge = "__ui:server-storage__", _e = "__ui:server:storage:id__", D = class {
578
578
  }), t;
579
579
  }
580
580
  };
581
- T(D, "storage", void 0), T(D, "listener", void 0), T(D, "hideError", void 0);
581
+ w(E, "storage", void 0), w(E, "listener", void 0), w(E, "hideError", void 0);
582
582
  //#endregion
583
583
  //#region src/classes/DataStorage.ts
584
- var ve = "ui-storage", ye = () => D.get("__ui:data-storage__", () => ({})), O = class {
584
+ var ye = "ui-storage", be = () => E.get("__ui:data-storage__", () => ({})), D = class {
585
585
  static setPrefix(e) {
586
- ve = e;
586
+ ye = e;
587
587
  }
588
- constructor(e, t = !1, n = E.getItem()) {
589
- T(this, "name", void 0), T(this, "isSession", void 0), T(this, "errorCenter", void 0), T(this, "value", void 0), T(this, "age", void 0), this.name = e, this.isSession = t, this.errorCenter = n;
590
- let r = `${t ? "session" : "storage"}#${e}`, i = ye();
588
+ constructor(e, t = !1, n = T.getItem()) {
589
+ 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;
590
+ let r = `${t ? "session" : "storage"}#${e}`, i = be();
591
591
  if (r in i) return i[r];
592
592
  this.make(), i[r] = this;
593
593
  }
@@ -596,10 +596,10 @@ var ve = "ui-storage", ye = () => D.get("__ui:data-storage__", () => ({})), O =
596
596
  if (e !== void 0) return this.set(e);
597
597
  }
598
598
  set(e) {
599
- if (this.value = S(e), this.age = Date.now(), this.value === void 0) this.remove();
599
+ if (this.value = m(e), this.age = Date.now(), this.value === void 0) this.remove();
600
600
  else {
601
601
  var t;
602
- (t = this.getMethod()) == null || t.setItem(this.getIndex(), pe(JSON.stringify({
602
+ (t = this.getMethod()) == null || t.setItem(this.getIndex(), me(JSON.stringify({
603
603
  value: this.value,
604
604
  age: this.age
605
605
  })));
@@ -617,14 +617,14 @@ var ve = "ui-storage", ye = () => D.get("__ui:data-storage__", () => ({})), O =
617
617
  return c(e) || this.age && this.age + e * 1e3 >= Date.now();
618
618
  }
619
619
  getMethod() {
620
- if (s() && !ie()) {
620
+ if (s() && !ae()) {
621
621
  var e, t;
622
622
  let n = this.isSession ? (e = window) == null ? void 0 : e.sessionStorage : (t = window) == null ? void 0 : t.localStorage;
623
623
  if (n) return n;
624
624
  }
625
625
  }
626
626
  getIndex() {
627
- return `${ve}__${this.name}`;
627
+ return `${ye}__${this.name}`;
628
628
  }
629
629
  getValue() {
630
630
  var e, t;
@@ -643,9 +643,9 @@ var ve = "ui-storage", ye = () => D.get("__ui:data-storage__", () => ({})), O =
643
643
  let e = this.getValue();
644
644
  return e ? (this.value = e.value, this.age = e.age) : (this.value = void 0, this.age = void 0), this;
645
645
  }
646
- }, be = "__ui:cookie-block__", xe = class {
646
+ }, xe = "__ui:cookie-block__", Se = class {
647
647
  constructor() {
648
- T(this, "storage", new O(be));
648
+ w(this, "storage", new D(xe));
649
649
  }
650
650
  get() {
651
651
  var e;
@@ -654,9 +654,9 @@ var ve = "ui-storage", ye = () => D.get("__ui:data-storage__", () => ({})), O =
654
654
  set(e) {
655
655
  this.storage.set(e);
656
656
  }
657
- }, Se = class {
657
+ }, Ce = class {
658
658
  static getItem() {
659
- return D.get("__ui:cookie-block__", () => new xe());
659
+ return E.get("__ui:cookie-block__", () => new Se());
660
660
  }
661
661
  static get() {
662
662
  return this.getItem().get();
@@ -664,7 +664,7 @@ var ve = "ui-storage", ye = () => D.get("__ui:data-storage__", () => ({})), O =
664
664
  static set(e) {
665
665
  this.getItem().set(e);
666
666
  }
667
- }, Ce = "__ui:cookie-storage__", k = class {
667
+ }, we = "__ui:cookie-storage__", O = class {
668
668
  static init(e, t, n) {
669
669
  this.getListener = e, this.getListenerRaw = t, this.setListener = n;
670
670
  }
@@ -674,19 +674,19 @@ var ve = "ui-storage", ye = () => D.get("__ui:data-storage__", () => ({})), O =
674
674
  static get(e, t) {
675
675
  var n, r;
676
676
  let i = (n = (r = this.getListener) == null ? void 0 : r.call(this, e)) == null ? this.initItems()[e] : n;
677
- return i === void 0 && t !== void 0 ? this.set(e, t) : de(i);
677
+ return i === void 0 && t !== void 0 ? this.set(e, t) : fe(i);
678
678
  }
679
679
  static set(e, t, n) {
680
- let r = S(t);
681
- if (Se.get()) return r;
682
- let i = C(r, !1);
680
+ let r = m(t);
681
+ if (Ce.get()) return r;
682
+ let i = S(r, !1);
683
683
  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;
684
684
  }
685
685
  static remove(e) {
686
686
  this.set(e, "", { age: -1 });
687
687
  }
688
688
  static update() {
689
- s() && (D.remove(Ce), this.initItems());
689
+ s() && (E.remove(we), this.initItems());
690
690
  }
691
691
  static format(e, t, n) {
692
692
  return [
@@ -702,18 +702,18 @@ var ve = "ui-storage", ye = () => D.get("__ui:data-storage__", () => ({})), O =
702
702
  ].filter(Boolean).join("; ");
703
703
  }
704
704
  static hasDom() {
705
- return s() && !ie();
705
+ return s() && !ae();
706
706
  }
707
707
  static parse(e) {
708
708
  let t = {};
709
709
  for (let n of e.split(";")) {
710
- let [e, r] = ae(n.trim(), "=", 2);
710
+ let [e, r] = oe(n.trim(), "=", 2);
711
711
  e && l(r) && (t[e] = r);
712
712
  }
713
713
  return t;
714
714
  }
715
715
  static initItems() {
716
- return D.get(Ce, () => {
716
+ return E.get(we, () => {
717
717
  var e;
718
718
  if (this.hasDom()) return this.parse(document.cookie);
719
719
  let t = (e = this.getListenerRaw) == null ? void 0 : e.call(this);
@@ -742,38 +742,38 @@ var ve = "ui-storage", ye = () => D.get("__ui:data-storage__", () => ({})), O =
742
742
  return e ? "Partitioned" : void 0;
743
743
  }
744
744
  static toArguments(e) {
745
- return e === void 0 ? [] : Array.isArray(e) ? e : Object.entries(e).map(([e, t]) => `${e}=${C(t)}`);
745
+ return e === void 0 ? [] : Array.isArray(e) ? e : Object.entries(e).map(([e, t]) => `${e}=${S(t)}`);
746
746
  }
747
747
  };
748
- T(k, "getListener", void 0), T(k, "getListenerRaw", void 0), T(k, "setListener", void 0);
748
+ w(O, "getListener", void 0), w(O, "getListenerRaw", void 0), w(O, "setListener", void 0);
749
749
  //#endregion
750
750
  //#region src/classes/Cookie.ts
751
- var we = () => D.get("__ui:cookie-items__", () => ({})), Te = class e {
751
+ var Te = () => E.get("__ui:cookie-items__", () => ({})), Ee = class e {
752
752
  static getInstance(t) {
753
753
  var n, r;
754
- return (n = (r = we()) == null ? void 0 : r[t]) == null ? new e(t) : n;
754
+ return (n = (r = Te()) == null ? void 0 : r[t]) == null ? new e(t) : n;
755
755
  }
756
756
  constructor(e) {
757
- T(this, "name", void 0), T(this, "value", void 0), T(this, "options", {}), this.name = e;
758
- let t = we();
757
+ w(this, "name", void 0), w(this, "value", void 0), w(this, "options", {}), this.name = e;
758
+ let t = Te();
759
759
  if (e in t) return t[e];
760
- this.value = k.get(this.name), t[e] = this;
760
+ this.value = O.get(this.name), t[e] = this;
761
761
  }
762
762
  get(e, t) {
763
763
  return this.value === void 0 && e && this.set(e, t), this.value;
764
764
  }
765
765
  set(e, t) {
766
- this.value = S(e), Object.assign(this.options, t), this.update();
766
+ this.value = m(e), Object.assign(this.options, t), this.update();
767
767
  }
768
768
  remove() {
769
769
  this.set("");
770
770
  }
771
771
  update() {
772
- k.set(this.name, this.value, this.options);
772
+ O.set(this.name, this.value, this.options);
773
773
  }
774
- }, Ee = "ui-geo-code", De = "__ui:geo-code__", Oe = class {
774
+ }, De = "ui-geo-code", Oe = "__ui:geo-code__", ke = class {
775
775
  constructor() {
776
- T(this, "storage", new O(De)), T(this, "location", void 0), T(this, "valueDefault", void 0), T(this, "item", void 0), T(this, "language", void 0), T(this, "timezone", (/* @__PURE__ */ new Date()).getTimezoneOffset()), this.location = this.findLocation(), this.item = this.getByCode(this.location), this.language = this.findLanguage(this.location);
776
+ 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);
777
777
  }
778
778
  get() {
779
779
  return this.item;
@@ -809,7 +809,7 @@ var we = () => D.get("__ui:cookie-items__", () => ({})), Te = class e {
809
809
  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.getByLanguage(this.toLanguage(e))), !n && /[A-Z]{2}/.test(e) && (n = this.getByCountry(this.toCountry(e)))), this.toFull((t = n) == null ? this.getList()[0] : t);
810
810
  }
811
811
  getByCodeFull(e) {
812
- return this.getList().find((t) => b(e, [`${t.language}-${t.country}`, `${t.country}-${t.language}`]));
812
+ return this.getList().find((t) => x(e, [`${t.language}-${t.country}`, `${t.country}-${t.language}`]));
813
813
  }
814
814
  getByCountry(e) {
815
815
  return this.getList().find((t) => {
@@ -846,10 +846,10 @@ var we = () => D.get("__ui:cookie-items__", () => ({})), Te = class e {
846
846
  this.valueDefault = e, this.location = this.findLocation(), this.item = this.getByCode(this.location), this.language = this.findLanguage(this.location);
847
847
  }
848
848
  getCookie() {
849
- return Te.getInstance(Ee);
849
+ return Ee.getInstance(De);
850
850
  }
851
851
  findLocation() {
852
- return this.findLocationDom() || this.getCookie().get() || this.valueDefault || "en-GB";
852
+ return this.findLocationDom() || this.getCookie().get() || m(this.valueDefault) || "en-GB";
853
853
  }
854
854
  findLocationDom() {
855
855
  var e;
@@ -871,9 +871,9 @@ var we = () => D.get("__ui:cookie-items__", () => ({})), Te = class e {
871
871
  firstDay: (e == null ? void 0 : e.firstDay) || "Mo"
872
872
  };
873
873
  }
874
- }, A = class {
874
+ }, k = class {
875
875
  static getObject() {
876
- return D.get("__ui:geo-instance__", () => new Oe());
876
+ return E.get("__ui:geo-instance__", () => new ke());
877
877
  }
878
878
  static get() {
879
879
  return this.getObject().get();
@@ -935,14 +935,14 @@ var we = () => D.get("__ui:cookie-items__", () => ({})), Te = class e {
935
935
  };
936
936
  //#endregion
937
937
  //#region src/functions/isWindow.ts
938
- function ke(e) {
938
+ function Ae(e) {
939
939
  return s() && e === window;
940
940
  }
941
941
  //#endregion
942
942
  //#region src/functions/getElement.ts
943
- function j(e) {
943
+ function A(e) {
944
944
  if (!s()) return d(e) ? void 0 : e;
945
- if (ke(e)) return document.body;
945
+ if (Ae(e)) return document.body;
946
946
  if (d(e)) {
947
947
  var t;
948
948
  return (t = document.querySelector(e)) == null ? void 0 : t;
@@ -951,30 +951,30 @@ function j(e) {
951
951
  }
952
952
  //#endregion
953
953
  //#region src/functions/getElementOrWindow.ts
954
- function Ae(e) {
955
- return ke(e) ? e : j(e);
954
+ function je(e) {
955
+ return Ae(e) ? e : A(e);
956
956
  }
957
957
  //#endregion
958
958
  //#region src/functions/isInDom.ts
959
- function je(e) {
959
+ function Me(e) {
960
960
  var t;
961
- return (e == null ? void 0 : e.isConnected) || !!((t = j(e)) != null && t.closest("html"));
961
+ return (e == null ? void 0 : e.isConnected) || !!((t = A(e)) != null && t.closest("html"));
962
962
  }
963
963
  //#endregion
964
964
  //#region src/functions/toArray.ts
965
- function M(e) {
965
+ function j(e) {
966
966
  return Array.isArray(e) ? e : [e];
967
967
  }
968
968
  //#endregion
969
969
  //#region src/classes/EventItem.ts
970
- var Me = class {
970
+ var Ne = class {
971
971
  constructor(e, n = ["click"], r, i, a) {
972
- T(this, "listener", void 0), T(this, "options", void 0), T(this, "detail", void 0), T(this, "element", void 0), T(this, "elementControl", void 0), T(this, "elementControlEdit", void 0), T(this, "type", void 0), T(this, "listenerRecent", (e) => {
973
- if (je(this.elementControl)) {
972
+ 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) => {
973
+ if (Me(this.elementControl)) {
974
974
  var n, r;
975
975
  (n = this.listener) == null || n.call(this.element, e, this.detail), t(this.options) && (r = this.options) != null && r.once && this.stop();
976
976
  } else this.stop();
977
- }), T(this, "activity", !1), T(this, "activityItems", []), this.listener = r, this.options = i, this.detail = a, this.element = Ae(e), this.elementControl = j(e), this.type = M(n);
977
+ }), 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);
978
978
  }
979
979
  isActive() {
980
980
  return this.activity;
@@ -983,14 +983,14 @@ var Me = class {
983
983
  return this.element;
984
984
  }
985
985
  setElement(e) {
986
- let t = Ae(e);
987
- return this.elementControlEdit || (this.elementControl = j(e)), this.element = t, this.reset(), this;
986
+ let t = je(e);
987
+ return this.elementControlEdit || (this.elementControl = A(e)), this.element = t, this.reset(), this;
988
988
  }
989
989
  setElementControl(e) {
990
- return this.elementControl = j(e), this.elementControlEdit = !c(this.elementControl), this.elementControlEdit || (this.elementControl = j(this.element)), this;
990
+ return this.elementControl = A(e), this.elementControlEdit = !c(this.elementControl), this.elementControlEdit || (this.elementControl = A(this.element)), this;
991
991
  }
992
992
  setType(e) {
993
- return this.type = M(e), this.reset(), this;
993
+ return this.type = j(e), this.reset(), this;
994
994
  }
995
995
  setListener(e) {
996
996
  return this.listener = e, this;
@@ -1059,9 +1059,9 @@ var Me = class {
1059
1059
  }
1060
1060
  return !1;
1061
1061
  }
1062
- }, Ne = "ui-loading", Pe = class {
1063
- constructor(e = Ne) {
1064
- T(this, "eventName", void 0), T(this, "value", 0), T(this, "event", void 0), T(this, "registrationList", []), this.eventName = e, s() && (this.event = new Me(window, this.eventName));
1062
+ }, Pe = "ui-loading", Fe = class {
1063
+ constructor(e = Pe) {
1064
+ 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));
1065
1065
  }
1066
1066
  is() {
1067
1067
  return this.value > 0;
@@ -1077,7 +1077,7 @@ var Me = class {
1077
1077
  }
1078
1078
  registrationEvent(e, t) {
1079
1079
  if (s()) {
1080
- let n = new Me(window, this.eventName, e).setElementControl(t).start();
1080
+ let n = new Ne(window, this.eventName, e).setElementControl(t).start();
1081
1081
  this.registrationList.push({
1082
1082
  item: n,
1083
1083
  listener: e,
@@ -1092,7 +1092,7 @@ var Me = class {
1092
1092
  var e;
1093
1093
  (e = this.event) == null || e.dispatch({ loading: this.is() });
1094
1094
  }
1095
- }, N = class {
1095
+ }, M = class {
1096
1096
  static is() {
1097
1097
  return this.getItem().is();
1098
1098
  }
@@ -1100,7 +1100,7 @@ var Me = class {
1100
1100
  return this.getItem().get();
1101
1101
  }
1102
1102
  static getItem() {
1103
- return D.get("__ui:loading-instance__", () => new Pe());
1103
+ return E.get("__ui:loading-instance__", () => new Fe());
1104
1104
  }
1105
1105
  static show() {
1106
1106
  this.getItem().show();
@@ -1114,7 +1114,7 @@ var Me = class {
1114
1114
  static unregistrationEvent(e, t) {
1115
1115
  this.getItem().unregistrationEvent(e, t);
1116
1116
  }
1117
- }, Fe, Ie = 1440 * 60, P = class {
1117
+ }, Ie, Le = 1440 * 60, N = class {
1118
1118
  static init(e, t, n, r) {
1119
1119
  this.getListener = e, this.setListener = t, this.removeListener = n, r && (this.cacheStepAgeClearOld = r, this.stepAgeClearOld = r);
1120
1120
  }
@@ -1124,7 +1124,7 @@ var Me = class {
1124
1124
  static async get(e) {
1125
1125
  let t = await this.getItemOrListener(e);
1126
1126
  return this.clearOld().catch((e) => {
1127
- E.on({
1127
+ T.on({
1128
1128
  group: "api",
1129
1129
  code: "cacheClear",
1130
1130
  details: e
@@ -1136,7 +1136,7 @@ var Me = class {
1136
1136
  let t = this.generateKey(e);
1137
1137
  return await this.get(t);
1138
1138
  }
1139
- static async set(e, t, n = Ie) {
1139
+ static async set(e, t, n = Le) {
1140
1140
  let r = {
1141
1141
  value: t,
1142
1142
  age: n,
@@ -1199,12 +1199,12 @@ var Me = class {
1199
1199
  }
1200
1200
  }
1201
1201
  };
1202
- Fe = P, T(P, "items", void 0), T(P, "getListener", void 0), T(P, "setListener", void 0), T(P, "removeListener", void 0), T(P, "cacheStepAgeClearOld", 16384), T(P, "stepAgeClearOld", Fe.cacheStepAgeClearOld);
1202
+ 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);
1203
1203
  //#endregion
1204
1204
  //#region src/classes/ApiStatus.ts
1205
- var Le = class {
1205
+ var P = class {
1206
1206
  constructor() {
1207
- T(this, "value", void 0);
1207
+ w(this, "value", void 0);
1208
1208
  }
1209
1209
  get() {
1210
1210
  return this.value;
@@ -1272,7 +1272,7 @@ var Le = class {
1272
1272
  "error"
1273
1273
  ], ze = class {
1274
1274
  constructor(e, t, n, r) {
1275
- T(this, "apiFetch", void 0), T(this, "query", void 0), T(this, "end", void 0), T(this, "error", void 0), T(this, "data", void 0), T(this, "dataMod", void 0), this.apiFetch = e, this.query = t, this.end = n, this.error = r;
1275
+ 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;
1276
1276
  }
1277
1277
  async init() {
1278
1278
  return this.data = await this.readData(), this;
@@ -1313,13 +1313,13 @@ var Le = class {
1313
1313
  return e.delete = "DELETE", e.get = "GET", e.post = "POST", e.put = "PUT", e.patch = "PATCH", e;
1314
1314
  }({}), Be = class {
1315
1315
  constructor() {
1316
- T(this, "value", void 0);
1316
+ w(this, "value", void 0);
1317
1317
  }
1318
1318
  is() {
1319
1319
  return !!this.value;
1320
1320
  }
1321
1321
  get() {
1322
- return S(this.value);
1322
+ return m(this.value);
1323
1323
  }
1324
1324
  request(e) {
1325
1325
  let t = this.get();
@@ -1342,7 +1342,7 @@ var Le = class {
1342
1342
  }
1343
1343
  }, Ve = class {
1344
1344
  constructor(e, t, n) {
1345
- T(this, "method", void 0), T(this, "response", void 0), T(this, "error", void 0), T(this, "jsonResponse", void 0), this.method = e, this.response = t, this.error = n;
1345
+ 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;
1346
1346
  }
1347
1347
  getMethod() {
1348
1348
  return this.method;
@@ -1359,14 +1359,14 @@ var Le = class {
1359
1359
  }
1360
1360
  getMessage() {
1361
1361
  var e;
1362
- return S((e = this.error) == null ? void 0 : e.message, this.getResponse());
1362
+ return m((e = this.error) == null ? void 0 : e.message, this.getResponse());
1363
1363
  }
1364
1364
  getStatus() {
1365
1365
  return this.response.status;
1366
1366
  }
1367
1367
  }, He = class {
1368
1368
  constructor() {
1369
- T(this, "storage", []);
1369
+ w(this, "storage", []);
1370
1370
  }
1371
1371
  async find(e, t) {
1372
1372
  let n = await this.getBody(t), r = this.getCode(n), i = this.getMessage(n) || t.statusText, a = this.findItem(e, t, r);
@@ -1383,7 +1383,7 @@ var Le = class {
1383
1383
  };
1384
1384
  }
1385
1385
  add(e, t, n) {
1386
- return M(e).forEach((e) => {
1386
+ return j(e).forEach((e) => {
1387
1387
  let r = e.url || t, i = e.method || n;
1388
1388
  r && i && this.storage.push({
1389
1389
  ...e,
@@ -1420,7 +1420,7 @@ var Le = class {
1420
1420
  }
1421
1421
  }, Ue = class {
1422
1422
  static getStorage() {
1423
- return D.get("__ui:api-error-storage__", () => new He());
1423
+ return E.get("__ui:api-error-storage__", () => new He());
1424
1424
  }
1425
1425
  static add(e, t, n) {
1426
1426
  this.getStorage().add(e, t, n);
@@ -1430,11 +1430,11 @@ var Le = class {
1430
1430
  }
1431
1431
  }, We = class {
1432
1432
  constructor() {
1433
- T(this, "headers", {});
1433
+ w(this, "headers", {});
1434
1434
  }
1435
1435
  get(e, t = "application/json;charset=UTF-8") {
1436
1436
  if (e === null) return;
1437
- let r = { ...S(this.headers) };
1437
+ let r = { ...m(this.headers) };
1438
1438
  if (n(e)) for (let t in e) r[t.toLowerCase()] = e[t];
1439
1439
  return l(t) && (r["content-type"] = t), r;
1440
1440
  }
@@ -1446,7 +1446,7 @@ var Le = class {
1446
1446
  }
1447
1447
  }, Ge = "__ui:api:hydration:id__", Ke = class {
1448
1448
  constructor() {
1449
- T(this, "list", []);
1449
+ w(this, "list", []);
1450
1450
  }
1451
1451
  initResponse(e) {
1452
1452
  s() && e.add(this.getListByClient());
@@ -1461,14 +1461,14 @@ var Le = class {
1461
1461
  });
1462
1462
  }
1463
1463
  toString() {
1464
- return me(Ge, this.list);
1464
+ return he(Ge, this.list);
1465
1465
  }
1466
1466
  getListByClient() {
1467
- return he(Ge, []);
1467
+ return ge(Ge, []);
1468
1468
  }
1469
1469
  }, qe = class {
1470
1470
  constructor() {
1471
- T(this, "callback", void 0), T(this, "callbackEnd", void 0), T(this, "loading", !1);
1471
+ w(this, "callback", void 0), w(this, "callbackEnd", void 0), w(this, "loading", !1);
1472
1472
  }
1473
1473
  async make(e, t) {
1474
1474
  if (e && this.callback) return this.go(t);
@@ -1495,14 +1495,14 @@ var Le = class {
1495
1495
  //#endregion
1496
1496
  //#region src/functions/executePromise.ts
1497
1497
  async function Je(e, ...t) {
1498
- let n = S(e, ...t);
1498
+ let n = m(e, ...t);
1499
1499
  return n instanceof Promise ? await n : n;
1500
1500
  }
1501
1501
  //#endregion
1502
1502
  //#region src/classes/ApiResponse.ts
1503
1503
  var Ye = "d-response-loading", Xe = class {
1504
1504
  constructor(e) {
1505
- T(this, "requestDefault", void 0), T(this, "first", []), T(this, "response", []), T(this, "loading", void 0), T(this, "devMode", !1), this.requestDefault = e;
1505
+ w(this, "requestDefault", void 0), w(this, "first", []), w(this, "response", []), w(this, "loading", void 0), w(this, "devMode", !1), this.requestDefault = e;
1506
1506
  }
1507
1507
  get(e = "", t, n, r) {
1508
1508
  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);
@@ -1511,7 +1511,7 @@ var Ye = "d-response-loading", Xe = class {
1511
1511
  return this.response.filter((e) => e.isForGlobal !== !0);
1512
1512
  }
1513
1513
  add(e) {
1514
- return this.response.push(...M(e)), this;
1514
+ return this.response.push(...j(e)), this;
1515
1515
  }
1516
1516
  setDevMode(e) {
1517
1517
  return this.devMode = e, this;
@@ -1528,7 +1528,7 @@ var Ye = "d-response-loading", Xe = class {
1528
1528
  if (t) return this.fetchAsync(t.response);
1529
1529
  }
1530
1530
  isDisable(e) {
1531
- return !!S(e == null ? void 0 : e.disable);
1531
+ return !!m(e == null ? void 0 : e.disable);
1532
1532
  }
1533
1533
  isPath(e, t) {
1534
1534
  return t === e.path || !!(e.path instanceof RegExp && e.path.test(t));
@@ -1556,9 +1556,9 @@ var Ye = "d-response-loading", Xe = class {
1556
1556
  }
1557
1557
  fetch(e, t) {
1558
1558
  return this.startResponseLoading(), new Promise((n) => {
1559
- Je(x(e.response) ? e.response(t) : e.response).then((t) => {
1560
- e != null && e.lag ? (N.show(), setTimeout(() => {
1561
- this.stopResponseLoading(), n(t), N.hide();
1559
+ Je(p(e.response) ? e.response(t) : e.response).then((t) => {
1560
+ e != null && e.lag ? (M.show(), setTimeout(() => {
1561
+ this.stopResponseLoading(), n(t), M.hide();
1562
1562
  }, f(0, 2e3))) : (this.stopResponseLoading(), n(t));
1563
1563
  });
1564
1564
  });
@@ -1576,8 +1576,8 @@ var Ye = "d-response-loading", Xe = class {
1576
1576
  }
1577
1577
  }, Ze = class {
1578
1578
  constructor(e = "/api/", t = {}) {
1579
- T(this, "url", void 0), T(this, "headers", void 0), T(this, "requestDefault", void 0), T(this, "status", void 0), T(this, "response", void 0), T(this, "preparation", void 0), T(this, "loading", void 0), T(this, "errorCenter", void 0), T(this, "hydration", void 0), T(this, "timeout", 16e3), T(this, "origin", void 0), this.url = e;
1580
- let { headersClass: n = We, requestDefaultClass: r = Be, statusClass: i = Le, responseClass: a = Xe, preparationClass: o = qe, loadingClass: s = N.getItem(), errorCenterClass: c = E.getItem(), hydrationClass: l = Ke } = t;
1579
+ w(this, "url", 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), this.url = e;
1580
+ let { headersClass: n = We, requestDefaultClass: r = Be, statusClass: i = P, responseClass: a = Xe, preparationClass: o = qe, loadingClass: s = M.getItem(), errorCenterClass: c = T.getItem(), hydrationClass: l = Ke } = t;
1581
1581
  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.hydration.initResponse(this.response);
1582
1582
  }
1583
1583
  isLocalhost() {
@@ -1596,7 +1596,7 @@ var Ye = "d-response-loading", Xe = class {
1596
1596
  return this.origin && /^\//.test(this.url) ? `${this.origin}${this.url}` : this.url;
1597
1597
  }
1598
1598
  getUrl(e, t = !0) {
1599
- return `${t ? this.getOrigin() : ""}${e}`.replace("{locale}", A.getLocation()).replace("{country}", A.getCountry()).replace("{language}", A.getLanguage());
1599
+ return `${t ? this.getOrigin() : ""}${e}`.replace("{locale}", k.getLocation()).replace("{country}", k.getCountry()).replace("{language}", k.getLanguage());
1600
1600
  }
1601
1601
  getBody(e = {}, t = F.get) {
1602
1602
  if (e instanceof FormData) return e;
@@ -1670,29 +1670,29 @@ var Ye = "d-response-loading", Xe = class {
1670
1670
  return f(t, t + e * t);
1671
1671
  }
1672
1672
  async fetch(e, t = 0) {
1673
- let { method: n = F.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, te = this.getUrl(i, r), p = await this.response.emulator(e);
1674
- if (p) return p;
1675
- let m = await P.getByFetch(e);
1676
- if (m) return this.hydration.toClient(e, m), m;
1677
- let h = new Le(), g, _;
1673
+ let { method: n = F.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);
1674
+ if (m) return m;
1675
+ let h = await N.getByFetch(e);
1676
+ if (h) return this.hydration.toClient(e, h), h;
1677
+ let g = new P(), _, v;
1678
1678
  o || this.loading.show();
1679
1679
  try {
1680
1680
  await this.preparation.make(l, e);
1681
- let { query: r, timeoutId: i } = await this.makeQuery(e, te);
1681
+ let { query: r, timeoutId: i } = await this.makeQuery(e, p);
1682
1682
  i && clearTimeout(i);
1683
- let p = await this.preparation.makeEnd(u, r, e);
1684
- if (h.setStatus(r.status, r.statusText), this.status.setStatus(r.status, r.statusText), !a && r.status >= 400) {
1685
- var ne;
1686
- d && (_ = await Ue.getItem(n, r)), this.makeErrorQuery((ne = _) == null ? r : ne);
1683
+ let m = await this.preparation.makeEnd(u, r, e);
1684
+ if (g.setStatus(r.status, r.statusText), this.status.setStatus(r.status, r.statusText), !a && r.status >= 400) {
1685
+ var te;
1686
+ d && (v = await Ue.getItem(n, r)), this.makeErrorQuery((te = v) == null ? r : te);
1687
1687
  }
1688
- if (p != null && p.reset && t < f || t < s) return await ee(this.getRetryDelay(t, c)), o || this.loading.hide(), await this.fetch(e, t + 1);
1689
- g = new ze(e, r, p, _), await g.init();
1688
+ 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);
1689
+ _ = new ze(e, r, m, v), await _.init();
1690
1690
  } catch (e) {
1691
- throw a || this.makeError(e), h.setError(String(e)), this.status.setError(String(e)), o || this.loading.hide(), e;
1691
+ throw a || this.makeError(e), g.setError(String(e)), this.status.setError(String(e)), o || this.loading.hide(), e;
1692
1692
  }
1693
- h.setLastResponse(g.getData()), this.status.setLastResponse(g.getData());
1694
- let v = g.getAndStatus(h);
1695
- return o || this.loading.hide(), this.hydration.toClient(e, v), await P.setByFetch(e, v), v;
1693
+ g.setLastResponse(_.getData()), this.status.setLastResponse(_.getData());
1694
+ let y = _.getAndStatus(g);
1695
+ return o || this.loading.hide(), this.hydration.toClient(e, y), await N.setByFetch(e, y), y;
1696
1696
  }
1697
1697
  async makeQuery(e, t) {
1698
1698
  let n = this.requestDefault.request(e.request), { pathFull: r = void 0, method: i = F.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 = {
@@ -1794,7 +1794,7 @@ var Ye = "d-response-loading", Xe = class {
1794
1794
  return this.getItem().isLocalhost();
1795
1795
  }
1796
1796
  static getItem() {
1797
- return D.get("__ui:api-instance__", () => new Ze());
1797
+ return E.get("__ui:api-instance__", () => new Ze());
1798
1798
  }
1799
1799
  static getStatus() {
1800
1800
  return this.getItem().getStatus();
@@ -1863,11 +1863,11 @@ var Ye = "d-response-loading", Xe = class {
1863
1863
  return this.getItem().delete(e);
1864
1864
  }
1865
1865
  }, Qe = class {
1866
- constructor(e, t, n, r = E.getItem()) {
1867
- if (T(this, "callback", void 0), T(this, "callbackError", void 0), T(this, "channel", void 0), T(this, "update", (e) => {
1866
+ constructor(e, t, n, r = T.getItem()) {
1867
+ if (w(this, "callback", void 0), w(this, "callbackError", void 0), w(this, "channel", void 0), w(this, "update", (e) => {
1868
1868
  var t;
1869
1869
  return (t = this.callback) == null || t.call(this, e), this;
1870
- }), T(this, "updateError", (e) => {
1870
+ }), w(this, "updateError", (e) => {
1871
1871
  var t;
1872
1872
  return (t = this.callbackError) == null || t.call(this, e), this;
1873
1873
  }), this.callback = t, this.callbackError = n, s()) try {
@@ -1897,9 +1897,9 @@ var Ye = "d-response-loading", Xe = class {
1897
1897
  var e;
1898
1898
  return (e = this.channel) == null || e.close(), this.channel = void 0, this;
1899
1899
  }
1900
- }, $e = () => new O("__ui:broadcast-name__").get(() => `name_${f(1e6, 9999999)}`), et = class {
1900
+ }, $e = () => new D("__ui:broadcast-name__").get(() => `name_${f(1e6, 9999999)}`), et = class {
1901
1901
  constructor(e) {
1902
- T(this, "callback", void 0), T(this, "cache", void 0), T(this, "cacheOld", void 0), T(this, "comparisons", []), this.callback = e;
1902
+ w(this, "callback", void 0), w(this, "cache", void 0), w(this, "cacheOld", void 0), w(this, "comparisons", []), this.callback = e;
1903
1903
  }
1904
1904
  getCache(e) {
1905
1905
  return this.isUpdate(e) && (this.cacheOld = this.cache, this.setCache()), this.cache;
@@ -1921,7 +1921,7 @@ var Ye = "d-response-loading", Xe = class {
1921
1921
  }
1922
1922
  }, tt = class {
1923
1923
  constructor() {
1924
- T(this, "cache", {});
1924
+ w(this, "cache", {});
1925
1925
  }
1926
1926
  get(e, t, n) {
1927
1927
  return this.getCacheItem(e, t).getCache(n == null ? [] : n);
@@ -1934,7 +1934,7 @@ var Ye = "d-response-loading", Xe = class {
1934
1934
  }
1935
1935
  }, nt = class {
1936
1936
  static getItem() {
1937
- return D.get("__ui:cache-static__", () => new tt());
1937
+ return E.get("__ui:cache-static__", () => new tt());
1938
1938
  }
1939
1939
  static get(e, t, n) {
1940
1940
  return this.getItem().get(e, t, n);
@@ -1950,7 +1950,7 @@ function L(e) {
1950
1950
  if (e instanceof Date) return e;
1951
1951
  if (c(e)) return /* @__PURE__ */ new Date();
1952
1952
  if (typeof e == "number") return new Date(e);
1953
- let u = e, d = A.getTimezoneFormat().trim();
1953
+ let u = e, d = k.getTimezoneFormat().trim();
1954
1954
  e.replace(/^([\s\S]+)([-+]\d{2}:?\d{2})$/, (e, t, n) => (u = t, d = n.trim(), e));
1955
1955
  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;
1956
1956
  return /* @__PURE__ */ new Date(`${f.trim()}${d}`);
@@ -1963,20 +1963,20 @@ function rt(e, t) {
1963
1963
  //#endregion
1964
1964
  //#region src/classes/GeoIntl.ts
1965
1965
  var R = class e {
1966
- static isItem(e = A.getLocation()) {
1966
+ static isItem(e = k.getLocation()) {
1967
1967
  return this.getLocation(e) in B;
1968
1968
  }
1969
- static getLocation(e = A.getLocation()) {
1969
+ static getLocation(e = k.getLocation()) {
1970
1970
  if (e in z) return z[e];
1971
- let t = A.find(e);
1971
+ let t = k.find(e);
1972
1972
  return z[e] = t.standard, t.standard;
1973
1973
  }
1974
- static getInstance(t = A.getLocation()) {
1974
+ static getInstance(t = k.getLocation()) {
1975
1975
  let n = this.getLocation(t);
1976
1976
  return n in B ? B[n] : new e(t);
1977
1977
  }
1978
- constructor(e = A.getLocation(), t = E.getItem()) {
1979
- T(this, "errorCenter", void 0), T(this, "geo", void 0), this.errorCenter = t, this.geo = A.find(e);
1978
+ constructor(e = k.getLocation(), t = T.getItem()) {
1979
+ w(this, "errorCenter", void 0), w(this, "geo", void 0), this.errorCenter = t, this.geo = k.find(e);
1980
1980
  let n = this.getLocation();
1981
1981
  if (n in B) return B[n];
1982
1982
  z[e] = n, B[n] = this;
@@ -2010,7 +2010,7 @@ var R = class e {
2010
2010
  type: "language",
2011
2011
  style: t
2012
2012
  };
2013
- return this.display(A.getByCode(e).language, n);
2013
+ return this.display(k.getByCode(e).language, n);
2014
2014
  }
2015
2015
  countryName(e, t) {
2016
2016
  let n = {
@@ -2040,7 +2040,7 @@ var R = class e {
2040
2040
  }
2041
2041
  number(e, t) {
2042
2042
  var n, r;
2043
- return ((n = this.numberObject(t)) == null || (r = n.format) == null ? void 0 : r.call(n, y(e))) || e.toString();
2043
+ return ((n = this.numberObject(t)) == null || (r = n.format) == null ? void 0 : r.call(n, b(e))) || e.toString();
2044
2044
  }
2045
2045
  decimal() {
2046
2046
  var e, t, n;
@@ -2054,7 +2054,7 @@ var R = class e {
2054
2054
  }, i = e.toString().replace(/^([\S\s]+[\d ])([a-zA-Z]{3})$/i, (...e) => (r.currency = String(e[2]).toUpperCase(), String(e[1])));
2055
2055
  if (n) {
2056
2056
  let t = this.numberObject(r);
2057
- return t ? rt(t.formatToParts(y(e)).filter((e) => ["literal", "currency"].indexOf(e.type) === -1), "value").join("") : e.toString();
2057
+ return t ? rt(t.formatToParts(b(e)).filter((e) => ["literal", "currency"].indexOf(e.type) === -1), "value").join("") : e.toString();
2058
2058
  } else if ("currency" in r) return this.number(typeof e == "number" ? e : i, r);
2059
2059
  else return this.number(typeof e == "number" ? e : i, {
2060
2060
  ...r,
@@ -2077,7 +2077,7 @@ var R = class e {
2077
2077
  return this.number(r, n);
2078
2078
  }
2079
2079
  sizeFile(e, t = "byte") {
2080
- let n = y(e);
2080
+ let n = b(e);
2081
2081
  if (n > 1024 && d(t)) switch (t) {
2082
2082
  case "byte": return this.sizeFile(n / 1024, "kilobyte");
2083
2083
  case "kilobyte": return this.sizeFile(n / 1024, "megabyte");
@@ -2094,11 +2094,11 @@ var R = class e {
2094
2094
  });
2095
2095
  }
2096
2096
  percentBy100(e, t) {
2097
- return this.percent(y(e) / 100, t);
2097
+ return this.percent(b(e) / 100, t);
2098
2098
  }
2099
2099
  plural(e, t, n, r) {
2100
2100
  var i;
2101
- let a = y(e), o = t.split("|");
2101
+ let a = b(e), o = t.split("|");
2102
2102
  if (o.length > 1) try {
2103
2103
  if (typeof Intl < "u") {
2104
2104
  var s;
@@ -2155,7 +2155,7 @@ var R = class e {
2155
2155
  ...typeof n == "string" ? { style: n } : n || {}
2156
2156
  };
2157
2157
  try {
2158
- if (this.hasIntl() && Intl.RelativeTimeFormat !== void 0) return new Intl.RelativeTimeFormat(this.getLocation(), r).format(Math.round(y(e)), t);
2158
+ if (this.hasIntl() && Intl.RelativeTimeFormat !== void 0) return new Intl.RelativeTimeFormat(this.getLocation(), r).format(Math.round(b(e)), t);
2159
2159
  } catch (e) {
2160
2160
  this.errorCenter.on({
2161
2161
  group: "intl",
@@ -2304,8 +2304,8 @@ var R = class e {
2304
2304
  ].indexOf(e) !== -1 && (n.second = "2-digit")), n;
2305
2305
  }
2306
2306
  }, z = {}, B = {}, it = class e {
2307
- constructor(e, t = "date", n = A.getLocation()) {
2308
- T(this, "type", void 0), T(this, "code", void 0), T(this, "date", void 0), T(this, "hour24", !1), T(this, "watch", void 0), this.type = t, this.code = n, this.date = L(e), isNaN(this.date.getTime()) && E.on({
2307
+ constructor(e, t = "date", n = k.getLocation()) {
2308
+ 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({
2309
2309
  group: "intl",
2310
2310
  code: "invalid"
2311
2311
  });
@@ -2569,7 +2569,7 @@ var R = class e {
2569
2569
  function V(e, n) {
2570
2570
  var r;
2571
2571
  if (!l(n, !0)) return;
2572
- let i = ae(n, ".", 2), a = i[0];
2572
+ let i = oe(n, ".", 2), a = i[0];
2573
2573
  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;
2574
2574
  }
2575
2575
  //#endregion
@@ -2583,7 +2583,7 @@ var H = /* @__PURE__ */ function(e) {
2583
2583
  return e.currency = "currency", e.date = "date", e.name = "name", e.number = "number", e.plural = "plural", e.unit = "unit", e;
2584
2584
  }({}), ot = class {
2585
2585
  constructor(e, t) {
2586
- T(this, "options", void 0), T(this, "list", void 0), this.options = e, this.list = t;
2586
+ w(this, "options", void 0), w(this, "list", void 0), this.options = e, this.list = t;
2587
2587
  }
2588
2588
  is() {
2589
2589
  return !!this.list;
@@ -2595,7 +2595,7 @@ var H = /* @__PURE__ */ function(e) {
2595
2595
  return this.list ? this.isArray() ? this.list.length : 1 : 0;
2596
2596
  }
2597
2597
  getList() {
2598
- return this.list ? M(this.list) : [];
2598
+ return this.list ? j(this.list) : [];
2599
2599
  }
2600
2600
  getOptions() {
2601
2601
  return this.options;
@@ -2652,11 +2652,11 @@ var H = /* @__PURE__ */ function(e) {
2652
2652
  return t && t.unit ? R.getInstance().unit(e, t.unit) : e;
2653
2653
  }
2654
2654
  }, st = "f", ct = class e {
2655
- constructor(e = A.getLocation()) {
2656
- T(this, "code", void 0), this.code = e;
2655
+ constructor(e = k.getLocation()) {
2656
+ w(this, "code", void 0), this.code = e;
2657
2657
  }
2658
2658
  get(t = this.getCode()) {
2659
- let n = A.find(t);
2659
+ let n = k.find(t);
2660
2660
  if (n) {
2661
2661
  var r;
2662
2662
  let t = this.getCountry(n);
@@ -2672,7 +2672,7 @@ var H = /* @__PURE__ */ function(e) {
2672
2672
  }
2673
2673
  }
2674
2674
  getCode() {
2675
- return this.code || A.getLocation();
2675
+ return this.code || k.getLocation();
2676
2676
  }
2677
2677
  getFlag(e = this.getCode()) {
2678
2678
  var t;
@@ -2710,7 +2710,7 @@ var H = /* @__PURE__ */ function(e) {
2710
2710
  return this.getLocation().countryName(e.country);
2711
2711
  }
2712
2712
  };
2713
- T(ct, "flags", {
2713
+ w(ct, "flags", {
2714
2714
  AD: "f-ad",
2715
2715
  AE: "f-ae",
2716
2716
  AF: "f-af",
@@ -3011,11 +3011,11 @@ var lt = class {
3011
3011
  return (t = (n = e.match(/\*/g)) == null ? void 0 : n.length) == null ? 0 : t;
3012
3012
  }
3013
3013
  static makeList() {
3014
- let e = r(A.getList(), (e) => {
3014
+ let e = r(k.getList(), (e) => {
3015
3015
  if (e != null && e.phoneMask) return {
3016
3016
  phone: (e == null ? void 0 : e.phoneCode) && Number(e.phoneCode.replace(/[^0-9]+/g, "")) || void 0,
3017
3017
  within: (e == null ? void 0 : e.phoneWithin) || 0,
3018
- mask: M(e.phoneMask),
3018
+ mask: j(e.phoneMask),
3019
3019
  value: e.country
3020
3020
  };
3021
3021
  });
@@ -3054,12 +3054,12 @@ var lt = class {
3054
3054
  return e.replace(/\*/, this.getWithinSymbol(t));
3055
3055
  }
3056
3056
  };
3057
- T(lt, "list", void 0), T(lt, "map", void 0);
3057
+ w(lt, "list", void 0), w(lt, "map", void 0);
3058
3058
  //#endregion
3059
3059
  //#region src/classes/Global.ts
3060
3060
  var ut = class {
3061
3061
  static getItem() {
3062
- return D.get("__ui:global-instance__", () => ({}));
3062
+ return E.get("__ui:global-instance__", () => ({}));
3063
3063
  }
3064
3064
  static get(e) {
3065
3065
  var t;
@@ -3071,7 +3071,7 @@ var ut = class {
3071
3071
  }
3072
3072
  }, dt = class {
3073
3073
  constructor() {
3074
- T(this, "hash", void 0), T(this, "watch", {}), T(this, "block", !1), T(this, "time", void 0);
3074
+ w(this, "hash", void 0), w(this, "watch", {}), w(this, "block", !1), w(this, "time", void 0);
3075
3075
  }
3076
3076
  get(e, t) {
3077
3077
  let n = this.getHash();
@@ -3079,7 +3079,7 @@ var ut = class {
3079
3079
  }
3080
3080
  set(e, t) {
3081
3081
  var n;
3082
- let r = S(t);
3082
+ let r = m(t);
3083
3083
  return r !== ((n = this.hash) == null ? void 0 : n[e]) && (this.getHash()[e] = r, this.update()), this;
3084
3084
  }
3085
3085
  addWatch(e, t) {
@@ -3101,7 +3101,7 @@ var ut = class {
3101
3101
  let e = {};
3102
3102
  if (s()) {
3103
3103
  let t = location.hash.matchAll(/([\w-]+)[:=]([^;]+)/gi);
3104
- for (let n of t) e[n[1]] = de(n[2]);
3104
+ for (let n of t) e[n[1]] = fe(n[2]);
3105
3105
  }
3106
3106
  return e;
3107
3107
  }
@@ -3137,7 +3137,7 @@ var ut = class {
3137
3137
  }
3138
3138
  }, ft = class {
3139
3139
  static getItem() {
3140
- return D.get("__ui:hash-instance__", () => new dt());
3140
+ return E.get("__ui:hash-instance__", () => new dt());
3141
3141
  }
3142
3142
  static get(e, t) {
3143
3143
  return this.getItem().get(e, t);
@@ -3160,7 +3160,7 @@ var ut = class {
3160
3160
  }
3161
3161
  static async get(e, t = "", n = 1e3 * 60 * 3) {
3162
3162
  let r = this.getRaw(e, t);
3163
- return typeof r == "string" ? r === mt && n > 0 ? (await this.wait(), this.get(e, t, n - pt)) : r : x(r) ? await r() : await r;
3163
+ return typeof r == "string" ? r === mt && n > 0 ? (await this.wait(), this.get(e, t, n - pt)) : r : p(r) ? await r() : await r;
3164
3164
  }
3165
3165
  static getAsync(e, t = "") {
3166
3166
  let n = this.getRaw(e, t);
@@ -3201,24 +3201,24 @@ var ut = class {
3201
3201
  return new Promise((e) => setTimeout(() => e(), pt));
3202
3202
  }
3203
3203
  };
3204
- T(ht, "icons", {}), T(ht, "url", "/icons/");
3204
+ w(ht, "icons", {}), w(ht, "url", "/icons/");
3205
3205
  //#endregion
3206
3206
  //#region src/functions/getElementItem.ts
3207
3207
  function gt(e, t, n) {
3208
3208
  var r, i;
3209
- return (r = (i = j(e)) == null ? void 0 : i[t]) == null ? n : r;
3209
+ return (r = (i = A(e)) == null ? void 0 : i[t]) == null ? n : r;
3210
3210
  }
3211
3211
  //#endregion
3212
3212
  //#region src/functions/setElementItem.ts
3213
3213
  function _t(e, n, i) {
3214
- let a = j(e);
3214
+ let a = A(e);
3215
3215
  if (a) {
3216
3216
  let e = gt(a, n);
3217
3217
  if (t(e) && t(i)) r(i, (t, n) => {
3218
- e[n] = S(t);
3218
+ e[n] = m(t);
3219
3219
  });
3220
3220
  else {
3221
- let e = S(i);
3221
+ let e = m(i);
3222
3222
  !(n in a) && typeof e == "string" ? a.setAttribute(n.toString(), e) : a[n] = e;
3223
3223
  }
3224
3224
  }
@@ -3252,7 +3252,7 @@ function W(e) {
3252
3252
  //#region src/classes/MetaManager.ts
3253
3253
  var G = class {
3254
3254
  constructor(e, t = !1) {
3255
- T(this, "listMeta", void 0), T(this, "isProperty", void 0), T(this, "items", {}), this.listMeta = e, this.isProperty = t, this.update();
3255
+ w(this, "listMeta", void 0), w(this, "isProperty", void 0), w(this, "items", {}), this.listMeta = e, this.isProperty = t, this.update();
3256
3256
  }
3257
3257
  getListMeta() {
3258
3258
  return this.listMeta;
@@ -3302,7 +3302,7 @@ var G = class {
3302
3302
  return r ? `<meta ${this.getAttributeName()}="${e}" content="${r}">` : "";
3303
3303
  }
3304
3304
  toHtmlTitle(e) {
3305
- return pe(e);
3305
+ return me(e);
3306
3306
  }
3307
3307
  update() {
3308
3308
  return this.listMeta.forEach((e) => {
@@ -3424,7 +3424,7 @@ var G = class {
3424
3424
  }
3425
3425
  }, Ot = class extends G {
3426
3426
  constructor() {
3427
- super(Object.values(K)), T(this, "suffix", void 0), T(this, "og", void 0), T(this, "twitter", void 0), this.og = new Et(), this.twitter = new Dt();
3427
+ super(Object.values(K)), w(this, "suffix", void 0), w(this, "og", void 0), w(this, "twitter", void 0), this.og = new Et(), this.twitter = new Dt();
3428
3428
  }
3429
3429
  getOg() {
3430
3430
  return this.og;
@@ -3465,7 +3465,7 @@ var G = class {
3465
3465
  return s() && (document.title = t), this.set(K.title, t), this.og.setTitle(t), this.twitter.setTitle(t), this;
3466
3466
  }
3467
3467
  setKeywords(e) {
3468
- return this.set(K.keywords, M(e).join(", ")), this;
3468
+ return this.set(K.keywords, j(e).join(", ")), this;
3469
3469
  }
3470
3470
  setDescription(e) {
3471
3471
  return this.set(K.description, e), this;
@@ -3502,7 +3502,7 @@ var G = class {
3502
3502
  }
3503
3503
  }, kt = class {
3504
3504
  static getItem() {
3505
- return D.get("__ui:meta-instance__", () => new Ot());
3505
+ return E.get("__ui:meta-instance__", () => new Ot());
3506
3506
  }
3507
3507
  static getOg() {
3508
3508
  return this.getItem().getOg();
@@ -3575,7 +3575,7 @@ var G = class {
3575
3575
  }
3576
3576
  }, At = class {
3577
3577
  constructor(e, t = 320, n = !1) {
3578
- T(this, "callback", void 0), T(this, "delay", void 0), T(this, "timerId", void 0), T(this, "startTime", void 0), T(this, "remaining", void 0), T(this, "completed", !1), this.callback = e, this.delay = t, n || this.resume();
3578
+ 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();
3579
3579
  }
3580
3580
  resume() {
3581
3581
  if (this.timerId || this.completed) return this;
@@ -3627,7 +3627,7 @@ var G = class {
3627
3627
  return t;
3628
3628
  }
3629
3629
  static getStorage() {
3630
- return new O("__ui:scrollbar__", !0);
3630
+ return new D("__ui:scrollbar__", !0);
3631
3631
  }
3632
3632
  static getCalculate() {
3633
3633
  return this.calculate;
@@ -3649,7 +3649,7 @@ var G = class {
3649
3649
  });
3650
3650
  }
3651
3651
  };
3652
- T(jt, "calculate", !1);
3652
+ w(jt, "calculate", !1);
3653
3653
  //#endregion
3654
3654
  //#region src/functions/escapeExp.ts
3655
3655
  function Y(e) {
@@ -3657,7 +3657,7 @@ function Y(e) {
3657
3657
  }
3658
3658
  //#endregion
3659
3659
  //#region src/functions/getSeparatingSearchExp.ts
3660
- function X(e, t = 128) {
3660
+ function Mt(e, t = 128) {
3661
3661
  if (e instanceof RegExp) return e;
3662
3662
  if (!e || e.trim().length === 0 || e.length > t) return /^/;
3663
3663
  let n = String(e).replace(/\s+/g, " ").trim().split(" ").map(Y).join("|");
@@ -3665,20 +3665,20 @@ function X(e, t = 128) {
3665
3665
  }
3666
3666
  //#endregion
3667
3667
  //#region src/functions/addTagHighlightMatch.ts
3668
- var Mt = `___HIGHLIGHT_START_${f(1e5, 999999)}___`, Nt = `___HIGHLIGHT_END_${f(1e5, 999999)}___`, Pt = RegExp(`${Mt}|${Nt}`, "g");
3669
- function Ft(e, t, n = "sys-highlight-match", r = !1) {
3668
+ var Nt = `___HIGHLIGHT_START_${f(1e5, 999999)}___`, Pt = `___HIGHLIGHT_END_${f(1e5, 999999)}___`, Ft = RegExp(`${Nt}|${Pt}`, "g");
3669
+ function It(e, t, n = "sys-highlight-match", r = !1) {
3670
3670
  let i = a(e);
3671
3671
  if (l(i) && l(t)) {
3672
- let e = i.replace(X(t), `${Mt}$1${Nt}`);
3673
- return r && (e = W(e)), e.replace(Pt, (e) => e === Mt ? `<span class="${n}">` : "</span>");
3672
+ let e = i.replace(Mt(t), `${Nt}$1${Pt}`);
3673
+ return r && (e = W(e)), e.replace(Ft, (e) => e === Nt ? `<span class="${n}">` : "</span>");
3674
3674
  }
3675
3675
  return r ? W(i) : i;
3676
3676
  }
3677
3677
  //#endregion
3678
3678
  //#region src/classes/SearchListData.ts
3679
- var It = class {
3679
+ var Lt = class {
3680
3680
  constructor(e, t, n, r) {
3681
- T(this, "list", void 0), T(this, "columns", void 0), T(this, "item", void 0), T(this, "options", void 0), T(this, "listCache", void 0), this.list = e, this.columns = t, this.item = n, this.options = r;
3681
+ 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;
3682
3682
  }
3683
3683
  is() {
3684
3684
  return !!(this.list && this.columns);
@@ -3716,7 +3716,7 @@ var It = class {
3716
3716
  let n = {};
3717
3717
  return this.columns && this.columns.forEach((r) => {
3718
3718
  let i = this.getColumnName(r), a = V(e, r);
3719
- n[i] = l(a) && t ? this.addTag(a) : C(a);
3719
+ n[i] = l(a) && t ? this.addTag(a) : S(a);
3720
3720
  }), {
3721
3721
  ...e,
3722
3722
  ...n,
@@ -3727,7 +3727,7 @@ var It = class {
3727
3727
  return e.replace(/\.([a-z0-9])/gi, (e, t) => t.toUpperCase()) + "Search";
3728
3728
  }
3729
3729
  addTag(e) {
3730
- return Ft(C(e), this.item.get(), this.options.getClassName());
3730
+ return It(S(e), this.item.get(), this.options.getClassName());
3731
3731
  }
3732
3732
  generateCache() {
3733
3733
  if (!this.isList()) return [];
@@ -3736,7 +3736,7 @@ var It = class {
3736
3736
  let n = "";
3737
3737
  if (this.columns) for (let e of this.columns) {
3738
3738
  let r = V(t, e);
3739
- l(r) && (n += ` ${C(r)}`);
3739
+ l(r) && (n += ` ${S(r)}`);
3740
3740
  }
3741
3741
  e.push({
3742
3742
  item: t,
@@ -3751,9 +3751,9 @@ var It = class {
3751
3751
  resetCache() {
3752
3752
  this.listCache = void 0;
3753
3753
  }
3754
- }, Lt = class {
3754
+ }, Rt = class {
3755
3755
  constructor(e, t) {
3756
- T(this, "value", void 0), T(this, "options", void 0), this.value = e, this.options = t;
3756
+ w(this, "value", void 0), w(this, "options", void 0), this.value = e, this.options = t;
3757
3757
  }
3758
3758
  is() {
3759
3759
  return !!this.value;
@@ -3771,18 +3771,18 @@ var It = class {
3771
3771
  };
3772
3772
  //#endregion
3773
3773
  //#region src/functions/getExp.ts
3774
- function Rt(e, t = "ig", n = ":value") {
3774
+ function zt(e, t = "ig", n = ":value") {
3775
3775
  let r = Y(e);
3776
3776
  return new RegExp(n.replace(/:value/g, r), t);
3777
3777
  }
3778
3778
  //#endregion
3779
3779
  //#region src/functions/getExactSearchExp.ts
3780
- function zt(e) {
3781
- return Rt(e, "i", "(:value)");
3780
+ function Bt(e) {
3781
+ return zt(e, "i", "(:value)");
3782
3782
  }
3783
3783
  //#endregion
3784
3784
  //#region src/functions/getSearchExp.ts
3785
- function Bt(e, t = 128) {
3785
+ function Vt(e, t = 128) {
3786
3786
  if (!d(e) || e.trim().length === 0 || e.length > t) return /^/;
3787
3787
  let n = [];
3788
3788
  return a(e).split(" ").forEach((e) => {
@@ -3792,9 +3792,9 @@ function Bt(e, t = 128) {
3792
3792
  }
3793
3793
  //#endregion
3794
3794
  //#region src/classes/SearchListMatcher.ts
3795
- var Vt = class {
3795
+ var Ht = class {
3796
3796
  constructor(e, t) {
3797
- T(this, "item", void 0), T(this, "options", void 0), T(this, "matcher", void 0), this.item = e, this.options = t, this.initMatcher();
3797
+ w(this, "item", void 0), w(this, "options", void 0), w(this, "matcher", void 0), this.item = e, this.options = t, this.initMatcher();
3798
3798
  }
3799
3799
  is() {
3800
3800
  return !!this.matcher;
@@ -3809,11 +3809,11 @@ var Vt = class {
3809
3809
  this.initMatcher();
3810
3810
  }
3811
3811
  initMatcher() {
3812
- this.item.is() ? this.matcher = this.options.getFindExactMatch() ? zt(this.item.get()) : Bt(this.item.get()) : this.matcher = void 0;
3812
+ this.item.is() ? this.matcher = this.options.getFindExactMatch() ? Bt(this.item.get()) : Vt(this.item.get()) : this.matcher = void 0;
3813
3813
  }
3814
- }, Ht = class {
3814
+ }, Ut = class {
3815
3815
  constructor(e) {
3816
- T(this, "options", void 0), this.options = e;
3816
+ w(this, "options", void 0), this.options = e;
3817
3817
  }
3818
3818
  getOptions() {
3819
3819
  return this.options || {};
@@ -3841,12 +3841,12 @@ var Vt = class {
3841
3841
  setOptions(e) {
3842
3842
  return this.options = e, this;
3843
3843
  }
3844
- }, Ut = class {
3844
+ }, Wt = class {
3845
3845
  constructor(e, t, n, r) {
3846
- T(this, "options", void 0), T(this, "item", void 0), T(this, "matcher", void 0), T(this, "data", void 0), T(this, "callbackToSelection", (e, t) => {
3846
+ 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) => {
3847
3847
  if (this.matcher.isSelection(t)) return this.data.toFormatItem(e, !0);
3848
3848
  if (this.options.getReturnEverything()) return this.data.toFormatItem(e, !1);
3849
- }), T(this, "callbackToNone", (e) => this.data.toFormatItem(e, !1)), this.options = new Ht(r), this.item = new Lt(n, this.options), this.matcher = new Vt(this.item, this.options), this.data = new It(e, t, this.item, this.options);
3849
+ }), w(this, "callbackToNone", (e) => this.data.toFormatItem(e, !1)), this.options = new Ut(r), this.item = new Rt(n, this.options), this.matcher = new Ht(this.item, this.options), this.data = new Lt(e, t, this.item, this.options);
3850
3850
  }
3851
3851
  getData() {
3852
3852
  return this.data;
@@ -3883,13 +3883,13 @@ var Vt = class {
3883
3883
  let e = this.data.getList();
3884
3884
  return e ? r(e, this.callbackToNone) : [];
3885
3885
  }
3886
- }, Wt = () => D.get("__ui:storage-callback__", () => ({})), Gt = class e {
3886
+ }, Gt = () => E.get("__ui:storage-callback__", () => ({})), Kt = class e {
3887
3887
  static getInstance(t, n = "main") {
3888
3888
  return new e(t, n);
3889
3889
  }
3890
3890
  constructor(e, t = "main") {
3891
- T(this, "name", void 0), T(this, "group", void 0), T(this, "callbacks", []), T(this, "loading", !1), this.name = e, this.group = t;
3892
- let n = `${t}:${e}`, r = Wt();
3891
+ w(this, "name", void 0), w(this, "group", void 0), w(this, "callbacks", []), w(this, "loading", !1), this.name = e, this.group = t;
3892
+ let n = `${t}:${e}`, r = Gt();
3893
3893
  if (n in r) return r[n];
3894
3894
  r[n] = this;
3895
3895
  }
@@ -3919,7 +3919,7 @@ var Vt = class {
3919
3919
  for (let { callback: t, isOnce: n } of this.callbacks) await Je(t, e), n && this.removeCallback(t);
3920
3920
  return this;
3921
3921
  }
3922
- }, Kt = [
3922
+ }, qt = [
3923
3923
  "d",
3924
3924
  "e",
3925
3925
  "f",
@@ -3939,10 +3939,10 @@ var Vt = class {
3939
3939
  "t",
3940
3940
  "u",
3941
3941
  "v"
3942
- ], qt = RegExp(`%(${Kt.join("|")})`, "g"), Jt = (e, t = {}) => {
3942
+ ], Jt = RegExp(`%(${qt.join("|")})`, "g"), Yt = (e, t = {}) => {
3943
3943
  let r = String(e);
3944
- return Array.isArray(t) && e.match(/%[a-z]/) && (r = r.replace(qt, (e, n) => {
3945
- let r = Kt.indexOf(n);
3944
+ return Array.isArray(t) && e.match(/%[a-z]/) && (r = r.replace(Jt, (e, n) => {
3945
+ let r = qt.indexOf(n);
3946
3946
  if (r !== -1) {
3947
3947
  var i;
3948
3948
  return String((i = t == null ? void 0 : t[r]) == null ? "" : i);
@@ -3961,21 +3961,21 @@ var Vt = class {
3961
3961
  }
3962
3962
  return e;
3963
3963
  })), r;
3964
- }, Yt = (e) => {
3964
+ }, Xt = (e) => {
3965
3965
  var t;
3966
3966
  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()))));
3967
- }, Xt = "global", Zt = 160, Qt = class {
3968
- constructor(e, t = () => A.getLanguage(), n = () => A.getLocation()) {
3969
- T(this, "language", void 0), T(this, "location", void 0), T(this, "files", {}), T(this, "data", {}), this.language = t, this.location = n, e && this.add(e);
3967
+ }, Zt = "global", Qt = 160, $t = class {
3968
+ constructor(e, t = () => k.getLanguage(), n = () => k.getLocation()) {
3969
+ 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);
3970
3970
  }
3971
3971
  isFile() {
3972
3972
  return Object.keys(this.files).length > 0 && this.getIndex() !== void 0;
3973
3973
  }
3974
3974
  getLocation() {
3975
- return S(this.location);
3975
+ return m(this.location);
3976
3976
  }
3977
3977
  getLanguage() {
3978
- return S(this.language);
3978
+ return m(this.language);
3979
3979
  }
3980
3980
  async getList() {
3981
3981
  let e = this.getIndex();
@@ -3986,7 +3986,7 @@ var Vt = class {
3986
3986
  }
3987
3987
  add(e) {
3988
3988
  r(e, (e, t) => {
3989
- x(e) && (this.files[t] = e);
3989
+ p(e) && (this.files[t] = e);
3990
3990
  });
3991
3991
  }
3992
3992
  getIndex() {
@@ -3994,20 +3994,20 @@ var Vt = class {
3994
3994
  if (e in this.files) return e;
3995
3995
  let t = this.getLanguage();
3996
3996
  if (t in this.files) return t;
3997
- if ("global" in this.files) return Xt;
3997
+ if ("global" in this.files) return Zt;
3998
3998
  }
3999
3999
  getByData(e) {
4000
4000
  if (e in this.data) return this.data[e];
4001
4001
  }
4002
4002
  async getByFile(e) {
4003
4003
  if (e in this.files) {
4004
- let t = await S(this.files[e]);
4004
+ let t = await m(this.files[e]);
4005
4005
  return t && (this.data[e] = t), t;
4006
4006
  }
4007
4007
  }
4008
- }, $t = class {
4009
- constructor(e = "/api/translate", t = "list", n = new Qt()) {
4010
- T(this, "url", void 0), T(this, "propsName", void 0), T(this, "files", void 0), T(this, "data", {}), T(this, "cache", []), T(this, "resolveList", []), T(this, "timeout", void 0), T(this, "isReadApi", !0), this.url = e, this.propsName = t, this.files = n;
4008
+ }, en = class {
4009
+ constructor(e = "/api/translate", t = "list", n = new $t()) {
4010
+ 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;
4011
4011
  }
4012
4012
  async get(e, t) {
4013
4013
  var n;
@@ -4095,11 +4095,11 @@ var Vt = class {
4095
4095
  return `${this.files.getLanguage()}-${e}`;
4096
4096
  }
4097
4097
  getNameByGlobal(e) {
4098
- return `${Xt}-${e}`;
4098
+ return `${Zt}-${e}`;
4099
4099
  }
4100
4100
  getNamesNone(e) {
4101
4101
  let t = [];
4102
- return M(e).forEach((e) => {
4102
+ return j(e).forEach((e) => {
4103
4103
  e !== "__TRANSLATE_START__" && e !== "__TRANSLATE_END__" && !this.hasName(e) && t.push(e);
4104
4104
  }), t;
4105
4105
  }
@@ -4112,14 +4112,14 @@ var Vt = class {
4112
4112
  timeout: 12e3,
4113
4113
  global: !0
4114
4114
  });
4115
- return Yt(e) || E.on({
4115
+ return Xt(e) || T.on({
4116
4116
  group: "translate",
4117
4117
  code: "error",
4118
4118
  details: e
4119
4119
  }), e == null ? {} : e;
4120
4120
  }
4121
4121
  replacement(e, t) {
4122
- return t ? Jt(e, t) : e;
4122
+ return t ? Yt(e, t) : e;
4123
4123
  }
4124
4124
  async make() {
4125
4125
  let e;
@@ -4131,12 +4131,12 @@ var Vt = class {
4131
4131
  this.data[this.getName(t)] = (n = e == null ? void 0 : e[t]) == null ? "" : n;
4132
4132
  }), this.cache = [];
4133
4133
  }
4134
- }, en = class {
4134
+ }, tn = class {
4135
4135
  static async get(e, t) {
4136
4136
  return this.getItem().get(e, t);
4137
4137
  }
4138
4138
  static getItem() {
4139
- return this.item || (this.item = new $t()), this.item;
4139
+ return this.item || (this.item = new en()), this.item;
4140
4140
  }
4141
4141
  static getSync(e, t = !1, n) {
4142
4142
  return this.getItem().getSync(e, t, n);
@@ -4175,15 +4175,15 @@ var Vt = class {
4175
4175
  e.url && this.getItem().setUrl(e.url), e.propsName && this.getItem().setPropsName(e.propsName), typeof e.readApi == "boolean" && this.getItem().setReadApi(e.readApi);
4176
4176
  }
4177
4177
  };
4178
- T(en, "item", void 0);
4178
+ w(tn, "item", void 0);
4179
4179
  //#endregion
4180
4180
  //#region src/classes/UrlItem.ts
4181
- var tn = class e {
4181
+ var nn = class e {
4182
4182
  static getInstance() {
4183
- return D.get("__ui:url-item__", () => new e());
4183
+ return E.get("__ui:url-item__", () => new e());
4184
4184
  }
4185
4185
  constructor(e) {
4186
- T(this, "url", void 0), this.set(e);
4186
+ w(this, "url", void 0), this.set(e);
4187
4187
  }
4188
4188
  get href() {
4189
4189
  return this.url.href;
@@ -4233,15 +4233,15 @@ var tn = class e {
4233
4233
  };
4234
4234
  //#endregion
4235
4235
  //#region src/functions/arrFill.ts
4236
- function nn(e, t) {
4236
+ function rn(e, t) {
4237
4237
  return Array(t).fill(e);
4238
4238
  }
4239
4239
  //#endregion
4240
4240
  //#region src/functions/blobToBase64.ts
4241
- var rn = () => an() !== void 0, an = () => {
4241
+ var an = () => on() !== void 0, on = () => {
4242
4242
  var e;
4243
4243
  return (e = globalThis) == null ? void 0 : e.Buffer;
4244
- }, on = async (e) => new Promise((t, n) => {
4244
+ }, sn = async (e) => new Promise((t, n) => {
4245
4245
  if (typeof FileReader < "u") {
4246
4246
  let r = new FileReader();
4247
4247
  r.onloadend = () => {
@@ -4252,33 +4252,33 @@ var rn = () => an() !== void 0, an = () => {
4252
4252
  t(r.result.replace(/^data:.*?,/, ""));
4253
4253
  }, r.onerror = n, r.readAsDataURL(e);
4254
4254
  } else n();
4255
- }), sn = (e) => {
4255
+ }), cn = (e) => {
4256
4256
  var t;
4257
4257
  return ((t = globalThis) == null ? void 0 : t.Buffer).from(e).toString("base64");
4258
4258
  };
4259
- async function cn(e, t = !1) {
4260
- let n = s() ? await on(e) : rn() ? sn(await e.arrayBuffer()) : void 0;
4259
+ async function ln(e, t = !1) {
4260
+ let n = s() ? await sn(e) : an() ? cn(await e.arrayBuffer()) : void 0;
4261
4261
  if (n) return t ? n : `data:${e.type};base64,${n}`;
4262
4262
  }
4263
4263
  //#endregion
4264
4264
  //#region src/functions/capitalize.ts
4265
- function ln(e, t = !1) {
4265
+ function un(e, t = !1) {
4266
4266
  let n = String(e);
4267
- return n.length > 0 ? t ? n.charAt(0).toLocaleUpperCase(A.getLocation()) + n.slice(1) : n.charAt(0).toUpperCase() + n.slice(1) : n;
4267
+ return n.length > 0 ? t ? n.charAt(0).toLocaleUpperCase(k.getLocation()) + n.slice(1) : n.charAt(0).toUpperCase() + n.slice(1) : n;
4268
4268
  }
4269
4269
  //#endregion
4270
4270
  //#region src/functions/copyObject.ts
4271
- function Z(e) {
4271
+ function X(e) {
4272
4272
  return JSON.parse(JSON.stringify(e));
4273
4273
  }
4274
4274
  //#endregion
4275
4275
  //#region src/functions/copyObjectLite.ts
4276
- function un(e, t) {
4276
+ function dn(e, t) {
4277
4277
  return Object.assign({}, e, t);
4278
4278
  }
4279
4279
  //#endregion
4280
4280
  //#region src/functions/domQuerySelector.ts
4281
- function dn(e) {
4281
+ function fn(e) {
4282
4282
  if (s()) {
4283
4283
  var t;
4284
4284
  return (t = document.querySelector(e)) == null ? void 0 : t;
@@ -4286,12 +4286,12 @@ function dn(e) {
4286
4286
  }
4287
4287
  //#endregion
4288
4288
  //#region src/functions/domQuerySelectorAll.ts
4289
- function fn(e) {
4289
+ function pn(e) {
4290
4290
  if (s()) return document.querySelectorAll(e);
4291
4291
  }
4292
4292
  //#endregion
4293
4293
  //#region src/functions/getElementImage.ts
4294
- function pn(e) {
4294
+ function Z(e) {
4295
4295
  return d(e) ? U(void 0, "img", { src: e }) : e;
4296
4296
  }
4297
4297
  //#endregion
@@ -4304,7 +4304,7 @@ function mn(e, t = "auto") {
4304
4304
  }
4305
4305
  }
4306
4306
  function hn(e, t, n = "auto", r) {
4307
- let i = pn(e);
4307
+ let i = Z(e);
4308
4308
  if (s() && i && i.naturalWidth && i.naturalHeight && (i.naturalWidth > t && (n === "auto" || n === "width") || i.naturalHeight > t && (n === "auto" || n === "height"))) {
4309
4309
  var a;
4310
4310
  let e = mn(i, n), o = (a = document.createElement("canvas")) == null ? void 0 : a.getContext("2d");
@@ -4319,13 +4319,13 @@ async function gn(e, t = .56, n = "image/jpeg") {
4319
4319
  r("");
4320
4320
  return;
4321
4321
  }
4322
- let i = new Blob([e], { type: n }), a = URL.createObjectURL(i), o = pn(a);
4322
+ let i = new Blob([e], { type: n }), a = URL.createObjectURL(i), o = Z(a);
4323
4323
  o ? (o.onload = () => {
4324
4324
  let e = hn(o, t * o.naturalWidth, "width", n);
4325
4325
  r(e == null ? "" : e), URL.revokeObjectURL(a);
4326
4326
  }, o.onerror = () => {
4327
4327
  URL.revokeObjectURL(a), r("");
4328
- }) : cn(i).then((e) => r(String(e == null ? "" : e)));
4328
+ }) : ln(i).then((e) => r(String(e == null ? "" : e)));
4329
4329
  });
4330
4330
  }
4331
4331
  //#endregion
@@ -4346,7 +4346,7 @@ function vn(e, t, n) {
4346
4346
  function yn(e, t) {
4347
4347
  let n = a(e);
4348
4348
  if (l(n) && l(t)) {
4349
- let e = [], r = X(t), i = 0, a;
4349
+ let e = [], r = Mt(t), i = 0, a;
4350
4350
  for (; (a = r.exec(n)) !== null && a.index !== r.lastIndex;) a.index > i && e.push({
4351
4351
  text: n.substring(i, a.index),
4352
4352
  isMatch: !1
@@ -4367,7 +4367,7 @@ function yn(e, t) {
4367
4367
  //#endregion
4368
4368
  //#region src/functions/getAttributes.ts
4369
4369
  function bn(e) {
4370
- let t = {}, n = j(e);
4370
+ let t = {}, n = A(e);
4371
4371
  if (n) for (let e of n.attributes) {
4372
4372
  var r;
4373
4373
  t[e.name] = (r = (e == null ? void 0 : e.value) || (e == null ? void 0 : e.textContent)) == null ? void 0 : r;
@@ -4381,7 +4381,7 @@ async function xn(e) {
4381
4381
  var t, n;
4382
4382
  return (t = e == null || (n = e.clipboardData) == null ? void 0 : n.getData("text")) == null ? await navigator.clipboard.readText() || "" : t;
4383
4383
  } catch (e) {
4384
- E.on({
4384
+ T.on({
4385
4385
  group: "clipboard",
4386
4386
  code: "error",
4387
4387
  details: e
@@ -4404,12 +4404,12 @@ function Cn() {
4404
4404
  var Q, wn = () => {
4405
4405
  let e = Q == null ? void 0 : Q();
4406
4406
  if (e) return String(e);
4407
- let t = D.get("__ui:getElementId__", () => ({ id: 1e5 }));
4407
+ let t = E.get("__ui:getElementId__", () => ({ id: 1e5 }));
4408
4408
  return `id-${t.id++}`;
4409
4409
  };
4410
4410
  function Tn(e, t) {
4411
4411
  if (e) {
4412
- let n = j(e);
4412
+ let n = A(e);
4413
4413
  if (n) return l(n.id) || n.setAttribute("id", wn()), t ? `#${n.id}${t}`.trim() : n.id;
4414
4414
  }
4415
4415
  return wn();
@@ -4504,7 +4504,7 @@ function Rn(e) {
4504
4504
  //#endregion
4505
4505
  //#region src/functions/getOnlyText.ts
4506
4506
  function zn(e) {
4507
- return C(e).replace(/[^\p{L}\p{N}\s]+/gu, "").trim();
4507
+ return S(e).replace(/[^\p{L}\p{N}\s]+/gu, "").trim();
4508
4508
  }
4509
4509
  //#endregion
4510
4510
  //#region src/functions/strFill.ts
@@ -4588,7 +4588,7 @@ async function Yn(e) {
4588
4588
  if (Jn() && navigator.canShare && navigator.canShare(e)) try {
4589
4589
  return await navigator.share(e), !0;
4590
4590
  } catch (e) {
4591
- E.on({
4591
+ T.on({
4592
4592
  group: "share",
4593
4593
  code: "error",
4594
4594
  details: e
@@ -4629,7 +4629,7 @@ function $n(e, t) {
4629
4629
  //#region src/functions/isElementVisible.ts
4630
4630
  function er(e) {
4631
4631
  if (!s()) return !1;
4632
- let t = j(e);
4632
+ let t = A(e);
4633
4633
  if (!t || "isConnected" in t && t.isConnected === !1) return !1;
4634
4634
  let n = window.getComputedStyle(t);
4635
4635
  return n.display !== "none" && n.visibility !== "hidden" && n.opacity !== "0" && t.offsetWidth !== 0 && t.offsetHeight !== 0;
@@ -4661,7 +4661,7 @@ function ir(e, t) {
4661
4661
  //#endregion
4662
4662
  //#region src/functions/isSelectedByList.ts
4663
4663
  function ar(e, t) {
4664
- return Array.isArray(e) ? e.every((e) => b(e, t)) : b(e, t);
4664
+ return Array.isArray(e) ? e.every((e) => x(e, t)) : x(e, t);
4665
4665
  }
4666
4666
  //#endregion
4667
4667
  //#region src/functions/isTab.ts
@@ -4688,10 +4688,10 @@ function lr(e) {
4688
4688
  //#endregion
4689
4689
  //#region src/functions/replaceRecursive.ts
4690
4690
  function $(e, n, i = !0) {
4691
- let a = Z(e);
4691
+ let a = X(e);
4692
4692
  return t(e) && t(n) && r(n, (n, r) => {
4693
4693
  let o = e == null ? void 0 : e[r];
4694
- t(o) && t(n) ? i && Array.isArray(o) && Array.isArray(n) ? a[r] = Z(lr([...o, ...n])) : a[r] = $(Array.isArray(o) ? { ...o } : o, n, i) : a[r] = t(n) ? Z(n) : n;
4694
+ t(o) && t(n) ? i && Array.isArray(o) && Array.isArray(n) ? a[r] = X(lr([...o, ...n])) : a[r] = $(Array.isArray(o) ? { ...o } : o, n, i) : a[r] = t(n) ? X(n) : n;
4695
4695
  }), a;
4696
4696
  }
4697
4697
  //#endregion
@@ -4699,13 +4699,13 @@ function $(e, n, i = !0) {
4699
4699
  function ur(e, t) {
4700
4700
  let n = e;
4701
4701
  return r(t, (e, t) => {
4702
- n = n.replace(Rt(`[${t}]`), S(e));
4702
+ n = n.replace(zt(`[${t}]`), m(e));
4703
4703
  }), n;
4704
4704
  }
4705
4705
  //#endregion
4706
4706
  //#region src/functions/secondToTime.ts
4707
4707
  function dr(e, t) {
4708
- let n = y(e);
4708
+ let n = b(e);
4709
4709
  if (n > 0) {
4710
4710
  let e = String(Math.floor(n / 60)).padStart(2, "0"), r = String(n % 60).padStart(2, "0");
4711
4711
  return t && Number(e) >= 60 ? `${String(Math.floor(Number(e) / 60)).padStart(2, "0")}:${String(Number(e) % 60).padStart(2, "0")}:${r}` : `${e}:${r}`;
@@ -4731,12 +4731,12 @@ function pr(e, n, i) {
4731
4731
  if (i) {
4732
4732
  let a = {}, o = !1;
4733
4733
  return r(e, (e, r) => {
4734
- !o && (i === r || i === e) ? (o = !0, a = $(a, n)) : o ? a = $(a, { [r]: e }) : a[r] = t(e) ? Z(e) : e;
4734
+ !o && (i === r || i === e) ? (o = !0, a = $(a, n)) : o ? a = $(a, { [r]: e }) : a[r] = t(e) ? X(e) : e;
4735
4735
  }), o ? a : $(e, n);
4736
4736
  }
4737
4737
  if (t(n)) return $(e, n);
4738
4738
  }
4739
- return Z(e);
4739
+ return X(e);
4740
4740
  }
4741
4741
  //#endregion
4742
4742
  //#region src/functions/toCamelCaseFirst.ts
@@ -4751,7 +4751,7 @@ function hr(e) {
4751
4751
  //#endregion
4752
4752
  //#region src/functions/toNumberByMax.ts
4753
4753
  function gr(e, t, n, r) {
4754
- let i = y(e), a = y(t);
4754
+ let i = b(e), a = b(t);
4755
4755
  return t && a < i ? `${_r(a, n, r)}+` : _r(i, n, r);
4756
4756
  }
4757
4757
  var _r = (e, t, n) => t ? new R(n).number(e) : e;
@@ -4788,4 +4788,4 @@ async function xr(e) {
4788
4788
  }
4789
4789
  }
4790
4790
  //#endregion
4791
- export { I as Api, P as ApiCache, ze as ApiDataReturn, Be as ApiDefault, Ue as ApiError, Ve as ApiErrorItem, He as ApiErrorStorage, We as ApiHeaders, Ke as ApiHydration, Ze as ApiInstance, F as ApiMethodItem, qe as ApiPreparation, Xe as ApiResponse, Le as ApiStatus, Qe as BroadcastMessage, tt as Cache, et as CacheItem, nt as CacheStatic, Te as Cookie, Se as CookieBlock, xe as CookieBlockInstance, k as CookieStorage, O as DataStorage, it as Datetime, E as ErrorCenter, ce as ErrorCenterHandler, le as ErrorCenterInstance, Me as EventItem, ot as Formatters, H as FormattersType, st as GEO_FLAG_ICON_NAME, A as Geo, ct as GeoFlag, Oe as GeoInstance, R as GeoIntl, lt as GeoPhone, ut as Global, ft as Hash, dt as HashInstance, ht as Icons, N as Loading, Pe as LoadingInstance, Ot as Meta, G as MetaManager, Et as MetaOg, Ct as MetaOpenGraphAge, xt as MetaOpenGraphAvailability, St as MetaOpenGraphCondition, wt as MetaOpenGraphGender, q as MetaOpenGraphTag, bt as MetaOpenGraphType, yt as MetaRobots, kt as MetaStatic, K as MetaTag, Dt as MetaTwitter, Tt as MetaTwitterCard, J as MetaTwitterTag, At as ResumableTimer, jt as ScrollbarWidth, Ut as SearchList, It as SearchListData, Lt as SearchListItem, Vt as SearchListMatcher, Ht as SearchListOptions, D as ServerStorage, Gt as StorageCallback, Xt as TRANSLATE_GLOBAL_PREFIX, Zt as TRANSLATE_TIME_OUT, en as Translate, Qt as TranslateFile, $t as TranslateInstance, Ee as UI_GEO_COOKIE_KEY, tn as UrlItem, Ft as addTagHighlightMatch, C as anyToString, Jt as applyTemplate, nn as arrFill, cn as blobToBase64, ln as capitalize, Z as copyObject, un as copyObjectLite, U as createElement, dn as domQuerySelector, fn as domQuerySelectorAll, W as encodeAttribute, pe as encodeLiteAttribute, gn as ensureMaxSize, Y as escapeExp, _n as eventStopPropagation, S as executeFunction, Je as executePromise, r as forEach, vn as frame, yn as getArrayHighlightMatch, bn as getAttributes, xn as getClipboardData, rt as getColumn, Sn as getCurrentDate, Cn as getCurrentTime, j as getElement, Tn as getElementId, pn as getElementImage, gt as getElementItem, Ae as getElementOrWindow, me as getElementSafeScript, zt as getExactSearchExp, Rt as getExp, Dn as getFirst, he as getHydrationData, V as getItemByPath, On as getKey, kn as getLength, An as getLengthOfAllArray, jn as getMaxLengthAllArray, Mn as getMinLengthAllArray, Fn as getMouseClient, Nn as getMouseClientX, Pn as getMouseClientY, In as getObjectByKeys, Ln as getObjectNoUndefined, Rn as getObjectOrNone, zn as getOnlyText, Vn as getRandomText, o as getRequestString, Bt as getSearchExp, X as getSeparatingSearchExp, Hn as getStepPercent, Un as getStepValue, Gn as goScroll, Kn as goScrollSmooth, qn as goScrollTo, Yn as handleShare, Xn as inArray, En as initGetElementId, Zn as initScrollbarOffset, Qn as intersectKey, Yt as isApiSuccess, i as isArray, $n as isDifferent, ie as isDomData, s as isDomRuntime, er as isElementVisible, nr as isEnter, l as isFilled, rr as isFloat, x as isFunction, je as isInDom, tr as isInput, ir as isIntegerBetween, c as isNull, p as isNumber, t as isObject, n as isObjectNotArray, u as isOnLine, b as isSelected, ar as isSelectedByList, Jn as isShare, d as isString, or as isTab, ke as isWindow, f as random, sr as removeCommonPrefix, cr as replaceComponentName, $ as replaceRecursive, ur as replaceTemplate, hn as resizeImageByMax, dr as secondToTime, _t as setElementItem, fr as setValues, ee as sleep, pr as splice, Bn as strFill, ae as strSplit, M as toArray, at as toCamelCase, mr as toCamelCaseFirst, L as toDate, hr as toKebabCase, y as toNumber, gr as toNumberByMax, vr as toPercent, yr as toPercentBy100, a as toString, de as transformation, br as uint8ArrayToBase64, lr as uniqueArray, xr as writeClipboardData };
4791
+ export { I as Api, N as ApiCache, ze as ApiDataReturn, Be as ApiDefault, Ue as ApiError, Ve as ApiErrorItem, He as ApiErrorStorage, We as ApiHeaders, Ke as ApiHydration, Ze as ApiInstance, F as ApiMethodItem, qe as ApiPreparation, Xe as ApiResponse, P 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, ut as Global, ft as Hash, dt as HashInstance, ht as Icons, M as Loading, Fe as LoadingInstance, Ot as Meta, G as MetaManager, Et as MetaOg, Ct as MetaOpenGraphAge, xt as MetaOpenGraphAvailability, St as MetaOpenGraphCondition, wt as MetaOpenGraphGender, q as MetaOpenGraphTag, bt as MetaOpenGraphType, yt as MetaRobots, kt as MetaStatic, K as MetaTag, Dt as MetaTwitter, Tt as MetaTwitterCard, J as MetaTwitterTag, At as ResumableTimer, jt as ScrollbarWidth, Wt as SearchList, Lt as SearchListData, Rt as SearchListItem, Ht as SearchListMatcher, Ut as SearchListOptions, E as ServerStorage, Kt as StorageCallback, Zt as TRANSLATE_GLOBAL_PREFIX, Qt as TRANSLATE_TIME_OUT, tn as Translate, $t as TranslateFile, en as TranslateInstance, De as UI_GEO_COOKIE_KEY, nn as UrlItem, It as addTagHighlightMatch, S as anyToString, Yt as applyTemplate, rn as arrFill, ln as blobToBase64, un as capitalize, X as copyObject, dn as copyObjectLite, U as createElement, fn as domQuerySelector, pn as domQuerySelectorAll, W as encodeAttribute, me as encodeLiteAttribute, gn as ensureMaxSize, Y as escapeExp, _n as eventStopPropagation, m as executeFunction, Je as executePromise, r as forEach, vn as frame, yn as getArrayHighlightMatch, bn as getAttributes, xn as getClipboardData, rt as getColumn, Sn as getCurrentDate, Cn as getCurrentTime, A as getElement, Tn as getElementId, Z as getElementImage, gt as getElementItem, je as getElementOrWindow, he as getElementSafeScript, Bt as getExactSearchExp, zt as getExp, Dn as getFirst, ge as getHydrationData, V as getItemByPath, On as getKey, kn as getLength, An as getLengthOfAllArray, jn as getMaxLengthAllArray, Mn as getMinLengthAllArray, Fn as getMouseClient, Nn as getMouseClientX, Pn as getMouseClientY, In as getObjectByKeys, Ln as getObjectNoUndefined, Rn as getObjectOrNone, zn as getOnlyText, Vn as getRandomText, o as getRequestString, Vt as getSearchExp, Mt as getSeparatingSearchExp, Hn as getStepPercent, Un as getStepValue, Gn as goScroll, Kn as goScrollSmooth, qn as goScrollTo, Yn as handleShare, Xn as inArray, En as initGetElementId, Zn as initScrollbarOffset, Qn as intersectKey, Xt as isApiSuccess, i as isArray, $n as isDifferent, ae as isDomData, s as isDomRuntime, er as isElementVisible, nr as isEnter, l as isFilled, rr as isFloat, p as isFunction, Me as isInDom, tr as isInput, ir as isIntegerBetween, c as isNull, g as isNumber, t as isObject, n as isObjectNotArray, u as isOnLine, x as isSelected, ar as isSelectedByList, Jn as isShare, d as isString, or as isTab, Ae as isWindow, f as random, sr as removeCommonPrefix, cr as replaceComponentName, $ as replaceRecursive, ur as replaceTemplate, hn as resizeImageByMax, dr as secondToTime, _t as setElementItem, fr as setValues, ee as sleep, pr as splice, Bn as strFill, oe as strSplit, j as toArray, at as toCamelCase, mr as toCamelCaseFirst, L as toDate, hr as toKebabCase, b as toNumber, gr as toNumberByMax, vr as toPercent, yr as toPercentBy100, a as toString, fe as transformation, br as uint8ArrayToBase64, lr as uniqueArray, xr as writeClipboardData };