@dxtmisha/functional-basic 0.13.0 → 0.14.1

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
@@ -122,8 +122,8 @@ function v(e) {
122
122
  }
123
123
  //#endregion
124
124
  //#region src/functions/executeFunction.ts
125
- function y(e) {
126
- return v(e) ? e() : e;
125
+ function y(e, ...t) {
126
+ return v(e) ? e(...t) : e;
127
127
  }
128
128
  //#endregion
129
129
  //#region src/functions/isDomData.ts
@@ -335,15 +335,15 @@ var ne = class {
335
335
  S(C, "item", new re(ie));
336
336
  //#endregion
337
337
  //#region src/classes/DataStorage.ts
338
- var ae = {}, oe = "ui-storage", w = class {
338
+ var w = {}, ae = "ui-storage", T = class {
339
339
  static setPrefix(e) {
340
- oe = e;
340
+ ae = e;
341
341
  }
342
342
  constructor(e, t = !1, n = C.getItem()) {
343
343
  S(this, "value", void 0), S(this, "age", void 0), this.name = e, this.isSession = t, this.errorCenter = n;
344
344
  let r = `${t ? "session" : "storage"}#${e}`;
345
- if (r in ae) return ae[r];
346
- this.make(), ae[r] = this;
345
+ if (r in w) return w[r];
346
+ this.make(), w[r] = this;
347
347
  }
348
348
  get(e, t) {
349
349
  if (this.value !== null && this.value !== void 0 && this.isCache(t)) return this.value;
@@ -378,7 +378,7 @@ var ae = {}, oe = "ui-storage", w = class {
378
378
  }
379
379
  }
380
380
  getIndex() {
381
- return `${oe}__${this.name}`;
381
+ return `${ae}__${this.name}`;
382
382
  }
383
383
  getValue() {
384
384
  var e;
@@ -397,7 +397,7 @@ var ae = {}, oe = "ui-storage", w = class {
397
397
  let e = this.getValue();
398
398
  return e ? (this.value = e.value, this.age = e.age) : (this.value = void 0, this.age = void 0), this;
399
399
  }
400
- }, T, se = "geo-code", E = class {
400
+ }, E, oe = "geo-code", D = class {
401
401
  static get() {
402
402
  return this.item;
403
403
  }
@@ -481,17 +481,17 @@ var ae = {}, oe = "ui-storage", w = class {
481
481
  });
482
482
  }
483
483
  };
484
- T = E, S(E, "storage", new w(se)), S(E, "location", void 0), S(E, "item", void 0), S(E, "language", void 0), S(E, "timezone", (/* @__PURE__ */ new Date()).getTimezoneOffset()), T.location = T.findLocation(), T.language = T.findLanguage(T.location), T.item = T.getByCode(T.location);
484
+ E = D, S(D, "storage", new T(oe)), S(D, "location", void 0), S(D, "item", void 0), S(D, "language", void 0), S(D, "timezone", (/* @__PURE__ */ new Date()).getTimezoneOffset()), E.location = E.findLocation(), E.language = E.findLanguage(E.location), E.item = E.getByCode(E.location);
485
485
  //#endregion
486
486
  //#region src/functions/isWindow.ts
487
- function ce(e) {
487
+ function O(e) {
488
488
  return m() && e === window;
489
489
  }
490
490
  //#endregion
491
491
  //#region src/functions/getElement.ts
492
- function D(e) {
492
+ function k(e) {
493
493
  if (m()) {
494
- if (ce(e)) return document.body;
494
+ if (O(e)) return document.body;
495
495
  if (u(e)) {
496
496
  var t;
497
497
  return (t = document.querySelector(e)) == null ? void 0 : t;
@@ -501,30 +501,30 @@ function D(e) {
501
501
  }
502
502
  //#endregion
503
503
  //#region src/functions/getElementOrWindow.ts
504
- function O(e) {
505
- return ce(e) ? e : D(e);
504
+ function se(e) {
505
+ return O(e) ? e : k(e);
506
506
  }
507
507
  //#endregion
508
508
  //#region src/functions/isInDom.ts
509
- function le(e) {
509
+ function ce(e) {
510
510
  var t;
511
- return !!((t = D(e)) != null && t.closest("html"));
511
+ return !!((t = k(e)) != null && t.closest("html"));
512
512
  }
513
513
  //#endregion
514
514
  //#region src/functions/toArray.ts
515
- function k(e) {
515
+ function A(e) {
516
516
  return Array.isArray(e) ? e : [e];
517
517
  }
518
518
  //#endregion
519
519
  //#region src/classes/EventItem.ts
520
- var A = class {
520
+ var le = class {
521
521
  constructor(e, n = ["click"], r, i, a) {
522
522
  S(this, "element", void 0), S(this, "elementControl", void 0), S(this, "elementControlEdit", void 0), S(this, "type", void 0), S(this, "listenerRecent", (e) => {
523
- if (le(this.elementControl)) {
523
+ if (ce(this.elementControl)) {
524
524
  var n, r;
525
525
  (n = this.listener) == null || n.call(this.element, e, this.detail), t(this.options) && (r = this.options) != null && r.once && this.stop();
526
526
  } else this.stop();
527
- }), S(this, "activity", !1), S(this, "activityItems", []), this.listener = r, this.options = i, this.detail = a, this.element = O(e), this.elementControl = D(e), this.type = k(n);
527
+ }), S(this, "activity", !1), S(this, "activityItems", []), this.listener = r, this.options = i, this.detail = a, this.element = se(e), this.elementControl = k(e), this.type = A(n);
528
528
  }
529
529
  isActive() {
530
530
  return this.activity;
@@ -533,14 +533,14 @@ var A = class {
533
533
  return this.element;
534
534
  }
535
535
  setElement(e) {
536
- let t = O(e);
537
- return this.elementControlEdit || (this.elementControl = D(e)), this.element = t, this.reset(), this;
536
+ let t = se(e);
537
+ return this.elementControlEdit || (this.elementControl = k(e)), this.element = t, this.reset(), this;
538
538
  }
539
539
  setElementControl(e) {
540
- return this.elementControl = D(e), this.elementControlEdit = !s(this.elementControl), this.elementControlEdit || (this.elementControl = D(this.element)), this;
540
+ return this.elementControl = k(e), this.elementControlEdit = !s(this.elementControl), this.elementControlEdit || (this.elementControl = k(this.element)), this;
541
541
  }
542
542
  setType(e) {
543
- return this.type = k(e), this.reset(), this;
543
+ return this.type = A(e), this.reset(), this;
544
544
  }
545
545
  setListener(e) {
546
546
  return this.listener = e, this;
@@ -611,7 +611,7 @@ var A = class {
611
611
  }
612
612
  }, ue = "ui-loading", de = class {
613
613
  constructor(e = ue) {
614
- S(this, "value", 0), S(this, "event", void 0), S(this, "registrationList", []), this.eventName = e, m() && (this.event = new A(window, this.eventName));
614
+ S(this, "value", 0), S(this, "event", void 0), S(this, "registrationList", []), this.eventName = e, m() && (this.event = new le(window, this.eventName));
615
615
  }
616
616
  is() {
617
617
  return this.value > 0;
@@ -627,7 +627,7 @@ var A = class {
627
627
  }
628
628
  registrationEvent(e, t) {
629
629
  if (m()) {
630
- let n = new A(window, this.eventName, e).setElementControl(t).start();
630
+ let n = new le(window, this.eventName, e).setElementControl(t).start();
631
631
  this.registrationList.push({
632
632
  item: n,
633
633
  listener: e,
@@ -707,7 +707,7 @@ var fe = class {
707
707
  addByFormData(e, t) {
708
708
  for (let n in t) e.has(n) || e.set(n, t[n]);
709
709
  }
710
- }, me = class {
710
+ }, N = class {
711
711
  constructor() {
712
712
  S(this, "value", void 0);
713
713
  }
@@ -765,13 +765,13 @@ var fe = class {
765
765
  };
766
766
  //#endregion
767
767
  //#region src/functions/executePromise.ts
768
- async function he(e) {
769
- let t = y(e);
770
- return t instanceof Promise ? await t : t;
768
+ async function me(e, ...t) {
769
+ let n = y(e, ...t);
770
+ return n instanceof Promise ? await n : n;
771
771
  }
772
772
  //#endregion
773
773
  //#region src/classes/ApiResponse.ts
774
- var ge = "d-response-loading", _e = class {
774
+ var he = "d-response-loading", ge = class {
775
775
  constructor(e) {
776
776
  S(this, "first", []), S(this, "response", []), S(this, "loading", void 0), S(this, "devMode", !1), this.requestDefault = e;
777
777
  }
@@ -782,7 +782,7 @@ var ge = "d-response-loading", _e = class {
782
782
  return this.response.filter((e) => e.isForGlobal !== !0);
783
783
  }
784
784
  add(e) {
785
- return this.response.push(...k(e)), this;
785
+ return this.response.push(...A(e)), this;
786
786
  }
787
787
  setDevMode(e) {
788
788
  return this.devMode = e, this;
@@ -815,7 +815,7 @@ var ge = "d-response-loading", _e = class {
815
815
  }
816
816
  fetch(e, t) {
817
817
  return this.startResponseLoading(), new Promise((n) => {
818
- he(v(e.response) ? e.response(t) : e.response).then((t) => {
818
+ me(v(e.response) ? e.response(t) : e.response).then((t) => {
819
819
  e != null && e.lag ? (j.show(), setTimeout(() => {
820
820
  this.stopResponseLoading(), n(t), j.hide();
821
821
  }, d(0, 2e3))) : (this.stopResponseLoading(), n(t));
@@ -823,14 +823,14 @@ var ge = "d-response-loading", _e = class {
823
823
  });
824
824
  }
825
825
  startResponseLoading() {
826
- this.loading && clearTimeout(this.loading), m() && document.body.classList.add(ge);
826
+ this.loading && clearTimeout(this.loading), m() && document.body.classList.add(he);
827
827
  }
828
828
  stopResponseLoading() {
829
829
  this.loading = setTimeout(() => {
830
- this.loading = void 0, m() && document.body.classList.remove(ge);
830
+ this.loading = void 0, m() && document.body.classList.remove(he);
831
831
  }, 1200);
832
832
  }
833
- }, ve = class {
833
+ }, _e = class {
834
834
  constructor() {
835
835
  S(this, "callback", void 0), S(this, "callbackEnd", void 0), S(this, "loading", !1);
836
836
  }
@@ -858,10 +858,10 @@ var ge = "d-response-loading", _e = class {
858
858
  let n = {};
859
859
  return this.callbackEnd && (n = await this.callbackEnd(e, t)), n;
860
860
  }
861
- }, ye = class {
861
+ }, ve = class {
862
862
  constructor(e = "/api/", t = {}) {
863
863
  S(this, "headers", void 0), S(this, "requestDefault", void 0), S(this, "status", void 0), S(this, "response", void 0), S(this, "preparation", void 0), S(this, "loading", void 0), S(this, "errorCenter", void 0), S(this, "timeout", 16e3), this.url = e;
864
- let { headersClass: n = fe, requestDefaultClass: r = pe, statusClass: i = me, responseClass: a = _e, preparationClass: o = ve, loadingClass: s = j.getItem(), errorCenterClass: c = C.getItem() } = t;
864
+ let { headersClass: n = fe, requestDefaultClass: r = pe, statusClass: i = N, responseClass: a = ge, preparationClass: o = _e, loadingClass: s = j.getItem(), errorCenterClass: c = C.getItem() } = t;
865
865
  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;
866
866
  }
867
867
  isLocalhost() {
@@ -874,7 +874,7 @@ var ge = "d-response-loading", _e = class {
874
874
  return this.response;
875
875
  }
876
876
  getUrl(e, t = !0) {
877
- return `${t ? this.url : ""}${e}`.replace("{locale}", E.getLocation()).replace("{country}", E.getCountry()).replace("{language}", E.getLanguage());
877
+ return `${t ? this.url : ""}${e}`.replace("{locale}", D.getLocation()).replace("{country}", D.getCountry()).replace("{language}", D.getLanguage());
878
878
  }
879
879
  getBody(e = {}, t = M.get) {
880
880
  if (e instanceof FormData) return e;
@@ -926,7 +926,7 @@ var ge = "d-response-loading", _e = class {
926
926
  async fetch(e, t = 0) {
927
927
  let { toData: n = !0, hideError: r = !1, hideLoading: i = !1, retry: a = 0, retryDelay: o = 64, queryReturn: s = void 0, globalPreparation: c = !0, globalEnd: l = !0 } = e, u = await this.response.emulator(e);
928
928
  if (u) return u;
929
- let d = new me(), p;
929
+ let d = new N(), p;
930
930
  i || this.loading.show();
931
931
  try {
932
932
  await this.preparation.make(c, e);
@@ -1029,7 +1029,7 @@ var ge = "d-response-loading", _e = class {
1029
1029
  }, n);
1030
1030
  }
1031
1031
  }
1032
- }, N = class e {
1032
+ }, P = class e {
1033
1033
  static isLocalhost() {
1034
1034
  return this.item.isLocalhost();
1035
1035
  }
@@ -1088,10 +1088,10 @@ var ge = "d-response-loading", _e = class {
1088
1088
  return this.item.delete(e);
1089
1089
  }
1090
1090
  };
1091
- S(N, "item", new ye());
1091
+ S(P, "item", new ve());
1092
1092
  //#endregion
1093
1093
  //#region src/classes/BroadcastMessage.ts
1094
- var be = class {
1094
+ var ye = class {
1095
1095
  constructor(e, t, n, r = C.getItem()) {
1096
1096
  if (S(this, "channel", void 0), S(this, "update", (e) => {
1097
1097
  var t;
@@ -1100,7 +1100,7 @@ var be = class {
1100
1100
  var t;
1101
1101
  return (t = this.callbackError) == null || t.call(this, e), this;
1102
1102
  }), this.callback = t, this.callbackError = n, m()) try {
1103
- this.channel = new BroadcastChannel(`${xe()}__${e}`), this.channel.onmessage = this.update, this.channel.onmessageerror = this.updateError;
1103
+ this.channel = new BroadcastChannel(`${be()}__${e}`), this.channel.onmessage = this.update, this.channel.onmessageerror = this.updateError;
1104
1104
  } catch (e) {
1105
1105
  r.on({
1106
1106
  group: "broadcast",
@@ -1122,7 +1122,7 @@ var be = class {
1122
1122
  setCallbackError(e) {
1123
1123
  return this.callbackError = e, this;
1124
1124
  }
1125
- }, xe = () => new w("__broadcast-name").get(() => `name_${d(1e6, 9999999)}`), Se = class {
1125
+ }, be = () => new T("__broadcast-name").get(() => `name_${d(1e6, 9999999)}`), xe = class {
1126
1126
  constructor(e) {
1127
1127
  S(this, "cache", void 0), S(this, "cacheOld", void 0), S(this, "comparisons", []), this.callback = e;
1128
1128
  }
@@ -1144,7 +1144,7 @@ var be = class {
1144
1144
  isUpdate(e) {
1145
1145
  return this.cache === void 0 || this.comparisons.length !== e.length || this.comparisons.findIndex((t, n) => t !== e[n]) >= 0 ? (this.comparisons = [...e], !0) : !1;
1146
1146
  }
1147
- }, Ce = class {
1147
+ }, Se = class {
1148
1148
  constructor() {
1149
1149
  S(this, "cache", {});
1150
1150
  }
@@ -1155,17 +1155,17 @@ var be = class {
1155
1155
  return await this.getCacheItem(e, t).getCacheAsync(n == null ? [] : n);
1156
1156
  }
1157
1157
  getCacheItem(e, t) {
1158
- return e in this.cache || (this.cache[e] = new Se(t)), this.cache[e];
1158
+ return e in this.cache || (this.cache[e] = new xe(t)), this.cache[e];
1159
1159
  }
1160
- }, we, Te = class {
1160
+ }, Ce, F = class {
1161
1161
  static get(e, t, n) {
1162
1162
  return this.cache.get(e, t, n);
1163
1163
  }
1164
1164
  };
1165
- we = Te, S(Te, "cache", void 0), we.cache = new Ce();
1165
+ Ce = F, S(F, "cache", void 0), Ce.cache = new Se();
1166
1166
  //#endregion
1167
1167
  //#region src/functions/transformation.ts
1168
- function Ee(e, t = !1) {
1168
+ function we(e, t = !1) {
1169
1169
  if (typeof e == "string") {
1170
1170
  let r = e.trim();
1171
1171
  switch (r) {
@@ -1189,7 +1189,7 @@ function Ee(e, t = !1) {
1189
1189
  }
1190
1190
  //#endregion
1191
1191
  //#region src/classes/CookieBlock.ts
1192
- var De = "cookie-block", Oe = class {
1192
+ var Te = "cookie-block", Ee = class {
1193
1193
  static get() {
1194
1194
  var e;
1195
1195
  return (e = this.storage.get()) == null ? !1 : e;
@@ -1198,13 +1198,13 @@ var De = "cookie-block", Oe = class {
1198
1198
  this.storage.set(e);
1199
1199
  }
1200
1200
  };
1201
- S(Oe, "storage", new w(De));
1201
+ S(Ee, "storage", new T(Te));
1202
1202
  //#endregion
1203
1203
  //#region src/classes/Cookie.ts
1204
- var ke, Ae = {}, je = class {
1204
+ var De, Oe = {}, ke = class {
1205
1205
  constructor(e) {
1206
- if (S(this, "value", void 0), S(this, "options", {}), this.name = e, e in Me) return Me[e];
1207
- this.value = Ae == null ? void 0 : Ae[e], Me[e] = this;
1206
+ if (S(this, "value", void 0), S(this, "options", {}), this.name = e, e in Ae) return Ae[e];
1207
+ this.value = Oe == null ? void 0 : Oe[e], Ae[e] = this;
1208
1208
  }
1209
1209
  get(e, t) {
1210
1210
  return this.value === void 0 && e && this.set(e, t), this.value;
@@ -1220,7 +1220,7 @@ var ke, Ae = {}, je = class {
1220
1220
  return (e = (t = this.options) == null ? void 0 : t.age) == null ? 10080 * 60 : e;
1221
1221
  }
1222
1222
  update() {
1223
- if (m() && !b() && !Oe.get()) {
1223
+ if (m() && !b() && !Ee.get()) {
1224
1224
  var e, t, n, r, i;
1225
1225
  let a = String((e = this.value) == null ? "" : e);
1226
1226
  document.cookie = [
@@ -1234,40 +1234,40 @@ var ke, Ae = {}, je = class {
1234
1234
  static updateData() {
1235
1235
  for (let e of document.cookie.split(";")) {
1236
1236
  let [t, n] = e.trim().split("=");
1237
- t && c(n) && (Ae[t] = Ee(n));
1237
+ t && c(n) && (Oe[t] = we(n));
1238
1238
  }
1239
1239
  }
1240
1240
  };
1241
- ke = je, m() && !b() && ke.updateData();
1242
- var Me = {};
1241
+ De = ke, m() && !b() && De.updateData();
1242
+ var Ae = {};
1243
1243
  //#endregion
1244
1244
  //#region src/functions/toDate.ts
1245
- function P(e) {
1245
+ function I(e) {
1246
1246
  var t, n, r, i, a, o, c, l;
1247
1247
  if (e instanceof Date) return e;
1248
1248
  if (s(e)) return /* @__PURE__ */ new Date();
1249
1249
  if (typeof e == "number") return new Date(e);
1250
- let u = e, d = E.getTimezoneFormat().trim();
1250
+ let u = e, d = D.getTimezoneFormat().trim();
1251
1251
  e.replace(/^([\s\S]+)([-+]\d{2}:?\d{2})$/, (e, t, n) => (u = t, d = n.trim(), e));
1252
1252
  let f = (t = (n = (r = (i = (a = (o = (c = (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") : c) == 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;
1253
1253
  return /* @__PURE__ */ new Date(`${f.trim()}${d}`);
1254
1254
  }
1255
1255
  //#endregion
1256
1256
  //#region src/functions/getColumn.ts
1257
- function Ne(e, t) {
1257
+ function je(e, t) {
1258
1258
  return i(e, (e) => e == null ? void 0 : e[t], !0);
1259
1259
  }
1260
1260
  //#endregion
1261
1261
  //#region src/classes/GeoIntl.ts
1262
- var F = class e {
1263
- static getInstance(t = E.getLocation()) {
1262
+ var L = class e {
1263
+ static getInstance(t = D.getLocation()) {
1264
1264
  return new e(t);
1265
1265
  }
1266
- constructor(e = E.getLocation(), t = C.getItem()) {
1267
- S(this, "geo", void 0), this.errorCenter = t, this.geo = E.find(e);
1266
+ constructor(e = D.getLocation(), t = C.getItem()) {
1267
+ S(this, "geo", void 0), this.errorCenter = t, this.geo = D.find(e);
1268
1268
  let n = this.getLocation();
1269
- if (n in I) return I[n];
1270
- I[n] = this;
1269
+ if (n in R) return R[n];
1270
+ R[n] = this;
1271
1271
  }
1272
1272
  getLocation() {
1273
1273
  return this.geo.standard;
@@ -1298,7 +1298,7 @@ var F = class e {
1298
1298
  type: "language",
1299
1299
  style: t
1300
1300
  };
1301
- return this.display(E.getByCode(e).language, n);
1301
+ return this.display(D.getByCode(e).language, n);
1302
1302
  }
1303
1303
  countryName(e, t) {
1304
1304
  let n = {
@@ -1342,7 +1342,7 @@ var F = class e {
1342
1342
  }, i = e.toString().replace(/^([\S\s]+[\d ])([a-zA-Z]{3})$/i, (...e) => (r.currency = String(e[2]).toUpperCase(), String(e[1])));
1343
1343
  if (n) {
1344
1344
  let t = this.numberObject(r);
1345
- return t ? Ne(t.formatToParts(g(e)).filter((e) => ["literal", "currency"].indexOf(e.type) === -1), "value").join("") : e.toString();
1345
+ return t ? je(t.formatToParts(g(e)).filter((e) => ["literal", "currency"].indexOf(e.type) === -1), "value").join("") : e.toString();
1346
1346
  } else if ("currency" in r) return this.number(typeof e == "number" ? e : i, r);
1347
1347
  else return this.number(typeof e == "number" ? e : i, {
1348
1348
  ...r,
@@ -1423,18 +1423,18 @@ var F = class e {
1423
1423
  return `${this.number(a, r)} ${(i = o == null ? void 0 : o[0]) == null ? "" : i}`.trim();
1424
1424
  }
1425
1425
  date(e, t, n, r) {
1426
- let i = P(e), a = typeof n == "string", o = this.dateOptions(t, a ? n : "short");
1426
+ let i = I(e), a = typeof n == "string", o = this.dateOptions(t, a ? n : "short");
1427
1427
  return r && (o.hour12 = !1), a || Object.assign(o, n), i.toLocaleString(this.getLocation(), o);
1428
1428
  }
1429
1429
  relative(e, t, n) {
1430
- let r = P(e), i = n || /* @__PURE__ */ new Date(), a = {
1430
+ let r = I(e), i = n || /* @__PURE__ */ new Date(), a = {
1431
1431
  numeric: "auto",
1432
1432
  ...typeof t == "string" ? { style: t } : t || {}
1433
1433
  }, o = "second", s = (r.getTime() - i.getTime()) / 1e3;
1434
1434
  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);
1435
1435
  }
1436
1436
  relativeLimit(e, t, n, r, i, a, o) {
1437
- let s = P(e), c = n || /* @__PURE__ */ new Date(), l = new Date(c), u = new Date(c);
1437
+ let s = I(e), c = n || /* @__PURE__ */ new Date(), l = new Date(c), u = new Date(c);
1438
1438
  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);
1439
1439
  }
1440
1440
  relativeByValue(e, t, n) {
@@ -1455,7 +1455,7 @@ var F = class e {
1455
1455
  }
1456
1456
  month(e, t) {
1457
1457
  try {
1458
- if (this.hasIntlDateTimeFormat()) return Intl.DateTimeFormat(this.getLocation(), { month: t || "long" }).format(P(e));
1458
+ if (this.hasIntlDateTimeFormat()) return Intl.DateTimeFormat(this.getLocation(), { month: t || "long" }).format(I(e));
1459
1459
  } catch (e) {
1460
1460
  this.errorCenter.on({
1461
1461
  group: "intl",
@@ -1489,7 +1489,7 @@ var F = class e {
1489
1489
  }
1490
1490
  weekday(e, t) {
1491
1491
  try {
1492
- if (this.hasIntlDateTimeFormat()) return Intl.DateTimeFormat(this.getLocation(), { weekday: t || "long" }).format(P(e));
1492
+ if (this.hasIntlDateTimeFormat()) return Intl.DateTimeFormat(this.getLocation(), { weekday: t || "long" }).format(I(e));
1493
1493
  } catch (e) {
1494
1494
  this.errorCenter.on({
1495
1495
  group: "intl",
@@ -1591,12 +1591,12 @@ var F = class e {
1591
1591
  "second"
1592
1592
  ].indexOf(e) !== -1 && (n.second = "2-digit")), n;
1593
1593
  }
1594
- }, I = {}, Pe = class e {
1595
- constructor(e, t = "date", n = E.getLocation()) {
1596
- S(this, "date", void 0), S(this, "hour24", !1), S(this, "watch", void 0), this.type = t, this.code = n, this.date = P(e);
1594
+ }, R = {}, Me = class e {
1595
+ constructor(e, t = "date", n = D.getLocation()) {
1596
+ S(this, "date", void 0), S(this, "hour24", !1), S(this, "watch", void 0), this.type = t, this.code = n, this.date = I(e);
1597
1597
  }
1598
1598
  getIntl() {
1599
- return new F(this.code);
1599
+ return new L(this.code);
1600
1600
  }
1601
1601
  getDate() {
1602
1602
  return this.date;
@@ -1699,7 +1699,7 @@ var F = class e {
1699
1699
  ].indexOf(this.type) !== -1 && (i = n.locale("time"))), `${r.join("-")}${i ? `T${i}${t ? n.getTimeZone() : ""}` : ""}`;
1700
1700
  }
1701
1701
  setDate(e) {
1702
- return this.date = P(e), this.update(), this;
1702
+ return this.date = I(e), this.update(), this;
1703
1703
  }
1704
1704
  setType(e) {
1705
1705
  return this.type = e, this.update(), this;
@@ -1855,36 +1855,36 @@ var F = class e {
1855
1855
  };
1856
1856
  //#endregion
1857
1857
  //#region src/functions/anyToString.ts
1858
- function L(e, n = !0) {
1858
+ function z(e, n = !0) {
1859
1859
  var r;
1860
1860
  return u(e) ? e.trim() : o(e) && e.findIndex((e) => t(e)) === -1 && n ? e.join(",") : t(e) ? JSON.stringify(e) : e === !0 ? "1" : e === !1 ? "0" : (r = e == null ? void 0 : e.toString()) == null ? "" : r;
1861
1861
  }
1862
1862
  //#endregion
1863
1863
  //#region src/functions/strSplit.ts
1864
- function Fe(e, t, n) {
1865
- let r = L(e);
1864
+ function Ne(e, t, n) {
1865
+ let r = z(e);
1866
1866
  if (!n || n <= 0) return r.split(t);
1867
1867
  let i = r.split(t, n), a = r.split(t);
1868
1868
  return i.length === a.length ? i : (i.pop(), [...i, a.slice(n - 1).join(t)]);
1869
1869
  }
1870
1870
  //#endregion
1871
1871
  //#region src/functions/getItemByPath.ts
1872
- function R(e, n) {
1872
+ function B(e, n) {
1873
1873
  var r;
1874
1874
  if (!c(n)) return;
1875
- let i = Fe(n, ".", 2), a = i[0];
1876
- return a && e != null && e[a] && t(e[a]) && i != null && i[1] ? R(e[a], i[1]) : (r = c(a) && (e == null ? void 0 : e[a])) == null ? void 0 : r;
1875
+ let i = Ne(n, ".", 2), a = i[0];
1876
+ return a && e != null && e[a] && t(e[a]) && i != null && i[1] ? B(e[a], i[1]) : (r = c(a) && (e == null ? void 0 : e[a])) == null ? void 0 : r;
1877
1877
  }
1878
1878
  //#endregion
1879
1879
  //#region src/functions/toCamelCase.ts
1880
- function z(e) {
1880
+ function V(e) {
1881
1881
  return e.toString().trim().replace(/[^\w-. ]+/g, "").replace(/[ .]+/g, "-").replace(/(?<=[A-Z])([A-Z])/g, (e) => `${e.toLowerCase()}`).replace(/-+([a-zA-Z0-9])/g, (...e) => `${String(e[1]).toUpperCase()}`).replace(/^([A-Z])/, (e) => `${e.toLowerCase()}`);
1882
1882
  }
1883
1883
  //#endregion
1884
1884
  //#region src/types/formattersTypes.ts
1885
- var B = /* @__PURE__ */ function(e) {
1885
+ var H = /* @__PURE__ */ function(e) {
1886
1886
  return e.currency = "currency", e.date = "date", e.name = "name", e.number = "number", e.plural = "plural", e.unit = "unit", e;
1887
- }({}), Ie = class {
1887
+ }({}), Pe = class {
1888
1888
  constructor(e, t) {
1889
1889
  this.options = e, this.list = t;
1890
1890
  }
@@ -1898,7 +1898,7 @@ var B = /* @__PURE__ */ function(e) {
1898
1898
  return this.list ? this.isArray() ? this.list.length : 1 : 0;
1899
1899
  }
1900
1900
  getList() {
1901
- return this.list ? k(this.list) : [];
1901
+ return this.list ? A(this.list) : [];
1902
1902
  }
1903
1903
  getOptions() {
1904
1904
  return this.options;
@@ -1916,50 +1916,50 @@ var B = /* @__PURE__ */ function(e) {
1916
1916
  getFormatData(e) {
1917
1917
  let t = {};
1918
1918
  return i(this.options, (n, r) => {
1919
- let i = `${z(r)}Format`, a = R(e, r);
1919
+ let i = `${V(r)}Format`, a = B(e, r);
1920
1920
  n != null && n.transformation ? c(a) ? t[i] = n.transformation(a, e, n.options) : t[i] = "" : t[i] = this.transformation(a, e, n.type, n.options);
1921
1921
  }), t;
1922
1922
  }
1923
1923
  transformation(e, t, n, r) {
1924
- if (c(e) || n === B.name) switch (n) {
1925
- case B.currency: return this.formatCurrency(e, t, r);
1926
- case B.date: return this.formatDate(e, r);
1927
- case B.name: return this.formatName(t, r);
1928
- case B.number: return this.formatNumber(e, r);
1929
- case B.plural: return this.formatPlural(e, r);
1930
- case B.unit: return this.formatUnit(e, r);
1924
+ if (c(e) || n === H.name) switch (n) {
1925
+ case H.currency: return this.formatCurrency(e, t, r);
1926
+ case H.date: return this.formatDate(e, r);
1927
+ case H.name: return this.formatName(t, r);
1928
+ case H.number: return this.formatNumber(e, r);
1929
+ case H.plural: return this.formatPlural(e, r);
1930
+ case H.unit: return this.formatUnit(e, r);
1931
1931
  default: return String(e);
1932
1932
  }
1933
1933
  return "";
1934
1934
  }
1935
1935
  formatCurrency(e, t, n) {
1936
1936
  var r;
1937
- let i = n != null && n.currencyPropName ? R(t, n.currencyPropName) : t == null ? void 0 : t.currency;
1938
- return F.getInstance().currency(e, (r = n == null ? void 0 : n.options) == null ? i : r, n == null ? void 0 : n.numberOnly);
1937
+ let i = n != null && n.currencyPropName ? B(t, n.currencyPropName) : t == null ? void 0 : t.currency;
1938
+ return L.getInstance().currency(e, (r = n == null ? void 0 : n.options) == null ? i : r, n == null ? void 0 : n.numberOnly);
1939
1939
  }
1940
1940
  formatDate(e, t) {
1941
- return F.getInstance().date(e, t == null ? void 0 : t.type, t == null ? void 0 : t.options, t == null ? void 0 : t.hour24);
1941
+ return L.getInstance().date(e, t == null ? void 0 : t.type, t == null ? void 0 : t.options, t == null ? void 0 : t.hour24);
1942
1942
  }
1943
1943
  formatName(e, t) {
1944
1944
  var n, r, i;
1945
- let a = R(e, (n = t == null ? void 0 : t.lastPropName) == null ? "lastName" : n), o = R(e, (r = t == null ? void 0 : t.firstPropName) == null ? "firstName" : r), s = R(e, (i = t == null ? void 0 : t.surname) == null ? "surname" : i);
1946
- return a && o ? F.getInstance().fullName(a, o, s, t == null ? void 0 : t.short) : "";
1945
+ let a = B(e, (n = t == null ? void 0 : t.lastPropName) == null ? "lastName" : n), o = B(e, (r = t == null ? void 0 : t.firstPropName) == null ? "firstName" : r), s = B(e, (i = t == null ? void 0 : t.surname) == null ? "surname" : i);
1946
+ return a && o ? L.getInstance().fullName(a, o, s, t == null ? void 0 : t.short) : "";
1947
1947
  }
1948
1948
  formatNumber(e, t) {
1949
- return F.getInstance().number(e, t == null ? void 0 : t.options);
1949
+ return L.getInstance().number(e, t == null ? void 0 : t.options);
1950
1950
  }
1951
1951
  formatPlural(e, t) {
1952
- return t && t.words ? F.getInstance().plural(e, t == null ? void 0 : t.words, t == null ? void 0 : t.options, t == null ? void 0 : t.optionsNumber) : e;
1952
+ return t && t.words ? L.getInstance().plural(e, t == null ? void 0 : t.words, t == null ? void 0 : t.options, t == null ? void 0 : t.optionsNumber) : e;
1953
1953
  }
1954
1954
  formatUnit(e, t) {
1955
- return t && t.unit ? F.getInstance().unit(e, t.unit) : e;
1955
+ return t && t.unit ? L.getInstance().unit(e, t.unit) : e;
1956
1956
  }
1957
- }, Le = "f", Re = class e {
1958
- constructor(e = E.getLocation()) {
1957
+ }, Fe = "f", Ie = class e {
1958
+ constructor(e = D.getLocation()) {
1959
1959
  this.code = e;
1960
1960
  }
1961
1961
  get(t = this.code) {
1962
- let n = E.find(t);
1962
+ let n = D.find(t);
1963
1963
  if (n) {
1964
1964
  var r;
1965
1965
  let t = this.getCountry(n);
@@ -1995,7 +1995,7 @@ var B = /* @__PURE__ */ function(e) {
1995
1995
  return this.code = e, this;
1996
1996
  }
1997
1997
  getLocation() {
1998
- return new F(this.code);
1998
+ return new L(this.code);
1999
1999
  }
2000
2000
  getCodes(t) {
2001
2001
  return t == null ? Object.keys(e.flags) : t;
@@ -2007,7 +2007,7 @@ var B = /* @__PURE__ */ function(e) {
2007
2007
  return this.getLocation().countryName(e.country);
2008
2008
  }
2009
2009
  };
2010
- S(Re, "flags", {
2010
+ S(Ie, "flags", {
2011
2011
  AD: "f-ad",
2012
2012
  AE: "f-ae",
2013
2013
  AF: "f-af",
@@ -2252,7 +2252,7 @@ S(Re, "flags", {
2252
2252
  });
2253
2253
  //#endregion
2254
2254
  //#region src/classes/GeoPhone.ts
2255
- var V = class {
2255
+ var Le = class {
2256
2256
  static get(e) {
2257
2257
  return this.getList().find((t) => e === t.value);
2258
2258
  }
@@ -2308,11 +2308,11 @@ var V = class {
2308
2308
  return (t = (n = e.match(/\*/g)) == null ? void 0 : n.length) == null ? 0 : t;
2309
2309
  }
2310
2310
  static makeList() {
2311
- this.list = i(E.getList(), (e) => {
2311
+ this.list = i(D.getList(), (e) => {
2312
2312
  if (e != null && e.phoneMask) return {
2313
2313
  phone: (e == null ? void 0 : e.phoneCode) && Number(e.phoneCode.replace(/[^0-9]+/, "")) || void 0,
2314
2314
  within: (e == null ? void 0 : e.phoneWithin) || 0,
2315
- mask: k(e.phoneMask),
2315
+ mask: A(e.phoneMask),
2316
2316
  value: e.country
2317
2317
  };
2318
2318
  }).sort((e, t) => e.phone - t.phone);
@@ -2350,17 +2350,17 @@ var V = class {
2350
2350
  return e.replace(/\*/, this.getWithinSymbol(t));
2351
2351
  }
2352
2352
  };
2353
- S(V, "list", void 0), S(V, "map", void 0);
2353
+ S(Le, "list", void 0), S(Le, "map", void 0);
2354
2354
  //#endregion
2355
2355
  //#region src/classes/Global.ts
2356
- var H, ze = class {
2356
+ var U, Re = class {
2357
2357
  static get(e) {
2358
- return H && (H == null ? void 0 : H[e]);
2358
+ return U && (U == null ? void 0 : U[e]);
2359
2359
  }
2360
2360
  static add(e) {
2361
- H === void 0 && (H = r(e));
2361
+ U === void 0 && (U = r(e));
2362
2362
  }
2363
- }, U, W = class {
2363
+ }, ze, W = class {
2364
2364
  static get(e, t) {
2365
2365
  return !(e in this.hash) && t && this.set(e, t), this.hash[e];
2366
2366
  }
@@ -2388,7 +2388,7 @@ var H, ze = class {
2388
2388
  }
2389
2389
  static getLocation() {
2390
2390
  let e = {};
2391
- return location.hash.replace(/([\w-]+)[:=]([^;]+)/gi, (...t) => (e[String(t[1])] = Ee(t[2]), "")), e;
2391
+ return location.hash.replace(/([\w-]+)[:=]([^;]+)/gi, (...t) => (e[String(t[1])] = we(t[2]), "")), e;
2392
2392
  }
2393
2393
  static update() {
2394
2394
  this.block = !0, history.replaceState(null, "", `#${a(this.hash, "=", ";")}`), requestAnimationFrame(() => {
@@ -2402,7 +2402,7 @@ var H, ze = class {
2402
2402
  });
2403
2403
  }
2404
2404
  };
2405
- U = W, S(W, "hash", {}), S(W, "watch", {}), S(W, "block", !1), m() && (U.reload(), addEventListener("hashchange", () => U.reload()));
2405
+ ze = W, S(W, "hash", {}), S(W, "watch", {}), S(W, "block", !1), m() && (ze.reload(), addEventListener("hashchange", () => ze.reload()));
2406
2406
  //#endregion
2407
2407
  //#region src/classes/Icons.ts
2408
2408
  var Be, Ve = "__UI_ICON", He = 320, Ue = "--LOAD--", G = class {
@@ -2418,7 +2418,7 @@ var Be, Ve = "__UI_ICON", He = 320, Ue = "--LOAD--", G = class {
2418
2418
  return i(this.icons, (e, t) => t.replace(/^@/, ""));
2419
2419
  }
2420
2420
  static getUrlGlobal() {
2421
- return `${N.isLocalhost(), ""}${this.url}`;
2421
+ return `${P.isLocalhost(), ""}${this.url}`;
2422
2422
  }
2423
2423
  static add(e, t) {
2424
2424
  this.icons[this.getName(e)] = t;
@@ -2450,12 +2450,12 @@ Be = G, S(G, "icons", {}), S(G, "url", "/icons/"), m() && (Ve in window || (wind
2450
2450
  //#region src/functions/getElementItem.ts
2451
2451
  function We(e, t, n) {
2452
2452
  var r, i;
2453
- return (r = (i = D(e)) == null ? void 0 : i[t]) == null ? n : r;
2453
+ return (r = (i = k(e)) == null ? void 0 : i[t]) == null ? n : r;
2454
2454
  }
2455
2455
  //#endregion
2456
2456
  //#region src/functions/setElementItem.ts
2457
2457
  function Ge(e, n, r) {
2458
- let a = D(e);
2458
+ let a = k(e);
2459
2459
  if (a) {
2460
2460
  let e = We(a, n);
2461
2461
  if (t(e) && t(r)) i(r, (t, n) => {
@@ -2696,7 +2696,7 @@ var q = class {
2696
2696
  return this;
2697
2697
  }
2698
2698
  setKeywords(e) {
2699
- return this.set(J.keywords, k(e).join(", ")), this;
2699
+ return this.set(J.keywords, A(e).join(", ")), this;
2700
2700
  }
2701
2701
  setDescription(e) {
2702
2702
  return this.set(J.description, e), this;
@@ -2765,7 +2765,7 @@ var q = class {
2765
2765
  });
2766
2766
  }
2767
2767
  };
2768
- S(Z, "storage", new w("scrollbar", !0)), S(Z, "calculate", !1);
2768
+ S(Z, "storage", new T("scrollbar", !0)), S(Z, "calculate", !1);
2769
2769
  //#endregion
2770
2770
  //#region src/functions/escapeExp.ts
2771
2771
  function Q(e) {
@@ -2823,8 +2823,8 @@ var at = class {
2823
2823
  toFormatItem(e, t) {
2824
2824
  let n = {};
2825
2825
  return this.columns && this.columns.forEach((r) => {
2826
- let i = this.getColumnName(r), a = R(e, r);
2827
- n[i] = c(a) && t ? this.addTag(a) : L(a);
2826
+ let i = this.getColumnName(r), a = B(e, r);
2827
+ n[i] = c(a) && t ? this.addTag(a) : z(a);
2828
2828
  }), {
2829
2829
  ...e,
2830
2830
  ...n,
@@ -2835,7 +2835,7 @@ var at = class {
2835
2835
  return e.replace(/\.([a-z0-9])/gi, (e, t) => t.toUpperCase()) + "Search";
2836
2836
  }
2837
2837
  addTag(e) {
2838
- return it(L(e), this.item.get(), this.options.getClassName());
2838
+ return it(z(e), this.item.get(), this.options.getClassName());
2839
2839
  }
2840
2840
  generateCache() {
2841
2841
  if (!this.isList()) return [];
@@ -2843,8 +2843,8 @@ var at = class {
2843
2843
  for (let t of this.list) {
2844
2844
  let n = "";
2845
2845
  if (this.columns) for (let e of this.columns) {
2846
- let r = R(t, e);
2847
- c(r) && (n += ` ${L(r)}`);
2846
+ let r = B(t, e);
2847
+ c(r) && (n += ` ${z(r)}`);
2848
2848
  }
2849
2849
  e.push({
2850
2850
  item: t,
@@ -2990,7 +2990,43 @@ var ut = class {
2990
2990
  let e = this.data.getList();
2991
2991
  return e ? i(e, this.callbackToNone) : [];
2992
2992
  }
2993
- }, pt = [
2993
+ }, pt = class e {
2994
+ static getInstance(t, n = "main") {
2995
+ return new e(t, n);
2996
+ }
2997
+ constructor(e, t = "main") {
2998
+ S(this, "callbacks", []), S(this, "loading", !1), this.name = e, this.group = t;
2999
+ let n = `${t}:${e}`;
3000
+ if (n in mt) return mt[n];
3001
+ mt[n] = this;
3002
+ }
3003
+ isLoading() {
3004
+ return this.loading;
3005
+ }
3006
+ getName() {
3007
+ return this.name;
3008
+ }
3009
+ getLoading() {
3010
+ return this.loading;
3011
+ }
3012
+ addCallback(e, t) {
3013
+ return this.callbacks.push({
3014
+ callback: e,
3015
+ isOnce: t
3016
+ }), this;
3017
+ }
3018
+ removeCallback(e) {
3019
+ return this.callbacks = this.callbacks.filter((t) => t.callback !== e), this;
3020
+ }
3021
+ preparation() {
3022
+ return this.loading = !0, this;
3023
+ }
3024
+ async run(e) {
3025
+ this.loading = !1;
3026
+ for (let { callback: t, isOnce: n } of this.callbacks) await me(t, e), n && this.removeCallback(t);
3027
+ return this;
3028
+ }
3029
+ }, mt = {}, ht = [
2994
3030
  "d",
2995
3031
  "e",
2996
3032
  "f",
@@ -3010,19 +3046,19 @@ var ut = class {
3010
3046
  "t",
3011
3047
  "u",
3012
3048
  "v"
3013
- ], mt = (e, t = {}) => {
3049
+ ], gt = (e, t = {}) => {
3014
3050
  let r = String(e);
3015
3051
  if (e.match(/%[a-z]/)) {
3016
3052
  let e = 0;
3017
3053
  i(t, (t) => {
3018
- r = r.replace(RegExp(`%${pt[e++]}`, "g"), String(t));
3054
+ r = r.replace(RegExp(`%${ht[e++]}`, "g"), String(t));
3019
3055
  });
3020
3056
  }
3021
3057
  return n(t) && i(t, (e, t) => {
3022
3058
  r = r.replace(RegExp(`(?:\\[|\\{)${t}(?:\\]|\\})(.*?)(?:\\[|\\{)\\/${t}(?:\\]|\\})`, "g"), (t, n) => String(e).replace(/(?:\[|\{)content(?:\]|\})/g, n)).replace(RegExp(`(?:\\[|\\{)${t}(?:\\]|\\})`, "g"), String(e));
3023
3059
  }), r;
3024
- }, ht = "global", gt = 160, _t = class {
3025
- constructor(e, t = () => E.getLanguage(), n = () => E.getLocation()) {
3060
+ }, _t = "global", vt = 160, yt = class {
3061
+ constructor(e, t = () => D.getLanguage(), n = () => D.getLocation()) {
3026
3062
  S(this, "files", {}), S(this, "data", {}), this.language = t, this.location = n, e && this.add(e);
3027
3063
  }
3028
3064
  isFile() {
@@ -3051,7 +3087,7 @@ var ut = class {
3051
3087
  if (e in this.files) return e;
3052
3088
  let t = this.getLanguage();
3053
3089
  if (t in this.files) return t;
3054
- if ("global" in this.files) return ht;
3090
+ if ("global" in this.files) return _t;
3055
3091
  }
3056
3092
  getByData(e) {
3057
3093
  if (e in this.data) return this.data[e];
@@ -3062,14 +3098,14 @@ var ut = class {
3062
3098
  return t && (this.data[e] = t), t;
3063
3099
  }
3064
3100
  }
3065
- }, vt = class {
3066
- constructor(e = "/api/translate", t = "list", n = new _t()) {
3101
+ }, bt = class {
3102
+ constructor(e = "/api/translate", t = "list", n = new yt()) {
3067
3103
  S(this, "data", {}), S(this, "cache", []), S(this, "resolveList", []), S(this, "timeout", void 0), S(this, "isReadApi", !0), this.url = e, this.propsName = t, this.files = n;
3068
3104
  }
3069
3105
  async get(e, t) {
3070
3106
  var n;
3071
3107
  let r = this.getText(e);
3072
- return r ? this.replacement(r, t) : (N.isLocalhost() || await this.add(e), this.replacement((n = this.getText(e)) == null ? e : n));
3108
+ return r ? this.replacement(r, t) : (P.isLocalhost() || await this.add(e), this.replacement((n = this.getText(e)) == null ? e : n));
3073
3109
  }
3074
3110
  getSync(e, t = !1, n) {
3075
3111
  let r = this.getText(e);
@@ -3110,7 +3146,7 @@ var ut = class {
3110
3146
  });
3111
3147
  }
3112
3148
  async addNormalOrSync(e) {
3113
- if (c(e)) if (N.isLocalhost()) this.addSync(e);
3149
+ if (c(e)) if (P.isLocalhost()) this.addSync(e);
3114
3150
  else {
3115
3151
  let t = Object.keys(e);
3116
3152
  t.length > 0 && await this.add(t);
@@ -3152,16 +3188,16 @@ var ut = class {
3152
3188
  return `${this.files.getLanguage()}-${e}`;
3153
3189
  }
3154
3190
  getNameByGlobal(e) {
3155
- return `${ht}-${e}`;
3191
+ return `${_t}-${e}`;
3156
3192
  }
3157
3193
  getNamesNone(e) {
3158
3194
  let t = [];
3159
- return k(e).forEach((e) => {
3195
+ return A(e).forEach((e) => {
3160
3196
  e !== "__TRANSLATE_START__" && e !== "__TRANSLATE_END__" && !this.hasName(e) && t.push(e);
3161
3197
  }), t;
3162
3198
  }
3163
3199
  async getResponse() {
3164
- let e = await N.get({
3200
+ let e = await P.get({
3165
3201
  api: !1,
3166
3202
  path: this.url,
3167
3203
  request: { [this.propsName]: this.cache },
@@ -3171,7 +3207,7 @@ var ut = class {
3171
3207
  return e == null ? {} : e;
3172
3208
  }
3173
3209
  replacement(e, t) {
3174
- return t ? mt(e, t) : e;
3210
+ return t ? gt(e, t) : e;
3175
3211
  }
3176
3212
  async make() {
3177
3213
  let e;
@@ -3183,7 +3219,7 @@ var ut = class {
3183
3219
  this.data[this.getName(t)] = (n = e == null ? void 0 : e[t]) == null ? "" : n;
3184
3220
  }), this.cache = [];
3185
3221
  }
3186
- }, yt = class {
3222
+ }, xt = class {
3187
3223
  static async get(e, t) {
3188
3224
  return this.item.get(e, t);
3189
3225
  }
@@ -3227,15 +3263,15 @@ var ut = class {
3227
3263
  return e.url && this.item.setUrl(e.url), e.propsName && this.item.setPropsName(e.propsName), typeof e.readApi == "boolean" && this.item.setReadApi(e.readApi), this;
3228
3264
  }
3229
3265
  };
3230
- S(yt, "item", new vt());
3266
+ S(xt, "item", new bt());
3231
3267
  //#endregion
3232
3268
  //#region src/functions/arrFill.ts
3233
- function bt(e, t) {
3269
+ function St(e, t) {
3234
3270
  return Array(t).fill(e);
3235
3271
  }
3236
3272
  //#endregion
3237
3273
  //#region src/functions/blobToBase64.ts
3238
- function xt(e) {
3274
+ function Ct(e) {
3239
3275
  return new Promise((t, n) => {
3240
3276
  let r = new FileReader();
3241
3277
  r.onloadend = () => t(r.result), r.onerror = n, r.readAsDataURL(e);
@@ -3243,12 +3279,12 @@ function xt(e) {
3243
3279
  }
3244
3280
  //#endregion
3245
3281
  //#region src/functions/capitalize.ts
3246
- function St(e) {
3282
+ function wt(e) {
3247
3283
  return c(e) ? e.charAt(0).toUpperCase() + e.slice(1) : e;
3248
3284
  }
3249
3285
  //#endregion
3250
3286
  //#region src/functions/domQuerySelector.ts
3251
- function Ct(e) {
3287
+ function Tt(e) {
3252
3288
  if (m()) {
3253
3289
  var t;
3254
3290
  return (t = document.querySelector(e)) == null ? void 0 : t;
@@ -3256,59 +3292,59 @@ function Ct(e) {
3256
3292
  }
3257
3293
  //#endregion
3258
3294
  //#region src/functions/domQuerySelectorAll.ts
3259
- function wt(e) {
3295
+ function Et(e) {
3260
3296
  if (m()) return document.querySelectorAll(e);
3261
3297
  }
3262
3298
  //#endregion
3263
3299
  //#region src/functions/getElementImage.ts
3264
- function Tt(e) {
3300
+ function Dt(e) {
3265
3301
  return u(e) ? K(void 0, "img", { src: e }) : e;
3266
3302
  }
3267
3303
  //#endregion
3268
3304
  //#region src/functions/resizeImageByMax.ts
3269
- function Et(e, t = "auto") {
3305
+ function Ot(e, t = "auto") {
3270
3306
  switch (t) {
3271
3307
  case "auto": return e.naturalWidth >= e.naturalHeight;
3272
3308
  case "width": return !0;
3273
3309
  case "height": return !1;
3274
3310
  }
3275
3311
  }
3276
- function Dt(e, t, n = "auto", r) {
3277
- let i = Tt(e);
3312
+ function kt(e, t, n = "auto", r) {
3313
+ let i = Dt(e);
3278
3314
  if (i && (i.naturalWidth > t && (n === "auto" || n === "width") || i.naturalHeight > t && (n === "auto" || n === "height"))) {
3279
3315
  var a;
3280
- let e = Et(i, n), o = (a = document.createElement("canvas")) == null ? void 0 : a.getContext("2d");
3316
+ let e = Ot(i, n), o = (a = document.createElement("canvas")) == null ? void 0 : a.getContext("2d");
3281
3317
  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);
3282
3318
  }
3283
3319
  }
3284
3320
  //#endregion
3285
3321
  //#region src/functions/ensureMaxSize.ts
3286
- async function Ot(e, t = .56, n = "image/jpeg") {
3322
+ async function At(e, t = .56, n = "image/jpeg") {
3287
3323
  return new Promise((r) => {
3288
- let i = new Blob([e], { type: n }), a = Tt(URL.createObjectURL(i));
3324
+ let i = new Blob([e], { type: n }), a = Dt(URL.createObjectURL(i));
3289
3325
  a ? a.onload = () => {
3290
- let e = Dt(a, t * a.naturalWidth, "width", n);
3326
+ let e = kt(a, t * a.naturalWidth, "width", n);
3291
3327
  r(e == null ? "" : e);
3292
- } : xt(i).then((e) => r(String(e == null ? "" : e)));
3328
+ } : Ct(i).then((e) => r(String(e == null ? "" : e)));
3293
3329
  });
3294
3330
  }
3295
3331
  //#endregion
3296
3332
  //#region src/functions/eventStopPropagation.ts
3297
- function kt(e) {
3333
+ function jt(e) {
3298
3334
  e.preventDefault(), e.stopPropagation();
3299
3335
  }
3300
3336
  //#endregion
3301
3337
  //#region src/functions/frame.ts
3302
- function At(e, t, n) {
3338
+ function Mt(e, t, n) {
3303
3339
  let r = () => {
3304
- e(), t != null && t() ? At(e, t, n) : n == null || n();
3340
+ e(), t != null && t() ? Mt(e, t, n) : n == null || n();
3305
3341
  };
3306
3342
  m() ? requestAnimationFrame(r) : r();
3307
3343
  }
3308
3344
  //#endregion
3309
3345
  //#region src/functions/getAttributes.ts
3310
- function jt(e) {
3311
- let t = {}, n = D(e);
3346
+ function Nt(e) {
3347
+ let t = {}, n = k(e);
3312
3348
  if (n) for (let e of n.attributes) {
3313
3349
  var r;
3314
3350
  t[e.name] = (r = (e == null ? void 0 : e.value) || (e == null ? void 0 : e.textContent)) == null ? void 0 : r;
@@ -3317,71 +3353,71 @@ function jt(e) {
3317
3353
  }
3318
3354
  //#endregion
3319
3355
  //#region src/functions/getClipboardData.ts
3320
- async function Mt(e) {
3356
+ async function Pt(e) {
3321
3357
  var t, n;
3322
3358
  return (t = e == null || (n = e.clipboardData) == null ? void 0 : n.getData("text")) == null ? await navigator.clipboard.readText() || "" : t;
3323
3359
  }
3324
3360
  //#endregion
3325
3361
  //#region src/functions/getCurrentDate.ts
3326
- function Nt(e = "datetime") {
3327
- return new Pe(void 0, e).standard();
3362
+ function Ft(e = "datetime") {
3363
+ return new Me(void 0, e).standard();
3328
3364
  }
3329
3365
  //#endregion
3330
3366
  //#region src/functions/getCurrentTime.ts
3331
- function Pt() {
3367
+ function It() {
3332
3368
  return (/* @__PURE__ */ new Date()).getTime();
3333
3369
  }
3334
3370
  //#endregion
3335
3371
  //#region src/functions/getElementId.ts
3336
- var Ft = d(1e5, 9e5);
3337
- function It(e, t) {
3338
- let n = D(e);
3339
- return n ? (c(n.id) || n.setAttribute("id", `id-${Ft++}`), t ? `#${n.id}${t}`.trim() : n.id) : `id-${Ft++}`;
3372
+ var Lt = d(1e5, 9e5);
3373
+ function Rt(e, t) {
3374
+ let n = k(e);
3375
+ return n ? (c(n.id) || n.setAttribute("id", `id-${Lt++}`), t ? `#${n.id}${t}`.trim() : n.id) : `id-${Lt++}`;
3340
3376
  }
3341
3377
  //#endregion
3342
3378
  //#region src/functions/getKey.ts
3343
- function Lt(e) {
3379
+ function zt(e) {
3344
3380
  var t, n, r;
3345
3381
  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;
3346
3382
  }
3347
3383
  //#endregion
3348
3384
  //#region src/functions/getLengthOfAllArray.ts
3349
- function Rt(e) {
3385
+ function Bt(e) {
3350
3386
  return i(e, (e) => e.length);
3351
3387
  }
3352
3388
  //#endregion
3353
3389
  //#region src/functions/getMaxLengthAllArray.ts
3354
- function zt(e) {
3355
- return Math.max(...Rt(e));
3390
+ function Vt(e) {
3391
+ return Math.max(...Bt(e));
3356
3392
  }
3357
3393
  //#endregion
3358
3394
  //#region src/functions/getMinLengthAllArray.ts
3359
- function Bt(e) {
3360
- return Math.min(...Rt(e));
3395
+ function Ht(e) {
3396
+ return Math.min(...Bt(e));
3361
3397
  }
3362
3398
  //#endregion
3363
3399
  //#region src/functions/getMouseClientX.ts
3364
- function Vt(e) {
3400
+ function Ut(e) {
3365
3401
  var t, n;
3366
3402
  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;
3367
3403
  }
3368
3404
  //#endregion
3369
3405
  //#region src/functions/getMouseClientY.ts
3370
- function Ht(e) {
3406
+ function Wt(e) {
3371
3407
  var t, n;
3372
3408
  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;
3373
3409
  }
3374
3410
  //#endregion
3375
3411
  //#region src/functions/getMouseClient.ts
3376
- function Ut(e) {
3412
+ function Gt(e) {
3377
3413
  return {
3378
- x: Vt(e),
3379
- y: Ht(e)
3414
+ x: Ut(e),
3415
+ y: Wt(e)
3380
3416
  };
3381
3417
  }
3382
3418
  //#endregion
3383
3419
  //#region src/functions/getObjectByKeys.ts
3384
- function Wt(e, t) {
3420
+ function Kt(e, t) {
3385
3421
  let n = {};
3386
3422
  return t.forEach((t) => {
3387
3423
  t in e && e[t] !== void 0 && (n[t] = e[t]);
@@ -3389,7 +3425,7 @@ function Wt(e, t) {
3389
3425
  }
3390
3426
  //#endregion
3391
3427
  //#region src/functions/getObjectNoUndefined.ts
3392
- function Gt(e, t = void 0) {
3428
+ function qt(e, t = void 0) {
3393
3429
  let n = {};
3394
3430
  return i(e, (e, r) => {
3395
3431
  e !== t && (n[r] = e);
@@ -3397,49 +3433,49 @@ function Gt(e, t = void 0) {
3397
3433
  }
3398
3434
  //#endregion
3399
3435
  //#region src/functions/getObjectOrNone.ts
3400
- function Kt(e) {
3436
+ function Jt(e) {
3401
3437
  return n(e) ? e : {};
3402
3438
  }
3403
3439
  //#endregion
3404
3440
  //#region src/functions/strFill.ts
3405
- function qt(e, t) {
3406
- return bt(e, t).join("");
3441
+ function Yt(e, t) {
3442
+ return St(e, t).join("");
3407
3443
  }
3408
3444
  //#endregion
3409
3445
  //#region src/functions/getRandomText.ts
3410
- function Jt(e, t, n = "#", r = 2, i = 12) {
3446
+ function Xt(e, t, n = "#", r = 2, i = 12) {
3411
3447
  let a = d(e, t), o = [];
3412
- for (let e = 0; e < a; e++) o.push(qt(n, d(r, i)));
3448
+ for (let e = 0; e < a; e++) o.push(Yt(n, d(r, i)));
3413
3449
  return o.join(" ");
3414
3450
  }
3415
3451
  //#endregion
3416
3452
  //#region src/functions/getStepPercent.ts
3417
- function Yt(e, t) {
3453
+ function Zt(e, t) {
3418
3454
  let n = e == null ? 0 : e;
3419
3455
  return t > n ? 100 / (t - n) : 0;
3420
3456
  }
3421
3457
  //#endregion
3422
3458
  //#region src/functions/getStepValue.ts
3423
- function Xt(e, t) {
3459
+ function Qt(e, t) {
3424
3460
  let n = e == null ? 0 : e;
3425
3461
  return t > n ? (t - n) / 100 : 0;
3426
3462
  }
3427
3463
  //#endregion
3428
3464
  //#region src/functions/goScroll.ts
3429
- var Zt = 0;
3430
- function Qt(e, t, n) {
3465
+ var $t = 0;
3466
+ function en(e, t, n) {
3431
3467
  let r = t == null ? void 0 : t.closest(e);
3432
3468
  if (t && r && r.scrollHeight !== r.offsetHeight) {
3433
3469
  let e = r.getBoundingClientRect(), i = t.getBoundingClientRect();
3434
3470
  if (n) {
3435
3471
  let a = n.getBoundingClientRect();
3436
3472
  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);
3437
- } else r.scrollTop > t.offsetTop ? r.scrollTop = i.top - e.top - Zt : r.scrollTop + r.offsetHeight < t.offsetTop + t.offsetHeight && (r.scrollTop = i.top - e.top + i.height - e.height + Zt);
3473
+ } else r.scrollTop > t.offsetTop ? r.scrollTop = i.top - e.top - $t : r.scrollTop + r.offsetHeight < t.offsetTop + t.offsetHeight && (r.scrollTop = i.top - e.top + i.height - e.height + $t);
3438
3474
  }
3439
3475
  }
3440
3476
  //#endregion
3441
3477
  //#region src/functions/goScrollSmooth.ts
3442
- function $t(e, t, n = 0) {
3478
+ function tn(e, t, n = 0) {
3443
3479
  if (!m()) return;
3444
3480
  let r = (t == null ? void 0 : t.behavior) || "smooth";
3445
3481
  if ("scrollIntoView" in e && !n) {
@@ -3461,7 +3497,7 @@ function $t(e, t, n = 0) {
3461
3497
  }
3462
3498
  //#endregion
3463
3499
  //#region src/functions/goScrollTo.ts
3464
- function en(e, t, n = "smooth") {
3500
+ function nn(e, t, n = "smooth") {
3465
3501
  if (!m() || !e || !t) return;
3466
3502
  let r = e.getBoundingClientRect(), i = t.getBoundingClientRect();
3467
3503
  e.scrollBy({
@@ -3472,13 +3508,13 @@ function en(e, t, n = "smooth") {
3472
3508
  }
3473
3509
  //#endregion
3474
3510
  //#region src/functions/isShare.ts
3475
- function tn() {
3511
+ function rn() {
3476
3512
  return m() && typeof navigator < "u" && !!navigator.share;
3477
3513
  }
3478
3514
  //#endregion
3479
3515
  //#region src/functions/handleShare.ts
3480
- async function nn(e) {
3481
- if (tn() && navigator.canShare && navigator.canShare(e)) try {
3516
+ async function an(e) {
3517
+ if (rn() && navigator.canShare && navigator.canShare(e)) try {
3482
3518
  return await navigator.share(e), !0;
3483
3519
  } catch (e) {
3484
3520
  console.error("handleShare error:", e);
@@ -3487,12 +3523,12 @@ async function nn(e) {
3487
3523
  }
3488
3524
  //#endregion
3489
3525
  //#region src/functions/inArray.ts
3490
- function rn(e, t) {
3526
+ function on(e, t) {
3491
3527
  return e.indexOf(t) !== -1;
3492
3528
  }
3493
3529
  //#endregion
3494
3530
  //#region src/functions/initScrollbarOffset.ts
3495
- async function an() {
3531
+ async function sn() {
3496
3532
  if (m()) {
3497
3533
  let e = await Z.get();
3498
3534
  document.body.style.setProperty("--sys-scrollbar-offset", `${e}px`);
@@ -3500,7 +3536,7 @@ async function an() {
3500
3536
  }
3501
3537
  //#endregion
3502
3538
  //#region src/functions/intersectKey.ts
3503
- function on(e, n) {
3539
+ function cn(e, n) {
3504
3540
  let r = {};
3505
3541
  return t(e) && t(n) && i(e, (e, t) => {
3506
3542
  t in n && (r[t] = e);
@@ -3508,13 +3544,13 @@ function on(e, n) {
3508
3544
  }
3509
3545
  //#endregion
3510
3546
  //#region src/functions/isApiSuccess.ts
3511
- var sn = (e) => {
3547
+ var ln = (e) => {
3512
3548
  var t;
3513
- return o(e) ? !0 : !!(e && n(e) && ((e == null ? void 0 : e.status) === "success" || e != null && e.success || !(e == null || (t = e.statusObject) == null) && t.status && String(e.statusObject.status).match(/^2/) || !("status" in e) && !("success" in e) && !("statusObject" in e) && String(N.getStatus().getStatus()).match(/^2/)));
3549
+ return o(e) ? !0 : !!(e && n(e) && ((e == null ? void 0 : e.status) === "success" || e != null && e.success || !(e == null || (t = e.statusObject) == null) && t.status && String(e.statusObject.status).match(/^2/) || !("status" in e) && !("success" in e) && !("statusObject" in e) && String(P.getStatus().getStatus()).match(/^2/)));
3514
3550
  };
3515
3551
  //#endregion
3516
3552
  //#region src/functions/isDifferent.ts
3517
- function cn(e, t) {
3553
+ function un(e, t) {
3518
3554
  let n = Object.keys(e).length !== Object.keys(t).length;
3519
3555
  return n || i(e, (e, r) => {
3520
3556
  e !== (t == null ? void 0 : t[r]) && (n = !0);
@@ -3522,25 +3558,25 @@ function cn(e, t) {
3522
3558
  }
3523
3559
  //#endregion
3524
3560
  //#region src/functions/isElementVisible.ts
3525
- function ln(e) {
3561
+ function dn(e) {
3526
3562
  if (!m()) return !1;
3527
- let t = D(e);
3563
+ let t = k(e);
3528
3564
  if (!t || "isConnected" in t && t.isConnected === !1) return !1;
3529
3565
  let n = window.getComputedStyle(t);
3530
3566
  return n.display !== "none" && n.visibility !== "hidden" && n.opacity !== "0" && t.offsetWidth !== 0 && t.offsetHeight !== 0;
3531
3567
  }
3532
3568
  //#endregion
3533
3569
  //#region src/functions/isInput.ts
3534
- var un = (e) => {
3570
+ var fn = (e) => {
3535
3571
  if (e instanceof HTMLElement) {
3536
3572
  let t = e.tagName.toLowerCase();
3537
3573
  return !!(t === "input" || t === "textarea" || t === "select" || e.isContentEditable || e.getAttribute("contenteditable") === "true");
3538
3574
  }
3539
3575
  return !1;
3540
- }, dn = (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 ? !un(e.target) : !t : !1;
3576
+ }, pn = (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 ? !fn(e.target) : !t : !1;
3541
3577
  //#endregion
3542
3578
  //#region src/functions/isFloat.ts
3543
- function fn(e) {
3579
+ function mn(e) {
3544
3580
  switch (typeof e) {
3545
3581
  case "number": return !0;
3546
3582
  case "string": return !!e.match(/^([0-9]+|[0-9]+\.[0-9]+)$/);
@@ -3549,18 +3585,18 @@ function fn(e) {
3549
3585
  }
3550
3586
  //#endregion
3551
3587
  //#region src/functions/isIntegerBetween.ts
3552
- function pn(e, t) {
3588
+ function hn(e, t) {
3553
3589
  let n = Math.floor(t);
3554
3590
  return e >= n && e < n + 1;
3555
3591
  }
3556
3592
  //#endregion
3557
3593
  //#region src/functions/isSelectedByList.ts
3558
- function mn(e, t) {
3594
+ function gn(e, t) {
3559
3595
  return Array.isArray(e) ? e.every((e) => _(e, t)) : _(e, t);
3560
3596
  }
3561
3597
  //#endregion
3562
3598
  //#region src/functions/removeCommonPrefix.ts
3563
- function hn(e, t) {
3599
+ function _n(e, t) {
3564
3600
  if (e.startsWith(t)) return e.slice(t.length).trim();
3565
3601
  let n = 0;
3566
3602
  for (; e[n] === t[n] && n < e.length && n < t.length;) n++;
@@ -3568,13 +3604,13 @@ function hn(e, t) {
3568
3604
  }
3569
3605
  //#endregion
3570
3606
  //#region src/functions/replaceComponentName.ts
3571
- var gn = (e, t, n) => {
3607
+ var vn = (e, t, n) => {
3572
3608
  var r;
3573
3609
  return e == null || (r = e.replace(RegExp(`<${t}`, "ig"), `<${n}`)) == null || (r = r.replace(RegExp(`</${t}`, "ig"), `</${n}`)) == null ? void 0 : r.trim();
3574
3610
  };
3575
3611
  //#endregion
3576
3612
  //#region src/functions/uniqueArray.ts
3577
- function _n(e) {
3613
+ function yn(e) {
3578
3614
  return [...new Set(e)];
3579
3615
  }
3580
3616
  //#endregion
@@ -3583,12 +3619,12 @@ function $(e, n, r = !0) {
3583
3619
  let a = p(e);
3584
3620
  return t(e) && t(n) && i(n, (n, i) => {
3585
3621
  let o = e == null ? void 0 : e[i];
3586
- t(o) && t(n) ? r && Array.isArray(o) && Array.isArray(n) ? a[i] = p(_n([...o, ...n])) : a[i] = $(Array.isArray(o) ? { ...o } : o, n, r) : a[i] = t(n) ? p(n) : n;
3622
+ t(o) && t(n) ? r && Array.isArray(o) && Array.isArray(n) ? a[i] = p(yn([...o, ...n])) : a[i] = $(Array.isArray(o) ? { ...o } : o, n, r) : a[i] = t(n) ? p(n) : n;
3587
3623
  }), a;
3588
3624
  }
3589
3625
  //#endregion
3590
3626
  //#region src/functions/replaceTemplate.ts
3591
- function vn(e, t) {
3627
+ function bn(e, t) {
3592
3628
  let n = e;
3593
3629
  return i(t, (e, t) => {
3594
3630
  n = n.replace(st(`[${t}]`), y(e));
@@ -3596,13 +3632,13 @@ function vn(e, t) {
3596
3632
  }
3597
3633
  //#endregion
3598
3634
  //#region src/functions/secondToTime.ts
3599
- function yn(e) {
3635
+ function xn(e) {
3600
3636
  let t = g(e);
3601
3637
  return t > 0 ? `${String(Math.floor(t / 60)).padStart(2, "0")}:${String(t % 60).padStart(2, "0")}` : "00:00";
3602
3638
  }
3603
3639
  //#endregion
3604
3640
  //#region src/functions/setValues.ts
3605
- function bn(e, t, { multiple: n = !1, maxlength: r = 0, alwaysChange: i = !0, notEmpty: a = !1 }) {
3641
+ function Sn(e, t, { multiple: n = !1, maxlength: r = 0, alwaysChange: i = !0, notEmpty: a = !1 }) {
3606
3642
  if (n) {
3607
3643
  if (o(e)) {
3608
3644
  let n = e.indexOf(t), i = [...e];
@@ -3614,7 +3650,7 @@ function bn(e, t, { multiple: n = !1, maxlength: r = 0, alwaysChange: i = !0, no
3614
3650
  }
3615
3651
  //#endregion
3616
3652
  //#region src/functions/splice.ts
3617
- function xn(e, n, r) {
3653
+ function Cn(e, n, r) {
3618
3654
  if (t(e) && t(n)) {
3619
3655
  if (r) {
3620
3656
  let a = {}, o = !1;
@@ -3628,34 +3664,34 @@ function xn(e, n, r) {
3628
3664
  }
3629
3665
  //#endregion
3630
3666
  //#region src/functions/toCamelCaseFirst.ts
3631
- function Sn(e) {
3632
- return z(e).replace(/^([a-z])/, (e) => `${e.toUpperCase()}`);
3667
+ function wn(e) {
3668
+ return V(e).replace(/^([a-z])/, (e) => `${e.toUpperCase()}`);
3633
3669
  }
3634
3670
  //#endregion
3635
3671
  //#region src/functions/toKebabCase.ts
3636
- function Cn(e) {
3672
+ function Tn(e) {
3637
3673
  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());
3638
3674
  }
3639
3675
  //#endregion
3640
3676
  //#region src/functions/toNumberByMax.ts
3641
- function wn(e, t, n, r) {
3677
+ function En(e, t, n, r) {
3642
3678
  let i = g(e), a = g(t);
3643
- return t && a < i ? `${Tn(a, n, r)}+` : Tn(i, n, r);
3679
+ return t && a < i ? `${Dn(a, n, r)}+` : Dn(i, n, r);
3644
3680
  }
3645
- var Tn = (e, t, n) => t ? new F(n).number(e) : e;
3681
+ var Dn = (e, t, n) => t ? new L(n).number(e) : e;
3646
3682
  //#endregion
3647
3683
  //#region src/functions/toPercent.ts
3648
- function En(e, t) {
3684
+ function On(e, t) {
3649
3685
  return 1 / e * t;
3650
3686
  }
3651
3687
  //#endregion
3652
3688
  //#region src/functions/toPercentBy100.ts
3653
- function Dn(e, t) {
3654
- return En(e, t) * 100;
3689
+ function kn(e, t) {
3690
+ return On(e, t) * 100;
3655
3691
  }
3656
3692
  //#endregion
3657
3693
  //#region src/functions/uint8ArrayToBase64.ts
3658
- function On(e) {
3694
+ function An(e) {
3659
3695
  let t = "";
3660
3696
  for (let n of e) t += String.fromCharCode(n);
3661
3697
  if (m()) return window.btoa(t);
@@ -3667,7 +3703,7 @@ function On(e) {
3667
3703
  }
3668
3704
  //#endregion
3669
3705
  //#region src/functions/writeClipboardData.ts
3670
- async function kn(e) {
3706
+ async function jn(e) {
3671
3707
  if (m()) try {
3672
3708
  await navigator.clipboard.writeText(e);
3673
3709
  } catch (n) {
@@ -3676,4 +3712,4 @@ async function kn(e) {
3676
3712
  }
3677
3713
  }
3678
3714
  //#endregion
3679
- export { N as Api, pe as ApiDefault, fe as ApiHeaders, ye as ApiInstance, M as ApiMethodItem, ve as ApiPreparation, _e as ApiResponse, me as ApiStatus, be as BroadcastMessage, Ce as Cache, Se as CacheItem, Te as CacheStatic, je as Cookie, Oe as CookieBlock, w as DataStorage, Pe as Datetime, C as ErrorCenter, ne as ErrorCenterHandler, re as ErrorCenterInstance, A as EventItem, Ie as Formatters, B as FormattersType, Le as GEO_FLAG_ICON_NAME, E as Geo, Re as GeoFlag, F as GeoIntl, V as GeoPhone, ze as Global, W as Hash, G as Icons, j as Loading, de as LoadingInstance, nt as Meta, q as MetaManager, et as MetaOg, Ze as MetaOpenGraphAge, Ye as MetaOpenGraphAvailability, Xe as MetaOpenGraphCondition, Qe as MetaOpenGraphGender, Y as MetaOpenGraphTag, Je as MetaOpenGraphType, qe as MetaRobots, J as MetaTag, tt as MetaTwitter, $e as MetaTwitterCard, X as MetaTwitterTag, Z as ScrollbarWidth, ft as SearchList, at as SearchListData, ot as SearchListItem, ut as SearchListMatcher, dt as SearchListOptions, ht as TRANSLATE_GLOBAL_PREFIX, gt as TRANSLATE_TIME_OUT, yt as Translate, _t as TranslateFile, vt as TranslateInstance, it as addTagHighlightMatch, L as anyToString, mt as applyTemplate, bt as arrFill, xt as blobToBase64, St as capitalize, p as copyObject, r as copyObjectLite, K as createElement, Ct as domQuerySelector, wt as domQuerySelectorAll, Ke as encodeAttribute, Ot as ensureMaxSize, Q as escapeExp, kt as eventStopPropagation, y as executeFunction, he as executePromise, i as forEach, At as frame, jt as getAttributes, Mt as getClipboardData, Ne as getColumn, Nt as getCurrentDate, Pt as getCurrentTime, D as getElement, It as getElementId, Tt as getElementImage, We as getElementItem, O as getElementOrWindow, ct as getExactSearchExp, st as getExp, R as getItemByPath, Lt as getKey, Rt as getLengthOfAllArray, zt as getMaxLengthAllArray, Bt as getMinLengthAllArray, Ut as getMouseClient, Vt as getMouseClientX, Ht as getMouseClientY, Wt as getObjectByKeys, Gt as getObjectNoUndefined, Kt as getObjectOrNone, Jt as getRandomText, a as getRequestString, lt as getSearchExp, rt as getSeparatingSearchExp, Yt as getStepPercent, Xt as getStepValue, Qt as goScroll, $t as goScrollSmooth, en as goScrollTo, nn as handleShare, rn as inArray, an as initScrollbarOffset, on as intersectKey, sn as isApiSuccess, o as isArray, cn as isDifferent, b as isDomData, m as isDomRuntime, ln as isElementVisible, dn as isEnter, c as isFilled, fn as isFloat, v as isFunction, le as isInDom, un as isInput, pn as isIntegerBetween, s as isNull, h as isNumber, t as isObject, n as isObjectNotArray, l as isOnLine, _ as isSelected, mn as isSelectedByList, tn as isShare, u as isString, ce as isWindow, d as random, hn as removeCommonPrefix, gn as replaceComponentName, $ as replaceRecursive, vn as replaceTemplate, Dt as resizeImageByMax, yn as secondToTime, Ge as setElementItem, bn as setValues, f as sleep, xn as splice, qt as strFill, Fe as strSplit, k as toArray, z as toCamelCase, Sn as toCamelCaseFirst, P as toDate, Cn as toKebabCase, g as toNumber, wn as toNumberByMax, En as toPercent, Dn as toPercentBy100, Ee as transformation, On as uint8ArrayToBase64, _n as uniqueArray, kn as writeClipboardData };
3715
+ export { P as Api, pe as ApiDefault, fe as ApiHeaders, ve as ApiInstance, M as ApiMethodItem, _e as ApiPreparation, ge as ApiResponse, N as ApiStatus, ye as BroadcastMessage, Se as Cache, xe as CacheItem, F as CacheStatic, ke as Cookie, Ee as CookieBlock, T as DataStorage, Me as Datetime, C as ErrorCenter, ne as ErrorCenterHandler, re as ErrorCenterInstance, le as EventItem, Pe as Formatters, H as FormattersType, Fe as GEO_FLAG_ICON_NAME, D as Geo, Ie as GeoFlag, L as GeoIntl, Le as GeoPhone, Re as Global, W as Hash, G as Icons, j as Loading, de as LoadingInstance, nt as Meta, q as MetaManager, et as MetaOg, Ze as MetaOpenGraphAge, Ye as MetaOpenGraphAvailability, Xe as MetaOpenGraphCondition, Qe as MetaOpenGraphGender, Y as MetaOpenGraphTag, Je as MetaOpenGraphType, qe as MetaRobots, J as MetaTag, tt as MetaTwitter, $e as MetaTwitterCard, X as MetaTwitterTag, Z as ScrollbarWidth, ft as SearchList, at as SearchListData, ot as SearchListItem, ut as SearchListMatcher, dt as SearchListOptions, pt as StorageCallback, _t as TRANSLATE_GLOBAL_PREFIX, vt as TRANSLATE_TIME_OUT, xt as Translate, yt as TranslateFile, bt as TranslateInstance, it as addTagHighlightMatch, z as anyToString, gt as applyTemplate, St as arrFill, Ct as blobToBase64, wt as capitalize, p as copyObject, r as copyObjectLite, K as createElement, Tt as domQuerySelector, Et as domQuerySelectorAll, Ke as encodeAttribute, At as ensureMaxSize, Q as escapeExp, jt as eventStopPropagation, y as executeFunction, me as executePromise, i as forEach, Mt as frame, Nt as getAttributes, Pt as getClipboardData, je as getColumn, Ft as getCurrentDate, It as getCurrentTime, k as getElement, Rt as getElementId, Dt as getElementImage, We as getElementItem, se as getElementOrWindow, ct as getExactSearchExp, st as getExp, B as getItemByPath, zt as getKey, Bt as getLengthOfAllArray, Vt as getMaxLengthAllArray, Ht as getMinLengthAllArray, Gt as getMouseClient, Ut as getMouseClientX, Wt as getMouseClientY, Kt as getObjectByKeys, qt as getObjectNoUndefined, Jt as getObjectOrNone, Xt as getRandomText, a as getRequestString, lt as getSearchExp, rt as getSeparatingSearchExp, Zt as getStepPercent, Qt as getStepValue, en as goScroll, tn as goScrollSmooth, nn as goScrollTo, an as handleShare, on as inArray, sn as initScrollbarOffset, cn as intersectKey, ln as isApiSuccess, o as isArray, un as isDifferent, b as isDomData, m as isDomRuntime, dn as isElementVisible, pn as isEnter, c as isFilled, mn as isFloat, v as isFunction, ce as isInDom, fn as isInput, hn as isIntegerBetween, s as isNull, h as isNumber, t as isObject, n as isObjectNotArray, l as isOnLine, _ as isSelected, gn as isSelectedByList, rn as isShare, u as isString, O as isWindow, d as random, _n as removeCommonPrefix, vn as replaceComponentName, $ as replaceRecursive, bn as replaceTemplate, kt as resizeImageByMax, xn as secondToTime, Ge as setElementItem, Sn as setValues, f as sleep, Cn as splice, Yt as strFill, Ne as strSplit, A as toArray, V as toCamelCase, wn as toCamelCaseFirst, I as toDate, Tn as toKebabCase, g as toNumber, En as toNumberByMax, On as toPercent, kn as toPercentBy100, we as transformation, An as uint8ArrayToBase64, yn as uniqueArray, jn as writeClipboardData };