@dxtmisha/functional-basic 1.3.5 → 1.3.7

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
@@ -123,19 +123,6 @@ function b(e, t) {
123
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
- //#region src/functions/encodeLiteAttribute.ts
127
- var ie = {
128
- "<": "&lt;",
129
- ">": "&gt;",
130
- "&": "&amp;"
131
- };
132
- function ae(e) {
133
- return String(e).replace(/[<>&]/g, (e) => {
134
- var t;
135
- return (t = ie == null ? void 0 : ie[e]) == null ? e : t;
136
- });
137
- }
138
- //#endregion
139
126
  //#region src/functions/isFunction.ts
140
127
  function x(e) {
141
128
  return e instanceof Function || typeof e == "function";
@@ -146,42 +133,64 @@ function S(e, ...t) {
146
133
  return x(e) ? e(...t) : e;
147
134
  }
148
135
  //#endregion
136
+ //#region src/functions/anyToString.ts
137
+ function C(e, n = !0, r = !0) {
138
+ var a;
139
+ if (d(e)) return r ? e.trim() : e;
140
+ if (c(e)) return "";
141
+ if (i(e) && !e.some((e) => t(e)) && n) return e.join(",");
142
+ if (t(e)) try {
143
+ return JSON.stringify(e);
144
+ } catch (t) {
145
+ return String(e);
146
+ }
147
+ return e === !0 ? "1" : e === !1 ? "0" : (a = e == null ? void 0 : e.toString()) == null ? "" : a;
148
+ }
149
+ //#endregion
149
150
  //#region src/functions/isDomData.ts
150
- function oe() {
151
+ function ie() {
151
152
  return s() && location.href.startsWith("data:");
152
153
  }
153
154
  //#endregion
155
+ //#region src/functions/strSplit.ts
156
+ function ae(e, t, n) {
157
+ let r = C(e);
158
+ if (!n || n <= 0) return r.split(t);
159
+ let i = r.split(t, n), a = r.split(t);
160
+ return i.length === a.length ? i : (i.pop(), [...i, a.slice(n - 1).join(t)]);
161
+ }
162
+ //#endregion
154
163
  //#region \0@oxc-project+runtime@0.130.0/helpers/typeof.js
155
- function C(e) {
164
+ function w(e) {
156
165
  "@babel/helpers - typeof";
157
- return C = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
166
+ return w = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
158
167
  return typeof e;
159
168
  } : function(e) {
160
169
  return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
161
- }, C(e);
170
+ }, w(e);
162
171
  }
163
172
  //#endregion
164
173
  //#region \0@oxc-project+runtime@0.130.0/helpers/toPrimitive.js
165
- function se(e, t) {
166
- if (C(e) != "object" || !e) return e;
174
+ function oe(e, t) {
175
+ if (w(e) != "object" || !e) return e;
167
176
  var n = e[Symbol.toPrimitive];
168
177
  if (n !== void 0) {
169
178
  var r = n.call(e, t || "default");
170
- if (C(r) != "object") return r;
179
+ if (w(r) != "object") return r;
171
180
  throw TypeError("@@toPrimitive must return a primitive value.");
172
181
  }
173
182
  return (t === "string" ? String : Number)(e);
174
183
  }
175
184
  //#endregion
176
185
  //#region \0@oxc-project+runtime@0.130.0/helpers/toPropertyKey.js
177
- function ce(e) {
178
- var t = se(e, "string");
179
- return C(t) == "symbol" ? t : t + "";
186
+ function se(e) {
187
+ var t = oe(e, "string");
188
+ return w(t) == "symbol" ? t : t + "";
180
189
  }
181
190
  //#endregion
182
191
  //#region \0@oxc-project+runtime@0.130.0/helpers/defineProperty.js
183
- function w(e, t, n) {
184
- return (t = ce(t)) in e ? Object.defineProperty(e, t, {
192
+ function T(e, t, n) {
193
+ return (t = se(t)) in e ? Object.defineProperty(e, t, {
185
194
  value: n,
186
195
  enumerable: !0,
187
196
  configurable: !0,
@@ -190,9 +199,9 @@ function w(e, t, n) {
190
199
  }
191
200
  //#endregion
192
201
  //#region src/classes/ErrorCenterHandler.ts
193
- var le = class {
202
+ var ce = class {
194
203
  constructor(e) {
195
- w(this, "handlers", []), e && this.addList(e);
204
+ T(this, "handlers", []), e && this.addList(e);
196
205
  }
197
206
  has(e) {
198
207
  return !!this.get(e);
@@ -218,9 +227,9 @@ var le = class {
218
227
  toConsole(e) {
219
228
  return console.error(`Error Center: ${e.code}`), console.error("Error Center/message: ", e.message), console.error("Error Center/details", e.details), this;
220
229
  }
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);
230
+ }, le = class {
231
+ constructor(e, t = new ce()) {
232
+ T(this, "handler", void 0), T(this, "causes", []), this.handler = t, e && this.addList(e);
224
233
  }
225
234
  has(e, t) {
226
235
  return !!this.get(e, t);
@@ -257,7 +266,7 @@ var le = class {
257
266
  }
258
267
  return e;
259
268
  }
260
- }, de = [
269
+ }, ue = [
261
270
  {
262
271
  group: "api",
263
272
  code: "cacheClear",
@@ -408,7 +417,7 @@ var le = class {
408
417
  label: "Translate Error",
409
418
  message: "An error occurred while loading translations."
410
419
  }
411
- ], T = class {
420
+ ], E = class {
412
421
  static getItem() {
413
422
  return this.item;
414
423
  }
@@ -434,22 +443,63 @@ var le = class {
434
443
  this.getItem().on(e);
435
444
  }
436
445
  };
437
- w(T, "item", new ue(de));
446
+ T(E, "item", new le(ue));
447
+ //#endregion
448
+ //#region src/functions/transformation.ts
449
+ function de(e, t = !1) {
450
+ if (typeof e == "string") {
451
+ let r = e.trim();
452
+ switch (r) {
453
+ case "undefined": return;
454
+ case "null": return null;
455
+ case "true": return !0;
456
+ case "false": return !1;
457
+ default:
458
+ var n;
459
+ if (/^[{[]/.exec(r)) try {
460
+ return JSON.parse(r);
461
+ } catch (e) {
462
+ E.on({
463
+ group: "transformation",
464
+ code: "error",
465
+ details: e
466
+ });
467
+ }
468
+ else if (/^-?[0-9]+\.[0-9]+$/.exec(r)) return parseFloat(r);
469
+ else if (/^-?[0-9]+$/.exec(r)) return parseInt(r, 10);
470
+ else if (t && s() && typeof ((n = window) == null ? void 0 : n[r]) == "function") return window[r];
471
+ }
472
+ }
473
+ return e;
474
+ }
475
+ //#endregion
476
+ //#region src/functions/encodeLiteAttribute.ts
477
+ var fe = {
478
+ "<": "&lt;",
479
+ ">": "&gt;",
480
+ "&": "&amp;"
481
+ };
482
+ function pe(e) {
483
+ return String(e).replace(/[<>&]/g, (e) => {
484
+ var t;
485
+ return (t = fe == null ? void 0 : fe[e]) == null ? e : t;
486
+ });
487
+ }
438
488
  //#endregion
439
489
  //#region src/functions/getElementSafeScript.ts
440
- function fe(e, t) {
490
+ function me(e, t) {
441
491
  return `<script id="${e.replace(/"/g, "&quot;")}" type="application/json">${JSON.stringify(t).replace(/<\/(script)>/gi, "<\\/$1>")}<\/script>`;
442
492
  }
443
493
  //#endregion
444
494
  //#region src/functions/getHydrationData.ts
445
- function pe(e, t, n = !0) {
495
+ function he(e, t, n = !0) {
446
496
  if (typeof document < "u") {
447
497
  let t = document.getElementById(e);
448
498
  if (t) try {
449
499
  let e = JSON.parse(t.textContent || "");
450
500
  return n && t.remove(), e;
451
501
  } catch (t) {
452
- T.on({
502
+ E.on({
453
503
  group: "hydration",
454
504
  code: "error",
455
505
  details: {
@@ -463,7 +513,7 @@ function pe(e, t, n = !0) {
463
513
  }
464
514
  //#endregion
465
515
  //#region src/classes/ServerStorage.ts
466
- var me = "__ui:server-storage__", he = "__ui:server:storage:id__", E = class {
516
+ var D = "__ui:server-storage__", ge = "__ui:server:storage:id__", O = class {
467
517
  static init(e) {
468
518
  return this.listener || (this.listener = e), this;
469
519
  }
@@ -493,7 +543,7 @@ var me = "__ui:server-storage__", he = "__ui:server:storage:id__", E = class {
493
543
  e in t && delete t[e];
494
544
  }
495
545
  static toString() {
496
- return fe(he, this.getDataForHydration());
546
+ return me(ge, this.getDataForHydration());
497
547
  }
498
548
  static getStorage(e = !0, t) {
499
549
  var n;
@@ -501,17 +551,17 @@ var me = "__ui:server-storage__", he = "__ui:server:storage:id__", E = class {
501
551
  let r = (n = this.listener) == null ? void 0 : n.call(this);
502
552
  if (!r) {
503
553
  var i;
504
- return this.hideError || T.on({
554
+ return this.hideError || E.on({
505
555
  group: "storage",
506
556
  code: "context",
507
557
  details: { status: t }
508
558
  }), e && !this.storage && (this.storage = {}), (i = this.storage) == null ? {} : i;
509
559
  }
510
- return me in r || (r[me] = {}), r[me];
560
+ return D in r || (r[D] = {}), r[D];
511
561
  }
512
562
  static getStorageDom() {
513
563
  if (!this.storage) {
514
- let e = pe(he, {});
564
+ let e = he(ge, {});
515
565
  this.storage = {}, r(e, (e, t) => {
516
566
  this.storage[t] = {
517
567
  value: e,
@@ -528,16 +578,16 @@ var me = "__ui:server-storage__", he = "__ui:server:storage:id__", E = class {
528
578
  }), t;
529
579
  }
530
580
  };
531
- w(E, "storage", void 0), w(E, "listener", void 0), w(E, "hideError", void 0);
581
+ T(O, "storage", void 0), T(O, "listener", void 0), T(O, "hideError", void 0);
532
582
  //#endregion
533
583
  //#region src/classes/DataStorage.ts
534
- var ge = "ui-storage", _e = () => E.get("__ui:data-storage__", () => ({})), D = class {
584
+ var _e = "ui-storage", ve = () => O.get("__ui:data-storage__", () => ({})), k = class {
535
585
  static setPrefix(e) {
536
- ge = e;
586
+ _e = e;
537
587
  }
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();
588
+ constructor(e, t = !1, n = E.getItem()) {
589
+ T(this, "name", void 0), T(this, "isSession", void 0), T(this, "errorCenter", void 0), T(this, "value", void 0), T(this, "age", void 0), this.name = e, this.isSession = t, this.errorCenter = n;
590
+ let r = `${t ? "session" : "storage"}#${e}`, i = ve();
541
591
  if (r in i) return i[r];
542
592
  this.make(), i[r] = this;
543
593
  }
@@ -549,7 +599,7 @@ var ge = "ui-storage", _e = () => E.get("__ui:data-storage__", () => ({})), D =
549
599
  if (this.value = S(e), this.age = Date.now(), this.value === void 0) this.remove();
550
600
  else {
551
601
  var t;
552
- (t = this.getMethod()) == null || t.setItem(this.getIndex(), ae(JSON.stringify({
602
+ (t = this.getMethod()) == null || t.setItem(this.getIndex(), pe(JSON.stringify({
553
603
  value: this.value,
554
604
  age: this.age
555
605
  })));
@@ -567,14 +617,14 @@ var ge = "ui-storage", _e = () => E.get("__ui:data-storage__", () => ({})), D =
567
617
  return c(e) || this.age && this.age + e * 1e3 >= Date.now();
568
618
  }
569
619
  getMethod() {
570
- if (s() && !oe()) {
620
+ if (s() && !ie()) {
571
621
  var e, t;
572
622
  let n = this.isSession ? (e = window) == null ? void 0 : e.sessionStorage : (t = window) == null ? void 0 : t.localStorage;
573
623
  if (n) return n;
574
624
  }
575
625
  }
576
626
  getIndex() {
577
- return `${ge}__${this.name}`;
627
+ return `${_e}__${this.name}`;
578
628
  }
579
629
  getValue() {
580
630
  var e, t;
@@ -593,9 +643,137 @@ var ge = "ui-storage", _e = () => E.get("__ui:data-storage__", () => ({})), D =
593
643
  let e = this.getValue();
594
644
  return e ? (this.value = e.value, this.age = e.age) : (this.value = void 0, this.age = void 0), this;
595
645
  }
596
- }, ve = "__ui:geo-code__", ye = class {
646
+ }, ye = "__ui:cookie-block__", be = class {
647
+ constructor() {
648
+ T(this, "storage", new k(ye));
649
+ }
650
+ get() {
651
+ var e;
652
+ return (e = this.storage.get()) == null ? !1 : e;
653
+ }
654
+ set(e) {
655
+ this.storage.set(e);
656
+ }
657
+ }, xe = class {
658
+ static getItem() {
659
+ return O.get("__ui:cookie-block__", () => new be());
660
+ }
661
+ static get() {
662
+ return this.getItem().get();
663
+ }
664
+ static set(e) {
665
+ this.getItem().set(e);
666
+ }
667
+ }, Se = "__ui:cookie-storage__", A = class {
668
+ static init(e, t, n) {
669
+ this.getListener = e, this.getListenerRaw = t, this.setListener = n;
670
+ }
671
+ static reset() {
672
+ this.getListener = void 0, this.getListenerRaw = void 0, this.setListener = void 0;
673
+ }
674
+ static get(e, t) {
675
+ var n, r;
676
+ let i = (n = (r = this.getListener) == null ? void 0 : r.call(this, e)) == null ? this.initItems()[e] : n;
677
+ return i === void 0 && t !== void 0 ? this.set(e, t) : de(i);
678
+ }
679
+ static set(e, t, n) {
680
+ let r = S(t);
681
+ if (xe.get()) return r;
682
+ let i = C(r, !1);
683
+ return this.setListener ? this.setListener(e, i, this.format(e, i, n), n) : (this.initItems()[e] = i === "" ? void 0 : r, this.hasDom() && (document.cookie = this.format(e, i, n))), r;
684
+ }
685
+ static remove(e) {
686
+ this.set(e, "", { age: -1 });
687
+ }
688
+ static update() {
689
+ s() && (O.remove(Se), this.initItems());
690
+ }
691
+ static format(e, t, n) {
692
+ return [
693
+ `${encodeURIComponent(e)}=${encodeURIComponent(t)}`,
694
+ this.toMaxAge(t, n == null ? void 0 : n.age),
695
+ this.toSameSite(n == null ? void 0 : n.sameSite),
696
+ this.toPath(n == null ? void 0 : n.path),
697
+ this.toDomain(n == null ? void 0 : n.domain),
698
+ this.toSecure(n == null ? void 0 : n.secure),
699
+ this.toHttpOnly(n == null ? void 0 : n.httpOnly),
700
+ this.toPartitioned(n == null ? void 0 : n.partitioned),
701
+ ...this.toArguments(n == null ? void 0 : n.arguments)
702
+ ].filter(Boolean).join("; ");
703
+ }
704
+ static hasDom() {
705
+ return s() && !ie();
706
+ }
707
+ static parse(e) {
708
+ let t = {};
709
+ for (let n of e.split(";")) {
710
+ let [e, r] = ae(n.trim(), "=", 2);
711
+ e && l(r) && (t[e] = r);
712
+ }
713
+ return t;
714
+ }
715
+ static initItems() {
716
+ return O.get(Se, () => {
717
+ var e;
718
+ if (this.hasDom()) return this.parse(document.cookie);
719
+ let t = (e = this.getListenerRaw) == null ? void 0 : e.call(this);
720
+ return l(t) ? this.parse(t) : {};
721
+ });
722
+ }
723
+ static toMaxAge(e, t) {
724
+ return `Max-Age=${encodeURIComponent(e === "" ? -1 : t == null ? 10080 * 60 : t)}`;
725
+ }
726
+ static toSameSite(e) {
727
+ return `SameSite=${encodeURIComponent(e == null ? "Strict" : e)}`;
728
+ }
729
+ static toPath(e) {
730
+ return `Path=${encodeURIComponent(e == null ? "/" : e)}`;
731
+ }
732
+ static toDomain(e) {
733
+ return e ? `Domain=${encodeURIComponent(e)}` : void 0;
734
+ }
735
+ static toSecure(e) {
736
+ return e ? "Secure" : void 0;
737
+ }
738
+ static toHttpOnly(e) {
739
+ return e ? "HttpOnly" : void 0;
740
+ }
741
+ static toPartitioned(e) {
742
+ return e ? "Partitioned" : void 0;
743
+ }
744
+ static toArguments(e) {
745
+ return e === void 0 ? [] : Array.isArray(e) ? e : Object.entries(e).map(([e, t]) => `${e}=${C(t)}`);
746
+ }
747
+ };
748
+ T(A, "getListener", void 0), T(A, "getListenerRaw", void 0), T(A, "setListener", void 0);
749
+ //#endregion
750
+ //#region src/classes/Cookie.ts
751
+ var Ce = () => O.get("__ui:cookie-items__", () => ({})), we = class e {
752
+ static getInstance(t) {
753
+ var n, r;
754
+ return (n = (r = Ce()) == null ? void 0 : r[t]) == null ? new e(t) : n;
755
+ }
756
+ constructor(e) {
757
+ T(this, "name", void 0), T(this, "value", void 0), T(this, "options", {}), this.name = e;
758
+ let t = Ce();
759
+ if (e in t) return t[e];
760
+ this.value = A.get(this.name), t[e] = this;
761
+ }
762
+ get(e, t) {
763
+ return this.value === void 0 && e && this.set(e, t), this.value;
764
+ }
765
+ set(e, t) {
766
+ this.value = S(e), Object.assign(this.options, t), this.update();
767
+ }
768
+ remove() {
769
+ this.set("");
770
+ }
771
+ update() {
772
+ A.set(this.name, this.value, this.options);
773
+ }
774
+ }, Te = "ui-geo-code", Ee = "__ui:geo-code__", De = class {
597
775
  constructor() {
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);
776
+ T(this, "storage", new k(Ee)), T(this, "location", void 0), T(this, "valueDefault", void 0), T(this, "item", void 0), T(this, "language", void 0), T(this, "timezone", (/* @__PURE__ */ new Date()).getTimezoneOffset()), this.location = this.findLocation(), this.item = this.getByCode(this.location), this.language = this.findLanguage(this.location);
599
777
  }
600
778
  get() {
601
779
  return this.item;
@@ -659,14 +837,23 @@ var ge = "ui-storage", _e = () => E.get("__ui:data-storage__", () => ({})), D =
659
837
  return `${e.language}-${e.country}`;
660
838
  }
661
839
  set(e, t) {
662
- this.location = e, this.item = this.getByCode(this.location), this.language = this.findLanguage(this.location), t && this.storage.set(this.location);
840
+ this.location = e, this.item = this.getByCode(this.location), this.language = this.findLanguage(this.location), t && (this.storage.set(this.location), this.getCookie().set(this.location));
663
841
  }
664
842
  setTimezone(e) {
665
843
  this.timezone = e;
666
844
  }
845
+ setValueDefault(e) {
846
+ this.valueDefault = e, this.location = this.findLocation(), this.item = this.getByCode(this.location), this.language = this.findLanguage(this.location);
847
+ }
848
+ getCookie() {
849
+ return we.getInstance(Te);
850
+ }
667
851
  findLocation() {
852
+ return this.findLocationDom() || this.getCookie().get() || this.valueDefault || "en-GB";
853
+ }
854
+ findLocationDom() {
668
855
  var e;
669
- return s() && (this.storage.get() || ((e = document.querySelector("html")) == null ? void 0 : e.lang) || navigator.language || navigator.languages[0] || "en-GB") || "en-GB";
856
+ return s() && (this.storage.get() || ((e = document.querySelector("html")) == null ? void 0 : e.lang) || navigator.language || navigator.languages[0] || void 0) || void 0;
670
857
  }
671
858
  findLanguage(e) {
672
859
  return e && /[a-z]{2}/.test(e) ? this.toLanguage(e) : this.item.language;
@@ -684,9 +871,9 @@ var ge = "ui-storage", _e = () => E.get("__ui:data-storage__", () => ({})), D =
684
871
  firstDay: (e == null ? void 0 : e.firstDay) || "Mo"
685
872
  };
686
873
  }
687
- }, O = class {
874
+ }, j = class {
688
875
  static getObject() {
689
- return E.get("__ui:geo-instance__", () => new ye());
876
+ return O.get("__ui:geo-instance__", () => new De());
690
877
  }
691
878
  static get() {
692
879
  return this.getObject().get();
@@ -742,17 +929,20 @@ var ge = "ui-storage", _e = () => E.get("__ui:data-storage__", () => ({})), D =
742
929
  static setTimezone(e) {
743
930
  this.getObject().setTimezone(e);
744
931
  }
932
+ static setValueDefault(e) {
933
+ this.getObject().setValueDefault(e);
934
+ }
745
935
  };
746
936
  //#endregion
747
937
  //#region src/functions/isWindow.ts
748
- function be(e) {
938
+ function Oe(e) {
749
939
  return s() && e === window;
750
940
  }
751
941
  //#endregion
752
942
  //#region src/functions/getElement.ts
753
- function k(e) {
943
+ function M(e) {
754
944
  if (!s()) return d(e) ? void 0 : e;
755
- if (be(e)) return document.body;
945
+ if (Oe(e)) return document.body;
756
946
  if (d(e)) {
757
947
  var t;
758
948
  return (t = document.querySelector(e)) == null ? void 0 : t;
@@ -761,30 +951,30 @@ function k(e) {
761
951
  }
762
952
  //#endregion
763
953
  //#region src/functions/getElementOrWindow.ts
764
- function xe(e) {
765
- return be(e) ? e : k(e);
954
+ function ke(e) {
955
+ return Oe(e) ? e : M(e);
766
956
  }
767
957
  //#endregion
768
958
  //#region src/functions/isInDom.ts
769
- function Se(e) {
959
+ function Ae(e) {
770
960
  var t;
771
- return (e == null ? void 0 : e.isConnected) || !!((t = k(e)) != null && t.closest("html"));
961
+ return (e == null ? void 0 : e.isConnected) || !!((t = M(e)) != null && t.closest("html"));
772
962
  }
773
963
  //#endregion
774
964
  //#region src/functions/toArray.ts
775
- function A(e) {
965
+ function N(e) {
776
966
  return Array.isArray(e) ? e : [e];
777
967
  }
778
968
  //#endregion
779
969
  //#region src/classes/EventItem.ts
780
- var Ce = class {
970
+ var je = class {
781
971
  constructor(e, n = ["click"], r, i, a) {
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
- if (Se(this.elementControl)) {
972
+ T(this, "listener", void 0), T(this, "options", void 0), T(this, "detail", void 0), T(this, "element", void 0), T(this, "elementControl", void 0), T(this, "elementControlEdit", void 0), T(this, "type", void 0), T(this, "listenerRecent", (e) => {
973
+ if (Ae(this.elementControl)) {
784
974
  var n, r;
785
975
  (n = this.listener) == null || n.call(this.element, e, this.detail), t(this.options) && (r = this.options) != null && r.once && this.stop();
786
976
  } else this.stop();
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);
977
+ }), T(this, "activity", !1), T(this, "activityItems", []), this.listener = r, this.options = i, this.detail = a, this.element = ke(e), this.elementControl = M(e), this.type = N(n);
788
978
  }
789
979
  isActive() {
790
980
  return this.activity;
@@ -793,14 +983,14 @@ var Ce = class {
793
983
  return this.element;
794
984
  }
795
985
  setElement(e) {
796
- let t = xe(e);
797
- return this.elementControlEdit || (this.elementControl = k(e)), this.element = t, this.reset(), this;
986
+ let t = ke(e);
987
+ return this.elementControlEdit || (this.elementControl = M(e)), this.element = t, this.reset(), this;
798
988
  }
799
989
  setElementControl(e) {
800
- return this.elementControl = k(e), this.elementControlEdit = !c(this.elementControl), this.elementControlEdit || (this.elementControl = k(this.element)), this;
990
+ return this.elementControl = M(e), this.elementControlEdit = !c(this.elementControl), this.elementControlEdit || (this.elementControl = M(this.element)), this;
801
991
  }
802
992
  setType(e) {
803
- return this.type = A(e), this.reset(), this;
993
+ return this.type = N(e), this.reset(), this;
804
994
  }
805
995
  setListener(e) {
806
996
  return this.listener = e, this;
@@ -869,9 +1059,9 @@ var Ce = class {
869
1059
  }
870
1060
  return !1;
871
1061
  }
872
- }, we = "ui-loading", Te = class {
873
- constructor(e = we) {
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));
1062
+ }, Me = "ui-loading", Ne = class {
1063
+ constructor(e = Me) {
1064
+ T(this, "eventName", void 0), T(this, "value", 0), T(this, "event", void 0), T(this, "registrationList", []), this.eventName = e, s() && (this.event = new je(window, this.eventName));
875
1065
  }
876
1066
  is() {
877
1067
  return this.value > 0;
@@ -887,7 +1077,7 @@ var Ce = class {
887
1077
  }
888
1078
  registrationEvent(e, t) {
889
1079
  if (s()) {
890
- let n = new Ce(window, this.eventName, e).setElementControl(t).start();
1080
+ let n = new je(window, this.eventName, e).setElementControl(t).start();
891
1081
  this.registrationList.push({
892
1082
  item: n,
893
1083
  listener: e,
@@ -902,7 +1092,7 @@ var Ce = class {
902
1092
  var e;
903
1093
  (e = this.event) == null || e.dispatch({ loading: this.is() });
904
1094
  }
905
- }, j = class {
1095
+ }, P = class {
906
1096
  static is() {
907
1097
  return this.getItem().is();
908
1098
  }
@@ -910,7 +1100,7 @@ var Ce = class {
910
1100
  return this.getItem().get();
911
1101
  }
912
1102
  static getItem() {
913
- return E.get("__ui:loading-instance__", () => new Te());
1103
+ return O.get("__ui:loading-instance__", () => new Ne());
914
1104
  }
915
1105
  static show() {
916
1106
  this.getItem().show();
@@ -924,7 +1114,7 @@ var Ce = class {
924
1114
  static unregistrationEvent(e, t) {
925
1115
  this.getItem().unregistrationEvent(e, t);
926
1116
  }
927
- }, Ee, De = 1440 * 60, M = class {
1117
+ }, Pe, Fe = 1440 * 60, F = class {
928
1118
  static init(e, t, n, r) {
929
1119
  this.getListener = e, this.setListener = t, this.removeListener = n, r && (this.cacheStepAgeClearOld = r, this.stepAgeClearOld = r);
930
1120
  }
@@ -934,7 +1124,7 @@ var Ce = class {
934
1124
  static async get(e) {
935
1125
  let t = await this.getItemOrListener(e);
936
1126
  return this.clearOld().catch((e) => {
937
- T.on({
1127
+ E.on({
938
1128
  group: "api",
939
1129
  code: "cacheClear",
940
1130
  details: e
@@ -946,7 +1136,7 @@ var Ce = class {
946
1136
  let t = this.generateKey(e);
947
1137
  return await this.get(t);
948
1138
  }
949
- static async set(e, t, n = De) {
1139
+ static async set(e, t, n = Fe) {
950
1140
  let r = {
951
1141
  value: t,
952
1142
  age: n,
@@ -1009,12 +1199,12 @@ var Ce = class {
1009
1199
  }
1010
1200
  }
1011
1201
  };
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);
1202
+ Pe = F, T(F, "items", void 0), T(F, "getListener", void 0), T(F, "setListener", void 0), T(F, "removeListener", void 0), T(F, "cacheStepAgeClearOld", 16384), T(F, "stepAgeClearOld", Pe.cacheStepAgeClearOld);
1013
1203
  //#endregion
1014
1204
  //#region src/classes/ApiStatus.ts
1015
- var Oe = class {
1205
+ var Ie = class {
1016
1206
  constructor() {
1017
- w(this, "value", void 0);
1207
+ T(this, "value", void 0);
1018
1208
  }
1019
1209
  get() {
1020
1210
  return this.value;
@@ -1074,15 +1264,15 @@ var Oe = class {
1074
1264
  setValue(e, t) {
1075
1265
  this.value || (this.value = {}), this.value[e] = t;
1076
1266
  }
1077
- }, ke = [
1267
+ }, Le = [
1078
1268
  "success",
1079
1269
  "status",
1080
1270
  "code",
1081
1271
  "message",
1082
1272
  "error"
1083
- ], Ae = class {
1273
+ ], Re = class {
1084
1274
  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;
1275
+ T(this, "apiFetch", void 0), T(this, "query", void 0), T(this, "end", void 0), T(this, "error", void 0), T(this, "data", void 0), T(this, "dataMod", void 0), this.apiFetch = e, this.query = t, this.end = n, this.error = r;
1086
1276
  }
1087
1277
  async init() {
1088
1278
  return this.data = await this.readData(), this;
@@ -1112,18 +1302,18 @@ var Oe = class {
1112
1302
  }
1113
1303
  initItem(e) {
1114
1304
  let t = { ...e.data };
1115
- return ke.forEach((r) => {
1305
+ return Le.forEach((r) => {
1116
1306
  if (r in e && !(r in t) && (t[r] = e[r], r === "error" && n(e[r]))) {
1117
1307
  var i, a, o, s;
1118
1308
  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
1309
  }
1120
1310
  }), t;
1121
1311
  }
1122
- }, N = /* @__PURE__ */ function(e) {
1312
+ }, I = /* @__PURE__ */ function(e) {
1123
1313
  return e.delete = "DELETE", e.get = "GET", e.post = "POST", e.put = "PUT", e.patch = "PATCH", e;
1124
- }({}), je = class {
1314
+ }({}), ze = class {
1125
1315
  constructor() {
1126
- w(this, "value", void 0);
1316
+ T(this, "value", void 0);
1127
1317
  }
1128
1318
  is() {
1129
1319
  return !!this.value;
@@ -1150,9 +1340,9 @@ var Oe = class {
1150
1340
  e.has(t) || e.set(t, n);
1151
1341
  }), this;
1152
1342
  }
1153
- }, Me = class {
1343
+ }, Be = class {
1154
1344
  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;
1345
+ T(this, "method", void 0), T(this, "response", void 0), T(this, "error", void 0), T(this, "jsonResponse", void 0), this.method = e, this.response = t, this.error = n;
1156
1346
  }
1157
1347
  getMethod() {
1158
1348
  return this.method;
@@ -1174,9 +1364,9 @@ var Oe = class {
1174
1364
  getStatus() {
1175
1365
  return this.response.status;
1176
1366
  }
1177
- }, Ne = class {
1367
+ }, Ve = class {
1178
1368
  constructor() {
1179
- w(this, "storage", []);
1369
+ T(this, "storage", []);
1180
1370
  }
1181
1371
  async find(e, t) {
1182
1372
  let n = await this.getBody(t), r = this.getCode(n), i = this.getMessage(n) || t.statusText, a = this.findItem(e, t, r);
@@ -1193,7 +1383,7 @@ var Oe = class {
1193
1383
  };
1194
1384
  }
1195
1385
  add(e, t, n) {
1196
- return A(e).forEach((e) => {
1386
+ return N(e).forEach((e) => {
1197
1387
  let r = e.url || t, i = e.method || n;
1198
1388
  r && i && this.storage.push({
1199
1389
  ...e,
@@ -1228,19 +1418,19 @@ var Oe = class {
1228
1418
  getMessage(e) {
1229
1419
  return this.getDataByKey(e, "message");
1230
1420
  }
1231
- }, Pe = class {
1421
+ }, He = class {
1232
1422
  static getStorage() {
1233
- return E.get("__ui:api-error-storage__", () => new Ne());
1423
+ return O.get("__ui:api-error-storage__", () => new Ve());
1234
1424
  }
1235
1425
  static add(e, t, n) {
1236
1426
  this.getStorage().add(e, t, n);
1237
1427
  }
1238
1428
  static async getItem(e, t) {
1239
- return new Me(e, t, await this.getStorage().find(e, t));
1429
+ return new Be(e, t, await this.getStorage().find(e, t));
1240
1430
  }
1241
- }, Fe = class {
1431
+ }, Ue = class {
1242
1432
  constructor() {
1243
- w(this, "headers", {});
1433
+ T(this, "headers", {});
1244
1434
  }
1245
1435
  get(e, t = "application/json;charset=UTF-8") {
1246
1436
  if (e === null) return;
@@ -1254,15 +1444,15 @@ var Oe = class {
1254
1444
  set(e) {
1255
1445
  return this.headers = e, this;
1256
1446
  }
1257
- }, Ie = "__ui:api:hydration:id__", Le = class {
1447
+ }, We = "__ui:api:hydration:id__", Ge = class {
1258
1448
  constructor() {
1259
- w(this, "list", []);
1449
+ T(this, "list", []);
1260
1450
  }
1261
1451
  initResponse(e) {
1262
1452
  s() && e.add(this.getListByClient());
1263
1453
  }
1264
1454
  toClient(e, t) {
1265
- let { path: n, method: r = N.get, request: i, global: a = r === N.get } = e;
1455
+ let { path: n, method: r = I.get, request: i, global: a = r === I.get } = e;
1266
1456
  !a || !n || s() || this.list.push({
1267
1457
  path: n,
1268
1458
  method: r,
@@ -1271,14 +1461,14 @@ var Oe = class {
1271
1461
  });
1272
1462
  }
1273
1463
  toString() {
1274
- return fe(Ie, this.list);
1464
+ return me(We, this.list);
1275
1465
  }
1276
1466
  getListByClient() {
1277
- return pe(Ie, []);
1467
+ return he(We, []);
1278
1468
  }
1279
- }, Re = class {
1469
+ }, Ke = class {
1280
1470
  constructor() {
1281
- w(this, "callback", void 0), w(this, "callbackEnd", void 0), w(this, "loading", !1);
1471
+ T(this, "callback", void 0), T(this, "callbackEnd", void 0), T(this, "loading", !1);
1282
1472
  }
1283
1473
  async make(e, t) {
1284
1474
  if (e && this.callback) return this.go(t);
@@ -1304,15 +1494,15 @@ var Oe = class {
1304
1494
  };
1305
1495
  //#endregion
1306
1496
  //#region src/functions/executePromise.ts
1307
- async function ze(e, ...t) {
1497
+ async function qe(e, ...t) {
1308
1498
  let n = S(e, ...t);
1309
1499
  return n instanceof Promise ? await n : n;
1310
1500
  }
1311
1501
  //#endregion
1312
1502
  //#region src/classes/ApiResponse.ts
1313
- var Be = "d-response-loading", Ve = class {
1503
+ var Je = "d-response-loading", Ye = class {
1314
1504
  constructor(e) {
1315
- w(this, "requestDefault", void 0), w(this, "first", []), w(this, "response", []), w(this, "loading", void 0), w(this, "devMode", !1), this.requestDefault = e;
1505
+ T(this, "requestDefault", void 0), T(this, "first", []), T(this, "response", []), T(this, "loading", void 0), T(this, "devMode", !1), this.requestDefault = e;
1316
1506
  }
1317
1507
  get(e = "", t, n, r) {
1318
1508
  return this.response.find((i) => !this.isDisable(i) && this.isPath(i, e) && t === i.method && this.isFirst(i, r) && this.isResponse(i, n) ? (this.isDevMode(r) && console.warn(`Response type: ${i.path}`), this.first.push(i), !0) : !1);
@@ -1321,7 +1511,7 @@ var Be = "d-response-loading", Ve = class {
1321
1511
  return this.response.filter((e) => e.isForGlobal !== !0);
1322
1512
  }
1323
1513
  add(e) {
1324
- return this.response.push(...A(e)), this;
1514
+ return this.response.push(...N(e)), this;
1325
1515
  }
1326
1516
  setDevMode(e) {
1327
1517
  return this.devMode = e, this;
@@ -1355,7 +1545,7 @@ var Be = "d-response-loading", Ve = class {
1355
1545
  }
1356
1546
  readData(e) {
1357
1547
  if (!s()) return;
1358
- let { path: t = "", method: n = N.get, global: r = n === N.get, devMode: i = !1 } = e;
1548
+ let { path: t = "", method: n = I.get, global: r = n === I.get, devMode: i = !1 } = e;
1359
1549
  if (r || this.isDevMode(i)) {
1360
1550
  let r = this.requestDefault.request(e.request), a = this.get(t, n, r, i);
1361
1551
  if (a) return {
@@ -1366,9 +1556,9 @@ var Be = "d-response-loading", Ve = class {
1366
1556
  }
1367
1557
  fetch(e, t) {
1368
1558
  return this.startResponseLoading(), new Promise((n) => {
1369
- ze(x(e.response) ? e.response(t) : e.response).then((t) => {
1370
- e != null && e.lag ? (j.show(), setTimeout(() => {
1371
- this.stopResponseLoading(), n(t), j.hide();
1559
+ qe(x(e.response) ? e.response(t) : e.response).then((t) => {
1560
+ e != null && e.lag ? (P.show(), setTimeout(() => {
1561
+ this.stopResponseLoading(), n(t), P.hide();
1372
1562
  }, f(0, 2e3))) : (this.stopResponseLoading(), n(t));
1373
1563
  });
1374
1564
  });
@@ -1377,17 +1567,17 @@ var Be = "d-response-loading", Ve = class {
1377
1567
  return e.response;
1378
1568
  }
1379
1569
  startResponseLoading() {
1380
- this.loading && clearTimeout(this.loading), s() && document.body.classList.add(Be);
1570
+ this.loading && clearTimeout(this.loading), s() && document.body.classList.add(Je);
1381
1571
  }
1382
1572
  stopResponseLoading() {
1383
1573
  s() && (this.loading = setTimeout(() => {
1384
- this.loading = void 0, document.body.classList.remove(Be);
1574
+ this.loading = void 0, document.body.classList.remove(Je);
1385
1575
  }, 2400));
1386
1576
  }
1387
- }, He = class {
1577
+ }, Xe = class {
1388
1578
  constructor(e = "/api/", t = {}) {
1389
- 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;
1390
- 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;
1579
+ T(this, "url", void 0), T(this, "headers", void 0), T(this, "requestDefault", void 0), T(this, "status", void 0), T(this, "response", void 0), T(this, "preparation", void 0), T(this, "loading", void 0), T(this, "errorCenter", void 0), T(this, "hydration", void 0), T(this, "timeout", 16e3), T(this, "origin", void 0), this.url = e;
1580
+ let { headersClass: n = Ue, requestDefaultClass: r = ze, statusClass: i = Ie, responseClass: a = Ye, preparationClass: o = Ke, loadingClass: s = P.getItem(), errorCenterClass: c = E.getItem(), hydrationClass: l = Ge } = t;
1391
1581
  this.headers = new n(), this.requestDefault = new r(), this.status = new i(), this.response = new a(this.requestDefault), this.preparation = new o(), this.loading = s, this.errorCenter = c, this.hydration = new l(), this.hydration.initResponse(this.response);
1392
1582
  }
1393
1583
  isLocalhost() {
@@ -1406,14 +1596,14 @@ var Be = "d-response-loading", Ve = class {
1406
1596
  return this.origin && /^\//.test(this.url) ? `${this.origin}${this.url}` : this.url;
1407
1597
  }
1408
1598
  getUrl(e, t = !0) {
1409
- return `${t ? this.getOrigin() : ""}${e}`.replace("{locale}", O.getLocation()).replace("{country}", O.getCountry()).replace("{language}", O.getLanguage());
1599
+ return `${t ? this.getOrigin() : ""}${e}`.replace("{locale}", j.getLocation()).replace("{country}", j.getCountry()).replace("{language}", j.getLanguage());
1410
1600
  }
1411
- getBody(e = {}, t = N.get) {
1601
+ getBody(e = {}, t = I.get) {
1412
1602
  if (e instanceof FormData) return e;
1413
- if (t !== N.get && l(e)) return d(e) ? e : JSON.stringify(e);
1603
+ if (t !== I.get && l(e)) return d(e) ? e : JSON.stringify(e);
1414
1604
  }
1415
- getBodyForGet(e, t = "", n = N.get) {
1416
- if (n === N.get) {
1605
+ getBodyForGet(e, t = "", n = I.get) {
1606
+ if (n === I.get) {
1417
1607
  let n = t.match(/\?/) ? "&" : "?", r = typeof e == "object" ? o(e) : e;
1418
1608
  if (l(r)) return `${n}${r}`;
1419
1609
  }
@@ -1449,42 +1639,42 @@ var Be = "d-response-loading", Ve = class {
1449
1639
  get(e) {
1450
1640
  return this.request({
1451
1641
  ...e,
1452
- method: N.get
1642
+ method: I.get
1453
1643
  });
1454
1644
  }
1455
1645
  post(e) {
1456
1646
  return this.request({
1457
1647
  ...e,
1458
- method: N.post
1648
+ method: I.post
1459
1649
  });
1460
1650
  }
1461
1651
  put(e) {
1462
1652
  return this.request({
1463
1653
  ...e,
1464
- method: N.put
1654
+ method: I.put
1465
1655
  });
1466
1656
  }
1467
1657
  patch(e) {
1468
1658
  return this.request({
1469
1659
  ...e,
1470
- method: N.patch
1660
+ method: I.patch
1471
1661
  });
1472
1662
  }
1473
1663
  delete(e) {
1474
1664
  return this.request({
1475
1665
  ...e,
1476
- method: N.delete
1666
+ method: I.delete
1477
1667
  });
1478
1668
  }
1479
1669
  getRetryDelay(e, t) {
1480
1670
  return f(t, t + e * t);
1481
1671
  }
1482
1672
  async fetch(e, t = 0) {
1483
- 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);
1673
+ let { method: n = I.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);
1484
1674
  if (p) return p;
1485
- let m = await M.getByFetch(e);
1675
+ let m = await F.getByFetch(e);
1486
1676
  if (m) return this.hydration.toClient(e, m), m;
1487
- let h = new Oe(), g, _;
1677
+ let h = new Ie(), g, _;
1488
1678
  o || this.loading.show();
1489
1679
  try {
1490
1680
  await this.preparation.make(l, e);
@@ -1493,19 +1683,19 @@ var Be = "d-response-loading", Ve = class {
1493
1683
  let p = await this.preparation.makeEnd(u, r, e);
1494
1684
  if (h.setStatus(r.status, r.statusText), this.status.setStatus(r.status, r.statusText), !a && r.status >= 400) {
1495
1685
  var ne;
1496
- d && (_ = await Pe.getItem(n, r)), this.makeErrorQuery((ne = _) == null ? r : ne);
1686
+ d && (_ = await He.getItem(n, r)), this.makeErrorQuery((ne = _) == null ? r : ne);
1497
1687
  }
1498
1688
  if (p != null && p.reset && t < f || t < s) return await ee(this.getRetryDelay(t, c)), o || this.loading.hide(), await this.fetch(e, t + 1);
1499
- g = new Ae(e, r, p, _), await g.init();
1689
+ g = new Re(e, r, p, _), await g.init();
1500
1690
  } catch (e) {
1501
1691
  throw a || this.makeError(e), h.setError(String(e)), this.status.setError(String(e)), o || this.loading.hide(), e;
1502
1692
  }
1503
1693
  h.setLastResponse(g.getData()), this.status.setLastResponse(g.getData());
1504
1694
  let v = g.getAndStatus(h);
1505
- return o || this.loading.hide(), this.hydration.toClient(e, v), await M.setByFetch(e, v), v;
1695
+ return o || this.loading.hide(), this.hydration.toClient(e, v), await F.setByFetch(e, v), v;
1506
1696
  }
1507
1697
  async makeQuery(e, t) {
1508
- 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 = {
1698
+ let n = this.requestDefault.request(e.request), { pathFull: r = void 0, method: i = I.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 = {
1509
1699
  ...s,
1510
1700
  method: i,
1511
1701
  body: this.getBody(n, i)
@@ -1599,12 +1789,12 @@ var Be = "d-response-loading", Ve = class {
1599
1789
  }, n);
1600
1790
  }
1601
1791
  }
1602
- }, P = class {
1792
+ }, L = class {
1603
1793
  static isLocalhost() {
1604
1794
  return this.getItem().isLocalhost();
1605
1795
  }
1606
1796
  static getItem() {
1607
- return E.get("__ui:api-instance__", () => new He());
1797
+ return O.get("__ui:api-instance__", () => new Xe());
1608
1798
  }
1609
1799
  static getStatus() {
1610
1800
  return this.getItem().getStatus();
@@ -1624,10 +1814,10 @@ var Be = "d-response-loading", Ve = class {
1624
1814
  static getUrl(e, t = !0) {
1625
1815
  return this.getItem().getUrl(e, t);
1626
1816
  }
1627
- static getBody(e = {}, t = N.get) {
1817
+ static getBody(e = {}, t = I.get) {
1628
1818
  return this.getItem().getBody(e, t);
1629
1819
  }
1630
- static getBodyForGet(e, t = "", n = N.get) {
1820
+ static getBodyForGet(e, t = "", n = I.get) {
1631
1821
  return this.getItem().getBodyForGet(e, t, n);
1632
1822
  }
1633
1823
  static setHeaders(e) {
@@ -1672,16 +1862,16 @@ var Be = "d-response-loading", Ve = class {
1672
1862
  static delete(e) {
1673
1863
  return this.getItem().delete(e);
1674
1864
  }
1675
- }, Ue = class {
1676
- constructor(e, t, n, r = T.getItem()) {
1677
- if (w(this, "callback", void 0), w(this, "callbackError", void 0), w(this, "channel", void 0), w(this, "update", (e) => {
1865
+ }, Ze = class {
1866
+ constructor(e, t, n, r = E.getItem()) {
1867
+ if (T(this, "callback", void 0), T(this, "callbackError", void 0), T(this, "channel", void 0), T(this, "update", (e) => {
1678
1868
  var t;
1679
1869
  return (t = this.callback) == null || t.call(this, e), this;
1680
- }), w(this, "updateError", (e) => {
1870
+ }), T(this, "updateError", (e) => {
1681
1871
  var t;
1682
1872
  return (t = this.callbackError) == null || t.call(this, e), this;
1683
1873
  }), this.callback = t, this.callbackError = n, s()) try {
1684
- this.channel = new BroadcastChannel(`${We()}__${e}`), this.channel.onmessage = this.update, this.channel.onmessageerror = this.updateError;
1874
+ this.channel = new BroadcastChannel(`${Qe()}__${e}`), this.channel.onmessage = this.update, this.channel.onmessageerror = this.updateError;
1685
1875
  } catch (e) {
1686
1876
  r.on({
1687
1877
  group: "broadcast",
@@ -1707,9 +1897,9 @@ var Be = "d-response-loading", Ve = class {
1707
1897
  var e;
1708
1898
  return (e = this.channel) == null || e.close(), this.channel = void 0, this;
1709
1899
  }
1710
- }, We = () => new D("__ui:broadcast-name__").get(() => `name_${f(1e6, 9999999)}`), Ge = class {
1900
+ }, Qe = () => new k("__ui:broadcast-name__").get(() => `name_${f(1e6, 9999999)}`), $e = class {
1711
1901
  constructor(e) {
1712
- w(this, "callback", void 0), w(this, "cache", void 0), w(this, "cacheOld", void 0), w(this, "comparisons", []), this.callback = e;
1902
+ T(this, "callback", void 0), T(this, "cache", void 0), T(this, "cacheOld", void 0), T(this, "comparisons", []), this.callback = e;
1713
1903
  }
1714
1904
  getCache(e) {
1715
1905
  return this.isUpdate(e) && (this.cacheOld = this.cache, this.setCache()), this.cache;
@@ -1729,9 +1919,9 @@ var Be = "d-response-loading", Ve = class {
1729
1919
  isUpdate(e) {
1730
1920
  return this.cache === void 0 || this.comparisons.length !== e.length || this.comparisons.findIndex((t, n) => t !== e[n]) >= 0 ? (this.comparisons = [...e], !0) : !1;
1731
1921
  }
1732
- }, Ke = class {
1922
+ }, et = class {
1733
1923
  constructor() {
1734
- w(this, "cache", {});
1924
+ T(this, "cache", {});
1735
1925
  }
1736
1926
  get(e, t, n) {
1737
1927
  return this.getCacheItem(e, t).getCache(n == null ? [] : n);
@@ -1740,11 +1930,11 @@ var Be = "d-response-loading", Ve = class {
1740
1930
  return await this.getCacheItem(e, t).getCacheAsync(n == null ? [] : n);
1741
1931
  }
1742
1932
  getCacheItem(e, t) {
1743
- return e in this.cache || (this.cache[e] = new Ge(t)), this.cache[e];
1933
+ return e in this.cache || (this.cache[e] = new $e(t)), this.cache[e];
1744
1934
  }
1745
- }, qe = class {
1935
+ }, tt = class {
1746
1936
  static getItem() {
1747
- return E.get("__ui:cache-static__", () => new Ke());
1937
+ return O.get("__ui:cache-static__", () => new et());
1748
1938
  }
1749
1939
  static get(e, t, n) {
1750
1940
  return this.getItem().get(e, t, n);
@@ -1754,194 +1944,13 @@ var Be = "d-response-loading", Ve = class {
1754
1944
  }
1755
1945
  };
1756
1946
  //#endregion
1757
- //#region src/functions/anyToString.ts
1758
- function F(e, n = !0, r = !0) {
1759
- var a;
1760
- if (d(e)) return r ? e.trim() : e;
1761
- if (c(e)) return "";
1762
- if (i(e) && !e.some((e) => t(e)) && n) return e.join(",");
1763
- if (t(e)) try {
1764
- return JSON.stringify(e);
1765
- } catch (t) {
1766
- return String(e);
1767
- }
1768
- return e === !0 ? "1" : e === !1 ? "0" : (a = e == null ? void 0 : e.toString()) == null ? "" : a;
1769
- }
1770
- //#endregion
1771
- //#region src/functions/strSplit.ts
1772
- function Je(e, t, n) {
1773
- let r = F(e);
1774
- if (!n || n <= 0) return r.split(t);
1775
- let i = r.split(t, n), a = r.split(t);
1776
- return i.length === a.length ? i : (i.pop(), [...i, a.slice(n - 1).join(t)]);
1777
- }
1778
- //#endregion
1779
- //#region src/functions/transformation.ts
1780
- function Ye(e, t = !1) {
1781
- if (typeof e == "string") {
1782
- let r = e.trim();
1783
- switch (r) {
1784
- case "undefined": return;
1785
- case "null": return null;
1786
- case "true": return !0;
1787
- case "false": return !1;
1788
- default:
1789
- var n;
1790
- if (/^[{[]/.exec(r)) try {
1791
- return JSON.parse(r);
1792
- } catch (e) {
1793
- T.on({
1794
- group: "transformation",
1795
- code: "error",
1796
- details: e
1797
- });
1798
- }
1799
- else if (/^-?[0-9]+\.[0-9]+$/.exec(r)) return parseFloat(r);
1800
- else if (/^-?[0-9]+$/.exec(r)) return parseInt(r, 10);
1801
- else if (t && s() && typeof ((n = window) == null ? void 0 : n[r]) == "function") return window[r];
1802
- }
1803
- }
1804
- return e;
1805
- }
1806
- //#endregion
1807
- //#region src/classes/CookieBlockInstance.ts
1808
- var Xe = "__ui:cookie-block__", Ze = class {
1809
- constructor() {
1810
- w(this, "storage", new D(Xe));
1811
- }
1812
- get() {
1813
- var e;
1814
- return (e = this.storage.get()) == null ? !1 : e;
1815
- }
1816
- set(e) {
1817
- this.storage.set(e);
1818
- }
1819
- }, Qe = class {
1820
- static getItem() {
1821
- return E.get("__ui:cookie-block__", () => new Ze());
1822
- }
1823
- static get() {
1824
- return this.getItem().get();
1825
- }
1826
- static set(e) {
1827
- this.getItem().set(e);
1828
- }
1829
- }, $e = "__ui:cookie-storage__", I = class {
1830
- static init(e, t, n) {
1831
- this.getListener = e, this.getListenerRaw = t, this.setListener = n;
1832
- }
1833
- static reset() {
1834
- this.getListener = void 0, this.getListenerRaw = void 0, this.setListener = void 0;
1835
- }
1836
- static get(e, t) {
1837
- var n, r;
1838
- let i = (n = (r = this.getListener) == null ? void 0 : r.call(this, e)) == null ? this.initItems()[e] : n;
1839
- return i === void 0 && t !== void 0 ? this.set(e, t) : Ye(i);
1840
- }
1841
- static set(e, t, n) {
1842
- let r = S(t);
1843
- if (Qe.get()) return r;
1844
- let i = F(r, !1);
1845
- 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;
1846
- }
1847
- static remove(e) {
1848
- this.set(e, "", { age: -1 });
1849
- }
1850
- static update() {
1851
- s() && (E.remove($e), this.initItems());
1852
- }
1853
- static format(e, t, n) {
1854
- return [
1855
- `${encodeURIComponent(e)}=${encodeURIComponent(t)}`,
1856
- this.toMaxAge(t, n == null ? void 0 : n.age),
1857
- this.toSameSite(n == null ? void 0 : n.sameSite),
1858
- this.toPath(n == null ? void 0 : n.path),
1859
- this.toDomain(n == null ? void 0 : n.domain),
1860
- this.toSecure(n == null ? void 0 : n.secure),
1861
- this.toHttpOnly(n == null ? void 0 : n.httpOnly),
1862
- this.toPartitioned(n == null ? void 0 : n.partitioned),
1863
- ...this.toArguments(n == null ? void 0 : n.arguments)
1864
- ].filter(Boolean).join("; ");
1865
- }
1866
- static hasDom() {
1867
- return s() && !oe();
1868
- }
1869
- static parse(e) {
1870
- let t = {};
1871
- for (let n of e.split(";")) {
1872
- let [e, r] = Je(n.trim(), "=", 2);
1873
- e && l(r) && (t[e] = r);
1874
- }
1875
- return t;
1876
- }
1877
- static initItems() {
1878
- return E.get($e, () => {
1879
- var e;
1880
- if (this.hasDom()) return this.parse(document.cookie);
1881
- let t = (e = this.getListenerRaw) == null ? void 0 : e.call(this);
1882
- return l(t) ? this.parse(t) : {};
1883
- });
1884
- }
1885
- static toMaxAge(e, t) {
1886
- return `Max-Age=${encodeURIComponent(e === "" ? -1 : t == null ? 10080 * 60 : t)}`;
1887
- }
1888
- static toSameSite(e) {
1889
- return `SameSite=${encodeURIComponent(e == null ? "Strict" : e)}`;
1890
- }
1891
- static toPath(e) {
1892
- return `Path=${encodeURIComponent(e == null ? "/" : e)}`;
1893
- }
1894
- static toDomain(e) {
1895
- return e ? `Domain=${encodeURIComponent(e)}` : void 0;
1896
- }
1897
- static toSecure(e) {
1898
- return e ? "Secure" : void 0;
1899
- }
1900
- static toHttpOnly(e) {
1901
- return e ? "HttpOnly" : void 0;
1902
- }
1903
- static toPartitioned(e) {
1904
- return e ? "Partitioned" : void 0;
1905
- }
1906
- static toArguments(e) {
1907
- return e === void 0 ? [] : Array.isArray(e) ? e : Object.entries(e).map(([e, t]) => `${e}=${F(t)}`);
1908
- }
1909
- };
1910
- w(I, "getListener", void 0), w(I, "getListenerRaw", void 0), w(I, "setListener", void 0);
1911
- //#endregion
1912
- //#region src/classes/Cookie.ts
1913
- var et = () => E.get("__ui:cookie-items__", () => ({})), tt = class e {
1914
- static getInstance(t) {
1915
- var n, r;
1916
- return (n = (r = et()) == null ? void 0 : r[t]) == null ? new e(t) : n;
1917
- }
1918
- constructor(e) {
1919
- w(this, "name", void 0), w(this, "value", void 0), w(this, "options", {}), this.name = e;
1920
- let t = et();
1921
- if (e in t) return t[e];
1922
- this.value = I.get(this.name), t[e] = this;
1923
- }
1924
- get(e, t) {
1925
- return this.value === void 0 && e && this.set(e, t), this.value;
1926
- }
1927
- set(e, t) {
1928
- this.value = S(e), Object.assign(this.options, t), this.update();
1929
- }
1930
- remove() {
1931
- this.set("");
1932
- }
1933
- update() {
1934
- I.set(this.name, this.value, this.options);
1935
- }
1936
- };
1937
- //#endregion
1938
1947
  //#region src/functions/toDate.ts
1939
- function L(e) {
1948
+ function R(e) {
1940
1949
  var t, n, r, i, a, o, s, l;
1941
1950
  if (e instanceof Date) return e;
1942
1951
  if (c(e)) return /* @__PURE__ */ new Date();
1943
1952
  if (typeof e == "number") return new Date(e);
1944
- let u = e, d = O.getTimezoneFormat().trim();
1953
+ let u = e, d = j.getTimezoneFormat().trim();
1945
1954
  e.replace(/^([\s\S]+)([-+]\d{2}:?\d{2})$/, (e, t, n) => (u = t, d = n.trim(), e));
1946
1955
  let f = (t = (n = (r = (i = (a = (o = (s = (l = /^\d{4}\d{2}\d{2}$/.exec(u) && `${u.replace(/^(\d{4})(\d{2})(\d{2})$/, "$1-$2-$3")}T00:00:00`) == null ? /^\d{4}\d{2}$/.exec(u) && `${u.replace(/^(\d{4})(\d{2})$/, "$1-$2")}-01T00:00:00` : l) == null ? /^\d{4}\d{2}\d{2} \d{2}:\d{2}:\d{2}$/.exec(u) && u.replace(/^(\d{4})(\d{2})(\d{2}) (\d{2}):(\d{2}):(\d{2})$/, "$1-$2-$3T$4:$5:$6") : s) == null ? /^\d{4}-\d{2}-\d{2}$/.exec(u) && `${u}T00:00:00` : o) == null ? /^\d{4}-\d{2}$/.exec(u) && `${u}-01T00:00:00` : a) == null ? /^\d{4}$/.exec(u) && `${u}-01-01T00:00:00` : i) == null ? /^\d{2}:\d{2}$/.exec(u) && `2000-01-01T${u}:00` : r) == null ? /^\d{2}:\d{2}:\d{2}$/.exec(u) && `2000-01-01T${u}` : n) == null ? u.replace(" ", "T") : t;
1947
1956
  return /* @__PURE__ */ new Date(`${f.trim()}${d}`);
@@ -1953,24 +1962,24 @@ function nt(e, t) {
1953
1962
  }
1954
1963
  //#endregion
1955
1964
  //#region src/classes/GeoIntl.ts
1956
- var R = class e {
1957
- static isItem(e = O.getLocation()) {
1958
- return this.getLocation(e) in B;
1965
+ var z = class e {
1966
+ static isItem(e = j.getLocation()) {
1967
+ return this.getLocation(e) in V;
1959
1968
  }
1960
- static getLocation(e = O.getLocation()) {
1961
- if (e in z) return z[e];
1962
- let t = O.find(e);
1963
- return z[e] = t.standard, t.standard;
1969
+ static getLocation(e = j.getLocation()) {
1970
+ if (e in B) return B[e];
1971
+ let t = j.find(e);
1972
+ return B[e] = t.standard, t.standard;
1964
1973
  }
1965
- static getInstance(t = O.getLocation()) {
1974
+ static getInstance(t = j.getLocation()) {
1966
1975
  let n = this.getLocation(t);
1967
- return n in B ? B[n] : new e(t);
1976
+ return n in V ? V[n] : new e(t);
1968
1977
  }
1969
- constructor(e = O.getLocation(), t = T.getItem()) {
1970
- w(this, "errorCenter", void 0), w(this, "geo", void 0), this.errorCenter = t, this.geo = O.find(e);
1978
+ constructor(e = j.getLocation(), t = E.getItem()) {
1979
+ T(this, "errorCenter", void 0), T(this, "geo", void 0), this.errorCenter = t, this.geo = j.find(e);
1971
1980
  let n = this.getLocation();
1972
- if (n in B) return B[n];
1973
- z[e] = n, B[n] = this;
1981
+ if (n in V) return V[n];
1982
+ B[e] = n, V[n] = this;
1974
1983
  }
1975
1984
  getLocation() {
1976
1985
  return this.geo.standard;
@@ -2001,7 +2010,7 @@ var R = class e {
2001
2010
  type: "language",
2002
2011
  style: t
2003
2012
  };
2004
- return this.display(O.getByCode(e).language, n);
2013
+ return this.display(j.getByCode(e).language, n);
2005
2014
  }
2006
2015
  countryName(e, t) {
2007
2016
  let n = {
@@ -2126,18 +2135,18 @@ var R = class e {
2126
2135
  return `${this.number(a, r)} ${(i = o == null ? void 0 : o[0]) == null ? "" : i}`.trim();
2127
2136
  }
2128
2137
  date(e, t, n, r) {
2129
- let i = L(e), a = typeof n == "string", o = this.dateOptions(t, a ? n : "short");
2138
+ let i = R(e), a = typeof n == "string", o = this.dateOptions(t, a ? n : "short");
2130
2139
  return r && (o.hour12 = !1), a || Object.assign(o, n), i.toLocaleString(this.getLocation(), o);
2131
2140
  }
2132
2141
  relative(e, t, n) {
2133
- let r = L(e), i = n || /* @__PURE__ */ new Date(), a = {
2142
+ let r = R(e), i = n || /* @__PURE__ */ new Date(), a = {
2134
2143
  numeric: "auto",
2135
2144
  ...typeof t == "string" ? { style: t } : t || {}
2136
2145
  }, o = "second", s = (r.getTime() - i.getTime()) / 1e3;
2137
2146
  return Math.abs(s) >= 60 && (o = "minute", s /= 60, Math.abs(s) >= 60 && (o = "hour", s /= 60, Math.abs(s) >= 24 && (o = "day", s /= 24, Math.abs(s) >= 30 && (o = "month", s /= 30, Math.abs(s) >= 12 && (o = "year", s /= 12))))), this.relativeByValue(s, o, a);
2138
2147
  }
2139
2148
  relativeLimit(e, t, n, r, i, a, o) {
2140
- let s = L(e), c = n || /* @__PURE__ */ new Date(), l = new Date(c), u = new Date(c);
2149
+ let s = R(e), c = n || /* @__PURE__ */ new Date(), l = new Date(c), u = new Date(c);
2141
2150
  return l.setDate(c.getDate() - t), u.setDate(c.getDate() + t), s >= l && s <= u ? this.relative(s, r, c) : this.date(s, a, i, o);
2142
2151
  }
2143
2152
  relativeByValue(e, t, n) {
@@ -2158,7 +2167,7 @@ var R = class e {
2158
2167
  }
2159
2168
  month(e, t) {
2160
2169
  try {
2161
- if (this.hasIntlDateTimeFormat()) return Intl.DateTimeFormat(this.getLocation(), { month: t || "long" }).format(L(e));
2170
+ if (this.hasIntlDateTimeFormat()) return Intl.DateTimeFormat(this.getLocation(), { month: t || "long" }).format(R(e));
2162
2171
  } catch (e) {
2163
2172
  this.errorCenter.on({
2164
2173
  group: "intl",
@@ -2192,7 +2201,7 @@ var R = class e {
2192
2201
  }
2193
2202
  weekday(e, t) {
2194
2203
  try {
2195
- if (this.hasIntlDateTimeFormat()) return new Intl.DateTimeFormat(this.getLocation(), { weekday: t || "long" }).format(L(e));
2204
+ if (this.hasIntlDateTimeFormat()) return new Intl.DateTimeFormat(this.getLocation(), { weekday: t || "long" }).format(R(e));
2196
2205
  } catch (e) {
2197
2206
  this.errorCenter.on({
2198
2207
  group: "intl",
@@ -2294,15 +2303,15 @@ var R = class e {
2294
2303
  "second"
2295
2304
  ].indexOf(e) !== -1 && (n.second = "2-digit")), n;
2296
2305
  }
2297
- }, z = {}, B = {}, rt = class e {
2298
- constructor(e, t = "date", n = O.getLocation()) {
2299
- 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({
2306
+ }, B = {}, V = {}, rt = class e {
2307
+ constructor(e, t = "date", n = j.getLocation()) {
2308
+ T(this, "type", void 0), T(this, "code", void 0), T(this, "date", void 0), T(this, "hour24", !1), T(this, "watch", void 0), this.type = t, this.code = n, this.date = R(e), isNaN(this.date.getTime()) && E.on({
2300
2309
  group: "intl",
2301
2310
  code: "invalid"
2302
2311
  });
2303
2312
  }
2304
2313
  getIntl() {
2305
- return R.getInstance(this.code);
2314
+ return z.getInstance(this.code);
2306
2315
  }
2307
2316
  getDate() {
2308
2317
  return this.date;
@@ -2405,7 +2414,7 @@ var R = class e {
2405
2414
  ].indexOf(this.type) !== -1 && (i = n.locale("time"))), `${r.join("-")}${i ? `T${i}${t ? n.getTimeZone() : ""}` : ""}`;
2406
2415
  }
2407
2416
  setDate(e) {
2408
- return this.date = L(e), this.update(), this;
2417
+ return this.date = R(e), this.update(), this;
2409
2418
  }
2410
2419
  setType(e) {
2411
2420
  return this.type = e, this.update(), this;
@@ -2557,11 +2566,11 @@ var R = class e {
2557
2566
  };
2558
2567
  //#endregion
2559
2568
  //#region src/functions/getItemByPath.ts
2560
- function V(e, n) {
2569
+ function H(e, n) {
2561
2570
  var r;
2562
2571
  if (!l(n, !0)) return;
2563
- let i = Je(n, ".", 2), a = i[0];
2564
- 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;
2572
+ let i = ae(n, ".", 2), a = i[0];
2573
+ return a && e != null && e[a] && t(e[a]) && i != null && i[1] ? H(e[a], i[1]) : (r = e == null ? void 0 : e[a]) == null ? void 0 : r;
2565
2574
  }
2566
2575
  //#endregion
2567
2576
  //#region src/functions/toCamelCase.ts
@@ -2570,11 +2579,11 @@ function it(e) {
2570
2579
  }
2571
2580
  //#endregion
2572
2581
  //#region src/types/formattersTypes.ts
2573
- var H = /* @__PURE__ */ function(e) {
2582
+ var U = /* @__PURE__ */ function(e) {
2574
2583
  return e.currency = "currency", e.date = "date", e.name = "name", e.number = "number", e.plural = "plural", e.unit = "unit", e;
2575
2584
  }({}), at = class {
2576
2585
  constructor(e, t) {
2577
- w(this, "options", void 0), w(this, "list", void 0), this.options = e, this.list = t;
2586
+ T(this, "options", void 0), T(this, "list", void 0), this.options = e, this.list = t;
2578
2587
  }
2579
2588
  is() {
2580
2589
  return !!this.list;
@@ -2586,7 +2595,7 @@ var H = /* @__PURE__ */ function(e) {
2586
2595
  return this.list ? this.isArray() ? this.list.length : 1 : 0;
2587
2596
  }
2588
2597
  getList() {
2589
- return this.list ? A(this.list) : [];
2598
+ return this.list ? N(this.list) : [];
2590
2599
  }
2591
2600
  getOptions() {
2592
2601
  return this.options;
@@ -2604,50 +2613,50 @@ var H = /* @__PURE__ */ function(e) {
2604
2613
  getFormatData(e) {
2605
2614
  let t = {};
2606
2615
  return r(this.options, (n, r) => {
2607
- let i = `${it(r)}Format`, a = V(e, r);
2616
+ let i = `${it(r)}Format`, a = H(e, r);
2608
2617
  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);
2609
2618
  }), t;
2610
2619
  }
2611
2620
  transformation(e, t, n, r) {
2612
- if (l(e) || n === H.name) switch (n) {
2613
- case H.currency: return this.formatCurrency(e, t, r);
2614
- case H.date: return this.formatDate(e, r);
2615
- case H.name: return this.formatName(t, r);
2616
- case H.number: return this.formatNumber(e, r);
2617
- case H.plural: return this.formatPlural(e, r);
2618
- case H.unit: return this.formatUnit(e, r);
2621
+ if (l(e) || n === U.name) switch (n) {
2622
+ case U.currency: return this.formatCurrency(e, t, r);
2623
+ case U.date: return this.formatDate(e, r);
2624
+ case U.name: return this.formatName(t, r);
2625
+ case U.number: return this.formatNumber(e, r);
2626
+ case U.plural: return this.formatPlural(e, r);
2627
+ case U.unit: return this.formatUnit(e, r);
2619
2628
  default: return String(e);
2620
2629
  }
2621
2630
  return "";
2622
2631
  }
2623
2632
  formatCurrency(e, t, n) {
2624
2633
  var r;
2625
- let i = n != null && n.currencyPropName ? V(t, n.currencyPropName) : t == null ? void 0 : t.currency;
2626
- return R.getInstance().currency(e, (r = n == null ? void 0 : n.options) == null ? i : r, n == null ? void 0 : n.numberOnly);
2634
+ let i = n != null && n.currencyPropName ? H(t, n.currencyPropName) : t == null ? void 0 : t.currency;
2635
+ return z.getInstance().currency(e, (r = n == null ? void 0 : n.options) == null ? i : r, n == null ? void 0 : n.numberOnly);
2627
2636
  }
2628
2637
  formatDate(e, t) {
2629
- return R.getInstance().date(e, t == null ? void 0 : t.type, t == null ? void 0 : t.options, t == null ? void 0 : t.hour24);
2638
+ return z.getInstance().date(e, t == null ? void 0 : t.type, t == null ? void 0 : t.options, t == null ? void 0 : t.hour24);
2630
2639
  }
2631
2640
  formatName(e, t) {
2632
2641
  var n, r, i;
2633
- let a = V(e, (n = t == null ? void 0 : t.lastPropName) == null ? "lastName" : n), o = V(e, (r = t == null ? void 0 : t.firstPropName) == null ? "firstName" : r), s = V(e, (i = t == null ? void 0 : t.surname) == null ? "surname" : i);
2634
- return a && o ? R.getInstance().fullName(a, o, s, t == null ? void 0 : t.short) : "";
2642
+ let a = H(e, (n = t == null ? void 0 : t.lastPropName) == null ? "lastName" : n), o = H(e, (r = t == null ? void 0 : t.firstPropName) == null ? "firstName" : r), s = H(e, (i = t == null ? void 0 : t.surname) == null ? "surname" : i);
2643
+ return a && o ? z.getInstance().fullName(a, o, s, t == null ? void 0 : t.short) : "";
2635
2644
  }
2636
2645
  formatNumber(e, t) {
2637
- return R.getInstance().number(e, t == null ? void 0 : t.options);
2646
+ return z.getInstance().number(e, t == null ? void 0 : t.options);
2638
2647
  }
2639
2648
  formatPlural(e, t) {
2640
- return t && t.words ? R.getInstance().plural(e, t == null ? void 0 : t.words, t == null ? void 0 : t.options, t == null ? void 0 : t.optionsNumber) : e;
2649
+ return t && t.words ? z.getInstance().plural(e, t == null ? void 0 : t.words, t == null ? void 0 : t.options, t == null ? void 0 : t.optionsNumber) : e;
2641
2650
  }
2642
2651
  formatUnit(e, t) {
2643
- return t && t.unit ? R.getInstance().unit(e, t.unit) : e;
2652
+ return t && t.unit ? z.getInstance().unit(e, t.unit) : e;
2644
2653
  }
2645
2654
  }, ot = "f", st = class e {
2646
- constructor(e = O.getLocation()) {
2647
- w(this, "code", void 0), this.code = e;
2655
+ constructor(e = j.getLocation()) {
2656
+ T(this, "code", void 0), this.code = e;
2648
2657
  }
2649
2658
  get(t = this.getCode()) {
2650
- let n = O.find(t);
2659
+ let n = j.find(t);
2651
2660
  if (n) {
2652
2661
  var r;
2653
2662
  let t = this.getCountry(n);
@@ -2663,7 +2672,7 @@ var H = /* @__PURE__ */ function(e) {
2663
2672
  }
2664
2673
  }
2665
2674
  getCode() {
2666
- return this.code || O.getLocation();
2675
+ return this.code || j.getLocation();
2667
2676
  }
2668
2677
  getFlag(e = this.getCode()) {
2669
2678
  var t;
@@ -2671,7 +2680,7 @@ var H = /* @__PURE__ */ function(e) {
2671
2680
  }
2672
2681
  getList(e, t = !0) {
2673
2682
  let n = r(this.getCodes(e), (e) => this.get(e));
2674
- return t ? new R().sort(n, (e, t) => [e.label, t.label]) : n;
2683
+ return t ? new z().sort(n, (e, t) => [e.label, t.label]) : n;
2675
2684
  }
2676
2685
  getNational(t, n = !0) {
2677
2686
  let i = r(this.getList(t, !1), (t) => {
@@ -2683,13 +2692,13 @@ var H = /* @__PURE__ */ function(e) {
2683
2692
  nationalCountry: n == null ? void 0 : n.country
2684
2693
  };
2685
2694
  });
2686
- return n ? new R().sort(i, (e, t) => [e.label, t.label]) : i;
2695
+ return n ? new z().sort(i, (e, t) => [e.label, t.label]) : i;
2687
2696
  }
2688
2697
  setCode(e) {
2689
2698
  return this.code = e, this;
2690
2699
  }
2691
2700
  getLocation() {
2692
- return new R(this.code);
2701
+ return new z(this.code);
2693
2702
  }
2694
2703
  getCodes(t) {
2695
2704
  return t == null ? Object.keys(e.flags) : t;
@@ -2701,7 +2710,7 @@ var H = /* @__PURE__ */ function(e) {
2701
2710
  return this.getLocation().countryName(e.country);
2702
2711
  }
2703
2712
  };
2704
- w(st, "flags", {
2713
+ T(st, "flags", {
2705
2714
  AD: "f-ad",
2706
2715
  AE: "f-ae",
2707
2716
  AF: "f-af",
@@ -3002,11 +3011,11 @@ var ct = class {
3002
3011
  return (t = (n = e.match(/\*/g)) == null ? void 0 : n.length) == null ? 0 : t;
3003
3012
  }
3004
3013
  static makeList() {
3005
- let e = r(O.getList(), (e) => {
3014
+ let e = r(j.getList(), (e) => {
3006
3015
  if (e != null && e.phoneMask) return {
3007
3016
  phone: (e == null ? void 0 : e.phoneCode) && Number(e.phoneCode.replace(/[^0-9]+/g, "")) || void 0,
3008
3017
  within: (e == null ? void 0 : e.phoneWithin) || 0,
3009
- mask: A(e.phoneMask),
3018
+ mask: N(e.phoneMask),
3010
3019
  value: e.country
3011
3020
  };
3012
3021
  });
@@ -3045,12 +3054,12 @@ var ct = class {
3045
3054
  return e.replace(/\*/, this.getWithinSymbol(t));
3046
3055
  }
3047
3056
  };
3048
- w(ct, "list", void 0), w(ct, "map", void 0);
3057
+ T(ct, "list", void 0), T(ct, "map", void 0);
3049
3058
  //#endregion
3050
3059
  //#region src/classes/Global.ts
3051
3060
  var lt = class {
3052
3061
  static getItem() {
3053
- return E.get("__ui:global-instance__", () => ({}));
3062
+ return O.get("__ui:global-instance__", () => ({}));
3054
3063
  }
3055
3064
  static get(e) {
3056
3065
  var t;
@@ -3062,7 +3071,7 @@ var lt = class {
3062
3071
  }
3063
3072
  }, ut = class {
3064
3073
  constructor() {
3065
- w(this, "hash", void 0), w(this, "watch", {}), w(this, "block", !1), w(this, "time", void 0);
3074
+ T(this, "hash", void 0), T(this, "watch", {}), T(this, "block", !1), T(this, "time", void 0);
3066
3075
  }
3067
3076
  get(e, t) {
3068
3077
  let n = this.getHash();
@@ -3092,7 +3101,7 @@ var lt = class {
3092
3101
  let e = {};
3093
3102
  if (s()) {
3094
3103
  let t = location.hash.matchAll(/([\w-]+)[:=]([^;]+)/gi);
3095
- for (let n of t) e[n[1]] = Ye(n[2]);
3104
+ for (let n of t) e[n[1]] = de(n[2]);
3096
3105
  }
3097
3106
  return e;
3098
3107
  }
@@ -3128,7 +3137,7 @@ var lt = class {
3128
3137
  }
3129
3138
  }, dt = class {
3130
3139
  static getItem() {
3131
- return E.get("__ui:hash-instance__", () => new ut());
3140
+ return O.get("__ui:hash-instance__", () => new ut());
3132
3141
  }
3133
3142
  static get(e, t) {
3134
3143
  return this.getItem().get(e, t);
@@ -3161,7 +3170,7 @@ var lt = class {
3161
3170
  return r(this.icons, (e, t) => t.replace(/^@/, ""));
3162
3171
  }
3163
3172
  static getUrlGlobal() {
3164
- return `${P.isLocalhost(), ""}${this.url}`;
3173
+ return `${L.isLocalhost(), ""}${this.url}`;
3165
3174
  }
3166
3175
  static add(e, t) {
3167
3176
  this.icons[this.getName(e)] = t;
@@ -3192,17 +3201,17 @@ var lt = class {
3192
3201
  return new Promise((e) => setTimeout(() => e(), ft));
3193
3202
  }
3194
3203
  };
3195
- w(mt, "icons", {}), w(mt, "url", "/icons/");
3204
+ T(mt, "icons", {}), T(mt, "url", "/icons/");
3196
3205
  //#endregion
3197
3206
  //#region src/functions/getElementItem.ts
3198
3207
  function ht(e, t, n) {
3199
3208
  var r, i;
3200
- return (r = (i = k(e)) == null ? void 0 : i[t]) == null ? n : r;
3209
+ return (r = (i = M(e)) == null ? void 0 : i[t]) == null ? n : r;
3201
3210
  }
3202
3211
  //#endregion
3203
3212
  //#region src/functions/setElementItem.ts
3204
3213
  function gt(e, n, i) {
3205
- let a = k(e);
3214
+ let a = M(e);
3206
3215
  if (a) {
3207
3216
  let e = ht(a, n);
3208
3217
  if (t(e) && t(i)) r(i, (t, n) => {
@@ -3217,7 +3226,7 @@ function gt(e, n, i) {
3217
3226
  }
3218
3227
  //#endregion
3219
3228
  //#region src/functions/createElement.ts
3220
- function U(e, t = "div", i, a) {
3229
+ function W(e, t = "div", i, a) {
3221
3230
  if (!s()) return;
3222
3231
  let o = document.createElement(t);
3223
3232
  return typeof i == "function" ? i(o) : n(i) && r(i, (e, t) => {
@@ -3233,7 +3242,7 @@ var _t = {
3233
3242
  "\"": "&quot;",
3234
3243
  "'": "&#39;"
3235
3244
  };
3236
- function W(e) {
3245
+ function G(e) {
3237
3246
  return String(e).replace(/[&<>"']/g, (e) => {
3238
3247
  var t;
3239
3248
  return (t = _t == null ? void 0 : _t[e]) == null ? e : t;
@@ -3241,9 +3250,9 @@ function W(e) {
3241
3250
  }
3242
3251
  //#endregion
3243
3252
  //#region src/classes/MetaManager.ts
3244
- var G = class {
3253
+ var K = class {
3245
3254
  constructor(e, t = !1) {
3246
- w(this, "listMeta", void 0), w(this, "isProperty", void 0), w(this, "items", {}), this.listMeta = e, this.isProperty = t, this.update();
3255
+ T(this, "listMeta", void 0), T(this, "isProperty", void 0), T(this, "items", {}), this.listMeta = e, this.isProperty = t, this.update();
3247
3256
  }
3248
3257
  getListMeta() {
3249
3258
  return this.listMeta;
@@ -3283,17 +3292,17 @@ var G = class {
3283
3292
  let r = this.findMetaElement(e);
3284
3293
  if (r) return r.content = n, this;
3285
3294
  let i = { content: n };
3286
- return this.isProperty ? i.property = e : i.name = e, U(document.head, "meta", i), this;
3295
+ return this.isProperty ? i.property = e : i.name = e, W(document.head, "meta", i), this;
3287
3296
  }
3288
3297
  toHtmlString(e) {
3289
3298
  var t;
3290
3299
  let n = (t = this.items[e]) == null ? "" : t;
3291
3300
  if (e === "title") return "";
3292
- let r = W(n);
3301
+ let r = G(n);
3293
3302
  return r ? `<meta ${this.getAttributeName()}="${e}" content="${r}">` : "";
3294
3303
  }
3295
3304
  toHtmlTitle(e) {
3296
- return ae(e);
3305
+ return pe(e);
3297
3306
  }
3298
3307
  update() {
3299
3308
  return this.listMeta.forEach((e) => {
@@ -3301,11 +3310,11 @@ var G = class {
3301
3310
  this.items[e] = (t = (n = this.findMetaElement(e)) == null ? void 0 : n.content) == null ? "" : t;
3302
3311
  }), this;
3303
3312
  }
3304
- }, K = /* @__PURE__ */ function(e) {
3313
+ }, q = /* @__PURE__ */ function(e) {
3305
3314
  return e.title = "title", e.description = "description", e.keywords = "keywords", e.canonical = "canonical", e.robots = "robots", e.author = "author", e;
3306
3315
  }({}), vt = /* @__PURE__ */ function(e) {
3307
3316
  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;
3308
- }({}), q = /* @__PURE__ */ function(e) {
3317
+ }({}), J = /* @__PURE__ */ function(e) {
3309
3318
  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;
3310
3319
  }({}), yt = /* @__PURE__ */ function(e) {
3311
3320
  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;
@@ -3317,105 +3326,105 @@ var G = class {
3317
3326
  return e.newborn = "newborn", e.infant = "infant", e.toddler = "toddler", e.kids = "kids", e.adult = "adult", e;
3318
3327
  }({}), Ct = /* @__PURE__ */ function(e) {
3319
3328
  return e.female = "female", e.male = "male", e.unisex = "unisex", e;
3320
- }({}), J = /* @__PURE__ */ function(e) {
3329
+ }({}), Y = /* @__PURE__ */ function(e) {
3321
3330
  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;
3322
3331
  }({}), wt = /* @__PURE__ */ function(e) {
3323
3332
  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;
3324
- }({}), Tt = class extends G {
3333
+ }({}), Tt = class extends K {
3325
3334
  constructor() {
3326
- super(Object.values(q), !0);
3335
+ super(Object.values(J), !0);
3327
3336
  }
3328
3337
  getTitle() {
3329
- return this.get(q.title);
3338
+ return this.get(J.title);
3330
3339
  }
3331
3340
  getType() {
3332
- return this.get(q.type);
3341
+ return this.get(J.type);
3333
3342
  }
3334
3343
  getUrl() {
3335
- return this.get(q.url);
3344
+ return this.get(J.url);
3336
3345
  }
3337
3346
  getImage() {
3338
- return this.get(q.image);
3347
+ return this.get(J.image);
3339
3348
  }
3340
3349
  getDescription() {
3341
- return this.get(q.description);
3350
+ return this.get(J.description);
3342
3351
  }
3343
3352
  getLocale() {
3344
- return this.get(q.locale);
3353
+ return this.get(J.locale);
3345
3354
  }
3346
3355
  getSiteName() {
3347
- return this.get(q.siteName);
3356
+ return this.get(J.siteName);
3348
3357
  }
3349
3358
  setTitle(e) {
3350
- return this.set(q.title, e);
3359
+ return this.set(J.title, e);
3351
3360
  }
3352
3361
  setType(e) {
3353
- return this.set(q.type, e);
3362
+ return this.set(J.type, e);
3354
3363
  }
3355
3364
  setUrl(e) {
3356
- return this.set(q.url, e);
3365
+ return this.set(J.url, e);
3357
3366
  }
3358
3367
  setImage(e) {
3359
- return this.set(q.image, e);
3368
+ return this.set(J.image, e);
3360
3369
  }
3361
3370
  setDescription(e) {
3362
- return this.set(q.description, e);
3371
+ return this.set(J.description, e);
3363
3372
  }
3364
3373
  setLocale(e) {
3365
- return this.set(q.locale, e);
3374
+ return this.set(J.locale, e);
3366
3375
  }
3367
3376
  setSiteName(e) {
3368
- return this.set(q.siteName, e);
3377
+ return this.set(J.siteName, e);
3369
3378
  }
3370
- }, Et = class extends G {
3379
+ }, Et = class extends K {
3371
3380
  constructor() {
3372
- super(Object.values(J));
3381
+ super(Object.values(Y));
3373
3382
  }
3374
3383
  getCard() {
3375
- return this.get(J.card);
3384
+ return this.get(Y.card);
3376
3385
  }
3377
3386
  getSite() {
3378
- return this.get(J.site);
3387
+ return this.get(Y.site);
3379
3388
  }
3380
3389
  getCreator() {
3381
- return this.get(J.creator);
3390
+ return this.get(Y.creator);
3382
3391
  }
3383
3392
  getUrl() {
3384
- return this.get(J.url);
3393
+ return this.get(Y.url);
3385
3394
  }
3386
3395
  getTitle() {
3387
- return this.get(J.title);
3396
+ return this.get(Y.title);
3388
3397
  }
3389
3398
  getDescription() {
3390
- return this.get(J.description);
3399
+ return this.get(Y.description);
3391
3400
  }
3392
3401
  getImage() {
3393
- return this.get(J.image);
3402
+ return this.get(Y.image);
3394
3403
  }
3395
3404
  setCard(e) {
3396
- return this.set(J.card, e), this;
3405
+ return this.set(Y.card, e), this;
3397
3406
  }
3398
3407
  setSite(e) {
3399
- return this.set(J.site, e), this;
3408
+ return this.set(Y.site, e), this;
3400
3409
  }
3401
3410
  setCreator(e) {
3402
- return this.set(J.creator, e), this;
3411
+ return this.set(Y.creator, e), this;
3403
3412
  }
3404
3413
  setUrl(e) {
3405
- return this.set(J.url, e), this;
3414
+ return this.set(Y.url, e), this;
3406
3415
  }
3407
3416
  setTitle(e) {
3408
- return this.set(J.title, e), this;
3417
+ return this.set(Y.title, e), this;
3409
3418
  }
3410
3419
  setDescription(e) {
3411
- return this.set(J.description, e), this;
3420
+ return this.set(Y.description, e), this;
3412
3421
  }
3413
3422
  setImage(e) {
3414
- return this.set(J.image, e), this;
3423
+ return this.set(Y.image, e), this;
3415
3424
  }
3416
- }, Dt = class extends G {
3425
+ }, Dt = class extends K {
3417
3426
  constructor() {
3418
- 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();
3427
+ super(Object.values(q)), T(this, "suffix", void 0), T(this, "og", void 0), T(this, "twitter", void 0), this.og = new Tt(), this.twitter = new Et();
3419
3428
  }
3420
3429
  getOg() {
3421
3430
  return this.og;
@@ -3424,26 +3433,26 @@ var G = class {
3424
3433
  return this.twitter;
3425
3434
  }
3426
3435
  getTitle() {
3427
- let e = this.get(K.title);
3436
+ let e = this.get(q.title);
3428
3437
  return !l(e) && s() && (e = document.title), e.replace(this.getSuffix(), "").trim();
3429
3438
  }
3430
3439
  getKeywords() {
3431
- return this.get(K.keywords);
3440
+ return this.get(q.keywords);
3432
3441
  }
3433
3442
  getDescription() {
3434
- return this.get(K.description);
3443
+ return this.get(q.description);
3435
3444
  }
3436
3445
  getImage() {
3437
3446
  return this.og.getImage();
3438
3447
  }
3439
3448
  getCanonical() {
3440
- return this.get(K.canonical);
3449
+ return this.get(q.canonical);
3441
3450
  }
3442
3451
  getRobots() {
3443
- return this.get(K.robots);
3452
+ return this.get(q.robots);
3444
3453
  }
3445
3454
  getAuthor() {
3446
- return this.get(K.author);
3455
+ return this.get(q.author);
3447
3456
  }
3448
3457
  getSiteName() {
3449
3458
  return this.og.getSiteName();
@@ -3453,25 +3462,25 @@ var G = class {
3453
3462
  }
3454
3463
  setTitle(e) {
3455
3464
  let t = l(e) ? `${e}${this.getSuffix()}` : this.suffix ? this.suffix : "";
3456
- return s() && (document.title = t), this.set(K.title, t), this.og.setTitle(t), this.twitter.setTitle(t), this;
3465
+ return s() && (document.title = t), this.set(q.title, t), this.og.setTitle(t), this.twitter.setTitle(t), this;
3457
3466
  }
3458
3467
  setKeywords(e) {
3459
- return this.set(K.keywords, A(e).join(", ")), this;
3468
+ return this.set(q.keywords, N(e).join(", ")), this;
3460
3469
  }
3461
3470
  setDescription(e) {
3462
- return this.set(K.description, e), this;
3471
+ return this.set(q.description, e), this;
3463
3472
  }
3464
3473
  setImage(e) {
3465
3474
  return this.og.setImage(e), this.twitter.setImage(e), this;
3466
3475
  }
3467
3476
  setCanonical(e) {
3468
- return this.set(K.canonical, e), this.og.setUrl(e), this.twitter.setUrl(e), this;
3477
+ return this.set(q.canonical, e), this.og.setUrl(e), this.twitter.setUrl(e), this;
3469
3478
  }
3470
3479
  setRobots(e) {
3471
- return this.set(K.robots, e), this;
3480
+ return this.set(q.robots, e), this;
3472
3481
  }
3473
3482
  setAuthor(e) {
3474
- return this.set(K.author, e), this;
3483
+ return this.set(q.author, e), this;
3475
3484
  }
3476
3485
  setSiteName(e) {
3477
3486
  return this.og.setSiteName(e), this.twitter.setSite(e), this;
@@ -3486,14 +3495,14 @@ var G = class {
3486
3495
  return `${super.html()}${this.og.html()}${this.twitter.html()}`;
3487
3496
  }
3488
3497
  htmlTitle() {
3489
- return this.toHtmlTitle(this.get(K.title));
3498
+ return this.toHtmlTitle(this.get(q.title));
3490
3499
  }
3491
3500
  getSuffix() {
3492
3501
  return l(this.suffix) ? ` - ${this.suffix}` : "";
3493
3502
  }
3494
3503
  }, Ot = class {
3495
3504
  static getItem() {
3496
- return E.get("__ui:meta-instance__", () => new Dt());
3505
+ return O.get("__ui:meta-instance__", () => new Dt());
3497
3506
  }
3498
3507
  static getOg() {
3499
3508
  return this.getItem().getOg();
@@ -3566,7 +3575,7 @@ var G = class {
3566
3575
  }
3567
3576
  }, kt = class {
3568
3577
  constructor(e, t = 320, n = !1) {
3569
- 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();
3578
+ T(this, "callback", void 0), T(this, "delay", void 0), T(this, "timerId", void 0), T(this, "startTime", void 0), T(this, "remaining", void 0), T(this, "completed", !1), this.callback = e, this.delay = t, n || this.resume();
3570
3579
  }
3571
3580
  resume() {
3572
3581
  if (this.timerId || this.completed) return this;
@@ -3618,14 +3627,14 @@ var G = class {
3618
3627
  return t;
3619
3628
  }
3620
3629
  static getStorage() {
3621
- return new D("__ui:scrollbar__", !0);
3630
+ return new k("__ui:scrollbar__", !0);
3622
3631
  }
3623
3632
  static getCalculate() {
3624
3633
  return this.calculate;
3625
3634
  }
3626
3635
  static createElement() {
3627
- return U(document.body, "div", (e) => {
3628
- e.style.height = "24px", e.style.overflowY = "scroll", e.style.position = "fixed", e.style.width = "100%", U(e, "div", (e) => {
3636
+ return W(document.body, "div", (e) => {
3637
+ e.style.height = "24px", e.style.overflowY = "scroll", e.style.position = "fixed", e.style.width = "100%", W(e, "div", (e) => {
3629
3638
  e.style.height = "100px";
3630
3639
  });
3631
3640
  });
@@ -3640,10 +3649,10 @@ var G = class {
3640
3649
  });
3641
3650
  }
3642
3651
  };
3643
- w(At, "calculate", !1);
3652
+ T(At, "calculate", !1);
3644
3653
  //#endregion
3645
3654
  //#region src/functions/escapeExp.ts
3646
- function Y(e) {
3655
+ function X(e) {
3647
3656
  return String(e).replace(/[.*+?^${}()|[\]\\/]/g, "\\$&");
3648
3657
  }
3649
3658
  //#endregion
@@ -3651,25 +3660,25 @@ function Y(e) {
3651
3660
  function jt(e, t = 128) {
3652
3661
  if (e instanceof RegExp) return e;
3653
3662
  if (!e || e.trim().length === 0 || e.length > t) return /^/;
3654
- let n = String(e).replace(/\s+/g, " ").trim().split(" ").map(Y).join("|");
3663
+ let n = String(e).replace(/\s+/g, " ").trim().split(" ").map(X).join("|");
3655
3664
  return RegExp(`(${n})`, "ig");
3656
3665
  }
3657
3666
  //#endregion
3658
3667
  //#region src/functions/addTagHighlightMatch.ts
3659
- var X = `___HIGHLIGHT_START_${f(1e5, 999999)}___`, Mt = `___HIGHLIGHT_END_${f(1e5, 999999)}___`, Nt = RegExp(`${X}|${Mt}`, "g");
3660
- function Pt(e, t, n = "sys-highlight-match", r = !1) {
3668
+ var Mt = `___HIGHLIGHT_START_${f(1e5, 999999)}___`, Nt = `___HIGHLIGHT_END_${f(1e5, 999999)}___`, Pt = RegExp(`${Mt}|${Nt}`, "g");
3669
+ function Ft(e, t, n = "sys-highlight-match", r = !1) {
3661
3670
  let i = a(e);
3662
3671
  if (l(i) && l(t)) {
3663
- let e = i.replace(jt(t), `${X}$1${Mt}`);
3664
- return r && (e = W(e)), e.replace(Nt, (e) => e === X ? `<span class="${n}">` : "</span>");
3672
+ let e = i.replace(jt(t), `${Mt}$1${Nt}`);
3673
+ return r && (e = G(e)), e.replace(Pt, (e) => e === Mt ? `<span class="${n}">` : "</span>");
3665
3674
  }
3666
- return r ? W(i) : i;
3675
+ return r ? G(i) : i;
3667
3676
  }
3668
3677
  //#endregion
3669
3678
  //#region src/classes/SearchListData.ts
3670
- var Ft = class {
3679
+ var It = class {
3671
3680
  constructor(e, t, n, r) {
3672
- 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;
3681
+ T(this, "list", void 0), T(this, "columns", void 0), T(this, "item", void 0), T(this, "options", void 0), T(this, "listCache", void 0), this.list = e, this.columns = t, this.item = n, this.options = r;
3673
3682
  }
3674
3683
  is() {
3675
3684
  return !!(this.list && this.columns);
@@ -3706,8 +3715,8 @@ var Ft = class {
3706
3715
  toFormatItem(e, t) {
3707
3716
  let n = {};
3708
3717
  return this.columns && this.columns.forEach((r) => {
3709
- let i = this.getColumnName(r), a = V(e, r);
3710
- n[i] = l(a) && t ? this.addTag(a) : F(a);
3718
+ let i = this.getColumnName(r), a = H(e, r);
3719
+ n[i] = l(a) && t ? this.addTag(a) : C(a);
3711
3720
  }), {
3712
3721
  ...e,
3713
3722
  ...n,
@@ -3718,7 +3727,7 @@ var Ft = class {
3718
3727
  return e.replace(/\.([a-z0-9])/gi, (e, t) => t.toUpperCase()) + "Search";
3719
3728
  }
3720
3729
  addTag(e) {
3721
- return Pt(F(e), this.item.get(), this.options.getClassName());
3730
+ return Ft(C(e), this.item.get(), this.options.getClassName());
3722
3731
  }
3723
3732
  generateCache() {
3724
3733
  if (!this.isList()) return [];
@@ -3726,8 +3735,8 @@ var Ft = class {
3726
3735
  for (let t of this.list) {
3727
3736
  let n = "";
3728
3737
  if (this.columns) for (let e of this.columns) {
3729
- let r = V(t, e);
3730
- l(r) && (n += ` ${F(r)}`);
3738
+ let r = H(t, e);
3739
+ l(r) && (n += ` ${C(r)}`);
3731
3740
  }
3732
3741
  e.push({
3733
3742
  item: t,
@@ -3742,9 +3751,9 @@ var Ft = class {
3742
3751
  resetCache() {
3743
3752
  this.listCache = void 0;
3744
3753
  }
3745
- }, It = class {
3754
+ }, Lt = class {
3746
3755
  constructor(e, t) {
3747
- w(this, "value", void 0), w(this, "options", void 0), this.value = e, this.options = t;
3756
+ T(this, "value", void 0), T(this, "options", void 0), this.value = e, this.options = t;
3748
3757
  }
3749
3758
  is() {
3750
3759
  return !!this.value;
@@ -3762,30 +3771,30 @@ var Ft = class {
3762
3771
  };
3763
3772
  //#endregion
3764
3773
  //#region src/functions/getExp.ts
3765
- function Lt(e, t = "ig", n = ":value") {
3766
- let r = Y(e);
3774
+ function Rt(e, t = "ig", n = ":value") {
3775
+ let r = X(e);
3767
3776
  return new RegExp(n.replace(/:value/g, r), t);
3768
3777
  }
3769
3778
  //#endregion
3770
3779
  //#region src/functions/getExactSearchExp.ts
3771
- function Rt(e) {
3772
- return Lt(e, "i", "(:value)");
3780
+ function zt(e) {
3781
+ return Rt(e, "i", "(:value)");
3773
3782
  }
3774
3783
  //#endregion
3775
3784
  //#region src/functions/getSearchExp.ts
3776
- function zt(e, t = 128) {
3785
+ function Bt(e, t = 128) {
3777
3786
  if (!d(e) || e.trim().length === 0 || e.length > t) return /^/;
3778
3787
  let n = [];
3779
3788
  return a(e).split(" ").forEach((e) => {
3780
- let t = Y(e).trim();
3789
+ let t = X(e).trim();
3781
3790
  l(t) && n.push(`(?=.*?${t})`);
3782
3791
  }), RegExp(`^${n.join("")}`, "i");
3783
3792
  }
3784
3793
  //#endregion
3785
3794
  //#region src/classes/SearchListMatcher.ts
3786
- var Bt = class {
3795
+ var Vt = class {
3787
3796
  constructor(e, t) {
3788
- w(this, "item", void 0), w(this, "options", void 0), w(this, "matcher", void 0), this.item = e, this.options = t, this.initMatcher();
3797
+ T(this, "item", void 0), T(this, "options", void 0), T(this, "matcher", void 0), this.item = e, this.options = t, this.initMatcher();
3789
3798
  }
3790
3799
  is() {
3791
3800
  return !!this.matcher;
@@ -3800,11 +3809,11 @@ var Bt = class {
3800
3809
  this.initMatcher();
3801
3810
  }
3802
3811
  initMatcher() {
3803
- this.item.is() ? this.matcher = this.options.getFindExactMatch() ? Rt(this.item.get()) : zt(this.item.get()) : this.matcher = void 0;
3812
+ this.item.is() ? this.matcher = this.options.getFindExactMatch() ? zt(this.item.get()) : Bt(this.item.get()) : this.matcher = void 0;
3804
3813
  }
3805
- }, Vt = class {
3814
+ }, Ht = class {
3806
3815
  constructor(e) {
3807
- w(this, "options", void 0), this.options = e;
3816
+ T(this, "options", void 0), this.options = e;
3808
3817
  }
3809
3818
  getOptions() {
3810
3819
  return this.options || {};
@@ -3832,12 +3841,12 @@ var Bt = class {
3832
3841
  setOptions(e) {
3833
3842
  return this.options = e, this;
3834
3843
  }
3835
- }, Ht = class {
3844
+ }, Ut = class {
3836
3845
  constructor(e, t, n, r) {
3837
- 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) => {
3846
+ T(this, "options", void 0), T(this, "item", void 0), T(this, "matcher", void 0), T(this, "data", void 0), T(this, "callbackToSelection", (e, t) => {
3838
3847
  if (this.matcher.isSelection(t)) return this.data.toFormatItem(e, !0);
3839
3848
  if (this.options.getReturnEverything()) return this.data.toFormatItem(e, !1);
3840
- }), 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);
3849
+ }), T(this, "callbackToNone", (e) => this.data.toFormatItem(e, !1)), this.options = new Ht(r), this.item = new Lt(n, this.options), this.matcher = new Vt(this.item, this.options), this.data = new It(e, t, this.item, this.options);
3841
3850
  }
3842
3851
  getData() {
3843
3852
  return this.data;
@@ -3874,13 +3883,13 @@ var Bt = class {
3874
3883
  let e = this.data.getList();
3875
3884
  return e ? r(e, this.callbackToNone) : [];
3876
3885
  }
3877
- }, Ut = () => E.get("__ui:storage-callback__", () => ({})), Wt = class e {
3886
+ }, Wt = () => O.get("__ui:storage-callback__", () => ({})), Gt = class e {
3878
3887
  static getInstance(t, n = "main") {
3879
3888
  return new e(t, n);
3880
3889
  }
3881
3890
  constructor(e, t = "main") {
3882
- w(this, "name", void 0), w(this, "group", void 0), w(this, "callbacks", []), w(this, "loading", !1), this.name = e, this.group = t;
3883
- let n = `${t}:${e}`, r = Ut();
3891
+ T(this, "name", void 0), T(this, "group", void 0), T(this, "callbacks", []), T(this, "loading", !1), this.name = e, this.group = t;
3892
+ let n = `${t}:${e}`, r = Wt();
3884
3893
  if (n in r) return r[n];
3885
3894
  r[n] = this;
3886
3895
  }
@@ -3907,10 +3916,10 @@ var Bt = class {
3907
3916
  }
3908
3917
  async run(e) {
3909
3918
  this.loading = !1;
3910
- for (let { callback: t, isOnce: n } of this.callbacks) await ze(t, e), n && this.removeCallback(t);
3919
+ for (let { callback: t, isOnce: n } of this.callbacks) await qe(t, e), n && this.removeCallback(t);
3911
3920
  return this;
3912
3921
  }
3913
- }, Gt = [
3922
+ }, Kt = [
3914
3923
  "d",
3915
3924
  "e",
3916
3925
  "f",
@@ -3930,10 +3939,10 @@ var Bt = class {
3930
3939
  "t",
3931
3940
  "u",
3932
3941
  "v"
3933
- ], Kt = RegExp(`%(${Gt.join("|")})`, "g"), qt = (e, t = {}) => {
3942
+ ], qt = RegExp(`%(${Kt.join("|")})`, "g"), Jt = (e, t = {}) => {
3934
3943
  let r = String(e);
3935
- return Array.isArray(t) && e.match(/%[a-z]/) && (r = r.replace(Kt, (e, n) => {
3936
- let r = Gt.indexOf(n);
3944
+ return Array.isArray(t) && e.match(/%[a-z]/) && (r = r.replace(qt, (e, n) => {
3945
+ let r = Kt.indexOf(n);
3937
3946
  if (r !== -1) {
3938
3947
  var i;
3939
3948
  return String((i = t == null ? void 0 : t[r]) == null ? "" : i);
@@ -3952,12 +3961,12 @@ var Bt = class {
3952
3961
  }
3953
3962
  return e;
3954
3963
  })), r;
3955
- }, Jt = (e) => {
3964
+ }, Yt = (e) => {
3956
3965
  var t;
3957
- 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()))));
3958
- }, Yt = "global", Xt = 160, Zt = class {
3959
- constructor(e, t = () => O.getLanguage(), n = () => O.getLocation()) {
3960
- 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);
3966
+ return i(e) ? !0 : !!(e && n(e) && ((e == null ? void 0 : e.status) === "success" || e != null && e.success || !(e == null || (t = e.statusObject) == null) && t.status && /^2/.test(String(e.statusObject.status)) || !("status" in e) && !("success" in e) && !("statusObject" in e) && /^2/.test(String(L.getStatus().getStatus()))));
3967
+ }, Xt = "global", Zt = 160, Qt = class {
3968
+ constructor(e, t = () => j.getLanguage(), n = () => j.getLocation()) {
3969
+ T(this, "language", void 0), T(this, "location", void 0), T(this, "files", {}), T(this, "data", {}), this.language = t, this.location = n, e && this.add(e);
3961
3970
  }
3962
3971
  isFile() {
3963
3972
  return Object.keys(this.files).length > 0 && this.getIndex() !== void 0;
@@ -3985,7 +3994,7 @@ var Bt = class {
3985
3994
  if (e in this.files) return e;
3986
3995
  let t = this.getLanguage();
3987
3996
  if (t in this.files) return t;
3988
- if ("global" in this.files) return Yt;
3997
+ if ("global" in this.files) return Xt;
3989
3998
  }
3990
3999
  getByData(e) {
3991
4000
  if (e in this.data) return this.data[e];
@@ -3996,14 +4005,14 @@ var Bt = class {
3996
4005
  return t && (this.data[e] = t), t;
3997
4006
  }
3998
4007
  }
3999
- }, Qt = class {
4000
- constructor(e = "/api/translate", t = "list", n = new Zt()) {
4001
- 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;
4008
+ }, $t = class {
4009
+ constructor(e = "/api/translate", t = "list", n = new Qt()) {
4010
+ T(this, "url", void 0), T(this, "propsName", void 0), T(this, "files", void 0), T(this, "data", {}), T(this, "cache", []), T(this, "resolveList", []), T(this, "timeout", void 0), T(this, "isReadApi", !0), this.url = e, this.propsName = t, this.files = n;
4002
4011
  }
4003
4012
  async get(e, t) {
4004
4013
  var n;
4005
4014
  let r = this.getText(e);
4006
- return r ? this.replacement(r, t) : (P.isLocalhost() || await this.add(e), this.replacement((n = this.getText(e)) == null ? e : n));
4015
+ return r ? this.replacement(r, t) : (L.isLocalhost() || await this.add(e), this.replacement((n = this.getText(e)) == null ? e : n));
4007
4016
  }
4008
4017
  getSync(e, t = !1, n) {
4009
4018
  let r = this.getText(e);
@@ -4044,7 +4053,7 @@ var Bt = class {
4044
4053
  });
4045
4054
  }
4046
4055
  async addNormalOrSync(e) {
4047
- if (l(e)) if (P.isLocalhost()) this.addSync(e);
4056
+ if (l(e)) if (L.isLocalhost()) this.addSync(e);
4048
4057
  else {
4049
4058
  let t = Object.keys(e);
4050
4059
  t.length > 0 && await this.add(t);
@@ -4086,16 +4095,16 @@ var Bt = class {
4086
4095
  return `${this.files.getLanguage()}-${e}`;
4087
4096
  }
4088
4097
  getNameByGlobal(e) {
4089
- return `${Yt}-${e}`;
4098
+ return `${Xt}-${e}`;
4090
4099
  }
4091
4100
  getNamesNone(e) {
4092
4101
  let t = [];
4093
- return A(e).forEach((e) => {
4102
+ return N(e).forEach((e) => {
4094
4103
  e !== "__TRANSLATE_START__" && e !== "__TRANSLATE_END__" && !this.hasName(e) && t.push(e);
4095
4104
  }), t;
4096
4105
  }
4097
4106
  async getResponse() {
4098
- let e = await P.get({
4107
+ let e = await L.get({
4099
4108
  api: !1,
4100
4109
  path: this.url,
4101
4110
  request: { [this.propsName]: this.cache },
@@ -4103,14 +4112,14 @@ var Bt = class {
4103
4112
  timeout: 12e3,
4104
4113
  global: !0
4105
4114
  });
4106
- return Jt(e) || T.on({
4115
+ return Yt(e) || E.on({
4107
4116
  group: "translate",
4108
4117
  code: "error",
4109
4118
  details: e
4110
4119
  }), e == null ? {} : e;
4111
4120
  }
4112
4121
  replacement(e, t) {
4113
- return t ? qt(e, t) : e;
4122
+ return t ? Jt(e, t) : e;
4114
4123
  }
4115
4124
  async make() {
4116
4125
  let e;
@@ -4122,12 +4131,12 @@ var Bt = class {
4122
4131
  this.data[this.getName(t)] = (n = e == null ? void 0 : e[t]) == null ? "" : n;
4123
4132
  }), this.cache = [];
4124
4133
  }
4125
- }, $t = class {
4134
+ }, en = class {
4126
4135
  static async get(e, t) {
4127
4136
  return this.getItem().get(e, t);
4128
4137
  }
4129
4138
  static getItem() {
4130
- return this.item || (this.item = new Qt()), this.item;
4139
+ return this.item || (this.item = new $t()), this.item;
4131
4140
  }
4132
4141
  static getSync(e, t = !1, n) {
4133
4142
  return this.getItem().getSync(e, t, n);
@@ -4166,18 +4175,18 @@ var Bt = class {
4166
4175
  e.url && this.getItem().setUrl(e.url), e.propsName && this.getItem().setPropsName(e.propsName), typeof e.readApi == "boolean" && this.getItem().setReadApi(e.readApi);
4167
4176
  }
4168
4177
  };
4169
- w($t, "item", void 0);
4178
+ T(en, "item", void 0);
4170
4179
  //#endregion
4171
4180
  //#region src/functions/arrFill.ts
4172
- function en(e, t) {
4181
+ function tn(e, t) {
4173
4182
  return Array(t).fill(e);
4174
4183
  }
4175
4184
  //#endregion
4176
4185
  //#region src/functions/blobToBase64.ts
4177
- var tn = () => nn() !== void 0, nn = () => {
4186
+ var nn = () => rn() !== void 0, rn = () => {
4178
4187
  var e;
4179
4188
  return (e = globalThis) == null ? void 0 : e.Buffer;
4180
- }, rn = async (e) => new Promise((t, n) => {
4189
+ }, an = async (e) => new Promise((t, n) => {
4181
4190
  if (typeof FileReader < "u") {
4182
4191
  let r = new FileReader();
4183
4192
  r.onloadend = () => {
@@ -4188,19 +4197,19 @@ var tn = () => nn() !== void 0, nn = () => {
4188
4197
  t(r.result.replace(/^data:.*?,/, ""));
4189
4198
  }, r.onerror = n, r.readAsDataURL(e);
4190
4199
  } else n();
4191
- }), an = (e) => {
4200
+ }), on = (e) => {
4192
4201
  var t;
4193
4202
  return ((t = globalThis) == null ? void 0 : t.Buffer).from(e).toString("base64");
4194
4203
  };
4195
- async function on(e, t = !1) {
4196
- let n = s() ? await rn(e) : tn() ? an(await e.arrayBuffer()) : void 0;
4204
+ async function sn(e, t = !1) {
4205
+ let n = s() ? await an(e) : nn() ? on(await e.arrayBuffer()) : void 0;
4197
4206
  if (n) return t ? n : `data:${e.type};base64,${n}`;
4198
4207
  }
4199
4208
  //#endregion
4200
4209
  //#region src/functions/capitalize.ts
4201
- function sn(e, t = !1) {
4210
+ function cn(e, t = !1) {
4202
4211
  let n = String(e);
4203
- return n.length > 0 ? t ? n.charAt(0).toLocaleUpperCase(O.getLocation()) + n.slice(1) : n.charAt(0).toUpperCase() + n.slice(1) : n;
4212
+ return n.length > 0 ? t ? n.charAt(0).toLocaleUpperCase(j.getLocation()) + n.slice(1) : n.charAt(0).toUpperCase() + n.slice(1) : n;
4204
4213
  }
4205
4214
  //#endregion
4206
4215
  //#region src/functions/copyObject.ts
@@ -4209,12 +4218,12 @@ function Z(e) {
4209
4218
  }
4210
4219
  //#endregion
4211
4220
  //#region src/functions/copyObjectLite.ts
4212
- function cn(e, t) {
4221
+ function ln(e, t) {
4213
4222
  return Object.assign({}, e, t);
4214
4223
  }
4215
4224
  //#endregion
4216
4225
  //#region src/functions/domQuerySelector.ts
4217
- function ln(e) {
4226
+ function un(e) {
4218
4227
  if (s()) {
4219
4228
  var t;
4220
4229
  return (t = document.querySelector(e)) == null ? void 0 : t;
@@ -4222,64 +4231,64 @@ function ln(e) {
4222
4231
  }
4223
4232
  //#endregion
4224
4233
  //#region src/functions/domQuerySelectorAll.ts
4225
- function un(e) {
4234
+ function dn(e) {
4226
4235
  if (s()) return document.querySelectorAll(e);
4227
4236
  }
4228
4237
  //#endregion
4229
4238
  //#region src/functions/getElementImage.ts
4230
- function dn(e) {
4231
- return d(e) ? U(void 0, "img", { src: e }) : e;
4239
+ function fn(e) {
4240
+ return d(e) ? W(void 0, "img", { src: e }) : e;
4232
4241
  }
4233
4242
  //#endregion
4234
4243
  //#region src/functions/resizeImageByMax.ts
4235
- function fn(e, t = "auto") {
4244
+ function pn(e, t = "auto") {
4236
4245
  switch (t) {
4237
4246
  case "auto": return e.naturalWidth >= e.naturalHeight;
4238
4247
  case "width": return !0;
4239
4248
  case "height": return !1;
4240
4249
  }
4241
4250
  }
4242
- function pn(e, t, n = "auto", r) {
4243
- let i = dn(e);
4251
+ function mn(e, t, n = "auto", r) {
4252
+ let i = fn(e);
4244
4253
  if (s() && i && i.naturalWidth && i.naturalHeight && (i.naturalWidth > t && (n === "auto" || n === "width") || i.naturalHeight > t && (n === "auto" || n === "height"))) {
4245
4254
  var a;
4246
- let e = fn(i, n), o = (a = document.createElement("canvas")) == null ? void 0 : a.getContext("2d");
4255
+ let e = pn(i, n), o = (a = document.createElement("canvas")) == null ? void 0 : a.getContext("2d");
4247
4256
  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);
4248
4257
  }
4249
4258
  }
4250
4259
  //#endregion
4251
4260
  //#region src/functions/ensureMaxSize.ts
4252
- async function mn(e, t = .56, n = "image/jpeg") {
4261
+ async function hn(e, t = .56, n = "image/jpeg") {
4253
4262
  return new Promise((r) => {
4254
4263
  if (!s()) {
4255
4264
  r("");
4256
4265
  return;
4257
4266
  }
4258
- let i = new Blob([e], { type: n }), a = URL.createObjectURL(i), o = dn(a);
4267
+ let i = new Blob([e], { type: n }), a = URL.createObjectURL(i), o = fn(a);
4259
4268
  o ? (o.onload = () => {
4260
- let e = pn(o, t * o.naturalWidth, "width", n);
4269
+ let e = mn(o, t * o.naturalWidth, "width", n);
4261
4270
  r(e == null ? "" : e), URL.revokeObjectURL(a);
4262
4271
  }, o.onerror = () => {
4263
4272
  URL.revokeObjectURL(a), r("");
4264
- }) : on(i).then((e) => r(String(e == null ? "" : e)));
4273
+ }) : sn(i).then((e) => r(String(e == null ? "" : e)));
4265
4274
  });
4266
4275
  }
4267
4276
  //#endregion
4268
4277
  //#region src/functions/eventStopPropagation.ts
4269
- function hn(e) {
4278
+ function gn(e) {
4270
4279
  e.preventDefault(), e.stopPropagation();
4271
4280
  }
4272
4281
  //#endregion
4273
4282
  //#region src/functions/frame.ts
4274
- function gn(e, t, n) {
4283
+ function _n(e, t, n) {
4275
4284
  let r = () => {
4276
- e(), s() && t != null && t() ? gn(e, t, n) : n == null || n();
4285
+ e(), s() && t != null && t() ? _n(e, t, n) : n == null || n();
4277
4286
  };
4278
4287
  s() ? requestAnimationFrame(r) : r();
4279
4288
  }
4280
4289
  //#endregion
4281
4290
  //#region src/functions/getArrayHighlightMatch.ts
4282
- function _n(e, t) {
4291
+ function vn(e, t) {
4283
4292
  let n = a(e);
4284
4293
  if (l(n) && l(t)) {
4285
4294
  let e = [], r = jt(t), i = 0, a;
@@ -4302,8 +4311,8 @@ function _n(e, t) {
4302
4311
  }
4303
4312
  //#endregion
4304
4313
  //#region src/functions/getAttributes.ts
4305
- function vn(e) {
4306
- let t = {}, n = k(e);
4314
+ function yn(e) {
4315
+ let t = {}, n = M(e);
4307
4316
  if (n) for (let e of n.attributes) {
4308
4317
  var r;
4309
4318
  t[e.name] = (r = (e == null ? void 0 : e.value) || (e == null ? void 0 : e.textContent)) == null ? void 0 : r;
@@ -4312,12 +4321,12 @@ function vn(e) {
4312
4321
  }
4313
4322
  //#endregion
4314
4323
  //#region src/functions/getClipboardData.ts
4315
- async function yn(e) {
4324
+ async function bn(e) {
4316
4325
  if (s()) try {
4317
4326
  var t, n;
4318
4327
  return (t = e == null || (n = e.clipboardData) == null ? void 0 : n.getData("text")) == null ? await navigator.clipboard.readText() || "" : t;
4319
4328
  } catch (e) {
4320
- T.on({
4329
+ E.on({
4321
4330
  group: "clipboard",
4322
4331
  code: "error",
4323
4332
  details: e
@@ -4327,35 +4336,35 @@ async function yn(e) {
4327
4336
  }
4328
4337
  //#endregion
4329
4338
  //#region src/functions/getCurrentDate.ts
4330
- function bn(e = "datetime") {
4339
+ function xn(e = "datetime") {
4331
4340
  return new rt(void 0, e).standard();
4332
4341
  }
4333
4342
  //#endregion
4334
4343
  //#region src/functions/getCurrentTime.ts
4335
- function xn() {
4344
+ function Sn() {
4336
4345
  return Date.now();
4337
4346
  }
4338
4347
  //#endregion
4339
4348
  //#region src/functions/getElementId.ts
4340
- var Q, Sn = () => {
4349
+ var Q, Cn = () => {
4341
4350
  let e = Q == null ? void 0 : Q();
4342
4351
  if (e) return String(e);
4343
- let t = E.get("__ui:getElementId__", () => ({ id: 1e5 }));
4352
+ let t = O.get("__ui:getElementId__", () => ({ id: 1e5 }));
4344
4353
  return `id-${t.id++}`;
4345
4354
  };
4346
- function Cn(e, t) {
4355
+ function wn(e, t) {
4347
4356
  if (e) {
4348
- let n = k(e);
4349
- if (n) return l(n.id) || n.setAttribute("id", Sn()), t ? `#${n.id}${t}`.trim() : n.id;
4357
+ let n = M(e);
4358
+ if (n) return l(n.id) || n.setAttribute("id", Cn()), t ? `#${n.id}${t}`.trim() : n.id;
4350
4359
  }
4351
- return Sn();
4360
+ return Cn();
4352
4361
  }
4353
- function wn(e) {
4362
+ function Tn(e) {
4354
4363
  Q || (Q = e);
4355
4364
  }
4356
4365
  //#endregion
4357
4366
  //#region src/functions/getFirst.ts
4358
- function Tn(e) {
4367
+ function En(e) {
4359
4368
  if (i(e)) return e == null ? void 0 : e[0];
4360
4369
  if (t(e)) {
4361
4370
  var n;
@@ -4365,18 +4374,18 @@ function Tn(e) {
4365
4374
  }
4366
4375
  //#endregion
4367
4376
  //#region src/functions/getKey.ts
4368
- function En(e) {
4377
+ function Dn(e) {
4369
4378
  var t, n, r;
4370
4379
  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;
4371
4380
  }
4372
4381
  //#endregion
4373
4382
  //#region src/functions/getLength.ts
4374
- function Dn(e) {
4383
+ function On(e) {
4375
4384
  return e == null ? 0 : typeof e == "string" || Array.isArray(e) ? e.length : e instanceof Map || e instanceof Set ? e.size : t(e) ? Object.keys(e).length : 0;
4376
4385
  }
4377
4386
  //#endregion
4378
4387
  //#region src/functions/getLengthOfAllArray.ts
4379
- function On(e) {
4388
+ function kn(e) {
4380
4389
  return r(e, (e) => {
4381
4390
  var t;
4382
4391
  return (t = e == null ? void 0 : e.length) == null ? 0 : t;
@@ -4384,41 +4393,41 @@ function On(e) {
4384
4393
  }
4385
4394
  //#endregion
4386
4395
  //#region src/functions/getMaxLengthAllArray.ts
4387
- function kn(e) {
4396
+ function An(e) {
4388
4397
  if (!l(e)) return 0;
4389
- let t = On(e);
4398
+ let t = kn(e);
4390
4399
  return t.length > 1e4 ? t.reduce((e, t) => Math.max(e, t)) : Math.max(...t);
4391
4400
  }
4392
4401
  //#endregion
4393
4402
  //#region src/functions/getMinLengthAllArray.ts
4394
- function An(e) {
4403
+ function jn(e) {
4395
4404
  if (!l(e)) return 0;
4396
- let t = On(e);
4405
+ let t = kn(e);
4397
4406
  return t.length > 1e4 ? t.reduce((e, t) => Math.min(e, t)) : Math.min(...t);
4398
4407
  }
4399
4408
  //#endregion
4400
4409
  //#region src/functions/getMouseClientX.ts
4401
- function jn(e) {
4410
+ function Mn(e) {
4402
4411
  var t, n;
4403
4412
  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;
4404
4413
  }
4405
4414
  //#endregion
4406
4415
  //#region src/functions/getMouseClientY.ts
4407
- function Mn(e) {
4416
+ function Nn(e) {
4408
4417
  var t, n;
4409
4418
  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;
4410
4419
  }
4411
4420
  //#endregion
4412
4421
  //#region src/functions/getMouseClient.ts
4413
- function Nn(e) {
4422
+ function Pn(e) {
4414
4423
  return {
4415
- x: jn(e),
4416
- y: Mn(e)
4424
+ x: Mn(e),
4425
+ y: Nn(e)
4417
4426
  };
4418
4427
  }
4419
4428
  //#endregion
4420
4429
  //#region src/functions/getObjectByKeys.ts
4421
- function Pn(e, t) {
4430
+ function Fn(e, t) {
4422
4431
  let r = {};
4423
4432
  return n(e) && t.forEach((t) => {
4424
4433
  t in e && e[t] !== void 0 && (r[t] = e[t]);
@@ -4426,7 +4435,7 @@ function Pn(e, t) {
4426
4435
  }
4427
4436
  //#endregion
4428
4437
  //#region src/functions/getObjectNoUndefined.ts
4429
- function Fn(e, t = void 0) {
4438
+ function In(e, t = void 0) {
4430
4439
  let n = {};
4431
4440
  return r(e, (e, r) => {
4432
4441
  e !== t && (n[r] = e);
@@ -4434,42 +4443,42 @@ function Fn(e, t = void 0) {
4434
4443
  }
4435
4444
  //#endregion
4436
4445
  //#region src/functions/getObjectOrNone.ts
4437
- function In(e) {
4446
+ function Ln(e) {
4438
4447
  return n(e) ? e : {};
4439
4448
  }
4440
4449
  //#endregion
4441
4450
  //#region src/functions/getOnlyText.ts
4442
- function Ln(e) {
4443
- return F(e).replace(/[^\p{L}\p{N}\s]+/gu, "").trim();
4451
+ function Rn(e) {
4452
+ return C(e).replace(/[^\p{L}\p{N}\s]+/gu, "").trim();
4444
4453
  }
4445
4454
  //#endregion
4446
4455
  //#region src/functions/strFill.ts
4447
- function Rn(e, t) {
4456
+ function zn(e, t) {
4448
4457
  return String(e).repeat(t);
4449
4458
  }
4450
4459
  //#endregion
4451
4460
  //#region src/functions/getRandomText.ts
4452
- function zn(e, t, n = "#", r = 2, i = 12) {
4461
+ function Bn(e, t, n = "#", r = 2, i = 12) {
4453
4462
  let a = f(e, t), o = [];
4454
- for (let e = 0; e < a; e++) o.push(Rn(n, f(r, i)));
4463
+ for (let e = 0; e < a; e++) o.push(zn(n, f(r, i)));
4455
4464
  return o.join(" ");
4456
4465
  }
4457
4466
  //#endregion
4458
4467
  //#region src/functions/getStepPercent.ts
4459
- function Bn(e, t) {
4468
+ function Vn(e, t) {
4460
4469
  let n = e == null ? 0 : e;
4461
4470
  return t > n ? 100 / (t - n) : 0;
4462
4471
  }
4463
4472
  //#endregion
4464
4473
  //#region src/functions/getStepValue.ts
4465
- function Vn(e, t) {
4474
+ function Hn(e, t) {
4466
4475
  let n = e == null ? 0 : e;
4467
4476
  return t > n ? (t - n) / 100 : 0;
4468
4477
  }
4469
4478
  //#endregion
4470
4479
  //#region src/functions/goScroll.ts
4471
- var Hn = 0;
4472
- function Un(e, t, n) {
4480
+ var Un = 0;
4481
+ function Wn(e, t, n) {
4473
4482
  if (!s()) return;
4474
4483
  let r = t == null ? void 0 : t.closest(e);
4475
4484
  if (t && r && r.scrollHeight !== r.offsetHeight) {
@@ -4477,12 +4486,12 @@ function Un(e, t, n) {
4477
4486
  if (n) {
4478
4487
  let a = n.getBoundingClientRect();
4479
4488
  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);
4480
- } else r.scrollTop > t.offsetTop ? r.scrollTop = i.top - e.top - Hn : r.scrollTop + r.offsetHeight < t.offsetTop + t.offsetHeight && (r.scrollTop = i.top - e.top + i.height - e.height + Hn);
4489
+ } else r.scrollTop > t.offsetTop ? r.scrollTop = i.top - e.top - Un : r.scrollTop + r.offsetHeight < t.offsetTop + t.offsetHeight && (r.scrollTop = i.top - e.top + i.height - e.height + Un);
4481
4490
  }
4482
4491
  }
4483
4492
  //#endregion
4484
4493
  //#region src/functions/goScrollSmooth.ts
4485
- function Wn(e, t, n = 0) {
4494
+ function Gn(e, t, n = 0) {
4486
4495
  if (!s()) return;
4487
4496
  let r = (t == null ? void 0 : t.behavior) || "smooth";
4488
4497
  if ("scrollIntoView" in e && !n) {
@@ -4504,7 +4513,7 @@ function Wn(e, t, n = 0) {
4504
4513
  }
4505
4514
  //#endregion
4506
4515
  //#region src/functions/goScrollTo.ts
4507
- function Gn(e, t, n = "smooth") {
4516
+ function Kn(e, t, n = "smooth") {
4508
4517
  if (!s() || !e || !t) return;
4509
4518
  let r = e.getBoundingClientRect(), i = t.getBoundingClientRect();
4510
4519
  e.scrollBy({
@@ -4515,16 +4524,16 @@ function Gn(e, t, n = "smooth") {
4515
4524
  }
4516
4525
  //#endregion
4517
4526
  //#region src/functions/isShare.ts
4518
- function Kn() {
4527
+ function qn() {
4519
4528
  return s() && typeof navigator < "u" && !!navigator.share;
4520
4529
  }
4521
4530
  //#endregion
4522
4531
  //#region src/functions/handleShare.ts
4523
- async function qn(e) {
4524
- if (Kn() && navigator.canShare && navigator.canShare(e)) try {
4532
+ async function Jn(e) {
4533
+ if (qn() && navigator.canShare && navigator.canShare(e)) try {
4525
4534
  return await navigator.share(e), !0;
4526
4535
  } catch (e) {
4527
- T.on({
4536
+ E.on({
4528
4537
  group: "share",
4529
4538
  code: "error",
4530
4539
  details: e
@@ -4534,12 +4543,12 @@ async function qn(e) {
4534
4543
  }
4535
4544
  //#endregion
4536
4545
  //#region src/functions/inArray.ts
4537
- function Jn(e, t) {
4546
+ function Yn(e, t) {
4538
4547
  return e.includes(t);
4539
4548
  }
4540
4549
  //#endregion
4541
4550
  //#region src/functions/initScrollbarOffset.ts
4542
- async function Yn() {
4551
+ async function Xn() {
4543
4552
  if (s()) {
4544
4553
  let e = await At.get();
4545
4554
  document.body.style.setProperty("--sys-scrollbar-offset", `${e}px`);
@@ -4547,7 +4556,7 @@ async function Yn() {
4547
4556
  }
4548
4557
  //#endregion
4549
4558
  //#region src/functions/intersectKey.ts
4550
- function Xn(e, n) {
4559
+ function Zn(e, n) {
4551
4560
  let i = {};
4552
4561
  return t(e) && t(n) && r(e, (e, t) => {
4553
4562
  t in n && (i[t] = e);
@@ -4555,7 +4564,7 @@ function Xn(e, n) {
4555
4564
  }
4556
4565
  //#endregion
4557
4566
  //#region src/functions/isDifferent.ts
4558
- function Zn(e, t) {
4567
+ function Qn(e, t) {
4559
4568
  let n = Object.keys(e).length !== Object.keys(t).length;
4560
4569
  return n || r(e, (e, r) => {
4561
4570
  e !== (t == null ? void 0 : t[r]) && (n = !0);
@@ -4563,25 +4572,25 @@ function Zn(e, t) {
4563
4572
  }
4564
4573
  //#endregion
4565
4574
  //#region src/functions/isElementVisible.ts
4566
- function Qn(e) {
4575
+ function $n(e) {
4567
4576
  if (!s()) return !1;
4568
- let t = k(e);
4577
+ let t = M(e);
4569
4578
  if (!t || "isConnected" in t && t.isConnected === !1) return !1;
4570
4579
  let n = window.getComputedStyle(t);
4571
4580
  return n.display !== "none" && n.visibility !== "hidden" && n.opacity !== "0" && t.offsetWidth !== 0 && t.offsetHeight !== 0;
4572
4581
  }
4573
4582
  //#endregion
4574
4583
  //#region src/functions/isInput.ts
4575
- var $n = (e) => {
4584
+ var er = (e) => {
4576
4585
  if (e instanceof HTMLElement) {
4577
4586
  let t = e.tagName.toLowerCase();
4578
4587
  return !!(t === "input" || t === "textarea" || t === "select" || e.isContentEditable || e.getAttribute("contenteditable") === "true") && !(e != null && e.readOnly) && !(e != null && e.disabled);
4579
4588
  }
4580
4589
  return !1;
4581
- }, er = (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 ? !$n(e.target) : !t : !1;
4590
+ }, tr = (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 ? !er(e.target) : !t : !1;
4582
4591
  //#endregion
4583
4592
  //#region src/functions/isFloat.ts
4584
- function tr(e) {
4593
+ function nr(e) {
4585
4594
  switch (typeof e) {
4586
4595
  case "number": return !0;
4587
4596
  case "string": return /^-?\d+(\.\d+)?$/.test(e);
@@ -4590,21 +4599,21 @@ function tr(e) {
4590
4599
  }
4591
4600
  //#endregion
4592
4601
  //#region src/functions/isIntegerBetween.ts
4593
- function nr(e, t) {
4602
+ function rr(e, t) {
4594
4603
  let n = Math.floor(t);
4595
4604
  return e >= n && e < n + 1;
4596
4605
  }
4597
4606
  //#endregion
4598
4607
  //#region src/functions/isSelectedByList.ts
4599
- function rr(e, t) {
4608
+ function ir(e, t) {
4600
4609
  return Array.isArray(e) ? e.every((e) => b(e, t)) : b(e, t);
4601
4610
  }
4602
4611
  //#endregion
4603
4612
  //#region src/functions/isTab.ts
4604
- var ir = (e) => e.key === "Tab" || e.code === "Tab" || e.keyCode === 9;
4613
+ var ar = (e) => e.key === "Tab" || e.code === "Tab" || e.keyCode === 9;
4605
4614
  //#endregion
4606
4615
  //#region src/functions/removeCommonPrefix.ts
4607
- function ar(e, t) {
4616
+ function or(e, t) {
4608
4617
  if (e.startsWith(t)) return e.slice(t.length).trim();
4609
4618
  let n = 0;
4610
4619
  for (; e[n] === t[n] && n < e.length && n < t.length;) n++;
@@ -4612,13 +4621,13 @@ function ar(e, t) {
4612
4621
  }
4613
4622
  //#endregion
4614
4623
  //#region src/functions/replaceComponentName.ts
4615
- var or = (e, t, n) => {
4624
+ var sr = (e, t, n) => {
4616
4625
  var r;
4617
4626
  return e == null || (r = e.replace(RegExp(`<${t}`, "ig"), `<${n}`)) == null || (r = r.replace(RegExp(`</${t}`, "ig"), `</${n}`)) == null ? void 0 : r.trim();
4618
4627
  };
4619
4628
  //#endregion
4620
4629
  //#region src/functions/uniqueArray.ts
4621
- function sr(e) {
4630
+ function cr(e) {
4622
4631
  return [...new Set(e)];
4623
4632
  }
4624
4633
  //#endregion
@@ -4627,20 +4636,20 @@ function $(e, n, i = !0) {
4627
4636
  let a = Z(e);
4628
4637
  return t(e) && t(n) && r(n, (n, r) => {
4629
4638
  let o = e == null ? void 0 : e[r];
4630
- t(o) && t(n) ? i && Array.isArray(o) && Array.isArray(n) ? a[r] = Z(sr([...o, ...n])) : a[r] = $(Array.isArray(o) ? { ...o } : o, n, i) : a[r] = t(n) ? Z(n) : n;
4639
+ t(o) && t(n) ? i && Array.isArray(o) && Array.isArray(n) ? a[r] = Z(cr([...o, ...n])) : a[r] = $(Array.isArray(o) ? { ...o } : o, n, i) : a[r] = t(n) ? Z(n) : n;
4631
4640
  }), a;
4632
4641
  }
4633
4642
  //#endregion
4634
4643
  //#region src/functions/replaceTemplate.ts
4635
- function cr(e, t) {
4644
+ function lr(e, t) {
4636
4645
  let n = e;
4637
4646
  return r(t, (e, t) => {
4638
- n = n.replace(Lt(`[${t}]`), S(e));
4647
+ n = n.replace(Rt(`[${t}]`), S(e));
4639
4648
  }), n;
4640
4649
  }
4641
4650
  //#endregion
4642
4651
  //#region src/functions/secondToTime.ts
4643
- function lr(e, t) {
4652
+ function ur(e, t) {
4644
4653
  let n = y(e);
4645
4654
  if (n > 0) {
4646
4655
  let e = String(Math.floor(n / 60)).padStart(2, "0"), r = String(n % 60).padStart(2, "0");
@@ -4650,7 +4659,7 @@ function lr(e, t) {
4650
4659
  }
4651
4660
  //#endregion
4652
4661
  //#region src/functions/setValues.ts
4653
- function ur(e, t, { multiple: n = !1, maxlength: r = 0, alwaysChange: a = !0, notEmpty: o = !1 }) {
4662
+ function dr(e, t, { multiple: n = !1, maxlength: r = 0, alwaysChange: a = !0, notEmpty: o = !1 }) {
4654
4663
  if (n) {
4655
4664
  if (i(e)) {
4656
4665
  let n = e.indexOf(t), i = [...e];
@@ -4662,7 +4671,7 @@ function ur(e, t, { multiple: n = !1, maxlength: r = 0, alwaysChange: a = !0, no
4662
4671
  }
4663
4672
  //#endregion
4664
4673
  //#region src/functions/splice.ts
4665
- function dr(e, n, i) {
4674
+ function fr(e, n, i) {
4666
4675
  if (t(e) && t(n)) {
4667
4676
  if (i) {
4668
4677
  let a = {}, o = !1;
@@ -4676,34 +4685,34 @@ function dr(e, n, i) {
4676
4685
  }
4677
4686
  //#endregion
4678
4687
  //#region src/functions/toCamelCaseFirst.ts
4679
- function fr(e) {
4688
+ function pr(e) {
4680
4689
  return it(e).replace(/^([a-z])/, (e) => `${e.toUpperCase()}`);
4681
4690
  }
4682
4691
  //#endregion
4683
4692
  //#region src/functions/toKebabCase.ts
4684
- function pr(e) {
4693
+ function mr(e) {
4685
4694
  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());
4686
4695
  }
4687
4696
  //#endregion
4688
4697
  //#region src/functions/toNumberByMax.ts
4689
- function mr(e, t, n, r) {
4698
+ function hr(e, t, n, r) {
4690
4699
  let i = y(e), a = y(t);
4691
- return t && a < i ? `${hr(a, n, r)}+` : hr(i, n, r);
4700
+ return t && a < i ? `${gr(a, n, r)}+` : gr(i, n, r);
4692
4701
  }
4693
- var hr = (e, t, n) => t ? new R(n).number(e) : e;
4702
+ var gr = (e, t, n) => t ? new z(n).number(e) : e;
4694
4703
  //#endregion
4695
4704
  //#region src/functions/toPercent.ts
4696
- function gr(e, t) {
4705
+ function _r(e, t) {
4697
4706
  return e === 0 ? t : 1 / e * t;
4698
4707
  }
4699
4708
  //#endregion
4700
4709
  //#region src/functions/toPercentBy100.ts
4701
- function _r(e, t) {
4702
- return gr(e, t) * 100;
4710
+ function vr(e, t) {
4711
+ return _r(e, t) * 100;
4703
4712
  }
4704
4713
  //#endregion
4705
4714
  //#region src/functions/uint8ArrayToBase64.ts
4706
- function vr(e) {
4715
+ function yr(e) {
4707
4716
  let t = "";
4708
4717
  for (let n of e) t += String.fromCharCode(n);
4709
4718
  if (s()) return window.btoa(t);
@@ -4715,7 +4724,7 @@ function vr(e) {
4715
4724
  }
4716
4725
  //#endregion
4717
4726
  //#region src/functions/writeClipboardData.ts
4718
- async function yr(e) {
4727
+ async function br(e) {
4719
4728
  if (s()) try {
4720
4729
  await navigator.clipboard.writeText(e);
4721
4730
  } catch (n) {
@@ -4724,4 +4733,4 @@ async function yr(e) {
4724
4733
  }
4725
4734
  }
4726
4735
  //#endregion
4727
- 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 getLength, On as getLengthOfAllArray, kn as getMaxLengthAllArray, An as getMinLengthAllArray, Nn as getMouseClient, jn as getMouseClientX, Mn as getMouseClientY, Pn as getObjectByKeys, Fn as getObjectNoUndefined, In as getObjectOrNone, Ln as getOnlyText, zn as getRandomText, o as getRequestString, zt as getSearchExp, jt as getSeparatingSearchExp, Bn as getStepPercent, Vn as getStepValue, Un as goScroll, Wn as goScrollSmooth, Gn as goScrollTo, qn as handleShare, Jn as inArray, wn as initGetElementId, Yn as initScrollbarOffset, Xn as intersectKey, Jt as isApiSuccess, i as isArray, Zn as isDifferent, oe as isDomData, s as isDomRuntime, Qn as isElementVisible, er as isEnter, l as isFilled, tr as isFloat, x as isFunction, Se as isInDom, $n as isInput, nr as isIntegerBetween, c as isNull, p as isNumber, t as isObject, n as isObjectNotArray, u as isOnLine, b as isSelected, rr as isSelectedByList, Kn as isShare, d as isString, ir as isTab, be as isWindow, f as random, ar as removeCommonPrefix, or as replaceComponentName, $ as replaceRecursive, cr as replaceTemplate, pn as resizeImageByMax, lr as secondToTime, gt as setElementItem, ur as setValues, ee as sleep, dr as splice, Rn as strFill, Je as strSplit, A as toArray, it as toCamelCase, fr as toCamelCaseFirst, L as toDate, pr as toKebabCase, y as toNumber, mr as toNumberByMax, gr as toPercent, _r as toPercentBy100, a as toString, Ye as transformation, vr as uint8ArrayToBase64, sr as uniqueArray, yr as writeClipboardData };
4736
+ export { L as Api, F as ApiCache, Re as ApiDataReturn, ze as ApiDefault, He as ApiError, Be as ApiErrorItem, Ve as ApiErrorStorage, Ue as ApiHeaders, Ge as ApiHydration, Xe as ApiInstance, I as ApiMethodItem, Ke as ApiPreparation, Ye as ApiResponse, Ie as ApiStatus, Ze as BroadcastMessage, et as Cache, $e as CacheItem, tt as CacheStatic, we as Cookie, xe as CookieBlock, be as CookieBlockInstance, A as CookieStorage, k as DataStorage, rt as Datetime, E as ErrorCenter, ce as ErrorCenterHandler, le as ErrorCenterInstance, je as EventItem, at as Formatters, U as FormattersType, ot as GEO_FLAG_ICON_NAME, j as Geo, st as GeoFlag, De as GeoInstance, z as GeoIntl, ct as GeoPhone, lt as Global, dt as Hash, ut as HashInstance, mt as Icons, P as Loading, Ne as LoadingInstance, Dt as Meta, K as MetaManager, Tt as MetaOg, St as MetaOpenGraphAge, bt as MetaOpenGraphAvailability, xt as MetaOpenGraphCondition, Ct as MetaOpenGraphGender, J as MetaOpenGraphTag, yt as MetaOpenGraphType, vt as MetaRobots, Ot as MetaStatic, q as MetaTag, Et as MetaTwitter, wt as MetaTwitterCard, Y as MetaTwitterTag, kt as ResumableTimer, At as ScrollbarWidth, Ut as SearchList, It as SearchListData, Lt as SearchListItem, Vt as SearchListMatcher, Ht as SearchListOptions, O as ServerStorage, Gt as StorageCallback, Xt as TRANSLATE_GLOBAL_PREFIX, Zt as TRANSLATE_TIME_OUT, en as Translate, Qt as TranslateFile, $t as TranslateInstance, Te as UI_GEO_COOKIE_KEY, Ft as addTagHighlightMatch, C as anyToString, Jt as applyTemplate, tn as arrFill, sn as blobToBase64, cn as capitalize, Z as copyObject, ln as copyObjectLite, W as createElement, un as domQuerySelector, dn as domQuerySelectorAll, G as encodeAttribute, pe as encodeLiteAttribute, hn as ensureMaxSize, X as escapeExp, gn as eventStopPropagation, S as executeFunction, qe as executePromise, r as forEach, _n as frame, vn as getArrayHighlightMatch, yn as getAttributes, bn as getClipboardData, nt as getColumn, xn as getCurrentDate, Sn as getCurrentTime, M as getElement, wn as getElementId, fn as getElementImage, ht as getElementItem, ke as getElementOrWindow, me as getElementSafeScript, zt as getExactSearchExp, Rt as getExp, En as getFirst, he as getHydrationData, H as getItemByPath, Dn as getKey, On as getLength, kn as getLengthOfAllArray, An as getMaxLengthAllArray, jn as getMinLengthAllArray, Pn as getMouseClient, Mn as getMouseClientX, Nn as getMouseClientY, Fn as getObjectByKeys, In as getObjectNoUndefined, Ln as getObjectOrNone, Rn as getOnlyText, Bn as getRandomText, o as getRequestString, Bt as getSearchExp, jt as getSeparatingSearchExp, Vn as getStepPercent, Hn as getStepValue, Wn as goScroll, Gn as goScrollSmooth, Kn as goScrollTo, Jn as handleShare, Yn as inArray, Tn as initGetElementId, Xn as initScrollbarOffset, Zn as intersectKey, Yt as isApiSuccess, i as isArray, Qn as isDifferent, ie as isDomData, s as isDomRuntime, $n as isElementVisible, tr as isEnter, l as isFilled, nr as isFloat, x as isFunction, Ae as isInDom, er as isInput, rr as isIntegerBetween, c as isNull, p as isNumber, t as isObject, n as isObjectNotArray, u as isOnLine, b as isSelected, ir as isSelectedByList, qn as isShare, d as isString, ar as isTab, Oe as isWindow, f as random, or as removeCommonPrefix, sr as replaceComponentName, $ as replaceRecursive, lr as replaceTemplate, mn as resizeImageByMax, ur as secondToTime, gt as setElementItem, dr as setValues, ee as sleep, fr as splice, zn as strFill, ae as strSplit, N as toArray, it as toCamelCase, pr as toCamelCaseFirst, R as toDate, mr as toKebabCase, y as toNumber, hr as toNumberByMax, _r as toPercent, vr as toPercentBy100, a as toString, de as transformation, yr as uint8ArrayToBase64, cr as uniqueArray, br as writeClipboardData };