@dxtmisha/functional-basic 1.2.3 → 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 this.value;
1132
+ return S(this.value);
1128
1133
  }
1129
1134
  request(e) {
1130
1135
  let t = this.get();
@@ -1146,24 +1151,111 @@ 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 = { ...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") {
1158
1251
  return e instanceof FormData ? this.get(t, null) : this.get(t, n);
1159
1252
  }
1160
1253
  set(e) {
1161
- let t = x(e);
1162
- return n(t) && (this.headers = t), this;
1254
+ return this.headers = e, this;
1163
1255
  }
1164
- }, Ne = "__ui:api:hydration:id__", Pe = class {
1256
+ }, Ie = "__ui:api:hydration:id__", Le = class {
1165
1257
  constructor() {
1166
- C(this, "list", []);
1258
+ w(this, "list", []);
1167
1259
  }
1168
1260
  initResponse(e) {
1169
1261
  s() && e.add(this.getListByClient());
@@ -1178,14 +1270,14 @@ var Oe = class {
1178
1270
  });
1179
1271
  }
1180
1272
  toString() {
1181
- return pe(Ne, this.list);
1273
+ return fe(Ie, this.list);
1182
1274
  }
1183
1275
  getListByClient() {
1184
- return me(Ne, []);
1276
+ return pe(Ie, []);
1185
1277
  }
1186
- }, Fe = class {
1278
+ }, Re = class {
1187
1279
  constructor() {
1188
- 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);
1189
1281
  }
1190
1282
  async make(e, t) {
1191
1283
  if (e && this.callback) return this.go(t);
@@ -1211,15 +1303,15 @@ var Oe = class {
1211
1303
  };
1212
1304
  //#endregion
1213
1305
  //#region src/functions/executePromise.ts
1214
- async function Ie(e, ...t) {
1215
- let n = x(e, ...t);
1306
+ async function ze(e, ...t) {
1307
+ let n = S(e, ...t);
1216
1308
  return n instanceof Promise ? await n : n;
1217
1309
  }
1218
1310
  //#endregion
1219
1311
  //#region src/classes/ApiResponse.ts
1220
- var Le = "d-response-loading", Re = class {
1312
+ var Be = "d-response-loading", Ve = class {
1221
1313
  constructor(e) {
1222
- 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;
1223
1315
  }
1224
1316
  get(e = "", t, n, r) {
1225
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);
@@ -1245,7 +1337,7 @@ var Le = "d-response-loading", Re = class {
1245
1337
  if (t) return this.fetchAsync(t.response);
1246
1338
  }
1247
1339
  isDisable(e) {
1248
- return !!x(e == null ? void 0 : e.disable);
1340
+ return !!S(e == null ? void 0 : e.disable);
1249
1341
  }
1250
1342
  isPath(e, t) {
1251
1343
  return t === e.path || !!(e.path instanceof RegExp && e.path.test(t));
@@ -1273,7 +1365,7 @@ var Le = "d-response-loading", Re = class {
1273
1365
  }
1274
1366
  fetch(e, t) {
1275
1367
  return this.startResponseLoading(), new Promise((n) => {
1276
- Ie(b(e.response) ? e.response(t) : e.response).then((t) => {
1368
+ ze(x(e.response) ? e.response(t) : e.response).then((t) => {
1277
1369
  e != null && e.lag ? (j.show(), setTimeout(() => {
1278
1370
  this.stopResponseLoading(), n(t), j.hide();
1279
1371
  }, f(0, 2e3))) : (this.stopResponseLoading(), n(t));
@@ -1284,17 +1376,17 @@ var Le = "d-response-loading", Re = class {
1284
1376
  return e.response;
1285
1377
  }
1286
1378
  startResponseLoading() {
1287
- this.loading && clearTimeout(this.loading), s() && document.body.classList.add(Le);
1379
+ this.loading && clearTimeout(this.loading), s() && document.body.classList.add(Be);
1288
1380
  }
1289
1381
  stopResponseLoading() {
1290
1382
  s() && (this.loading = setTimeout(() => {
1291
- this.loading = void 0, document.body.classList.remove(Le);
1383
+ this.loading = void 0, document.body.classList.remove(Be);
1292
1384
  }, 2400));
1293
1385
  }
1294
- }, ze = class {
1386
+ }, He = class {
1295
1387
  constructor(e = "/api/", t = {}) {
1296
- 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;
1297
- 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;
1298
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);
1299
1391
  }
1300
1392
  isLocalhost() {
@@ -1313,7 +1405,7 @@ var Le = "d-response-loading", Re = class {
1313
1405
  return this.origin && /^\//.test(this.url) ? `${this.origin}${this.url}` : this.url;
1314
1406
  }
1315
1407
  getUrl(e, t = !0) {
1316
- 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());
1317
1409
  }
1318
1410
  getBody(e = {}, t = N.get) {
1319
1411
  if (e instanceof FormData) return e;
@@ -1387,25 +1479,29 @@ var Le = "d-response-loading", Re = class {
1387
1479
  return f(t, t + e * t);
1388
1480
  }
1389
1481
  async fetch(e, t = 0) {
1390
- 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);
1391
- if (f) return f;
1392
- let p = await M.getByFetch(e);
1393
- if (p) return this.hydration.toClient(e, p), p;
1394
- let m = new Oe(), h;
1395
- 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();
1396
1488
  try {
1397
- await this.preparation.make(c, e);
1398
- let { query: n, timeoutId: r } = await this.makeQuery(e, d);
1399
- r && clearTimeout(r);
1400
- let f = await this.preparation.makeEnd(l, n, e);
1401
- 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);
1402
- 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();
1403
1499
  } catch (e) {
1404
- 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;
1405
1501
  }
1406
- m.setLastResponse(h.getData()), this.status.setLastResponse(h.getData());
1407
- let g = h.getAndStatus(m);
1408
- 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;
1409
1505
  }
1410
1506
  async makeQuery(e, t) {
1411
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 = {
@@ -1448,7 +1544,8 @@ var Le = "d-response-loading", Re = class {
1448
1544
  }
1449
1545
  }
1450
1546
  makeErrorQuery(e) {
1451
- 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) {
1452
1549
  case 401:
1453
1550
  this.errorCenter.on({
1454
1551
  group: "api",
@@ -1479,7 +1576,7 @@ var Le = "d-response-loading", Re = class {
1479
1576
  break;
1480
1577
  default: this.errorCenter.on({
1481
1578
  group: "api-server",
1482
- code: String(e.status),
1579
+ code: String(n),
1483
1580
  details: e
1484
1581
  });
1485
1582
  }
@@ -1506,7 +1603,7 @@ var Le = "d-response-loading", Re = class {
1506
1603
  return this.getItem().isLocalhost();
1507
1604
  }
1508
1605
  static getItem() {
1509
- return T.get("__ui:api-instance__", () => new ze());
1606
+ return E.get("__ui:api-instance__", () => new He());
1510
1607
  }
1511
1608
  static getStatus() {
1512
1609
  return this.getItem().getStatus();
@@ -1574,16 +1671,16 @@ var Le = "d-response-loading", Re = class {
1574
1671
  static delete(e) {
1575
1672
  return this.getItem().delete(e);
1576
1673
  }
1577
- }, Be = class {
1578
- constructor(e, t, n, r = w.getItem()) {
1579
- 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) => {
1580
1677
  var t;
1581
1678
  return (t = this.callback) == null || t.call(this, e), this;
1582
- }), C(this, "updateError", (e) => {
1679
+ }), w(this, "updateError", (e) => {
1583
1680
  var t;
1584
1681
  return (t = this.callbackError) == null || t.call(this, e), this;
1585
1682
  }), this.callback = t, this.callbackError = n, s()) try {
1586
- 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;
1587
1684
  } catch (e) {
1588
1685
  r.on({
1589
1686
  group: "broadcast",
@@ -1609,9 +1706,9 @@ var Le = "d-response-loading", Re = class {
1609
1706
  var e;
1610
1707
  return (e = this.channel) == null || e.close(), this.channel = void 0, this;
1611
1708
  }
1612
- }, 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 {
1613
1710
  constructor(e) {
1614
- 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;
1615
1712
  }
1616
1713
  getCache(e) {
1617
1714
  return this.isUpdate(e) && (this.cacheOld = this.cache, this.setCache()), this.cache;
@@ -1631,9 +1728,9 @@ var Le = "d-response-loading", Re = class {
1631
1728
  isUpdate(e) {
1632
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;
1633
1730
  }
1634
- }, Ue = class {
1731
+ }, Ke = class {
1635
1732
  constructor() {
1636
- C(this, "cache", {});
1733
+ w(this, "cache", {});
1637
1734
  }
1638
1735
  get(e, t, n) {
1639
1736
  return this.getCacheItem(e, t).getCache(n == null ? [] : n);
@@ -1642,11 +1739,11 @@ var Le = "d-response-loading", Re = class {
1642
1739
  return await this.getCacheItem(e, t).getCacheAsync(n == null ? [] : n);
1643
1740
  }
1644
1741
  getCacheItem(e, t) {
1645
- 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];
1646
1743
  }
1647
- }, We = class {
1744
+ }, qe = class {
1648
1745
  static getItem() {
1649
- return T.get("__ui:cache-static__", () => new Ue());
1746
+ return E.get("__ui:cache-static__", () => new Ke());
1650
1747
  }
1651
1748
  static get(e, t, n) {
1652
1749
  return this.getItem().get(e, t, n);
@@ -1671,7 +1768,7 @@ function F(e, n = !0, r = !0) {
1671
1768
  }
1672
1769
  //#endregion
1673
1770
  //#region src/functions/strSplit.ts
1674
- function Ge(e, t, n) {
1771
+ function Je(e, t, n) {
1675
1772
  let r = F(e);
1676
1773
  if (!n || n <= 0) return r.split(t);
1677
1774
  let i = r.split(t, n), a = r.split(t);
@@ -1679,7 +1776,7 @@ function Ge(e, t, n) {
1679
1776
  }
1680
1777
  //#endregion
1681
1778
  //#region src/functions/transformation.ts
1682
- function Ke(e, t = !1) {
1779
+ function Ye(e, t = !1) {
1683
1780
  if (typeof e == "string") {
1684
1781
  let r = e.trim();
1685
1782
  switch (r) {
@@ -1692,7 +1789,7 @@ function Ke(e, t = !1) {
1692
1789
  if (/^[{[]/.exec(r)) try {
1693
1790
  return JSON.parse(r);
1694
1791
  } catch (e) {
1695
- w.on({
1792
+ T.on({
1696
1793
  group: "transformation",
1697
1794
  code: "error",
1698
1795
  details: e
@@ -1707,9 +1804,9 @@ function Ke(e, t = !1) {
1707
1804
  }
1708
1805
  //#endregion
1709
1806
  //#region src/classes/CookieBlockInstance.ts
1710
- var qe = "__ui:cookie-block__", Je = class {
1807
+ var Xe = "__ui:cookie-block__", Ze = class {
1711
1808
  constructor() {
1712
- C(this, "storage", new E(qe));
1809
+ w(this, "storage", new D(Xe));
1713
1810
  }
1714
1811
  get() {
1715
1812
  var e;
@@ -1718,9 +1815,9 @@ var qe = "__ui:cookie-block__", Je = class {
1718
1815
  set(e) {
1719
1816
  this.storage.set(e);
1720
1817
  }
1721
- }, Ye = class {
1818
+ }, Qe = class {
1722
1819
  static getItem() {
1723
- return T.get("__ui:cookie-block__", () => new Je());
1820
+ return E.get("__ui:cookie-block__", () => new Ze());
1724
1821
  }
1725
1822
  static get() {
1726
1823
  return this.getItem().get();
@@ -1728,7 +1825,7 @@ var qe = "__ui:cookie-block__", Je = class {
1728
1825
  static set(e) {
1729
1826
  this.getItem().set(e);
1730
1827
  }
1731
- }, Xe = "__ui:cookie-storage__", I = class {
1828
+ }, $e = "__ui:cookie-storage__", I = class {
1732
1829
  static init(e, t, n) {
1733
1830
  this.getListener = e, this.getListenerRaw = t, this.setListener = n;
1734
1831
  }
@@ -1738,11 +1835,11 @@ var qe = "__ui:cookie-block__", Je = class {
1738
1835
  static get(e, t) {
1739
1836
  var n, r;
1740
1837
  let i = (n = (r = this.getListener) == null ? void 0 : r.call(this, e)) == null ? this.initItems()[e] : n;
1741
- 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);
1742
1839
  }
1743
1840
  static set(e, t, n) {
1744
- let r = x(t);
1745
- if (Ye.get()) return r;
1841
+ let r = S(t);
1842
+ if (Qe.get()) return r;
1746
1843
  let i = F(r, !1);
1747
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;
1748
1845
  }
@@ -1750,7 +1847,7 @@ var qe = "__ui:cookie-block__", Je = class {
1750
1847
  this.set(e, "", { age: -1 });
1751
1848
  }
1752
1849
  static update() {
1753
- s() && (T.remove(Xe), this.initItems());
1850
+ s() && (E.remove($e), this.initItems());
1754
1851
  }
1755
1852
  static format(e, t, n) {
1756
1853
  return [
@@ -1766,18 +1863,18 @@ var qe = "__ui:cookie-block__", Je = class {
1766
1863
  ].filter(Boolean).join("; ");
1767
1864
  }
1768
1865
  static hasDom() {
1769
- return s() && !se();
1866
+ return s() && !oe();
1770
1867
  }
1771
1868
  static parse(e) {
1772
1869
  let t = {};
1773
1870
  for (let n of e.split(";")) {
1774
- let [e, r] = Ge(n.trim(), "=", 2);
1871
+ let [e, r] = Je(n.trim(), "=", 2);
1775
1872
  e && l(r) && (t[e] = r);
1776
1873
  }
1777
1874
  return t;
1778
1875
  }
1779
1876
  static initItems() {
1780
- return T.get(Xe, () => {
1877
+ return E.get($e, () => {
1781
1878
  var e;
1782
1879
  if (this.hasDom()) return this.parse(document.cookie);
1783
1880
  let t = (e = this.getListenerRaw) == null ? void 0 : e.call(this);
@@ -1809,17 +1906,17 @@ var qe = "__ui:cookie-block__", Je = class {
1809
1906
  return e === void 0 ? [] : Array.isArray(e) ? e : Object.entries(e).map(([e, t]) => `${e}=${F(t)}`);
1810
1907
  }
1811
1908
  };
1812
- 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);
1813
1910
  //#endregion
1814
1911
  //#region src/classes/Cookie.ts
1815
- var Ze = () => T.get("__ui:cookie-items__", () => ({})), Qe = class e {
1912
+ var et = () => E.get("__ui:cookie-items__", () => ({})), tt = class e {
1816
1913
  static getInstance(t) {
1817
1914
  var n, r;
1818
- 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;
1819
1916
  }
1820
1917
  constructor(e) {
1821
- C(this, "name", void 0), C(this, "value", void 0), C(this, "options", {}), this.name = e;
1822
- let t = Ze();
1918
+ w(this, "name", void 0), w(this, "value", void 0), w(this, "options", {}), this.name = e;
1919
+ let t = et();
1823
1920
  if (e in t) return t[e];
1824
1921
  this.value = I.get(this.name), t[e] = this;
1825
1922
  }
@@ -1827,7 +1924,7 @@ var Ze = () => T.get("__ui:cookie-items__", () => ({})), Qe = class e {
1827
1924
  return this.value === void 0 && e && this.set(e, t), this.value;
1828
1925
  }
1829
1926
  set(e, t) {
1830
- this.value = x(e), Object.assign(this.options, t), this.update();
1927
+ this.value = S(e), Object.assign(this.options, t), this.update();
1831
1928
  }
1832
1929
  remove() {
1833
1930
  this.set("");
@@ -1843,33 +1940,33 @@ function L(e) {
1843
1940
  if (e instanceof Date) return e;
1844
1941
  if (c(e)) return /* @__PURE__ */ new Date();
1845
1942
  if (typeof e == "number") return new Date(e);
1846
- let u = e, d = D.getTimezoneFormat().trim();
1943
+ let u = e, d = O.getTimezoneFormat().trim();
1847
1944
  e.replace(/^([\s\S]+)([-+]\d{2}:?\d{2})$/, (e, t, n) => (u = t, d = n.trim(), e));
1848
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;
1849
1946
  return /* @__PURE__ */ new Date(`${f.trim()}${d}`);
1850
1947
  }
1851
1948
  //#endregion
1852
1949
  //#region src/functions/getColumn.ts
1853
- function $e(e, t) {
1950
+ function nt(e, t) {
1854
1951
  return r(e, (e) => e == null ? void 0 : e[t], !0);
1855
1952
  }
1856
1953
  //#endregion
1857
1954
  //#region src/classes/GeoIntl.ts
1858
1955
  var R = class e {
1859
- static isItem(e = D.getLocation()) {
1956
+ static isItem(e = O.getLocation()) {
1860
1957
  return this.getLocation(e) in B;
1861
1958
  }
1862
- static getLocation(e = D.getLocation()) {
1959
+ static getLocation(e = O.getLocation()) {
1863
1960
  if (e in z) return z[e];
1864
- let t = D.find(e);
1961
+ let t = O.find(e);
1865
1962
  return z[e] = t.standard, t.standard;
1866
1963
  }
1867
- static getInstance(t = D.getLocation()) {
1964
+ static getInstance(t = O.getLocation()) {
1868
1965
  let n = this.getLocation(t);
1869
1966
  return n in B ? B[n] : new e(t);
1870
1967
  }
1871
- constructor(e = D.getLocation(), t = w.getItem()) {
1872
- 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);
1873
1970
  let n = this.getLocation();
1874
1971
  if (n in B) return B[n];
1875
1972
  z[e] = n, B[n] = this;
@@ -1903,7 +2000,7 @@ var R = class e {
1903
2000
  type: "language",
1904
2001
  style: t
1905
2002
  };
1906
- return this.display(D.getByCode(e).language, n);
2003
+ return this.display(O.getByCode(e).language, n);
1907
2004
  }
1908
2005
  countryName(e, t) {
1909
2006
  let n = {
@@ -1933,7 +2030,7 @@ var R = class e {
1933
2030
  }
1934
2031
  number(e, t) {
1935
2032
  var n, r;
1936
- 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();
1937
2034
  }
1938
2035
  decimal() {
1939
2036
  var e, t, n;
@@ -1947,7 +2044,7 @@ var R = class e {
1947
2044
  }, i = e.toString().replace(/^([\S\s]+[\d ])([a-zA-Z]{3})$/i, (...e) => (r.currency = String(e[2]).toUpperCase(), String(e[1])));
1948
2045
  if (n) {
1949
2046
  let t = this.numberObject(r);
1950
- 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();
1951
2048
  } else if ("currency" in r) return this.number(typeof e == "number" ? e : i, r);
1952
2049
  else return this.number(typeof e == "number" ? e : i, {
1953
2050
  ...r,
@@ -1970,7 +2067,7 @@ var R = class e {
1970
2067
  return this.number(r, n);
1971
2068
  }
1972
2069
  sizeFile(e, t = "byte") {
1973
- let n = v(e);
2070
+ let n = y(e);
1974
2071
  if (n > 1024 && d(t)) switch (t) {
1975
2072
  case "byte": return this.sizeFile(n / 1024, "kilobyte");
1976
2073
  case "kilobyte": return this.sizeFile(n / 1024, "megabyte");
@@ -1987,11 +2084,11 @@ var R = class e {
1987
2084
  });
1988
2085
  }
1989
2086
  percentBy100(e, t) {
1990
- return this.percent(v(e) / 100, t);
2087
+ return this.percent(y(e) / 100, t);
1991
2088
  }
1992
2089
  plural(e, t, n, r) {
1993
2090
  var i;
1994
- let a = v(e), o = t.split("|");
2091
+ let a = y(e), o = t.split("|");
1995
2092
  if (o.length > 1) try {
1996
2093
  if (typeof Intl < "u") {
1997
2094
  var s;
@@ -2048,7 +2145,7 @@ var R = class e {
2048
2145
  ...typeof n == "string" ? { style: n } : n || {}
2049
2146
  };
2050
2147
  try {
2051
- 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);
2052
2149
  } catch (e) {
2053
2150
  this.errorCenter.on({
2054
2151
  group: "intl",
@@ -2196,9 +2293,9 @@ var R = class e {
2196
2293
  "second"
2197
2294
  ].indexOf(e) !== -1 && (n.second = "2-digit")), n;
2198
2295
  }
2199
- }, z = {}, B = {}, et = class e {
2200
- constructor(e, t = "date", n = D.getLocation()) {
2201
- 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({
2202
2299
  group: "intl",
2203
2300
  code: "invalid"
2204
2301
  });
@@ -2462,21 +2559,21 @@ var R = class e {
2462
2559
  function V(e, n) {
2463
2560
  var r;
2464
2561
  if (!l(n, !0)) return;
2465
- let i = Ge(n, ".", 2), a = i[0];
2562
+ let i = Je(n, ".", 2), a = i[0];
2466
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;
2467
2564
  }
2468
2565
  //#endregion
2469
2566
  //#region src/functions/toCamelCase.ts
2470
- function H(e) {
2567
+ function it(e) {
2471
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()}`);
2472
2569
  }
2473
2570
  //#endregion
2474
2571
  //#region src/types/formattersTypes.ts
2475
- var U = /* @__PURE__ */ function(e) {
2572
+ var H = /* @__PURE__ */ function(e) {
2476
2573
  return e.currency = "currency", e.date = "date", e.name = "name", e.number = "number", e.plural = "plural", e.unit = "unit", e;
2477
- }({}), tt = class {
2574
+ }({}), at = class {
2478
2575
  constructor(e, t) {
2479
- 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;
2480
2577
  }
2481
2578
  is() {
2482
2579
  return !!this.list;
@@ -2506,18 +2603,18 @@ var U = /* @__PURE__ */ function(e) {
2506
2603
  getFormatData(e) {
2507
2604
  let t = {};
2508
2605
  return r(this.options, (n, r) => {
2509
- let i = `${H(r)}Format`, a = V(e, r);
2606
+ let i = `${it(r)}Format`, a = V(e, r);
2510
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);
2511
2608
  }), t;
2512
2609
  }
2513
2610
  transformation(e, t, n, r) {
2514
- if (l(e) || n === U.name) switch (n) {
2515
- case U.currency: return this.formatCurrency(e, t, r);
2516
- case U.date: return this.formatDate(e, r);
2517
- case U.name: return this.formatName(t, r);
2518
- case U.number: return this.formatNumber(e, r);
2519
- case U.plural: return this.formatPlural(e, r);
2520
- 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);
2521
2618
  default: return String(e);
2522
2619
  }
2523
2620
  return "";
@@ -2544,12 +2641,12 @@ var U = /* @__PURE__ */ function(e) {
2544
2641
  formatUnit(e, t) {
2545
2642
  return t && t.unit ? R.getInstance().unit(e, t.unit) : e;
2546
2643
  }
2547
- }, nt = "f", rt = class e {
2548
- constructor(e = D.getLocation()) {
2549
- 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;
2550
2647
  }
2551
2648
  get(t = this.code) {
2552
- let n = D.find(t);
2649
+ let n = O.find(t);
2553
2650
  if (n) {
2554
2651
  var r;
2555
2652
  let t = this.getCountry(n);
@@ -2597,7 +2694,7 @@ var U = /* @__PURE__ */ function(e) {
2597
2694
  return this.getLocation().countryName(e.country);
2598
2695
  }
2599
2696
  };
2600
- C(rt, "flags", {
2697
+ w(st, "flags", {
2601
2698
  AD: "f-ad",
2602
2699
  AE: "f-ae",
2603
2700
  AF: "f-af",
@@ -2842,7 +2939,7 @@ C(rt, "flags", {
2842
2939
  });
2843
2940
  //#endregion
2844
2941
  //#region src/classes/GeoPhone.ts
2845
- var it = class {
2942
+ var ct = class {
2846
2943
  static get(e) {
2847
2944
  return this.getList().find((t) => e === t.value);
2848
2945
  }
@@ -2898,7 +2995,7 @@ var it = class {
2898
2995
  return (t = (n = e.match(/\*/g)) == null ? void 0 : n.length) == null ? 0 : t;
2899
2996
  }
2900
2997
  static makeList() {
2901
- let e = r(D.getList(), (e) => {
2998
+ let e = r(O.getList(), (e) => {
2902
2999
  if (e != null && e.phoneMask) return {
2903
3000
  phone: (e == null ? void 0 : e.phoneCode) && Number(e.phoneCode.replace(/[^0-9]+/g, "")) || void 0,
2904
3001
  within: (e == null ? void 0 : e.phoneWithin) || 0,
@@ -2941,12 +3038,12 @@ var it = class {
2941
3038
  return e.replace(/\*/, this.getWithinSymbol(t));
2942
3039
  }
2943
3040
  };
2944
- C(it, "list", void 0), C(it, "map", void 0);
3041
+ w(ct, "list", void 0), w(ct, "map", void 0);
2945
3042
  //#endregion
2946
3043
  //#region src/classes/Global.ts
2947
- var at = class {
3044
+ var lt = class {
2948
3045
  static getItem() {
2949
- return T.get("__ui:global-instance__", () => ({}));
3046
+ return E.get("__ui:global-instance__", () => ({}));
2950
3047
  }
2951
3048
  static get(e) {
2952
3049
  var t;
@@ -2956,9 +3053,9 @@ var at = class {
2956
3053
  let t = this.getItem();
2957
3054
  Object.keys(t).length > 0 || Object.assign(t, e);
2958
3055
  }
2959
- }, ot = class {
3056
+ }, ut = class {
2960
3057
  constructor() {
2961
- 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);
2962
3059
  }
2963
3060
  get(e, t) {
2964
3061
  let n = this.getHash();
@@ -2966,7 +3063,7 @@ var at = class {
2966
3063
  }
2967
3064
  set(e, t) {
2968
3065
  var n;
2969
- let r = x(t);
3066
+ let r = S(t);
2970
3067
  return r !== ((n = this.hash) == null ? void 0 : n[e]) && (this.getHash()[e] = r, this.update()), this;
2971
3068
  }
2972
3069
  addWatch(e, t) {
@@ -2988,7 +3085,7 @@ var at = class {
2988
3085
  let e = {};
2989
3086
  if (s()) {
2990
3087
  let t = location.hash.matchAll(/([\w-]+)[:=]([^;]+)/gi);
2991
- for (let n of t) e[n[1]] = Ke(n[2]);
3088
+ for (let n of t) e[n[1]] = Ye(n[2]);
2992
3089
  }
2993
3090
  return e;
2994
3091
  }
@@ -3022,9 +3119,9 @@ var at = class {
3022
3119
  ((r = this.hash) == null ? void 0 : r[n]) !== (e == null ? void 0 : e[n]) && t.forEach((t) => t(e[n]));
3023
3120
  }), this;
3024
3121
  }
3025
- }, st = class {
3122
+ }, dt = class {
3026
3123
  static getItem() {
3027
- return T.get("__ui:hash-instance__", () => new ot());
3124
+ return E.get("__ui:hash-instance__", () => new ut());
3028
3125
  }
3029
3126
  static get(e, t) {
3030
3127
  return this.getItem().get(e, t);
@@ -3041,17 +3138,17 @@ var at = class {
3041
3138
  static reload() {
3042
3139
  this.getItem().reload();
3043
3140
  }
3044
- }, ct = 320, lt = "--LOAD--", ut = class {
3141
+ }, ft = 320, pt = "--LOAD--", mt = class {
3045
3142
  static is(e) {
3046
3143
  return e in this.icons || this.getName(e) in this.icons;
3047
3144
  }
3048
3145
  static async get(e, t = "", n = 1e3 * 60 * 3) {
3049
3146
  let r = this.getRaw(e, t);
3050
- 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;
3051
3148
  }
3052
3149
  static getAsync(e, t = "") {
3053
3150
  let n = this.getRaw(e, t);
3054
- return typeof n == "string" && n !== lt ? n : "";
3151
+ return typeof n == "string" && n !== pt ? n : "";
3055
3152
  }
3056
3153
  static getNameList() {
3057
3154
  return r(this.icons, (e, t) => t.replace(/^@/, ""));
@@ -3063,7 +3160,7 @@ var at = class {
3063
3160
  this.icons[this.getName(e)] = t;
3064
3161
  }
3065
3162
  static addLoad(e) {
3066
- this.icons[this.getName(e)] = lt;
3163
+ this.icons[this.getName(e)] = pt;
3067
3164
  }
3068
3165
  static addGlobal(e, t) {
3069
3166
  this.icons[this.getName(e)] = `${this.getUrlGlobal()}${t}`;
@@ -3085,27 +3182,27 @@ var at = class {
3085
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;
3086
3183
  }
3087
3184
  static wait() {
3088
- return new Promise((e) => setTimeout(() => e(), ct));
3185
+ return new Promise((e) => setTimeout(() => e(), ft));
3089
3186
  }
3090
3187
  };
3091
- C(ut, "icons", {}), C(ut, "url", "/icons/");
3188
+ w(mt, "icons", {}), w(mt, "url", "/icons/");
3092
3189
  //#endregion
3093
3190
  //#region src/functions/getElementItem.ts
3094
- function dt(e, t, n) {
3191
+ function ht(e, t, n) {
3095
3192
  var r, i;
3096
3193
  return (r = (i = k(e)) == null ? void 0 : i[t]) == null ? n : r;
3097
3194
  }
3098
3195
  //#endregion
3099
3196
  //#region src/functions/setElementItem.ts
3100
- function ft(e, n, i) {
3197
+ function gt(e, n, i) {
3101
3198
  let a = k(e);
3102
3199
  if (a) {
3103
- let e = dt(a, n);
3200
+ let e = ht(a, n);
3104
3201
  if (t(e) && t(i)) r(i, (t, n) => {
3105
- e[n] = x(t);
3202
+ e[n] = S(t);
3106
3203
  });
3107
3204
  else {
3108
- let e = x(i);
3205
+ let e = S(i);
3109
3206
  !(n in a) && typeof e == "string" ? a.setAttribute(n.toString(), e) : a[n] = e;
3110
3207
  }
3111
3208
  }
@@ -3113,33 +3210,33 @@ function ft(e, n, i) {
3113
3210
  }
3114
3211
  //#endregion
3115
3212
  //#region src/functions/createElement.ts
3116
- function W(e, t = "div", i, a) {
3213
+ function U(e, t = "div", i, a) {
3117
3214
  if (!s()) return;
3118
3215
  let o = document.createElement(t);
3119
3216
  return typeof i == "function" ? i(o) : n(i) && r(i, (e, t) => {
3120
- ft(o, t, e);
3217
+ gt(o, t, e);
3121
3218
  }), e == null || e.insertBefore(o, a == null ? null : a), o;
3122
3219
  }
3123
3220
  //#endregion
3124
3221
  //#region src/functions/encodeAttribute.ts
3125
- var pt = {
3222
+ var _t = {
3126
3223
  "&": "&amp;",
3127
3224
  "<": "&lt;",
3128
3225
  ">": "&gt;",
3129
3226
  "\"": "&quot;",
3130
3227
  "'": "&#39;"
3131
3228
  };
3132
- function G(e) {
3229
+ function W(e) {
3133
3230
  return String(e).replace(/[&<>"']/g, (e) => {
3134
3231
  var t;
3135
- return (t = pt == null ? void 0 : pt[e]) == null ? e : t;
3232
+ return (t = _t == null ? void 0 : _t[e]) == null ? e : t;
3136
3233
  });
3137
3234
  }
3138
3235
  //#endregion
3139
3236
  //#region src/classes/MetaManager.ts
3140
- var K = class {
3237
+ var G = class {
3141
3238
  constructor(e, t = !1) {
3142
- 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();
3143
3240
  }
3144
3241
  getListMeta() {
3145
3242
  return this.listMeta;
@@ -3179,17 +3276,17 @@ var K = class {
3179
3276
  let r = this.findMetaElement(e);
3180
3277
  if (r) return r.content = n, this;
3181
3278
  let i = { content: n };
3182
- 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;
3183
3280
  }
3184
3281
  toHtmlString(e) {
3185
3282
  var t;
3186
3283
  let n = (t = this.items[e]) == null ? "" : t;
3187
3284
  if (e === "title") return "";
3188
- let r = G(n);
3285
+ let r = W(n);
3189
3286
  return r ? `<meta ${this.getAttributeName()}="${e}" content="${r}">` : "";
3190
3287
  }
3191
3288
  toHtmlTitle(e) {
3192
- return oe(e);
3289
+ return ae(e);
3193
3290
  }
3194
3291
  update() {
3195
3292
  return this.listMeta.forEach((e) => {
@@ -3197,121 +3294,121 @@ var K = class {
3197
3294
  this.items[e] = (t = (n = this.findMetaElement(e)) == null ? void 0 : n.content) == null ? "" : t;
3198
3295
  }), this;
3199
3296
  }
3200
- }, q = /* @__PURE__ */ function(e) {
3297
+ }, K = /* @__PURE__ */ function(e) {
3201
3298
  return e.title = "title", e.description = "description", e.keywords = "keywords", e.canonical = "canonical", e.robots = "robots", e.author = "author", e;
3202
- }({}), mt = /* @__PURE__ */ function(e) {
3299
+ }({}), vt = /* @__PURE__ */ function(e) {
3203
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;
3204
- }({}), J = /* @__PURE__ */ function(e) {
3301
+ }({}), q = /* @__PURE__ */ function(e) {
3205
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;
3206
- }({}), ht = /* @__PURE__ */ function(e) {
3303
+ }({}), yt = /* @__PURE__ */ function(e) {
3207
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;
3208
- }({}), gt = /* @__PURE__ */ function(e) {
3305
+ }({}), bt = /* @__PURE__ */ function(e) {
3209
3306
  return e.inStock = "in stock", e.outOfStock = "out of stock", e.preorder = "preorder", e.backorder = "backorder", e.discontinued = "discontinued", e.pending = "pending", e;
3210
- }({}), _t = /* @__PURE__ */ function(e) {
3307
+ }({}), xt = /* @__PURE__ */ function(e) {
3211
3308
  return e.new = "new", e.used = "used", e.refurbished = "refurbished", e;
3212
- }({}), vt = /* @__PURE__ */ function(e) {
3309
+ }({}), St = /* @__PURE__ */ function(e) {
3213
3310
  return e.newborn = "newborn", e.infant = "infant", e.toddler = "toddler", e.kids = "kids", e.adult = "adult", e;
3214
- }({}), yt = /* @__PURE__ */ function(e) {
3311
+ }({}), Ct = /* @__PURE__ */ function(e) {
3215
3312
  return e.female = "female", e.male = "male", e.unisex = "unisex", e;
3216
- }({}), Y = /* @__PURE__ */ function(e) {
3313
+ }({}), J = /* @__PURE__ */ function(e) {
3217
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;
3218
- }({}), bt = /* @__PURE__ */ function(e) {
3315
+ }({}), wt = /* @__PURE__ */ function(e) {
3219
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;
3220
- }({}), xt = class extends K {
3317
+ }({}), Tt = class extends G {
3221
3318
  constructor() {
3222
- super(Object.values(J), !0);
3319
+ super(Object.values(q), !0);
3223
3320
  }
3224
3321
  getTitle() {
3225
- return this.get(J.title);
3322
+ return this.get(q.title);
3226
3323
  }
3227
3324
  getType() {
3228
- return this.get(J.type);
3325
+ return this.get(q.type);
3229
3326
  }
3230
3327
  getUrl() {
3231
- return this.get(J.url);
3328
+ return this.get(q.url);
3232
3329
  }
3233
3330
  getImage() {
3234
- return this.get(J.image);
3331
+ return this.get(q.image);
3235
3332
  }
3236
3333
  getDescription() {
3237
- return this.get(J.description);
3334
+ return this.get(q.description);
3238
3335
  }
3239
3336
  getLocale() {
3240
- return this.get(J.locale);
3337
+ return this.get(q.locale);
3241
3338
  }
3242
3339
  getSiteName() {
3243
- return this.get(J.siteName);
3340
+ return this.get(q.siteName);
3244
3341
  }
3245
3342
  setTitle(e) {
3246
- return this.set(J.title, e);
3343
+ return this.set(q.title, e);
3247
3344
  }
3248
3345
  setType(e) {
3249
- return this.set(J.type, e);
3346
+ return this.set(q.type, e);
3250
3347
  }
3251
3348
  setUrl(e) {
3252
- return this.set(J.url, e);
3349
+ return this.set(q.url, e);
3253
3350
  }
3254
3351
  setImage(e) {
3255
- return this.set(J.image, e);
3352
+ return this.set(q.image, e);
3256
3353
  }
3257
3354
  setDescription(e) {
3258
- return this.set(J.description, e);
3355
+ return this.set(q.description, e);
3259
3356
  }
3260
3357
  setLocale(e) {
3261
- return this.set(J.locale, e);
3358
+ return this.set(q.locale, e);
3262
3359
  }
3263
3360
  setSiteName(e) {
3264
- return this.set(J.siteName, e);
3361
+ return this.set(q.siteName, e);
3265
3362
  }
3266
- }, St = class extends K {
3363
+ }, Et = class extends G {
3267
3364
  constructor() {
3268
- super(Object.values(Y));
3365
+ super(Object.values(J));
3269
3366
  }
3270
3367
  getCard() {
3271
- return this.get(Y.card);
3368
+ return this.get(J.card);
3272
3369
  }
3273
3370
  getSite() {
3274
- return this.get(Y.site);
3371
+ return this.get(J.site);
3275
3372
  }
3276
3373
  getCreator() {
3277
- return this.get(Y.creator);
3374
+ return this.get(J.creator);
3278
3375
  }
3279
3376
  getUrl() {
3280
- return this.get(Y.url);
3377
+ return this.get(J.url);
3281
3378
  }
3282
3379
  getTitle() {
3283
- return this.get(Y.title);
3380
+ return this.get(J.title);
3284
3381
  }
3285
3382
  getDescription() {
3286
- return this.get(Y.description);
3383
+ return this.get(J.description);
3287
3384
  }
3288
3385
  getImage() {
3289
- return this.get(Y.image);
3386
+ return this.get(J.image);
3290
3387
  }
3291
3388
  setCard(e) {
3292
- return this.set(Y.card, e), this;
3389
+ return this.set(J.card, e), this;
3293
3390
  }
3294
3391
  setSite(e) {
3295
- return this.set(Y.site, e), this;
3392
+ return this.set(J.site, e), this;
3296
3393
  }
3297
3394
  setCreator(e) {
3298
- return this.set(Y.creator, e), this;
3395
+ return this.set(J.creator, e), this;
3299
3396
  }
3300
3397
  setUrl(e) {
3301
- return this.set(Y.url, e), this;
3398
+ return this.set(J.url, e), this;
3302
3399
  }
3303
3400
  setTitle(e) {
3304
- return this.set(Y.title, e), this;
3401
+ return this.set(J.title, e), this;
3305
3402
  }
3306
3403
  setDescription(e) {
3307
- return this.set(Y.description, e), this;
3404
+ return this.set(J.description, e), this;
3308
3405
  }
3309
3406
  setImage(e) {
3310
- return this.set(Y.image, e), this;
3407
+ return this.set(J.image, e), this;
3311
3408
  }
3312
- }, Ct = class extends K {
3409
+ }, Dt = class extends G {
3313
3410
  constructor() {
3314
- 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();
3315
3412
  }
3316
3413
  getOg() {
3317
3414
  return this.og;
@@ -3320,26 +3417,26 @@ var K = class {
3320
3417
  return this.twitter;
3321
3418
  }
3322
3419
  getTitle() {
3323
- let e = this.get(q.title);
3420
+ let e = this.get(K.title);
3324
3421
  return !l(e) && s() && (e = document.title), e.replace(this.getSuffix(), "").trim();
3325
3422
  }
3326
3423
  getKeywords() {
3327
- return this.get(q.keywords);
3424
+ return this.get(K.keywords);
3328
3425
  }
3329
3426
  getDescription() {
3330
- return this.get(q.description);
3427
+ return this.get(K.description);
3331
3428
  }
3332
3429
  getImage() {
3333
3430
  return this.og.getImage();
3334
3431
  }
3335
3432
  getCanonical() {
3336
- return this.get(q.canonical);
3433
+ return this.get(K.canonical);
3337
3434
  }
3338
3435
  getRobots() {
3339
- return this.get(q.robots);
3436
+ return this.get(K.robots);
3340
3437
  }
3341
3438
  getAuthor() {
3342
- return this.get(q.author);
3439
+ return this.get(K.author);
3343
3440
  }
3344
3441
  getSiteName() {
3345
3442
  return this.og.getSiteName();
@@ -3349,25 +3446,25 @@ var K = class {
3349
3446
  }
3350
3447
  setTitle(e) {
3351
3448
  let t = l(e) ? `${e}${this.getSuffix()}` : this.suffix ? this.suffix : "";
3352
- 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;
3353
3450
  }
3354
3451
  setKeywords(e) {
3355
- return this.set(q.keywords, A(e).join(", ")), this;
3452
+ return this.set(K.keywords, A(e).join(", ")), this;
3356
3453
  }
3357
3454
  setDescription(e) {
3358
- return this.set(q.description, e), this;
3455
+ return this.set(K.description, e), this;
3359
3456
  }
3360
3457
  setImage(e) {
3361
3458
  return this.og.setImage(e), this.twitter.setImage(e), this;
3362
3459
  }
3363
3460
  setCanonical(e) {
3364
- 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;
3365
3462
  }
3366
3463
  setRobots(e) {
3367
- return this.set(q.robots, e), this;
3464
+ return this.set(K.robots, e), this;
3368
3465
  }
3369
3466
  setAuthor(e) {
3370
- return this.set(q.author, e), this;
3467
+ return this.set(K.author, e), this;
3371
3468
  }
3372
3469
  setSiteName(e) {
3373
3470
  return this.og.setSiteName(e), this.twitter.setSite(e), this;
@@ -3382,14 +3479,14 @@ var K = class {
3382
3479
  return `${super.html()}${this.og.html()}${this.twitter.html()}`;
3383
3480
  }
3384
3481
  htmlTitle() {
3385
- return this.toHtmlTitle(this.get(q.title));
3482
+ return this.toHtmlTitle(this.get(K.title));
3386
3483
  }
3387
3484
  getSuffix() {
3388
3485
  return l(this.suffix) ? ` - ${this.suffix}` : "";
3389
3486
  }
3390
- }, wt = class {
3487
+ }, Ot = class {
3391
3488
  static getItem() {
3392
- return T.get("__ui:meta-instance__", () => new Ct());
3489
+ return E.get("__ui:meta-instance__", () => new Dt());
3393
3490
  }
3394
3491
  static getOg() {
3395
3492
  return this.getItem().getOg();
@@ -3460,9 +3557,9 @@ var K = class {
3460
3557
  static htmlTitle() {
3461
3558
  return this.getItem().htmlTitle();
3462
3559
  }
3463
- }, Tt = class {
3560
+ }, kt = class {
3464
3561
  constructor(e, t = 320, n = !1) {
3465
- 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();
3466
3563
  }
3467
3564
  resume() {
3468
3565
  if (this.timerId || this.completed) return this;
@@ -3498,7 +3595,7 @@ var K = class {
3498
3595
  stop() {
3499
3596
  return this.timerId && (clearTimeout(this.timerId), this.timerId = void 0), this;
3500
3597
  }
3501
- }, Et = class {
3598
+ }, At = class {
3502
3599
  static async is() {
3503
3600
  let e = await this.get();
3504
3601
  return e !== -1 && e <= 8;
@@ -3514,14 +3611,14 @@ var K = class {
3514
3611
  return t;
3515
3612
  }
3516
3613
  static getStorage() {
3517
- return new E("__ui:scrollbar__", !0);
3614
+ return new D("__ui:scrollbar__", !0);
3518
3615
  }
3519
3616
  static getCalculate() {
3520
3617
  return this.calculate;
3521
3618
  }
3522
3619
  static createElement() {
3523
- return W(document.body, "div", (e) => {
3524
- 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) => {
3525
3622
  e.style.height = "100px";
3526
3623
  });
3527
3624
  });
@@ -3536,36 +3633,36 @@ var K = class {
3536
3633
  });
3537
3634
  }
3538
3635
  };
3539
- C(Et, "calculate", !1);
3636
+ w(At, "calculate", !1);
3540
3637
  //#endregion
3541
3638
  //#region src/functions/escapeExp.ts
3542
- function X(e) {
3639
+ function Y(e) {
3543
3640
  return String(e).replace(/[.*+?^${}()|[\]\\/]/g, "\\$&");
3544
3641
  }
3545
3642
  //#endregion
3546
3643
  //#region src/functions/getSeparatingSearchExp.ts
3547
- function Dt(e, t = 128) {
3644
+ function jt(e, t = 128) {
3548
3645
  if (e instanceof RegExp) return e;
3549
3646
  if (!e || e.trim().length === 0 || e.length > t) return /^/;
3550
- 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("|");
3551
3648
  return RegExp(`(${n})`, "ig");
3552
3649
  }
3553
3650
  //#endregion
3554
3651
  //#region src/functions/addTagHighlightMatch.ts
3555
- var Ot = `___HIGHLIGHT_START_${f(1e5, 999999)}___`, kt = `___HIGHLIGHT_END_${f(1e5, 999999)}___`, At = RegExp(`${Ot}|${kt}`, "g");
3556
- 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) {
3557
3654
  let i = a(e);
3558
3655
  if (l(i) && l(t)) {
3559
- let e = i.replace(Dt(t), `${Ot}$1${kt}`);
3560
- 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>");
3561
3658
  }
3562
- return r ? G(i) : i;
3659
+ return r ? W(i) : i;
3563
3660
  }
3564
3661
  //#endregion
3565
3662
  //#region src/classes/SearchListData.ts
3566
- var Mt = class {
3663
+ var Ft = class {
3567
3664
  constructor(e, t, n, r) {
3568
- 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;
3569
3666
  }
3570
3667
  is() {
3571
3668
  return !!(this.list && this.columns);
@@ -3614,7 +3711,7 @@ var Mt = class {
3614
3711
  return e.replace(/\.([a-z0-9])/gi, (e, t) => t.toUpperCase()) + "Search";
3615
3712
  }
3616
3713
  addTag(e) {
3617
- return jt(F(e), this.item.get(), this.options.getClassName());
3714
+ return Pt(F(e), this.item.get(), this.options.getClassName());
3618
3715
  }
3619
3716
  generateCache() {
3620
3717
  if (!this.isList()) return [];
@@ -3638,9 +3735,9 @@ var Mt = class {
3638
3735
  resetCache() {
3639
3736
  this.listCache = void 0;
3640
3737
  }
3641
- }, Nt = class {
3738
+ }, It = class {
3642
3739
  constructor(e, t) {
3643
- 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;
3644
3741
  }
3645
3742
  is() {
3646
3743
  return !!this.value;
@@ -3658,30 +3755,30 @@ var Mt = class {
3658
3755
  };
3659
3756
  //#endregion
3660
3757
  //#region src/functions/getExp.ts
3661
- function Pt(e, t = "ig", n = ":value") {
3662
- let r = X(e);
3758
+ function Lt(e, t = "ig", n = ":value") {
3759
+ let r = Y(e);
3663
3760
  return new RegExp(n.replace(/:value/g, r), t);
3664
3761
  }
3665
3762
  //#endregion
3666
3763
  //#region src/functions/getExactSearchExp.ts
3667
- function Ft(e) {
3668
- return Pt(e, "i", "(:value)");
3764
+ function Rt(e) {
3765
+ return Lt(e, "i", "(:value)");
3669
3766
  }
3670
3767
  //#endregion
3671
3768
  //#region src/functions/getSearchExp.ts
3672
- function It(e, t = 128) {
3769
+ function zt(e, t = 128) {
3673
3770
  if (!d(e) || e.trim().length === 0 || e.length > t) return /^/;
3674
3771
  let n = [];
3675
3772
  return a(e).split(" ").forEach((e) => {
3676
- let t = X(e).trim();
3773
+ let t = Y(e).trim();
3677
3774
  l(t) && n.push(`(?=.*?${t})`);
3678
3775
  }), RegExp(`^${n.join("")}`, "i");
3679
3776
  }
3680
3777
  //#endregion
3681
3778
  //#region src/classes/SearchListMatcher.ts
3682
- var Lt = class {
3779
+ var Bt = class {
3683
3780
  constructor(e, t) {
3684
- 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();
3685
3782
  }
3686
3783
  is() {
3687
3784
  return !!this.matcher;
@@ -3696,11 +3793,11 @@ var Lt = class {
3696
3793
  this.initMatcher();
3697
3794
  }
3698
3795
  initMatcher() {
3699
- 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;
3700
3797
  }
3701
- }, Rt = class {
3798
+ }, Vt = class {
3702
3799
  constructor(e) {
3703
- C(this, "options", void 0), this.options = e;
3800
+ w(this, "options", void 0), this.options = e;
3704
3801
  }
3705
3802
  getOptions() {
3706
3803
  return this.options || {};
@@ -3728,12 +3825,12 @@ var Lt = class {
3728
3825
  setOptions(e) {
3729
3826
  return this.options = e, this;
3730
3827
  }
3731
- }, zt = class {
3828
+ }, Ht = class {
3732
3829
  constructor(e, t, n, r) {
3733
- 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) => {
3734
3831
  if (this.matcher.isSelection(t)) return this.data.toFormatItem(e, !0);
3735
3832
  if (this.options.getReturnEverything()) return this.data.toFormatItem(e, !1);
3736
- }), 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);
3737
3834
  }
3738
3835
  getData() {
3739
3836
  return this.data;
@@ -3770,13 +3867,13 @@ var Lt = class {
3770
3867
  let e = this.data.getList();
3771
3868
  return e ? r(e, this.callbackToNone) : [];
3772
3869
  }
3773
- }, Bt = () => T.get("__ui:storage-callback__", () => ({})), Vt = class e {
3870
+ }, Ut = () => E.get("__ui:storage-callback__", () => ({})), Wt = class e {
3774
3871
  static getInstance(t, n = "main") {
3775
3872
  return new e(t, n);
3776
3873
  }
3777
3874
  constructor(e, t = "main") {
3778
- C(this, "name", void 0), C(this, "group", void 0), C(this, "callbacks", []), C(this, "loading", !1), this.name = e, this.group = t;
3779
- 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();
3780
3877
  if (n in r) return r[n];
3781
3878
  r[n] = this;
3782
3879
  }
@@ -3803,10 +3900,10 @@ var Lt = class {
3803
3900
  }
3804
3901
  async run(e) {
3805
3902
  this.loading = !1;
3806
- 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);
3807
3904
  return this;
3808
3905
  }
3809
- }, Ht = [
3906
+ }, Gt = [
3810
3907
  "d",
3811
3908
  "e",
3812
3909
  "f",
@@ -3826,10 +3923,10 @@ var Lt = class {
3826
3923
  "t",
3827
3924
  "u",
3828
3925
  "v"
3829
- ], Ut = RegExp(`%(${Ht.join("|")})`, "g"), Wt = (e, t = {}) => {
3926
+ ], Kt = RegExp(`%(${Gt.join("|")})`, "g"), qt = (e, t = {}) => {
3830
3927
  let r = String(e);
3831
- return Array.isArray(t) && e.match(/%[a-z]/) && (r = r.replace(Ut, (e, n) => {
3832
- 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);
3833
3930
  if (r !== -1) {
3834
3931
  var i;
3835
3932
  return String((i = t == null ? void 0 : t[r]) == null ? "" : i);
@@ -3848,21 +3945,21 @@ var Lt = class {
3848
3945
  }
3849
3946
  return e;
3850
3947
  })), r;
3851
- }, Gt = (e) => {
3948
+ }, Jt = (e) => {
3852
3949
  var t;
3853
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()))));
3854
- }, Kt = "global", qt = 160, Jt = class {
3855
- constructor(e, t = () => D.getLanguage(), n = () => D.getLocation()) {
3856
- 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);
3857
3954
  }
3858
3955
  isFile() {
3859
3956
  return Object.keys(this.files).length > 0 && this.getIndex() !== void 0;
3860
3957
  }
3861
3958
  getLocation() {
3862
- return x(this.location);
3959
+ return S(this.location);
3863
3960
  }
3864
3961
  getLanguage() {
3865
- return x(this.language);
3962
+ return S(this.language);
3866
3963
  }
3867
3964
  async getList() {
3868
3965
  let e = this.getIndex();
@@ -3873,7 +3970,7 @@ var Lt = class {
3873
3970
  }
3874
3971
  add(e) {
3875
3972
  r(e, (e, t) => {
3876
- b(e) && (this.files[t] = e);
3973
+ x(e) && (this.files[t] = e);
3877
3974
  });
3878
3975
  }
3879
3976
  getIndex() {
@@ -3881,20 +3978,20 @@ var Lt = class {
3881
3978
  if (e in this.files) return e;
3882
3979
  let t = this.getLanguage();
3883
3980
  if (t in this.files) return t;
3884
- if ("global" in this.files) return Kt;
3981
+ if ("global" in this.files) return Yt;
3885
3982
  }
3886
3983
  getByData(e) {
3887
3984
  if (e in this.data) return this.data[e];
3888
3985
  }
3889
3986
  async getByFile(e) {
3890
3987
  if (e in this.files) {
3891
- let t = await x(this.files[e]);
3988
+ let t = await S(this.files[e]);
3892
3989
  return t && (this.data[e] = t), t;
3893
3990
  }
3894
3991
  }
3895
- }, Yt = class {
3896
- constructor(e = "/api/translate", t = "list", n = new Jt()) {
3897
- 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;
3898
3995
  }
3899
3996
  async get(e, t) {
3900
3997
  var n;
@@ -3982,7 +4079,7 @@ var Lt = class {
3982
4079
  return `${this.files.getLanguage()}-${e}`;
3983
4080
  }
3984
4081
  getNameByGlobal(e) {
3985
- return `${Kt}-${e}`;
4082
+ return `${Yt}-${e}`;
3986
4083
  }
3987
4084
  getNamesNone(e) {
3988
4085
  let t = [];
@@ -3999,14 +4096,14 @@ var Lt = class {
3999
4096
  timeout: 12e3,
4000
4097
  global: !0
4001
4098
  });
4002
- return Gt(e) || w.on({
4099
+ return Jt(e) || T.on({
4003
4100
  group: "translate",
4004
4101
  code: "error",
4005
4102
  details: e
4006
4103
  }), e == null ? {} : e;
4007
4104
  }
4008
4105
  replacement(e, t) {
4009
- return t ? Wt(e, t) : e;
4106
+ return t ? qt(e, t) : e;
4010
4107
  }
4011
4108
  async make() {
4012
4109
  let e;
@@ -4018,12 +4115,12 @@ var Lt = class {
4018
4115
  this.data[this.getName(t)] = (n = e == null ? void 0 : e[t]) == null ? "" : n;
4019
4116
  }), this.cache = [];
4020
4117
  }
4021
- }, Xt = class {
4118
+ }, $t = class {
4022
4119
  static async get(e, t) {
4023
4120
  return this.getItem().get(e, t);
4024
4121
  }
4025
4122
  static getItem() {
4026
- return this.item || (this.item = new Yt()), this.item;
4123
+ return this.item || (this.item = new Qt()), this.item;
4027
4124
  }
4028
4125
  static getSync(e, t = !1, n) {
4029
4126
  return this.getItem().getSync(e, t, n);
@@ -4062,18 +4159,18 @@ var Lt = class {
4062
4159
  e.url && this.getItem().setUrl(e.url), e.propsName && this.getItem().setPropsName(e.propsName), typeof e.readApi == "boolean" && this.getItem().setReadApi(e.readApi);
4063
4160
  }
4064
4161
  };
4065
- C(Xt, "item", void 0);
4162
+ w($t, "item", void 0);
4066
4163
  //#endregion
4067
4164
  //#region src/functions/arrFill.ts
4068
- function Zt(e, t) {
4165
+ function en(e, t) {
4069
4166
  return Array(t).fill(e);
4070
4167
  }
4071
4168
  //#endregion
4072
4169
  //#region src/functions/blobToBase64.ts
4073
- var Qt = () => $t() !== void 0, $t = () => {
4170
+ var tn = () => nn() !== void 0, nn = () => {
4074
4171
  var e;
4075
4172
  return (e = globalThis) == null ? void 0 : e.Buffer;
4076
- }, en = async (e) => new Promise((t, n) => {
4173
+ }, rn = async (e) => new Promise((t, n) => {
4077
4174
  if (typeof FileReader < "u") {
4078
4175
  let r = new FileReader();
4079
4176
  r.onloadend = () => {
@@ -4084,19 +4181,19 @@ var Qt = () => $t() !== void 0, $t = () => {
4084
4181
  t(r.result.replace(/^data:.*?,/, ""));
4085
4182
  }, r.onerror = n, r.readAsDataURL(e);
4086
4183
  } else n();
4087
- }), tn = (e) => {
4184
+ }), an = (e) => {
4088
4185
  var t;
4089
4186
  return ((t = globalThis) == null ? void 0 : t.Buffer).from(e).toString("base64");
4090
4187
  };
4091
- async function nn(e, t = !1) {
4092
- 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;
4093
4190
  if (n) return t ? n : `data:${e.type};base64,${n}`;
4094
4191
  }
4095
4192
  //#endregion
4096
4193
  //#region src/functions/capitalize.ts
4097
- function rn(e, t = !1) {
4194
+ function sn(e, t = !1) {
4098
4195
  let n = String(e);
4099
- 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;
4100
4197
  }
4101
4198
  //#endregion
4102
4199
  //#region src/functions/copyObject.ts
@@ -4105,12 +4202,12 @@ function Z(e) {
4105
4202
  }
4106
4203
  //#endregion
4107
4204
  //#region src/functions/copyObjectLite.ts
4108
- function an(e, t) {
4205
+ function cn(e, t) {
4109
4206
  return Object.assign({}, e, t);
4110
4207
  }
4111
4208
  //#endregion
4112
4209
  //#region src/functions/domQuerySelector.ts
4113
- function on(e) {
4210
+ function ln(e) {
4114
4211
  if (s()) {
4115
4212
  var t;
4116
4213
  return (t = document.querySelector(e)) == null ? void 0 : t;
@@ -4118,67 +4215,67 @@ function on(e) {
4118
4215
  }
4119
4216
  //#endregion
4120
4217
  //#region src/functions/domQuerySelectorAll.ts
4121
- function sn(e) {
4218
+ function un(e) {
4122
4219
  if (s()) return document.querySelectorAll(e);
4123
4220
  }
4124
4221
  //#endregion
4125
4222
  //#region src/functions/getElementImage.ts
4126
- function cn(e) {
4127
- 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;
4128
4225
  }
4129
4226
  //#endregion
4130
4227
  //#region src/functions/resizeImageByMax.ts
4131
- function ln(e, t = "auto") {
4228
+ function fn(e, t = "auto") {
4132
4229
  switch (t) {
4133
4230
  case "auto": return e.naturalWidth >= e.naturalHeight;
4134
4231
  case "width": return !0;
4135
4232
  case "height": return !1;
4136
4233
  }
4137
4234
  }
4138
- function un(e, t, n = "auto", r) {
4139
- let i = cn(e);
4235
+ function pn(e, t, n = "auto", r) {
4236
+ let i = dn(e);
4140
4237
  if (s() && i && i.naturalWidth && i.naturalHeight && (i.naturalWidth > t && (n === "auto" || n === "width") || i.naturalHeight > t && (n === "auto" || n === "height"))) {
4141
4238
  var a;
4142
- 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");
4143
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);
4144
4241
  }
4145
4242
  }
4146
4243
  //#endregion
4147
4244
  //#region src/functions/ensureMaxSize.ts
4148
- async function dn(e, t = .56, n = "image/jpeg") {
4245
+ async function mn(e, t = .56, n = "image/jpeg") {
4149
4246
  return new Promise((r) => {
4150
4247
  if (!s()) {
4151
4248
  r("");
4152
4249
  return;
4153
4250
  }
4154
- 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);
4155
4252
  o ? (o.onload = () => {
4156
- let e = un(o, t * o.naturalWidth, "width", n);
4253
+ let e = pn(o, t * o.naturalWidth, "width", n);
4157
4254
  r(e == null ? "" : e), URL.revokeObjectURL(a);
4158
4255
  }, o.onerror = () => {
4159
4256
  URL.revokeObjectURL(a), r("");
4160
- }) : nn(i).then((e) => r(String(e == null ? "" : e)));
4257
+ }) : on(i).then((e) => r(String(e == null ? "" : e)));
4161
4258
  });
4162
4259
  }
4163
4260
  //#endregion
4164
4261
  //#region src/functions/eventStopPropagation.ts
4165
- function fn(e) {
4262
+ function hn(e) {
4166
4263
  e.preventDefault(), e.stopPropagation();
4167
4264
  }
4168
4265
  //#endregion
4169
4266
  //#region src/functions/frame.ts
4170
- function pn(e, t, n) {
4267
+ function gn(e, t, n) {
4171
4268
  let r = () => {
4172
- 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();
4173
4270
  };
4174
4271
  s() ? requestAnimationFrame(r) : r();
4175
4272
  }
4176
4273
  //#endregion
4177
4274
  //#region src/functions/getArrayHighlightMatch.ts
4178
- function mn(e, t) {
4275
+ function _n(e, t) {
4179
4276
  let n = a(e);
4180
4277
  if (l(n) && l(t)) {
4181
- let e = [], r = Dt(t), i = 0, a;
4278
+ let e = [], r = jt(t), i = 0, a;
4182
4279
  for (; (a = r.exec(n)) !== null && a.index !== r.lastIndex;) a.index > i && e.push({
4183
4280
  text: n.substring(i, a.index),
4184
4281
  isMatch: !1
@@ -4198,7 +4295,7 @@ function mn(e, t) {
4198
4295
  }
4199
4296
  //#endregion
4200
4297
  //#region src/functions/getAttributes.ts
4201
- function hn(e) {
4298
+ function vn(e) {
4202
4299
  let t = {}, n = k(e);
4203
4300
  if (n) for (let e of n.attributes) {
4204
4301
  var r;
@@ -4208,12 +4305,12 @@ function hn(e) {
4208
4305
  }
4209
4306
  //#endregion
4210
4307
  //#region src/functions/getClipboardData.ts
4211
- async function gn(e) {
4308
+ async function yn(e) {
4212
4309
  if (s()) try {
4213
4310
  var t, n;
4214
4311
  return (t = e == null || (n = e.clipboardData) == null ? void 0 : n.getData("text")) == null ? await navigator.clipboard.readText() || "" : t;
4215
4312
  } catch (e) {
4216
- w.on({
4313
+ T.on({
4217
4314
  group: "clipboard",
4218
4315
  code: "error",
4219
4316
  details: e
@@ -4223,35 +4320,35 @@ async function gn(e) {
4223
4320
  }
4224
4321
  //#endregion
4225
4322
  //#region src/functions/getCurrentDate.ts
4226
- function _n(e = "datetime") {
4227
- return new et(void 0, e).standard();
4323
+ function bn(e = "datetime") {
4324
+ return new rt(void 0, e).standard();
4228
4325
  }
4229
4326
  //#endregion
4230
4327
  //#region src/functions/getCurrentTime.ts
4231
- function vn() {
4328
+ function xn() {
4232
4329
  return Date.now();
4233
4330
  }
4234
4331
  //#endregion
4235
4332
  //#region src/functions/getElementId.ts
4236
- var Q, yn = () => {
4333
+ var Q, Sn = () => {
4237
4334
  let e = Q == null ? void 0 : Q();
4238
4335
  if (e) return String(e);
4239
- let t = T.get("__ui:getElementId__", () => ({ id: 1e5 }));
4336
+ let t = E.get("__ui:getElementId__", () => ({ id: 1e5 }));
4240
4337
  return `id-${t.id++}`;
4241
4338
  };
4242
- function bn(e, t) {
4339
+ function Cn(e, t) {
4243
4340
  if (e) {
4244
4341
  let n = k(e);
4245
- 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;
4246
4343
  }
4247
- return yn();
4344
+ return Sn();
4248
4345
  }
4249
- function xn(e) {
4346
+ function wn(e) {
4250
4347
  Q || (Q = e);
4251
4348
  }
4252
4349
  //#endregion
4253
4350
  //#region src/functions/getFirst.ts
4254
- function Sn(e) {
4351
+ function Tn(e) {
4255
4352
  if (i(e)) return e == null ? void 0 : e[0];
4256
4353
  if (t(e)) {
4257
4354
  var n;
@@ -4261,13 +4358,13 @@ function Sn(e) {
4261
4358
  }
4262
4359
  //#endregion
4263
4360
  //#region src/functions/getKey.ts
4264
- function Cn(e) {
4361
+ function En(e) {
4265
4362
  var t, n, r;
4266
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;
4267
4364
  }
4268
4365
  //#endregion
4269
4366
  //#region src/functions/getLengthOfAllArray.ts
4270
- function wn(e) {
4367
+ function Dn(e) {
4271
4368
  return r(e, (e) => {
4272
4369
  var t;
4273
4370
  return (t = e == null ? void 0 : e.length) == null ? 0 : t;
@@ -4275,41 +4372,41 @@ function wn(e) {
4275
4372
  }
4276
4373
  //#endregion
4277
4374
  //#region src/functions/getMaxLengthAllArray.ts
4278
- function Tn(e) {
4375
+ function On(e) {
4279
4376
  if (!l(e)) return 0;
4280
- let t = wn(e);
4377
+ let t = Dn(e);
4281
4378
  return t.length > 1e4 ? t.reduce((e, t) => Math.max(e, t)) : Math.max(...t);
4282
4379
  }
4283
4380
  //#endregion
4284
4381
  //#region src/functions/getMinLengthAllArray.ts
4285
- function En(e) {
4382
+ function kn(e) {
4286
4383
  if (!l(e)) return 0;
4287
- let t = wn(e);
4384
+ let t = Dn(e);
4288
4385
  return t.length > 1e4 ? t.reduce((e, t) => Math.min(e, t)) : Math.min(...t);
4289
4386
  }
4290
4387
  //#endregion
4291
4388
  //#region src/functions/getMouseClientX.ts
4292
- function Dn(e) {
4389
+ function An(e) {
4293
4390
  var t, n;
4294
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;
4295
4392
  }
4296
4393
  //#endregion
4297
4394
  //#region src/functions/getMouseClientY.ts
4298
- function On(e) {
4395
+ function jn(e) {
4299
4396
  var t, n;
4300
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;
4301
4398
  }
4302
4399
  //#endregion
4303
4400
  //#region src/functions/getMouseClient.ts
4304
- function kn(e) {
4401
+ function Mn(e) {
4305
4402
  return {
4306
- x: Dn(e),
4307
- y: On(e)
4403
+ x: An(e),
4404
+ y: jn(e)
4308
4405
  };
4309
4406
  }
4310
4407
  //#endregion
4311
4408
  //#region src/functions/getObjectByKeys.ts
4312
- function An(e, t) {
4409
+ function Nn(e, t) {
4313
4410
  let r = {};
4314
4411
  return n(e) && t.forEach((t) => {
4315
4412
  t in e && e[t] !== void 0 && (r[t] = e[t]);
@@ -4317,7 +4414,7 @@ function An(e, t) {
4317
4414
  }
4318
4415
  //#endregion
4319
4416
  //#region src/functions/getObjectNoUndefined.ts
4320
- function jn(e, t = void 0) {
4417
+ function Pn(e, t = void 0) {
4321
4418
  let n = {};
4322
4419
  return r(e, (e, r) => {
4323
4420
  e !== t && (n[r] = e);
@@ -4325,42 +4422,42 @@ function jn(e, t = void 0) {
4325
4422
  }
4326
4423
  //#endregion
4327
4424
  //#region src/functions/getObjectOrNone.ts
4328
- function Mn(e) {
4425
+ function Fn(e) {
4329
4426
  return n(e) ? e : {};
4330
4427
  }
4331
4428
  //#endregion
4332
4429
  //#region src/functions/getOnlyText.ts
4333
- function Nn(e) {
4430
+ function In(e) {
4334
4431
  return F(e).replace(/[^\p{L}\p{N}\s]+/gu, "").trim();
4335
4432
  }
4336
4433
  //#endregion
4337
4434
  //#region src/functions/strFill.ts
4338
- function Pn(e, t) {
4435
+ function Ln(e, t) {
4339
4436
  return String(e).repeat(t);
4340
4437
  }
4341
4438
  //#endregion
4342
4439
  //#region src/functions/getRandomText.ts
4343
- function Fn(e, t, n = "#", r = 2, i = 12) {
4440
+ function Rn(e, t, n = "#", r = 2, i = 12) {
4344
4441
  let a = f(e, t), o = [];
4345
- 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)));
4346
4443
  return o.join(" ");
4347
4444
  }
4348
4445
  //#endregion
4349
4446
  //#region src/functions/getStepPercent.ts
4350
- function In(e, t) {
4447
+ function zn(e, t) {
4351
4448
  let n = e == null ? 0 : e;
4352
4449
  return t > n ? 100 / (t - n) : 0;
4353
4450
  }
4354
4451
  //#endregion
4355
4452
  //#region src/functions/getStepValue.ts
4356
- function Ln(e, t) {
4453
+ function Bn(e, t) {
4357
4454
  let n = e == null ? 0 : e;
4358
4455
  return t > n ? (t - n) / 100 : 0;
4359
4456
  }
4360
4457
  //#endregion
4361
4458
  //#region src/functions/goScroll.ts
4362
- var Rn = 0;
4363
- function zn(e, t, n) {
4459
+ var Vn = 0;
4460
+ function Hn(e, t, n) {
4364
4461
  if (!s()) return;
4365
4462
  let r = t == null ? void 0 : t.closest(e);
4366
4463
  if (t && r && r.scrollHeight !== r.offsetHeight) {
@@ -4368,12 +4465,12 @@ function zn(e, t, n) {
4368
4465
  if (n) {
4369
4466
  let a = n.getBoundingClientRect();
4370
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);
4371
- } 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);
4372
4469
  }
4373
4470
  }
4374
4471
  //#endregion
4375
4472
  //#region src/functions/goScrollSmooth.ts
4376
- function Bn(e, t, n = 0) {
4473
+ function Un(e, t, n = 0) {
4377
4474
  if (!s()) return;
4378
4475
  let r = (t == null ? void 0 : t.behavior) || "smooth";
4379
4476
  if ("scrollIntoView" in e && !n) {
@@ -4395,7 +4492,7 @@ function Bn(e, t, n = 0) {
4395
4492
  }
4396
4493
  //#endregion
4397
4494
  //#region src/functions/goScrollTo.ts
4398
- function Vn(e, t, n = "smooth") {
4495
+ function Wn(e, t, n = "smooth") {
4399
4496
  if (!s() || !e || !t) return;
4400
4497
  let r = e.getBoundingClientRect(), i = t.getBoundingClientRect();
4401
4498
  e.scrollBy({
@@ -4406,16 +4503,16 @@ function Vn(e, t, n = "smooth") {
4406
4503
  }
4407
4504
  //#endregion
4408
4505
  //#region src/functions/isShare.ts
4409
- function Hn() {
4506
+ function Gn() {
4410
4507
  return s() && typeof navigator < "u" && !!navigator.share;
4411
4508
  }
4412
4509
  //#endregion
4413
4510
  //#region src/functions/handleShare.ts
4414
- async function Un(e) {
4415
- if (Hn() && navigator.canShare && navigator.canShare(e)) try {
4511
+ async function Kn(e) {
4512
+ if (Gn() && navigator.canShare && navigator.canShare(e)) try {
4416
4513
  return await navigator.share(e), !0;
4417
4514
  } catch (e) {
4418
- w.on({
4515
+ T.on({
4419
4516
  group: "share",
4420
4517
  code: "error",
4421
4518
  details: e
@@ -4425,20 +4522,20 @@ async function Un(e) {
4425
4522
  }
4426
4523
  //#endregion
4427
4524
  //#region src/functions/inArray.ts
4428
- function Wn(e, t) {
4525
+ function qn(e, t) {
4429
4526
  return e.includes(t);
4430
4527
  }
4431
4528
  //#endregion
4432
4529
  //#region src/functions/initScrollbarOffset.ts
4433
- async function Gn() {
4530
+ async function Jn() {
4434
4531
  if (s()) {
4435
- let e = await Et.get();
4532
+ let e = await At.get();
4436
4533
  document.body.style.setProperty("--sys-scrollbar-offset", `${e}px`);
4437
4534
  }
4438
4535
  }
4439
4536
  //#endregion
4440
4537
  //#region src/functions/intersectKey.ts
4441
- function Kn(e, n) {
4538
+ function Yn(e, n) {
4442
4539
  let i = {};
4443
4540
  return t(e) && t(n) && r(e, (e, t) => {
4444
4541
  t in n && (i[t] = e);
@@ -4446,7 +4543,7 @@ function Kn(e, n) {
4446
4543
  }
4447
4544
  //#endregion
4448
4545
  //#region src/functions/isDifferent.ts
4449
- function qn(e, t) {
4546
+ function Xn(e, t) {
4450
4547
  let n = Object.keys(e).length !== Object.keys(t).length;
4451
4548
  return n || r(e, (e, r) => {
4452
4549
  e !== (t == null ? void 0 : t[r]) && (n = !0);
@@ -4454,7 +4551,7 @@ function qn(e, t) {
4454
4551
  }
4455
4552
  //#endregion
4456
4553
  //#region src/functions/isElementVisible.ts
4457
- function Jn(e) {
4554
+ function Zn(e) {
4458
4555
  if (!s()) return !1;
4459
4556
  let t = k(e);
4460
4557
  if (!t || "isConnected" in t && t.isConnected === !1) return !1;
@@ -4463,16 +4560,16 @@ function Jn(e) {
4463
4560
  }
4464
4561
  //#endregion
4465
4562
  //#region src/functions/isInput.ts
4466
- var Yn = (e) => {
4563
+ var Qn = (e) => {
4467
4564
  if (e instanceof HTMLElement) {
4468
4565
  let t = e.tagName.toLowerCase();
4469
4566
  return !!(t === "input" || t === "textarea" || t === "select" || e.isContentEditable || e.getAttribute("contenteditable") === "true");
4470
4567
  }
4471
4568
  return !1;
4472
- }, 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;
4473
4570
  //#endregion
4474
4571
  //#region src/functions/isFloat.ts
4475
- function Zn(e) {
4572
+ function er(e) {
4476
4573
  switch (typeof e) {
4477
4574
  case "number": return !0;
4478
4575
  case "string": return /^-?\d+(\.\d+)?$/.test(e);
@@ -4481,18 +4578,18 @@ function Zn(e) {
4481
4578
  }
4482
4579
  //#endregion
4483
4580
  //#region src/functions/isIntegerBetween.ts
4484
- function Qn(e, t) {
4581
+ function tr(e, t) {
4485
4582
  let n = Math.floor(t);
4486
4583
  return e >= n && e < n + 1;
4487
4584
  }
4488
4585
  //#endregion
4489
4586
  //#region src/functions/isSelectedByList.ts
4490
- function $n(e, t) {
4491
- 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);
4492
4589
  }
4493
4590
  //#endregion
4494
4591
  //#region src/functions/removeCommonPrefix.ts
4495
- function er(e, t) {
4592
+ function rr(e, t) {
4496
4593
  if (e.startsWith(t)) return e.slice(t.length).trim();
4497
4594
  let n = 0;
4498
4595
  for (; e[n] === t[n] && n < e.length && n < t.length;) n++;
@@ -4500,13 +4597,13 @@ function er(e, t) {
4500
4597
  }
4501
4598
  //#endregion
4502
4599
  //#region src/functions/replaceComponentName.ts
4503
- var tr = (e, t, n) => {
4600
+ var ir = (e, t, n) => {
4504
4601
  var r;
4505
4602
  return e == null || (r = e.replace(RegExp(`<${t}`, "ig"), `<${n}`)) == null || (r = r.replace(RegExp(`</${t}`, "ig"), `</${n}`)) == null ? void 0 : r.trim();
4506
4603
  };
4507
4604
  //#endregion
4508
4605
  //#region src/functions/uniqueArray.ts
4509
- function nr(e) {
4606
+ function ar(e) {
4510
4607
  return [...new Set(e)];
4511
4608
  }
4512
4609
  //#endregion
@@ -4515,21 +4612,21 @@ function $(e, n, i = !0) {
4515
4612
  let a = Z(e);
4516
4613
  return t(e) && t(n) && r(n, (n, r) => {
4517
4614
  let o = e == null ? void 0 : e[r];
4518
- 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;
4519
4616
  }), a;
4520
4617
  }
4521
4618
  //#endregion
4522
4619
  //#region src/functions/replaceTemplate.ts
4523
- function rr(e, t) {
4620
+ function or(e, t) {
4524
4621
  let n = e;
4525
4622
  return r(t, (e, t) => {
4526
- n = n.replace(Pt(`[${t}]`), x(e));
4623
+ n = n.replace(Lt(`[${t}]`), S(e));
4527
4624
  }), n;
4528
4625
  }
4529
4626
  //#endregion
4530
4627
  //#region src/functions/secondToTime.ts
4531
- function ir(e, t) {
4532
- let n = v(e);
4628
+ function sr(e, t) {
4629
+ let n = y(e);
4533
4630
  if (n > 0) {
4534
4631
  let e = String(Math.floor(n / 60)).padStart(2, "0"), r = String(n % 60).padStart(2, "0");
4535
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}`;
@@ -4538,7 +4635,7 @@ function ir(e, t) {
4538
4635
  }
4539
4636
  //#endregion
4540
4637
  //#region src/functions/setValues.ts
4541
- 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 }) {
4542
4639
  if (n) {
4543
4640
  if (i(e)) {
4544
4641
  let n = e.indexOf(t), i = [...e];
@@ -4550,7 +4647,7 @@ function ar(e, t, { multiple: n = !1, maxlength: r = 0, alwaysChange: a = !0, no
4550
4647
  }
4551
4648
  //#endregion
4552
4649
  //#region src/functions/splice.ts
4553
- function or(e, n, i) {
4650
+ function lr(e, n, i) {
4554
4651
  if (t(e) && t(n)) {
4555
4652
  if (i) {
4556
4653
  let a = {}, o = !1;
@@ -4564,34 +4661,34 @@ function or(e, n, i) {
4564
4661
  }
4565
4662
  //#endregion
4566
4663
  //#region src/functions/toCamelCaseFirst.ts
4567
- function sr(e) {
4568
- return H(e).replace(/^([a-z])/, (e) => `${e.toUpperCase()}`);
4664
+ function ur(e) {
4665
+ return it(e).replace(/^([a-z])/, (e) => `${e.toUpperCase()}`);
4569
4666
  }
4570
4667
  //#endregion
4571
4668
  //#region src/functions/toKebabCase.ts
4572
- function cr(e) {
4669
+ function dr(e) {
4573
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());
4574
4671
  }
4575
4672
  //#endregion
4576
4673
  //#region src/functions/toNumberByMax.ts
4577
- function lr(e, t, n, r) {
4578
- let i = v(e), a = v(t);
4579
- 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);
4580
4677
  }
4581
- 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;
4582
4679
  //#endregion
4583
4680
  //#region src/functions/toPercent.ts
4584
- function dr(e, t) {
4681
+ function mr(e, t) {
4585
4682
  return e === 0 ? t : 1 / e * t;
4586
4683
  }
4587
4684
  //#endregion
4588
4685
  //#region src/functions/toPercentBy100.ts
4589
- function fr(e, t) {
4590
- return dr(e, t) * 100;
4686
+ function hr(e, t) {
4687
+ return mr(e, t) * 100;
4591
4688
  }
4592
4689
  //#endregion
4593
4690
  //#region src/functions/uint8ArrayToBase64.ts
4594
- function pr(e) {
4691
+ function gr(e) {
4595
4692
  let t = "";
4596
4693
  for (let n of e) t += String.fromCharCode(n);
4597
4694
  if (s()) return window.btoa(t);
@@ -4603,7 +4700,7 @@ function pr(e) {
4603
4700
  }
4604
4701
  //#endregion
4605
4702
  //#region src/functions/writeClipboardData.ts
4606
- async function mr(e) {
4703
+ async function _r(e) {
4607
4704
  if (s()) try {
4608
4705
  await navigator.clipboard.writeText(e);
4609
4706
  } catch (n) {
@@ -4612,4 +4709,4 @@ async function mr(e) {
4612
4709
  }
4613
4710
  }
4614
4711
  //#endregion
4615
- 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 };