elcrm 0.9.56 → 0.9.58

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/index.es.js CHANGED
@@ -1,29 +1,29 @@
1
1
  import './index.css';var Za = Object.defineProperty;
2
2
  var Ua = (e, t, n) => t in e ? Za(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
3
- var vt = (e, t, n) => Ua(e, typeof t != "symbol" ? t + "" : t, n);
3
+ var Ct = (e, t, n) => Ua(e, typeof t != "symbol" ? t + "" : t, n);
4
4
  import h, { createContext as za, useContext as Ka, createElement as wn } from "react";
5
- let $t = {
5
+ let Bt = {
6
6
  enCode: (e) => e,
7
7
  deCode: (e) => e
8
8
  };
9
9
  const Sn = (e) => {
10
- $t = e;
11
- }, Wa = (e) => $t.enCode(e), qa = (e) => $t.deCode(e), P = { enCode: Wa, deCode: qa, New: Sn }, D = {}, X = {}, Ne = {}, En = {}, Ce = {}, me = {};
12
- let rt = "M06";
13
- function Ya(e) {
14
- rt = e;
10
+ Bt = e;
11
+ }, Wa = (e) => Bt.enCode(e), qa = (e) => Bt.deCode(e), P = { enCode: Wa, deCode: qa, New: Sn }, D = {}, X = {}, Ne = {}, En = {}, Ce = {}, me = {};
12
+ let it = "M06";
13
+ function Ha(e) {
14
+ it = e;
15
15
  }
16
- function Ha() {
17
- return rt;
16
+ function Ya() {
17
+ return it;
18
18
  }
19
19
  function Va(e) {
20
20
  if (localStorage.getItem("d")) {
21
21
  let n = sessionStorage.getItem("f");
22
- n ? (n = P.deCode(n), n || ne(), D.id = n.id, D.tab = n.tab, D.page = n.page, D.module = n.module, D.time = n.time, D.payment = { active: !0 }, D.module_admin = n.module_admin) : (D.id = 0, D.tab = "", D.page = "Main", D.module = D.module || rt);
22
+ n ? (n = P.deCode(n), n || ne(), D.id = n.id, D.tab = n.tab, D.page = n.page, D.module = n.module, D.time = n.time, D.payment = { active: !0 }, D.module_admin = n.module_admin) : (D.id = 0, D.tab = "", D.page = "Main", D.module = D.module || it);
23
23
  } else
24
24
  ["a", "b", "c", "d", "e", "m", "u", "s", "q", "p"].forEach(
25
25
  (n) => localStorage.removeItem(n)
26
- ), ["f"].forEach((n) => sessionStorage.removeItem(n)), D.id = 0, D.tab = "", D.page = "Auth", D.module = rt;
26
+ ), ["f"].forEach((n) => sessionStorage.removeItem(n)), D.id = 0, D.tab = "", D.page = "Auth", D.module = it;
27
27
  return e;
28
28
  }
29
29
  function ne() {
@@ -60,7 +60,7 @@ function tr() {
60
60
  function nr(e) {
61
61
  localStorage.setItem("p", P.enCode(e));
62
62
  }
63
- function kt() {
63
+ function yt() {
64
64
  let e = localStorage.getItem("p");
65
65
  if (e !== "" && e !== "undefined" && e !== null) {
66
66
  let t = P.deCode(e);
@@ -182,7 +182,7 @@ function Ln(e) {
182
182
  let t = localStorage.getItem("b");
183
183
  t = t === null ? {} : P.deCode(t), t[Te()] = e, localStorage.setItem("b", P.enCode(t));
184
184
  }
185
- function yt() {
185
+ function bt() {
186
186
  let e = localStorage.getItem("b");
187
187
  return e === null ? {} : (e = P.deCode(e), e = e[Te()], e = e === void 0 ? { active: 1, sort: "<" } : e, e);
188
188
  }
@@ -198,7 +198,7 @@ function Bn(e, t) {
198
198
  } else
199
199
  return ne(), !1;
200
200
  }
201
- function Ke(e) {
201
+ function We(e) {
202
202
  me.data = e, localStorage.setItem("q", P.enCode(me.data));
203
203
  }
204
204
  function jr(e, t) {
@@ -297,7 +297,7 @@ function Lr(e, t, n) {
297
297
  const J = {
298
298
  setSSID: Xa,
299
299
  getSSID: Qa,
300
- getPORT: kt,
300
+ getPORT: yt,
301
301
  setPORT: nr,
302
302
  setAUTH: er,
303
303
  getAUTH: tr,
@@ -307,10 +307,10 @@ const J = {
307
307
  getMenu: vr,
308
308
  useSort: Cr,
309
309
  setSort: Ln,
310
- getSort: yt,
310
+ getSort: bt,
311
311
  setCompany: $n,
312
312
  getCompany: Bn,
313
- setSelect: Ke,
313
+ setSelect: We,
314
314
  addSelect: jr,
315
315
  getSelect: xe,
316
316
  setApi: kr,
@@ -320,7 +320,7 @@ const J = {
320
320
  setUser: Fn,
321
321
  isUser: Er,
322
322
  getUser: Sr,
323
- getDefaultModules: Ha,
323
+ getDefaultModules: Ya,
324
324
  getBase: Rr,
325
325
  setBase: Mr,
326
326
  setData: Nr,
@@ -365,19 +365,19 @@ function Or(e) {
365
365
  function Ar(e) {
366
366
  return e && (ue.i = e), ue.i;
367
367
  }
368
- function it(e) {
368
+ function lt(e) {
369
369
  return ue.i(e);
370
370
  }
371
371
  function Gr(e) {
372
372
  Sn(e);
373
373
  }
374
- const ot = {
374
+ const Le = {
375
375
  version: { Api: Fr, Server: Br, Client: Pr },
376
376
  Host: Or,
377
- SSID: Yr,
377
+ SSID: Hr,
378
378
  Import: Ar,
379
379
  Crypto: Gr,
380
- defaultModule: Ya
380
+ defaultModule: Ha
381
381
  };
382
382
  let Zr = "api", Ur = "elcrm", zr = "online", Me = !1;
383
383
  function Kr() {
@@ -387,17 +387,17 @@ function Kr() {
387
387
  files: n
388
388
  };
389
389
  }
390
- let Bt = `${Zr}.${Ur}.${zr}`;
390
+ let qe = `${Zr}.${Ur}.${zr}`;
391
391
  function Wr(e) {
392
- return "https://" + J.getPORT().address + "/audio/" + e;
392
+ return (Le.Host() || `https://${qe}/`) + "audio" + e;
393
393
  }
394
394
  function qr(e) {
395
- return "https://" + J.getPORT().address + "/image/" + e;
395
+ return (Le.Host() || `https://${qe}/`) + "image/" + e;
396
396
  }
397
- function Yr(e) {
397
+ function Hr(e) {
398
398
  Me = e;
399
399
  }
400
- function We(e, t = {}, n = Me ? J.getSSID() : J.getAUTH()) {
400
+ function He(e, t = {}, n = Me ? J.getSSID() : J.getAUTH()) {
401
401
  return new Promise((r) => {
402
402
  const s = new On();
403
403
  s.onmessage = (i) => {
@@ -409,13 +409,13 @@ function We(e, t = {}, n = Me ? J.getSSID() : J.getAUTH()) {
409
409
  link: e,
410
410
  data: t,
411
411
  ssid: n,
412
- host: ot.Host() || `https://${Bt}/`
412
+ host: Le.Host() || `https://${qe}/`
413
413
  });
414
414
  });
415
415
  }
416
- async function Hr(e, t = {}, n = Me ? J.getSSID() : J.getAUTH()) {
416
+ async function Yr(e, t = {}, n = Me ? J.getSSID() : J.getAUTH()) {
417
417
  try {
418
- return await (await We(ot.Host() || `https://${Bt}/` + e, {
418
+ return await (await He(Le.Host() || `https://${qe}/` + e, {
419
419
  method: "POST",
420
420
  headers: {
421
421
  ssid: n
@@ -435,13 +435,13 @@ function Vr(e, t = {}, n = Me ? J.getSSID() : J.getAUTH()) {
435
435
  link: e,
436
436
  data: t,
437
437
  ssid: n,
438
- host: ot.Host() + "modules/" || `https://${Bt}/modules`
438
+ host: Le.Host() + "modules/" || `https://${qe}/modules`
439
439
  });
440
440
  });
441
441
  }
442
442
  function Jr(e, t = {}, n = Me ? J.getSSID() : J.getAUTH()) {
443
443
  const [r, s] = h.useState({ status: "load" }), i = async (o) => {
444
- let l = await We(e, o, n);
444
+ let l = await He(e, o, n);
445
445
  s(l);
446
446
  };
447
447
  return h.useEffect(() => {
@@ -454,7 +454,7 @@ let An = {
454
454
  };
455
455
  async function Xr(e, t, n = {}) {
456
456
  try {
457
- return await (await We("https://" + e + "/" + t, {
457
+ return await (await He("https://" + e + "/" + t, {
458
458
  method: "POST",
459
459
  headers: An,
460
460
  body: JSON.stringify(n)
@@ -465,7 +465,7 @@ async function Xr(e, t, n = {}) {
465
465
  }
466
466
  async function Qr(e, t = {}) {
467
467
  try {
468
- return await (await We("https://tb.elcrm.online/v1/" + e, {
468
+ return await (await He("https://tb.elcrm.online/v1/" + e, {
469
469
  method: "POST",
470
470
  headers: An,
471
471
  body: JSON.stringify(t)
@@ -482,10 +482,10 @@ async function ts(e, t = {}) {
482
482
  setTimeout(() => n(t), e);
483
483
  });
484
484
  }
485
- const bt = {
485
+ const wt = {
486
486
  audio: Wr,
487
487
  image: qr,
488
- fetch: We,
488
+ fetch: He,
489
489
  modules: Vr,
490
490
  remoute: Xr,
491
491
  url: Kr,
@@ -493,9 +493,9 @@ const bt = {
493
493
  telegram: Qr,
494
494
  use: Jr,
495
495
  token: es,
496
- formData: Hr
496
+ formData: Yr
497
497
  };
498
- var wt = { exports: {} }, Pe = {};
498
+ var St = { exports: {} }, Oe = {};
499
499
  /**
500
500
  * @license React
501
501
  * react-jsx-runtime.production.min.js
@@ -507,7 +507,7 @@ var wt = { exports: {} }, Pe = {};
507
507
  */
508
508
  var un;
509
509
  function ns() {
510
- if (un) return Pe;
510
+ if (un) return Oe;
511
511
  un = 1;
512
512
  var e = h, t = Symbol.for("react.element"), n = Symbol.for("react.fragment"), r = Object.prototype.hasOwnProperty, s = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, i = { key: !0, ref: !0, __self: !0, __source: !0 };
513
513
  function o(l, c, _) {
@@ -517,9 +517,9 @@ function ns() {
517
517
  if (l && l.defaultProps) for (u in c = l.defaultProps, c) x[u] === void 0 && (x[u] = c[u]);
518
518
  return { $$typeof: t, type: l, key: f, ref: m, props: x, _owner: s.current };
519
519
  }
520
- return Pe.Fragment = n, Pe.jsx = o, Pe.jsxs = o, Pe;
520
+ return Oe.Fragment = n, Oe.jsx = o, Oe.jsxs = o, Oe;
521
521
  }
522
- var Oe = {};
522
+ var Ae = {};
523
523
  /**
524
524
  * @license React
525
525
  * react-jsx-runtime.development.js
@@ -621,18 +621,18 @@ function as() {
621
621
  }
622
622
  return null;
623
623
  }
624
- var F = Object.assign, W = 0, ae, ie, ge, De, $e, He, qt;
625
- function Yt() {
624
+ var F = Object.assign, W = 0, ae, ie, ge, De, Be, Je, qt;
625
+ function Ht() {
626
626
  }
627
- Yt.__reactDisabledLog = !0;
627
+ Ht.__reactDisabledLog = !0;
628
628
  function ha() {
629
629
  {
630
630
  if (W === 0) {
631
- ae = console.log, ie = console.info, ge = console.warn, De = console.error, $e = console.group, He = console.groupCollapsed, qt = console.groupEnd;
631
+ ae = console.log, ie = console.info, ge = console.warn, De = console.error, Be = console.group, Je = console.groupCollapsed, qt = console.groupEnd;
632
632
  var d = {
633
633
  configurable: !0,
634
634
  enumerable: !0,
635
- value: Yt,
635
+ value: Ht,
636
636
  writable: !0
637
637
  };
638
638
  Object.defineProperties(console, {
@@ -670,10 +670,10 @@ function as() {
670
670
  value: De
671
671
  }),
672
672
  group: F({}, d, {
673
- value: $e
673
+ value: Be
674
674
  }),
675
675
  groupCollapsed: F({}, d, {
676
- value: He
676
+ value: Je
677
677
  }),
678
678
  groupEnd: F({}, d, {
679
679
  value: qt
@@ -683,39 +683,39 @@ function as() {
683
683
  W < 0 && b("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
684
684
  }
685
685
  }
686
- var dt = j.ReactCurrentDispatcher, _t;
687
- function Ve(d, v, E) {
686
+ var _t = j.ReactCurrentDispatcher, ut;
687
+ function Xe(d, v, E) {
688
688
  {
689
- if (_t === void 0)
689
+ if (ut === void 0)
690
690
  try {
691
691
  throw Error();
692
692
  } catch (G) {
693
693
  var B = G.stack.trim().match(/\n( *(at )?)/);
694
- _t = B && B[1] || "";
694
+ ut = B && B[1] || "";
695
695
  }
696
696
  return `
697
- ` + _t + d;
697
+ ` + ut + d;
698
698
  }
699
699
  }
700
- var ut = !1, Je;
700
+ var ft = !1, Qe;
701
701
  {
702
702
  var ga = typeof WeakMap == "function" ? WeakMap : Map;
703
- Je = new ga();
703
+ Qe = new ga();
704
704
  }
705
- function Ht(d, v) {
706
- if (!d || ut)
705
+ function Yt(d, v) {
706
+ if (!d || ft)
707
707
  return "";
708
708
  {
709
- var E = Je.get(d);
709
+ var E = Qe.get(d);
710
710
  if (E !== void 0)
711
711
  return E;
712
712
  }
713
713
  var B;
714
- ut = !0;
714
+ ft = !0;
715
715
  var G = Error.prepareStackTrace;
716
716
  Error.prepareStackTrace = void 0;
717
717
  var Z;
718
- Z = dt.current, dt.current = null, ha();
718
+ Z = _t.current, _t.current = null, ha();
719
719
  try {
720
720
  if (v) {
721
721
  var A = function() {
@@ -752,74 +752,74 @@ function as() {
752
752
  if (re && B && typeof re.stack == "string") {
753
753
  for (var O = re.stack.split(`
754
754
  `), ee = B.stack.split(`
755
- `), Y = O.length - 1, V = ee.length - 1; Y >= 1 && V >= 0 && O[Y] !== ee[V]; )
755
+ `), H = O.length - 1, V = ee.length - 1; H >= 1 && V >= 0 && O[H] !== ee[V]; )
756
756
  V--;
757
- for (; Y >= 1 && V >= 0; Y--, V--)
758
- if (O[Y] !== ee[V]) {
759
- if (Y !== 1 || V !== 1)
757
+ for (; H >= 1 && V >= 0; H--, V--)
758
+ if (O[H] !== ee[V]) {
759
+ if (H !== 1 || V !== 1)
760
760
  do
761
- if (Y--, V--, V < 0 || O[Y] !== ee[V]) {
761
+ if (H--, V--, V < 0 || O[H] !== ee[V]) {
762
762
  var le = `
763
- ` + O[Y].replace(" at new ", " at ");
764
- return d.displayName && le.includes("<anonymous>") && (le = le.replace("<anonymous>", d.displayName)), typeof d == "function" && Je.set(d, le), le;
763
+ ` + O[H].replace(" at new ", " at ");
764
+ return d.displayName && le.includes("<anonymous>") && (le = le.replace("<anonymous>", d.displayName)), typeof d == "function" && Qe.set(d, le), le;
765
765
  }
766
- while (Y >= 1 && V >= 0);
766
+ while (H >= 1 && V >= 0);
767
767
  break;
768
768
  }
769
769
  }
770
770
  } finally {
771
- ut = !1, dt.current = Z, pa(), Error.prepareStackTrace = G;
771
+ ft = !1, _t.current = Z, pa(), Error.prepareStackTrace = G;
772
772
  }
773
- var Re = d ? d.displayName || d.name : "", we = Re ? Ve(Re) : "";
774
- return typeof d == "function" && Je.set(d, we), we;
773
+ var Re = d ? d.displayName || d.name : "", we = Re ? Xe(Re) : "";
774
+ return typeof d == "function" && Qe.set(d, we), we;
775
775
  }
776
776
  function xa(d, v, E) {
777
- return Ht(d, !1);
777
+ return Yt(d, !1);
778
778
  }
779
779
  function va(d) {
780
780
  var v = d.prototype;
781
781
  return !!(v && v.isReactComponent);
782
782
  }
783
- function Xe(d, v, E) {
783
+ function et(d, v, E) {
784
784
  if (d == null)
785
785
  return "";
786
786
  if (typeof d == "function")
787
- return Ht(d, va(d));
787
+ return Yt(d, va(d));
788
788
  if (typeof d == "string")
789
- return Ve(d);
789
+ return Xe(d);
790
790
  switch (d) {
791
791
  case _:
792
- return Ve("Suspense");
792
+ return Xe("Suspense");
793
793
  case u:
794
- return Ve("SuspenseList");
794
+ return Xe("SuspenseList");
795
795
  }
796
796
  if (typeof d == "object")
797
797
  switch (d.$$typeof) {
798
798
  case c:
799
799
  return xa(d.render);
800
800
  case x:
801
- return Xe(d.type, v, E);
801
+ return et(d.type, v, E);
802
802
  case f: {
803
803
  var B = d, G = B._payload, Z = B._init;
804
804
  try {
805
- return Xe(Z(G), v, E);
805
+ return et(Z(G), v, E);
806
806
  } catch {
807
807
  }
808
808
  }
809
809
  }
810
810
  return "";
811
811
  }
812
- var Be = Object.prototype.hasOwnProperty, Vt = {}, Jt = j.ReactDebugCurrentFrame;
813
- function Qe(d) {
812
+ var Fe = Object.prototype.hasOwnProperty, Vt = {}, Jt = j.ReactDebugCurrentFrame;
813
+ function tt(d) {
814
814
  if (d) {
815
- var v = d._owner, E = Xe(d.type, d._source, v ? v.type : null);
815
+ var v = d._owner, E = et(d.type, d._source, v ? v.type : null);
816
816
  Jt.setExtraStackFrame(E);
817
817
  } else
818
818
  Jt.setExtraStackFrame(null);
819
819
  }
820
820
  function Ca(d, v, E, B, G) {
821
821
  {
822
- var Z = Function.call.bind(Be);
822
+ var Z = Function.call.bind(Fe);
823
823
  for (var A in d)
824
824
  if (Z(d, A)) {
825
825
  var O = void 0;
@@ -829,15 +829,15 @@ function as() {
829
829
  throw ee.name = "Invariant Violation", ee;
830
830
  }
831
831
  O = d[A](v, A, B, E, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
832
- } catch (Y) {
833
- O = Y;
832
+ } catch (H) {
833
+ O = H;
834
834
  }
835
- O && !(O instanceof Error) && (Qe(G), b("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", B || "React class", E, A, typeof O), Qe(null)), O instanceof Error && !(O.message in Vt) && (Vt[O.message] = !0, Qe(G), b("Failed %s type: %s", E, O.message), Qe(null));
835
+ O && !(O instanceof Error) && (tt(G), b("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", B || "React class", E, A, typeof O), tt(null)), O instanceof Error && !(O.message in Vt) && (Vt[O.message] = !0, tt(G), b("Failed %s type: %s", E, O.message), tt(null));
836
836
  }
837
837
  }
838
838
  }
839
839
  var ja = Array.isArray;
840
- function ft(d) {
840
+ function mt(d) {
841
841
  return ja(d);
842
842
  }
843
843
  function ka(d) {
@@ -860,15 +860,15 @@ function as() {
860
860
  if (ya(d))
861
861
  return b("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", ka(d)), Xt(d);
862
862
  }
863
- var Fe = j.ReactCurrentOwner, ba = {
863
+ var Pe = j.ReactCurrentOwner, ba = {
864
864
  key: !0,
865
865
  ref: !0,
866
866
  __self: !0,
867
867
  __source: !0
868
- }, en, tn, mt;
869
- mt = {};
868
+ }, en, tn, ht;
869
+ ht = {};
870
870
  function wa(d) {
871
- if (Be.call(d, "ref")) {
871
+ if (Fe.call(d, "ref")) {
872
872
  var v = Object.getOwnPropertyDescriptor(d, "ref").get;
873
873
  if (v && v.isReactWarning)
874
874
  return !1;
@@ -876,7 +876,7 @@ function as() {
876
876
  return d.ref !== void 0;
877
877
  }
878
878
  function Sa(d) {
879
- if (Be.call(d, "key")) {
879
+ if (Fe.call(d, "key")) {
880
880
  var v = Object.getOwnPropertyDescriptor(d, "key").get;
881
881
  if (v && v.isReactWarning)
882
882
  return !1;
@@ -884,9 +884,9 @@ function as() {
884
884
  return d.key !== void 0;
885
885
  }
886
886
  function Ea(d, v) {
887
- if (typeof d.ref == "string" && Fe.current && v && Fe.current.stateNode !== v) {
888
- var E = R(Fe.current.type);
889
- mt[E] || (b('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', R(Fe.current.type), d.ref), mt[E] = !0);
887
+ if (typeof d.ref == "string" && Pe.current && v && Pe.current.stateNode !== v) {
888
+ var E = R(Pe.current.type);
889
+ ht[E] || (b('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', R(Pe.current.type), d.ref), ht[E] = !0);
890
890
  }
891
891
  }
892
892
  function Da(d, v) {
@@ -945,36 +945,36 @@ function as() {
945
945
  var Z, A = {}, O = null, ee = null;
946
946
  E !== void 0 && (Qt(E), O = "" + E), Sa(v) && (Qt(v.key), O = "" + v.key), wa(v) && (ee = v.ref, Ea(v, G));
947
947
  for (Z in v)
948
- Be.call(v, Z) && !ba.hasOwnProperty(Z) && (A[Z] = v[Z]);
948
+ Fe.call(v, Z) && !ba.hasOwnProperty(Z) && (A[Z] = v[Z]);
949
949
  if (d && d.defaultProps) {
950
- var Y = d.defaultProps;
951
- for (Z in Y)
952
- A[Z] === void 0 && (A[Z] = Y[Z]);
950
+ var H = d.defaultProps;
951
+ for (Z in H)
952
+ A[Z] === void 0 && (A[Z] = H[Z]);
953
953
  }
954
954
  if (O || ee) {
955
955
  var V = typeof d == "function" ? d.displayName || d.name || "Unknown" : d;
956
956
  O && Da(A, V), ee && Ia(A, V);
957
957
  }
958
- return Ra(d, O, ee, G, B, Fe.current, A);
958
+ return Ra(d, O, ee, G, B, Pe.current, A);
959
959
  }
960
960
  }
961
- var ht = j.ReactCurrentOwner, nn = j.ReactDebugCurrentFrame;
961
+ var pt = j.ReactCurrentOwner, nn = j.ReactDebugCurrentFrame;
962
962
  function Ie(d) {
963
963
  if (d) {
964
- var v = d._owner, E = Xe(d.type, d._source, v ? v.type : null);
964
+ var v = d._owner, E = et(d.type, d._source, v ? v.type : null);
965
965
  nn.setExtraStackFrame(E);
966
966
  } else
967
967
  nn.setExtraStackFrame(null);
968
968
  }
969
- var pt;
970
- pt = !1;
971
- function gt(d) {
969
+ var gt;
970
+ gt = !1;
971
+ function xt(d) {
972
972
  return typeof d == "object" && d !== null && d.$$typeof === t;
973
973
  }
974
974
  function an() {
975
975
  {
976
- if (ht.current) {
977
- var d = R(ht.current.type);
976
+ if (pt.current) {
977
+ var d = R(pt.current.type);
978
978
  if (d)
979
979
  return `
980
980
 
@@ -1009,25 +1009,25 @@ Check the top-level render call using <` + E + ">.");
1009
1009
  return;
1010
1010
  rn[E] = !0;
1011
1011
  var B = "";
1012
- d && d._owner && d._owner !== ht.current && (B = " It was passed a child from " + R(d._owner.type) + "."), Ie(d), b('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', E, B), Ie(null);
1012
+ d && d._owner && d._owner !== pt.current && (B = " It was passed a child from " + R(d._owner.type) + "."), Ie(d), b('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', E, B), Ie(null);
1013
1013
  }
1014
1014
  }
1015
1015
  function on(d, v) {
1016
1016
  {
1017
1017
  if (typeof d != "object")
1018
1018
  return;
1019
- if (ft(d))
1019
+ if (mt(d))
1020
1020
  for (var E = 0; E < d.length; E++) {
1021
1021
  var B = d[E];
1022
- gt(B) && sn(B, v);
1022
+ xt(B) && sn(B, v);
1023
1023
  }
1024
- else if (gt(d))
1024
+ else if (xt(d))
1025
1025
  d._store && (d._store.validated = !0);
1026
1026
  else if (d) {
1027
1027
  var G = p(d);
1028
1028
  if (typeof G == "function" && G !== d.entries)
1029
1029
  for (var Z = G.call(d), A; !(A = Z.next()).done; )
1030
- gt(A.value) && sn(A.value, v);
1030
+ xt(A.value) && sn(A.value, v);
1031
1031
  }
1032
1032
  }
1033
1033
  }
@@ -1048,8 +1048,8 @@ Check the top-level render call using <` + E + ">.");
1048
1048
  if (E) {
1049
1049
  var B = R(v);
1050
1050
  Ca(E, d.props, "prop", B, d);
1051
- } else if (v.PropTypes !== void 0 && !pt) {
1052
- pt = !0;
1051
+ } else if (v.PropTypes !== void 0 && !gt) {
1052
+ gt = !0;
1053
1053
  var G = R(v);
1054
1054
  b("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", G || "Unknown");
1055
1055
  }
@@ -1077,8 +1077,8 @@ Check the top-level render call using <` + E + ">.");
1077
1077
  (d === void 0 || typeof d == "object" && d !== null && Object.keys(d).length === 0) && (O += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
1078
1078
  var ee = Ta();
1079
1079
  ee ? O += ee : O += an();
1080
- var Y;
1081
- d === null ? Y = "null" : ft(d) ? Y = "array" : d !== void 0 && d.$$typeof === t ? (Y = "<" + (R(d.type) || "Unknown") + " />", O = " Did you accidentally export a JSX literal instead of a component?") : Y = typeof d, b("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", Y, O);
1080
+ var H;
1081
+ d === null ? H = "null" : mt(d) ? H = "array" : d !== void 0 && d.$$typeof === t ? (H = "<" + (R(d.type) || "Unknown") + " />", O = " Did you accidentally export a JSX literal instead of a component?") : H = typeof d, b("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", H, O);
1082
1082
  }
1083
1083
  var V = Na(d, v, E, G, Z);
1084
1084
  if (V == null)
@@ -1087,7 +1087,7 @@ Check the top-level render call using <` + E + ">.");
1087
1087
  var le = v.children;
1088
1088
  if (le !== void 0)
1089
1089
  if (B)
1090
- if (ft(le)) {
1090
+ if (mt(le)) {
1091
1091
  for (var Re = 0; Re < le.length; Re++)
1092
1092
  on(le[Re], d);
1093
1093
  Object.freeze && Object.freeze(le);
@@ -1096,18 +1096,18 @@ Check the top-level render call using <` + E + ">.");
1096
1096
  else
1097
1097
  on(le, d);
1098
1098
  }
1099
- if (Be.call(v, "key")) {
1099
+ if (Fe.call(v, "key")) {
1100
1100
  var we = R(d), re = Object.keys(v).filter(function(Ga) {
1101
1101
  return Ga !== "key";
1102
- }), xt = re.length > 0 ? "{key: someKey, " + re.join(": ..., ") + ": ...}" : "{key: someKey}";
1103
- if (!ln[we + xt]) {
1102
+ }), vt = re.length > 0 ? "{key: someKey, " + re.join(": ..., ") + ": ...}" : "{key: someKey}";
1103
+ if (!ln[we + vt]) {
1104
1104
  var Aa = re.length > 0 ? "{" + re.join(": ..., ") + ": ...}" : "{}";
1105
1105
  b(`A props object containing a "key" prop is being spread into JSX:
1106
1106
  let props = %s;
1107
1107
  <%s {...props} />
1108
1108
  React keys must be passed directly to JSX without using spread:
1109
1109
  let props = %s;
1110
- <%s key={someKey} {...props} />`, xt, we, Aa, we), ln[we + xt] = !0;
1110
+ <%s key={someKey} {...props} />`, vt, we, Aa, we), ln[we + vt] = !0;
1111
1111
  }
1112
1112
  }
1113
1113
  return d === r ? $a(V) : La(V), V;
@@ -1120,11 +1120,11 @@ React keys must be passed directly to JSX without using spread:
1120
1120
  return cn(d, v, E, !1);
1121
1121
  }
1122
1122
  var Pa = Fa, Oa = Ba;
1123
- Oe.Fragment = r, Oe.jsx = Pa, Oe.jsxs = Oa;
1124
- }()), Oe;
1123
+ Ae.Fragment = r, Ae.jsx = Pa, Ae.jsxs = Oa;
1124
+ }()), Ae;
1125
1125
  }
1126
- process.env.NODE_ENV === "production" ? wt.exports = ns() : wt.exports = as();
1127
- var a = wt.exports;
1126
+ process.env.NODE_ENV === "production" ? St.exports = ns() : St.exports = as();
1127
+ var a = St.exports;
1128
1128
  function rs(e, t) {
1129
1129
  t === void 0 ? (t = e, e = /* @__PURE__ */ new Date()) : e = new Date(e);
1130
1130
  let n = {
@@ -1700,12 +1700,18 @@ z.setFN = (e, t) => {
1700
1700
  const Ns = ({ before: e, from: t = 0, to: n }) => {
1701
1701
  const r = h.useRef();
1702
1702
  return h.useEffect(() => {
1703
+ r.s = !0;
1704
+ const s = 1e3, i = 10;
1703
1705
  r.n = 0;
1704
- let o = Math.round(1e3 / (n / 10)), l = setInterval(() => {
1705
- r.n = r.n + 10, r.n >= n && clearInterval(l);
1706
- let c = e ? e + " " : "";
1707
- r.current.textContent = `${c}` + z.Money(r.n);
1708
- }, o);
1706
+ let o = Math.round(s / (n / i));
1707
+ return r.i = setInterval(() => {
1708
+ if (!r.s) return;
1709
+ r.n = r.n + i, r.n >= n && clearInterval(r.i);
1710
+ let l = e ? e + " " : "";
1711
+ r.current.textContent = `${l}` + z.Money(r.n);
1712
+ }, o), () => {
1713
+ clearInterval(r.i), r.s = !1;
1714
+ };
1709
1715
  }, [t, n]), /* @__PURE__ */ a.jsx("span", { ref: r });
1710
1716
  }, pd = { Counter: Ns }, Ts = "_notice_13j98_2", Ms = "_error_13j98_11", Ls = "_success_13j98_14", $s = "_remark_13j98_17", Bs = "_copy_13j98_20", Fs = {
1711
1717
  notice: Ts,
@@ -1725,7 +1731,7 @@ function Ps() {
1725
1731
  t(e.filter((r) => r.key !== n));
1726
1732
  }, e.length === 0 ? "" : /* @__PURE__ */ a.jsx("ul", { id: "notice", className: Fs.notice, children: e.map((n) => n.item) });
1727
1733
  }
1728
- function qe({ data: e }) {
1734
+ function Ye({ data: e }) {
1729
1735
  let [t, n] = h.useState("show");
1730
1736
  h.useEffect(() => {
1731
1737
  e.hide && (setTimeout(function() {
@@ -1760,23 +1766,23 @@ function qe({ data: e }) {
1760
1766
  }
1761
1767
  function Os(e) {
1762
1768
  let t = Date.now(), n = { key: t, hide: !0, ...e };
1763
- ke.set({ item: /* @__PURE__ */ a.jsx(qe, { data: n }, t), key: t });
1769
+ ke.set({ item: /* @__PURE__ */ a.jsx(Ye, { data: n }, t), key: t });
1764
1770
  }
1765
1771
  function As(e, t = !0) {
1766
1772
  let n = Date.now(), r = { key: n, text: e, hide: t, type: "error" };
1767
- ke.set({ item: /* @__PURE__ */ a.jsx(qe, { data: r }, n), key: n });
1773
+ ke.set({ item: /* @__PURE__ */ a.jsx(Ye, { data: r }, n), key: n });
1768
1774
  }
1769
1775
  function Gs(e, t = !0) {
1770
1776
  let n = Date.now(), r = { key: n, text: e, hide: t, type: "success" };
1771
- ke.set({ item: /* @__PURE__ */ a.jsx(qe, { data: r }, n), key: n });
1777
+ ke.set({ item: /* @__PURE__ */ a.jsx(Ye, { data: r }, n), key: n });
1772
1778
  }
1773
1779
  function Zs(e, t = !0) {
1774
1780
  let n = Date.now(), r = { key: n, text: e, hide: t, type: "remark" };
1775
- ke.set({ item: /* @__PURE__ */ a.jsx(qe, { data: r }, n), key: n });
1781
+ ke.set({ item: /* @__PURE__ */ a.jsx(Ye, { data: r }, n), key: n });
1776
1782
  }
1777
1783
  function Us(e, t = !0) {
1778
1784
  let n = Date.now(), r = { key: n, text: e, hide: t, type: "copy" };
1779
- ke.set({ item: /* @__PURE__ */ a.jsx(qe, { data: r }, n), key: n });
1785
+ ke.set({ item: /* @__PURE__ */ a.jsx(Ye, { data: r }, n), key: n });
1780
1786
  }
1781
1787
  const Se = {};
1782
1788
  Se.error = () => /* @__PURE__ */ a.jsxs("svg", { viewBox: "0 0 24 24", fill: "none", children: [
@@ -1811,21 +1817,21 @@ Se.success = () => /* @__PURE__ */ a.jsxs("svg", { viewBox: "0 0 24 24", fill: "
1811
1817
  }
1812
1818
  )
1813
1819
  ] });
1814
- const zs = "_alerts_1pds5_1", Ks = "_menuAnimation_1pds5_1", Ws = "_menuItemAnimation_1pds5_1", qs = "_allert_1pds5_111", Ys = "_al_1pds5_1", St = {
1820
+ const zs = "_alerts_1pds5_1", Ks = "_menuAnimation_1pds5_1", Ws = "_menuItemAnimation_1pds5_1", qs = "_allert_1pds5_111", Hs = "_al_1pds5_1", Et = {
1815
1821
  alerts: zs,
1816
1822
  menuAnimation: Ks,
1817
1823
  menuItemAnimation: Ws,
1818
1824
  "--body": "_--body_1pds5_103",
1819
1825
  allert: qs,
1820
1826
  "--form": "_--form_1pds5_111",
1821
- al: Ys
1827
+ al: Hs
1822
1828
  };
1823
- let Ue = {};
1824
- function Hs() {
1829
+ let ze = {};
1830
+ function Ys() {
1825
1831
  let [e, t] = h.useState("");
1826
- return Ue.set = (n) => t(n), Ue.del = () => t(""), /* @__PURE__ */ a.jsx(a.Fragment, { children: e });
1832
+ return ze.set = (n) => t(n), ze.del = () => t(""), /* @__PURE__ */ a.jsx(a.Fragment, { children: e });
1827
1833
  }
1828
- const Vs = ({ data: e, callback: t, cancel: n }) => (e.button = e.button === void 0 ? "Подтвердить" : e.button, /* @__PURE__ */ a.jsxs("div", { className: St.alerts, children: [
1834
+ const Vs = ({ data: e, callback: t, cancel: n }) => (e.button = e.button === void 0 ? "Подтвердить" : e.button, /* @__PURE__ */ a.jsxs("div", { className: Et.alerts, children: [
1829
1835
  /* @__PURE__ */ a.jsxs("dl", { children: [
1830
1836
  /* @__PURE__ */ a.jsx("dt", { children: e.title }),
1831
1837
  /* @__PURE__ */ a.jsx("dd", { children: e.text }),
@@ -1834,7 +1840,7 @@ const Vs = ({ data: e, callback: t, cancel: n }) => (e.button = e.button === voi
1834
1840
  {
1835
1841
  "data-color": e.color || "blue",
1836
1842
  onClick: () => {
1837
- t(), Ue.del();
1843
+ t(), ze.del();
1838
1844
  },
1839
1845
  children: e.button
1840
1846
  }
@@ -1843,19 +1849,19 @@ const Vs = ({ data: e, callback: t, cancel: n }) => (e.button = e.button === voi
1843
1849
  /* @__PURE__ */ a.jsx(
1844
1850
  "div",
1845
1851
  {
1846
- className: St["--body"],
1852
+ className: Et["--body"],
1847
1853
  onClick: () => {
1848
- n == null || n(), Ue.del();
1854
+ n == null || n(), ze.del();
1849
1855
  }
1850
1856
  }
1851
1857
  )
1852
1858
  ] }));
1853
1859
  function Js(e, t, n) {
1854
- Ue.set(
1860
+ ze.set(
1855
1861
  /* @__PURE__ */ a.jsx(Vs, { data: e, callback: t, cancel: n })
1856
1862
  );
1857
1863
  }
1858
- const ye = { Send: Os, Error: As, Remark: Zs, Success: Gs, Copy: Us }, Ge = {
1864
+ const ye = { Send: Os, Error: As, Remark: Zs, Success: Gs, Copy: Us }, Ze = {
1859
1865
  Path: mr,
1860
1866
  Push: hr,
1861
1867
  setPage: rr,
@@ -1956,7 +1962,7 @@ function ei() {
1956
1962
  const ti = "_n_euuvm_1", ni = {
1957
1963
  n: ti
1958
1964
  };
1959
- let Ye = {}, Ae = [];
1965
+ let Ve = {}, Ge = [];
1960
1966
  const ai = (e, t) => {
1961
1967
  switch (t.type) {
1962
1968
  case "open":
@@ -1998,7 +2004,7 @@ const ai = (e, t) => {
1998
2004
  r = { ...e.take, ...r }, e.active = !1;
1999
2005
  for (let s in r)
2000
2006
  r[s] !== "999" && (e.active = !0);
2001
- return Ye.get(r, e.active), {
2007
+ return Ve.get(r, e.active), {
2002
2008
  ...e,
2003
2009
  take: r,
2004
2010
  active: e.active
@@ -2010,16 +2016,16 @@ const ai = (e, t) => {
2010
2016
  }
2011
2017
  };
2012
2018
  function ri(e) {
2013
- Ye.fn({ action: "add", data: e });
2019
+ Ve.fn({ action: "add", data: e });
2014
2020
  }
2015
2021
  function si(e) {
2016
- Ye.fn({ action: "add", data: e });
2022
+ Ve.fn({ action: "add", data: e });
2017
2023
  }
2018
2024
  function ii(e) {
2019
- Ye.fn({ action: "new", data: e });
2025
+ Ve.fn({ action: "new", data: e });
2020
2026
  }
2021
2027
  function oi(e) {
2022
- Ye.fn = e;
2028
+ Ve.fn = e;
2023
2029
  }
2024
2030
  function li() {
2025
2031
  const [e, t] = h.useReducer(ai, {
@@ -2032,7 +2038,7 @@ function li() {
2032
2038
  }), oi(async (r) => {
2033
2039
  switch (r.action) {
2034
2040
  case "add":
2035
- Ae.push(r.data);
2041
+ Ge.push(r.data);
2036
2042
  break;
2037
2043
  }
2038
2044
  }), h.useEffect(() => {
@@ -2050,7 +2056,7 @@ function li() {
2050
2056
  break;
2051
2057
  case "M01":
2052
2058
  r[s].forEach((i) => {
2053
- Ae.push({
2059
+ Ge.push({
2054
2060
  module: "M01",
2055
2061
  type: 1,
2056
2062
  id: i.id,
@@ -2061,7 +2067,7 @@ function li() {
2061
2067
  break;
2062
2068
  case "M02":
2063
2069
  r[s].forEach((i) => {
2064
- Ae.push({
2070
+ Ge.push({
2065
2071
  module: "M02",
2066
2072
  type: 117,
2067
2073
  id: i.id,
@@ -2072,7 +2078,7 @@ function li() {
2072
2078
  break;
2073
2079
  }
2074
2080
  })(), setInterval(() => {
2075
- Ae.forEach((r, s) => {
2081
+ Ge.forEach((r, s) => {
2076
2082
  t({
2077
2083
  type: "add",
2078
2084
  data: {
@@ -2082,7 +2088,7 @@ function li() {
2082
2088
  datetime: r.datetime,
2083
2089
  txt: r.title
2084
2090
  }
2085
- }), r.datetime < (/* @__PURE__ */ new Date()).getTime() && Ae.splice(s, 1);
2091
+ }), r.datetime < (/* @__PURE__ */ new Date()).getTime() && Ge.splice(s, 1);
2086
2092
  });
2087
2093
  }, 6e4);
2088
2094
  }, []);
@@ -2156,7 +2162,7 @@ function ui(e) {
2156
2162
  t[s.id] = { s: s.v, n: s.a }, n[s.id] = s;
2157
2163
  });
2158
2164
  let r = { ...xe(), 901: t };
2159
- $n(n), Ke(r);
2165
+ $n(n), We(r);
2160
2166
  }
2161
2167
  function fi() {
2162
2168
  let e = Bn(), t = {};
@@ -2164,7 +2170,7 @@ function fi() {
2164
2170
  t[e[n].id] = {}, t[e[n].id].name = e[n].a;
2165
2171
  }), t;
2166
2172
  }
2167
- let _e = {}, Q = {}, et = [
2173
+ let _e = {}, Q = {}, nt = [
2168
2174
  "filter",
2169
2175
  "online",
2170
2176
  "users",
@@ -2179,8 +2185,8 @@ function mi() {
2179
2185
  function s(i) {
2180
2186
  const o = new _i();
2181
2187
  _e.laodData = (l) => {
2182
- let c = et.indexOf(l);
2183
- c >= 0 && et.splice(c, 1), et.length === 0 && t(!0);
2188
+ let c = nt.indexOf(l);
2189
+ c >= 0 && nt.splice(c, 1), nt.length === 0 && t(!0);
2184
2190
  }, _e.send = (l) => {
2185
2191
  o.port.postMessage({ type: "send", json: l });
2186
2192
  }, o.port.onmessage = (l) => {
@@ -2188,12 +2194,12 @@ function mi() {
2188
2194
  c.type === "error" && r(!0), c.type === "true" && t(!0), c.type === "closed" && o.port.postMessage({
2189
2195
  type: "connect",
2190
2196
  ukey: i,
2191
- lk: kt()
2192
- }), et.length !== 0 && _e.laodData(c.type), Q[c.type] && Q[c.type](c);
2197
+ lk: yt()
2198
+ }), nt.length !== 0 && _e.laodData(c.type), Q[c.type] && Q[c.type](c);
2193
2199
  }, o.port.postMessage({
2194
2200
  type: "connect",
2195
2201
  ukey: i,
2196
- lk: kt()
2202
+ lk: yt()
2197
2203
  });
2198
2204
  }
2199
2205
  return [s, e, n];
@@ -2208,7 +2214,7 @@ Q.info = (e) => {
2208
2214
  t.db = e.db, t.id = e.data.id, t.job = e.data.job, t.login = e.data.login, t.name = e.data.p02, t.patronymic = e.data.p03, t.surname = e.data.p01, t.email = e.data.email, t.admin = e.data.menu.includes("99"), Fn(t), Mn(e.data.menu);
2209
2215
  };
2210
2216
  Q.version = async (e) => {
2211
- ot.version.Server(e.data);
2217
+ Le.version.Server(e.data);
2212
2218
  };
2213
2219
  Q.online = async (e) => {
2214
2220
  };
@@ -2217,13 +2223,13 @@ Q.offline = async (e) => {
2217
2223
  Q.chat = (e) => {
2218
2224
  switch (e.data.action) {
2219
2225
  case "new_message":
2220
- Ge.getModule();
2226
+ Ze.getModule();
2221
2227
  break;
2222
2228
  case "view_message":
2223
- Ge.getModule();
2229
+ Ze.getModule();
2224
2230
  break;
2225
2231
  case "write_message":
2226
- Ge.getModule();
2232
+ Ze.getModule();
2227
2233
  break;
2228
2234
  }
2229
2235
  };
@@ -2245,7 +2251,7 @@ Q.users = (e) => {
2245
2251
  };
2246
2252
  });
2247
2253
  let n = { ...xe(), user: t };
2248
- Ke(n);
2254
+ We(n);
2249
2255
  };
2250
2256
  Q.api = (e) => {
2251
2257
  let t = {};
@@ -2260,13 +2266,13 @@ Q.select = (e) => {
2260
2266
  let t = { ...xe() };
2261
2267
  e.data.forEach((n) => {
2262
2268
  t[n.n] = JSON.parse(n.s);
2263
- }), Ke(t);
2269
+ }), We(t);
2264
2270
  };
2265
2271
  Q.job = (e) => {
2266
2272
  let t = { ...xe() }, n = {};
2267
2273
  Object.keys(e.data).forEach((r) => {
2268
2274
  n[r] = { s: 1, n: e.data[r] };
2269
- }), t[1] = n, Ke(t);
2275
+ }), t[1] = n, We(t);
2270
2276
  };
2271
2277
  Q.setting = (e) => {
2272
2278
  pr(e.data);
@@ -2334,11 +2340,11 @@ function Wi({ children: e, viev: t = "row", className: n }) {
2334
2340
  function qi({ children: e }) {
2335
2341
  return /* @__PURE__ */ a.jsx("div", { className: te.c, children: e });
2336
2342
  }
2337
- function Yi({ children: e }) {
2343
+ function Hi({ children: e }) {
2338
2344
  return /* @__PURE__ */ a.jsx("div", { className: te.g, children: e });
2339
2345
  }
2340
- const Hi = "_btn_294gf_1", Vi = "_confirm_294gf_15", Ji = "_cancel_294gf_20", Xi = "_action_294gf_25", Qi = "_disabled_294gf_30", eo = "_m_294gf_44", to = "_l_294gf_48", tt = {
2341
- btn: Hi,
2346
+ const Yi = "_btn_294gf_1", Vi = "_confirm_294gf_15", Ji = "_cancel_294gf_20", Xi = "_action_294gf_25", Qi = "_disabled_294gf_30", eo = "_m_294gf_44", to = "_l_294gf_48", at = {
2347
+ btn: Yi,
2342
2348
  confirm: Vi,
2343
2349
  cancel: Ji,
2344
2350
  action: Xi,
@@ -2367,9 +2373,9 @@ const Hi = "_btn_294gf_1", Vi = "_confirm_294gf_15", Ji = "_cancel_294gf_20", Xi
2367
2373
  {
2368
2374
  ref: l,
2369
2375
  className: [
2370
- tt.btn,
2371
- _ ? tt.disabled : tt[r],
2372
- n && tt[n],
2376
+ at.btn,
2377
+ _ ? at.disabled : at[r],
2378
+ n && at[n],
2373
2379
  i
2374
2380
  ].join(" "),
2375
2381
  onClick: x,
@@ -2377,12 +2383,12 @@ const Hi = "_btn_294gf_1", Vi = "_confirm_294gf_15", Ji = "_cancel_294gf_20", Xi
2377
2383
  }
2378
2384
  );
2379
2385
  };
2380
- let st = {};
2386
+ let ot = {};
2381
2387
  function ao() {
2382
2388
  let [e, t] = h.useState([]);
2383
- return st.x = (n) => {
2389
+ return ot.x = (n) => {
2384
2390
  n || t([]);
2385
- }, st.add = (n) => {
2391
+ }, ot.add = (n) => {
2386
2392
  t([...e, n]);
2387
2393
  }, /* @__PURE__ */ a.jsx(a.Fragment, { children: e.map((n) => n) });
2388
2394
  }
@@ -2477,7 +2483,7 @@ function ro({
2477
2483
  ) : "" });
2478
2484
  }
2479
2485
  function so(e) {
2480
- st.add(/* @__PURE__ */ a.jsx(io, { children: e }, String(Date.now())));
2486
+ ot.add(/* @__PURE__ */ a.jsx(io, { children: e }, String(Date.now())));
2481
2487
  }
2482
2488
  function io({ children: e }) {
2483
2489
  return /* @__PURE__ */ a.jsx(a.Fragment, { children: e });
@@ -2492,20 +2498,20 @@ function oo(e) {
2492
2498
  function lo({ type: e, name: t, params: n }) {
2493
2499
  let [r, s] = h.useState(null);
2494
2500
  return h.useEffect(() => {
2495
- it(`${e}/modal/${t}.tsx`).then((i) => {
2501
+ lt(`${e}/modal/${t}.tsx`).then((i) => {
2496
2502
  s(i.default.Icon(n));
2497
2503
  });
2498
2504
  }, [n.id]), /* @__PURE__ */ a.jsx(a.Fragment, { children: r });
2499
2505
  }
2500
2506
  function co(e, t, n) {
2501
- it(`${e}/modal/${t}.tsx`).then((r) => {
2507
+ lt(`${e}/modal/${t}.tsx`).then((r) => {
2502
2508
  r.default.Open(n);
2503
2509
  });
2504
2510
  }
2505
2511
  function _o(e) {
2506
- st.x(e);
2512
+ ot.x(e);
2507
2513
  }
2508
- const lt = {
2514
+ const ct = {
2509
2515
  List: xi,
2510
2516
  Scroll: Ki,
2511
2517
  Main: ro,
@@ -2516,7 +2522,7 @@ const lt = {
2516
2522
  Form: Wi,
2517
2523
  Center: qi,
2518
2524
  Close: _o,
2519
- Column: Yi
2525
+ Column: Hi
2520
2526
  };
2521
2527
  function Gn({ text: e, type: t, button: n }) {
2522
2528
  let [r, s] = h.useState(!1), i = { active: t };
@@ -2528,7 +2534,7 @@ function Gn({ text: e, type: t, button: n }) {
2528
2534
  return r ? void 0 : (s(!0), n.onSend(s));
2529
2535
  }
2530
2536
  };
2531
- return /* @__PURE__ */ a.jsxs("div", { className: St.al, ...i, children: [
2537
+ return /* @__PURE__ */ a.jsxs("div", { className: Et.al, ...i, children: [
2532
2538
  /* @__PURE__ */ a.jsx(
2533
2539
  "svg",
2534
2540
  {
@@ -2689,7 +2695,7 @@ const Eo = ({ children: e, className: t, title: n }) => /* @__PURE__ */ a.jsxs("
2689
2695
  }) => {
2690
2696
  t = t || "Файлы";
2691
2697
  const [s, i] = h.useReducer(No, {}, To), o = () => {
2692
- lt.Add(
2698
+ ct.Add(
2693
2699
  /* @__PURE__ */ a.jsx(
2694
2700
  $o,
2695
2701
  {
@@ -2761,7 +2767,7 @@ const Eo = ({ children: e, className: t, title: n }) => /* @__PURE__ */ a.jsxs("
2761
2767
  "div",
2762
2768
  {
2763
2769
  className: "modal o ",
2764
- onClick: lt.Shake,
2770
+ onClick: ct.Shake,
2765
2771
  children: /* @__PURE__ */ a.jsxs("div", { className: "b", children: [
2766
2772
  /* @__PURE__ */ a.jsx("div", { className: "h", children: "Загрузка файлов" }),
2767
2773
  /* @__PURE__ */ a.jsx(
@@ -2793,7 +2799,7 @@ const Eo = ({ children: e, className: t, title: n }) => /* @__PURE__ */ a.jsxs("
2793
2799
  ) }) : "" });
2794
2800
  }, Bo = ({ data: e, dispatch: t }) => {
2795
2801
  let n = async () => {
2796
- let i = await (await fetch(bt.url().files + "/yandex/data/" + e.id, {
2802
+ let i = await (await fetch(wt.url().files + "/yandex/data/" + e.id, {
2797
2803
  headers: {
2798
2804
  "Content-type": "application/json;charset=utf-8",
2799
2805
  SSID: J.getSSID() || ""
@@ -2806,7 +2812,7 @@ const Eo = ({ children: e, className: t, title: n }) => /* @__PURE__ */ a.jsxs("
2806
2812
  l.setAttribute("href", o), l.setAttribute("download", e.name), l.click();
2807
2813
  }
2808
2814
  }, r = async () => {
2809
- (await (await fetch(bt.url().files + "/yandex/delete/" + e.id, {
2815
+ (await (await fetch(wt.url().files + "/yandex/delete/" + e.id, {
2810
2816
  headers: {
2811
2817
  "Content-type": "application/json;charset=utf-8",
2812
2818
  SSID: J.getSSID() || ""
@@ -2854,7 +2860,7 @@ const Fo = () => {
2854
2860
  i.forEach((l, c) => {
2855
2861
  o.push({
2856
2862
  item: /* @__PURE__ */ a.jsx(
2857
- Et,
2863
+ Dt,
2858
2864
  {
2859
2865
  data: q.list[l]
2860
2866
  },
@@ -2871,7 +2877,7 @@ const Fo = () => {
2871
2877
  }, q.set = (i) => {
2872
2878
  t([
2873
2879
  ...e,
2874
- { item: /* @__PURE__ */ a.jsx(Et, { data: i }, i.id), link: i.link }
2880
+ { item: /* @__PURE__ */ a.jsx(Dt, { data: i }, i.id), link: i.link }
2875
2881
  ]);
2876
2882
  }, q.del = (i) => {
2877
2883
  e.forEach((o, l) => {
@@ -2902,16 +2908,16 @@ const Fo = () => {
2902
2908
  onClick: o
2903
2909
  }
2904
2910
  ) : "" });
2905
- }, Et = ({ data: e }) => {
2911
+ }, Dt = ({ data: e }) => {
2906
2912
  let t = (r) => {
2907
2913
  r.preventDefault(), delete q.list[e.link], q.del(e.link);
2908
2914
  }, n = () => {
2909
- Ge.setId(e.id);
2915
+ Ze.setId(e.id);
2910
2916
  };
2911
2917
  return /* @__PURE__ */ a.jsx("span", { onContextMenu: t, onClick: n, children: e.name });
2912
2918
  }, Oo = (e) => {
2913
2919
  q.active(e);
2914
- }, K = {}, Dt = {}, I = {};
2920
+ }, K = {}, It = {}, I = {};
2915
2921
  I.config = { iceServers: [{ url: "stun:stun.l.google.com:19302" }] };
2916
2922
  I.constraints = { optional: [{ DtlsSrtpKeyAgreement: !0 }] };
2917
2923
  I.other = [];
@@ -2965,10 +2971,10 @@ K.start = async (e) => {
2965
2971
  }, e();
2966
2972
  };
2967
2973
  K.useListener = (e) => {
2968
- Dt.rtc = e;
2974
+ It.rtc = e;
2969
2975
  };
2970
2976
  K.setListener = (e) => {
2971
- Dt.rtc && Dt.rtc(e);
2977
+ It.rtc && It.rtc(e);
2972
2978
  };
2973
2979
  K.callTo = async (e) => {
2974
2980
  K.start(async () => {
@@ -3055,15 +3061,15 @@ K.callRefuser = async () => {
3055
3061
  K.Run = async (e) => {
3056
3062
  K[e.data.type] && K[e.data.type](e.data);
3057
3063
  };
3058
- let Ze = {};
3064
+ let Ue = {};
3059
3065
  function Ao() {
3060
3066
  let [e, t] = h.useState([]), n = h.useRef(null);
3061
3067
  return h.useEffect(() => {
3062
- }, []), Ze.set = (r) => {
3068
+ }, []), Ue.set = (r) => {
3063
3069
  t([...e, r]);
3064
- }, Ze.del = () => {
3070
+ }, Ue.del = () => {
3065
3071
  t([]);
3066
- }, Ze.audio = (r, s) => {
3072
+ }, Ue.audio = (r, s) => {
3067
3073
  n.current.volume = 0.5, n.current.loop = s, n.current.src = "/audio/" + r, n.current.muted = !1;
3068
3074
  }, /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
3069
3075
  e.map((r) => r.item),
@@ -3072,7 +3078,7 @@ function Ao() {
3072
3078
  }
3073
3079
  function Go(e, t) {
3074
3080
  let n = (/* @__PURE__ */ new Date()).getTime();
3075
- Ze.set({
3081
+ Ue.set({
3076
3082
  item: /* @__PURE__ */ a.jsx(Zo, { type: t, id: e }, n),
3077
3083
  key: n
3078
3084
  });
@@ -3168,7 +3174,7 @@ function Zo({ id: e, type: t }) {
3168
3174
  );
3169
3175
  }
3170
3176
  }, l = () => {
3171
- K.callRefuser(n.id), Ze.del();
3177
+ K.callRefuser(n.id), Ue.del();
3172
3178
  };
3173
3179
  return /* @__PURE__ */ a.jsx("div", { className: "web-phone white", children: /* @__PURE__ */ a.jsxs("div", { className: "w", children: [
3174
3180
  /* @__PURE__ */ a.jsx("div", { className: "x", "data-icon": "F038", onClick: l }),
@@ -3177,18 +3183,18 @@ function Zo({ id: e, type: t }) {
3177
3183
  /* @__PURE__ */ a.jsx("div", { className: "b", children: o() })
3178
3184
  ] }) });
3179
3185
  }
3180
- const It = {};
3186
+ const Rt = {};
3181
3187
  function Uo(e) {
3182
- It.add(e);
3188
+ Rt.add(e);
3183
3189
  }
3184
3190
  function zo({ color: e, size: t, name: n }) {
3185
3191
  return /* @__PURE__ */ a.jsx("svg", { width: t, height: t, color: e, children: /* @__PURE__ */ a.jsx("use", { href: `#${n}` }) });
3186
3192
  }
3187
3193
  function Ko() {
3188
3194
  let [e, t] = h.useState([]);
3189
- if (It.x = () => {
3195
+ if (Rt.x = () => {
3190
3196
  t([]);
3191
- }, It.add = (r) => {
3197
+ }, Rt.add = (r) => {
3192
3198
  t(r);
3193
3199
  }, e.length === 0) return "";
3194
3200
  const n = { sprite: "" };
@@ -3204,7 +3210,7 @@ function Ko() {
3204
3210
  s
3205
3211
  )) });
3206
3212
  }
3207
- let nt = {}, Zn = {};
3213
+ let rt = {}, Zn = {};
3208
3214
  const Wo = (e) => {
3209
3215
  Zn = e;
3210
3216
  }, Un = za(
@@ -3213,16 +3219,16 @@ const Wo = (e) => {
3213
3219
  const [t, n] = h.useState(
3214
3220
  localStorage.getItem("lang") || navigator.language
3215
3221
  );
3216
- return nt.update = n, /* @__PURE__ */ a.jsx(Un.Provider, { value: Zn[t], children: e });
3217
- }, Yo = (e) => {
3222
+ return rt.update = n, /* @__PURE__ */ a.jsx(Un.Provider, { value: Zn[t], children: e });
3223
+ }, Ho = (e) => {
3218
3224
  var t;
3219
- localStorage.setItem("lang", e), (t = nt.update) == null || t.call(nt, e);
3220
- }, Ho = () => Ka(Un), Vo = () => localStorage.getItem("lang") || navigator.language, Rt = {};
3225
+ localStorage.setItem("lang", e), (t = rt.update) == null || t.call(rt, e);
3226
+ }, Yo = () => Ka(Un), Vo = () => localStorage.getItem("lang") || navigator.language, Nt = {};
3221
3227
  function Pt(e, t) {
3222
- Rt[e] = t;
3228
+ Nt[e] = t;
3223
3229
  }
3224
3230
  function Jo(e, t) {
3225
- Rt[e] !== void 0 && Rt[e](t);
3231
+ Nt[e] !== void 0 && Nt[e](t);
3226
3232
  }
3227
3233
  const je = {};
3228
3234
  function Xo(e, t) {
@@ -3250,7 +3256,7 @@ const nl = ({ children: e, lang: t }) => Va(
3250
3256
  /* @__PURE__ */ a.jsxs(qo, { children: [
3251
3257
  /* @__PURE__ */ a.jsx(ao, {}),
3252
3258
  /* @__PURE__ */ a.jsx(Ps, {}),
3253
- /* @__PURE__ */ a.jsx(Hs, {}),
3259
+ /* @__PURE__ */ a.jsx(Ys, {}),
3254
3260
  /* @__PURE__ */ a.jsx(Mo, {}),
3255
3261
  /* @__PURE__ */ a.jsx(Ko, {}),
3256
3262
  /* @__PURE__ */ a.jsx(tl, {}),
@@ -3399,7 +3405,7 @@ function Kn({ list: e, onClick: t, active: n, size: r, view: s }) {
3399
3405
  }
3400
3406
  const Dl = ({ onClick: e, label: t, link: n, active: r }) => /* @__PURE__ */ a.jsx("li", { "tabs-active": String(r === n), onClick: () => e(n), children: t });
3401
3407
  Kn.defaultProps = { size: "M", view: "H" };
3402
- const vd = { Section: ml, Main: gl, Item: El, Tabs: Kn }, Cd = { Icon: Po, Item: Et, Active: Oo }, jd = { Send: Js, Line: Gn };
3408
+ const vd = { Section: ml, Main: gl, Item: El, Tabs: Kn }, Cd = { Icon: Po, Item: Dt, Active: Oo }, jd = { Send: Js, Line: Gn };
3403
3409
  function Il() {
3404
3410
  return /* @__PURE__ */ a.jsx("svg", { viewBox: "0 0 462.86 359.96", children: /* @__PURE__ */ a.jsx(
3405
3411
  "path",
@@ -3425,12 +3431,12 @@ function Tl({ name: e, size: t = 16, onClick: n, hover: r }) {
3425
3431
  }
3426
3432
  );
3427
3433
  }
3428
- let Nt = {};
3434
+ let Tt = {};
3429
3435
  function Ml(e) {
3430
- Nt = { ...Nt, ...e };
3436
+ Tt = { ...Tt, ...e };
3431
3437
  }
3432
3438
  function jn() {
3433
- return Nt;
3439
+ return Tt;
3434
3440
  }
3435
3441
  function Ll({ name: e, hover: t, onClick: n }) {
3436
3442
  const r = {};
@@ -3445,12 +3451,12 @@ $l.setAttribute = (e, t) => {
3445
3451
  const Bl = "_sort_1yrvt_1", Fl = {
3446
3452
  sort: Bl
3447
3453
  };
3448
- let ct = {};
3454
+ let dt = {};
3449
3455
  function Pl(e, t) {
3450
3456
  switch (t.type) {
3451
3457
  case "active":
3452
3458
  let n = "<";
3453
- return e.active === t.data && (n = e.sort === "<" ? ">" : "<"), ct.get({ active: t.data, sort: n }, !1), Ln({ active: t.data, sort: n }), {
3459
+ return e.active === t.data && (n = e.sort === "<" ? ">" : "<"), dt.get({ active: t.data, sort: n }, !1), Ln({ active: t.data, sort: n }), {
3454
3460
  ...e,
3455
3461
  active: t.data,
3456
3462
  sort: n
@@ -3462,7 +3468,7 @@ function Pl(e, t) {
3462
3468
  function Ol() {
3463
3469
  const [e, t] = h.useReducer(
3464
3470
  Pl,
3465
- yt() === void 0 ? { active: 1, sort: "<" } : yt()
3471
+ bt() === void 0 ? { active: 1, sort: "<" } : bt()
3466
3472
  );
3467
3473
  return /* @__PURE__ */ a.jsxs("div", { className: Fl.sort, children: [
3468
3474
  /* @__PURE__ */ a.jsx(
@@ -3492,10 +3498,10 @@ function Ol() {
3492
3498
  ] });
3493
3499
  }
3494
3500
  function Al(e) {
3495
- ct.get = e;
3501
+ dt.get = e;
3496
3502
  }
3497
3503
  function Gl(e) {
3498
- ct.set(e);
3504
+ dt.set(e);
3499
3505
  }
3500
3506
  function Zl(e, t, n) {
3501
3507
  let r = 1, s = 0, i = {}, o = 50;
@@ -3517,31 +3523,31 @@ function Zl(e, t, n) {
3517
3523
  }), { data: i };
3518
3524
  }
3519
3525
  function Ul(e) {
3520
- ct.count(e);
3526
+ dt.count(e);
3521
3527
  }
3522
- const yd = { Init: Ol, useValue: Al, Set: Gl, Run: Zl, Count: Ul }, at = {}, Wn = {};
3528
+ const yd = { Init: Ol, useValue: Al, Set: Gl, Run: Zl, Count: Ul }, st = {}, Wn = {};
3523
3529
  function zl(e) {
3524
3530
  const [t, n] = h.useState({}), r = async (s) => {
3525
3531
  n(
3526
- Object.keys(at).reduce((i, o) => (i ? i[o] = at[o].all : i = {}, i), {})
3532
+ Object.keys(st).reduce((i, o) => (i ? i[o] = st[o].all : i = {}, i), {})
3527
3533
  );
3528
3534
  };
3529
3535
  return h.useEffect(() => {
3530
- e.forEach((s) => at[s] = { all: 0 }), Wn.menu = r, r();
3536
+ e.forEach((s) => st[s] = { all: 0 }), Wn.menu = r, r();
3531
3537
  }, [e]), t;
3532
3538
  }
3533
3539
  function Kl(e, t) {
3534
3540
  switch (typeof t) {
3535
3541
  case "number":
3536
- at[e].all += t, Wn.menu();
3542
+ st[e].all += t, Wn.menu();
3537
3543
  break;
3538
3544
  }
3539
3545
  }
3540
3546
  const bd = { useMenu: zl, setUpdate: Kl };
3541
3547
  class Wl {
3542
3548
  constructor(t = "el", n = "db") {
3543
- vt(this, "storeName");
3544
- vt(this, "_dbp");
3549
+ Ct(this, "storeName");
3550
+ Ct(this, "_dbp");
3545
3551
  this.storeName = n, this._dbp = new Promise((r, s) => {
3546
3552
  const i = indexedDB.open(t, 1);
3547
3553
  i.onerror = () => s(i.error), i.onsuccess = () => r(i.result), i.onupgradeneeded = () => {
@@ -3558,32 +3564,32 @@ class Wl {
3558
3564
  );
3559
3565
  }
3560
3566
  }
3561
- let Ct, H = {};
3562
- const Le = () => (Ct || (Ct = new Wl()), Ct), be = (e, t, n = Le()) => n._withIDBStore("readwrite", (r) => {
3563
- H[e] = t, r.put(P.enCode(t), e);
3564
- }), pe = (e, t = Le()) => H[e] === void 0 ? new Promise((n, r) => {
3567
+ let jt, Y = {};
3568
+ const $e = () => (jt || (jt = new Wl()), jt), be = (e, t, n = $e()) => n._withIDBStore("readwrite", (r) => {
3569
+ Y[e] = t, r.put(P.enCode(t), e);
3570
+ }), pe = (e, t = $e()) => Y[e] === void 0 ? new Promise((n, r) => {
3565
3571
  let s;
3566
3572
  t._withIDBStore("readonly", (i) => {
3567
3573
  s = i.get(e);
3568
3574
  }).then(() => {
3569
3575
  if (s.result !== void 0) {
3570
3576
  let i = P.deCode(s.result);
3571
- H[e] = i, n(i);
3577
+ Y[e] = i, n(i);
3572
3578
  } else
3573
3579
  n({});
3574
3580
  });
3575
- }) : H[e], ql = (e, t = Le()) => t._withIDBStore("readwrite", (n) => {
3581
+ }) : Y[e], ql = (e, t = $e()) => t._withIDBStore("readwrite", (n) => {
3576
3582
  n.delete(e);
3577
- }), Tt = (e = Le()) => e._withIDBStore("readwrite", (t) => {
3583
+ }), Mt = (e = $e()) => e._withIDBStore("readwrite", (t) => {
3578
3584
  t.clear();
3579
- }), Yl = (e = Le()) => {
3585
+ }), Hl = (e = $e()) => {
3580
3586
  const t = [];
3581
3587
  return e._withIDBStore("readonly", (n) => {
3582
3588
  (n.openKeyCursor || n.openCursor).call(n).onsuccess = function() {
3583
3589
  this.result && (t.push(this.result.key), this.result.continue());
3584
3590
  };
3585
3591
  }).then(() => t);
3586
- }, Hl = (e, t, n = [], r = {}) => {
3592
+ }, Yl = (e, t, n = [], r = {}) => {
3587
3593
  let s = n.length !== 0, i = [], o = r.sort, l = Object.keys(r).length !== 0, c = Object.keys(r), _ = Object.keys(e), u = [], x = (m) => {
3588
3594
  let C = "";
3589
3595
  if (n.forEach((g) => {
@@ -3594,7 +3600,7 @@ const Le = () => (Ct || (Ct = new Wl()), Ct), be = (e, t, n = Le()) => n._withID
3594
3600
  g[p] = t[m][p];
3595
3601
  });
3596
3602
  for (let p in o)
3597
- t[m][o[p]] === void 0 && (Tt(), location.reload()), p === "s1" && (g[p] = new Date(t[m][o[p]]).getTime()), p === "s2" && (g[p] = t[m][o[p]]), p === "s3" && (g[p] = t[m][o[p]].replace(/[^a-zа-яё]/gi, "").substring(0, 1));
3603
+ t[m][o[p]] === void 0 && (Mt(), location.reload()), p === "s1" && (g[p] = new Date(t[m][o[p]]).getTime()), p === "s2" && (g[p] = t[m][o[p]]), p === "s3" && (g[p] = t[m][o[p]].replace(/[^a-zа-яё]/gi, "").substring(0, 1));
3598
3604
  i.push({ id: m, text: C, ...g });
3599
3605
  } else
3600
3606
  i.push({ id: m, text: C });
@@ -3603,10 +3609,10 @@ const Le = () => (Ct || (Ct = new Wl()), Ct), be = (e, t, n = Le()) => n._withID
3603
3609
  return _.forEach((m) => {
3604
3610
  u.push(t[m]);
3605
3611
  }), u.forEach((m) => {
3606
- m === void 0 ? (Tt(), location.reload()) : (s && x(m.id), l && f(m.id));
3612
+ m === void 0 ? (Mt(), location.reload()) : (s && x(m.id), l && f(m.id));
3607
3613
  }), { list: u, search: i, filter: r };
3608
- }, Vl = (e, t, n, r = Le()) => {
3609
- if (H[e] === void 0)
3614
+ }, Vl = (e, t, n, r = $e()) => {
3615
+ if (Y[e] === void 0)
3610
3616
  return new Promise((s, i) => {
3611
3617
  let o;
3612
3618
  r._withIDBStore("readonly", (l) => {
@@ -3614,17 +3620,17 @@ const Le = () => (Ct || (Ct = new Wl()), Ct), be = (e, t, n = Le()) => n._withID
3614
3620
  }).then(() => {
3615
3621
  if (o.result !== void 0) {
3616
3622
  let l = P.deCode(o.result);
3617
- H[e] = l, H[e][t.id] = {
3618
- ...H[e][t.id],
3623
+ Y[e] = l, Y[e][t.id] = {
3624
+ ...Y[e][t.id],
3619
3625
  ...t.data
3620
- }, r.put(P.enCode(H[e]), e), s({});
3626
+ }, r.put(P.enCode(Y[e]), e), s({});
3621
3627
  } else
3622
3628
  s({});
3623
3629
  });
3624
3630
  });
3625
- if (H[e][t.id] !== void 0)
3626
- return H[e][t.id] = { ...H[e][t.id], ...t.data }, n !== void 0 && H[n] !== void 0 ? H[n][t.id] !== void 0 && (H[n][t.id] = t.data.eDate) : H[n] = [], delete H[e][t.id].$_item, delete H[e][t.id].$_send, r._withIDBStore("readwrite", (s) => {
3627
- s.put(P.enCode(H[e]), e), n !== void 0 && s.put(P.enCode(H[n]), n);
3631
+ if (Y[e][t.id] !== void 0)
3632
+ return Y[e][t.id] = { ...Y[e][t.id], ...t.data }, n !== void 0 && Y[n] !== void 0 ? Y[n][t.id] !== void 0 && (Y[n][t.id] = t.data.eDate) : Y[n] = [], delete Y[e][t.id].$_item, delete Y[e][t.id].$_send, r._withIDBStore("readwrite", (s) => {
3633
+ s.put(P.enCode(Y[e]), e), n !== void 0 && s.put(P.enCode(Y[n]), n);
3628
3634
  });
3629
3635
  }, Jl = async (e, t, n, r) => {
3630
3636
  let s, i;
@@ -3649,17 +3655,17 @@ const Le = () => (Ct || (Ct = new Wl()), Ct), be = (e, t, n = Le()) => n._withID
3649
3655
  n({ type: "load", base: r });
3650
3656
  else
3651
3657
  return r[e];
3652
- }, ac = (e) => H[e], wd = {
3658
+ }, ac = (e) => Y[e], wd = {
3653
3659
  id: nc,
3654
3660
  get: pe,
3655
3661
  set: be,
3656
3662
  add: Jl,
3657
3663
  del: ql,
3658
3664
  upd: Vl,
3659
- key: Yl,
3665
+ key: Hl,
3660
3666
  load: ac,
3661
- split: Hl,
3662
- clear: Tt,
3667
+ split: Yl,
3668
+ clear: Mt,
3663
3669
  updAll: Xl,
3664
3670
  delAll: Ql,
3665
3671
  delList: ec,
@@ -3750,7 +3756,7 @@ function dc({
3750
3756
  }
3751
3757
  );
3752
3758
  }
3753
- const Ed = { Widget: Lo }, Yn = ({ onClick: e, active: t }) => (t = !!t, /* @__PURE__ */ a.jsx(
3759
+ const Ed = { Widget: Lo }, Hn = ({ onClick: e, active: t }) => (t = !!t, /* @__PURE__ */ a.jsx(
3754
3760
  "div",
3755
3761
  {
3756
3762
  role: "switch",
@@ -3774,7 +3780,7 @@ oe.Focus = (e) => {
3774
3780
  oe.Blur = (e) => {
3775
3781
  e.target.scrollLeft = 0, e.target.querySelector("br") !== null && e.target.querySelector("br").remove();
3776
3782
  };
3777
- function ze({
3783
+ function Ke({
3778
3784
  id: e,
3779
3785
  value: t,
3780
3786
  onValue: n,
@@ -3844,7 +3850,7 @@ function ze({
3844
3850
  o ? /* @__PURE__ */ a.jsx("em", { children: o }) : ""
3845
3851
  ] });
3846
3852
  }
3847
- function Hn({ onClick: e, onSend: t, name: n, onRef: r }) {
3853
+ function Yn({ onClick: e, onSend: t, name: n, onRef: r }) {
3848
3854
  let [s, i] = h.useState(!1);
3849
3855
  const o = () => {
3850
3856
  if (e) return e();
@@ -4341,7 +4347,7 @@ function At({
4341
4347
  let [p, j] = h.useState(e), b = (k) => {
4342
4348
  if (!(l && _) || !f) return;
4343
4349
  let w = f.split(".");
4344
- lt.Open(w[0], w[1], {
4350
+ ct.Open(w[0], w[1], {
4345
4351
  callback: (S) => {
4346
4352
  t && t({ value: S, name: n }), j(S);
4347
4353
  },
@@ -4749,7 +4755,7 @@ function aa({
4749
4755
  l ? /* @__PURE__ */ a.jsx("em", { children: l }) : ""
4750
4756
  ] });
4751
4757
  }
4752
- const jt = {
4758
+ const kt = {
4753
4759
  0: {
4754
4760
  name: "Heard Island and Mcdonald Islands",
4755
4761
  dial_code: "+0",
@@ -6160,8 +6166,8 @@ function Ut({
6160
6166
  let R = 0, F = "", W = $.replace(/\D/g, "");
6161
6167
  W === "" && (p = !0);
6162
6168
  let ae = W.split(""), ie = "";
6163
- ae.forEach(($e) => {
6164
- p && (ie += $e, jt[ie] !== void 0 && p ? (p = !1, g = jt[ie].mask.replace(new RegExp("[0-9]", "g"), "_"), F = jt[ie].code) : (p && (j = ("" + ie).length, g = `+${ie}_(___) ___-__-__`.replace(
6169
+ ae.forEach((Be) => {
6170
+ p && (ie += Be, kt[ie] !== void 0 && p ? (p = !1, g = kt[ie].mask.replace(new RegExp("[0-9]", "g"), "_"), F = kt[ie].code) : (p && (j = ("" + ie).length, g = `+${ie}_(___) ___-__-__`.replace(
6165
6171
  new RegExp("[0-9]", "g"),
6166
6172
  "_"
6167
6173
  ), F = ""), j > ("" + ie).length && (p = !0, g = `+${ie}_(___) ___-__-__`.replace(
@@ -6435,7 +6441,7 @@ const vc = ({ onValue: e, parent: t, view: n, options: r }) => {
6435
6441
  )
6436
6442
  ] }) : "" });
6437
6443
  };
6438
- function Mt({
6444
+ function Lt({
6439
6445
  set: e,
6440
6446
  value: t,
6441
6447
  onValue: n,
@@ -6457,7 +6463,7 @@ function Mt({
6457
6463
  switch (e) {
6458
6464
  case "Input":
6459
6465
  return /* @__PURE__ */ a.jsx(
6460
- ze,
6466
+ Ke,
6461
6467
  {
6462
6468
  title: i,
6463
6469
  show: _,
@@ -7025,7 +7031,7 @@ function da({
7025
7031
  const [p, j] = h.useState(kc(e)), b = (k) => {
7026
7032
  if (!(l && _) || !f) return;
7027
7033
  let w = f.split(".");
7028
- lt.Open(w[0], w[1], {
7034
+ ct.Open(w[0], w[1], {
7029
7035
  callback: (S) => {
7030
7036
  t && t({ value: S, name: n }), j(S);
7031
7037
  },
@@ -7203,9 +7209,9 @@ const Dd = {
7203
7209
  Image: kn,
7204
7210
  Code: Qn,
7205
7211
  Check: oa,
7206
- Switch: Yn,
7207
- Input: ze,
7208
- Button: Hn,
7212
+ Switch: Hn,
7213
+ Input: Ke,
7214
+ Button: Yn,
7209
7215
  Message: Vn,
7210
7216
  Generator: Jn,
7211
7217
  Captcha: Xn,
@@ -7218,12 +7224,12 @@ const Dd = {
7218
7224
  Phone: Ut,
7219
7225
  Search: ra,
7220
7226
  Select: zt,
7221
- Set: Mt,
7227
+ Set: Lt,
7222
7228
  Textarea: sa,
7223
7229
  Time: ia,
7224
7230
  Users: Kt,
7225
- String: ze,
7226
- Form: Mt,
7231
+ String: Ke,
7232
+ Form: Lt,
7227
7233
  runReload: Dc,
7228
7234
  useData: Sc,
7229
7235
  setValue: Ec,
@@ -7263,8 +7269,8 @@ function Rc({
7263
7269
  let F = 0, W = "", ae = R.replace(/\D/g, "");
7264
7270
  ae === "" && (j = !0);
7265
7271
  let ie = ae.split(""), ge = "";
7266
- ie.forEach((He) => {
7267
- j && (ge += He, j && (b = ("" + ge).length, p = s.replace(new RegExp("[0-9]", "g"), "_"), W = ""), b > ("" + ge).length && (j = !0, p = s.replace(new RegExp("[0-9]", "g"), "_"), W = ""));
7272
+ ie.forEach((Je) => {
7273
+ j && (ge += Je, j && (b = ("" + ge).length, p = s.replace(new RegExp("[0-9]", "g"), "_"), W = ""), b > ("" + ge).length && (j = !0, p = s.replace(new RegExp("[0-9]", "g"), "_"), W = ""));
7268
7274
  });
7269
7275
  let De = p.replace(/\D/g, "");
7270
7276
  return De.length >= ae.length && (ae = De), { q: p.replace(/[_\d]/g, function() {
@@ -7315,9 +7321,9 @@ const Id = {
7315
7321
  Date: Ot,
7316
7322
  Code: Qn,
7317
7323
  Check: oa,
7318
- Switch: Yn,
7319
- Input: ze,
7320
- Button: Hn,
7324
+ Switch: Hn,
7325
+ Input: Ke,
7326
+ Button: Yn,
7321
7327
  Message: Vn,
7322
7328
  Generator: Jn,
7323
7329
  Captcha: Xn,
@@ -7331,11 +7337,11 @@ const Id = {
7331
7337
  Phone: Ut,
7332
7338
  Search: ra,
7333
7339
  Select: zt,
7334
- Set: Mt,
7340
+ Set: Lt,
7335
7341
  Textarea: sa,
7336
7342
  Time: ia,
7337
7343
  Users: Kt,
7338
- String: ze,
7344
+ String: Ke,
7339
7345
  Toogle: la,
7340
7346
  Group: ca,
7341
7347
  Options: da
@@ -7391,7 +7397,7 @@ const Rd = { Spinner: Lc, Inline: $c }, Bc = "_ph_1wjxu_1", Fc = "_e_1wjxu_5", y
7391
7397
  ] });
7392
7398
  };
7393
7399
  let Oc = ({ m: e, t, loading: n }) => {
7394
- const r = h.lazy(() => it(e + "/pages/" + t + ".tsx"));
7400
+ const r = h.lazy(() => lt(e + "/pages/" + t + ".tsx"));
7395
7401
  return /* @__PURE__ */ a.jsx(h.Suspense, { fallback: n, children: /* @__PURE__ */ a.jsx(r, {}) });
7396
7402
  }, Ac = ({ button: e }) => {
7397
7403
  const [t, n] = h.useState(e);
@@ -7453,11 +7459,11 @@ function Kc(e) {
7453
7459
  function Wc(e) {
7454
7460
  Wt = e;
7455
7461
  }
7456
- const Td = { Field: Uc, Run: zc, Get: Kc, useValue: Wc }, qc = "_f_q3r0i_1", Yc = {
7462
+ const Td = { Field: Uc, Run: zc, Get: Kc, useValue: Wc }, qc = "_f_q3r0i_1", Hc = {
7457
7463
  f: qc
7458
7464
  };
7459
7465
  let de = {};
7460
- function Hc(e, t) {
7466
+ function Yc(e, t) {
7461
7467
  switch (t.type) {
7462
7468
  case "open":
7463
7469
  return {
@@ -7508,7 +7514,7 @@ function Hc(e, t) {
7508
7514
  }
7509
7515
  }
7510
7516
  function Vc() {
7511
- const [e, t] = h.useReducer(Hc, {
7517
+ const [e, t] = h.useReducer(Yc, {
7512
7518
  open: !1,
7513
7519
  view: null,
7514
7520
  data: {},
@@ -7526,7 +7532,7 @@ function Vc() {
7526
7532
  /* @__PURE__ */ a.jsxs(
7527
7533
  "div",
7528
7534
  {
7529
- className: Yc.f,
7535
+ className: Hc.f,
7530
7536
  onClick: () => {
7531
7537
  t({ type: "open", open: !0 });
7532
7538
  },
@@ -7744,7 +7750,7 @@ function ld({
7744
7750
  ...i
7745
7751
  }) {
7746
7752
  const [o, l] = h.useState([]), [c, _] = h.useState([]), [u, x] = h.useState(!1), f = async () => {
7747
- let m = await bt.fetch(e, t);
7753
+ let m = await wt.fetch(e, t);
7748
7754
  m.data && m.data.length > 0 && (l(m.data), _(m.data)), x(!0);
7749
7755
  };
7750
7756
  return he.useListener("list_children", (m) => {
@@ -7807,17 +7813,17 @@ function cd(e, t) {
7807
7813
  throw new Error();
7808
7814
  }
7809
7815
  }
7810
- const Lt = {};
7816
+ const $t = {};
7811
7817
  function dd(e) {
7812
- Lt.get = e;
7818
+ $t.get = e;
7813
7819
  }
7814
7820
  function _d(e) {
7815
- Lt.get && Lt.get(e);
7821
+ $t.get && $t.get(e);
7816
7822
  }
7817
7823
  const Bd = { View: od, Reducer: cd, useValue: dd, Lite: ld, setValue: _d }, Fd = {
7818
7824
  addDictionary: Wo,
7819
- getDictionary: Ho,
7820
- setDictionary: Yo,
7825
+ getDictionary: Yo,
7826
+ setDictionary: Ho,
7821
7827
  current: Vo
7822
7828
  }, Pd = { Get: fi }, Od = function({
7823
7829
  title: e,
@@ -7828,7 +7834,7 @@ const Bd = { View: od, Reducer: cd, useValue: dd, Lite: ld, setValue: _d }, Fd =
7828
7834
  tabs: i,
7829
7835
  modules: o
7830
7836
  }) {
7831
- const [l] = Ge.useTabs(s), [c, _] = h.useState(!1);
7837
+ const [l] = Ze.useTabs(s), [c, _] = h.useState(!1);
7832
7838
  return h.useEffect(() => {
7833
7839
  _(!0);
7834
7840
  }, []), /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
@@ -7842,7 +7848,7 @@ const Bd = { View: od, Reducer: cd, useValue: dd, Lite: ld, setValue: _d }, Fd =
7842
7848
  ] });
7843
7849
  };
7844
7850
  let ud = ({ modules: e, t }) => {
7845
- const n = h.lazy(() => it(e + "/pages/" + t + ".tsx"));
7851
+ const n = h.lazy(() => lt(e + "/pages/" + t + ".tsx"));
7846
7852
  return /* @__PURE__ */ a.jsx(h.Suspense, { fallback: "", children: /* @__PURE__ */ a.jsx(n, {}) });
7847
7853
  }, fd = ({ button: e }) => {
7848
7854
  const [t, n] = h.useState(e);
@@ -7880,7 +7886,7 @@ export {
7880
7886
  jl as Action,
7881
7887
  jd as Alert,
7882
7888
  pd as Animation,
7883
- bt as Api,
7889
+ wt as Api,
7884
7890
  bd as Badge,
7885
7891
  Cd as Bookmarks,
7886
7892
  gd as Browser,
@@ -7902,17 +7908,17 @@ export {
7902
7908
  Nd as Layout,
7903
7909
  Bd as List,
7904
7910
  Rd as Loading,
7905
- lt as Modal,
7911
+ ct as Modal,
7906
7912
  ye as Notice,
7907
7913
  Ld as Notifications,
7908
7914
  $d as Pagination,
7909
7915
  Ad as Phone,
7910
7916
  $l as Root,
7911
- Ge as Router,
7917
+ Ze as Router,
7912
7918
  dc as Scrolling,
7913
7919
  Td as Search,
7914
7920
  vd as Setting,
7915
- ot as Sistym,
7921
+ Le as Sistym,
7916
7922
  ve as Socket,
7917
7923
  J as Store,
7918
7924
  Gd as Switch,