@dxtmisha/functional-basic 1.2.4 → 1.2.5

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
@@ -99,89 +99,89 @@ function ee(e) {
99
99
  }
100
100
  //#endregion
101
101
  //#region src/functions/isNumber.ts
102
- var p = /^-?[0-9]+(\.[0-9]+)?$/;
103
- function m(e) {
102
+ var te = /^-?[0-9]+(\.[0-9]+)?$/;
103
+ function p(e) {
104
104
  switch (typeof e) {
105
105
  case "number": return Number.isFinite(e);
106
106
  case "bigint": return !0;
107
- case "string": return p.test(e.trim());
107
+ case "string": return te.test(e.trim());
108
108
  default: return !1;
109
109
  }
110
110
  }
111
111
  //#endregion
112
112
  //#region src/functions/toNumber.ts
113
- var h = /[^-+\d., ]+/g, g = /( [0-9]{3}[ ,.]|[0-9] [0-9])/, te = / /g, _ = /,/g, ne = /,[0-9]{3}[,.]/, re = /[.][0-9]{3}[,.]/, ie = /[.]/g;
114
- function v(e) {
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) {
115
115
  if (typeof e == "number") return Number.isFinite(e) && e || 0;
116
116
  if (!e) return 0;
117
- let t = e.replace(h, "");
118
- return t = g.test(t) ? t.replace(te, "").replace(_, ".") : ne.test(t) ? t.replace(_, "") : re.test(t) ? t.replace(ie, "").replace(_, ".") : t.replace(_, "."), parseFloat(t) || 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;
119
119
  }
120
120
  //#endregion
121
121
  //#region src/functions/isSelected.ts
122
- function y(e, t) {
123
- return c(e) ? !1 : Array.isArray(t) ? t.includes(e) : m(e) && m(t) ? v(e) === v(t) : e === t;
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
124
  }
125
125
  //#endregion
126
126
  //#region src/functions/encodeLiteAttribute.ts
127
- var ae = {
127
+ var ie = {
128
128
  "<": "&lt;",
129
129
  ">": "&gt;",
130
130
  "&": "&amp;"
131
131
  };
132
- function oe(e) {
132
+ function ae(e) {
133
133
  return String(e).replace(/[<>&]/g, (e) => {
134
134
  var t;
135
- return (t = ae == null ? void 0 : ae[e]) == null ? e : t;
135
+ return (t = ie == null ? void 0 : ie[e]) == null ? e : t;
136
136
  });
137
137
  }
138
138
  //#endregion
139
139
  //#region src/functions/isFunction.ts
140
- function b(e) {
140
+ function x(e) {
141
141
  return e instanceof Function || typeof e == "function";
142
142
  }
143
143
  //#endregion
144
144
  //#region src/functions/executeFunction.ts
145
- function x(e, ...t) {
146
- return b(e) ? e(...t) : e;
145
+ function S(e, ...t) {
146
+ return x(e) ? e(...t) : e;
147
147
  }
148
148
  //#endregion
149
149
  //#region src/functions/isDomData.ts
150
- function se() {
150
+ function oe() {
151
151
  return s() && location.href.startsWith("data:");
152
152
  }
153
153
  //#endregion
154
154
  //#region \0@oxc-project+runtime@0.130.0/helpers/typeof.js
155
- function S(e) {
155
+ function C(e) {
156
156
  "@babel/helpers - typeof";
157
- return S = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
157
+ return C = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
158
158
  return typeof e;
159
159
  } : function(e) {
160
160
  return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
161
- }, S(e);
161
+ }, C(e);
162
162
  }
163
163
  //#endregion
164
164
  //#region \0@oxc-project+runtime@0.130.0/helpers/toPrimitive.js
165
- function ce(e, t) {
166
- if (S(e) != "object" || !e) return e;
165
+ function se(e, t) {
166
+ if (C(e) != "object" || !e) return e;
167
167
  var n = e[Symbol.toPrimitive];
168
168
  if (n !== void 0) {
169
169
  var r = n.call(e, t || "default");
170
- if (S(r) != "object") return r;
170
+ if (C(r) != "object") return r;
171
171
  throw TypeError("@@toPrimitive must return a primitive value.");
172
172
  }
173
173
  return (t === "string" ? String : Number)(e);
174
174
  }
175
175
  //#endregion
176
176
  //#region \0@oxc-project+runtime@0.130.0/helpers/toPropertyKey.js
177
- function le(e) {
178
- var t = ce(e, "string");
179
- return S(t) == "symbol" ? t : t + "";
177
+ function ce(e) {
178
+ var t = se(e, "string");
179
+ return C(t) == "symbol" ? t : t + "";
180
180
  }
181
181
  //#endregion
182
182
  //#region \0@oxc-project+runtime@0.130.0/helpers/defineProperty.js
183
- function C(e, t, n) {
184
- return (t = le(t)) in e ? Object.defineProperty(e, t, {
183
+ function w(e, t, n) {
184
+ return (t = ce(t)) in e ? Object.defineProperty(e, t, {
185
185
  value: n,
186
186
  enumerable: !0,
187
187
  configurable: !0,
@@ -190,9 +190,9 @@ function C(e, t, n) {
190
190
  }
191
191
  //#endregion
192
192
  //#region src/classes/ErrorCenterHandler.ts
193
- var ue = class {
193
+ var le = class {
194
194
  constructor(e) {
195
- C(this, "handlers", []), e && this.addList(e);
195
+ w(this, "handlers", []), e && this.addList(e);
196
196
  }
197
197
  has(e) {
198
198
  return !!this.get(e);
@@ -218,9 +218,9 @@ var ue = class {
218
218
  toConsole(e) {
219
219
  return console.error(`Error Center: ${e.code}`), console.error("Error Center/message: ", e.message), console.error("Error Center/details", e.details), this;
220
220
  }
221
- }, de = class {
222
- constructor(e, t = new ue()) {
223
- C(this, "handler", void 0), C(this, "causes", []), this.handler = t, e && this.addList(e);
221
+ }, ue = class {
222
+ constructor(e, t = new le()) {
223
+ w(this, "handler", void 0), w(this, "causes", []), this.handler = t, e && this.addList(e);
224
224
  }
225
225
  has(e, t) {
226
226
  return !!this.get(e, t);
@@ -257,7 +257,7 @@ var ue = class {
257
257
  }
258
258
  return e;
259
259
  }
260
- }, fe = [
260
+ }, de = [
261
261
  {
262
262
  group: "api",
263
263
  code: "cacheClear",
@@ -408,7 +408,7 @@ var ue = class {
408
408
  label: "Translate Error",
409
409
  message: "An error occurred while loading translations."
410
410
  }
411
- ], w = class {
411
+ ], T = class {
412
412
  static getItem() {
413
413
  return this.item;
414
414
  }
@@ -434,22 +434,22 @@ var ue = class {
434
434
  this.getItem().on(e);
435
435
  }
436
436
  };
437
- C(w, "item", new de(fe));
437
+ w(T, "item", new ue(de));
438
438
  //#endregion
439
439
  //#region src/functions/getElementSafeScript.ts
440
- function pe(e, t) {
440
+ function fe(e, t) {
441
441
  return `<script id="${e.replace(/"/g, "&quot;")}" type="application/json">${JSON.stringify(t).replace(/<\/(script)>/gi, "<\\/$1>")}<\/script>`;
442
442
  }
443
443
  //#endregion
444
444
  //#region src/functions/getHydrationData.ts
445
- function me(e, t, n = !0) {
445
+ function pe(e, t, n = !0) {
446
446
  if (typeof document < "u") {
447
447
  let t = document.getElementById(e);
448
448
  if (t) try {
449
449
  let e = JSON.parse(t.textContent || "");
450
450
  return n && t.remove(), e;
451
451
  } catch (t) {
452
- w.on({
452
+ T.on({
453
453
  group: "hydration",
454
454
  code: "error",
455
455
  details: {
@@ -463,7 +463,7 @@ function me(e, t, n = !0) {
463
463
  }
464
464
  //#endregion
465
465
  //#region src/classes/ServerStorage.ts
466
- var he = "__ui:server-storage__", ge = "__ui:server:storage:id__", T = class {
466
+ var me = "__ui:server-storage__", he = "__ui:server:storage:id__", E = class {
467
467
  static init(e) {
468
468
  return this.listener || (this.listener = e), this;
469
469
  }
@@ -493,7 +493,7 @@ var he = "__ui:server-storage__", ge = "__ui:server:storage:id__", T = class {
493
493
  e in t && delete t[e];
494
494
  }
495
495
  static toString() {
496
- return pe(ge, this.getDataForHydration());
496
+ return fe(he, this.getDataForHydration());
497
497
  }
498
498
  static getStorage(e = !0, t) {
499
499
  var n;
@@ -501,17 +501,17 @@ var he = "__ui:server-storage__", ge = "__ui:server:storage:id__", T = class {
501
501
  let r = (n = this.listener) == null ? void 0 : n.call(this);
502
502
  if (!r) {
503
503
  var i;
504
- return this.hideError || w.on({
504
+ return this.hideError || T.on({
505
505
  group: "storage",
506
506
  code: "context",
507
507
  details: { status: t }
508
508
  }), e && !this.storage && (this.storage = {}), (i = this.storage) == null ? {} : i;
509
509
  }
510
- return he in r || (r[he] = {}), r[he];
510
+ return me in r || (r[me] = {}), r[me];
511
511
  }
512
512
  static getStorageDom() {
513
513
  if (!this.storage) {
514
- let e = me(ge, {});
514
+ let e = pe(he, {});
515
515
  this.storage = {}, r(e, (e, t) => {
516
516
  this.storage[t] = {
517
517
  value: e,
@@ -528,16 +528,16 @@ var he = "__ui:server-storage__", ge = "__ui:server:storage:id__", T = class {
528
528
  }), t;
529
529
  }
530
530
  };
531
- C(T, "storage", void 0), C(T, "listener", void 0), C(T, "hideError", void 0);
531
+ w(E, "storage", void 0), w(E, "listener", void 0), w(E, "hideError", void 0);
532
532
  //#endregion
533
533
  //#region src/classes/DataStorage.ts
534
- var _e = "ui-storage", ve = () => T.get("__ui:data-storage__", () => ({})), E = class {
534
+ var ge = "ui-storage", _e = () => E.get("__ui:data-storage__", () => ({})), D = class {
535
535
  static setPrefix(e) {
536
- _e = e;
536
+ ge = e;
537
537
  }
538
- constructor(e, t = !1, n = w.getItem()) {
539
- C(this, "name", void 0), C(this, "isSession", void 0), C(this, "errorCenter", void 0), C(this, "value", void 0), C(this, "age", void 0), this.name = e, this.isSession = t, this.errorCenter = n;
540
- let r = `${t ? "session" : "storage"}#${e}`, i = ve();
538
+ constructor(e, t = !1, n = T.getItem()) {
539
+ 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;
540
+ let r = `${t ? "session" : "storage"}#${e}`, i = _e();
541
541
  if (r in i) return i[r];
542
542
  this.make(), i[r] = this;
543
543
  }
@@ -546,10 +546,10 @@ var _e = "ui-storage", ve = () => T.get("__ui:data-storage__", () => ({})), E =
546
546
  if (e !== void 0) return this.set(e);
547
547
  }
548
548
  set(e) {
549
- if (this.value = x(e), this.age = Date.now(), this.value === void 0) this.remove();
549
+ if (this.value = S(e), this.age = Date.now(), this.value === void 0) this.remove();
550
550
  else {
551
551
  var t;
552
- (t = this.getMethod()) == null || t.setItem(this.getIndex(), oe(JSON.stringify({
552
+ (t = this.getMethod()) == null || t.setItem(this.getIndex(), ae(JSON.stringify({
553
553
  value: this.value,
554
554
  age: this.age
555
555
  })));
@@ -567,14 +567,14 @@ var _e = "ui-storage", ve = () => T.get("__ui:data-storage__", () => ({})), E =
567
567
  return c(e) || this.age && this.age + e * 1e3 >= Date.now();
568
568
  }
569
569
  getMethod() {
570
- if (s() && !se()) {
570
+ if (s() && !oe()) {
571
571
  var e, t;
572
572
  let n = this.isSession ? (e = window) == null ? void 0 : e.sessionStorage : (t = window) == null ? void 0 : t.localStorage;
573
573
  if (n) return n;
574
574
  }
575
575
  }
576
576
  getIndex() {
577
- return `${_e}__${this.name}`;
577
+ return `${ge}__${this.name}`;
578
578
  }
579
579
  getValue() {
580
580
  var e, t;
@@ -593,9 +593,9 @@ var _e = "ui-storage", ve = () => T.get("__ui:data-storage__", () => ({})), E =
593
593
  let e = this.getValue();
594
594
  return e ? (this.value = e.value, this.age = e.age) : (this.value = void 0, this.age = void 0), this;
595
595
  }
596
- }, ye = "__ui:geo-code__", be = class {
596
+ }, ve = "__ui:geo-code__", ye = class {
597
597
  constructor() {
598
- C(this, "storage", new E(ye)), C(this, "location", void 0), C(this, "item", void 0), C(this, "language", void 0), C(this, "timezone", (/* @__PURE__ */ new Date()).getTimezoneOffset()), this.location = this.findLocation(), this.item = this.getByCode(this.location), this.language = this.findLanguage(this.location);
598
+ w(this, "storage", new D(ve)), w(this, "location", 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);
599
599
  }
600
600
  get() {
601
601
  return this.item;
@@ -631,7 +631,7 @@ var _e = "ui-storage", ve = () => T.get("__ui:data-storage__", () => ({})), E =
631
631
  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);
632
632
  }
633
633
  getByCodeFull(e) {
634
- return this.getList().find((t) => y(e, [`${t.language}-${t.country}`, `${t.country}-${t.language}`]));
634
+ return this.getList().find((t) => b(e, [`${t.language}-${t.country}`, `${t.country}-${t.language}`]));
635
635
  }
636
636
  getByCountry(e) {
637
637
  return this.getList().find((t) => {
@@ -684,9 +684,9 @@ var _e = "ui-storage", ve = () => T.get("__ui:data-storage__", () => ({})), E =
684
684
  firstDay: (e == null ? void 0 : e.firstDay) || "Mo"
685
685
  };
686
686
  }
687
- }, D = class {
687
+ }, O = class {
688
688
  static getObject() {
689
- return T.get("__ui:geo-instance__", () => new be());
689
+ return E.get("__ui:geo-instance__", () => new ye());
690
690
  }
691
691
  static get() {
692
692
  return this.getObject().get();
@@ -745,14 +745,14 @@ var _e = "ui-storage", ve = () => T.get("__ui:data-storage__", () => ({})), E =
745
745
  };
746
746
  //#endregion
747
747
  //#region src/functions/isWindow.ts
748
- function O(e) {
748
+ function be(e) {
749
749
  return s() && e === window;
750
750
  }
751
751
  //#endregion
752
752
  //#region src/functions/getElement.ts
753
753
  function k(e) {
754
754
  if (!s()) return d(e) ? void 0 : e;
755
- if (O(e)) return document.body;
755
+ if (be(e)) return document.body;
756
756
  if (d(e)) {
757
757
  var t;
758
758
  return (t = document.querySelector(e)) == null ? void 0 : t;
@@ -762,7 +762,7 @@ function k(e) {
762
762
  //#endregion
763
763
  //#region src/functions/getElementOrWindow.ts
764
764
  function xe(e) {
765
- return O(e) ? e : k(e);
765
+ return be(e) ? e : k(e);
766
766
  }
767
767
  //#endregion
768
768
  //#region src/functions/isInDom.ts
@@ -779,12 +779,12 @@ function A(e) {
779
779
  //#region src/classes/EventItem.ts
780
780
  var Ce = class {
781
781
  constructor(e, n = ["click"], r, i, a) {
782
- C(this, "listener", void 0), C(this, "options", void 0), C(this, "detail", void 0), C(this, "element", void 0), C(this, "elementControl", void 0), C(this, "elementControlEdit", void 0), C(this, "type", void 0), C(this, "listenerRecent", (e) => {
782
+ 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) => {
783
783
  if (Se(this.elementControl)) {
784
784
  var n, r;
785
785
  (n = this.listener) == null || n.call(this.element, e, this.detail), t(this.options) && (r = this.options) != null && r.once && this.stop();
786
786
  } else this.stop();
787
- }), C(this, "activity", !1), C(this, "activityItems", []), this.listener = r, this.options = i, this.detail = a, this.element = xe(e), this.elementControl = k(e), this.type = A(n);
787
+ }), w(this, "activity", !1), w(this, "activityItems", []), this.listener = r, this.options = i, this.detail = a, this.element = xe(e), this.elementControl = k(e), this.type = A(n);
788
788
  }
789
789
  isActive() {
790
790
  return this.activity;
@@ -871,7 +871,7 @@ var Ce = class {
871
871
  }
872
872
  }, we = "ui-loading", Te = class {
873
873
  constructor(e = we) {
874
- C(this, "eventName", void 0), C(this, "value", 0), C(this, "event", void 0), C(this, "registrationList", []), this.eventName = e, s() && (this.event = new Ce(window, this.eventName));
874
+ w(this, "eventName", void 0), w(this, "value", 0), w(this, "event", void 0), w(this, "registrationList", []), this.eventName = e, s() && (this.event = new Ce(window, this.eventName));
875
875
  }
876
876
  is() {
877
877
  return this.value > 0;
@@ -910,7 +910,7 @@ var Ce = class {
910
910
  return this.getItem().get();
911
911
  }
912
912
  static getItem() {
913
- return T.get("__ui:loading-instance__", () => new Te());
913
+ return E.get("__ui:loading-instance__", () => new Te());
914
914
  }
915
915
  static show() {
916
916
  this.getItem().show();
@@ -934,7 +934,7 @@ var Ce = class {
934
934
  static async get(e) {
935
935
  let t = await this.getItemOrListener(e);
936
936
  return this.clearOld().catch((e) => {
937
- w.on({
937
+ T.on({
938
938
  group: "api",
939
939
  code: "cacheClear",
940
940
  details: e
@@ -1009,12 +1009,12 @@ var Ce = class {
1009
1009
  }
1010
1010
  }
1011
1011
  };
1012
- Ee = M, C(M, "items", void 0), C(M, "getListener", void 0), C(M, "setListener", void 0), C(M, "removeListener", void 0), C(M, "cacheStepAgeClearOld", 16384), C(M, "stepAgeClearOld", Ee.cacheStepAgeClearOld);
1012
+ Ee = M, w(M, "items", void 0), w(M, "getListener", void 0), w(M, "setListener", void 0), w(M, "removeListener", void 0), w(M, "cacheStepAgeClearOld", 16384), w(M, "stepAgeClearOld", Ee.cacheStepAgeClearOld);
1013
1013
  //#endregion
1014
1014
  //#region src/classes/ApiStatus.ts
1015
1015
  var Oe = class {
1016
1016
  constructor() {
1017
- C(this, "value", void 0);
1017
+ w(this, "value", void 0);
1018
1018
  }
1019
1019
  get() {
1020
1020
  return this.value;
@@ -1078,10 +1078,11 @@ var Oe = class {
1078
1078
  "success",
1079
1079
  "status",
1080
1080
  "code",
1081
- "message"
1081
+ "message",
1082
+ "error"
1082
1083
  ], Ae = class {
1083
- constructor(e, t, n) {
1084
- C(this, "apiFetch", void 0), C(this, "query", void 0), C(this, "end", void 0), C(this, "data", void 0), C(this, "dataMod", void 0), this.apiFetch = e, this.query = t, this.end = n;
1084
+ constructor(e, t, n, r) {
1085
+ 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;
1085
1086
  }
1086
1087
  async init() {
1087
1088
  return this.data = await this.readData(), this;
@@ -1093,7 +1094,8 @@ var Oe = class {
1093
1094
  let t = this.get();
1094
1095
  return t && n(t) ? {
1095
1096
  ...t,
1096
- statusObject: e.get()
1097
+ statusObject: e.get(),
1098
+ errorObject: this.error
1097
1099
  } : t;
1098
1100
  }
1099
1101
  getData() {
@@ -1110,21 +1112,24 @@ var Oe = class {
1110
1112
  }
1111
1113
  initItem(e) {
1112
1114
  let t = { ...e.data };
1113
- return ke.forEach((n) => {
1114
- n in e && !(n in t) && (t[n] = e[n]);
1115
+ return ke.forEach((r) => {
1116
+ if (r in e && !(r in t) && (t[r] = e[r], r === "error" && n(e[r]))) {
1117
+ var i, a, o, s;
1118
+ 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;
1119
+ }
1115
1120
  }), t;
1116
1121
  }
1117
1122
  }, N = /* @__PURE__ */ function(e) {
1118
1123
  return e.delete = "DELETE", e.get = "GET", e.post = "POST", e.put = "PUT", e.patch = "PATCH", e;
1119
1124
  }({}), je = class {
1120
1125
  constructor() {
1121
- C(this, "value", void 0);
1126
+ w(this, "value", void 0);
1122
1127
  }
1123
1128
  is() {
1124
1129
  return !!this.value;
1125
1130
  }
1126
1131
  get() {
1127
- return x(this.value);
1132
+ return S(this.value);
1128
1133
  }
1129
1134
  request(e) {
1130
1135
  let t = this.get();
@@ -1146,12 +1151,100 @@ var Oe = class {
1146
1151
  }), this;
1147
1152
  }
1148
1153
  }, Me = class {
1154
+ constructor(e, t, n) {
1155
+ 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;
1156
+ }
1157
+ getMethod() {
1158
+ return this.method;
1159
+ }
1160
+ getResponse() {
1161
+ return this.response;
1162
+ }
1163
+ getError() {
1164
+ return this.error;
1165
+ }
1166
+ getCode() {
1167
+ var e;
1168
+ return (e = this.error) == null ? void 0 : e.code;
1169
+ }
1170
+ getMessage() {
1171
+ var e;
1172
+ return S((e = this.error) == null ? void 0 : e.message, this.getResponse());
1173
+ }
1174
+ getStatus() {
1175
+ return this.response.status;
1176
+ }
1177
+ }, Ne = class {
1178
+ constructor() {
1179
+ w(this, "storage", []);
1180
+ }
1181
+ async find(e, t) {
1182
+ let n = await this.getBody(t), r = this.getCode(n), i = this.getMessage(n) || t.statusText, a = this.findItem(e, t, r);
1183
+ return a ? {
1184
+ ...a,
1185
+ code: a.code || r,
1186
+ message: a.message || i
1187
+ } : {
1188
+ url: t.url,
1189
+ method: e,
1190
+ code: r,
1191
+ status: t.status,
1192
+ message: i
1193
+ };
1194
+ }
1195
+ add(e, t, n) {
1196
+ return A(e).forEach((e) => {
1197
+ let r = e.url || t, i = e.method || n;
1198
+ r && i && this.storage.push({
1199
+ ...e,
1200
+ url: r,
1201
+ method: i
1202
+ });
1203
+ }), this;
1204
+ }
1205
+ findItem(e, t, n) {
1206
+ for (let i of this.storage) {
1207
+ var r;
1208
+ if (!(i.method !== e || !this.isUrl(t.url, i.url)) && ((r = i.validation) != null && r.call(i, t) || n && i.code && i.code === n || i.status && i.status === t.status)) return i;
1209
+ }
1210
+ }
1211
+ isUrl(e, t) {
1212
+ return t instanceof RegExp ? t.test(e) : e === t;
1213
+ }
1214
+ async getBody(e) {
1215
+ try {
1216
+ return await e.clone().json();
1217
+ } catch (e) {
1218
+ return;
1219
+ }
1220
+ }
1221
+ getDataByKey(e, t) {
1222
+ if (d(e == null ? void 0 : e[t])) return e[t];
1223
+ if (n(e == null ? void 0 : e.error) && d(e.error[t])) return e.error[t];
1224
+ }
1225
+ getCode(e) {
1226
+ return this.getDataByKey(e, "code");
1227
+ }
1228
+ getMessage(e) {
1229
+ return this.getDataByKey(e, "message");
1230
+ }
1231
+ }, Pe = class {
1232
+ static getStorage() {
1233
+ return E.get("__ui:api-error-storage__", () => new Ne());
1234
+ }
1235
+ static add(e, t, n) {
1236
+ this.getStorage().add(e, t, n);
1237
+ }
1238
+ static async getItem(e, t) {
1239
+ return new Me(e, t, await this.getStorage().find(e, t));
1240
+ }
1241
+ }, Fe = class {
1149
1242
  constructor() {
1150
- C(this, "headers", {});
1243
+ w(this, "headers", {});
1151
1244
  }
1152
1245
  get(e, t = "application/json;charset=UTF-8") {
1153
1246
  if (e === null) return;
1154
- let r = { ...x(this.headers) };
1247
+ let r = { ...S(this.headers) };
1155
1248
  return n(e) && Object.assign(r, e), l(t) && (r["Content-Type"] = t), r;
1156
1249
  }
1157
1250
  getByRequest(e, t, n = "application/json;charset=UTF-8") {
@@ -1160,9 +1253,9 @@ var Oe = class {
1160
1253
  set(e) {
1161
1254
  return this.headers = e, this;
1162
1255
  }
1163
- }, Ne = "__ui:api:hydration:id__", Pe = class {
1256
+ }, Ie = "__ui:api:hydration:id__", Le = class {
1164
1257
  constructor() {
1165
- C(this, "list", []);
1258
+ w(this, "list", []);
1166
1259
  }
1167
1260
  initResponse(e) {
1168
1261
  s() && e.add(this.getListByClient());
@@ -1177,14 +1270,14 @@ var Oe = class {
1177
1270
  });
1178
1271
  }
1179
1272
  toString() {
1180
- return pe(Ne, this.list);
1273
+ return fe(Ie, this.list);
1181
1274
  }
1182
1275
  getListByClient() {
1183
- return me(Ne, []);
1276
+ return pe(Ie, []);
1184
1277
  }
1185
- }, Fe = class {
1278
+ }, Re = class {
1186
1279
  constructor() {
1187
- C(this, "callback", void 0), C(this, "callbackEnd", void 0), C(this, "loading", !1);
1280
+ w(this, "callback", void 0), w(this, "callbackEnd", void 0), w(this, "loading", !1);
1188
1281
  }
1189
1282
  async make(e, t) {
1190
1283
  if (e && this.callback) return this.go(t);
@@ -1210,15 +1303,15 @@ var Oe = class {
1210
1303
  };
1211
1304
  //#endregion
1212
1305
  //#region src/functions/executePromise.ts
1213
- async function Ie(e, ...t) {
1214
- let n = x(e, ...t);
1306
+ async function ze(e, ...t) {
1307
+ let n = S(e, ...t);
1215
1308
  return n instanceof Promise ? await n : n;
1216
1309
  }
1217
1310
  //#endregion
1218
1311
  //#region src/classes/ApiResponse.ts
1219
- var Le = "d-response-loading", Re = class {
1312
+ var Be = "d-response-loading", Ve = class {
1220
1313
  constructor(e) {
1221
- C(this, "requestDefault", void 0), C(this, "first", []), C(this, "response", []), C(this, "loading", void 0), C(this, "devMode", !1), this.requestDefault = e;
1314
+ w(this, "requestDefault", void 0), w(this, "first", []), w(this, "response", []), w(this, "loading", void 0), w(this, "devMode", !1), this.requestDefault = e;
1222
1315
  }
1223
1316
  get(e = "", t, n, r) {
1224
1317
  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);
@@ -1244,7 +1337,7 @@ var Le = "d-response-loading", Re = class {
1244
1337
  if (t) return this.fetchAsync(t.response);
1245
1338
  }
1246
1339
  isDisable(e) {
1247
- return !!x(e == null ? void 0 : e.disable);
1340
+ return !!S(e == null ? void 0 : e.disable);
1248
1341
  }
1249
1342
  isPath(e, t) {
1250
1343
  return t === e.path || !!(e.path instanceof RegExp && e.path.test(t));
@@ -1272,7 +1365,7 @@ var Le = "d-response-loading", Re = class {
1272
1365
  }
1273
1366
  fetch(e, t) {
1274
1367
  return this.startResponseLoading(), new Promise((n) => {
1275
- Ie(b(e.response) ? e.response(t) : e.response).then((t) => {
1368
+ ze(x(e.response) ? e.response(t) : e.response).then((t) => {
1276
1369
  e != null && e.lag ? (j.show(), setTimeout(() => {
1277
1370
  this.stopResponseLoading(), n(t), j.hide();
1278
1371
  }, f(0, 2e3))) : (this.stopResponseLoading(), n(t));
@@ -1283,17 +1376,17 @@ var Le = "d-response-loading", Re = class {
1283
1376
  return e.response;
1284
1377
  }
1285
1378
  startResponseLoading() {
1286
- this.loading && clearTimeout(this.loading), s() && document.body.classList.add(Le);
1379
+ this.loading && clearTimeout(this.loading), s() && document.body.classList.add(Be);
1287
1380
  }
1288
1381
  stopResponseLoading() {
1289
1382
  s() && (this.loading = setTimeout(() => {
1290
- this.loading = void 0, document.body.classList.remove(Le);
1383
+ this.loading = void 0, document.body.classList.remove(Be);
1291
1384
  }, 2400));
1292
1385
  }
1293
- }, ze = class {
1386
+ }, He = class {
1294
1387
  constructor(e = "/api/", t = {}) {
1295
- C(this, "url", void 0), C(this, "headers", void 0), C(this, "requestDefault", void 0), C(this, "status", void 0), C(this, "response", void 0), C(this, "preparation", void 0), C(this, "loading", void 0), C(this, "errorCenter", void 0), C(this, "hydration", void 0), C(this, "timeout", 16e3), C(this, "origin", void 0), this.url = e;
1296
- let { headersClass: n = Me, requestDefaultClass: r = je, statusClass: i = Oe, responseClass: a = Re, preparationClass: o = Fe, loadingClass: s = j.getItem(), errorCenterClass: c = w.getItem(), hydrationClass: l = Pe } = t;
1388
+ 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;
1389
+ let { headersClass: n = Fe, requestDefaultClass: r = je, statusClass: i = Oe, responseClass: a = Ve, preparationClass: o = Re, loadingClass: s = j.getItem(), errorCenterClass: c = T.getItem(), hydrationClass: l = Le } = t;
1297
1390
  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);
1298
1391
  }
1299
1392
  isLocalhost() {
@@ -1312,7 +1405,7 @@ var Le = "d-response-loading", Re = class {
1312
1405
  return this.origin && /^\//.test(this.url) ? `${this.origin}${this.url}` : this.url;
1313
1406
  }
1314
1407
  getUrl(e, t = !0) {
1315
- return `${t ? this.getOrigin() : ""}${e}`.replace("{locale}", D.getLocation()).replace("{country}", D.getCountry()).replace("{language}", D.getLanguage());
1408
+ return `${t ? this.getOrigin() : ""}${e}`.replace("{locale}", O.getLocation()).replace("{country}", O.getCountry()).replace("{language}", O.getLanguage());
1316
1409
  }
1317
1410
  getBody(e = {}, t = N.get) {
1318
1411
  if (e instanceof FormData) return e;
@@ -1386,25 +1479,29 @@ var Le = "d-response-loading", Re = class {
1386
1479
  return f(t, t + e * t);
1387
1480
  }
1388
1481
  async fetch(e, t = 0) {
1389
- let { api: n = !0, path: r = "", hideError: i = !1, hideLoading: a = !1, retry: o = 0, retryDelay: s = 64, globalPreparation: c = !0, globalEnd: l = !0, endResetLimit: u = 8 } = e, d = this.getUrl(r, n), f = await this.response.emulator(e);
1390
- if (f) return f;
1391
- let p = await M.getByFetch(e);
1392
- if (p) return this.hydration.toClient(e, p), p;
1393
- let m = new Oe(), h;
1394
- a || this.loading.show();
1482
+ 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, te = this.getUrl(i, r), p = await this.response.emulator(e);
1483
+ if (p) return p;
1484
+ let m = await M.getByFetch(e);
1485
+ if (m) return this.hydration.toClient(e, m), m;
1486
+ let h = new Oe(), g, _;
1487
+ o || this.loading.show();
1395
1488
  try {
1396
- await this.preparation.make(c, e);
1397
- let { query: n, timeoutId: r } = await this.makeQuery(e, d);
1398
- r && clearTimeout(r);
1399
- let f = await this.preparation.makeEnd(l, n, e);
1400
- if (m.setStatus(n.status, n.statusText), this.status.setStatus(n.status, n.statusText), !i && n.status >= 400 && this.makeErrorQuery(n), f != null && f.reset && t < u || t < o) return await ee(this.getRetryDelay(t, s)), a || this.loading.hide(), await this.fetch(e, t + 1);
1401
- h = new Ae(e, n, f), await h.init();
1489
+ await this.preparation.make(l, e);
1490
+ let { query: r, timeoutId: i } = await this.makeQuery(e, te);
1491
+ i && clearTimeout(i);
1492
+ let p = await this.preparation.makeEnd(u, r, e);
1493
+ if (h.setStatus(r.status, r.statusText), this.status.setStatus(r.status, r.statusText), !a && r.status >= 400) {
1494
+ var ne;
1495
+ d && (_ = await Pe.getItem(n, r)), this.makeErrorQuery((ne = _) == null ? r : ne);
1496
+ }
1497
+ 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);
1498
+ g = new Ae(e, r, p, _), await g.init();
1402
1499
  } catch (e) {
1403
- throw i || this.makeError(e), m.setError(String(e)), this.status.setError(String(e)), a || this.loading.hide(), e;
1500
+ throw a || this.makeError(e), h.setError(String(e)), this.status.setError(String(e)), o || this.loading.hide(), e;
1404
1501
  }
1405
- m.setLastResponse(h.getData()), this.status.setLastResponse(h.getData());
1406
- let g = h.getAndStatus(m);
1407
- return a || this.loading.hide(), this.hydration.toClient(e, g), await M.setByFetch(e, g), g;
1502
+ h.setLastResponse(g.getData()), this.status.setLastResponse(g.getData());
1503
+ let v = g.getAndStatus(h);
1504
+ return o || this.loading.hide(), this.hydration.toClient(e, v), await M.setByFetch(e, v), v;
1408
1505
  }
1409
1506
  async makeQuery(e, t) {
1410
1507
  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 = {
@@ -1447,7 +1544,8 @@ var Le = "d-response-loading", Re = class {
1447
1544
  }
1448
1545
  }
1449
1546
  makeErrorQuery(e) {
1450
- switch (e.status) {
1547
+ let t = e instanceof Response ? e.status : e.getStatus(), n = (e instanceof Response ? e.status : e.getCode()) || t;
1548
+ switch (t) {
1451
1549
  case 401:
1452
1550
  this.errorCenter.on({
1453
1551
  group: "api",
@@ -1478,7 +1576,7 @@ var Le = "d-response-loading", Re = class {
1478
1576
  break;
1479
1577
  default: this.errorCenter.on({
1480
1578
  group: "api-server",
1481
- code: String(e.status),
1579
+ code: String(n),
1482
1580
  details: e
1483
1581
  });
1484
1582
  }
@@ -1505,7 +1603,7 @@ var Le = "d-response-loading", Re = class {
1505
1603
  return this.getItem().isLocalhost();
1506
1604
  }
1507
1605
  static getItem() {
1508
- return T.get("__ui:api-instance__", () => new ze());
1606
+ return E.get("__ui:api-instance__", () => new He());
1509
1607
  }
1510
1608
  static getStatus() {
1511
1609
  return this.getItem().getStatus();
@@ -1573,16 +1671,16 @@ var Le = "d-response-loading", Re = class {
1573
1671
  static delete(e) {
1574
1672
  return this.getItem().delete(e);
1575
1673
  }
1576
- }, Be = class {
1577
- constructor(e, t, n, r = w.getItem()) {
1578
- if (C(this, "callback", void 0), C(this, "callbackError", void 0), C(this, "channel", void 0), C(this, "update", (e) => {
1674
+ }, Ue = class {
1675
+ constructor(e, t, n, r = T.getItem()) {
1676
+ if (w(this, "callback", void 0), w(this, "callbackError", void 0), w(this, "channel", void 0), w(this, "update", (e) => {
1579
1677
  var t;
1580
1678
  return (t = this.callback) == null || t.call(this, e), this;
1581
- }), C(this, "updateError", (e) => {
1679
+ }), w(this, "updateError", (e) => {
1582
1680
  var t;
1583
1681
  return (t = this.callbackError) == null || t.call(this, e), this;
1584
1682
  }), this.callback = t, this.callbackError = n, s()) try {
1585
- this.channel = new BroadcastChannel(`${Ve()}__${e}`), this.channel.onmessage = this.update, this.channel.onmessageerror = this.updateError;
1683
+ this.channel = new BroadcastChannel(`${We()}__${e}`), this.channel.onmessage = this.update, this.channel.onmessageerror = this.updateError;
1586
1684
  } catch (e) {
1587
1685
  r.on({
1588
1686
  group: "broadcast",
@@ -1608,9 +1706,9 @@ var Le = "d-response-loading", Re = class {
1608
1706
  var e;
1609
1707
  return (e = this.channel) == null || e.close(), this.channel = void 0, this;
1610
1708
  }
1611
- }, Ve = () => new E("__ui:broadcast-name__").get(() => `name_${f(1e6, 9999999)}`), He = class {
1709
+ }, We = () => new D("__ui:broadcast-name__").get(() => `name_${f(1e6, 9999999)}`), Ge = class {
1612
1710
  constructor(e) {
1613
- C(this, "callback", void 0), C(this, "cache", void 0), C(this, "cacheOld", void 0), C(this, "comparisons", []), this.callback = e;
1711
+ w(this, "callback", void 0), w(this, "cache", void 0), w(this, "cacheOld", void 0), w(this, "comparisons", []), this.callback = e;
1614
1712
  }
1615
1713
  getCache(e) {
1616
1714
  return this.isUpdate(e) && (this.cacheOld = this.cache, this.setCache()), this.cache;
@@ -1630,9 +1728,9 @@ var Le = "d-response-loading", Re = class {
1630
1728
  isUpdate(e) {
1631
1729
  return this.cache === void 0 || this.comparisons.length !== e.length || this.comparisons.findIndex((t, n) => t !== e[n]) >= 0 ? (this.comparisons = [...e], !0) : !1;
1632
1730
  }
1633
- }, Ue = class {
1731
+ }, Ke = class {
1634
1732
  constructor() {
1635
- C(this, "cache", {});
1733
+ w(this, "cache", {});
1636
1734
  }
1637
1735
  get(e, t, n) {
1638
1736
  return this.getCacheItem(e, t).getCache(n == null ? [] : n);
@@ -1641,11 +1739,11 @@ var Le = "d-response-loading", Re = class {
1641
1739
  return await this.getCacheItem(e, t).getCacheAsync(n == null ? [] : n);
1642
1740
  }
1643
1741
  getCacheItem(e, t) {
1644
- return e in this.cache || (this.cache[e] = new He(t)), this.cache[e];
1742
+ return e in this.cache || (this.cache[e] = new Ge(t)), this.cache[e];
1645
1743
  }
1646
- }, We = class {
1744
+ }, qe = class {
1647
1745
  static getItem() {
1648
- return T.get("__ui:cache-static__", () => new Ue());
1746
+ return E.get("__ui:cache-static__", () => new Ke());
1649
1747
  }
1650
1748
  static get(e, t, n) {
1651
1749
  return this.getItem().get(e, t, n);
@@ -1670,7 +1768,7 @@ function F(e, n = !0, r = !0) {
1670
1768
  }
1671
1769
  //#endregion
1672
1770
  //#region src/functions/strSplit.ts
1673
- function Ge(e, t, n) {
1771
+ function Je(e, t, n) {
1674
1772
  let r = F(e);
1675
1773
  if (!n || n <= 0) return r.split(t);
1676
1774
  let i = r.split(t, n), a = r.split(t);
@@ -1678,7 +1776,7 @@ function Ge(e, t, n) {
1678
1776
  }
1679
1777
  //#endregion
1680
1778
  //#region src/functions/transformation.ts
1681
- function Ke(e, t = !1) {
1779
+ function Ye(e, t = !1) {
1682
1780
  if (typeof e == "string") {
1683
1781
  let r = e.trim();
1684
1782
  switch (r) {
@@ -1691,7 +1789,7 @@ function Ke(e, t = !1) {
1691
1789
  if (/^[{[]/.exec(r)) try {
1692
1790
  return JSON.parse(r);
1693
1791
  } catch (e) {
1694
- w.on({
1792
+ T.on({
1695
1793
  group: "transformation",
1696
1794
  code: "error",
1697
1795
  details: e
@@ -1706,9 +1804,9 @@ function Ke(e, t = !1) {
1706
1804
  }
1707
1805
  //#endregion
1708
1806
  //#region src/classes/CookieBlockInstance.ts
1709
- var qe = "__ui:cookie-block__", Je = class {
1807
+ var Xe = "__ui:cookie-block__", Ze = class {
1710
1808
  constructor() {
1711
- C(this, "storage", new E(qe));
1809
+ w(this, "storage", new D(Xe));
1712
1810
  }
1713
1811
  get() {
1714
1812
  var e;
@@ -1717,9 +1815,9 @@ var qe = "__ui:cookie-block__", Je = class {
1717
1815
  set(e) {
1718
1816
  this.storage.set(e);
1719
1817
  }
1720
- }, Ye = class {
1818
+ }, Qe = class {
1721
1819
  static getItem() {
1722
- return T.get("__ui:cookie-block__", () => new Je());
1820
+ return E.get("__ui:cookie-block__", () => new Ze());
1723
1821
  }
1724
1822
  static get() {
1725
1823
  return this.getItem().get();
@@ -1727,7 +1825,7 @@ var qe = "__ui:cookie-block__", Je = class {
1727
1825
  static set(e) {
1728
1826
  this.getItem().set(e);
1729
1827
  }
1730
- }, Xe = "__ui:cookie-storage__", I = class {
1828
+ }, $e = "__ui:cookie-storage__", I = class {
1731
1829
  static init(e, t, n) {
1732
1830
  this.getListener = e, this.getListenerRaw = t, this.setListener = n;
1733
1831
  }
@@ -1737,11 +1835,11 @@ var qe = "__ui:cookie-block__", Je = class {
1737
1835
  static get(e, t) {
1738
1836
  var n, r;
1739
1837
  let i = (n = (r = this.getListener) == null ? void 0 : r.call(this, e)) == null ? this.initItems()[e] : n;
1740
- return i === void 0 && t !== void 0 ? this.set(e, t) : Ke(i);
1838
+ return i === void 0 && t !== void 0 ? this.set(e, t) : Ye(i);
1741
1839
  }
1742
1840
  static set(e, t, n) {
1743
- let r = x(t);
1744
- if (Ye.get()) return r;
1841
+ let r = S(t);
1842
+ if (Qe.get()) return r;
1745
1843
  let i = F(r, !1);
1746
1844
  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;
1747
1845
  }
@@ -1749,7 +1847,7 @@ var qe = "__ui:cookie-block__", Je = class {
1749
1847
  this.set(e, "", { age: -1 });
1750
1848
  }
1751
1849
  static update() {
1752
- s() && (T.remove(Xe), this.initItems());
1850
+ s() && (E.remove($e), this.initItems());
1753
1851
  }
1754
1852
  static format(e, t, n) {
1755
1853
  return [
@@ -1765,18 +1863,18 @@ var qe = "__ui:cookie-block__", Je = class {
1765
1863
  ].filter(Boolean).join("; ");
1766
1864
  }
1767
1865
  static hasDom() {
1768
- return s() && !se();
1866
+ return s() && !oe();
1769
1867
  }
1770
1868
  static parse(e) {
1771
1869
  let t = {};
1772
1870
  for (let n of e.split(";")) {
1773
- let [e, r] = Ge(n.trim(), "=", 2);
1871
+ let [e, r] = Je(n.trim(), "=", 2);
1774
1872
  e && l(r) && (t[e] = r);
1775
1873
  }
1776
1874
  return t;
1777
1875
  }
1778
1876
  static initItems() {
1779
- return T.get(Xe, () => {
1877
+ return E.get($e, () => {
1780
1878
  var e;
1781
1879
  if (this.hasDom()) return this.parse(document.cookie);
1782
1880
  let t = (e = this.getListenerRaw) == null ? void 0 : e.call(this);
@@ -1808,17 +1906,17 @@ var qe = "__ui:cookie-block__", Je = class {
1808
1906
  return e === void 0 ? [] : Array.isArray(e) ? e : Object.entries(e).map(([e, t]) => `${e}=${F(t)}`);
1809
1907
  }
1810
1908
  };
1811
- C(I, "getListener", void 0), C(I, "getListenerRaw", void 0), C(I, "setListener", void 0);
1909
+ w(I, "getListener", void 0), w(I, "getListenerRaw", void 0), w(I, "setListener", void 0);
1812
1910
  //#endregion
1813
1911
  //#region src/classes/Cookie.ts
1814
- var Ze = () => T.get("__ui:cookie-items__", () => ({})), Qe = class e {
1912
+ var et = () => E.get("__ui:cookie-items__", () => ({})), tt = class e {
1815
1913
  static getInstance(t) {
1816
1914
  var n, r;
1817
- return (n = (r = Ze()) == null ? void 0 : r[t]) == null ? new e(t) : n;
1915
+ return (n = (r = et()) == null ? void 0 : r[t]) == null ? new e(t) : n;
1818
1916
  }
1819
1917
  constructor(e) {
1820
- C(this, "name", void 0), C(this, "value", void 0), C(this, "options", {}), this.name = e;
1821
- let t = Ze();
1918
+ w(this, "name", void 0), w(this, "value", void 0), w(this, "options", {}), this.name = e;
1919
+ let t = et();
1822
1920
  if (e in t) return t[e];
1823
1921
  this.value = I.get(this.name), t[e] = this;
1824
1922
  }
@@ -1826,7 +1924,7 @@ var Ze = () => T.get("__ui:cookie-items__", () => ({})), Qe = class e {
1826
1924
  return this.value === void 0 && e && this.set(e, t), this.value;
1827
1925
  }
1828
1926
  set(e, t) {
1829
- this.value = x(e), Object.assign(this.options, t), this.update();
1927
+ this.value = S(e), Object.assign(this.options, t), this.update();
1830
1928
  }
1831
1929
  remove() {
1832
1930
  this.set("");
@@ -1842,33 +1940,33 @@ function L(e) {
1842
1940
  if (e instanceof Date) return e;
1843
1941
  if (c(e)) return /* @__PURE__ */ new Date();
1844
1942
  if (typeof e == "number") return new Date(e);
1845
- let u = e, d = D.getTimezoneFormat().trim();
1943
+ let u = e, d = O.getTimezoneFormat().trim();
1846
1944
  e.replace(/^([\s\S]+)([-+]\d{2}:?\d{2})$/, (e, t, n) => (u = t, d = n.trim(), e));
1847
1945
  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;
1848
1946
  return /* @__PURE__ */ new Date(`${f.trim()}${d}`);
1849
1947
  }
1850
1948
  //#endregion
1851
1949
  //#region src/functions/getColumn.ts
1852
- function $e(e, t) {
1950
+ function nt(e, t) {
1853
1951
  return r(e, (e) => e == null ? void 0 : e[t], !0);
1854
1952
  }
1855
1953
  //#endregion
1856
1954
  //#region src/classes/GeoIntl.ts
1857
1955
  var R = class e {
1858
- static isItem(e = D.getLocation()) {
1956
+ static isItem(e = O.getLocation()) {
1859
1957
  return this.getLocation(e) in B;
1860
1958
  }
1861
- static getLocation(e = D.getLocation()) {
1959
+ static getLocation(e = O.getLocation()) {
1862
1960
  if (e in z) return z[e];
1863
- let t = D.find(e);
1961
+ let t = O.find(e);
1864
1962
  return z[e] = t.standard, t.standard;
1865
1963
  }
1866
- static getInstance(t = D.getLocation()) {
1964
+ static getInstance(t = O.getLocation()) {
1867
1965
  let n = this.getLocation(t);
1868
1966
  return n in B ? B[n] : new e(t);
1869
1967
  }
1870
- constructor(e = D.getLocation(), t = w.getItem()) {
1871
- C(this, "errorCenter", void 0), C(this, "geo", void 0), this.errorCenter = t, this.geo = D.find(e);
1968
+ constructor(e = O.getLocation(), t = T.getItem()) {
1969
+ w(this, "errorCenter", void 0), w(this, "geo", void 0), this.errorCenter = t, this.geo = O.find(e);
1872
1970
  let n = this.getLocation();
1873
1971
  if (n in B) return B[n];
1874
1972
  z[e] = n, B[n] = this;
@@ -1902,7 +2000,7 @@ var R = class e {
1902
2000
  type: "language",
1903
2001
  style: t
1904
2002
  };
1905
- return this.display(D.getByCode(e).language, n);
2003
+ return this.display(O.getByCode(e).language, n);
1906
2004
  }
1907
2005
  countryName(e, t) {
1908
2006
  let n = {
@@ -1932,7 +2030,7 @@ var R = class e {
1932
2030
  }
1933
2031
  number(e, t) {
1934
2032
  var n, r;
1935
- return ((n = this.numberObject(t)) == null || (r = n.format) == null ? void 0 : r.call(n, v(e))) || e.toString();
2033
+ return ((n = this.numberObject(t)) == null || (r = n.format) == null ? void 0 : r.call(n, y(e))) || e.toString();
1936
2034
  }
1937
2035
  decimal() {
1938
2036
  var e, t, n;
@@ -1946,7 +2044,7 @@ var R = class e {
1946
2044
  }, i = e.toString().replace(/^([\S\s]+[\d ])([a-zA-Z]{3})$/i, (...e) => (r.currency = String(e[2]).toUpperCase(), String(e[1])));
1947
2045
  if (n) {
1948
2046
  let t = this.numberObject(r);
1949
- return t ? $e(t.formatToParts(v(e)).filter((e) => ["literal", "currency"].indexOf(e.type) === -1), "value").join("") : e.toString();
2047
+ return t ? nt(t.formatToParts(y(e)).filter((e) => ["literal", "currency"].indexOf(e.type) === -1), "value").join("") : e.toString();
1950
2048
  } else if ("currency" in r) return this.number(typeof e == "number" ? e : i, r);
1951
2049
  else return this.number(typeof e == "number" ? e : i, {
1952
2050
  ...r,
@@ -1969,7 +2067,7 @@ var R = class e {
1969
2067
  return this.number(r, n);
1970
2068
  }
1971
2069
  sizeFile(e, t = "byte") {
1972
- let n = v(e);
2070
+ let n = y(e);
1973
2071
  if (n > 1024 && d(t)) switch (t) {
1974
2072
  case "byte": return this.sizeFile(n / 1024, "kilobyte");
1975
2073
  case "kilobyte": return this.sizeFile(n / 1024, "megabyte");
@@ -1986,11 +2084,11 @@ var R = class e {
1986
2084
  });
1987
2085
  }
1988
2086
  percentBy100(e, t) {
1989
- return this.percent(v(e) / 100, t);
2087
+ return this.percent(y(e) / 100, t);
1990
2088
  }
1991
2089
  plural(e, t, n, r) {
1992
2090
  var i;
1993
- let a = v(e), o = t.split("|");
2091
+ let a = y(e), o = t.split("|");
1994
2092
  if (o.length > 1) try {
1995
2093
  if (typeof Intl < "u") {
1996
2094
  var s;
@@ -2047,7 +2145,7 @@ var R = class e {
2047
2145
  ...typeof n == "string" ? { style: n } : n || {}
2048
2146
  };
2049
2147
  try {
2050
- if (this.hasIntl() && Intl.RelativeTimeFormat !== void 0) return new Intl.RelativeTimeFormat(this.getLocation(), r).format(Math.round(v(e)), t);
2148
+ if (this.hasIntl() && Intl.RelativeTimeFormat !== void 0) return new Intl.RelativeTimeFormat(this.getLocation(), r).format(Math.round(y(e)), t);
2051
2149
  } catch (e) {
2052
2150
  this.errorCenter.on({
2053
2151
  group: "intl",
@@ -2195,9 +2293,9 @@ var R = class e {
2195
2293
  "second"
2196
2294
  ].indexOf(e) !== -1 && (n.second = "2-digit")), n;
2197
2295
  }
2198
- }, z = {}, B = {}, et = class e {
2199
- constructor(e, t = "date", n = D.getLocation()) {
2200
- C(this, "type", void 0), C(this, "code", void 0), C(this, "date", void 0), C(this, "hour24", !1), C(this, "watch", void 0), this.type = t, this.code = n, this.date = L(e), isNaN(this.date.getTime()) && w.on({
2296
+ }, z = {}, B = {}, rt = class e {
2297
+ constructor(e, t = "date", n = O.getLocation()) {
2298
+ 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({
2201
2299
  group: "intl",
2202
2300
  code: "invalid"
2203
2301
  });
@@ -2461,21 +2559,21 @@ var R = class e {
2461
2559
  function V(e, n) {
2462
2560
  var r;
2463
2561
  if (!l(n, !0)) return;
2464
- let i = Ge(n, ".", 2), a = i[0];
2562
+ let i = Je(n, ".", 2), a = i[0];
2465
2563
  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;
2466
2564
  }
2467
2565
  //#endregion
2468
2566
  //#region src/functions/toCamelCase.ts
2469
- function H(e) {
2567
+ function it(e) {
2470
2568
  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()}`);
2471
2569
  }
2472
2570
  //#endregion
2473
2571
  //#region src/types/formattersTypes.ts
2474
- var U = /* @__PURE__ */ function(e) {
2572
+ var H = /* @__PURE__ */ function(e) {
2475
2573
  return e.currency = "currency", e.date = "date", e.name = "name", e.number = "number", e.plural = "plural", e.unit = "unit", e;
2476
- }({}), tt = class {
2574
+ }({}), at = class {
2477
2575
  constructor(e, t) {
2478
- C(this, "options", void 0), C(this, "list", void 0), this.options = e, this.list = t;
2576
+ w(this, "options", void 0), w(this, "list", void 0), this.options = e, this.list = t;
2479
2577
  }
2480
2578
  is() {
2481
2579
  return !!this.list;
@@ -2505,18 +2603,18 @@ var U = /* @__PURE__ */ function(e) {
2505
2603
  getFormatData(e) {
2506
2604
  let t = {};
2507
2605
  return r(this.options, (n, r) => {
2508
- let i = `${H(r)}Format`, a = V(e, r);
2606
+ let i = `${it(r)}Format`, a = V(e, r);
2509
2607
  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);
2510
2608
  }), t;
2511
2609
  }
2512
2610
  transformation(e, t, n, r) {
2513
- if (l(e) || n === U.name) switch (n) {
2514
- case U.currency: return this.formatCurrency(e, t, r);
2515
- case U.date: return this.formatDate(e, r);
2516
- case U.name: return this.formatName(t, r);
2517
- case U.number: return this.formatNumber(e, r);
2518
- case U.plural: return this.formatPlural(e, r);
2519
- case U.unit: return this.formatUnit(e, r);
2611
+ if (l(e) || n === H.name) switch (n) {
2612
+ case H.currency: return this.formatCurrency(e, t, r);
2613
+ case H.date: return this.formatDate(e, r);
2614
+ case H.name: return this.formatName(t, r);
2615
+ case H.number: return this.formatNumber(e, r);
2616
+ case H.plural: return this.formatPlural(e, r);
2617
+ case H.unit: return this.formatUnit(e, r);
2520
2618
  default: return String(e);
2521
2619
  }
2522
2620
  return "";
@@ -2543,12 +2641,12 @@ var U = /* @__PURE__ */ function(e) {
2543
2641
  formatUnit(e, t) {
2544
2642
  return t && t.unit ? R.getInstance().unit(e, t.unit) : e;
2545
2643
  }
2546
- }, nt = "f", rt = class e {
2547
- constructor(e = D.getLocation()) {
2548
- C(this, "code", void 0), this.code = e;
2644
+ }, ot = "f", st = class e {
2645
+ constructor(e = O.getLocation()) {
2646
+ w(this, "code", void 0), this.code = e;
2549
2647
  }
2550
2648
  get(t = this.code) {
2551
- let n = D.find(t);
2649
+ let n = O.find(t);
2552
2650
  if (n) {
2553
2651
  var r;
2554
2652
  let t = this.getCountry(n);
@@ -2596,7 +2694,7 @@ var U = /* @__PURE__ */ function(e) {
2596
2694
  return this.getLocation().countryName(e.country);
2597
2695
  }
2598
2696
  };
2599
- C(rt, "flags", {
2697
+ w(st, "flags", {
2600
2698
  AD: "f-ad",
2601
2699
  AE: "f-ae",
2602
2700
  AF: "f-af",
@@ -2841,7 +2939,7 @@ C(rt, "flags", {
2841
2939
  });
2842
2940
  //#endregion
2843
2941
  //#region src/classes/GeoPhone.ts
2844
- var it = class {
2942
+ var ct = class {
2845
2943
  static get(e) {
2846
2944
  return this.getList().find((t) => e === t.value);
2847
2945
  }
@@ -2897,7 +2995,7 @@ var it = class {
2897
2995
  return (t = (n = e.match(/\*/g)) == null ? void 0 : n.length) == null ? 0 : t;
2898
2996
  }
2899
2997
  static makeList() {
2900
- let e = r(D.getList(), (e) => {
2998
+ let e = r(O.getList(), (e) => {
2901
2999
  if (e != null && e.phoneMask) return {
2902
3000
  phone: (e == null ? void 0 : e.phoneCode) && Number(e.phoneCode.replace(/[^0-9]+/g, "")) || void 0,
2903
3001
  within: (e == null ? void 0 : e.phoneWithin) || 0,
@@ -2940,12 +3038,12 @@ var it = class {
2940
3038
  return e.replace(/\*/, this.getWithinSymbol(t));
2941
3039
  }
2942
3040
  };
2943
- C(it, "list", void 0), C(it, "map", void 0);
3041
+ w(ct, "list", void 0), w(ct, "map", void 0);
2944
3042
  //#endregion
2945
3043
  //#region src/classes/Global.ts
2946
- var at = class {
3044
+ var lt = class {
2947
3045
  static getItem() {
2948
- return T.get("__ui:global-instance__", () => ({}));
3046
+ return E.get("__ui:global-instance__", () => ({}));
2949
3047
  }
2950
3048
  static get(e) {
2951
3049
  var t;
@@ -2955,9 +3053,9 @@ var at = class {
2955
3053
  let t = this.getItem();
2956
3054
  Object.keys(t).length > 0 || Object.assign(t, e);
2957
3055
  }
2958
- }, ot = class {
3056
+ }, ut = class {
2959
3057
  constructor() {
2960
- C(this, "hash", void 0), C(this, "watch", {}), C(this, "block", !1), C(this, "time", void 0);
3058
+ w(this, "hash", void 0), w(this, "watch", {}), w(this, "block", !1), w(this, "time", void 0);
2961
3059
  }
2962
3060
  get(e, t) {
2963
3061
  let n = this.getHash();
@@ -2965,7 +3063,7 @@ var at = class {
2965
3063
  }
2966
3064
  set(e, t) {
2967
3065
  var n;
2968
- let r = x(t);
3066
+ let r = S(t);
2969
3067
  return r !== ((n = this.hash) == null ? void 0 : n[e]) && (this.getHash()[e] = r, this.update()), this;
2970
3068
  }
2971
3069
  addWatch(e, t) {
@@ -2987,7 +3085,7 @@ var at = class {
2987
3085
  let e = {};
2988
3086
  if (s()) {
2989
3087
  let t = location.hash.matchAll(/([\w-]+)[:=]([^;]+)/gi);
2990
- for (let n of t) e[n[1]] = Ke(n[2]);
3088
+ for (let n of t) e[n[1]] = Ye(n[2]);
2991
3089
  }
2992
3090
  return e;
2993
3091
  }
@@ -3021,9 +3119,9 @@ var at = class {
3021
3119
  ((r = this.hash) == null ? void 0 : r[n]) !== (e == null ? void 0 : e[n]) && t.forEach((t) => t(e[n]));
3022
3120
  }), this;
3023
3121
  }
3024
- }, st = class {
3122
+ }, dt = class {
3025
3123
  static getItem() {
3026
- return T.get("__ui:hash-instance__", () => new ot());
3124
+ return E.get("__ui:hash-instance__", () => new ut());
3027
3125
  }
3028
3126
  static get(e, t) {
3029
3127
  return this.getItem().get(e, t);
@@ -3040,17 +3138,17 @@ var at = class {
3040
3138
  static reload() {
3041
3139
  this.getItem().reload();
3042
3140
  }
3043
- }, ct = 320, lt = "--LOAD--", ut = class {
3141
+ }, ft = 320, pt = "--LOAD--", mt = class {
3044
3142
  static is(e) {
3045
3143
  return e in this.icons || this.getName(e) in this.icons;
3046
3144
  }
3047
3145
  static async get(e, t = "", n = 1e3 * 60 * 3) {
3048
3146
  let r = this.getRaw(e, t);
3049
- return typeof r == "string" ? r === lt && n > 0 ? (await this.wait(), this.get(e, t, n - ct)) : r : b(r) ? await r() : await r;
3147
+ return typeof r == "string" ? r === pt && n > 0 ? (await this.wait(), this.get(e, t, n - ft)) : r : x(r) ? await r() : await r;
3050
3148
  }
3051
3149
  static getAsync(e, t = "") {
3052
3150
  let n = this.getRaw(e, t);
3053
- return typeof n == "string" && n !== lt ? n : "";
3151
+ return typeof n == "string" && n !== pt ? n : "";
3054
3152
  }
3055
3153
  static getNameList() {
3056
3154
  return r(this.icons, (e, t) => t.replace(/^@/, ""));
@@ -3062,7 +3160,7 @@ var at = class {
3062
3160
  this.icons[this.getName(e)] = t;
3063
3161
  }
3064
3162
  static addLoad(e) {
3065
- this.icons[this.getName(e)] = lt;
3163
+ this.icons[this.getName(e)] = pt;
3066
3164
  }
3067
3165
  static addGlobal(e, t) {
3068
3166
  this.icons[this.getName(e)] = `${this.getUrlGlobal()}${t}`;
@@ -3084,27 +3182,27 @@ var at = class {
3084
3182
  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;
3085
3183
  }
3086
3184
  static wait() {
3087
- return new Promise((e) => setTimeout(() => e(), ct));
3185
+ return new Promise((e) => setTimeout(() => e(), ft));
3088
3186
  }
3089
3187
  };
3090
- C(ut, "icons", {}), C(ut, "url", "/icons/");
3188
+ w(mt, "icons", {}), w(mt, "url", "/icons/");
3091
3189
  //#endregion
3092
3190
  //#region src/functions/getElementItem.ts
3093
- function dt(e, t, n) {
3191
+ function ht(e, t, n) {
3094
3192
  var r, i;
3095
3193
  return (r = (i = k(e)) == null ? void 0 : i[t]) == null ? n : r;
3096
3194
  }
3097
3195
  //#endregion
3098
3196
  //#region src/functions/setElementItem.ts
3099
- function ft(e, n, i) {
3197
+ function gt(e, n, i) {
3100
3198
  let a = k(e);
3101
3199
  if (a) {
3102
- let e = dt(a, n);
3200
+ let e = ht(a, n);
3103
3201
  if (t(e) && t(i)) r(i, (t, n) => {
3104
- e[n] = x(t);
3202
+ e[n] = S(t);
3105
3203
  });
3106
3204
  else {
3107
- let e = x(i);
3205
+ let e = S(i);
3108
3206
  !(n in a) && typeof e == "string" ? a.setAttribute(n.toString(), e) : a[n] = e;
3109
3207
  }
3110
3208
  }
@@ -3112,33 +3210,33 @@ function ft(e, n, i) {
3112
3210
  }
3113
3211
  //#endregion
3114
3212
  //#region src/functions/createElement.ts
3115
- function W(e, t = "div", i, a) {
3213
+ function U(e, t = "div", i, a) {
3116
3214
  if (!s()) return;
3117
3215
  let o = document.createElement(t);
3118
3216
  return typeof i == "function" ? i(o) : n(i) && r(i, (e, t) => {
3119
- ft(o, t, e);
3217
+ gt(o, t, e);
3120
3218
  }), e == null || e.insertBefore(o, a == null ? null : a), o;
3121
3219
  }
3122
3220
  //#endregion
3123
3221
  //#region src/functions/encodeAttribute.ts
3124
- var pt = {
3222
+ var _t = {
3125
3223
  "&": "&amp;",
3126
3224
  "<": "&lt;",
3127
3225
  ">": "&gt;",
3128
3226
  "\"": "&quot;",
3129
3227
  "'": "&#39;"
3130
3228
  };
3131
- function G(e) {
3229
+ function W(e) {
3132
3230
  return String(e).replace(/[&<>"']/g, (e) => {
3133
3231
  var t;
3134
- return (t = pt == null ? void 0 : pt[e]) == null ? e : t;
3232
+ return (t = _t == null ? void 0 : _t[e]) == null ? e : t;
3135
3233
  });
3136
3234
  }
3137
3235
  //#endregion
3138
3236
  //#region src/classes/MetaManager.ts
3139
- var K = class {
3237
+ var G = class {
3140
3238
  constructor(e, t = !1) {
3141
- C(this, "listMeta", void 0), C(this, "isProperty", void 0), C(this, "items", {}), this.listMeta = e, this.isProperty = t, this.update();
3239
+ w(this, "listMeta", void 0), w(this, "isProperty", void 0), w(this, "items", {}), this.listMeta = e, this.isProperty = t, this.update();
3142
3240
  }
3143
3241
  getListMeta() {
3144
3242
  return this.listMeta;
@@ -3178,17 +3276,17 @@ var K = class {
3178
3276
  let r = this.findMetaElement(e);
3179
3277
  if (r) return r.content = n, this;
3180
3278
  let i = { content: n };
3181
- return this.isProperty ? i.property = e : i.name = e, W(document.head, "meta", i), this;
3279
+ return this.isProperty ? i.property = e : i.name = e, U(document.head, "meta", i), this;
3182
3280
  }
3183
3281
  toHtmlString(e) {
3184
3282
  var t;
3185
3283
  let n = (t = this.items[e]) == null ? "" : t;
3186
3284
  if (e === "title") return "";
3187
- let r = G(n);
3285
+ let r = W(n);
3188
3286
  return r ? `<meta ${this.getAttributeName()}="${e}" content="${r}">` : "";
3189
3287
  }
3190
3288
  toHtmlTitle(e) {
3191
- return oe(e);
3289
+ return ae(e);
3192
3290
  }
3193
3291
  update() {
3194
3292
  return this.listMeta.forEach((e) => {
@@ -3196,121 +3294,121 @@ var K = class {
3196
3294
  this.items[e] = (t = (n = this.findMetaElement(e)) == null ? void 0 : n.content) == null ? "" : t;
3197
3295
  }), this;
3198
3296
  }
3199
- }, q = /* @__PURE__ */ function(e) {
3297
+ }, K = /* @__PURE__ */ function(e) {
3200
3298
  return e.title = "title", e.description = "description", e.keywords = "keywords", e.canonical = "canonical", e.robots = "robots", e.author = "author", e;
3201
- }({}), mt = /* @__PURE__ */ function(e) {
3299
+ }({}), vt = /* @__PURE__ */ function(e) {
3202
3300
  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;
3203
- }({}), J = /* @__PURE__ */ function(e) {
3301
+ }({}), q = /* @__PURE__ */ function(e) {
3204
3302
  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;
3205
- }({}), ht = /* @__PURE__ */ function(e) {
3303
+ }({}), yt = /* @__PURE__ */ function(e) {
3206
3304
  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;
3207
- }({}), gt = /* @__PURE__ */ function(e) {
3305
+ }({}), bt = /* @__PURE__ */ function(e) {
3208
3306
  return e.inStock = "in stock", e.outOfStock = "out of stock", e.preorder = "preorder", e.backorder = "backorder", e.discontinued = "discontinued", e.pending = "pending", e;
3209
- }({}), _t = /* @__PURE__ */ function(e) {
3307
+ }({}), xt = /* @__PURE__ */ function(e) {
3210
3308
  return e.new = "new", e.used = "used", e.refurbished = "refurbished", e;
3211
- }({}), vt = /* @__PURE__ */ function(e) {
3309
+ }({}), St = /* @__PURE__ */ function(e) {
3212
3310
  return e.newborn = "newborn", e.infant = "infant", e.toddler = "toddler", e.kids = "kids", e.adult = "adult", e;
3213
- }({}), yt = /* @__PURE__ */ function(e) {
3311
+ }({}), Ct = /* @__PURE__ */ function(e) {
3214
3312
  return e.female = "female", e.male = "male", e.unisex = "unisex", e;
3215
- }({}), Y = /* @__PURE__ */ function(e) {
3313
+ }({}), J = /* @__PURE__ */ function(e) {
3216
3314
  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;
3217
- }({}), bt = /* @__PURE__ */ function(e) {
3315
+ }({}), wt = /* @__PURE__ */ function(e) {
3218
3316
  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;
3219
- }({}), xt = class extends K {
3317
+ }({}), Tt = class extends G {
3220
3318
  constructor() {
3221
- super(Object.values(J), !0);
3319
+ super(Object.values(q), !0);
3222
3320
  }
3223
3321
  getTitle() {
3224
- return this.get(J.title);
3322
+ return this.get(q.title);
3225
3323
  }
3226
3324
  getType() {
3227
- return this.get(J.type);
3325
+ return this.get(q.type);
3228
3326
  }
3229
3327
  getUrl() {
3230
- return this.get(J.url);
3328
+ return this.get(q.url);
3231
3329
  }
3232
3330
  getImage() {
3233
- return this.get(J.image);
3331
+ return this.get(q.image);
3234
3332
  }
3235
3333
  getDescription() {
3236
- return this.get(J.description);
3334
+ return this.get(q.description);
3237
3335
  }
3238
3336
  getLocale() {
3239
- return this.get(J.locale);
3337
+ return this.get(q.locale);
3240
3338
  }
3241
3339
  getSiteName() {
3242
- return this.get(J.siteName);
3340
+ return this.get(q.siteName);
3243
3341
  }
3244
3342
  setTitle(e) {
3245
- return this.set(J.title, e);
3343
+ return this.set(q.title, e);
3246
3344
  }
3247
3345
  setType(e) {
3248
- return this.set(J.type, e);
3346
+ return this.set(q.type, e);
3249
3347
  }
3250
3348
  setUrl(e) {
3251
- return this.set(J.url, e);
3349
+ return this.set(q.url, e);
3252
3350
  }
3253
3351
  setImage(e) {
3254
- return this.set(J.image, e);
3352
+ return this.set(q.image, e);
3255
3353
  }
3256
3354
  setDescription(e) {
3257
- return this.set(J.description, e);
3355
+ return this.set(q.description, e);
3258
3356
  }
3259
3357
  setLocale(e) {
3260
- return this.set(J.locale, e);
3358
+ return this.set(q.locale, e);
3261
3359
  }
3262
3360
  setSiteName(e) {
3263
- return this.set(J.siteName, e);
3361
+ return this.set(q.siteName, e);
3264
3362
  }
3265
- }, St = class extends K {
3363
+ }, Et = class extends G {
3266
3364
  constructor() {
3267
- super(Object.values(Y));
3365
+ super(Object.values(J));
3268
3366
  }
3269
3367
  getCard() {
3270
- return this.get(Y.card);
3368
+ return this.get(J.card);
3271
3369
  }
3272
3370
  getSite() {
3273
- return this.get(Y.site);
3371
+ return this.get(J.site);
3274
3372
  }
3275
3373
  getCreator() {
3276
- return this.get(Y.creator);
3374
+ return this.get(J.creator);
3277
3375
  }
3278
3376
  getUrl() {
3279
- return this.get(Y.url);
3377
+ return this.get(J.url);
3280
3378
  }
3281
3379
  getTitle() {
3282
- return this.get(Y.title);
3380
+ return this.get(J.title);
3283
3381
  }
3284
3382
  getDescription() {
3285
- return this.get(Y.description);
3383
+ return this.get(J.description);
3286
3384
  }
3287
3385
  getImage() {
3288
- return this.get(Y.image);
3386
+ return this.get(J.image);
3289
3387
  }
3290
3388
  setCard(e) {
3291
- return this.set(Y.card, e), this;
3389
+ return this.set(J.card, e), this;
3292
3390
  }
3293
3391
  setSite(e) {
3294
- return this.set(Y.site, e), this;
3392
+ return this.set(J.site, e), this;
3295
3393
  }
3296
3394
  setCreator(e) {
3297
- return this.set(Y.creator, e), this;
3395
+ return this.set(J.creator, e), this;
3298
3396
  }
3299
3397
  setUrl(e) {
3300
- return this.set(Y.url, e), this;
3398
+ return this.set(J.url, e), this;
3301
3399
  }
3302
3400
  setTitle(e) {
3303
- return this.set(Y.title, e), this;
3401
+ return this.set(J.title, e), this;
3304
3402
  }
3305
3403
  setDescription(e) {
3306
- return this.set(Y.description, e), this;
3404
+ return this.set(J.description, e), this;
3307
3405
  }
3308
3406
  setImage(e) {
3309
- return this.set(Y.image, e), this;
3407
+ return this.set(J.image, e), this;
3310
3408
  }
3311
- }, Ct = class extends K {
3409
+ }, Dt = class extends G {
3312
3410
  constructor() {
3313
- super(Object.values(q)), C(this, "suffix", void 0), C(this, "og", void 0), C(this, "twitter", void 0), this.og = new xt(), this.twitter = new St();
3411
+ super(Object.values(K)), w(this, "suffix", void 0), w(this, "og", void 0), w(this, "twitter", void 0), this.og = new Tt(), this.twitter = new Et();
3314
3412
  }
3315
3413
  getOg() {
3316
3414
  return this.og;
@@ -3319,26 +3417,26 @@ var K = class {
3319
3417
  return this.twitter;
3320
3418
  }
3321
3419
  getTitle() {
3322
- let e = this.get(q.title);
3420
+ let e = this.get(K.title);
3323
3421
  return !l(e) && s() && (e = document.title), e.replace(this.getSuffix(), "").trim();
3324
3422
  }
3325
3423
  getKeywords() {
3326
- return this.get(q.keywords);
3424
+ return this.get(K.keywords);
3327
3425
  }
3328
3426
  getDescription() {
3329
- return this.get(q.description);
3427
+ return this.get(K.description);
3330
3428
  }
3331
3429
  getImage() {
3332
3430
  return this.og.getImage();
3333
3431
  }
3334
3432
  getCanonical() {
3335
- return this.get(q.canonical);
3433
+ return this.get(K.canonical);
3336
3434
  }
3337
3435
  getRobots() {
3338
- return this.get(q.robots);
3436
+ return this.get(K.robots);
3339
3437
  }
3340
3438
  getAuthor() {
3341
- return this.get(q.author);
3439
+ return this.get(K.author);
3342
3440
  }
3343
3441
  getSiteName() {
3344
3442
  return this.og.getSiteName();
@@ -3348,25 +3446,25 @@ var K = class {
3348
3446
  }
3349
3447
  setTitle(e) {
3350
3448
  let t = l(e) ? `${e}${this.getSuffix()}` : this.suffix ? this.suffix : "";
3351
- return s() && (document.title = t), this.set(q.title, t), this.og.setTitle(t), this.twitter.setTitle(t), this;
3449
+ return s() && (document.title = t), this.set(K.title, t), this.og.setTitle(t), this.twitter.setTitle(t), this;
3352
3450
  }
3353
3451
  setKeywords(e) {
3354
- return this.set(q.keywords, A(e).join(", ")), this;
3452
+ return this.set(K.keywords, A(e).join(", ")), this;
3355
3453
  }
3356
3454
  setDescription(e) {
3357
- return this.set(q.description, e), this;
3455
+ return this.set(K.description, e), this;
3358
3456
  }
3359
3457
  setImage(e) {
3360
3458
  return this.og.setImage(e), this.twitter.setImage(e), this;
3361
3459
  }
3362
3460
  setCanonical(e) {
3363
- return this.set(q.canonical, e), this.og.setUrl(e), this.twitter.setUrl(e), this;
3461
+ return this.set(K.canonical, e), this.og.setUrl(e), this.twitter.setUrl(e), this;
3364
3462
  }
3365
3463
  setRobots(e) {
3366
- return this.set(q.robots, e), this;
3464
+ return this.set(K.robots, e), this;
3367
3465
  }
3368
3466
  setAuthor(e) {
3369
- return this.set(q.author, e), this;
3467
+ return this.set(K.author, e), this;
3370
3468
  }
3371
3469
  setSiteName(e) {
3372
3470
  return this.og.setSiteName(e), this.twitter.setSite(e), this;
@@ -3381,14 +3479,14 @@ var K = class {
3381
3479
  return `${super.html()}${this.og.html()}${this.twitter.html()}`;
3382
3480
  }
3383
3481
  htmlTitle() {
3384
- return this.toHtmlTitle(this.get(q.title));
3482
+ return this.toHtmlTitle(this.get(K.title));
3385
3483
  }
3386
3484
  getSuffix() {
3387
3485
  return l(this.suffix) ? ` - ${this.suffix}` : "";
3388
3486
  }
3389
- }, wt = class {
3487
+ }, Ot = class {
3390
3488
  static getItem() {
3391
- return T.get("__ui:meta-instance__", () => new Ct());
3489
+ return E.get("__ui:meta-instance__", () => new Dt());
3392
3490
  }
3393
3491
  static getOg() {
3394
3492
  return this.getItem().getOg();
@@ -3459,9 +3557,9 @@ var K = class {
3459
3557
  static htmlTitle() {
3460
3558
  return this.getItem().htmlTitle();
3461
3559
  }
3462
- }, Tt = class {
3560
+ }, kt = class {
3463
3561
  constructor(e, t = 320, n = !1) {
3464
- C(this, "callback", void 0), C(this, "delay", void 0), C(this, "timerId", void 0), C(this, "startTime", void 0), C(this, "remaining", void 0), C(this, "completed", !1), this.callback = e, this.delay = t, n || this.resume();
3562
+ 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();
3465
3563
  }
3466
3564
  resume() {
3467
3565
  if (this.timerId || this.completed) return this;
@@ -3497,7 +3595,7 @@ var K = class {
3497
3595
  stop() {
3498
3596
  return this.timerId && (clearTimeout(this.timerId), this.timerId = void 0), this;
3499
3597
  }
3500
- }, Et = class {
3598
+ }, At = class {
3501
3599
  static async is() {
3502
3600
  let e = await this.get();
3503
3601
  return e !== -1 && e <= 8;
@@ -3513,14 +3611,14 @@ var K = class {
3513
3611
  return t;
3514
3612
  }
3515
3613
  static getStorage() {
3516
- return new E("__ui:scrollbar__", !0);
3614
+ return new D("__ui:scrollbar__", !0);
3517
3615
  }
3518
3616
  static getCalculate() {
3519
3617
  return this.calculate;
3520
3618
  }
3521
3619
  static createElement() {
3522
- return W(document.body, "div", (e) => {
3523
- e.style.height = "24px", e.style.overflowY = "scroll", e.style.position = "fixed", e.style.width = "100%", W(e, "div", (e) => {
3620
+ return U(document.body, "div", (e) => {
3621
+ e.style.height = "24px", e.style.overflowY = "scroll", e.style.position = "fixed", e.style.width = "100%", U(e, "div", (e) => {
3524
3622
  e.style.height = "100px";
3525
3623
  });
3526
3624
  });
@@ -3535,36 +3633,36 @@ var K = class {
3535
3633
  });
3536
3634
  }
3537
3635
  };
3538
- C(Et, "calculate", !1);
3636
+ w(At, "calculate", !1);
3539
3637
  //#endregion
3540
3638
  //#region src/functions/escapeExp.ts
3541
- function X(e) {
3639
+ function Y(e) {
3542
3640
  return String(e).replace(/[.*+?^${}()|[\]\\/]/g, "\\$&");
3543
3641
  }
3544
3642
  //#endregion
3545
3643
  //#region src/functions/getSeparatingSearchExp.ts
3546
- function Dt(e, t = 128) {
3644
+ function jt(e, t = 128) {
3547
3645
  if (e instanceof RegExp) return e;
3548
3646
  if (!e || e.trim().length === 0 || e.length > t) return /^/;
3549
- let n = String(e).replace(/\s+/g, " ").trim().split(" ").map(X).join("|");
3647
+ let n = String(e).replace(/\s+/g, " ").trim().split(" ").map(Y).join("|");
3550
3648
  return RegExp(`(${n})`, "ig");
3551
3649
  }
3552
3650
  //#endregion
3553
3651
  //#region src/functions/addTagHighlightMatch.ts
3554
- var Ot = `___HIGHLIGHT_START_${f(1e5, 999999)}___`, kt = `___HIGHLIGHT_END_${f(1e5, 999999)}___`, At = RegExp(`${Ot}|${kt}`, "g");
3555
- function jt(e, t, n = "sys-highlight-match", r = !1) {
3652
+ var X = `___HIGHLIGHT_START_${f(1e5, 999999)}___`, Mt = `___HIGHLIGHT_END_${f(1e5, 999999)}___`, Nt = RegExp(`${X}|${Mt}`, "g");
3653
+ function Pt(e, t, n = "sys-highlight-match", r = !1) {
3556
3654
  let i = a(e);
3557
3655
  if (l(i) && l(t)) {
3558
- let e = i.replace(Dt(t), `${Ot}$1${kt}`);
3559
- return r && (e = G(e)), e.replace(At, (e) => e === Ot ? `<span class="${n}">` : "</span>");
3656
+ let e = i.replace(jt(t), `${X}$1${Mt}`);
3657
+ return r && (e = W(e)), e.replace(Nt, (e) => e === X ? `<span class="${n}">` : "</span>");
3560
3658
  }
3561
- return r ? G(i) : i;
3659
+ return r ? W(i) : i;
3562
3660
  }
3563
3661
  //#endregion
3564
3662
  //#region src/classes/SearchListData.ts
3565
- var Mt = class {
3663
+ var Ft = class {
3566
3664
  constructor(e, t, n, r) {
3567
- C(this, "list", void 0), C(this, "columns", void 0), C(this, "item", void 0), C(this, "options", void 0), C(this, "listCache", void 0), this.list = e, this.columns = t, this.item = n, this.options = r;
3665
+ 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;
3568
3666
  }
3569
3667
  is() {
3570
3668
  return !!(this.list && this.columns);
@@ -3613,7 +3711,7 @@ var Mt = class {
3613
3711
  return e.replace(/\.([a-z0-9])/gi, (e, t) => t.toUpperCase()) + "Search";
3614
3712
  }
3615
3713
  addTag(e) {
3616
- return jt(F(e), this.item.get(), this.options.getClassName());
3714
+ return Pt(F(e), this.item.get(), this.options.getClassName());
3617
3715
  }
3618
3716
  generateCache() {
3619
3717
  if (!this.isList()) return [];
@@ -3637,9 +3735,9 @@ var Mt = class {
3637
3735
  resetCache() {
3638
3736
  this.listCache = void 0;
3639
3737
  }
3640
- }, Nt = class {
3738
+ }, It = class {
3641
3739
  constructor(e, t) {
3642
- C(this, "value", void 0), C(this, "options", void 0), this.value = e, this.options = t;
3740
+ w(this, "value", void 0), w(this, "options", void 0), this.value = e, this.options = t;
3643
3741
  }
3644
3742
  is() {
3645
3743
  return !!this.value;
@@ -3657,30 +3755,30 @@ var Mt = class {
3657
3755
  };
3658
3756
  //#endregion
3659
3757
  //#region src/functions/getExp.ts
3660
- function Pt(e, t = "ig", n = ":value") {
3661
- let r = X(e);
3758
+ function Lt(e, t = "ig", n = ":value") {
3759
+ let r = Y(e);
3662
3760
  return new RegExp(n.replace(/:value/g, r), t);
3663
3761
  }
3664
3762
  //#endregion
3665
3763
  //#region src/functions/getExactSearchExp.ts
3666
- function Ft(e) {
3667
- return Pt(e, "i", "(:value)");
3764
+ function Rt(e) {
3765
+ return Lt(e, "i", "(:value)");
3668
3766
  }
3669
3767
  //#endregion
3670
3768
  //#region src/functions/getSearchExp.ts
3671
- function It(e, t = 128) {
3769
+ function zt(e, t = 128) {
3672
3770
  if (!d(e) || e.trim().length === 0 || e.length > t) return /^/;
3673
3771
  let n = [];
3674
3772
  return a(e).split(" ").forEach((e) => {
3675
- let t = X(e).trim();
3773
+ let t = Y(e).trim();
3676
3774
  l(t) && n.push(`(?=.*?${t})`);
3677
3775
  }), RegExp(`^${n.join("")}`, "i");
3678
3776
  }
3679
3777
  //#endregion
3680
3778
  //#region src/classes/SearchListMatcher.ts
3681
- var Lt = class {
3779
+ var Bt = class {
3682
3780
  constructor(e, t) {
3683
- C(this, "item", void 0), C(this, "options", void 0), C(this, "matcher", void 0), this.item = e, this.options = t, this.initMatcher();
3781
+ w(this, "item", void 0), w(this, "options", void 0), w(this, "matcher", void 0), this.item = e, this.options = t, this.initMatcher();
3684
3782
  }
3685
3783
  is() {
3686
3784
  return !!this.matcher;
@@ -3695,11 +3793,11 @@ var Lt = class {
3695
3793
  this.initMatcher();
3696
3794
  }
3697
3795
  initMatcher() {
3698
- this.item.is() ? this.matcher = this.options.getFindExactMatch() ? Ft(this.item.get()) : It(this.item.get()) : this.matcher = void 0;
3796
+ this.item.is() ? this.matcher = this.options.getFindExactMatch() ? Rt(this.item.get()) : zt(this.item.get()) : this.matcher = void 0;
3699
3797
  }
3700
- }, Rt = class {
3798
+ }, Vt = class {
3701
3799
  constructor(e) {
3702
- C(this, "options", void 0), this.options = e;
3800
+ w(this, "options", void 0), this.options = e;
3703
3801
  }
3704
3802
  getOptions() {
3705
3803
  return this.options || {};
@@ -3727,12 +3825,12 @@ var Lt = class {
3727
3825
  setOptions(e) {
3728
3826
  return this.options = e, this;
3729
3827
  }
3730
- }, zt = class {
3828
+ }, Ht = class {
3731
3829
  constructor(e, t, n, r) {
3732
- C(this, "options", void 0), C(this, "item", void 0), C(this, "matcher", void 0), C(this, "data", void 0), C(this, "callbackToSelection", (e, t) => {
3830
+ 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) => {
3733
3831
  if (this.matcher.isSelection(t)) return this.data.toFormatItem(e, !0);
3734
3832
  if (this.options.getReturnEverything()) return this.data.toFormatItem(e, !1);
3735
- }), C(this, "callbackToNone", (e) => this.data.toFormatItem(e, !1)), this.options = new Rt(r), this.item = new Nt(n, this.options), this.matcher = new Lt(this.item, this.options), this.data = new Mt(e, t, this.item, this.options);
3833
+ }), w(this, "callbackToNone", (e) => this.data.toFormatItem(e, !1)), this.options = new Vt(r), this.item = new It(n, this.options), this.matcher = new Bt(this.item, this.options), this.data = new Ft(e, t, this.item, this.options);
3736
3834
  }
3737
3835
  getData() {
3738
3836
  return this.data;
@@ -3769,13 +3867,13 @@ var Lt = class {
3769
3867
  let e = this.data.getList();
3770
3868
  return e ? r(e, this.callbackToNone) : [];
3771
3869
  }
3772
- }, Bt = () => T.get("__ui:storage-callback__", () => ({})), Vt = class e {
3870
+ }, Ut = () => E.get("__ui:storage-callback__", () => ({})), Wt = class e {
3773
3871
  static getInstance(t, n = "main") {
3774
3872
  return new e(t, n);
3775
3873
  }
3776
3874
  constructor(e, t = "main") {
3777
- C(this, "name", void 0), C(this, "group", void 0), C(this, "callbacks", []), C(this, "loading", !1), this.name = e, this.group = t;
3778
- let n = `${t}:${e}`, r = Bt();
3875
+ w(this, "name", void 0), w(this, "group", void 0), w(this, "callbacks", []), w(this, "loading", !1), this.name = e, this.group = t;
3876
+ let n = `${t}:${e}`, r = Ut();
3779
3877
  if (n in r) return r[n];
3780
3878
  r[n] = this;
3781
3879
  }
@@ -3802,10 +3900,10 @@ var Lt = class {
3802
3900
  }
3803
3901
  async run(e) {
3804
3902
  this.loading = !1;
3805
- for (let { callback: t, isOnce: n } of this.callbacks) await Ie(t, e), n && this.removeCallback(t);
3903
+ for (let { callback: t, isOnce: n } of this.callbacks) await ze(t, e), n && this.removeCallback(t);
3806
3904
  return this;
3807
3905
  }
3808
- }, Ht = [
3906
+ }, Gt = [
3809
3907
  "d",
3810
3908
  "e",
3811
3909
  "f",
@@ -3825,10 +3923,10 @@ var Lt = class {
3825
3923
  "t",
3826
3924
  "u",
3827
3925
  "v"
3828
- ], Ut = RegExp(`%(${Ht.join("|")})`, "g"), Wt = (e, t = {}) => {
3926
+ ], Kt = RegExp(`%(${Gt.join("|")})`, "g"), qt = (e, t = {}) => {
3829
3927
  let r = String(e);
3830
- return Array.isArray(t) && e.match(/%[a-z]/) && (r = r.replace(Ut, (e, n) => {
3831
- let r = Ht.indexOf(n);
3928
+ return Array.isArray(t) && e.match(/%[a-z]/) && (r = r.replace(Kt, (e, n) => {
3929
+ let r = Gt.indexOf(n);
3832
3930
  if (r !== -1) {
3833
3931
  var i;
3834
3932
  return String((i = t == null ? void 0 : t[r]) == null ? "" : i);
@@ -3847,21 +3945,21 @@ var Lt = class {
3847
3945
  }
3848
3946
  return e;
3849
3947
  })), r;
3850
- }, Gt = (e) => {
3948
+ }, Jt = (e) => {
3851
3949
  var t;
3852
3950
  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(P.getStatus().getStatus()))));
3853
- }, Kt = "global", qt = 160, Jt = class {
3854
- constructor(e, t = () => D.getLanguage(), n = () => D.getLocation()) {
3855
- C(this, "language", void 0), C(this, "location", void 0), C(this, "files", {}), C(this, "data", {}), this.language = t, this.location = n, e && this.add(e);
3951
+ }, Yt = "global", Xt = 160, Zt = class {
3952
+ constructor(e, t = () => O.getLanguage(), n = () => O.getLocation()) {
3953
+ 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);
3856
3954
  }
3857
3955
  isFile() {
3858
3956
  return Object.keys(this.files).length > 0 && this.getIndex() !== void 0;
3859
3957
  }
3860
3958
  getLocation() {
3861
- return x(this.location);
3959
+ return S(this.location);
3862
3960
  }
3863
3961
  getLanguage() {
3864
- return x(this.language);
3962
+ return S(this.language);
3865
3963
  }
3866
3964
  async getList() {
3867
3965
  let e = this.getIndex();
@@ -3872,7 +3970,7 @@ var Lt = class {
3872
3970
  }
3873
3971
  add(e) {
3874
3972
  r(e, (e, t) => {
3875
- b(e) && (this.files[t] = e);
3973
+ x(e) && (this.files[t] = e);
3876
3974
  });
3877
3975
  }
3878
3976
  getIndex() {
@@ -3880,20 +3978,20 @@ var Lt = class {
3880
3978
  if (e in this.files) return e;
3881
3979
  let t = this.getLanguage();
3882
3980
  if (t in this.files) return t;
3883
- if ("global" in this.files) return Kt;
3981
+ if ("global" in this.files) return Yt;
3884
3982
  }
3885
3983
  getByData(e) {
3886
3984
  if (e in this.data) return this.data[e];
3887
3985
  }
3888
3986
  async getByFile(e) {
3889
3987
  if (e in this.files) {
3890
- let t = await x(this.files[e]);
3988
+ let t = await S(this.files[e]);
3891
3989
  return t && (this.data[e] = t), t;
3892
3990
  }
3893
3991
  }
3894
- }, Yt = class {
3895
- constructor(e = "/api/translate", t = "list", n = new Jt()) {
3896
- C(this, "url", void 0), C(this, "propsName", void 0), C(this, "files", void 0), C(this, "data", {}), C(this, "cache", []), C(this, "resolveList", []), C(this, "timeout", void 0), C(this, "isReadApi", !0), this.url = e, this.propsName = t, this.files = n;
3992
+ }, Qt = class {
3993
+ constructor(e = "/api/translate", t = "list", n = new Zt()) {
3994
+ 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;
3897
3995
  }
3898
3996
  async get(e, t) {
3899
3997
  var n;
@@ -3981,7 +4079,7 @@ var Lt = class {
3981
4079
  return `${this.files.getLanguage()}-${e}`;
3982
4080
  }
3983
4081
  getNameByGlobal(e) {
3984
- return `${Kt}-${e}`;
4082
+ return `${Yt}-${e}`;
3985
4083
  }
3986
4084
  getNamesNone(e) {
3987
4085
  let t = [];
@@ -3998,14 +4096,14 @@ var Lt = class {
3998
4096
  timeout: 12e3,
3999
4097
  global: !0
4000
4098
  });
4001
- return Gt(e) || w.on({
4099
+ return Jt(e) || T.on({
4002
4100
  group: "translate",
4003
4101
  code: "error",
4004
4102
  details: e
4005
4103
  }), e == null ? {} : e;
4006
4104
  }
4007
4105
  replacement(e, t) {
4008
- return t ? Wt(e, t) : e;
4106
+ return t ? qt(e, t) : e;
4009
4107
  }
4010
4108
  async make() {
4011
4109
  let e;
@@ -4017,12 +4115,12 @@ var Lt = class {
4017
4115
  this.data[this.getName(t)] = (n = e == null ? void 0 : e[t]) == null ? "" : n;
4018
4116
  }), this.cache = [];
4019
4117
  }
4020
- }, Xt = class {
4118
+ }, $t = class {
4021
4119
  static async get(e, t) {
4022
4120
  return this.getItem().get(e, t);
4023
4121
  }
4024
4122
  static getItem() {
4025
- return this.item || (this.item = new Yt()), this.item;
4123
+ return this.item || (this.item = new Qt()), this.item;
4026
4124
  }
4027
4125
  static getSync(e, t = !1, n) {
4028
4126
  return this.getItem().getSync(e, t, n);
@@ -4061,18 +4159,18 @@ var Lt = class {
4061
4159
  e.url && this.getItem().setUrl(e.url), e.propsName && this.getItem().setPropsName(e.propsName), typeof e.readApi == "boolean" && this.getItem().setReadApi(e.readApi);
4062
4160
  }
4063
4161
  };
4064
- C(Xt, "item", void 0);
4162
+ w($t, "item", void 0);
4065
4163
  //#endregion
4066
4164
  //#region src/functions/arrFill.ts
4067
- function Zt(e, t) {
4165
+ function en(e, t) {
4068
4166
  return Array(t).fill(e);
4069
4167
  }
4070
4168
  //#endregion
4071
4169
  //#region src/functions/blobToBase64.ts
4072
- var Qt = () => $t() !== void 0, $t = () => {
4170
+ var tn = () => nn() !== void 0, nn = () => {
4073
4171
  var e;
4074
4172
  return (e = globalThis) == null ? void 0 : e.Buffer;
4075
- }, en = async (e) => new Promise((t, n) => {
4173
+ }, rn = async (e) => new Promise((t, n) => {
4076
4174
  if (typeof FileReader < "u") {
4077
4175
  let r = new FileReader();
4078
4176
  r.onloadend = () => {
@@ -4083,19 +4181,19 @@ var Qt = () => $t() !== void 0, $t = () => {
4083
4181
  t(r.result.replace(/^data:.*?,/, ""));
4084
4182
  }, r.onerror = n, r.readAsDataURL(e);
4085
4183
  } else n();
4086
- }), tn = (e) => {
4184
+ }), an = (e) => {
4087
4185
  var t;
4088
4186
  return ((t = globalThis) == null ? void 0 : t.Buffer).from(e).toString("base64");
4089
4187
  };
4090
- async function nn(e, t = !1) {
4091
- let n = s() ? await en(e) : Qt() ? tn(await e.arrayBuffer()) : void 0;
4188
+ async function on(e, t = !1) {
4189
+ let n = s() ? await rn(e) : tn() ? an(await e.arrayBuffer()) : void 0;
4092
4190
  if (n) return t ? n : `data:${e.type};base64,${n}`;
4093
4191
  }
4094
4192
  //#endregion
4095
4193
  //#region src/functions/capitalize.ts
4096
- function rn(e, t = !1) {
4194
+ function sn(e, t = !1) {
4097
4195
  let n = String(e);
4098
- return n.length > 0 ? t ? n.charAt(0).toLocaleUpperCase(D.getLocation()) + n.slice(1) : n.charAt(0).toUpperCase() + n.slice(1) : n;
4196
+ return n.length > 0 ? t ? n.charAt(0).toLocaleUpperCase(O.getLocation()) + n.slice(1) : n.charAt(0).toUpperCase() + n.slice(1) : n;
4099
4197
  }
4100
4198
  //#endregion
4101
4199
  //#region src/functions/copyObject.ts
@@ -4104,12 +4202,12 @@ function Z(e) {
4104
4202
  }
4105
4203
  //#endregion
4106
4204
  //#region src/functions/copyObjectLite.ts
4107
- function an(e, t) {
4205
+ function cn(e, t) {
4108
4206
  return Object.assign({}, e, t);
4109
4207
  }
4110
4208
  //#endregion
4111
4209
  //#region src/functions/domQuerySelector.ts
4112
- function on(e) {
4210
+ function ln(e) {
4113
4211
  if (s()) {
4114
4212
  var t;
4115
4213
  return (t = document.querySelector(e)) == null ? void 0 : t;
@@ -4117,67 +4215,67 @@ function on(e) {
4117
4215
  }
4118
4216
  //#endregion
4119
4217
  //#region src/functions/domQuerySelectorAll.ts
4120
- function sn(e) {
4218
+ function un(e) {
4121
4219
  if (s()) return document.querySelectorAll(e);
4122
4220
  }
4123
4221
  //#endregion
4124
4222
  //#region src/functions/getElementImage.ts
4125
- function cn(e) {
4126
- return d(e) ? W(void 0, "img", { src: e }) : e;
4223
+ function dn(e) {
4224
+ return d(e) ? U(void 0, "img", { src: e }) : e;
4127
4225
  }
4128
4226
  //#endregion
4129
4227
  //#region src/functions/resizeImageByMax.ts
4130
- function ln(e, t = "auto") {
4228
+ function fn(e, t = "auto") {
4131
4229
  switch (t) {
4132
4230
  case "auto": return e.naturalWidth >= e.naturalHeight;
4133
4231
  case "width": return !0;
4134
4232
  case "height": return !1;
4135
4233
  }
4136
4234
  }
4137
- function un(e, t, n = "auto", r) {
4138
- let i = cn(e);
4235
+ function pn(e, t, n = "auto", r) {
4236
+ let i = dn(e);
4139
4237
  if (s() && i && i.naturalWidth && i.naturalHeight && (i.naturalWidth > t && (n === "auto" || n === "width") || i.naturalHeight > t && (n === "auto" || n === "height"))) {
4140
4238
  var a;
4141
- let e = ln(i, n), o = (a = document.createElement("canvas")) == null ? void 0 : a.getContext("2d");
4239
+ let e = fn(i, n), o = (a = document.createElement("canvas")) == null ? void 0 : a.getContext("2d");
4142
4240
  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);
4143
4241
  }
4144
4242
  }
4145
4243
  //#endregion
4146
4244
  //#region src/functions/ensureMaxSize.ts
4147
- async function dn(e, t = .56, n = "image/jpeg") {
4245
+ async function mn(e, t = .56, n = "image/jpeg") {
4148
4246
  return new Promise((r) => {
4149
4247
  if (!s()) {
4150
4248
  r("");
4151
4249
  return;
4152
4250
  }
4153
- let i = new Blob([e], { type: n }), a = URL.createObjectURL(i), o = cn(a);
4251
+ let i = new Blob([e], { type: n }), a = URL.createObjectURL(i), o = dn(a);
4154
4252
  o ? (o.onload = () => {
4155
- let e = un(o, t * o.naturalWidth, "width", n);
4253
+ let e = pn(o, t * o.naturalWidth, "width", n);
4156
4254
  r(e == null ? "" : e), URL.revokeObjectURL(a);
4157
4255
  }, o.onerror = () => {
4158
4256
  URL.revokeObjectURL(a), r("");
4159
- }) : nn(i).then((e) => r(String(e == null ? "" : e)));
4257
+ }) : on(i).then((e) => r(String(e == null ? "" : e)));
4160
4258
  });
4161
4259
  }
4162
4260
  //#endregion
4163
4261
  //#region src/functions/eventStopPropagation.ts
4164
- function fn(e) {
4262
+ function hn(e) {
4165
4263
  e.preventDefault(), e.stopPropagation();
4166
4264
  }
4167
4265
  //#endregion
4168
4266
  //#region src/functions/frame.ts
4169
- function pn(e, t, n) {
4267
+ function gn(e, t, n) {
4170
4268
  let r = () => {
4171
- e(), s() && t != null && t() ? pn(e, t, n) : n == null || n();
4269
+ e(), s() && t != null && t() ? gn(e, t, n) : n == null || n();
4172
4270
  };
4173
4271
  s() ? requestAnimationFrame(r) : r();
4174
4272
  }
4175
4273
  //#endregion
4176
4274
  //#region src/functions/getArrayHighlightMatch.ts
4177
- function mn(e, t) {
4275
+ function _n(e, t) {
4178
4276
  let n = a(e);
4179
4277
  if (l(n) && l(t)) {
4180
- let e = [], r = Dt(t), i = 0, a;
4278
+ let e = [], r = jt(t), i = 0, a;
4181
4279
  for (; (a = r.exec(n)) !== null && a.index !== r.lastIndex;) a.index > i && e.push({
4182
4280
  text: n.substring(i, a.index),
4183
4281
  isMatch: !1
@@ -4197,7 +4295,7 @@ function mn(e, t) {
4197
4295
  }
4198
4296
  //#endregion
4199
4297
  //#region src/functions/getAttributes.ts
4200
- function hn(e) {
4298
+ function vn(e) {
4201
4299
  let t = {}, n = k(e);
4202
4300
  if (n) for (let e of n.attributes) {
4203
4301
  var r;
@@ -4207,12 +4305,12 @@ function hn(e) {
4207
4305
  }
4208
4306
  //#endregion
4209
4307
  //#region src/functions/getClipboardData.ts
4210
- async function gn(e) {
4308
+ async function yn(e) {
4211
4309
  if (s()) try {
4212
4310
  var t, n;
4213
4311
  return (t = e == null || (n = e.clipboardData) == null ? void 0 : n.getData("text")) == null ? await navigator.clipboard.readText() || "" : t;
4214
4312
  } catch (e) {
4215
- w.on({
4313
+ T.on({
4216
4314
  group: "clipboard",
4217
4315
  code: "error",
4218
4316
  details: e
@@ -4222,35 +4320,35 @@ async function gn(e) {
4222
4320
  }
4223
4321
  //#endregion
4224
4322
  //#region src/functions/getCurrentDate.ts
4225
- function _n(e = "datetime") {
4226
- return new et(void 0, e).standard();
4323
+ function bn(e = "datetime") {
4324
+ return new rt(void 0, e).standard();
4227
4325
  }
4228
4326
  //#endregion
4229
4327
  //#region src/functions/getCurrentTime.ts
4230
- function vn() {
4328
+ function xn() {
4231
4329
  return Date.now();
4232
4330
  }
4233
4331
  //#endregion
4234
4332
  //#region src/functions/getElementId.ts
4235
- var Q, yn = () => {
4333
+ var Q, Sn = () => {
4236
4334
  let e = Q == null ? void 0 : Q();
4237
4335
  if (e) return String(e);
4238
- let t = T.get("__ui:getElementId__", () => ({ id: 1e5 }));
4336
+ let t = E.get("__ui:getElementId__", () => ({ id: 1e5 }));
4239
4337
  return `id-${t.id++}`;
4240
4338
  };
4241
- function bn(e, t) {
4339
+ function Cn(e, t) {
4242
4340
  if (e) {
4243
4341
  let n = k(e);
4244
- if (n) return l(n.id) || n.setAttribute("id", yn()), t ? `#${n.id}${t}`.trim() : n.id;
4342
+ if (n) return l(n.id) || n.setAttribute("id", Sn()), t ? `#${n.id}${t}`.trim() : n.id;
4245
4343
  }
4246
- return yn();
4344
+ return Sn();
4247
4345
  }
4248
- function xn(e) {
4346
+ function wn(e) {
4249
4347
  Q || (Q = e);
4250
4348
  }
4251
4349
  //#endregion
4252
4350
  //#region src/functions/getFirst.ts
4253
- function Sn(e) {
4351
+ function Tn(e) {
4254
4352
  if (i(e)) return e == null ? void 0 : e[0];
4255
4353
  if (t(e)) {
4256
4354
  var n;
@@ -4260,13 +4358,13 @@ function Sn(e) {
4260
4358
  }
4261
4359
  //#endregion
4262
4360
  //#region src/functions/getKey.ts
4263
- function Cn(e) {
4361
+ function En(e) {
4264
4362
  var t, n, r;
4265
4363
  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;
4266
4364
  }
4267
4365
  //#endregion
4268
4366
  //#region src/functions/getLengthOfAllArray.ts
4269
- function wn(e) {
4367
+ function Dn(e) {
4270
4368
  return r(e, (e) => {
4271
4369
  var t;
4272
4370
  return (t = e == null ? void 0 : e.length) == null ? 0 : t;
@@ -4274,41 +4372,41 @@ function wn(e) {
4274
4372
  }
4275
4373
  //#endregion
4276
4374
  //#region src/functions/getMaxLengthAllArray.ts
4277
- function Tn(e) {
4375
+ function On(e) {
4278
4376
  if (!l(e)) return 0;
4279
- let t = wn(e);
4377
+ let t = Dn(e);
4280
4378
  return t.length > 1e4 ? t.reduce((e, t) => Math.max(e, t)) : Math.max(...t);
4281
4379
  }
4282
4380
  //#endregion
4283
4381
  //#region src/functions/getMinLengthAllArray.ts
4284
- function En(e) {
4382
+ function kn(e) {
4285
4383
  if (!l(e)) return 0;
4286
- let t = wn(e);
4384
+ let t = Dn(e);
4287
4385
  return t.length > 1e4 ? t.reduce((e, t) => Math.min(e, t)) : Math.min(...t);
4288
4386
  }
4289
4387
  //#endregion
4290
4388
  //#region src/functions/getMouseClientX.ts
4291
- function Dn(e) {
4389
+ function An(e) {
4292
4390
  var t, n;
4293
4391
  return (e == null ? void 0 : 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;
4294
4392
  }
4295
4393
  //#endregion
4296
4394
  //#region src/functions/getMouseClientY.ts
4297
- function On(e) {
4395
+ function jn(e) {
4298
4396
  var t, n;
4299
4397
  return (e == null ? void 0 : 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;
4300
4398
  }
4301
4399
  //#endregion
4302
4400
  //#region src/functions/getMouseClient.ts
4303
- function kn(e) {
4401
+ function Mn(e) {
4304
4402
  return {
4305
- x: Dn(e),
4306
- y: On(e)
4403
+ x: An(e),
4404
+ y: jn(e)
4307
4405
  };
4308
4406
  }
4309
4407
  //#endregion
4310
4408
  //#region src/functions/getObjectByKeys.ts
4311
- function An(e, t) {
4409
+ function Nn(e, t) {
4312
4410
  let r = {};
4313
4411
  return n(e) && t.forEach((t) => {
4314
4412
  t in e && e[t] !== void 0 && (r[t] = e[t]);
@@ -4316,7 +4414,7 @@ function An(e, t) {
4316
4414
  }
4317
4415
  //#endregion
4318
4416
  //#region src/functions/getObjectNoUndefined.ts
4319
- function jn(e, t = void 0) {
4417
+ function Pn(e, t = void 0) {
4320
4418
  let n = {};
4321
4419
  return r(e, (e, r) => {
4322
4420
  e !== t && (n[r] = e);
@@ -4324,42 +4422,42 @@ function jn(e, t = void 0) {
4324
4422
  }
4325
4423
  //#endregion
4326
4424
  //#region src/functions/getObjectOrNone.ts
4327
- function Mn(e) {
4425
+ function Fn(e) {
4328
4426
  return n(e) ? e : {};
4329
4427
  }
4330
4428
  //#endregion
4331
4429
  //#region src/functions/getOnlyText.ts
4332
- function Nn(e) {
4430
+ function In(e) {
4333
4431
  return F(e).replace(/[^\p{L}\p{N}\s]+/gu, "").trim();
4334
4432
  }
4335
4433
  //#endregion
4336
4434
  //#region src/functions/strFill.ts
4337
- function Pn(e, t) {
4435
+ function Ln(e, t) {
4338
4436
  return String(e).repeat(t);
4339
4437
  }
4340
4438
  //#endregion
4341
4439
  //#region src/functions/getRandomText.ts
4342
- function Fn(e, t, n = "#", r = 2, i = 12) {
4440
+ function Rn(e, t, n = "#", r = 2, i = 12) {
4343
4441
  let a = f(e, t), o = [];
4344
- for (let e = 0; e < a; e++) o.push(Pn(n, f(r, i)));
4442
+ for (let e = 0; e < a; e++) o.push(Ln(n, f(r, i)));
4345
4443
  return o.join(" ");
4346
4444
  }
4347
4445
  //#endregion
4348
4446
  //#region src/functions/getStepPercent.ts
4349
- function In(e, t) {
4447
+ function zn(e, t) {
4350
4448
  let n = e == null ? 0 : e;
4351
4449
  return t > n ? 100 / (t - n) : 0;
4352
4450
  }
4353
4451
  //#endregion
4354
4452
  //#region src/functions/getStepValue.ts
4355
- function Ln(e, t) {
4453
+ function Bn(e, t) {
4356
4454
  let n = e == null ? 0 : e;
4357
4455
  return t > n ? (t - n) / 100 : 0;
4358
4456
  }
4359
4457
  //#endregion
4360
4458
  //#region src/functions/goScroll.ts
4361
- var Rn = 0;
4362
- function zn(e, t, n) {
4459
+ var Vn = 0;
4460
+ function Hn(e, t, n) {
4363
4461
  if (!s()) return;
4364
4462
  let r = t == null ? void 0 : t.closest(e);
4365
4463
  if (t && r && r.scrollHeight !== r.offsetHeight) {
@@ -4367,12 +4465,12 @@ function zn(e, t, n) {
4367
4465
  if (n) {
4368
4466
  let a = n.getBoundingClientRect();
4369
4467
  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);
4370
- } else r.scrollTop > t.offsetTop ? r.scrollTop = i.top - e.top - Rn : r.scrollTop + r.offsetHeight < t.offsetTop + t.offsetHeight && (r.scrollTop = i.top - e.top + i.height - e.height + Rn);
4468
+ } else r.scrollTop > t.offsetTop ? r.scrollTop = i.top - e.top - Vn : r.scrollTop + r.offsetHeight < t.offsetTop + t.offsetHeight && (r.scrollTop = i.top - e.top + i.height - e.height + Vn);
4371
4469
  }
4372
4470
  }
4373
4471
  //#endregion
4374
4472
  //#region src/functions/goScrollSmooth.ts
4375
- function Bn(e, t, n = 0) {
4473
+ function Un(e, t, n = 0) {
4376
4474
  if (!s()) return;
4377
4475
  let r = (t == null ? void 0 : t.behavior) || "smooth";
4378
4476
  if ("scrollIntoView" in e && !n) {
@@ -4394,7 +4492,7 @@ function Bn(e, t, n = 0) {
4394
4492
  }
4395
4493
  //#endregion
4396
4494
  //#region src/functions/goScrollTo.ts
4397
- function Vn(e, t, n = "smooth") {
4495
+ function Wn(e, t, n = "smooth") {
4398
4496
  if (!s() || !e || !t) return;
4399
4497
  let r = e.getBoundingClientRect(), i = t.getBoundingClientRect();
4400
4498
  e.scrollBy({
@@ -4405,16 +4503,16 @@ function Vn(e, t, n = "smooth") {
4405
4503
  }
4406
4504
  //#endregion
4407
4505
  //#region src/functions/isShare.ts
4408
- function Hn() {
4506
+ function Gn() {
4409
4507
  return s() && typeof navigator < "u" && !!navigator.share;
4410
4508
  }
4411
4509
  //#endregion
4412
4510
  //#region src/functions/handleShare.ts
4413
- async function Un(e) {
4414
- if (Hn() && navigator.canShare && navigator.canShare(e)) try {
4511
+ async function Kn(e) {
4512
+ if (Gn() && navigator.canShare && navigator.canShare(e)) try {
4415
4513
  return await navigator.share(e), !0;
4416
4514
  } catch (e) {
4417
- w.on({
4515
+ T.on({
4418
4516
  group: "share",
4419
4517
  code: "error",
4420
4518
  details: e
@@ -4424,20 +4522,20 @@ async function Un(e) {
4424
4522
  }
4425
4523
  //#endregion
4426
4524
  //#region src/functions/inArray.ts
4427
- function Wn(e, t) {
4525
+ function qn(e, t) {
4428
4526
  return e.includes(t);
4429
4527
  }
4430
4528
  //#endregion
4431
4529
  //#region src/functions/initScrollbarOffset.ts
4432
- async function Gn() {
4530
+ async function Jn() {
4433
4531
  if (s()) {
4434
- let e = await Et.get();
4532
+ let e = await At.get();
4435
4533
  document.body.style.setProperty("--sys-scrollbar-offset", `${e}px`);
4436
4534
  }
4437
4535
  }
4438
4536
  //#endregion
4439
4537
  //#region src/functions/intersectKey.ts
4440
- function Kn(e, n) {
4538
+ function Yn(e, n) {
4441
4539
  let i = {};
4442
4540
  return t(e) && t(n) && r(e, (e, t) => {
4443
4541
  t in n && (i[t] = e);
@@ -4445,7 +4543,7 @@ function Kn(e, n) {
4445
4543
  }
4446
4544
  //#endregion
4447
4545
  //#region src/functions/isDifferent.ts
4448
- function qn(e, t) {
4546
+ function Xn(e, t) {
4449
4547
  let n = Object.keys(e).length !== Object.keys(t).length;
4450
4548
  return n || r(e, (e, r) => {
4451
4549
  e !== (t == null ? void 0 : t[r]) && (n = !0);
@@ -4453,7 +4551,7 @@ function qn(e, t) {
4453
4551
  }
4454
4552
  //#endregion
4455
4553
  //#region src/functions/isElementVisible.ts
4456
- function Jn(e) {
4554
+ function Zn(e) {
4457
4555
  if (!s()) return !1;
4458
4556
  let t = k(e);
4459
4557
  if (!t || "isConnected" in t && t.isConnected === !1) return !1;
@@ -4462,16 +4560,16 @@ function Jn(e) {
4462
4560
  }
4463
4561
  //#endregion
4464
4562
  //#region src/functions/isInput.ts
4465
- var Yn = (e) => {
4563
+ var Qn = (e) => {
4466
4564
  if (e instanceof HTMLElement) {
4467
4565
  let t = e.tagName.toLowerCase();
4468
4566
  return !!(t === "input" || t === "textarea" || t === "select" || e.isContentEditable || e.getAttribute("contenteditable") === "true");
4469
4567
  }
4470
4568
  return !1;
4471
- }, Xn = (e, t) => e.code === "Space" || e.code === "Enter" || e.key === " " || e.key === "Spacebar" || e.key === "Enter" || e.keyCode === 13 || e.keyCode === 32 ? t === void 0 ? !Yn(e.target) : !t : !1;
4569
+ }, $n = (e, t) => e.code === "Space" || e.code === "Enter" || e.key === " " || e.key === "Spacebar" || e.key === "Enter" || e.keyCode === 13 || e.keyCode === 32 ? t === void 0 ? !Qn(e.target) : !t : !1;
4472
4570
  //#endregion
4473
4571
  //#region src/functions/isFloat.ts
4474
- function Zn(e) {
4572
+ function er(e) {
4475
4573
  switch (typeof e) {
4476
4574
  case "number": return !0;
4477
4575
  case "string": return /^-?\d+(\.\d+)?$/.test(e);
@@ -4480,18 +4578,18 @@ function Zn(e) {
4480
4578
  }
4481
4579
  //#endregion
4482
4580
  //#region src/functions/isIntegerBetween.ts
4483
- function Qn(e, t) {
4581
+ function tr(e, t) {
4484
4582
  let n = Math.floor(t);
4485
4583
  return e >= n && e < n + 1;
4486
4584
  }
4487
4585
  //#endregion
4488
4586
  //#region src/functions/isSelectedByList.ts
4489
- function $n(e, t) {
4490
- return Array.isArray(e) ? e.every((e) => y(e, t)) : y(e, t);
4587
+ function nr(e, t) {
4588
+ return Array.isArray(e) ? e.every((e) => b(e, t)) : b(e, t);
4491
4589
  }
4492
4590
  //#endregion
4493
4591
  //#region src/functions/removeCommonPrefix.ts
4494
- function er(e, t) {
4592
+ function rr(e, t) {
4495
4593
  if (e.startsWith(t)) return e.slice(t.length).trim();
4496
4594
  let n = 0;
4497
4595
  for (; e[n] === t[n] && n < e.length && n < t.length;) n++;
@@ -4499,13 +4597,13 @@ function er(e, t) {
4499
4597
  }
4500
4598
  //#endregion
4501
4599
  //#region src/functions/replaceComponentName.ts
4502
- var tr = (e, t, n) => {
4600
+ var ir = (e, t, n) => {
4503
4601
  var r;
4504
4602
  return e == null || (r = e.replace(RegExp(`<${t}`, "ig"), `<${n}`)) == null || (r = r.replace(RegExp(`</${t}`, "ig"), `</${n}`)) == null ? void 0 : r.trim();
4505
4603
  };
4506
4604
  //#endregion
4507
4605
  //#region src/functions/uniqueArray.ts
4508
- function nr(e) {
4606
+ function ar(e) {
4509
4607
  return [...new Set(e)];
4510
4608
  }
4511
4609
  //#endregion
@@ -4514,21 +4612,21 @@ function $(e, n, i = !0) {
4514
4612
  let a = Z(e);
4515
4613
  return t(e) && t(n) && r(n, (n, r) => {
4516
4614
  let o = e == null ? void 0 : e[r];
4517
- t(o) && t(n) ? i && Array.isArray(o) && Array.isArray(n) ? a[r] = Z(nr([...o, ...n])) : a[r] = $(Array.isArray(o) ? { ...o } : o, n, i) : a[r] = t(n) ? Z(n) : n;
4615
+ t(o) && t(n) ? i && Array.isArray(o) && Array.isArray(n) ? a[r] = Z(ar([...o, ...n])) : a[r] = $(Array.isArray(o) ? { ...o } : o, n, i) : a[r] = t(n) ? Z(n) : n;
4518
4616
  }), a;
4519
4617
  }
4520
4618
  //#endregion
4521
4619
  //#region src/functions/replaceTemplate.ts
4522
- function rr(e, t) {
4620
+ function or(e, t) {
4523
4621
  let n = e;
4524
4622
  return r(t, (e, t) => {
4525
- n = n.replace(Pt(`[${t}]`), x(e));
4623
+ n = n.replace(Lt(`[${t}]`), S(e));
4526
4624
  }), n;
4527
4625
  }
4528
4626
  //#endregion
4529
4627
  //#region src/functions/secondToTime.ts
4530
- function ir(e, t) {
4531
- let n = v(e);
4628
+ function sr(e, t) {
4629
+ let n = y(e);
4532
4630
  if (n > 0) {
4533
4631
  let e = String(Math.floor(n / 60)).padStart(2, "0"), r = String(n % 60).padStart(2, "0");
4534
4632
  return t && Number(e) >= 60 ? `${String(Math.floor(Number(e) / 60)).padStart(2, "0")}:${String(Number(e) % 60).padStart(2, "0")}:${r}` : `${e}:${r}`;
@@ -4537,7 +4635,7 @@ function ir(e, t) {
4537
4635
  }
4538
4636
  //#endregion
4539
4637
  //#region src/functions/setValues.ts
4540
- function ar(e, t, { multiple: n = !1, maxlength: r = 0, alwaysChange: a = !0, notEmpty: o = !1 }) {
4638
+ function cr(e, t, { multiple: n = !1, maxlength: r = 0, alwaysChange: a = !0, notEmpty: o = !1 }) {
4541
4639
  if (n) {
4542
4640
  if (i(e)) {
4543
4641
  let n = e.indexOf(t), i = [...e];
@@ -4549,7 +4647,7 @@ function ar(e, t, { multiple: n = !1, maxlength: r = 0, alwaysChange: a = !0, no
4549
4647
  }
4550
4648
  //#endregion
4551
4649
  //#region src/functions/splice.ts
4552
- function or(e, n, i) {
4650
+ function lr(e, n, i) {
4553
4651
  if (t(e) && t(n)) {
4554
4652
  if (i) {
4555
4653
  let a = {}, o = !1;
@@ -4563,34 +4661,34 @@ function or(e, n, i) {
4563
4661
  }
4564
4662
  //#endregion
4565
4663
  //#region src/functions/toCamelCaseFirst.ts
4566
- function sr(e) {
4567
- return H(e).replace(/^([a-z])/, (e) => `${e.toUpperCase()}`);
4664
+ function ur(e) {
4665
+ return it(e).replace(/^([a-z])/, (e) => `${e.toUpperCase()}`);
4568
4666
  }
4569
4667
  //#endregion
4570
4668
  //#region src/functions/toKebabCase.ts
4571
- function cr(e) {
4669
+ function dr(e) {
4572
4670
  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());
4573
4671
  }
4574
4672
  //#endregion
4575
4673
  //#region src/functions/toNumberByMax.ts
4576
- function lr(e, t, n, r) {
4577
- let i = v(e), a = v(t);
4578
- return t && a < i ? `${ur(a, n, r)}+` : ur(i, n, r);
4674
+ function fr(e, t, n, r) {
4675
+ let i = y(e), a = y(t);
4676
+ return t && a < i ? `${pr(a, n, r)}+` : pr(i, n, r);
4579
4677
  }
4580
- var ur = (e, t, n) => t ? new R(n).number(e) : e;
4678
+ var pr = (e, t, n) => t ? new R(n).number(e) : e;
4581
4679
  //#endregion
4582
4680
  //#region src/functions/toPercent.ts
4583
- function dr(e, t) {
4681
+ function mr(e, t) {
4584
4682
  return e === 0 ? t : 1 / e * t;
4585
4683
  }
4586
4684
  //#endregion
4587
4685
  //#region src/functions/toPercentBy100.ts
4588
- function fr(e, t) {
4589
- return dr(e, t) * 100;
4686
+ function hr(e, t) {
4687
+ return mr(e, t) * 100;
4590
4688
  }
4591
4689
  //#endregion
4592
4690
  //#region src/functions/uint8ArrayToBase64.ts
4593
- function pr(e) {
4691
+ function gr(e) {
4594
4692
  let t = "";
4595
4693
  for (let n of e) t += String.fromCharCode(n);
4596
4694
  if (s()) return window.btoa(t);
@@ -4602,7 +4700,7 @@ function pr(e) {
4602
4700
  }
4603
4701
  //#endregion
4604
4702
  //#region src/functions/writeClipboardData.ts
4605
- async function mr(e) {
4703
+ async function _r(e) {
4606
4704
  if (s()) try {
4607
4705
  await navigator.clipboard.writeText(e);
4608
4706
  } catch (n) {
@@ -4611,4 +4709,4 @@ async function mr(e) {
4611
4709
  }
4612
4710
  }
4613
4711
  //#endregion
4614
- export { P as Api, M as ApiCache, Ae as ApiDataReturn, je as ApiDefault, Me as ApiHeaders, Pe as ApiHydration, ze as ApiInstance, N as ApiMethodItem, Fe as ApiPreparation, Re as ApiResponse, Oe as ApiStatus, Be as BroadcastMessage, Ue as Cache, He as CacheItem, We as CacheStatic, Qe as Cookie, Ye as CookieBlock, Je as CookieBlockInstance, I as CookieStorage, E as DataStorage, et as Datetime, w as ErrorCenter, ue as ErrorCenterHandler, de as ErrorCenterInstance, Ce as EventItem, tt as Formatters, U as FormattersType, nt as GEO_FLAG_ICON_NAME, D as Geo, rt as GeoFlag, be as GeoInstance, R as GeoIntl, it as GeoPhone, at as Global, st as Hash, ot as HashInstance, ut as Icons, j as Loading, Te as LoadingInstance, Ct as Meta, K as MetaManager, xt as MetaOg, vt as MetaOpenGraphAge, gt as MetaOpenGraphAvailability, _t as MetaOpenGraphCondition, yt as MetaOpenGraphGender, J as MetaOpenGraphTag, ht as MetaOpenGraphType, mt as MetaRobots, wt as MetaStatic, q as MetaTag, St as MetaTwitter, bt as MetaTwitterCard, Y as MetaTwitterTag, Tt as ResumableTimer, Et as ScrollbarWidth, zt as SearchList, Mt as SearchListData, Nt as SearchListItem, Lt as SearchListMatcher, Rt as SearchListOptions, T as ServerStorage, Vt as StorageCallback, Kt as TRANSLATE_GLOBAL_PREFIX, qt as TRANSLATE_TIME_OUT, Xt as Translate, Jt as TranslateFile, Yt as TranslateInstance, jt as addTagHighlightMatch, F as anyToString, Wt as applyTemplate, Zt as arrFill, nn as blobToBase64, rn as capitalize, Z as copyObject, an as copyObjectLite, W as createElement, on as domQuerySelector, sn as domQuerySelectorAll, G as encodeAttribute, oe as encodeLiteAttribute, dn as ensureMaxSize, X as escapeExp, fn as eventStopPropagation, x as executeFunction, Ie as executePromise, r as forEach, pn as frame, mn as getArrayHighlightMatch, hn as getAttributes, gn as getClipboardData, $e as getColumn, _n as getCurrentDate, vn as getCurrentTime, k as getElement, bn as getElementId, cn as getElementImage, dt as getElementItem, xe as getElementOrWindow, pe as getElementSafeScript, Ft as getExactSearchExp, Pt as getExp, Sn as getFirst, me as getHydrationData, V as getItemByPath, Cn as getKey, wn as getLengthOfAllArray, Tn as getMaxLengthAllArray, En as getMinLengthAllArray, kn as getMouseClient, Dn as getMouseClientX, On as getMouseClientY, An as getObjectByKeys, jn as getObjectNoUndefined, Mn as getObjectOrNone, Nn as getOnlyText, Fn as getRandomText, o as getRequestString, It as getSearchExp, Dt as getSeparatingSearchExp, In as getStepPercent, Ln as getStepValue, zn as goScroll, Bn as goScrollSmooth, Vn as goScrollTo, Un as handleShare, Wn as inArray, xn as initGetElementId, Gn as initScrollbarOffset, Kn as intersectKey, Gt as isApiSuccess, i as isArray, qn as isDifferent, se as isDomData, s as isDomRuntime, Jn as isElementVisible, Xn as isEnter, l as isFilled, Zn as isFloat, b as isFunction, Se as isInDom, Yn as isInput, Qn as isIntegerBetween, c as isNull, m as isNumber, t as isObject, n as isObjectNotArray, u as isOnLine, y as isSelected, $n as isSelectedByList, Hn as isShare, d as isString, O as isWindow, f as random, er as removeCommonPrefix, tr as replaceComponentName, $ as replaceRecursive, rr as replaceTemplate, un as resizeImageByMax, ir as secondToTime, ft as setElementItem, ar as setValues, ee as sleep, or as splice, Pn as strFill, Ge as strSplit, A as toArray, H as toCamelCase, sr as toCamelCaseFirst, L as toDate, cr as toKebabCase, v as toNumber, lr as toNumberByMax, dr as toPercent, fr as toPercentBy100, a as toString, Ke as transformation, pr as uint8ArrayToBase64, nr as uniqueArray, mr as writeClipboardData };
4712
+ export { P as Api, M as ApiCache, Ae as ApiDataReturn, je as ApiDefault, Pe as ApiError, Me as ApiErrorItem, Ne as ApiErrorStorage, Fe as ApiHeaders, Le as ApiHydration, He as ApiInstance, N as ApiMethodItem, Re as ApiPreparation, Ve as ApiResponse, Oe as ApiStatus, Ue as BroadcastMessage, Ke as Cache, Ge as CacheItem, qe as CacheStatic, tt as Cookie, Qe as CookieBlock, Ze as CookieBlockInstance, I as CookieStorage, D as DataStorage, rt as Datetime, T as ErrorCenter, le as ErrorCenterHandler, ue as ErrorCenterInstance, Ce as EventItem, at as Formatters, H as FormattersType, ot as GEO_FLAG_ICON_NAME, O as Geo, st as GeoFlag, ye as GeoInstance, R as GeoIntl, ct as GeoPhone, lt as Global, dt as Hash, ut as HashInstance, mt as Icons, j as Loading, Te as LoadingInstance, Dt as Meta, G as MetaManager, Tt as MetaOg, St as MetaOpenGraphAge, bt as MetaOpenGraphAvailability, xt as MetaOpenGraphCondition, Ct as MetaOpenGraphGender, q as MetaOpenGraphTag, yt as MetaOpenGraphType, vt as MetaRobots, Ot as MetaStatic, K as MetaTag, Et as MetaTwitter, wt as MetaTwitterCard, J as MetaTwitterTag, kt as ResumableTimer, At as ScrollbarWidth, Ht as SearchList, Ft as SearchListData, It as SearchListItem, Bt as SearchListMatcher, Vt as SearchListOptions, E as ServerStorage, Wt as StorageCallback, Yt as TRANSLATE_GLOBAL_PREFIX, Xt as TRANSLATE_TIME_OUT, $t as Translate, Zt as TranslateFile, Qt as TranslateInstance, Pt as addTagHighlightMatch, F as anyToString, qt as applyTemplate, en as arrFill, on as blobToBase64, sn as capitalize, Z as copyObject, cn as copyObjectLite, U as createElement, ln as domQuerySelector, un as domQuerySelectorAll, W as encodeAttribute, ae as encodeLiteAttribute, mn as ensureMaxSize, Y as escapeExp, hn as eventStopPropagation, S as executeFunction, ze as executePromise, r as forEach, gn as frame, _n as getArrayHighlightMatch, vn as getAttributes, yn as getClipboardData, nt as getColumn, bn as getCurrentDate, xn as getCurrentTime, k as getElement, Cn as getElementId, dn as getElementImage, ht as getElementItem, xe as getElementOrWindow, fe as getElementSafeScript, Rt as getExactSearchExp, Lt as getExp, Tn as getFirst, pe as getHydrationData, V as getItemByPath, En as getKey, Dn as getLengthOfAllArray, On as getMaxLengthAllArray, kn as getMinLengthAllArray, Mn as getMouseClient, An as getMouseClientX, jn as getMouseClientY, Nn as getObjectByKeys, Pn as getObjectNoUndefined, Fn as getObjectOrNone, In as getOnlyText, Rn as getRandomText, o as getRequestString, zt as getSearchExp, jt as getSeparatingSearchExp, zn as getStepPercent, Bn as getStepValue, Hn as goScroll, Un as goScrollSmooth, Wn as goScrollTo, Kn as handleShare, qn as inArray, wn as initGetElementId, Jn as initScrollbarOffset, Yn as intersectKey, Jt as isApiSuccess, i as isArray, Xn as isDifferent, oe as isDomData, s as isDomRuntime, Zn as isElementVisible, $n as isEnter, l as isFilled, er as isFloat, x as isFunction, Se as isInDom, Qn as isInput, tr as isIntegerBetween, c as isNull, p as isNumber, t as isObject, n as isObjectNotArray, u as isOnLine, b as isSelected, nr as isSelectedByList, Gn as isShare, d as isString, be as isWindow, f as random, rr as removeCommonPrefix, ir as replaceComponentName, $ as replaceRecursive, or as replaceTemplate, pn as resizeImageByMax, sr as secondToTime, gt as setElementItem, cr as setValues, ee as sleep, lr as splice, Ln as strFill, Je as strSplit, A as toArray, it as toCamelCase, ur as toCamelCaseFirst, L as toDate, dr as toKebabCase, y as toNumber, fr as toNumberByMax, mr as toPercent, hr as toPercentBy100, a as toString, Ye as transformation, gr as uint8ArrayToBase64, ar as uniqueArray, _r as writeClipboardData };