elcrm 0.7.6 → 0.7.8

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,22 +1,22 @@
1
1
  import './index.css';var ka = Object.defineProperty;
2
2
  var ya = (e, t, n) => t in e ? ka(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
3
- var ot = (e, t, n) => (ya(e, typeof t != "symbol" ? t + "" : t, n), n);
4
- import x, { createElement as ja } from "react";
5
- let kt = {};
3
+ var lt = (e, t, n) => (ya(e, typeof t != "symbol" ? t + "" : t, n), n);
4
+ import h, { createElement as ja } from "react";
5
+ let yt = {};
6
6
  const ba = (e) => {
7
- kt = e;
8
- }, wa = (e) => kt.enCode(e), Sa = (e) => kt.deCode(e), D = { enCode: wa, deCode: Sa, New: ba }, E = {}, Q = {}, ke = {}, mn = {}, he = {};
9
- let yt = "M06";
10
- function Ea(e) {
11
7
  yt = e;
8
+ }, wa = (e) => yt.enCode(e), Sa = (e) => yt.deCode(e), D = { enCode: wa, deCode: Sa, New: ba }, E = {}, Q = {}, ye = {}, mn = {}, he = {};
9
+ let jt = "M06";
10
+ function Ea(e) {
11
+ jt = e;
12
12
  }
13
13
  function Ra() {
14
- return yt;
14
+ return jt;
15
15
  }
16
16
  function Na(e) {
17
17
  if (localStorage.getItem("d")) {
18
18
  let n = sessionStorage.getItem("f");
19
- n ? (n = D.deCode(n), n || ee(), E.id = n.id, E.tab = n.tab, E.page = n.page, E.module = n.module, E.time = n.time, E.payment = { active: !0 }, E.module_admin = n.module_admin) : (E.id = 0, E.tab = "", E.page = "Main", E.module = E.module || yt);
19
+ n ? (n = D.deCode(n), n || ee(), E.id = n.id, E.tab = n.tab, E.page = n.page, E.module = n.module, E.time = n.time, E.payment = { active: !0 }, E.module_admin = n.module_admin) : (E.id = 0, E.tab = "", E.page = "Main", E.module = E.module || jt);
20
20
  } else
21
21
  ["a", "b", "c", "d", "e", "m", "u", "s", "q", "p"].forEach(
22
22
  (n) => localStorage.removeItem(n)
@@ -57,7 +57,7 @@ function Fa() {
57
57
  function La(e) {
58
58
  localStorage.setItem("p", D.enCode(e));
59
59
  }
60
- function dt() {
60
+ function _t() {
61
61
  let e = localStorage.getItem("p");
62
62
  if (e !== "" && e !== "undefined" && e !== null) {
63
63
  let t = D.deCode(e);
@@ -66,7 +66,7 @@ function dt() {
66
66
  return ee(), !1;
67
67
  }
68
68
  function $a() {
69
- const [e, t] = x.useState(fn()), n = (r) => {
69
+ const [e, t] = h.useState(fn()), n = (r) => {
70
70
  t(r);
71
71
  };
72
72
  return Q.page = n, [e];
@@ -78,7 +78,7 @@ function fn() {
78
78
  return E.page;
79
79
  }
80
80
  function Ba() {
81
- const [e, t] = x.useState(hn()), n = (r) => {
81
+ const [e, t] = h.useState(hn()), n = (r) => {
82
82
  t(r);
83
83
  };
84
84
  return Q.module = n, [e];
@@ -90,7 +90,7 @@ function hn() {
90
90
  return E.module;
91
91
  }
92
92
  function Aa(e) {
93
- const [t, n] = x.useState(He() || e), r = (s) => {
93
+ const [t, n] = h.useState(He() || e), r = (s) => {
94
94
  n(s);
95
95
  };
96
96
  return Q.tabs = r, [t];
@@ -102,7 +102,7 @@ function He() {
102
102
  return E.tab;
103
103
  }
104
104
  function za(e) {
105
- const [t, n] = x.useState(E.id), r = (s) => {
105
+ const [t, n] = h.useState(E.id), r = (s) => {
106
106
  if (e)
107
107
  return e(s);
108
108
  n(s);
@@ -122,10 +122,10 @@ function Va(e, t, n) {
122
122
  E.module = e, E.id = n, E.tab = t, sessionStorage.setItem("f", D.enCode(E)), Q.module(e), Q.tabs(t);
123
123
  }
124
124
  function Ua(e) {
125
- ke.data = e[0], delete ke.data.id, document.body.dataset.theme = ke.data.s15, localStorage.setItem("s", D.enCode(ke.data));
125
+ ye.data = e[0], delete ye.data.id, document.body.dataset.theme = ye.data.s15, localStorage.setItem("s", D.enCode(ye.data));
126
126
  }
127
127
  function Ya(e, t) {
128
- ke.data[e] = t, localStorage.setItem("s", D.enCode(ke.data));
128
+ ye.data[e] = t, localStorage.setItem("s", D.enCode(ye.data));
129
129
  }
130
130
  function Ha(e) {
131
131
  let t = localStorage.getItem("s");
@@ -156,7 +156,7 @@ function gn(e) {
156
156
  let t = localStorage.getItem("b");
157
157
  t = t === null ? {} : D.deCode(t), t[He()] = e, localStorage.setItem("b", D.enCode(t));
158
158
  }
159
- function _t() {
159
+ function ut() {
160
160
  let e = localStorage.getItem("b");
161
161
  return e === null ? {} : (e = D.deCode(e), e = e[He()], e = e === void 0 ? { active: 1, sort: "<" } : e, e);
162
162
  }
@@ -222,7 +222,7 @@ function ar() {
222
222
  const se = {
223
223
  setSSID: Ia,
224
224
  getSSID: Da,
225
- getPORT: dt,
225
+ getPORT: _t,
226
226
  setPORT: La,
227
227
  setAUTH: Ma,
228
228
  getAUTH: Fa,
@@ -232,7 +232,7 @@ const se = {
232
232
  getMenu: qa,
233
233
  useSort: Ja,
234
234
  setSort: gn,
235
- getSort: _t,
235
+ getSort: ut,
236
236
  setCompany: vn,
237
237
  getCompany: pn,
238
238
  setSelect: Pe,
@@ -280,7 +280,7 @@ function or(e) {
280
280
  function lr(e) {
281
281
  return e && (_e.h = e), _e.h;
282
282
  }
283
- const jt = { version: { Api: ir, Server: sr, Client: or }, Host: lr };
283
+ const bt = { version: { Api: ir, Server: sr, Client: or }, Host: lr };
284
284
  let cr = "api", dr = "elcrm", _r = "online";
285
285
  function ur() {
286
286
  let e = se.getPORT(), t = "", n = "";
@@ -293,7 +293,7 @@ let jn = `${cr}.${dr}.${_r}`;
293
293
  function mr(e) {
294
294
  return "https://" + se.getPORT().address + "/audio/" + e;
295
295
  }
296
- function bt(e, t = {}, n = se.getAUTH()) {
296
+ function qe(e, t = {}, n = se.getAUTH()) {
297
297
  return new Promise((r) => {
298
298
  const s = new yn();
299
299
  s.onmessage = (i) => {
@@ -302,7 +302,7 @@ function bt(e, t = {}, n = se.getAUTH()) {
302
302
  link: e,
303
303
  data: t,
304
304
  ssid: n,
305
- host: jt.Host() || `https://${jn}/`
305
+ host: bt.Host() || `https://${jn}/`
306
306
  });
307
307
  });
308
308
  }
@@ -315,17 +315,26 @@ function fr(e, t = {}, n = se.getAUTH()) {
315
315
  link: e,
316
316
  data: t,
317
317
  ssid: n,
318
- host: jt.Host() + "modules/" || `https://${jn}/modules`
318
+ host: bt.Host() + "modules/" || `https://${jn}/modules`
319
319
  });
320
320
  });
321
321
  }
322
+ function hr(e, t = {}, n) {
323
+ const [r, s] = h.useState({ status: "load" }), i = async (c) => {
324
+ let l = await qe(e, c, n);
325
+ s(l);
326
+ };
327
+ return h.useEffect(() => {
328
+ i(t);
329
+ }, []), [r, i];
330
+ }
322
331
  let bn = {
323
332
  "Content-type": "application/json;charset=utf-8",
324
333
  ssid: se.getAUTH() || ""
325
334
  };
326
- async function hr(e, t, n = {}) {
335
+ async function xr(e, t, n = {}) {
327
336
  try {
328
- return await (await bt("https://" + e + "/" + t, {
337
+ return await (await qe("https://" + e + "/" + t, {
329
338
  method: "POST",
330
339
  headers: bn,
331
340
  body: JSON.stringify(n)
@@ -334,9 +343,9 @@ async function hr(e, t, n = {}) {
334
343
  return { status: "error" };
335
344
  }
336
345
  }
337
- async function xr(e, t = {}) {
346
+ async function gr(e, t = {}) {
338
347
  try {
339
- return await (await bt("https://tb.elcrm.online/v1/" + e, {
348
+ return await (await qe("https://tb.elcrm.online/v1/" + e, {
340
349
  method: "POST",
341
350
  headers: bn,
342
351
  body: JSON.stringify(t)
@@ -345,8 +354,8 @@ async function xr(e, t = {}) {
345
354
  return { status: "error" };
346
355
  }
347
356
  }
348
- const nn = { audio: mr, fetch: bt, modules: fr, remoute: hr, url: ur, telegram: xr };
349
- var ut = { exports: {} }, Te = {};
357
+ const nn = { audio: mr, fetch: qe, modules: fr, remoute: xr, url: ur, telegram: gr, use: hr };
358
+ var mt = { exports: {} }, Te = {};
350
359
  /**
351
360
  * @license React
352
361
  * react-jsx-runtime.production.min.js
@@ -357,20 +366,20 @@ var ut = { exports: {} }, Te = {};
357
366
  * LICENSE file in the root directory of this source tree.
358
367
  */
359
368
  var an;
360
- function gr() {
369
+ function vr() {
361
370
  if (an)
362
371
  return Te;
363
372
  an = 1;
364
- var e = x, 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 };
373
+ 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 };
365
374
  function c(l, _, d) {
366
- var u, m = {}, h = null, g = null;
367
- d !== void 0 && (h = "" + d), _.key !== void 0 && (h = "" + _.key), _.ref !== void 0 && (g = _.ref);
375
+ var u, m = {}, x = null, g = null;
376
+ d !== void 0 && (x = "" + d), _.key !== void 0 && (x = "" + _.key), _.ref !== void 0 && (g = _.ref);
368
377
  for (u in _)
369
378
  r.call(_, u) && !i.hasOwnProperty(u) && (m[u] = _[u]);
370
379
  if (l && l.defaultProps)
371
380
  for (u in _ = l.defaultProps, _)
372
381
  m[u] === void 0 && (m[u] = _[u]);
373
- return { $$typeof: t, type: l, key: h, ref: g, props: m, _owner: s.current };
382
+ return { $$typeof: t, type: l, key: x, ref: g, props: m, _owner: s.current };
374
383
  }
375
384
  return Te.Fragment = n, Te.jsx = c, Te.jsxs = c, Te;
376
385
  }
@@ -385,16 +394,16 @@ var Ie = {};
385
394
  * LICENSE file in the root directory of this source tree.
386
395
  */
387
396
  var rn;
388
- function vr() {
397
+ function pr() {
389
398
  return rn || (rn = 1, process.env.NODE_ENV !== "production" && function() {
390
- var e = x, t = Symbol.for("react.element"), n = Symbol.for("react.portal"), r = Symbol.for("react.fragment"), s = Symbol.for("react.strict_mode"), i = Symbol.for("react.profiler"), c = Symbol.for("react.provider"), l = Symbol.for("react.context"), _ = Symbol.for("react.forward_ref"), d = Symbol.for("react.suspense"), u = Symbol.for("react.suspense_list"), m = Symbol.for("react.memo"), h = Symbol.for("react.lazy"), g = Symbol.for("react.offscreen"), v = Symbol.iterator, C = "@@iterator";
399
+ var e = h, t = Symbol.for("react.element"), n = Symbol.for("react.portal"), r = Symbol.for("react.fragment"), s = Symbol.for("react.strict_mode"), i = Symbol.for("react.profiler"), c = Symbol.for("react.provider"), l = Symbol.for("react.context"), _ = Symbol.for("react.forward_ref"), d = Symbol.for("react.suspense"), u = Symbol.for("react.suspense_list"), m = Symbol.for("react.memo"), x = Symbol.for("react.lazy"), g = Symbol.for("react.offscreen"), v = Symbol.iterator, C = "@@iterator";
391
400
  function w(o) {
392
401
  if (o === null || typeof o != "object")
393
402
  return null;
394
403
  var f = v && o[v] || o[C];
395
404
  return typeof f == "function" ? f : null;
396
405
  }
397
- var k = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
406
+ var y = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
398
407
  function b(o) {
399
408
  {
400
409
  for (var f = arguments.length, p = new Array(f > 1 ? f - 1 : 0), S = 1; S < f; S++)
@@ -404,7 +413,7 @@ function vr() {
404
413
  }
405
414
  function R(o, f, p) {
406
415
  {
407
- var S = k.ReactDebugCurrentFrame, M = S.getStackAddendum();
416
+ var S = y.ReactDebugCurrentFrame, M = S.getStackAddendum();
408
417
  M !== "" && (f += "%s", p = p.concat([M]));
409
418
  var L = p.map(function(I) {
410
419
  return String(I);
@@ -412,10 +421,10 @@ function vr() {
412
421
  L.unshift("Warning: " + f), Function.prototype.apply.call(console[o], console, L);
413
422
  }
414
423
  }
415
- var N = !1, j = !1, F = !1, $ = !1, P = !1, H;
424
+ var N = !1, k = !1, F = !1, $ = !1, P = !1, H;
416
425
  H = Symbol.for("react.module.reference");
417
426
  function V(o) {
418
- return !!(typeof o == "string" || typeof o == "function" || o === r || o === i || P || o === s || o === d || o === u || $ || o === g || N || j || F || typeof o == "object" && o !== null && (o.$$typeof === h || o.$$typeof === m || o.$$typeof === c || o.$$typeof === l || o.$$typeof === _ || // This needs to include all possible module reference object
427
+ return !!(typeof o == "string" || typeof o == "function" || o === r || o === i || P || o === s || o === d || o === u || $ || o === g || N || k || F || typeof o == "object" && o !== null && (o.$$typeof === x || o.$$typeof === m || o.$$typeof === c || o.$$typeof === l || o.$$typeof === _ || // This needs to include all possible module reference object
419
428
  // types supported by any Flight configuration anywhere since
420
429
  // we don't know which Flight build this will end up being used
421
430
  // with.
@@ -465,7 +474,7 @@ function vr() {
465
474
  case m:
466
475
  var S = o.displayName || null;
467
476
  return S !== null ? S : K(o.type) || "Memo";
468
- case h: {
477
+ case x: {
469
478
  var M = o, L = M._payload, I = M._init;
470
479
  try {
471
480
  return K(I(L));
@@ -476,14 +485,14 @@ function vr() {
476
485
  }
477
486
  return null;
478
487
  }
479
- var le = Object.assign, q = 0, Ee, Je, Ze, Lt, $t, Pt, Bt;
488
+ var le = Object.assign, q = 0, Ee, Xe, Ze, Lt, $t, Pt, Bt;
480
489
  function Ot() {
481
490
  }
482
491
  Ot.__reactDisabledLog = !0;
483
492
  function Yn() {
484
493
  {
485
494
  if (q === 0) {
486
- Ee = console.log, Je = console.info, Ze = console.warn, Lt = console.error, $t = console.group, Pt = console.groupCollapsed, Bt = console.groupEnd;
495
+ Ee = console.log, Xe = console.info, Ze = console.warn, Lt = console.error, $t = console.group, Pt = console.groupCollapsed, Bt = console.groupEnd;
487
496
  var o = {
488
497
  configurable: !0,
489
498
  enumerable: !0,
@@ -516,7 +525,7 @@ function vr() {
516
525
  value: Ee
517
526
  }),
518
527
  info: le({}, o, {
519
- value: Je
528
+ value: Xe
520
529
  }),
521
530
  warn: le({}, o, {
522
531
  value: Ze
@@ -538,27 +547,27 @@ function vr() {
538
547
  q < 0 && b("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
539
548
  }
540
549
  }
541
- var Xe = k.ReactCurrentDispatcher, Qe;
550
+ var Qe = y.ReactCurrentDispatcher, et;
542
551
  function ze(o, f, p) {
543
552
  {
544
- if (Qe === void 0)
553
+ if (et === void 0)
545
554
  try {
546
555
  throw Error();
547
556
  } catch (M) {
548
557
  var S = M.stack.trim().match(/\n( *(at )?)/);
549
- Qe = S && S[1] || "";
558
+ et = S && S[1] || "";
550
559
  }
551
560
  return `
552
- ` + Qe + o;
561
+ ` + et + o;
553
562
  }
554
563
  }
555
- var et = !1, Ge;
564
+ var tt = !1, Ge;
556
565
  {
557
566
  var qn = typeof WeakMap == "function" ? WeakMap : Map;
558
567
  Ge = new qn();
559
568
  }
560
569
  function At(o, f) {
561
- if (!o || et)
570
+ if (!o || tt)
562
571
  return "";
563
572
  {
564
573
  var p = Ge.get(o);
@@ -566,11 +575,11 @@ function vr() {
566
575
  return p;
567
576
  }
568
577
  var S;
569
- et = !0;
578
+ tt = !0;
570
579
  var M = Error.prepareStackTrace;
571
580
  Error.prepareStackTrace = void 0;
572
581
  var L;
573
- L = Xe.current, Xe.current = null, Yn();
582
+ L = Qe.current, Qe.current = null, Yn();
574
583
  try {
575
584
  if (f) {
576
585
  var I = function() {
@@ -623,9 +632,9 @@ function vr() {
623
632
  }
624
633
  }
625
634
  } finally {
626
- et = !1, Xe.current = L, Hn(), Error.prepareStackTrace = M;
635
+ tt = !1, Qe.current = L, Hn(), Error.prepareStackTrace = M;
627
636
  }
628
- var Ce = o ? o.displayName || o.name : "", fe = Ce ? ze(Ce) : "";
637
+ var ke = o ? o.displayName || o.name : "", fe = ke ? ze(ke) : "";
629
638
  return typeof o == "function" && Ge.set(o, fe), fe;
630
639
  }
631
640
  function Jn(o, f, p) {
@@ -654,7 +663,7 @@ function vr() {
654
663
  return Jn(o.render);
655
664
  case m:
656
665
  return Ke(o.type, f, p);
657
- case h: {
666
+ case x: {
658
667
  var S = o, M = S._payload, L = S._init;
659
668
  try {
660
669
  return Ke(L(M), f, p);
@@ -664,7 +673,7 @@ function vr() {
664
673
  }
665
674
  return "";
666
675
  }
667
- var Re = Object.prototype.hasOwnProperty, Zt = {}, zt = k.ReactDebugCurrentFrame;
676
+ var Re = Object.prototype.hasOwnProperty, Zt = {}, zt = y.ReactDebugCurrentFrame;
668
677
  function We(o) {
669
678
  if (o) {
670
679
  var f = o._owner, p = Ke(o.type, o._source, f ? f.type : null);
@@ -692,7 +701,7 @@ function vr() {
692
701
  }
693
702
  }
694
703
  var ea = Array.isArray;
695
- function tt(o) {
704
+ function nt(o) {
696
705
  return ea(o);
697
706
  }
698
707
  function ta(o) {
@@ -715,13 +724,13 @@ function vr() {
715
724
  if (na(o))
716
725
  return b("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", ta(o)), Gt(o);
717
726
  }
718
- var Ne = k.ReactCurrentOwner, aa = {
727
+ var Ne = y.ReactCurrentOwner, aa = {
719
728
  key: !0,
720
729
  ref: !0,
721
730
  __self: !0,
722
731
  __source: !0
723
- }, Wt, Vt, nt;
724
- nt = {};
732
+ }, Wt, Vt, at;
733
+ at = {};
725
734
  function ra(o) {
726
735
  if (Re.call(o, "ref")) {
727
736
  var f = Object.getOwnPropertyDescriptor(o, "ref").get;
@@ -741,7 +750,7 @@ function vr() {
741
750
  function ia(o, f) {
742
751
  if (typeof o.ref == "string" && Ne.current && f && Ne.current.stateNode !== f) {
743
752
  var p = K(Ne.current.type);
744
- nt[p] || (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', K(Ne.current.type), o.ref), nt[p] = !0);
753
+ at[p] || (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', K(Ne.current.type), o.ref), at[p] = !0);
745
754
  }
746
755
  }
747
756
  function oa(o, f) {
@@ -813,23 +822,23 @@ function vr() {
813
822
  return ca(o, T, Y, M, S, Ne.current, I);
814
823
  }
815
824
  }
816
- var at = k.ReactCurrentOwner, Ut = k.ReactDebugCurrentFrame;
817
- function pe(o) {
825
+ var rt = y.ReactCurrentOwner, Ut = y.ReactDebugCurrentFrame;
826
+ function Ce(o) {
818
827
  if (o) {
819
828
  var f = o._owner, p = Ke(o.type, o._source, f ? f.type : null);
820
829
  Ut.setExtraStackFrame(p);
821
830
  } else
822
831
  Ut.setExtraStackFrame(null);
823
832
  }
824
- var rt;
825
- rt = !1;
826
- function st(o) {
833
+ var st;
834
+ st = !1;
835
+ function it(o) {
827
836
  return typeof o == "object" && o !== null && o.$$typeof === t;
828
837
  }
829
838
  function Yt() {
830
839
  {
831
- if (at.current) {
832
- var o = K(at.current.type);
840
+ if (rt.current) {
841
+ var o = K(rt.current.type);
833
842
  if (o)
834
843
  return `
835
844
 
@@ -864,25 +873,25 @@ Check the top-level render call using <` + p + ">.");
864
873
  return;
865
874
  Ht[p] = !0;
866
875
  var S = "";
867
- o && o._owner && o._owner !== at.current && (S = " It was passed a child from " + K(o._owner.type) + "."), pe(o), b('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', p, S), pe(null);
876
+ o && o._owner && o._owner !== rt.current && (S = " It was passed a child from " + K(o._owner.type) + "."), Ce(o), b('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', p, S), Ce(null);
868
877
  }
869
878
  }
870
879
  function Jt(o, f) {
871
880
  {
872
881
  if (typeof o != "object")
873
882
  return;
874
- if (tt(o))
883
+ if (nt(o))
875
884
  for (var p = 0; p < o.length; p++) {
876
885
  var S = o[p];
877
- st(S) && qt(S, f);
886
+ it(S) && qt(S, f);
878
887
  }
879
- else if (st(o))
888
+ else if (it(o))
880
889
  o._store && (o._store.validated = !0);
881
890
  else if (o) {
882
891
  var M = w(o);
883
892
  if (typeof M == "function" && M !== o.entries)
884
893
  for (var L = M.call(o), I; !(I = L.next()).done; )
885
- st(I.value) && qt(I.value, f);
894
+ it(I.value) && qt(I.value, f);
886
895
  }
887
896
  }
888
897
  }
@@ -903,8 +912,8 @@ Check the top-level render call using <` + p + ">.");
903
912
  if (p) {
904
913
  var S = K(f);
905
914
  Qn(p, o.props, "prop", S, o);
906
- } else if (f.PropTypes !== void 0 && !rt) {
907
- rt = !0;
915
+ } else if (f.PropTypes !== void 0 && !st) {
916
+ st = !0;
908
917
  var M = K(f);
909
918
  b("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", M || "Unknown");
910
919
  }
@@ -916,11 +925,11 @@ Check the top-level render call using <` + p + ">.");
916
925
  for (var f = Object.keys(o.props), p = 0; p < f.length; p++) {
917
926
  var S = f[p];
918
927
  if (S !== "children" && S !== "key") {
919
- pe(o), b("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", S), pe(null);
928
+ Ce(o), b("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", S), Ce(null);
920
929
  break;
921
930
  }
922
931
  }
923
- o.ref !== null && (pe(o), b("Invalid attribute `ref` supplied to `React.Fragment`."), pe(null));
932
+ o.ref !== null && (Ce(o), b("Invalid attribute `ref` supplied to `React.Fragment`."), Ce(null));
924
933
  }
925
934
  }
926
935
  var Xt = {};
@@ -933,7 +942,7 @@ Check the top-level render call using <` + p + ">.");
933
942
  var Y = _a();
934
943
  Y ? T += Y : T += Yt();
935
944
  var Z;
936
- o === null ? Z = "null" : tt(o) ? Z = "array" : o !== void 0 && o.$$typeof === t ? (Z = "<" + (K(o.type) || "Unknown") + " />", T = " Did you accidentally export a JSX literal instead of a component?") : Z = typeof o, b("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", Z, T);
945
+ o === null ? Z = "null" : nt(o) ? Z = "array" : o !== void 0 && o.$$typeof === t ? (Z = "<" + (K(o.type) || "Unknown") + " />", T = " Did you accidentally export a JSX literal instead of a component?") : Z = typeof o, b("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", Z, T);
937
946
  }
938
947
  var W = da(o, f, p, M, L);
939
948
  if (W == null)
@@ -942,9 +951,9 @@ Check the top-level render call using <` + p + ">.");
942
951
  var te = f.children;
943
952
  if (te !== void 0)
944
953
  if (S)
945
- if (tt(te)) {
946
- for (var Ce = 0; Ce < te.length; Ce++)
947
- Jt(te[Ce], o);
954
+ if (nt(te)) {
955
+ for (var ke = 0; ke < te.length; ke++)
956
+ Jt(te[ke], o);
948
957
  Object.freeze && Object.freeze(te);
949
958
  } else
950
959
  b("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
@@ -954,15 +963,15 @@ Check the top-level render call using <` + p + ">.");
954
963
  if (Re.call(f, "key")) {
955
964
  var fe = K(o), J = Object.keys(f).filter(function(Ca) {
956
965
  return Ca !== "key";
957
- }), it = J.length > 0 ? "{key: someKey, " + J.join(": ..., ") + ": ...}" : "{key: someKey}";
958
- if (!Xt[fe + it]) {
966
+ }), ot = J.length > 0 ? "{key: someKey, " + J.join(": ..., ") + ": ...}" : "{key: someKey}";
967
+ if (!Xt[fe + ot]) {
959
968
  var pa = J.length > 0 ? "{" + J.join(": ..., ") + ": ...}" : "{}";
960
969
  b(`A props object containing a "key" prop is being spread into JSX:
961
970
  let props = %s;
962
971
  <%s {...props} />
963
972
  React keys must be passed directly to JSX without using spread:
964
973
  let props = %s;
965
- <%s key={someKey} {...props} />`, it, fe, pa, fe), Xt[fe + it] = !0;
974
+ <%s key={someKey} {...props} />`, ot, fe, pa, fe), Xt[fe + ot] = !0;
966
975
  }
967
976
  }
968
977
  return o === r ? fa(W) : ma(W), W;
@@ -978,29 +987,29 @@ React keys must be passed directly to JSX without using spread:
978
987
  Ie.Fragment = r, Ie.jsx = ga, Ie.jsxs = va;
979
988
  }()), Ie;
980
989
  }
981
- process.env.NODE_ENV === "production" ? ut.exports = gr() : ut.exports = vr();
982
- var a = ut.exports;
983
- const pr = "_notice_820sc_2", Cr = "_error_820sc_9", kr = "_success_820sc_12", yr = "_remark_820sc_15", jr = "_copy_820sc_18", br = {
984
- notice: pr,
985
- error: Cr,
986
- success: kr,
987
- remark: yr,
988
- copy: jr,
990
+ process.env.NODE_ENV === "production" ? mt.exports = vr() : mt.exports = pr();
991
+ var a = mt.exports;
992
+ const Cr = "_notice_820sc_2", kr = "_error_820sc_9", yr = "_success_820sc_12", jr = "_remark_820sc_15", br = "_copy_820sc_18", wr = {
993
+ notice: Cr,
994
+ error: kr,
995
+ success: yr,
996
+ remark: jr,
997
+ copy: br,
989
998
  "show-notice": "_show-notice_820sc_1",
990
999
  "hide-notice": "_hide-notice_820sc_1"
991
1000
  };
992
1001
  let ue = {};
993
- function wr() {
994
- let [e, t] = x.useState([]);
1002
+ function Sr() {
1003
+ let [e, t] = h.useState([]);
995
1004
  return ue.set = (n) => {
996
1005
  t([...e, n]);
997
1006
  }, ue.del = (n) => {
998
1007
  t(e.filter((r) => r.key !== n));
999
- }, e.length === 0 ? "" : /* @__PURE__ */ a.jsx("ul", { className: br.notice, children: e.map((n) => n.item) });
1008
+ }, e.length === 0 ? "" : /* @__PURE__ */ a.jsx("ul", { className: wr.notice, children: e.map((n) => n.item) });
1000
1009
  }
1001
1010
  function Oe({ data: e }) {
1002
- let [t, n] = x.useState("show");
1003
- x.useEffect(() => {
1011
+ let [t, n] = h.useState("show");
1012
+ h.useEffect(() => {
1004
1013
  setTimeout(function() {
1005
1014
  n("hide");
1006
1015
  }, 1800), setTimeout(function() {
@@ -1031,23 +1040,23 @@ function Oe({ data: e }) {
1031
1040
  /* @__PURE__ */ a.jsx("p", { children: e.text })
1032
1041
  ] });
1033
1042
  }
1034
- function Sr(e) {
1043
+ function Er(e) {
1035
1044
  let t = Date.now(), n = { key: t, ...e };
1036
1045
  ue.set({ item: /* @__PURE__ */ a.jsx(Oe, { data: n }, t), key: t });
1037
1046
  }
1038
- function Er(e) {
1047
+ function Rr(e) {
1039
1048
  let t = Date.now(), n = { key: t, text: e, type: "error" };
1040
1049
  ue.set({ item: /* @__PURE__ */ a.jsx(Oe, { data: n }, t), key: t });
1041
1050
  }
1042
- function Rr(e) {
1051
+ function Nr(e) {
1043
1052
  let t = Date.now(), n = { key: t, text: e, type: "success" };
1044
1053
  ue.set({ item: /* @__PURE__ */ a.jsx(Oe, { data: n }, t), key: t });
1045
1054
  }
1046
- function Nr(e) {
1055
+ function Tr(e) {
1047
1056
  let t = Date.now(), n = { key: t, text: e, type: "remark" };
1048
1057
  ue.set({ item: /* @__PURE__ */ a.jsx(Oe, { data: n }, t), key: t });
1049
1058
  }
1050
- function Tr(e) {
1059
+ function Ir(e) {
1051
1060
  let t = Date.now(), n = { key: t, text: e, type: "copy" };
1052
1061
  ue.set({ item: /* @__PURE__ */ a.jsx(Oe, { data: n }, t), key: t });
1053
1062
  }
@@ -1084,21 +1093,21 @@ xe.success = () => /* @__PURE__ */ a.jsxs("svg", { viewBox: "0 0 24 24", fill: "
1084
1093
  }
1085
1094
  )
1086
1095
  ] });
1087
- const Ir = "_alerts_1pds5_1", Dr = "_menuAnimation_1pds5_1", Mr = "_menuItemAnimation_1pds5_1", Fr = "_allert_1pds5_111", Lr = "_al_1pds5_1", mt = {
1088
- alerts: Ir,
1089
- menuAnimation: Dr,
1090
- menuItemAnimation: Mr,
1096
+ const Dr = "_alerts_1pds5_1", Mr = "_menuAnimation_1pds5_1", Fr = "_menuItemAnimation_1pds5_1", Lr = "_allert_1pds5_111", $r = "_al_1pds5_1", ft = {
1097
+ alerts: Dr,
1098
+ menuAnimation: Mr,
1099
+ menuItemAnimation: Fr,
1091
1100
  "--body": "_--body_1pds5_103",
1092
- allert: Fr,
1101
+ allert: Lr,
1093
1102
  "--form": "_--form_1pds5_111",
1094
- al: Lr
1103
+ al: $r
1095
1104
  };
1096
1105
  let Fe = {};
1097
- function $r() {
1098
- let [e, t] = x.useState("");
1106
+ function Pr() {
1107
+ let [e, t] = h.useState("");
1099
1108
  return Fe.set = (n) => t(n), Fe.del = () => t(""), /* @__PURE__ */ a.jsx(a.Fragment, { children: e });
1100
1109
  }
1101
- const Pr = ({ data: e, callback: t }) => (e.button = e.button === void 0 ? "Подтвердить" : e.button, /* @__PURE__ */ a.jsxs("div", { className: mt.alerts, children: [
1110
+ const Br = ({ data: e, callback: t }) => (e.button = e.button === void 0 ? "Подтвердить" : e.button, /* @__PURE__ */ a.jsxs("div", { className: ft.alerts, children: [
1102
1111
  /* @__PURE__ */ a.jsxs("dl", { children: [
1103
1112
  /* @__PURE__ */ a.jsx("dt", { children: e.title }),
1104
1113
  /* @__PURE__ */ a.jsx("dd", { children: e.text }),
@@ -1113,12 +1122,12 @@ const Pr = ({ data: e, callback: t }) => (e.button = e.button === void 0 ? "По
1113
1122
  }
1114
1123
  ) })
1115
1124
  ] }),
1116
- /* @__PURE__ */ a.jsx("div", { className: mt["--body"], onClick: Fe.del })
1125
+ /* @__PURE__ */ a.jsx("div", { className: ft["--body"], onClick: Fe.del })
1117
1126
  ] }));
1118
- function Br(e, t) {
1119
- Fe.set(/* @__PURE__ */ a.jsx(Pr, { data: e, callback: t }));
1127
+ function Or(e, t) {
1128
+ Fe.set(/* @__PURE__ */ a.jsx(Br, { data: e, callback: t }));
1120
1129
  }
1121
- const Le = { Send: Sr, Error: Er, Remark: Nr, Success: Rr, Copy: Tr }, Ue = {
1130
+ const Le = { Send: Er, Error: Rr, Remark: Tr, Success: Nr, Copy: Ir }, Ue = {
1122
1131
  Path: Va,
1123
1132
  setPage: Pa,
1124
1133
  getPage: fn,
@@ -1134,7 +1143,7 @@ const Le = { Send: Sr, Error: Er, Remark: Nr, Success: Rr, Copy: Tr }, Ue = {
1134
1143
  subId: Ga,
1135
1144
  getId: Wa
1136
1145
  };
1137
- function Or() {
1146
+ function Ar() {
1138
1147
  return /* @__PURE__ */ a.jsxs("svg", { viewBox: "0 0 24 24", fill: "none", children: [
1139
1148
  /* @__PURE__ */ a.jsx(
1140
1149
  "path",
@@ -1169,7 +1178,7 @@ function Or() {
1169
1178
  )
1170
1179
  ] });
1171
1180
  }
1172
- function Ar() {
1181
+ function Zr() {
1173
1182
  return /* @__PURE__ */ a.jsxs("svg", { viewBox: "0 0 24 24", fill: "none", children: [
1174
1183
  /* @__PURE__ */ a.jsx(
1175
1184
  "path",
@@ -1198,7 +1207,7 @@ function Ar() {
1198
1207
  )
1199
1208
  ] });
1200
1209
  }
1201
- function Zr() {
1210
+ function zr() {
1202
1211
  return /* @__PURE__ */ a.jsx("svg", { viewBox: "0 0 24 24", fill: "none", children: /* @__PURE__ */ a.jsx(
1203
1212
  "path",
1204
1213
  {
@@ -1211,11 +1220,11 @@ function Zr() {
1211
1220
  }
1212
1221
  ) });
1213
1222
  }
1214
- const zr = "_n_euuvm_1", Gr = {
1215
- n: zr
1223
+ const Gr = "_n_euuvm_1", Kr = {
1224
+ n: Gr
1216
1225
  };
1217
1226
  let Ae = {}, De = [];
1218
- const Kr = (e, t) => {
1227
+ const Wr = (e, t) => {
1219
1228
  switch (t.type) {
1220
1229
  case "open":
1221
1230
  return {
@@ -1267,33 +1276,33 @@ const Kr = (e, t) => {
1267
1276
  throw new Error();
1268
1277
  }
1269
1278
  };
1270
- function Wr(e) {
1271
- Ae.fn({ action: "add", data: e });
1272
- }
1273
1279
  function Vr(e) {
1274
1280
  Ae.fn({ action: "add", data: e });
1275
1281
  }
1276
1282
  function Ur(e) {
1277
- Ae.fn({ action: "new", data: e });
1283
+ Ae.fn({ action: "add", data: e });
1278
1284
  }
1279
1285
  function Yr(e) {
1286
+ Ae.fn({ action: "new", data: e });
1287
+ }
1288
+ function Hr(e) {
1280
1289
  Ae.fn = e;
1281
1290
  }
1282
- function Hr() {
1283
- const [e, t] = x.useReducer(Kr, {
1291
+ function qr() {
1292
+ const [e, t] = h.useReducer(Wr, {
1284
1293
  open: !1,
1285
1294
  active: !1,
1286
1295
  news: [],
1287
1296
  take: {}
1288
1297
  });
1289
1298
  ce.useListener("bell", async (r) => {
1290
- }), Yr(async (r) => {
1299
+ }), Hr(async (r) => {
1291
1300
  switch (r.action) {
1292
1301
  case "add":
1293
1302
  De.push(r.data);
1294
1303
  break;
1295
1304
  }
1296
- }), x.useEffect(() => {
1305
+ }), h.useEffect(() => {
1297
1306
  (async () => {
1298
1307
  let r = await ce.Send({
1299
1308
  type: "module",
@@ -1351,11 +1360,11 @@ function Hr() {
1351
1360
  /* @__PURE__ */ a.jsx(
1352
1361
  "div",
1353
1362
  {
1354
- className: Gr.n,
1363
+ className: Kr.n,
1355
1364
  onClick: () => {
1356
1365
  t({ type: "open", open: !0 });
1357
1366
  },
1358
- children: e.active ? /* @__PURE__ */ a.jsx(Ar, {}) : /* @__PURE__ */ a.jsx(Or, {})
1367
+ children: e.active ? /* @__PURE__ */ a.jsx(Zr, {}) : /* @__PURE__ */ a.jsx(Ar, {})
1359
1368
  }
1360
1369
  ),
1361
1370
  e.open ? /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
@@ -1370,7 +1379,7 @@ function Hr() {
1370
1379
  ),
1371
1380
  /* @__PURE__ */ a.jsxs("div", { className: "notify-m", children: [
1372
1381
  /* @__PURE__ */ a.jsx("div", { className: "notify-l", children: e.news.map((r, s) => /* @__PURE__ */ a.jsx(
1373
- qr,
1382
+ Jr,
1374
1383
  {
1375
1384
  data: r,
1376
1385
  dispatch: t
@@ -1382,7 +1391,7 @@ function Hr() {
1382
1391
  ] }) : ""
1383
1392
  ] });
1384
1393
  }
1385
- const qr = ({ data: e, dispatch: t }) => {
1394
+ const Jr = ({ data: e, dispatch: t }) => {
1386
1395
  let n = async (r) => {
1387
1396
  t({ type: "hide", id: r.id }), await ce.Send({
1388
1397
  type: "module",
@@ -1399,16 +1408,16 @@ const qr = ({ data: e, dispatch: t }) => {
1399
1408
  ] }),
1400
1409
  /* @__PURE__ */ a.jsx("div", { className: "--hide", "data-icon": "F038", onClick: () => n(e), children: " " })
1401
1410
  ] });
1402
- }, Jr = "KGZ1bmN0aW9uKCl7InVzZSBzdHJpY3QiO2xldCBhPVtdLHM9bnVsbDtvbmNvbm5lY3Q9ZnVuY3Rpb24obCl7dmFyIHQ9bC5zb3VyY2U7YS5wdXNoKHQpO2NvbnN0IG49ZT0+e3MhPT1udWxsJiZzLnJlYWR5U3RhdGU9PT0xP3Muc2VuZChKU09OLnN0cmluZ2lmeShlKSk6dC5wb3N0TWVzc2FnZSh7dHlwZToibm9TZW5kIn0pfTtsZXQgcj1lPT57aWYocyE9PW51bGwmJnMucmVhZHlTdGF0ZT09PTEpcmV0dXJuIHQucG9zdE1lc3NhZ2Uoe3R5cGU6InRydWUifSk7ZS5say5hZGRyZXNzPT09ImxvY2FsaG9zdCI/cz1uZXcgV2ViU29ja2V0KGB3czovL2xvY2FsaG9zdDoke2UubGsuc29ja2V0KzF9YCk6cz1uZXcgV2ViU29ja2V0KCJ3c3M6Ly8iK2UubGsuYWRkcmVzcysiOiIrKGUubGsuc29ja2V0KzEpKSxzLm9uZXJyb3I9KCk9PnQucG9zdE1lc3NhZ2Uoe3R5cGU6ImVycm9yIn0pLHMub25vcGVuPSgpPT57bih7dHlwZToiY29ubmVjdCIsdWtleTplLnVrZXl9KX0scy5vbm1lc3NhZ2U9bz0+e2xldCBjPUpTT04ucGFyc2Uoby5kYXRhKTthLmZvckVhY2goZD0+e2QucG9zdE1lc3NhZ2UoYyl9KX0scy5vbmNsb3NlPSgpPT50LnBvc3RNZXNzYWdlKHt0eXBlOiJjbG9zZWQifSl9O3Qub25tZXNzYWdlPWZ1bmN0aW9uKGUpe3N3aXRjaChlLmRhdGEudHlwZSl7Y2FzZSJsZW5ndGgiOnJldHVybiB0LnBvc3RNZXNzYWdlKGEubGVuZ3RoKTtjYXNlImFsbCI6cmV0dXJuIGEuZm9yRWFjaChvPT5vLnBvc3RNZXNzYWdlKHthbGw6YS5sZW5ndGh9KSk7Y2FzZSJzZW5kIjpyZXR1cm4gbihlLmRhdGEuanNvbik7Y2FzZSJjb25uZWN0IjpyZXR1cm4gcihlLmRhdGEpO2RlZmF1bHQ6dC5wb3N0TWVzc2FnZSh7dHlwZToiZGVmYXVsdCIsZGF0YTplLmRhdGEuanNvbn0pfX19fSkoKTsK";
1403
- function Xr(e) {
1411
+ }, Xr = "KGZ1bmN0aW9uKCl7InVzZSBzdHJpY3QiO2xldCBhPVtdLHM9bnVsbDtvbmNvbm5lY3Q9ZnVuY3Rpb24obCl7dmFyIHQ9bC5zb3VyY2U7YS5wdXNoKHQpO2NvbnN0IG49ZT0+e3MhPT1udWxsJiZzLnJlYWR5U3RhdGU9PT0xP3Muc2VuZChKU09OLnN0cmluZ2lmeShlKSk6dC5wb3N0TWVzc2FnZSh7dHlwZToibm9TZW5kIn0pfTtsZXQgcj1lPT57aWYocyE9PW51bGwmJnMucmVhZHlTdGF0ZT09PTEpcmV0dXJuIHQucG9zdE1lc3NhZ2Uoe3R5cGU6InRydWUifSk7ZS5say5hZGRyZXNzPT09ImxvY2FsaG9zdCI/cz1uZXcgV2ViU29ja2V0KGB3czovL2xvY2FsaG9zdDoke2UubGsuc29ja2V0KzF9YCk6cz1uZXcgV2ViU29ja2V0KCJ3c3M6Ly8iK2UubGsuYWRkcmVzcysiOiIrKGUubGsuc29ja2V0KzEpKSxzLm9uZXJyb3I9KCk9PnQucG9zdE1lc3NhZ2Uoe3R5cGU6ImVycm9yIn0pLHMub25vcGVuPSgpPT57bih7dHlwZToiY29ubmVjdCIsdWtleTplLnVrZXl9KX0scy5vbm1lc3NhZ2U9bz0+e2xldCBjPUpTT04ucGFyc2Uoby5kYXRhKTthLmZvckVhY2goZD0+e2QucG9zdE1lc3NhZ2UoYyl9KX0scy5vbmNsb3NlPSgpPT50LnBvc3RNZXNzYWdlKHt0eXBlOiJjbG9zZWQifSl9O3Qub25tZXNzYWdlPWZ1bmN0aW9uKGUpe3N3aXRjaChlLmRhdGEudHlwZSl7Y2FzZSJsZW5ndGgiOnJldHVybiB0LnBvc3RNZXNzYWdlKGEubGVuZ3RoKTtjYXNlImFsbCI6cmV0dXJuIGEuZm9yRWFjaChvPT5vLnBvc3RNZXNzYWdlKHthbGw6YS5sZW5ndGh9KSk7Y2FzZSJzZW5kIjpyZXR1cm4gbihlLmRhdGEuanNvbik7Y2FzZSJjb25uZWN0IjpyZXR1cm4gcihlLmRhdGEpO2RlZmF1bHQ6dC5wb3N0TWVzc2FnZSh7dHlwZToiZGVmYXVsdCIsZGF0YTplLmRhdGEuanNvbn0pfX19fSkoKTsK";
1412
+ function Qr(e) {
1404
1413
  return new SharedWorker(
1405
- "data:text/javascript;base64," + Jr,
1414
+ "data:text/javascript;base64," + Xr,
1406
1415
  {
1407
1416
  name: e == null ? void 0 : e.name
1408
1417
  }
1409
1418
  );
1410
1419
  }
1411
- function Qr(e) {
1420
+ function es(e) {
1412
1421
  let t = {}, n = {};
1413
1422
  e.data.forEach((s) => {
1414
1423
  t[s.id] = { s: s.v, n: s.a }, n[s.id] = s;
@@ -1416,7 +1425,7 @@ function Qr(e) {
1416
1425
  let r = { ...Be(), 901: t };
1417
1426
  vn(n), Pe(r);
1418
1427
  }
1419
- function es() {
1428
+ function ts() {
1420
1429
  let e = pn(), t = {};
1421
1430
  return Object.keys(e).forEach((n) => {
1422
1431
  t[e[n].id] = {}, t[e[n].id].name = e[n].a;
@@ -1432,10 +1441,10 @@ let ie = {}, U = {}, Ve = [
1432
1441
  "info",
1433
1442
  "job"
1434
1443
  ];
1435
- function ts() {
1436
- const [e, t] = x.useState(!1), [n, r] = x.useState(!1);
1444
+ function ns() {
1445
+ const [e, t] = h.useState(!1), [n, r] = h.useState(!1);
1437
1446
  function s(i) {
1438
- const c = new Xr();
1447
+ const c = new Qr();
1439
1448
  ie.laodData = (l) => {
1440
1449
  let _ = Ve.indexOf(l);
1441
1450
  _ >= 0 && Ve.splice(_, 1), Ve.length === 0 && t(!0);
@@ -1446,12 +1455,12 @@ function ts() {
1446
1455
  _.type === "error" && r(!0), _.type === "true" && t(!0), _.type === "closed" && c.port.postMessage({
1447
1456
  type: "connect",
1448
1457
  ukey: i,
1449
- lk: dt()
1458
+ lk: _t()
1450
1459
  }), Ve.length !== 0 && ie.laodData(_.type), U[_.type] && U[_.type](_);
1451
1460
  }, c.port.postMessage({
1452
1461
  type: "connect",
1453
1462
  ukey: i,
1454
- lk: dt()
1463
+ lk: _t()
1455
1464
  });
1456
1465
  }
1457
1466
  return [s, e, n];
@@ -1459,14 +1468,14 @@ function ts() {
1459
1468
  U.module = (e) => {
1460
1469
  ie[e.listen] !== void 0 && (ie[e.listen](e), delete ie[e.listen]);
1461
1470
  };
1462
- U.bell = Ur;
1463
- U.company = Qr;
1471
+ U.bell = Yr;
1472
+ U.company = es;
1464
1473
  U.info = (e) => {
1465
1474
  let t = {};
1466
1475
  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"), Cn(t), xn(e.data.menu);
1467
1476
  };
1468
1477
  U.version = async (e) => {
1469
- jt.version.Server(e.data);
1478
+ bt.version.Server(e.data);
1470
1479
  };
1471
1480
  U.online = async (e) => {
1472
1481
  };
@@ -1531,12 +1540,12 @@ U.setting = (e) => {
1531
1540
  };
1532
1541
  U.app = () => {
1533
1542
  };
1534
- const ns = (e, t) => {
1543
+ const as = (e, t) => {
1535
1544
  ie[e] = t;
1536
- }, as = (e, t) => {
1545
+ }, rs = (e, t) => {
1537
1546
  ie[e](t);
1538
1547
  };
1539
- function rs(e) {
1548
+ function ss(e) {
1540
1549
  let t = "_" + String(Math.random()).substring(2, 7);
1541
1550
  return new Promise((n) => {
1542
1551
  ie[t] = (r) => {
@@ -1544,8 +1553,8 @@ function rs(e) {
1544
1553
  }, e = { ...e, listen: t }, e.type = "modules", ie.send(e);
1545
1554
  });
1546
1555
  }
1547
- const ce = { useConnect: ts, useListener: ns, setListener: as, Send: rs };
1548
- function ss(e, t) {
1556
+ const ce = { useConnect: ns, useListener: as, setListener: rs, Send: ss };
1557
+ function is(e, t) {
1549
1558
  t === void 0 ? (t = e, e = /* @__PURE__ */ new Date()) : e = new Date(e);
1550
1559
  let n = {
1551
1560
  yyyy: e.getFullYear(),
@@ -1562,21 +1571,21 @@ function ss(e, t) {
1562
1571
  t = t.replace(r, n[r]);
1563
1572
  return t;
1564
1573
  }
1565
- function is(e) {
1574
+ function os(e) {
1566
1575
  let t = ["Января", "Февраля", "Марта", "Апреля", "Мая", "Июня", "Июля", "Августа", "Сентября", "Октября", "Ноября", "Декабря"], n = new Date(e);
1567
1576
  return { day: ("" + n.getFullYear()).slice(-2) + "" + ("0" + (n.getMonth() + 1)).slice(-2) + ("0" + n.getDate()).slice(-2), name: n.getDate() + " " + t[n.getMonth()] };
1568
1577
  }
1569
- const os = (e) => {
1578
+ const ls = (e) => {
1570
1579
  function t(R, N) {
1571
- var j, $, F;
1580
+ var k, $, F;
1572
1581
  R = R ?? "", N = N ?? 1;
1573
- for (var j = [], F = 0, $ = R.length; F < $; )
1574
- j.push(R.slice(F, F += N));
1575
- return j;
1582
+ for (var k = [], F = 0, $ = R.length; F < $; )
1583
+ k.push(R.slice(F, F += N));
1584
+ return k;
1576
1585
  }
1577
1586
  function n(R, N) {
1578
- var j = [2, 0, 1, 1, 1, 2];
1579
- return N[R > 4 && R < 20 ? 2 : j[Math.min(R, 5)]];
1587
+ var k = [2, 0, 1, 1, 1, 2];
1588
+ return N[R > 4 && R < 20 ? 2 : k[Math.min(R, 5)]];
1580
1589
  }
1581
1590
  var r = {
1582
1591
  null: "ноль",
@@ -1640,7 +1649,7 @@ const os = (e) => {
1640
1649
  u3: ["тысяча", "тысячи", "тысяч"],
1641
1650
  u2: ["миллион", "миллиона", "миллионов"],
1642
1651
  u1: ["миллиард", "миллиарда", "миллиардов"]
1643
- }, s, i, c, l, w, _, d, C, u, m, h, g;
1652
+ }, s, i, c, l, w, _, d, C, u, m, x, g;
1644
1653
  u = parseFloat(e).toFixed(2).split("."), _ = u[0], l = u[1];
1645
1654
  var v = 12 - _.length;
1646
1655
  if (v < 0)
@@ -1651,31 +1660,31 @@ const os = (e) => {
1651
1660
  var w = [];
1652
1661
  if (_ > 0) {
1653
1662
  m = t(_, 3);
1654
- for (var k = -1; k < m.length; k++)
1655
- if (d = m[k], d > 0 && (h = t(d, 1), s = parseInt(h[0]), i = parseInt(h[1]), c = parseInt(h[2]), w.push(r.a100[s - 1]), g = k + 1 == 3 ? "a2" : "a1", i > 1 ? w.push(
1663
+ for (var y = -1; y < m.length; y++)
1664
+ if (d = m[y], d > 0 && (x = t(d, 1), s = parseInt(x[0]), i = parseInt(x[1]), c = parseInt(x[2]), w.push(r.a100[s - 1]), g = y + 1 == 3 ? "a2" : "a1", i > 1 ? w.push(
1656
1665
  r.a20[i - 2] + (c > 0 ? " " + r[g][c - 1] : "")
1657
1666
  ) : w.push(
1658
1667
  i > 0 ? r.a10[c] : r[g][c - 1]
1659
- ), m.length > k + 1)) {
1660
- var b = r["u" + (k + 1)];
1668
+ ), m.length > y + 1)) {
1669
+ var b = r["u" + (y + 1)];
1661
1670
  w.push(n(d, b));
1662
1671
  }
1663
1672
  } else
1664
1673
  w.push(r.null);
1665
1674
  return w.push(n(_, r.ur)), w.push(l + " " + n(l, r.uc)), w.join(" ").replace(RegExp(" {2,}", "g"), " ").trimLeft();
1666
1675
  };
1667
- function ls(e) {
1676
+ function cs(e) {
1668
1677
  let t = -1, n = [" kB", " MB", " GB", " TB", "PB", "EB", "ZB", "YB"];
1669
1678
  do
1670
1679
  e = e / 1024, t++;
1671
1680
  while (e > 1024);
1672
1681
  return Math.max(e, 0.1).toFixed(1) + n[t];
1673
1682
  }
1674
- function cs(e) {
1683
+ function ds(e) {
1675
1684
  let t = {};
1676
1685
  return t["application/atom+xml"] = "atom", t["application/json"] = "json", t["application/javascript"] = "js", t["application/ogg"] = "ogg", t["application/pdf"] = "pdf", t["application/soap+xml"] = "soap", t["application/font-woff"] = "woff", t["application/xhtml+xml"] = "xml", t["application/xml-dtd"] = "dtd", t["application/xop+xml"] = "xop", t["application/zip"] = "zip", t["application/gzip"] = "gzip", t["application/x-bittorrent"] = "bittorrent", t["application/x-tex"] = "tex", t["application/xml"] = "xml", t["application/msword"] = "doc", t["image/svg+xml"] = "svg", t[e];
1677
1686
  }
1678
- function ds(e, t, n, r) {
1687
+ function _s(e, t, n, r) {
1679
1688
  let s = {
1680
1689
  sexM: "m",
1681
1690
  sexF: "f",
@@ -1799,7 +1808,7 @@ function ds(e, t, n, r) {
1799
1808
  if (d === this.gcaseNom)
1800
1809
  return c;
1801
1810
  if (c.match(/[-]/)) {
1802
- for (var u = c.split("-"), m = 0, h = u.length; m < h; m++)
1811
+ for (var u = c.split("-"), m = 0, x = u.length; m < x; m++)
1803
1812
  u[m] = this.word(u[m], l, _, d);
1804
1813
  return u.join("-");
1805
1814
  }
@@ -1813,9 +1822,9 @@ function ds(e, t, n, r) {
1813
1822
  // выбираем из списка правил первое подходящее и применяем
1814
1823
  pick: function(c, l, _, d, u) {
1815
1824
  let m = c.toLowerCase();
1816
- for (var h = 0, g = d.length; h < g; h++)
1817
- if (this.ruleMatch(m, l, d[h], u))
1818
- return this.applyMod(c, _, d[h]);
1825
+ for (var x = 0, g = d.length; x < g; x++)
1826
+ if (this.ruleMatch(m, l, d[x], u))
1827
+ return this.applyMod(c, _, d[x]);
1819
1828
  return !1;
1820
1829
  },
1821
1830
  // проверяем, подходит ли правило к слову
@@ -1823,10 +1832,10 @@ function ds(e, t, n, r) {
1823
1832
  if (_.sex === this.sexM && l === this.sexF || _.sex === this.sexF && l !== this.sexF)
1824
1833
  return !1;
1825
1834
  for (var u = 0, m = _.test.length; u < m; u++) {
1826
- var h = d ? c : c.substr(
1835
+ var x = d ? c : c.substr(
1827
1836
  Math.max(c.length - _.test[u].length, 0)
1828
1837
  );
1829
- if (h === _.test[u])
1838
+ if (x === _.test[u])
1830
1839
  return !0;
1831
1840
  }
1832
1841
  return !1;
@@ -1855,15 +1864,15 @@ function ds(e, t, n, r) {
1855
1864
  break;
1856
1865
  }
1857
1866
  for (var u = 0, m = d.length; u < m; u++) {
1858
- var h = d.substr(u, 1);
1859
- switch (h) {
1867
+ var x = d.substr(u, 1);
1868
+ switch (x) {
1860
1869
  case ".":
1861
1870
  break;
1862
1871
  case "-":
1863
1872
  c = c.substr(0, c.length - 1);
1864
1873
  break;
1865
1874
  default:
1866
- c += h;
1875
+ c += x;
1867
1876
  }
1868
1877
  }
1869
1878
  return c;
@@ -1891,7 +1900,7 @@ function ds(e, t, n, r) {
1891
1900
  }
1892
1901
  return s.ln = e, s.fn = t || "", s.mn = n || "", s.sex = r || s.getSex(), s;
1893
1902
  }
1894
- function _s(e) {
1903
+ function us(e) {
1895
1904
  let t = e.split(" ");
1896
1905
  switch (t.length) {
1897
1906
  case 2:
@@ -1902,7 +1911,7 @@ function _s(e) {
1902
1911
  return e;
1903
1912
  }
1904
1913
  }
1905
- function us(e) {
1914
+ function ms(e) {
1906
1915
  return {
1907
1916
  1: { val: "01", name: "Январь", names: "Января", abc: "Янв" },
1908
1917
  2: { val: "02", name: "Февраль", names: "Февраля", abc: "Февр" },
@@ -1918,97 +1927,97 @@ function us(e) {
1918
1927
  12: { val: "12", name: "Декабрь", names: "Декабря", abc: "Дек" }
1919
1928
  }[e];
1920
1929
  }
1921
- function ms(e) {
1930
+ function fs(e) {
1922
1931
  return parseFloat(e).toFixed(2).replace(/(\d)(?=(\d{3})+\.)/g, "$1 ");
1923
1932
  }
1924
- function fs(e, t) {
1933
+ function hs(e, t) {
1925
1934
  let n = t + "";
1926
1935
  for (; n.length < e; )
1927
1936
  n = "0" + n;
1928
1937
  return n;
1929
1938
  }
1930
- function hs(e, t, n) {
1939
+ function xs(e, t, n) {
1931
1940
  let r = t / e * n;
1932
1941
  return (typeof r != "number" || r === 1 / 0) && (r = 0), parseFloat(r).toFixed(1);
1933
1942
  }
1934
- function xs(e) {
1943
+ function gs(e) {
1935
1944
  return e.charAt(0).toUpperCase() + e.slice(1);
1936
1945
  }
1937
- function gs(e, t) {
1946
+ function vs(e, t) {
1938
1947
  e = Math.abs(e) % 100;
1939
1948
  let n = e % 10;
1940
1949
  return e > 10 && e < 20 ? t[2] : n > 1 && n < 5 ? t[1] : n === 1 ? t[0] : t[2];
1941
1950
  }
1942
1951
  const G = {
1943
- Date: ss,
1944
- MoneyString: os,
1945
- DateSort: is,
1946
- Size: ls,
1947
- TypeFiles: cs,
1948
- Cases: ds,
1949
- Initials: _s,
1950
- Month: us,
1951
- Money: ms,
1952
- Number: fs,
1953
- Percent: hs,
1954
- CapitalizeFirstLetter: xs,
1955
- DeclensionWord: gs
1952
+ Date: is,
1953
+ MoneyString: ls,
1954
+ DateSort: os,
1955
+ Size: cs,
1956
+ TypeFiles: ds,
1957
+ Cases: _s,
1958
+ Initials: us,
1959
+ Month: ms,
1960
+ Money: fs,
1961
+ Number: hs,
1962
+ Percent: xs,
1963
+ CapitalizeFirstLetter: gs,
1964
+ DeclensionWord: vs
1956
1965
  };
1957
- function vs({ children: e }) {
1966
+ function ps({ children: e }) {
1958
1967
  return /* @__PURE__ */ a.jsx("div", { className: "l", children: /* @__PURE__ */ a.jsx("ul", { children: e }) });
1959
1968
  }
1960
- const ps = "_white_11p39_14", Cs = "_black_11p39_26", ks = "_shake_11p39_1", ys = "_modal_11p39_73", js = "_o_11p39_83", bs = "_w_11p39_14", ws = "_h_11p39_107", Ss = "_l_11p39_121", Es = "_t_11p39_159", Rs = "_m_11p39_73", Ns = "_x_11p39_167", Ts = "_s_11p39_177", Is = "_c_11p39_182", Ds = "_f_11p39_187", Ms = "_btn_11p39_230", Fs = "_g_11p39_243", Ls = "_confirm_11p39_322", $s = "_cancel_11p39_327", Ps = "_disabled_11p39_332", Bs = "_active_11p39_389", Os = "_coincidence_11p39_395", As = "_sa_11p39_431", Zs = "_ss_11p39_435", zs = "_sm_11p39_439", Gs = "_sl_11p39_443", Ks = "_sx_11p39_447", Ws = "_sf_11p39_451", re = {
1961
- white: ps,
1962
- black: Cs,
1963
- shake: ks,
1964
- modal: ys,
1965
- o: js,
1966
- w: bs,
1967
- h: ws,
1968
- l: Ss,
1969
- t: Es,
1970
- m: Rs,
1971
- x: Ns,
1972
- s: Ts,
1973
- c: Is,
1974
- f: Ds,
1975
- btn: Ms,
1976
- g: Fs,
1969
+ const Cs = "_white_11p39_14", ks = "_black_11p39_26", ys = "_shake_11p39_1", js = "_modal_11p39_73", bs = "_o_11p39_83", ws = "_w_11p39_14", Ss = "_h_11p39_107", Es = "_l_11p39_121", Rs = "_t_11p39_159", Ns = "_m_11p39_73", Ts = "_x_11p39_167", Is = "_s_11p39_177", Ds = "_c_11p39_182", Ms = "_f_11p39_187", Fs = "_btn_11p39_230", Ls = "_g_11p39_243", $s = "_confirm_11p39_322", Ps = "_cancel_11p39_327", Bs = "_disabled_11p39_332", Os = "_active_11p39_389", As = "_coincidence_11p39_395", Zs = "_sa_11p39_431", zs = "_ss_11p39_435", Gs = "_sm_11p39_439", Ks = "_sl_11p39_443", Ws = "_sx_11p39_447", Vs = "_sf_11p39_451", re = {
1970
+ white: Cs,
1971
+ black: ks,
1972
+ shake: ys,
1973
+ modal: js,
1974
+ o: bs,
1975
+ w: ws,
1976
+ h: Ss,
1977
+ l: Es,
1978
+ t: Rs,
1979
+ m: Ns,
1980
+ x: Ts,
1981
+ s: Is,
1982
+ c: Ds,
1983
+ f: Ms,
1984
+ btn: Fs,
1985
+ g: Ls,
1977
1986
  "size-a": "_size-a_11p39_296",
1978
1987
  "size-s": "_size-s_11p39_300",
1979
1988
  "size-m": "_size-m_11p39_304",
1980
1989
  "size-l": "_size-l_11p39_308",
1981
1990
  "size-x": "_size-x_11p39_312",
1982
1991
  "size-f": "_size-f_11p39_316",
1983
- confirm: Ls,
1984
- cancel: $s,
1985
- disabled: Ps,
1992
+ confirm: $s,
1993
+ cancel: Ps,
1994
+ disabled: Bs,
1986
1995
  await: "_await_11p39_339",
1987
- active: Bs,
1988
- coincidence: Os,
1989
- sa: As,
1990
- ss: Zs,
1991
- sm: zs,
1992
- sl: Gs,
1993
- sx: Ks,
1994
- sf: Ws
1996
+ active: Os,
1997
+ coincidence: As,
1998
+ sa: Zs,
1999
+ ss: zs,
2000
+ sm: Gs,
2001
+ sl: Ks,
2002
+ sx: Ws,
2003
+ sf: Vs
1995
2004
  };
1996
- function Vs({ children: e }) {
2005
+ function Us({ children: e }) {
1997
2006
  return /* @__PURE__ */ a.jsx("div", { className: re.s, children: e });
1998
2007
  }
1999
- function Us({ children: e, className: t }) {
2008
+ function Ys({ children: e, className: t }) {
2000
2009
  let n = {};
2001
2010
  return t && (n.className = t), /* @__PURE__ */ a.jsx("div", { "data-form": "outline", ...n, children: /* @__PURE__ */ a.jsx("ul", { children: e }) });
2002
2011
  }
2003
- function Ys({ children: e }) {
2012
+ function Hs({ children: e }) {
2004
2013
  return /* @__PURE__ */ a.jsx("div", { className: re.c, children: e });
2005
2014
  }
2006
- const Hs = "_btn_1hz2s_6", qs = "_confirm_1hz2s_19", sn = {
2007
- btn: Hs,
2008
- confirm: qs
2015
+ const qs = "_btn_1hz2s_6", Js = "_confirm_1hz2s_19", sn = {
2016
+ btn: qs,
2017
+ confirm: Js
2009
2018
  };
2010
- function Js({ onClick: e, onSend: t, label: n, onRef: r }) {
2011
- let [s, i] = x.useState(!1);
2019
+ function Xs({ onClick: e, onSend: t, label: n, onRef: r }) {
2020
+ let [s, i] = h.useState(!1);
2012
2021
  const c = () => {
2013
2022
  if (e)
2014
2023
  return e();
@@ -2024,16 +2033,16 @@ function Js({ onClick: e, onSend: t, label: n, onRef: r }) {
2024
2033
  }
2025
2034
  );
2026
2035
  }
2027
- let ye = {};
2028
- function Xs({ config: e }) {
2029
- let [t, n] = x.useState([]);
2030
- return ye.x = () => {
2031
- n([]);
2032
- }, ye.config = e, ye.add = (r) => {
2036
+ let ve = {};
2037
+ function Qs({ config: e }) {
2038
+ let [t, n] = h.useState([]);
2039
+ return ve.x = (r) => {
2040
+ r || n([]);
2041
+ }, ve.config = e, ve.add = (r) => {
2033
2042
  n([...t, r]);
2034
2043
  }, /* @__PURE__ */ a.jsx(a.Fragment, { children: t.map((r) => r) });
2035
2044
  }
2036
- function Qs({
2045
+ function ei({
2037
2046
  title: e,
2038
2047
  children: t,
2039
2048
  button: n,
@@ -2041,7 +2050,7 @@ function Qs({
2041
2050
  size: s = "m",
2042
2051
  menu: i
2043
2052
  }) {
2044
- const [c, l] = x.useState(!0), _ = x.useRef(), d = (m) => {
2053
+ const [c, l] = h.useState(!0), _ = h.useRef(), d = (m) => {
2045
2054
  if (n) {
2046
2055
  if (n.onClick)
2047
2056
  return m(!1), n.onClick({ setOpen: l });
@@ -2068,14 +2077,14 @@ function Qs({
2068
2077
  /* @__PURE__ */ a.jsxs("div", { className: re.h, children: [
2069
2078
  /* @__PURE__ */ a.jsx("div", { className: re.t, children: e }),
2070
2079
  /* @__PURE__ */ a.jsxs("div", { className: re.m, children: [
2071
- r && /* @__PURE__ */ a.jsx("nav", { children: r.map((m, h) => /* @__PURE__ */ a.jsx(
2080
+ r && /* @__PURE__ */ a.jsx("nav", { children: r.map((m, x) => /* @__PURE__ */ a.jsx(
2072
2081
  "span",
2073
2082
  {
2074
2083
  onClick: m.onClick,
2075
2084
  className: m.active ? "active" : "",
2076
2085
  children: m.name
2077
2086
  },
2078
- h
2087
+ x
2079
2088
  )) }),
2080
2089
  i
2081
2090
  ] }),
@@ -2100,7 +2109,7 @@ function Qs({
2100
2109
  )
2101
2110
  ] }),
2102
2111
  t,
2103
- n !== void 0 ? /* @__PURE__ */ a.jsx(Js, { label: n.label, onSend: d }) : ""
2112
+ n !== void 0 ? /* @__PURE__ */ a.jsx(Xs, { label: n.label, onSend: d }) : ""
2104
2113
  ]
2105
2114
  }
2106
2115
  )
@@ -2108,13 +2117,13 @@ function Qs({
2108
2117
  }
2109
2118
  ) : "" });
2110
2119
  }
2111
- function ei(e) {
2112
- ye.add(/* @__PURE__ */ a.jsx(ti, { children: e }, String(Date.now())));
2120
+ function ti(e) {
2121
+ ve.add(/* @__PURE__ */ a.jsx(ni, { children: e }, String(Date.now())));
2113
2122
  }
2114
- function ti({ children: e }) {
2123
+ function ni({ children: e }) {
2115
2124
  return /* @__PURE__ */ a.jsx(a.Fragment, { children: e });
2116
2125
  }
2117
- function ni(e) {
2126
+ function ai(e) {
2118
2127
  if (e.target.classList[0] !== "modal")
2119
2128
  return;
2120
2129
  let t = e.target.children[0];
@@ -2122,18 +2131,32 @@ function ni(e) {
2122
2131
  t.setAttribute("shake", !1);
2123
2132
  }, 1e3);
2124
2133
  }
2125
- function ai({ type: e, name: t, params: n }) {
2126
- let [r, s] = x.useState(null);
2127
- return x.useEffect(() => {
2128
- ye.config(e, t, n, s);
2134
+ function ri({ type: e, name: t, params: n }) {
2135
+ let [r, s] = h.useState(null);
2136
+ return h.useEffect(() => {
2137
+ ve.config(e, t, n, s);
2129
2138
  }, [n.id]), /* @__PURE__ */ a.jsx(a.Fragment, { children: r });
2130
2139
  }
2131
- function ri(e, t, n) {
2132
- ye.config(e, t, n);
2133
- }
2134
- const wt = { List: vs, Scroll: Vs, Main: Qs, Add: ei, Icon: ai, Open: ri, Shake: ni, Form: Us, Center: Ys };
2140
+ function si(e, t, n) {
2141
+ ve.config(e, t, n);
2142
+ }
2143
+ function ii(e) {
2144
+ ve.x(e);
2145
+ }
2146
+ const wt = {
2147
+ List: ps,
2148
+ Scroll: Us,
2149
+ Main: ei,
2150
+ Add: ti,
2151
+ Icon: ri,
2152
+ Open: si,
2153
+ Shake: ai,
2154
+ Form: Ys,
2155
+ Center: Hs,
2156
+ Close: ii
2157
+ };
2135
2158
  function wn({ text: e, type: t, button: n }) {
2136
- let [r, s] = x.useState(!1), i = { active: t };
2159
+ let [r, s] = h.useState(!1), i = { active: t };
2137
2160
  const c = () => {
2138
2161
  if (n) {
2139
2162
  if (n.onClick)
@@ -2142,7 +2165,7 @@ function wn({ text: e, type: t, button: n }) {
2142
2165
  return r ? void 0 : (s(!0), n.onSend(s));
2143
2166
  }
2144
2167
  };
2145
- return /* @__PURE__ */ a.jsxs("div", { className: mt.al, ...i, children: [
2168
+ return /* @__PURE__ */ a.jsxs("div", { className: ft.al, ...i, children: [
2146
2169
  /* @__PURE__ */ a.jsx(
2147
2170
  "svg",
2148
2171
  {
@@ -2164,22 +2187,22 @@ function wn({ text: e, type: t, button: n }) {
2164
2187
  n && /* @__PURE__ */ a.jsx("button", { onClick: c, children: n.label })
2165
2188
  ] });
2166
2189
  }
2167
- const si = "_h_1usnu_1", ii = "_g_1usnu_11", oi = "_hr_1usnu_16", li = "_hl_1usnu_28", ci = "_t_1usnu_40", di = "_s_1usnu_60", _i = "_u_1usnu_69", ui = "_o_1usnu_76", mi = "_l_1usnu_105", fi = "_hh_1usnu_115", hi = "_c_1usnu_128", xi = "_loadingB_1usnu_1", gi = "_m_1usnu_180", vi = "_ul_1usnu_196", pi = "_f_1usnu_226", X = {
2168
- h: si,
2169
- g: ii,
2170
- hr: oi,
2171
- hl: li,
2172
- t: ci,
2173
- s: di,
2174
- u: _i,
2175
- o: ui,
2176
- l: mi,
2177
- hh: fi,
2178
- c: hi,
2179
- loadingB: xi,
2180
- m: gi,
2181
- ul: vi,
2182
- f: pi
2190
+ const oi = "_h_1usnu_1", li = "_g_1usnu_11", ci = "_hr_1usnu_16", di = "_hl_1usnu_28", _i = "_t_1usnu_40", ui = "_s_1usnu_60", mi = "_u_1usnu_69", fi = "_o_1usnu_76", hi = "_l_1usnu_105", xi = "_hh_1usnu_115", gi = "_c_1usnu_128", vi = "_loadingB_1usnu_1", pi = "_m_1usnu_180", Ci = "_ul_1usnu_196", ki = "_f_1usnu_226", X = {
2191
+ h: oi,
2192
+ g: li,
2193
+ hr: ci,
2194
+ hl: di,
2195
+ t: _i,
2196
+ s: ui,
2197
+ u: mi,
2198
+ o: fi,
2199
+ l: hi,
2200
+ hh: xi,
2201
+ c: gi,
2202
+ loadingB: vi,
2203
+ m: pi,
2204
+ ul: Ci,
2205
+ f: ki
2183
2206
  }, on = ({ title: e, left: t, right: n, children: r }) => /* @__PURE__ */ a.jsxs("div", { className: X.h, children: [
2184
2207
  /* @__PURE__ */ a.jsx("div", { className: X.t, children: e }),
2185
2208
  t && /* @__PURE__ */ a.jsx("div", { className: X.hl, children: t }),
@@ -2192,26 +2215,26 @@ const si = "_h_1usnu_1", ii = "_g_1usnu_11", oi = "_hr_1usnu_16", li = "_hl_1usn
2192
2215
  function _n({ children: e }) {
2193
2216
  return /* @__PURE__ */ a.jsx("div", { className: X.g, children: e });
2194
2217
  }
2195
- const Ci = ({ children: e, className: t, title: n }) => /* @__PURE__ */ a.jsxs("div", { className: [X.o, t].join(" "), children: [
2218
+ const yi = ({ children: e, className: t, title: n }) => /* @__PURE__ */ a.jsxs("div", { className: [X.o, t].join(" "), children: [
2196
2219
  n && /* @__PURE__ */ a.jsx("div", { className: X.hh, children: n }),
2197
2220
  e
2198
- ] }), ki = ({ children: e }) => /* @__PURE__ */ a.jsx("div", { className: X.u, children: e }), yi = ({ children: e }) => /* @__PURE__ */ a.jsx("div", { className: X.c, children: e }), ji = ({ children: e }) => /* @__PURE__ */ a.jsx("div", { className: X.m, children: e }), un = {
2221
+ ] }), ji = ({ children: e }) => /* @__PURE__ */ a.jsx("div", { className: X.u, children: e }), bi = ({ children: e }) => /* @__PURE__ */ a.jsx("div", { className: X.c, children: e }), wi = ({ children: e }) => /* @__PURE__ */ a.jsx("div", { className: X.m, children: e }), un = {
2199
2222
  Header: on,
2200
2223
  Section: cn,
2201
2224
  Group: _n,
2202
2225
  Form: dn,
2203
2226
  List: ln,
2204
2227
  A: wn,
2205
- U: ki,
2228
+ U: ji,
2206
2229
  G: _n,
2207
- C: yi,
2230
+ C: bi,
2208
2231
  L: ln,
2209
- O: Ci,
2232
+ O: yi,
2210
2233
  S: cn,
2211
2234
  H: on,
2212
- M: ji,
2235
+ M: wi,
2213
2236
  F: dn
2214
- }, bi = (e, t) => {
2237
+ }, Si = (e, t) => {
2215
2238
  switch (t.type) {
2216
2239
  case "load":
2217
2240
  return {
@@ -2272,15 +2295,15 @@ const Ci = ({ children: e, className: t, title: n }) => /* @__PURE__ */ a.jsxs("
2272
2295
  default:
2273
2296
  return e;
2274
2297
  }
2275
- }, wi = () => ({
2298
+ }, Ei = () => ({
2276
2299
  load: !0,
2277
2300
  list: [],
2278
2301
  name: "Файлы",
2279
2302
  add: !1,
2280
2303
  search: !1,
2281
2304
  revers: !0
2282
- }), Si = () => {
2283
- let [e, t] = x.useState([]);
2305
+ }), Ri = () => {
2306
+ let [e, t] = h.useState([]);
2284
2307
  return /* @__PURE__ */ a.jsx(a.Fragment, { children: e.length !== 0 ? /* @__PURE__ */ a.jsxs("div", { className: "upload view", children: [
2285
2308
  /* @__PURE__ */ a.jsxs("div", { className: "--head", children: [
2286
2309
  /* @__PURE__ */ a.jsx("b", { children: "Загрузки" }),
@@ -2295,17 +2318,17 @@ const Ci = ({ children: e, className: t, title: n }) => /* @__PURE__ */ a.jsxs("
2295
2318
  ] }),
2296
2319
  /* @__PURE__ */ a.jsx("div", { className: "--list", children: e.map((n) => n) })
2297
2320
  ] }) : "" });
2298
- }, Ei = ({
2321
+ }, Ni = ({
2299
2322
  id: e,
2300
2323
  name: t,
2301
2324
  listen: n,
2302
2325
  dir: r
2303
2326
  }) => {
2304
2327
  t = t || "Файлы";
2305
- const [s, i] = x.useReducer(bi, {}, wi), c = () => {
2328
+ const [s, i] = h.useReducer(Si, {}, Ei), c = () => {
2306
2329
  wt.Add(
2307
2330
  /* @__PURE__ */ a.jsx(
2308
- Ri,
2331
+ Ti,
2309
2332
  {
2310
2333
  dir: r,
2311
2334
  dispatch: i,
@@ -2315,7 +2338,7 @@ const Ci = ({ children: e, className: t, title: n }) => /* @__PURE__ */ a.jsxs("
2315
2338
  )
2316
2339
  );
2317
2340
  };
2318
- return x.useEffect(() => {
2341
+ return h.useEffect(() => {
2319
2342
  (async () => {
2320
2343
  let l = await ce.Send({
2321
2344
  type: "module",
@@ -2354,15 +2377,15 @@ const Ci = ({ children: e, className: t, title: n }) => /* @__PURE__ */ a.jsxs("
2354
2377
  /* @__PURE__ */ a.jsx("i", {}),
2355
2378
  /* @__PURE__ */ a.jsx("i", {}),
2356
2379
  /* @__PURE__ */ a.jsx("i", {})
2357
- ] }) : s.list.length === 0 ? /* @__PURE__ */ a.jsx(a.Fragment, {}) : s.list.map((l, _) => /* @__PURE__ */ a.jsx(Ni, { dispatch: i, data: l }, _)) })
2380
+ ] }) : s.list.length === 0 ? /* @__PURE__ */ a.jsx(a.Fragment, {}) : s.list.map((l, _) => /* @__PURE__ */ a.jsx(Ii, { dispatch: i, data: l }, _)) })
2358
2381
  ] });
2359
- }, Ri = ({ id: e, dir: t, dispatch: n }) => {
2360
- let [r, s] = x.useState(!0), i = x.useRef(null), c = (d) => {
2382
+ }, Ti = ({ id: e, dir: t, dispatch: n }) => {
2383
+ let [r, s] = h.useState(!0), i = h.useRef(null), c = (d) => {
2361
2384
  d.preventDefault(), d.stopPropagation();
2362
2385
  }, l = (d) => {
2363
2386
  }, _ = (d) => {
2364
2387
  };
2365
- return x.useEffect(() => {
2388
+ return h.useEffect(() => {
2366
2389
  let d = i.current;
2367
2390
  ["dragenter", "dragover", "dragleave", "drop"].forEach((u) => {
2368
2391
  d.addEventListener(u, c, !1), document.body.addEventListener(u, c, !1);
@@ -2405,7 +2428,7 @@ const Ci = ({ children: e, className: t, title: n }) => /* @__PURE__ */ a.jsxs("
2405
2428
  },
2406
2429
  (/* @__PURE__ */ new Date()).getTime()
2407
2430
  ) }) : "" });
2408
- }, Ni = ({ data: e, dispatch: t }) => {
2431
+ }, Ii = ({ data: e, dispatch: t }) => {
2409
2432
  let n = async () => {
2410
2433
  let i = await (await fetch(nn.url().files + "/yandex/data/" + e.id, {
2411
2434
  headers: {
@@ -2457,10 +2480,10 @@ const Ci = ({ children: e, className: t, title: n }) => /* @__PURE__ */ a.jsxs("
2457
2480
  let A = {};
2458
2481
  A.list = ar();
2459
2482
  A.active = null;
2460
- const Ti = () => {
2483
+ const Di = () => {
2461
2484
  var s;
2462
- let [e, t] = x.useState([]), [n, r] = x.useState(St.getSetting("s03"));
2463
- return x.useEffect(() => {
2485
+ let [e, t] = h.useState([]), [n, r] = h.useState(St.getSetting("s03"));
2486
+ return h.useEffect(() => {
2464
2487
  (async () => {
2465
2488
  let i = Object.keys(A.list);
2466
2489
  if (i.length !== 0) {
@@ -2468,7 +2491,7 @@ const Ti = () => {
2468
2491
  i.forEach((l, _) => {
2469
2492
  c.push({
2470
2493
  item: /* @__PURE__ */ a.jsx(
2471
- ft,
2494
+ ht,
2472
2495
  {
2473
2496
  data: A.list[l]
2474
2497
  },
@@ -2485,7 +2508,7 @@ const Ti = () => {
2485
2508
  }, A.set = (i) => {
2486
2509
  t([
2487
2510
  ...e,
2488
- { item: /* @__PURE__ */ a.jsx(ft, { data: i }, i.id), link: i.link }
2511
+ { item: /* @__PURE__ */ a.jsx(ht, { data: i }, i.id), link: i.link }
2489
2512
  ]);
2490
2513
  }, A.del = (i) => {
2491
2514
  e.forEach((c, l) => {
@@ -2495,11 +2518,11 @@ const Ti = () => {
2495
2518
  "bookmarks",
2496
2519
  n === 1 && e.length !== 0 ? "bottom" : ""
2497
2520
  ), n !== 0 ? /* @__PURE__ */ a.jsx(a.Fragment, { children: e.length !== 0 ? /* @__PURE__ */ a.jsx("div", { className: "bookmarks", children: e.map((i) => i.item) }) : "" }) : "";
2498
- }, Ii = ({ id: e, type: t, name: n }) => {
2499
- let r = t + "-" + e, [s, i] = x.useState(
2521
+ }, Mi = ({ id: e, type: t, name: n }) => {
2522
+ let r = t + "-" + e, [s, i] = h.useState(
2500
2523
  A.list[r] !== void 0
2501
2524
  );
2502
- x.useEffect(() => {
2525
+ h.useEffect(() => {
2503
2526
  i(A.list[r] !== void 0);
2504
2527
  }, [r]);
2505
2528
  let c = () => {
@@ -2516,36 +2539,36 @@ const Ti = () => {
2516
2539
  onClick: c
2517
2540
  }
2518
2541
  ) : "" });
2519
- }, ft = ({ data: e }) => {
2542
+ }, ht = ({ data: e }) => {
2520
2543
  let t = (r) => {
2521
2544
  r.preventDefault(), delete A.list[e.link], A.del(e.link);
2522
2545
  }, n = () => {
2523
2546
  Ue.setId(e.id);
2524
2547
  };
2525
2548
  return /* @__PURE__ */ a.jsx("span", { onContextMenu: t, onClick: n, children: e.name });
2526
- }, Di = (e) => {
2549
+ }, Fi = (e) => {
2527
2550
  A.active(e);
2528
- }, O = {}, ht = {}, y = {};
2529
- y.config = { iceServers: [{ url: "stun:stun.l.google.com:19302" }] };
2530
- y.constraints = { optional: [{ DtlsSrtpKeyAgreement: !0 }] };
2531
- y.other = [];
2532
- y.users = {};
2533
- y.asset = 0;
2534
- y.remoute = !1;
2535
- y.stream = null;
2536
- y.user = 0;
2537
- y.connect = !1;
2538
- y.offer = null;
2539
- y.btnRefuse = null;
2540
- y.time = !1;
2551
+ }, O = {}, xt = {}, j = {};
2552
+ j.config = { iceServers: [{ url: "stun:stun.l.google.com:19302" }] };
2553
+ j.constraints = { optional: [{ DtlsSrtpKeyAgreement: !0 }] };
2554
+ j.other = [];
2555
+ j.users = {};
2556
+ j.asset = 0;
2557
+ j.remoute = !1;
2558
+ j.stream = null;
2559
+ j.user = 0;
2560
+ j.connect = !1;
2561
+ j.offer = null;
2562
+ j.btnRefuse = null;
2563
+ j.time = !1;
2541
2564
  let ge;
2542
2565
  ge = document.createElement("audio");
2543
2566
  ge.setAttribute("autoplay", "true");
2544
2567
  ge.setAttribute("muted", "true");
2545
2568
  O.start = async (e) => {
2546
- y.rtc = new RTCPeerConnection(y.config), y.other = [], y.remoute = !1, y.rtc.onicecandidate = (n) => {
2547
- n.candidate && y.other.push(n.candidate);
2548
- }, y.rtc.ontrack = (n) => {
2569
+ j.rtc = new RTCPeerConnection(j.config), j.other = [], j.remoute = !1, j.rtc.onicecandidate = (n) => {
2570
+ n.candidate && j.other.push(n.candidate);
2571
+ }, j.rtc.ontrack = (n) => {
2549
2572
  if (n.streams && n.streams[0])
2550
2573
  ge.srcObject = n.streams[0];
2551
2574
  else {
@@ -2558,94 +2581,94 @@ O.start = async (e) => {
2558
2581
  audio: { echoCancellation: !1, autoGainControl: !0 }
2559
2582
  });
2560
2583
  t.getTracks().forEach((n) => {
2561
- y.rtc.addTrack(n, t);
2562
- }), y.rtc.onconnectionstatechange = () => {
2563
- y.rtc.connectionState;
2564
- }, y.rtc.ontrack = async (n) => {
2584
+ j.rtc.addTrack(n, t);
2585
+ }), j.rtc.onconnectionstatechange = () => {
2586
+ j.rtc.connectionState;
2587
+ }, j.rtc.ontrack = async (n) => {
2565
2588
  if (n.streams && n.streams[0])
2566
2589
  ge.srcObject = n.streams[0];
2567
2590
  else {
2568
2591
  let r = new MediaStream(n.track);
2569
2592
  ge.srcObject = r;
2570
2593
  }
2571
- }, y.rtc.onaddstream = (n) => {
2572
- }, y.rtc.onnegotiationneeded = (n) => {
2573
- }, y.rtc.oniceconnectionstatechange = (n) => {
2574
- }, y.rtc.onsignalingstatechange = (n) => {
2575
- }, y.rtc.onicegatheringstatechange = (n) => {
2576
- }, y.rtc.onicecandidateerror = (n) => {
2577
- }, y.rtc.ondatachannel = (n) => {
2578
- }, y.rtc.onerror = (n) => {
2594
+ }, j.rtc.onaddstream = (n) => {
2595
+ }, j.rtc.onnegotiationneeded = (n) => {
2596
+ }, j.rtc.oniceconnectionstatechange = (n) => {
2597
+ }, j.rtc.onsignalingstatechange = (n) => {
2598
+ }, j.rtc.onicegatheringstatechange = (n) => {
2599
+ }, j.rtc.onicecandidateerror = (n) => {
2600
+ }, j.rtc.ondatachannel = (n) => {
2601
+ }, j.rtc.onerror = (n) => {
2579
2602
  }, e();
2580
2603
  };
2581
2604
  O.useListener = (e) => {
2582
- ht.rtc = e;
2605
+ xt.rtc = e;
2583
2606
  };
2584
2607
  O.setListener = (e) => {
2585
- ht.rtc && ht.rtc(e);
2608
+ xt.rtc && xt.rtc(e);
2586
2609
  };
2587
2610
  O.callTo = async (e) => {
2588
2611
  O.start(async () => {
2589
- const t = await y.rtc.createOffer();
2590
- await y.rtc.setLocalDescription(t), y.uid = e, ce.Send({
2612
+ const t = await j.rtc.createOffer();
2613
+ await j.rtc.setLocalDescription(t), j.uid = e, ce.Send({
2591
2614
  type: "module",
2592
2615
  module: "M00",
2593
2616
  query: "x0050",
2594
2617
  data: {
2595
2618
  type: "offer",
2596
2619
  offer: btoa(JSON.stringify(t)),
2597
- user: y.uid
2620
+ user: j.uid
2598
2621
  }
2599
2622
  });
2600
2623
  });
2601
2624
  };
2602
2625
  O.callIn = async (e) => {
2603
- y.asset = e.id, y.offer = e.offer, y.uid = e.id;
2626
+ j.asset = e.id, j.offer = e.offer, j.uid = e.id;
2604
2627
  };
2605
2628
  O.callRise = async () => {
2606
2629
  O.start(async () => {
2607
- y.rtc.setRemoteDescription(
2608
- new RTCSessionDescription(JSON.parse(atob(y.offer)))
2630
+ j.rtc.setRemoteDescription(
2631
+ new RTCSessionDescription(JSON.parse(atob(j.offer)))
2609
2632
  );
2610
- const e = await y.rtc.createAnswer();
2611
- await y.rtc.setLocalDescription(e), ce.Send({
2633
+ const e = await j.rtc.createAnswer();
2634
+ await j.rtc.setLocalDescription(e), ce.Send({
2612
2635
  type: "module",
2613
2636
  module: "M00",
2614
2637
  query: "x0050",
2615
2638
  data: {
2616
2639
  type: "answer",
2617
2640
  answer: btoa(JSON.stringify(e)),
2618
- user: y.uid
2641
+ user: j.uid
2619
2642
  }
2620
2643
  });
2621
2644
  });
2622
2645
  };
2623
2646
  O.callOk = async (e) => {
2624
- y.asset = e.id;
2647
+ j.asset = e.id;
2625
2648
  const t = new RTCSessionDescription(JSON.parse(atob(e.answer)));
2626
- await y.rtc.setRemoteDescription(t), ce.Send({
2649
+ await j.rtc.setRemoteDescription(t), ce.Send({
2627
2650
  type: "module",
2628
2651
  module: "M00",
2629
2652
  query: "x0050",
2630
2653
  data: {
2631
2654
  type: "IceCandidate",
2632
- candidate: JSON.parse(JSON.stringify(y.other)),
2633
- user: y.uid,
2655
+ candidate: JSON.parse(JSON.stringify(j.other)),
2656
+ user: j.uid,
2634
2657
  send: !0
2635
2658
  }
2636
2659
  });
2637
2660
  };
2638
2661
  O.IceCandidate = async (e) => {
2639
2662
  e.candidate.forEach((t) => {
2640
- y.rtc.addIceCandidate(new RTCIceCandidate(t));
2663
+ j.rtc.addIceCandidate(new RTCIceCandidate(t));
2641
2664
  }), e.send && ce.Send({
2642
2665
  type: "module",
2643
2666
  module: "M00",
2644
2667
  query: "x0050",
2645
2668
  data: {
2646
2669
  type: "IceCandidate",
2647
- candidate: JSON.parse(JSON.stringify(y.other)),
2648
- user: y.uid,
2670
+ candidate: JSON.parse(JSON.stringify(j.other)),
2671
+ user: j.uid,
2649
2672
  send: !1
2650
2673
  }
2651
2674
  });
@@ -2653,26 +2676,26 @@ O.IceCandidate = async (e) => {
2653
2676
  O.callFrom = async () => {
2654
2677
  };
2655
2678
  O.callNo = () => {
2656
- y.asset = 0, y.time = !1, y.rtc && y.rtc.close(), O.setListener({ type: "state", data: "closed" });
2679
+ j.asset = 0, j.time = !1, j.rtc && j.rtc.close(), O.setListener({ type: "state", data: "closed" });
2657
2680
  };
2658
2681
  O.callOf = () => {
2659
- y.asset = 0, y.time = !1, y.rtc.close();
2682
+ j.asset = 0, j.time = !1, j.rtc.close();
2660
2683
  };
2661
2684
  O.callRefuser = async () => {
2662
2685
  ce.Send({
2663
2686
  type: "module",
2664
2687
  module: "M00",
2665
2688
  query: "x0050",
2666
- data: { type: "callRefuser", user: y.uid }
2667
- }), y.asset = 0, y.time = !1, y.rtc && y.rtc.close();
2689
+ data: { type: "callRefuser", user: j.uid }
2690
+ }), j.asset = 0, j.time = !1, j.rtc && j.rtc.close();
2668
2691
  };
2669
2692
  O.Run = async (e) => {
2670
2693
  O[e.data.type] && O[e.data.type](e.data);
2671
2694
  };
2672
2695
  let Me = {};
2673
- function Mi() {
2674
- let [e, t] = x.useState([]), n = x.useRef(null);
2675
- return x.useEffect(() => {
2696
+ function Li() {
2697
+ let [e, t] = h.useState([]), n = h.useRef(null);
2698
+ return h.useEffect(() => {
2676
2699
  }, []), Me.set = (r) => {
2677
2700
  t([...e, r]);
2678
2701
  }, Me.del = () => {
@@ -2684,16 +2707,16 @@ function Mi() {
2684
2707
  /* @__PURE__ */ a.jsx("audio", { id: "audio", ref: n, autoPlay: !0, muted: !0 })
2685
2708
  ] });
2686
2709
  }
2687
- function Fi(e, t) {
2710
+ function $i(e, t) {
2688
2711
  let n = (/* @__PURE__ */ new Date()).getTime();
2689
2712
  Me.set({
2690
- item: /* @__PURE__ */ a.jsx(Li, { type: t, id: e }, n),
2713
+ item: /* @__PURE__ */ a.jsx(Pi, { type: t, id: e }, n),
2691
2714
  key: n
2692
2715
  });
2693
2716
  }
2694
- function Li({ id: e, type: t }) {
2695
- const [n, r] = x.useState({}), [s, i] = x.useState(t);
2696
- x.useEffect(() => {
2717
+ function Pi({ id: e, type: t }) {
2718
+ const [n, r] = h.useState({}), [s, i] = h.useState(t);
2719
+ h.useEffect(() => {
2697
2720
  r(se.getSelect("user")[e]);
2698
2721
  }, []), O.useListener((_) => {
2699
2722
  switch (_.type) {
@@ -2791,18 +2814,18 @@ function Li({ id: e, type: t }) {
2791
2814
  /* @__PURE__ */ a.jsx("div", { className: "b", children: c() })
2792
2815
  ] }) });
2793
2816
  }
2794
- const xt = {};
2795
- function $i(e) {
2796
- xt.add(e);
2817
+ const gt = {};
2818
+ function Bi(e) {
2819
+ gt.add(e);
2797
2820
  }
2798
- function Pi({ color: e, size: t, name: n }) {
2821
+ function Oi({ color: e, size: t, name: n }) {
2799
2822
  return /* @__PURE__ */ a.jsx("svg", { width: t, height: t, color: e, children: /* @__PURE__ */ a.jsx("use", { href: `#${n}` }) });
2800
2823
  }
2801
- function Bi() {
2802
- let [e, t] = x.useState([]);
2803
- if (xt.x = () => {
2824
+ function Ai() {
2825
+ let [e, t] = h.useState([]);
2826
+ if (gt.x = () => {
2804
2827
  t([]);
2805
- }, xt.add = (r) => {
2828
+ }, gt.add = (r) => {
2806
2829
  t(r);
2807
2830
  }, e.length === 0)
2808
2831
  return "";
@@ -2819,70 +2842,70 @@ function Bi() {
2819
2842
  s
2820
2843
  )) });
2821
2844
  }
2822
- const gt = {};
2823
- function Oi(e, t) {
2824
- gt[e] = t;
2845
+ const vt = {};
2846
+ function Zi(e, t) {
2847
+ vt[e] = t;
2825
2848
  }
2826
- function Ai(e, t) {
2827
- gt[e] !== void 0 && gt[e](t);
2849
+ function zi(e, t) {
2850
+ vt[e] !== void 0 && vt[e](t);
2828
2851
  }
2829
2852
  const de = {};
2830
- function Zi(e, t) {
2831
- const [n, r] = x.useState(t);
2832
- return x.useEffect(() => {
2853
+ function Gi(e, t) {
2854
+ const [n, r] = h.useState(t);
2855
+ return h.useEffect(() => {
2833
2856
  if (de[e])
2834
2857
  return de[e].push(r);
2835
2858
  de[e] = [r];
2836
2859
  }, []), [n];
2837
2860
  }
2838
- function zi(e, t) {
2861
+ function Ki(e, t) {
2839
2862
  if (de[e])
2840
2863
  return de[e].push(t);
2841
2864
  de[e] = [t];
2842
2865
  }
2843
- function Gi(e, t) {
2866
+ function Wi(e, t) {
2844
2867
  de[e] && de[e].forEach((n) => n(t));
2845
2868
  }
2846
- const we = { setListener: Ai, useListener: Oi, setEmitter: Gi, useEmitter: Zi, subEmitter: zi };
2847
- function Ki() {
2848
- let [e, t] = x.useState([]);
2869
+ const we = { setListener: zi, useListener: Zi, setEmitter: Wi, useEmitter: Gi, subEmitter: Ki };
2870
+ function Vi() {
2871
+ let [e, t] = h.useState([]);
2849
2872
  return we.useListener("form", (n) => {
2850
2873
  t([n]);
2851
2874
  }), /* @__PURE__ */ a.jsx(a.Fragment, { children: e.map((n) => n) });
2852
2875
  }
2853
- const Wi = ({ children: e, config: t }) => (D.New(t.crypto), t.defaultModule && Ea(t.defaultModule), Na(
2876
+ const Ui = ({ children: e, config: t }) => (D.New(t.crypto), t.defaultModule && Ea(t.defaultModule), Na(
2854
2877
  /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
2855
- /* @__PURE__ */ a.jsx(Xs, { config: t.modal }),
2856
- /* @__PURE__ */ a.jsx(wr, {}),
2857
- /* @__PURE__ */ a.jsx($r, {}),
2858
- /* @__PURE__ */ a.jsx(Si, {}),
2859
- /* @__PURE__ */ a.jsx(Bi, {}),
2860
- /* @__PURE__ */ a.jsx(Ki, {}),
2861
- /* @__PURE__ */ a.jsx(Mi, {}),
2862
- /* @__PURE__ */ a.jsx(Ti, {}),
2878
+ /* @__PURE__ */ a.jsx(Qs, { config: t.modal }),
2879
+ /* @__PURE__ */ a.jsx(Sr, {}),
2880
+ /* @__PURE__ */ a.jsx(Pr, {}),
2881
+ /* @__PURE__ */ a.jsx(Ri, {}),
2882
+ /* @__PURE__ */ a.jsx(Ai, {}),
2883
+ /* @__PURE__ */ a.jsx(Vi, {}),
2884
+ /* @__PURE__ */ a.jsx(Li, {}),
2885
+ /* @__PURE__ */ a.jsx(Di, {}),
2863
2886
  e
2864
2887
  ] })
2865
- )), Vi = ({ children: e, ...t }) => /* @__PURE__ */ a.jsx("menu", { children: e }), Ui = ({ children: e, ...t }) => /* @__PURE__ */ a.jsxs("header", { children: [
2888
+ )), Yi = ({ children: e, ...t }) => /* @__PURE__ */ a.jsx("menu", { children: e }), Hi = ({ children: e, ...t }) => /* @__PURE__ */ a.jsxs("header", { children: [
2866
2889
  "xz",
2867
2890
  e
2868
- ] }), Yi = "_payment_1lxfv_1", Hi = {
2869
- payment: Yi
2891
+ ] }), qi = "_payment_1lxfv_1", Ji = {
2892
+ payment: qi
2870
2893
  };
2871
- function qi() {
2872
- let [e, t] = x.useState({});
2873
- return !e.active && !e.payment ? "" : /* @__PURE__ */ a.jsx("div", { className: Hi.payment, children: "Истек срок оплаты! Доступ доступен до 16.04.2024" });
2894
+ function Xi() {
2895
+ let [e, t] = h.useState({});
2896
+ return !e.active && !e.payment ? "" : /* @__PURE__ */ a.jsx("div", { className: Ji.payment, children: "Истек срок оплаты! Доступ доступен до 16.04.2024" });
2874
2897
  }
2875
- const Il = ({ children: e, ...t }) => {
2898
+ const Ml = ({ children: e, ...t }) => {
2876
2899
  let n = {};
2877
2900
  return n.enCode = (r) => JSON.stringify(r).toString(), n.deCode = (r) => JSON.parse(r), /* @__PURE__ */ a.jsxs("div", { className: "app", children: [
2878
- /* @__PURE__ */ a.jsx(qi, {}),
2879
- /* @__PURE__ */ a.jsx(Vi, {}),
2880
- /* @__PURE__ */ a.jsx(Ui, {}),
2881
- /* @__PURE__ */ a.jsx(Wi, { config: { modal: {}, crypto: n } }),
2901
+ /* @__PURE__ */ a.jsx(Xi, {}),
2902
+ /* @__PURE__ */ a.jsx(Yi, {}),
2903
+ /* @__PURE__ */ a.jsx(Hi, {}),
2904
+ /* @__PURE__ */ a.jsx(Ui, { config: { modal: {}, crypto: n } }),
2882
2905
  e
2883
2906
  ] });
2884
- }, Ji = ({ list: e, onClick: t, active: n, size: r, view: s }) => /* @__PURE__ */ a.jsx("nav", { children: /* @__PURE__ */ a.jsx("ul", { className: [r, s].join(" "), children: e.map((i) => /* @__PURE__ */ a.jsx(
2885
- Xi,
2907
+ }, Qi = ({ list: e, onClick: t, active: n, size: r, view: s }) => /* @__PURE__ */ a.jsx("nav", { children: /* @__PURE__ */ a.jsx("ul", { className: [r, s].join(" "), children: e.map((i) => /* @__PURE__ */ a.jsx(
2908
+ eo,
2886
2909
  {
2887
2910
  onClick: t,
2888
2911
  active: n,
@@ -2890,9 +2913,9 @@ const Il = ({ children: e, ...t }) => {
2890
2913
  link: i.link
2891
2914
  },
2892
2915
  i.link
2893
- )) }) }), Xi = ({ onClick: e, label: t, link: n, active: r }) => /* @__PURE__ */ a.jsx("li", { "tabs-active": String(r === n), onClick: () => e(n), children: t });
2894
- Ji.defaultProps = { size: "M", view: "H" };
2895
- const Qi = ({
2916
+ )) }) }), eo = ({ onClick: e, label: t, link: n, active: r }) => /* @__PURE__ */ a.jsx("li", { "tabs-active": String(r === n), onClick: () => e(n), children: t });
2917
+ Qi.defaultProps = { size: "M", view: "H" };
2918
+ const to = ({
2896
2919
  title: e = "",
2897
2920
  button: t,
2898
2921
  description: n = "",
@@ -2912,10 +2935,10 @@ const Qi = ({
2912
2935
  ] }),
2913
2936
  /* @__PURE__ */ a.jsx("ul", { children: r }),
2914
2937
  n && /* @__PURE__ */ a.jsx("article", { children: n })
2915
- ] }), eo = "_setting_dva4m_2", to = {
2916
- setting: eo
2917
- }, no = ({ children: e }) => /* @__PURE__ */ a.jsx("div", { className: to.setting, children: e }), ao = ({ label: e, children: t }) => {
2918
- let [n, r] = x.useState(!1);
2938
+ ] }), no = "_setting_dva4m_2", ao = {
2939
+ setting: no
2940
+ }, ro = ({ children: e }) => /* @__PURE__ */ a.jsx("div", { className: ao.setting, children: e }), so = ({ label: e, children: t }) => {
2941
+ let [n, r] = h.useState(!1);
2919
2942
  return /* @__PURE__ */ a.jsxs("li", { "data-item": "accordion", children: [
2920
2943
  /* @__PURE__ */ a.jsxs("dl", { onClick: () => r(!n), children: [
2921
2944
  /* @__PURE__ */ a.jsx("dt", { children: e }),
@@ -2923,10 +2946,10 @@ const Qi = ({
2923
2946
  ] }),
2924
2947
  n && /* @__PURE__ */ a.jsx("div", { children: t })
2925
2948
  ] });
2926
- }, ro = ({ label: e, onClick: t, button: n }) => /* @__PURE__ */ a.jsx("li", { children: /* @__PURE__ */ a.jsxs("dl", { children: [
2949
+ }, io = ({ label: e, onClick: t, button: n }) => /* @__PURE__ */ a.jsx("li", { children: /* @__PURE__ */ a.jsxs("dl", { children: [
2927
2950
  /* @__PURE__ */ a.jsx("dt", { children: e }),
2928
2951
  /* @__PURE__ */ a.jsx("dd", { role: "button", onClick: () => t(), children: n })
2929
- ] }) }), so = ({ active: e, onClick: t }) => (e = typeof e == "number" ? !!e : e, /* @__PURE__ */ a.jsx(
2952
+ ] }) }), oo = ({ active: e, onClick: t }) => (e = typeof e == "number" ? !!e : e, /* @__PURE__ */ a.jsx(
2930
2953
  "div",
2931
2954
  {
2932
2955
  role: "switch",
@@ -2935,25 +2958,25 @@ const Qi = ({
2935
2958
  },
2936
2959
  "aria-checked": e ? "true" : "false"
2937
2960
  }
2938
- )), io = { Switch: so }, oo = ({ label: e, onClick: t, active: n }) => /* @__PURE__ */ a.jsx("li", { children: /* @__PURE__ */ a.jsxs("dl", { children: [
2961
+ )), lo = { Switch: oo }, co = ({ label: e, onClick: t, active: n }) => /* @__PURE__ */ a.jsx("li", { children: /* @__PURE__ */ a.jsxs("dl", { children: [
2939
2962
  /* @__PURE__ */ a.jsx("dt", { children: e }),
2940
- /* @__PURE__ */ a.jsx("dd", { children: /* @__PURE__ */ a.jsx(io.Switch, { onClick: t, active: n }) })
2941
- ] }) }), lo = ({ label: e, active: t, options: n }) => /* @__PURE__ */ a.jsx("li", { children: /* @__PURE__ */ a.jsxs("dl", { children: [
2963
+ /* @__PURE__ */ a.jsx("dd", { children: /* @__PURE__ */ a.jsx(lo.Switch, { onClick: t, active: n }) })
2964
+ ] }) }), _o = ({ label: e, active: t, options: n }) => /* @__PURE__ */ a.jsx("li", { children: /* @__PURE__ */ a.jsxs("dl", { children: [
2942
2965
  /* @__PURE__ */ a.jsx("dt", { children: e }),
2943
2966
  /* @__PURE__ */ a.jsx("dd", { role: "info", children: t })
2944
- ] }) }), co = ({ label: e, info: t }) => /* @__PURE__ */ a.jsx("li", { children: /* @__PURE__ */ a.jsxs("dl", { children: [
2967
+ ] }) }), uo = ({ label: e, info: t }) => /* @__PURE__ */ a.jsx("li", { children: /* @__PURE__ */ a.jsxs("dl", { children: [
2945
2968
  /* @__PURE__ */ a.jsx("dt", { children: e }),
2946
2969
  /* @__PURE__ */ a.jsx("dd", { role: "info", children: t })
2947
- ] }) }), _o = ({ label: e, children: t }) => /* @__PURE__ */ a.jsx("li", { children: /* @__PURE__ */ a.jsxs("dl", { children: [
2970
+ ] }) }), mo = ({ label: e, children: t }) => /* @__PURE__ */ a.jsx("li", { children: /* @__PURE__ */ a.jsxs("dl", { children: [
2948
2971
  /* @__PURE__ */ a.jsx("dt", { children: e }),
2949
2972
  /* @__PURE__ */ a.jsx("dd", { children: t })
2950
- ] }) }), uo = ({ label: e, children: t }) => /* @__PURE__ */ a.jsx("li", { children: /* @__PURE__ */ a.jsxs("dl", { children: [
2973
+ ] }) }), fo = ({ label: e, children: t }) => /* @__PURE__ */ a.jsx("li", { children: /* @__PURE__ */ a.jsxs("dl", { children: [
2951
2974
  /* @__PURE__ */ a.jsx("dt", { children: e }),
2952
2975
  /* @__PURE__ */ a.jsx("dd", { children: t })
2953
- ] }) }), mo = { Accordion: ao, Button: ro, Switch: oo, Info: co, Select: lo, Component: _o, Node: uo };
2976
+ ] }) }), ho = { Accordion: so, Button: io, Switch: co, Info: uo, Select: _o, Component: mo, Node: fo };
2954
2977
  function Sn({ list: e, onClick: t, active: n, size: r, view: s }) {
2955
2978
  return /* @__PURE__ */ a.jsx("nav", { children: /* @__PURE__ */ a.jsx("ul", { className: [r, s].join(" "), children: e.map((i) => /* @__PURE__ */ a.jsx(
2956
- fo,
2979
+ xo,
2957
2980
  {
2958
2981
  onClick: t,
2959
2982
  active: n,
@@ -2963,10 +2986,10 @@ function Sn({ list: e, onClick: t, active: n, size: r, view: s }) {
2963
2986
  i.link
2964
2987
  )) }) });
2965
2988
  }
2966
- const fo = ({ onClick: e, label: t, link: n, active: r }) => /* @__PURE__ */ a.jsx("li", { "tabs-active": String(r === n), onClick: () => e(n), children: t });
2989
+ const xo = ({ onClick: e, label: t, link: n, active: r }) => /* @__PURE__ */ a.jsx("li", { "tabs-active": String(r === n), onClick: () => e(n), children: t });
2967
2990
  Sn.defaultProps = { size: "M", view: "H" };
2968
- const Dl = { Section: Qi, Main: no, Item: mo, Tabs: Sn }, Ml = { Icon: Ii, Item: ft, Active: Di }, Fl = { Send: Br, Line: wn };
2969
- function ho() {
2991
+ const Fl = { Section: to, Main: ro, Item: ho, Tabs: Sn }, Ll = { Icon: Mi, Item: ht, Active: Fi }, $l = { Send: Or, Line: wn };
2992
+ function go() {
2970
2993
  return /* @__PURE__ */ a.jsx("svg", { viewBox: "0 0 462.86 359.96", children: /* @__PURE__ */ a.jsx(
2971
2994
  "path",
2972
2995
  {
@@ -2975,15 +2998,15 @@ function ho() {
2975
2998
  }
2976
2999
  ) });
2977
3000
  }
2978
- const Ll = { Logo: ho, Sprite: $i, Symbol: Pi }, xo = "_sort_1yrvt_1", go = {
2979
- sort: xo
3001
+ const Pl = { Logo: go, Sprite: Bi, Symbol: Oi }, vo = "_sort_1yrvt_1", po = {
3002
+ sort: vo
2980
3003
  };
2981
- let qe = {};
2982
- function vo(e, t) {
3004
+ let Je = {};
3005
+ function Co(e, t) {
2983
3006
  switch (t.type) {
2984
3007
  case "active":
2985
3008
  let n = "<";
2986
- return e.active === t.data && (n = e.sort === "<" ? ">" : "<"), qe.get({ active: t.data, sort: n }, !1), gn({ active: t.data, sort: n }), {
3009
+ return e.active === t.data && (n = e.sort === "<" ? ">" : "<"), Je.get({ active: t.data, sort: n }, !1), gn({ active: t.data, sort: n }), {
2987
3010
  ...e,
2988
3011
  active: t.data,
2989
3012
  sort: n
@@ -2992,12 +3015,12 @@ function vo(e, t) {
2992
3015
  throw new Error();
2993
3016
  }
2994
3017
  }
2995
- function po() {
2996
- const [e, t] = x.useReducer(
2997
- vo,
2998
- _t() === void 0 ? { active: 1, sort: "<" } : _t()
3018
+ function ko() {
3019
+ const [e, t] = h.useReducer(
3020
+ Co,
3021
+ ut() === void 0 ? { active: 1, sort: "<" } : ut()
2999
3022
  );
3000
- return /* @__PURE__ */ a.jsxs("div", { className: go.sort, children: [
3023
+ return /* @__PURE__ */ a.jsxs("div", { className: po.sort, children: [
3001
3024
  /* @__PURE__ */ a.jsx(
3002
3025
  "i",
3003
3026
  {
@@ -3024,13 +3047,13 @@ function po() {
3024
3047
  )
3025
3048
  ] });
3026
3049
  }
3027
- function Co(e) {
3028
- qe.get = e;
3050
+ function yo(e) {
3051
+ Je.get = e;
3029
3052
  }
3030
- function ko(e) {
3031
- qe.set(e);
3053
+ function jo(e) {
3054
+ Je.set(e);
3032
3055
  }
3033
- function yo(e, t, n) {
3056
+ function bo(e, t, n) {
3034
3057
  let r = 1, s = 0, i = {}, c = 50;
3035
3058
  i[r] = [];
3036
3059
  let l = {}, _ = "s1a";
@@ -3049,32 +3072,32 @@ function yo(e, t, n) {
3049
3072
  s++, s <= c || (r++, s = 1, i[r] = []), i[r].push(e[d.id]);
3050
3073
  }), { data: i };
3051
3074
  }
3052
- function jo(e) {
3053
- qe.count(e);
3075
+ function wo(e) {
3076
+ Je.count(e);
3054
3077
  }
3055
- const $l = { Init: po, useValue: Co, Set: ko, Run: yo, Count: jo }, Ye = {}, En = {};
3056
- function bo(e) {
3057
- const [t, n] = x.useState({}), r = async (s) => {
3078
+ const Bl = { Init: ko, useValue: yo, Set: jo, Run: bo, Count: wo }, Ye = {}, En = {};
3079
+ function So(e) {
3080
+ const [t, n] = h.useState({}), r = async (s) => {
3058
3081
  n(
3059
3082
  Object.keys(Ye).reduce((i, c) => (i ? i[c] = Ye[c].all : i = {}, i), {})
3060
3083
  );
3061
3084
  };
3062
- return x.useEffect(() => {
3085
+ return h.useEffect(() => {
3063
3086
  e.forEach((s) => Ye[s] = { all: 0 }), En.menu = r, r();
3064
3087
  }, [e]), t;
3065
3088
  }
3066
- function wo(e, t) {
3089
+ function Eo(e, t) {
3067
3090
  switch (typeof t) {
3068
3091
  case "number":
3069
3092
  Ye[e].all += t, En.menu();
3070
3093
  break;
3071
3094
  }
3072
3095
  }
3073
- const Pl = { useMenu: bo, setUpdate: wo };
3074
- class So {
3096
+ const Ol = { useMenu: So, setUpdate: Eo };
3097
+ class Ro {
3075
3098
  constructor(t = "el", n = "db") {
3076
- ot(this, "storeName");
3077
- ot(this, "_dbp");
3099
+ lt(this, "storeName");
3100
+ lt(this, "_dbp");
3078
3101
  this.storeName = n, this._dbp = new Promise((r, s) => {
3079
3102
  const i = indexedDB.open(t, 1);
3080
3103
  i.onerror = () => s(i.error), i.onsuccess = () => r(i.result), i.onupgradeneeded = () => {
@@ -3091,8 +3114,8 @@ class So {
3091
3114
  );
3092
3115
  }
3093
3116
  }
3094
- let lt, z = {};
3095
- const Se = () => (lt || (lt = new So()), lt), me = (e, t, n = Se()) => n._withIDBStore("readwrite", (r) => {
3117
+ let ct, z = {};
3118
+ const Se = () => (ct || (ct = new Ro()), ct), me = (e, t, n = Se()) => n._withIDBStore("readwrite", (r) => {
3096
3119
  z[e] = t, r.put(D.enCode(t), e);
3097
3120
  }), oe = (e, t = Se()) => z[e] === void 0 ? new Promise((n, r) => {
3098
3121
  let s;
@@ -3105,32 +3128,32 @@ const Se = () => (lt || (lt = new So()), lt), me = (e, t, n = Se()) => n._withID
3105
3128
  } else
3106
3129
  n({});
3107
3130
  });
3108
- }) : z[e], Eo = (e, t = Se()) => t._withIDBStore("readwrite", (n) => {
3131
+ }) : z[e], No = (e, t = Se()) => t._withIDBStore("readwrite", (n) => {
3109
3132
  n.delete(e);
3110
- }), vt = (e = Se()) => e._withIDBStore("readwrite", (t) => {
3133
+ }), pt = (e = Se()) => e._withIDBStore("readwrite", (t) => {
3111
3134
  t.clear();
3112
- }), Ro = (e = Se()) => {
3135
+ }), To = (e = Se()) => {
3113
3136
  const t = [];
3114
3137
  return e._withIDBStore("readonly", (n) => {
3115
3138
  (n.openKeyCursor || n.openCursor).call(n).onsuccess = function() {
3116
3139
  this.result && (t.push(this.result.key), this.result.continue());
3117
3140
  };
3118
3141
  }).then(() => t);
3119
- }, No = (e, t, n = [], r = {}) => {
3120
- let s = n.length !== 0, i = [], c = r.sort, l = Object.keys(r).length !== 0, _ = Object.keys(r), d = Object.keys(e), u = 1, m = [], h = {};
3121
- h[u] = [];
3142
+ }, Io = (e, t, n = [], r = {}) => {
3143
+ let s = n.length !== 0, i = [], c = r.sort, l = Object.keys(r).length !== 0, _ = Object.keys(r), d = Object.keys(e), u = 1, m = [], x = {};
3144
+ x[u] = [];
3122
3145
  let g = (C) => {
3123
3146
  let w = "";
3124
- if (n.forEach((k) => {
3125
- w += t[C][k];
3147
+ if (n.forEach((y) => {
3148
+ w += t[C][y];
3126
3149
  }), l) {
3127
- let k = {};
3150
+ let y = {};
3128
3151
  _.forEach((b) => {
3129
- k[b] = t[C][b];
3152
+ y[b] = t[C][b];
3130
3153
  });
3131
3154
  for (let b in c)
3132
- t[C][c[b]] === void 0 && (vt(), location.reload()), b === "s1" && (k[b] = new Date(t[C][c[b]]).getTime()), b === "s2" && (k[b] = t[C][c[b]]), b === "s3" && (k[b] = t[C][c[b]].replace(/[^a-zа-яё]/gi, "").substring(0, 1));
3133
- i.push({ id: C, text: w, ...k });
3155
+ t[C][c[b]] === void 0 && (pt(), location.reload()), b === "s1" && (y[b] = new Date(t[C][c[b]]).getTime()), b === "s2" && (y[b] = t[C][c[b]]), b === "s3" && (y[b] = t[C][c[b]].replace(/[^a-zа-яё]/gi, "").substring(0, 1));
3156
+ i.push({ id: C, text: w, ...y });
3134
3157
  } else
3135
3158
  i.push({ id: C, text: w });
3136
3159
  }, v = (C) => {
@@ -3138,9 +3161,9 @@ const Se = () => (lt || (lt = new So()), lt), me = (e, t, n = Se()) => n._withID
3138
3161
  return d.forEach((C) => {
3139
3162
  m.push(t[C]);
3140
3163
  }), m.forEach((C) => {
3141
- C === void 0 ? (vt(), location.reload()) : (s && g(C.id), l && v(C.id));
3142
- }), { list: h, search: i, filter: r };
3143
- }, To = (e, t, n, r = Se()) => {
3164
+ C === void 0 ? (pt(), location.reload()) : (s && g(C.id), l && v(C.id));
3165
+ }), { list: x, search: i, filter: r };
3166
+ }, Do = (e, t, n, r = Se()) => {
3144
3167
  if (z[e] === void 0)
3145
3168
  return new Promise((s, i) => {
3146
3169
  let c;
@@ -3161,45 +3184,45 @@ const Se = () => (lt || (lt = new So()), lt), me = (e, t, n = Se()) => n._withID
3161
3184
  return z[e][t.id] = { ...z[e][t.id], ...t.data }, n !== void 0 && z[n] !== void 0 ? z[n][t.id] !== void 0 && (z[n][t.id] = t.data.eDate) : z[n] = [], delete z[e][t.id].$_item, delete z[e][t.id].$_send, r._withIDBStore("readwrite", (s) => {
3162
3185
  s.put(D.enCode(z[e]), e), n !== void 0 && s.put(D.enCode(z[n]), n);
3163
3186
  });
3164
- }, Io = async (e, t, n, r) => {
3187
+ }, Mo = async (e, t, n, r) => {
3165
3188
  let s, i;
3166
3189
  i = await oe(n), i[e.id] = e, await me(n, i), s !== null && (s = await oe(t), s[e.id] = e.eDate, await me(t, s)), r !== void 0 && r({ type: "load", page: s, base: i });
3167
- }, Do = async (e, t, n, r) => {
3190
+ }, Fo = async (e, t, n, r) => {
3168
3191
  let s = await oe(t), i = await oe(n);
3169
3192
  for (let c in e)
3170
3193
  i[c] = e[c], s[c] = e[c].eDate;
3171
3194
  await me(t, s), await me(n, i), r !== void 0 && r({ type: "load", page: s, base: i });
3172
- }, Mo = async (e, t, n, r) => {
3195
+ }, Lo = async (e, t, n, r) => {
3173
3196
  let s = await oe(t), i = await oe(n);
3174
3197
  e.forEach((c) => delete s[c]), await me(t, s), r !== void 0 && r({ type: "load", page: s, base: i });
3175
- }, Fo = async (e, t, n) => {
3198
+ }, $o = async (e, t, n) => {
3176
3199
  let r = await oe(t);
3177
3200
  e.forEach((s) => delete r[s]), await me(t, r);
3178
- }, Lo = async (e, t, n) => {
3201
+ }, Po = async (e, t, n) => {
3179
3202
  let r = await oe(t);
3180
3203
  e.forEach((s) => r[s.id] = s.eDate), await me(t, r);
3181
- }, $o = async (e, t, n) => {
3204
+ }, Bo = async (e, t, n) => {
3182
3205
  let r = await oe(t);
3183
3206
  if (n !== void 0)
3184
3207
  n({ type: "load", base: r });
3185
3208
  else
3186
3209
  return r[e];
3187
- }, Po = (e) => z[e], Bl = {
3188
- id: $o,
3210
+ }, Oo = (e) => z[e], Al = {
3211
+ id: Bo,
3189
3212
  get: oe,
3190
3213
  set: me,
3191
- add: Io,
3192
- del: Eo,
3193
- upd: To,
3194
- key: Ro,
3195
- load: Po,
3196
- split: No,
3197
- clear: vt,
3198
- updAll: Do,
3199
- delAll: Mo,
3200
- delList: Fo,
3201
- addList: Lo
3202
- }, Bo = (e, t) => {
3214
+ add: Mo,
3215
+ del: No,
3216
+ upd: Do,
3217
+ key: To,
3218
+ load: Oo,
3219
+ split: Io,
3220
+ clear: pt,
3221
+ updAll: Fo,
3222
+ delAll: Lo,
3223
+ delList: $o,
3224
+ addList: Po
3225
+ }, Ao = (e, t) => {
3203
3226
  const n = [];
3204
3227
  t = t.map((r) => r.charCodeAt(0)), document.onkeydown = function(r) {
3205
3228
  n.push(r.keyCode);
@@ -3210,15 +3233,15 @@ const Se = () => (lt || (lt = new So()), lt), me = (e, t, n = Se()) => n._withID
3210
3233
  }, document.onkeyup = function(r) {
3211
3234
  n.length = 0;
3212
3235
  };
3213
- }, Ol = { useKey: Bo }, Oo = "_s_18bde_1", Ao = "_loadingB_18bde_1", Zo = "_ul_18bde_31", zo = {
3214
- s: Oo,
3215
- loadingB: Ao,
3216
- ul: Zo
3236
+ }, Zl = { useKey: Ao }, Zo = "_s_18bde_1", zo = "_loadingB_18bde_1", Go = "_ul_18bde_31", Ko = {
3237
+ s: Zo,
3238
+ loadingB: zo,
3239
+ ul: Go
3217
3240
  };
3218
3241
  function Rn({ children: e }) {
3219
3242
  return /* @__PURE__ */ a.jsx("ul", { className: X.ul, children: e });
3220
3243
  }
3221
- function Go(e, t) {
3244
+ function Wo(e, t) {
3222
3245
  switch (t.type) {
3223
3246
  case "load":
3224
3247
  return {
@@ -3252,7 +3275,7 @@ function Go(e, t) {
3252
3275
  }
3253
3276
  }
3254
3277
  function Nn(e) {
3255
- const t = x.useRef(null), [n, r] = x.useReducer(Go, {
3278
+ const t = h.useRef(null), [n, r] = h.useReducer(Wo, {
3256
3279
  load: !1,
3257
3280
  list: [],
3258
3281
  data: {},
@@ -3260,20 +3283,20 @@ function Nn(e) {
3260
3283
  wait: !1,
3261
3284
  size: 0
3262
3285
  });
3263
- x.useEffect(() => {
3264
- }, []), x.useEffect(() => {
3286
+ h.useEffect(() => {
3287
+ }, []), h.useEffect(() => {
3265
3288
  t.current.scrollTop = 0, e.list !== null && r({ type: "load", load: !0, data: e.list });
3266
3289
  }, [e.load]);
3267
3290
  let s = () => {
3268
3291
  t.current.scrollHeight - t.current.scrollTop - 300 <= t.current.clientHeight && !n.wait && r({ type: "update" });
3269
3292
  };
3270
- return /* @__PURE__ */ a.jsx("div", { className: zo.s, ref: t, onScroll: s, children: /* @__PURE__ */ a.jsx(Rn, { "el-empty": "Данные не найдены", children: n.load && n.list !== void 0 ? n.list.map((i) => /* @__PURE__ */ a.jsx(e.item, { data: i }, i.id)) : /* @__PURE__ */ a.jsxs("div", { "data-load": "load", children: [
3293
+ return /* @__PURE__ */ a.jsx("div", { className: Ko.s, ref: t, onScroll: s, children: /* @__PURE__ */ a.jsx(Rn, { "el-empty": "Данные не найдены", children: n.load && n.list !== void 0 ? n.list.map((i) => /* @__PURE__ */ a.jsx(e.item, { data: i }, i.id)) : /* @__PURE__ */ a.jsxs("div", { "data-load": "load", children: [
3271
3294
  /* @__PURE__ */ a.jsx("i", {}),
3272
3295
  /* @__PURE__ */ a.jsx("i", {}),
3273
3296
  /* @__PURE__ */ a.jsx("i", {})
3274
3297
  ] }) }) });
3275
3298
  }
3276
- const Al = { Scrolling: Nn }, Zl = { Widget: Ei }, Tn = ({ onClick: e, active: t }) => (t = !!t, /* @__PURE__ */ a.jsx(
3299
+ const zl = { Scrolling: Nn }, Gl = { Widget: Ni }, Tn = ({ onClick: e, active: t }) => (t = !!t, /* @__PURE__ */ a.jsx(
3277
3300
  "div",
3278
3301
  {
3279
3302
  role: "switch",
@@ -3281,20 +3304,20 @@ const Al = { Scrolling: Nn }, Zl = { Widget: Ei }, Tn = ({ onClick: e, active: t
3281
3304
  "aria-checked": `${t ? "true" : "false"}`
3282
3305
  }
3283
3306
  ));
3284
- let ve = {};
3285
- ve.KeyDown = (e) => {
3307
+ let pe = {};
3308
+ pe.KeyDown = (e) => {
3286
3309
  e.key === "Enter" && e.preventDefault();
3287
3310
  };
3288
- ve.PasteOne = (e) => {
3311
+ pe.PasteOne = (e) => {
3289
3312
  e.preventDefault(), navigator.clipboard.readText().then((t) => {
3290
3313
  t = t.replace(/^\s*/, "").replace(/\s*$/, ""), window.document.execCommand("insertText", !1, t);
3291
3314
  }).catch((t) => {
3292
3315
  });
3293
3316
  };
3294
- ve.Focus = (e) => {
3317
+ pe.Focus = (e) => {
3295
3318
  e.target.textContent.length === 0 && (e.target.innerHTML = "<br>");
3296
3319
  };
3297
- ve.Blur = (e) => {
3320
+ pe.Blur = (e) => {
3298
3321
  e.target.scrollLeft = 0, e.target.querySelector("br") !== null && e.target.querySelector("br").remove();
3299
3322
  };
3300
3323
  function $e({
@@ -3310,13 +3333,13 @@ function $e({
3310
3333
  after: d = "",
3311
3334
  show: u = !0,
3312
3335
  view: m,
3313
- onBlur: h,
3336
+ onBlur: x,
3314
3337
  onSave: g,
3315
3338
  className: v = ""
3316
3339
  }) {
3317
3340
  let C = !!(c && (e === "" || e === void 0)), w = ($) => {
3318
3341
  t && t({ value: $.target.textContent, name: n });
3319
- }, k = ($) => {
3342
+ }, y = ($) => {
3320
3343
  $.key === "Enter" && $.preventDefault();
3321
3344
  }, b = ($) => {
3322
3345
  }, R = ($) => {
@@ -3332,10 +3355,10 @@ function $e({
3332
3355
  return "";
3333
3356
  const N = {};
3334
3357
  N.field = "input", v && (N.className = v);
3335
- const j = {};
3336
- r && (j.placeholder = r), j.edit = (l && _) + "";
3358
+ const k = {};
3359
+ r && (k.placeholder = r), k.edit = (l && _) + "";
3337
3360
  const F = ($) => {
3338
- ve.Blur($), g && g({ value: $.target.textContent, name: n });
3361
+ pe.Blur($), g && g({ value: $.target.textContent, name: n });
3339
3362
  };
3340
3363
  return /* @__PURE__ */ a.jsxs("dl", { ...N, children: [
3341
3364
  s ? /* @__PURE__ */ a.jsx("dt", { children: s }) : "",
@@ -3345,11 +3368,11 @@ function $e({
3345
3368
  onPaste: b,
3346
3369
  onInput: w,
3347
3370
  onBlur: F,
3348
- onKeyDown: k,
3371
+ onKeyDown: y,
3349
3372
  onContextMenu: R,
3350
3373
  contentEditable: l && _ ? "plaintext-only" : "false",
3351
3374
  suppressContentEditableWarning: !0,
3352
- ...j,
3375
+ ...k,
3353
3376
  children: e
3354
3377
  }
3355
3378
  ),
@@ -3357,7 +3380,7 @@ function $e({
3357
3380
  ] });
3358
3381
  }
3359
3382
  function In({ onClick: e, onSend: t, name: n, onRef: r }) {
3360
- let [s, i] = x.useState(!1);
3383
+ let [s, i] = h.useState(!1);
3361
3384
  const c = () => {
3362
3385
  if (e)
3363
3386
  return e();
@@ -3385,7 +3408,7 @@ function Dn({
3385
3408
  active: l = !0,
3386
3409
  placeholder: _ = "Введите сообщение"
3387
3410
  }) {
3388
- const d = x.useRef({
3411
+ const d = h.useRef({
3389
3412
  value: e,
3390
3413
  timerId: null,
3391
3414
  shift: !1,
@@ -3394,14 +3417,14 @@ function Dn({
3394
3417
  d.current.value.length > 0 ? d.current.send && (n(!0), d.current.send = !1, d.current.timerId = setTimeout(() => {
3395
3418
  d.current.send = !0;
3396
3419
  }, 3e3)) : n(!1);
3397
- }, m = (k) => {
3398
- d.current.value = k.target.textContent, u();
3399
- }, h = (k) => {
3400
- k.keyCode === 16 && (d.current.shift = !0), k.keyCode === 13 && !d.current.shift && (k.preventDefault(), d.current.value.length !== 0 && (k.target.textContent = "", r && r(d.current.value), t && t(d.current.value), d.current.value = "", n(!1)));
3401
- }, g = (k) => {
3402
- k.keyCode === 16 && (d.current.shift = !1);
3403
- }, v = (k) => {
3404
- k.preventDefault(), navigator.clipboard.readText().then((b) => {
3420
+ }, m = (y) => {
3421
+ d.current.value = y.target.textContent, u();
3422
+ }, x = (y) => {
3423
+ y.keyCode === 16 && (d.current.shift = !0), y.keyCode === 13 && !d.current.shift && (y.preventDefault(), d.current.value.length !== 0 && (y.target.textContent = "", r && r(d.current.value), t && t(d.current.value), d.current.value = "", n(!1)));
3424
+ }, g = (y) => {
3425
+ y.keyCode === 16 && (d.current.shift = !1);
3426
+ }, v = (y) => {
3427
+ y.preventDefault(), navigator.clipboard.readText().then((b) => {
3405
3428
  window.document.execCommand("insertText", !1, b);
3406
3429
  }).catch((b) => {
3407
3430
  });
@@ -3416,7 +3439,7 @@ function Dn({
3416
3439
  onPaste: v,
3417
3440
  onInput: m,
3418
3441
  onKeyUp: g,
3419
- onKeyDown: h,
3442
+ onKeyDown: x,
3420
3443
  onBlur: C,
3421
3444
  ...w,
3422
3445
  suppressContentEditableWarning: !0,
@@ -3452,7 +3475,7 @@ function Mn(e) {
3452
3475
  ] });
3453
3476
  }
3454
3477
  function Fn({ value: e, onValue: t, placeholder: n = "", name: r }) {
3455
- let s = (g, v) => Number(Math.round(g + Math.random() * (v - g))), i = x.useRef(null), c = x.useRef(null), l = s(1e4, 99999), _ = (g) => {
3478
+ let s = (g, v) => Number(Math.round(g + Math.random() * (v - g))), i = h.useRef(null), c = h.useRef(null), l = s(1e4, 99999), _ = (g) => {
3456
3479
  g.key !== "Backspace" && (g.key === "Enter" && g.preventDefault(), g.target.textContent.length === 5 && g.preventDefault(), /\d/.test(g.key) || g.preventDefault());
3457
3480
  }, d = (g) => {
3458
3481
  t({ value: Number(g.target.textContent) === l, name: r });
@@ -3466,25 +3489,25 @@ function Fn({ value: e, onValue: t, placeholder: n = "", name: r }) {
3466
3489
  }).catch((v) => {
3467
3490
  });
3468
3491
  };
3469
- x.useEffect(() => {
3492
+ h.useEffect(() => {
3470
3493
  const g = i.current, v = g.getContext("2d");
3471
3494
  v.clearRect(0, 0, g.width, g.height), v.font = "30px brush script mt", v.fillStyle = "#eee", v.textAlign = "center", v.fillText(l, 50, 27), c.current.textContent = "";
3472
3495
  }, [l]);
3473
3496
  const m = {};
3474
3497
  m.field = "captcha";
3475
- const h = {};
3476
- return n && (h.placeholder = n), /* @__PURE__ */ a.jsxs("dl", { ...m, children: [
3498
+ const x = {};
3499
+ return n && (x.placeholder = n), /* @__PURE__ */ a.jsxs("dl", { ...m, children: [
3477
3500
  /* @__PURE__ */ a.jsx(
3478
3501
  "dd",
3479
3502
  {
3480
3503
  ref: c,
3481
3504
  onPaste: u,
3482
3505
  onInput: d,
3483
- onBlur: ve.Blur,
3506
+ onBlur: pe.Blur,
3484
3507
  onKeyDown: _,
3485
3508
  contentEditable: "plaintext-only",
3486
3509
  suppressContentEditableWarning: !0,
3487
- ...h
3510
+ ...x
3488
3511
  }
3489
3512
  ),
3490
3513
  /* @__PURE__ */ a.jsx("canvas", { ref: i, width: "100", height: "35" })
@@ -3626,7 +3649,7 @@ function Ln(e) {
3626
3649
  function $n(e) {
3627
3650
  let t = () => e.title ? /* @__PURE__ */ a.jsx("dt", { children: e.title }) : "", n = () => e.error ? /* @__PURE__ */ a.jsx("em", { children: e.error }) : "";
3628
3651
  e.edit !== void 0 && e.edit, e.active !== void 0 && e.active;
3629
- let [r, s] = x.useState(e.value), i = (c) => {
3652
+ let [r, s] = h.useState(e.value), i = (c) => {
3630
3653
  let l = c.target.getAttribute("set-color");
3631
3654
  s(l), e.onValue({ value: l, name: e.name });
3632
3655
  };
@@ -3653,15 +3676,15 @@ function $n(e) {
3653
3676
  }
3654
3677
  ) });
3655
3678
  }
3656
- const Ko = "_o_ff5dx_1", Wo = "_c_ff5dx_11", je = {
3657
- o: Ko,
3658
- c: Wo
3679
+ const Vo = "_o_ff5dx_1", Uo = "_c_ff5dx_11", je = {
3680
+ o: Vo,
3681
+ c: Uo
3659
3682
  };
3660
3683
  function Et(e) {
3661
- let t = () => e.title ? /* @__PURE__ */ a.jsx("dt", { children: e.title }) : "", n = () => e.error ? /* @__PURE__ */ a.jsx("em", { children: e.error }) : "", r = e.edit !== void 0 ? e.edit : !0, s = e.active !== void 0 ? e.active : !0, i = e.placeholder !== void 0 ? e.placeholder : "", [c, l] = x.useState(
3684
+ let t = () => e.title ? /* @__PURE__ */ a.jsx("dt", { children: e.title }) : "", n = () => e.error ? /* @__PURE__ */ a.jsx("em", { children: e.error }) : "", r = e.edit !== void 0 ? e.edit : !0, s = e.active !== void 0 ? e.active : !0, i = e.placeholder !== void 0 ? e.placeholder : "", [c, l] = h.useState(
3662
3685
  e.value === void 0 ? /* @__PURE__ */ new Date() : e.value
3663
3686
  ), _ = !r && s;
3664
- x.useEffect(() => {
3687
+ h.useEffect(() => {
3665
3688
  l(e.value === void 0 ? /* @__PURE__ */ new Date() : e.value);
3666
3689
  }, [e.value]);
3667
3690
  let d = (g) => {
@@ -3671,7 +3694,7 @@ function Et(e) {
3671
3694
  we.setListener(
3672
3695
  "form",
3673
3696
  /* @__PURE__ */ a.jsx(
3674
- Vo,
3697
+ Yo,
3675
3698
  {
3676
3699
  position: { x: C, y: w },
3677
3700
  onValue: d,
@@ -3683,8 +3706,8 @@ function Et(e) {
3683
3706
  };
3684
3707
  const m = {};
3685
3708
  m.field = "input";
3686
- const h = {};
3687
- return i && (h.placeholder = i), _ ? /* @__PURE__ */ a.jsx(a.Fragment, {}) : /* @__PURE__ */ a.jsx(a.Fragment, { children: e.view === "icon" ? /* @__PURE__ */ a.jsx(
3709
+ const x = {};
3710
+ return i && (x.placeholder = i), _ ? /* @__PURE__ */ a.jsx(a.Fragment, {}) : /* @__PURE__ */ a.jsx(a.Fragment, { children: e.view === "icon" ? /* @__PURE__ */ a.jsx(
3688
3711
  "i",
3689
3712
  {
3690
3713
  "data-icon": "F043",
@@ -3702,7 +3725,7 @@ function Et(e) {
3702
3725
  "dd",
3703
3726
  {
3704
3727
  onClick: u,
3705
- ...h,
3728
+ ...x,
3706
3729
  "data-edit": (r && s) + "",
3707
3730
  children: G.Date(c, "dd.mm.yyyy")
3708
3731
  }
@@ -3712,8 +3735,8 @@ function Et(e) {
3712
3735
  }
3713
3736
  ) });
3714
3737
  }
3715
- const Vo = (e) => {
3716
- let [t, n] = x.useState(!0), r = /* @__PURE__ */ new Date(), s = new Date(e.date), i = {
3738
+ const Yo = (e) => {
3739
+ let [t, n] = h.useState(!0), r = /* @__PURE__ */ new Date(), s = new Date(e.date), i = {
3717
3740
  y: parseInt(r.getFullYear()),
3718
3741
  d: parseInt(r.getDate()),
3719
3742
  m: parseInt(r.getMonth()) + 1
@@ -3721,26 +3744,26 @@ const Vo = (e) => {
3721
3744
  y: parseInt(s.getFullYear()),
3722
3745
  d: parseInt(s.getDate()),
3723
3746
  m: parseInt(s.getMonth()) + 1
3724
- }, [l, _] = x.useState({ y: c.y, m: c.m }), d = (j) => {
3725
- let F = j.getDay();
3747
+ }, [l, _] = h.useState({ y: c.y, m: c.m }), d = (k) => {
3748
+ let F = k.getDay();
3726
3749
  return F === 0 && (F = 7), F - 1;
3727
- }, u = ["пн", "вт", "ср", "чт", "пт", "сб", "вс"], m = l.m - 1, h = new Date(l.y, m), g = [];
3728
- for (let j = 0; j < d(h); j++)
3750
+ }, u = ["пн", "вт", "ср", "чт", "пт", "сб", "вс"], m = l.m - 1, x = new Date(l.y, m), g = [];
3751
+ for (let k = 0; k < d(x); k++)
3729
3752
  g.push(0);
3730
- for (; h.getMonth() === m; )
3731
- g.push(h.getDate()), h.setDate(h.getDate() + 1);
3753
+ for (; x.getMonth() === m; )
3754
+ g.push(x.getDate()), x.setDate(x.getDate() + 1);
3732
3755
  let v = () => {
3733
3756
  n(!1);
3734
3757
  }, C = () => {
3735
3758
  b(l.m + 1, l.y);
3736
3759
  }, w = () => {
3737
3760
  b(l.m - 1, l.y);
3738
- }, k = (j) => {
3761
+ }, y = (k) => {
3739
3762
  e.onValue(
3740
- l.y + "-" + G.Number(2, l.m) + "-" + G.Number(2, j)
3763
+ l.y + "-" + G.Number(2, l.m) + "-" + G.Number(2, k)
3741
3764
  ), v();
3742
- }, b = (j, F) => {
3743
- F = j > 12 ? F + 1 : j < 1 ? F - 1 : F, j = j > 12 ? 1 : j < 1 ? 12 : j, _({ y: F, m: j });
3765
+ }, b = (k, F) => {
3766
+ F = k > 12 ? F + 1 : k < 1 ? F - 1 : F, k = k > 12 ? 1 : k < 1 ? 12 : k, _({ y: F, m: k });
3744
3767
  }, R = window.innerHeight - e.position.y + 33 < 320 ? e.position.y - 312 : e.position.y + 33, N = window.innerWidth - e.position.x < 265 ? e.position.x - 235 : e.position.x;
3745
3768
  return /* @__PURE__ */ a.jsx(a.Fragment, { children: t ? /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
3746
3769
  /* @__PURE__ */ a.jsx(
@@ -3767,13 +3790,13 @@ const Vo = (e) => {
3767
3790
  /* @__PURE__ */ a.jsx("i", { "data-icon": "F022", onClick: () => C() })
3768
3791
  ] }),
3769
3792
  /* @__PURE__ */ a.jsxs("div", { children: [
3770
- u.map((j, F) => /* @__PURE__ */ a.jsx("p", { children: j }, "v" + F)),
3771
- g.map((j, F) => /* @__PURE__ */ a.jsx("span", { children: j !== 0 ? /* @__PURE__ */ a.jsx(
3793
+ u.map((k, F) => /* @__PURE__ */ a.jsx("p", { children: k }, "v" + F)),
3794
+ g.map((k, F) => /* @__PURE__ */ a.jsx("span", { children: k !== 0 ? /* @__PURE__ */ a.jsx(
3772
3795
  "b",
3773
3796
  {
3774
- color: i.y === l.y && i.m === l.m && i.d === j ? "_FFEB3B" : "",
3775
- onClick: () => k(j),
3776
- children: j
3797
+ color: i.y === l.y && i.m === l.m && i.d === k ? "_FFEB3B" : "",
3798
+ onClick: () => y(k),
3799
+ children: k
3777
3800
  }
3778
3801
  ) : /* @__PURE__ */ a.jsx("p", {}) }, F))
3779
3802
  ] })
@@ -3795,17 +3818,17 @@ function Rt({
3795
3818
  active: d = !0,
3796
3819
  after: u = "",
3797
3820
  view: m,
3798
- modal: h,
3821
+ modal: x,
3799
3822
  module: g,
3800
3823
  options: v
3801
3824
  }) {
3802
- let [C, w] = x.useState(e), k = (b) => {
3803
- if (!h)
3825
+ let [C, w] = h.useState(e), y = (R) => {
3826
+ if (!x)
3804
3827
  return;
3805
- let R = h.split(".");
3806
- wt.Open(R[0], R[1], {
3807
- callback: (N) => {
3808
- t && t({ value: N, name: n }), w(N);
3828
+ let N = x.split(".");
3829
+ wt.Open(N[0], N[1], {
3830
+ callback: (k) => {
3831
+ t && t({ value: k, name: n }), w(k);
3809
3832
  },
3810
3833
  onValue: t,
3811
3834
  options: v,
@@ -3813,12 +3836,13 @@ function Rt({
3813
3836
  value: e
3814
3837
  });
3815
3838
  };
3816
- return c ? /* @__PURE__ */ a.jsx(a.Fragment, {}) : /* @__PURE__ */ a.jsxs("dl", { "data-form": "select", "data-view": m, children: [
3839
+ const b = {};
3840
+ return b.field = "input", c ? /* @__PURE__ */ a.jsx(a.Fragment, {}) : /* @__PURE__ */ a.jsxs("dl", { ...b, children: [
3817
3841
  s ? /* @__PURE__ */ a.jsx("dt", { children: s }) : "",
3818
3842
  /* @__PURE__ */ a.jsx(
3819
3843
  "dd",
3820
3844
  {
3821
- onClick: k,
3845
+ onClick: y,
3822
3846
  "data-edit": (l && d) + "",
3823
3847
  "data-placeholder": r,
3824
3848
  "data-after": u,
@@ -3829,9 +3853,9 @@ function Rt({
3829
3853
  ] });
3830
3854
  }
3831
3855
  function Nt(e) {
3832
- let t = e.value, n = (m) => e.type === "multi" ? m.replace(/[^+\d.+-]/g, "") : m.replace(/[^+\d.]/g, ""), r = (m, h) => {
3856
+ let t = e.value, n = (m) => e.type === "multi" ? m.replace(/[^+\d.+-]/g, "") : m.replace(/[^+\d.]/g, ""), r = (m, x) => {
3833
3857
  let g = document.createRange(), v = window.getSelection();
3834
- g.setStart(h.childNodes[0], m), g.collapse(!0), v.removeAllRanges(), v.addRange(g), h.focus();
3858
+ g.setStart(x.childNodes[0], m), g.collapse(!0), v.removeAllRanges(), v.addRange(g), x.focus();
3835
3859
  }, s = (m) => {
3836
3860
  e.onValue({
3837
3861
  value: n(m.target.textContent),
@@ -3847,9 +3871,9 @@ function Nt(e) {
3847
3871
  }, l = (m) => {
3848
3872
  m.key === "Enter" && m.preventDefault();
3849
3873
  }, _ = (m) => {
3850
- m.preventDefault(), navigator.clipboard.readText().then((h) => {
3851
- h = h.replace(/^\s*/, "").replace(/\s*$/, ""), window.document.execCommand("insertText", !1, h);
3852
- }).catch((h) => {
3874
+ m.preventDefault(), navigator.clipboard.readText().then((x) => {
3875
+ x = x.replace(/^\s*/, "").replace(/\s*$/, ""), window.document.execCommand("insertText", !1, x);
3876
+ }).catch((x) => {
3853
3877
  });
3854
3878
  }, d = () => e.title ? /* @__PURE__ */ a.jsx("dt", { children: e.title }) : "", u = () => e.error ? /* @__PURE__ */ a.jsx("em", { children: e.error }) : "";
3855
3879
  return /* @__PURE__ */ a.jsxs(
@@ -3889,23 +3913,23 @@ function Pn({
3889
3913
  placeholder: _ = "",
3890
3914
  after: d
3891
3915
  }) {
3892
- let [u, m] = x.useState(e);
3893
- x.useEffect(() => {
3916
+ let [u, m] = h.useState(e);
3917
+ h.useEffect(() => {
3894
3918
  m(e);
3895
3919
  }, [e]);
3896
- let h = (C) => {
3920
+ let x = (C) => {
3897
3921
  m(C), t && t({ value: C, name: n });
3898
3922
  }, g = (C) => {
3899
3923
  if (!i || !c)
3900
3924
  return;
3901
- const w = C.target.getBoundingClientRect(), k = w.left, b = w.top;
3925
+ const w = C.target.getBoundingClientRect(), y = w.left, b = w.top;
3902
3926
  we.setListener(
3903
3927
  "form",
3904
3928
  /* @__PURE__ */ a.jsx(
3905
- Uo,
3929
+ Ho,
3906
3930
  {
3907
- position: { x: k, y: b },
3908
- onValue: h,
3931
+ position: { x: y, y: b },
3932
+ onValue: x,
3909
3933
  date: u
3910
3934
  },
3911
3935
  (/* @__PURE__ */ new Date()).getTime()
@@ -3937,22 +3961,22 @@ function Pn({
3937
3961
  }
3938
3962
  ) });
3939
3963
  }
3940
- const Uo = (e) => {
3941
- let [t, n] = x.useState(!0), r = /* @__PURE__ */ new Date(), s = new Date(e.date), i = {
3964
+ const Ho = (e) => {
3965
+ let [t, n] = h.useState(!0), r = /* @__PURE__ */ new Date(), s = new Date(e.date), i = {
3942
3966
  y: parseInt(r.getFullYear()),
3943
3967
  m: parseInt(r.getMonth()) + 1
3944
3968
  }, c = {
3945
3969
  y: parseInt(s.getFullYear()),
3946
3970
  m: parseInt(s.getMonth()) + 1
3947
- }, [l, _] = x.useState(c.y), d = () => {
3971
+ }, [l, _] = h.useState(c.y), d = () => {
3948
3972
  n(!1);
3949
3973
  }, u = () => {
3950
3974
  _(l + 1);
3951
3975
  }, m = () => {
3952
3976
  _(l - 1);
3953
- }, h = (k) => {
3954
- e.onValue(l + "-" + G.Number(2, k)), d();
3955
- }, g = (k) => i.y === c.y && i.m === k ? "_FFEB3B" : "", v = Array(12).fill("").map((k, b) => b + 1), C = window.innerHeight - e.position.y + 33 < 320 ? e.position.y - 312 : e.position.y + 33, w = window.innerWidth - e.position.x < 265 ? e.position.x - 235 : e.position.x;
3977
+ }, x = (y) => {
3978
+ e.onValue(l + "-" + G.Number(2, y)), d();
3979
+ }, g = (y) => i.y === c.y && i.m === y ? "_FFEB3B" : "", v = Array(12).fill("").map((y, b) => b + 1), C = window.innerHeight - e.position.y + 33 < 320 ? e.position.y - 312 : e.position.y + 33, w = window.innerWidth - e.position.x < 265 ? e.position.x - 235 : e.position.x;
3956
3980
  return /* @__PURE__ */ a.jsx(a.Fragment, { children: t ? /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
3957
3981
  /* @__PURE__ */ a.jsx(
3958
3982
  "div",
@@ -3976,14 +4000,14 @@ const Uo = (e) => {
3976
4000
  /* @__PURE__ */ a.jsx(
3977
4001
  "div",
3978
4002
  {
3979
- children: v.map((k, b) => /* @__PURE__ */ a.jsx(
4003
+ children: v.map((y, b) => /* @__PURE__ */ a.jsx(
3980
4004
  "span",
3981
4005
  {
3982
4006
  onClick: () => {
3983
- h(k);
4007
+ x(y);
3984
4008
  },
3985
- color: g(k),
3986
- children: /* @__PURE__ */ a.jsx("b", { children: G.Month(k).abc })
4009
+ color: g(y),
4010
+ children: /* @__PURE__ */ a.jsx("b", { children: G.Month(y).abc })
3987
4011
  },
3988
4012
  b
3989
4013
  ))
@@ -3995,7 +4019,7 @@ const Uo = (e) => {
3995
4019
  ] }) : "" });
3996
4020
  };
3997
4021
  function Bn(e) {
3998
- let t = () => e.title ? /* @__PURE__ */ a.jsx("dt", { children: e.title }) : "", n = () => e.error ? /* @__PURE__ */ a.jsx("em", { children: e.error }) : "", [r, s] = x.useState(!1), i = e.edit !== void 0 ? e.edit : !0, c = e.active !== void 0 ? e.active : !0, _ = !!(e.hide && (e.value === "" || e.value === void 0)) && !(i && c);
4022
+ let t = () => e.title ? /* @__PURE__ */ a.jsx("dt", { children: e.title }) : "", n = () => e.error ? /* @__PURE__ */ a.jsx("em", { children: e.error }) : "", [r, s] = h.useState(!1), i = e.edit !== void 0 ? e.edit : !0, c = e.active !== void 0 ? e.active : !0, _ = !!(e.hide && (e.value === "" || e.value === void 0)) && !(i && c);
3999
4023
  r = i ? !0 : r;
4000
4024
  let d = e.placeholder !== void 0 ? e.placeholder : "Заметка пуста", u = (C) => {
4001
4025
  e.onValue({ value: C.target.innerText, name: e.name });
@@ -4004,7 +4028,7 @@ function Bn(e) {
4004
4028
  window.document.execCommand("insertText", !1, w);
4005
4029
  }).catch((w) => {
4006
4030
  });
4007
- }, h = (C) => {
4031
+ }, x = (C) => {
4008
4032
  i || s(!r);
4009
4033
  };
4010
4034
  const g = {};
@@ -4021,7 +4045,7 @@ function Bn(e) {
4021
4045
  "data-edit": (i && c) + "",
4022
4046
  "data-open": "" + r,
4023
4047
  ...v,
4024
- onDoubleClick: h,
4048
+ onDoubleClick: x,
4025
4049
  suppressContentEditableWarning: !0,
4026
4050
  children: e.value
4027
4051
  }
@@ -4042,23 +4066,23 @@ function Tt({
4042
4066
  placeholder: d,
4043
4067
  className: u,
4044
4068
  name: m,
4045
- after: h,
4069
+ after: x,
4046
4070
  view: g
4047
4071
  }) {
4048
4072
  let v = () => s ? /* @__PURE__ */ a.jsx("dt", { children: s }) : "", C = () => i ? /* @__PURE__ */ a.jsx("em", { children: i }) : "";
4049
4073
  r = r !== void 0 ? r : !0, t = t !== void 0 ? t : !0, l = !!(l && (_ === "" || _ === void 0)) && !(r && t), d = d !== void 0 ? d : "", n = n !== void 0 ? n : 99;
4050
- let k = !1, b = (P) => {
4074
+ let y = !1, b = (P) => {
4051
4075
  e && e({ value: P.target.textContent, name: m });
4052
4076
  }, R = (P) => {
4053
- if (!(k && P.which === 86)) {
4077
+ if (!(y && P.which === 86)) {
4054
4078
  if (P.which === 17 || P.which === 91)
4055
- return k = !0;
4079
+ return y = !0;
4056
4080
  P.key !== "Backspace" && (P.target.textContent.length === n && P.preventDefault(), P.key === "Enter" && P.preventDefault(), isNaN(parseInt(String.fromCharCode(P.which))) && P.preventDefault());
4057
4081
  }
4058
4082
  }, N = (P) => {
4059
4083
  if (P.which === 17 || P.which === 91)
4060
- return k = !1;
4061
- }, j = (P) => {
4084
+ return y = !1;
4085
+ }, k = (P) => {
4062
4086
  P.preventDefault(), navigator.clipboard.readText().then((H) => {
4063
4087
  H = H.replace(/\D/g, ""), window.document.execCommand(
4064
4088
  "insertText",
@@ -4071,13 +4095,13 @@ function Tt({
4071
4095
  const F = {};
4072
4096
  F.field = "input", u && (F.className = u);
4073
4097
  let $ = {};
4074
- return r && t ? ($.edit = "true", $.contentEditable = "plaintext-only") : $.contentEditable = "false", d && ($.placeholder = d), h && ($.after = h), l ? /* @__PURE__ */ a.jsx(a.Fragment, {}) : /* @__PURE__ */ a.jsxs("dl", { ...F, children: [
4098
+ return r && t ? ($.edit = "true", $.contentEditable = "plaintext-only") : $.contentEditable = "false", d && ($.placeholder = d), x && ($.after = x), l ? /* @__PURE__ */ a.jsx(a.Fragment, {}) : /* @__PURE__ */ a.jsxs("dl", { ...F, children: [
4075
4099
  v(),
4076
4100
  /* @__PURE__ */ a.jsx(
4077
4101
  "dd",
4078
4102
  {
4079
4103
  ...$,
4080
- onPaste: j,
4104
+ onPaste: k,
4081
4105
  onInput: b,
4082
4106
  onKeyDown: R,
4083
4107
  onKeyUp: N,
@@ -4107,16 +4131,16 @@ function On({
4107
4131
  name: n,
4108
4132
  reload: d
4109
4133
  });
4110
- }, h = (w) => {
4134
+ }, x = (w) => {
4111
4135
  w.key === "Enter" && w.preventDefault();
4112
4136
  }, g = (w) => {
4113
- w.preventDefault(), navigator.clipboard.readText().then((k) => {
4137
+ w.preventDefault(), navigator.clipboard.readText().then((y) => {
4114
4138
  window.document.execCommand(
4115
4139
  "insertText",
4116
4140
  !1,
4117
- k.replace(/(\r\n|\n|\r)/gm, " ")
4141
+ y.replace(/(\r\n|\n|\r)/gm, " ")
4118
4142
  );
4119
- }).catch((k) => {
4143
+ }).catch((y) => {
4120
4144
  });
4121
4145
  };
4122
4146
  const v = {};
@@ -4129,8 +4153,8 @@ function On({
4129
4153
  {
4130
4154
  onPaste: g,
4131
4155
  onInput: m,
4132
- onKeyDown: h,
4133
- onBlur: ve.Blur,
4156
+ onKeyDown: x,
4157
+ onBlur: pe.Blur,
4134
4158
  contentEditable: l && _ ? "plaintext-only" : "false",
4135
4159
  ...C,
4136
4160
  suppressContentEditableWarning: !0,
@@ -4140,7 +4164,7 @@ function On({
4140
4164
  c ? /* @__PURE__ */ a.jsx("em", { children: c }) : ""
4141
4165
  ] });
4142
4166
  }
4143
- const ct = {
4167
+ const dt = {
4144
4168
  0: {
4145
4169
  name: "Heard Island and Mcdonald Islands",
4146
4170
  dial_code: "+0",
@@ -5535,10 +5559,10 @@ function It({
5535
5559
  after: d = "",
5536
5560
  show: u = !0,
5537
5561
  view: m,
5538
- className: h = ""
5562
+ className: x = ""
5539
5563
  }) {
5540
- l = l !== void 0 ? l : !0, _ = _ !== void 0 ? _ : !0, c = !!(c && (e === "" || e === void 0)) && !(l && _), x.useRef(null);
5541
- let v = "+_(___) ___-__-__", C = !0, w = 0, k = (V, B) => {
5564
+ l = l !== void 0 ? l : !0, _ = _ !== void 0 ? _ : !0, c = !!(c && (e === "" || e === void 0)) && !(l && _), h.useRef(null);
5565
+ let v = "+_(___) ___-__-__", C = !0, w = 0, y = (V, B) => {
5542
5566
  let ae = document.createRange(), K = window.getSelection();
5543
5567
  ae.setStart(B.childNodes[0], V), ae.collapse(!0), K.removeAllRanges(), K.addRange(ae), B.focus();
5544
5568
  }, b = (V) => {
@@ -5551,7 +5575,7 @@ function It({
5551
5575
  K === "" && (C = !0);
5552
5576
  let le = K.split(""), q = "";
5553
5577
  le.forEach((Ze) => {
5554
- C && (q += Ze, ct[q] !== void 0 && C ? (C = !1, v = ct[q].mask.replace(new RegExp("[0-9]", "g"), "_"), ae = ct[q].code) : (C && (w = ("" + q).length, v = `+${q}_(___) ___-__-__`.replace(
5578
+ C && (q += Ze, dt[q] !== void 0 && C ? (C = !1, v = dt[q].mask.replace(new RegExp("[0-9]", "g"), "_"), ae = dt[q].code) : (C && (w = ("" + q).length, v = `+${q}_(___) ___-__-__`.replace(
5555
5579
  new RegExp("[0-9]", "g"),
5556
5580
  "_"
5557
5581
  ), ae = ""), w > ("" + q).length && (C = !0, v = `+${q}_(___) ___-__-__`.replace(
@@ -5571,14 +5595,14 @@ function It({
5571
5595
  function(B) {
5572
5596
  }
5573
5597
  );
5574
- }, j = R(e), F = (V) => {
5598
+ }, k = R(e), F = (V) => {
5575
5599
  let B = R(V.target.textContent);
5576
- V.target.textContent = B.q, B.i = B.q.lastIndexOf(B.v.substr(-1)), B.i < B.q.length && B.q !== v ? B.i++ : B.i = B.q.indexOf("_"), k(B.i, V.target), t && t({ value: B.q.replace(/\D/g, ""), name: n });
5600
+ V.target.textContent = B.q, B.i = B.q.lastIndexOf(B.v.substr(-1)), B.i < B.q.length && B.q !== v ? B.i++ : B.i = B.q.indexOf("_"), y(B.i, V.target), t && t({ value: B.q.replace(/\D/g, ""), name: n });
5577
5601
  }, $ = (V) => {
5578
5602
  V.key === "Enter" && V.preventDefault();
5579
5603
  };
5580
5604
  const P = {};
5581
- P.field = "input", h && (P.className = h);
5605
+ P.field = "input", x && (P.className = x);
5582
5606
  let H = {};
5583
5607
  return l && _ ? (H.edit = "true", H.contentEditable = "plaintext-only") : H.contentEditable = "false", r && (H.placeholder = r), d && (H.after = d), c ? /* @__PURE__ */ a.jsx(a.Fragment, {}) : /* @__PURE__ */ a.jsxs("dl", { ...P, children: [
5584
5608
  s && /* @__PURE__ */ a.jsx("dt", { children: s }),
@@ -5591,7 +5615,7 @@ function It({
5591
5615
  onKeyDown: $,
5592
5616
  onContextMenu: N,
5593
5617
  suppressContentEditableWarning: !0,
5594
- children: j.q
5618
+ children: k.q
5595
5619
  }
5596
5620
  ),
5597
5621
  i && /* @__PURE__ */ a.jsx("em", { children: i })
@@ -5646,10 +5670,10 @@ function Dt({
5646
5670
  after: u,
5647
5671
  view: m
5648
5672
  }) {
5649
- const h = x.useRef();
5673
+ const x = h.useRef();
5650
5674
  s = !!(s && (i === "" || l[i].n === void 0)) && !(n && r);
5651
5675
  let v = i !== void 0 && i !== "" ? l[i].n : i, C = (R) => {
5652
- h.current.textContent = l[R].n, c && c({ value: R, name: d });
5676
+ x.current.textContent = l[R].n, c && c({ value: R, name: d });
5653
5677
  }, w = (R) => {
5654
5678
  if (!(n && r))
5655
5679
  return;
@@ -5657,7 +5681,7 @@ function Dt({
5657
5681
  we.setListener(
5658
5682
  "form",
5659
5683
  /* @__PURE__ */ a.jsx(
5660
- Yo,
5684
+ qo,
5661
5685
  {
5662
5686
  parent: N,
5663
5687
  onValue: C,
@@ -5667,15 +5691,15 @@ function Dt({
5667
5691
  (/* @__PURE__ */ new Date()).getTime()
5668
5692
  )
5669
5693
  );
5670
- }, k = { field: "select" }, b = { onClick: w };
5671
- return n && r && (b.edit = "true"), _ && (b.placeholder = _), u && (b.after = u), s ? "" : /* @__PURE__ */ a.jsxs("dl", { ...k, children: [
5694
+ }, y = { field: "select" }, b = { onClick: w };
5695
+ return n && r && (b.edit = "true"), _ && (b.placeholder = _), u && (b.after = u), s ? "" : /* @__PURE__ */ a.jsxs("dl", { ...y, children: [
5672
5696
  e && /* @__PURE__ */ a.jsx("dt", { children: e }),
5673
- /* @__PURE__ */ a.jsx("dd", { ...b, ref: h, children: v }),
5697
+ /* @__PURE__ */ a.jsx("dd", { ...b, ref: x, children: v }),
5674
5698
  t && /* @__PURE__ */ a.jsx("em", { children: t })
5675
5699
  ] });
5676
5700
  }
5677
- const Yo = ({ onValue: e, parent: t, view: n, options: r }) => {
5678
- let [s, i] = x.useState(!0), c = () => {
5701
+ const qo = ({ onValue: e, parent: t, view: n, options: r }) => {
5702
+ let [s, i] = h.useState(!0), c = () => {
5679
5703
  i(!1);
5680
5704
  }, l = (u) => {
5681
5705
  i(!1), e(u);
@@ -5717,7 +5741,7 @@ const Yo = ({ onValue: e, parent: t, view: n, options: r }) => {
5717
5741
  function Mt(e) {
5718
5742
  let t = () => e.title ? /* @__PURE__ */ a.jsx("dt", { children: e.title }) : "", n = () => e.error ? /* @__PURE__ */ a.jsx("em", { children: e.error }) : "", r = e.edit !== void 0 ? e.edit : !0, s = e.active !== void 0 ? e.active : !0, c = !!(e.hide && (e.default === "" || e.options[e.default] === void 0)) && !(r && s), l = e.placeholder !== void 0 ? e.placeholder : "", _ = (g) => {
5719
5743
  u(e.options[g]), e.onValue({ value: g, name: e.name });
5720
- }, [d, u] = x.useState(
5744
+ }, [d, u] = h.useState(
5721
5745
  e.default !== void 0 ? e.options[e.default] : e.default
5722
5746
  ), m = (g) => {
5723
5747
  if (!(r && s))
@@ -5726,7 +5750,7 @@ function Mt(e) {
5726
5750
  we.setListener(
5727
5751
  "form",
5728
5752
  /* @__PURE__ */ a.jsx(
5729
- Ho,
5753
+ Jo,
5730
5754
  {
5731
5755
  parent: v,
5732
5756
  onValue: _,
@@ -5737,8 +5761,8 @@ function Mt(e) {
5737
5761
  )
5738
5762
  );
5739
5763
  };
5740
- const h = {};
5741
- return l && (h.placeholder = l), c ? /* @__PURE__ */ a.jsx(a.Fragment, {}) : /* @__PURE__ */ a.jsxs(
5764
+ const x = {};
5765
+ return l && (x.placeholder = l), c ? /* @__PURE__ */ a.jsx(a.Fragment, {}) : /* @__PURE__ */ a.jsxs(
5742
5766
  "dl",
5743
5767
  {
5744
5768
  "data-form": "select",
@@ -5749,7 +5773,7 @@ function Mt(e) {
5749
5773
  {
5750
5774
  onClick: m,
5751
5775
  "data-edit": (r && s) + "",
5752
- ...h,
5776
+ ...x,
5753
5777
  children: d
5754
5778
  }
5755
5779
  ),
@@ -5758,8 +5782,8 @@ function Mt(e) {
5758
5782
  }
5759
5783
  );
5760
5784
  }
5761
- const Ho = ({ onValue: e, parent: t, view: n, options: r }) => {
5762
- let [s, i] = x.useState(!0), c = () => {
5785
+ const Jo = ({ onValue: e, parent: t, view: n, options: r }) => {
5786
+ let [s, i] = h.useState(!0), c = () => {
5763
5787
  i(!1);
5764
5788
  }, l = (m) => {
5765
5789
  i(!1), e(m);
@@ -5782,7 +5806,7 @@ const Ho = ({ onValue: e, parent: t, view: n, options: r }) => {
5782
5806
  left: u + "px",
5783
5807
  width: t.width
5784
5808
  },
5785
- children: /* @__PURE__ */ a.jsx("ul", { children: Object.keys(r).map((m, h) => /* @__PURE__ */ a.jsx(
5809
+ children: /* @__PURE__ */ a.jsx("ul", { children: Object.keys(r).map((m, x) => /* @__PURE__ */ a.jsx(
5786
5810
  "li",
5787
5811
  {
5788
5812
  onClick: () => {
@@ -5790,13 +5814,13 @@ const Ho = ({ onValue: e, parent: t, view: n, options: r }) => {
5790
5814
  },
5791
5815
  children: r[m]
5792
5816
  },
5793
- h
5817
+ x
5794
5818
  )) })
5795
5819
  }
5796
5820
  )
5797
5821
  ] }) : "" });
5798
5822
  };
5799
- function pt({
5823
+ function Ct({
5800
5824
  set: e,
5801
5825
  value: t,
5802
5826
  onValue: n,
@@ -5809,7 +5833,7 @@ function pt({
5809
5833
  show: d = !0,
5810
5834
  active: u = !0,
5811
5835
  after: m = "",
5812
- view: h,
5836
+ view: x,
5813
5837
  module: g,
5814
5838
  item: v,
5815
5839
  className: C = ""
@@ -5823,7 +5847,7 @@ function pt({
5823
5847
  title: i,
5824
5848
  show: d,
5825
5849
  hide: l,
5826
- view: h,
5850
+ view: x,
5827
5851
  edit: _,
5828
5852
  active: u,
5829
5853
  value: t,
@@ -5840,7 +5864,7 @@ function pt({
5840
5864
  title: i,
5841
5865
  show: d,
5842
5866
  hide: l,
5843
- view: h,
5867
+ view: x,
5844
5868
  edit: _,
5845
5869
  active: u,
5846
5870
  value: t,
@@ -5858,7 +5882,7 @@ function pt({
5858
5882
  title: i,
5859
5883
  show: d,
5860
5884
  hide: l,
5861
- view: h,
5885
+ view: x,
5862
5886
  edit: _,
5863
5887
  active: u,
5864
5888
  value: t,
@@ -5876,7 +5900,7 @@ function pt({
5876
5900
  title: i,
5877
5901
  show: d,
5878
5902
  hide: l,
5879
- view: h,
5903
+ view: x,
5880
5904
  edit: _,
5881
5905
  active: u,
5882
5906
  value: t,
@@ -5893,7 +5917,7 @@ function pt({
5893
5917
  title: i,
5894
5918
  show: d,
5895
5919
  hide: l,
5896
- view: h,
5920
+ view: x,
5897
5921
  edit: _,
5898
5922
  active: u,
5899
5923
  value: t,
@@ -5910,7 +5934,7 @@ function pt({
5910
5934
  title: i,
5911
5935
  show: d,
5912
5936
  hide: l,
5913
- view: h,
5937
+ view: x,
5914
5938
  edit: _,
5915
5939
  active: u,
5916
5940
  value: t,
@@ -5927,7 +5951,7 @@ function pt({
5927
5951
  title: i,
5928
5952
  show: d,
5929
5953
  hide: l,
5930
- view: h,
5954
+ view: x,
5931
5955
  edit: _,
5932
5956
  active: u,
5933
5957
  value: t,
@@ -5944,7 +5968,7 @@ function pt({
5944
5968
  title: i,
5945
5969
  show: d,
5946
5970
  hide: l,
5947
- view: h,
5971
+ view: x,
5948
5972
  edit: _,
5949
5973
  active: u,
5950
5974
  value: t,
@@ -5997,18 +6021,18 @@ function zn(e) {
5997
6021
  let r = e.placeholder !== void 0 ? e.placeholder : "", s = G.Date(
5998
6022
  e.value === void 0 ? /* @__PURE__ */ new Date() : e.value,
5999
6023
  "HH:MM"
6000
- ), i = x.useRef(null), c = (u) => {
6024
+ ), i = h.useRef(null), c = (u) => {
6001
6025
  i.current.textContent = u, e.onValue && e.onValue({ value: u, name: e.name });
6002
6026
  }, l = (u) => {
6003
6027
  e.onSave && e.onSave({ value: u, name: e.name });
6004
6028
  }, _ = (u) => {
6005
- const m = u.target.getBoundingClientRect(), h = m.left, g = m.top;
6029
+ const m = u.target.getBoundingClientRect(), x = m.left, g = m.top;
6006
6030
  we.setListener(
6007
6031
  "form",
6008
6032
  /* @__PURE__ */ a.jsx(
6009
- qo,
6033
+ Xo,
6010
6034
  {
6011
- position: { x: h, y: g },
6035
+ position: { x, y: g },
6012
6036
  onSave: l,
6013
6037
  onValue: c,
6014
6038
  date: s
@@ -6043,36 +6067,36 @@ function zn(e) {
6043
6067
  }
6044
6068
  ) });
6045
6069
  }
6046
- const qo = (e) => {
6070
+ const Xo = (e) => {
6047
6071
  let t = e.date.split(":"), n = {
6048
6072
  h: G.Number(2, t[0]),
6049
6073
  m: G.Number(2, t[1])
6050
- }, r = "hour", [s, i] = x.useState({}), c = !1, l = 0, _ = 0, d = {
6051
- body: x.useRef(null),
6052
- time: x.useRef(null),
6053
- hour: x.useRef(null),
6054
- timeText: x.useRef(null),
6055
- hourText: x.useRef(null)
6074
+ }, r = "hour", [s, i] = h.useState({}), c = !1, l = 0, _ = 0, d = {
6075
+ body: h.useRef(null),
6076
+ time: h.useRef(null),
6077
+ hour: h.useRef(null),
6078
+ timeText: h.useRef(null),
6079
+ hourText: h.useRef(null)
6056
6080
  };
6057
- x.useEffect(() => {
6081
+ h.useEffect(() => {
6058
6082
  i(d.body.current.getBoundingClientRect()), d.hour.current.style.transform = "rotate(" + n.h * 15 + "deg)", d.time.current.style.transform = "rotate(" + n.m * 6 + "deg)";
6059
6083
  }, [d.body, d.hour, d.time, n.m, n.h]);
6060
6084
  let u = () => {
6061
6085
  c = !0;
6062
6086
  }, m = () => {
6063
6087
  c = !1, r = r === "hour" ? "time" : "hour", d.body.current.setAttribute("active", r);
6064
- }, h = (R) => {
6088
+ }, x = (R) => {
6065
6089
  if (c) {
6066
- let j = Math.atan2(
6090
+ let k = Math.atan2(
6067
6091
  R.pageX - (s.x + 78),
6068
6092
  R.pageY - (s.y + 78)
6069
6093
  ) * (180 / Math.PI) * -1 + 180;
6070
- d[r].current.style.transform = "rotate(" + j + "deg)", r === "hour" ? (n = {
6094
+ d[r].current.style.transform = "rotate(" + k + "deg)", r === "hour" ? (n = {
6071
6095
  ...n,
6072
- h: G.Number(2, parseInt(String(j / 15), 10))
6096
+ h: G.Number(2, parseInt(String(k / 15), 10))
6073
6097
  }, d.hourText.current.textContent = n.h) : (n = {
6074
6098
  ...n,
6075
- m: G.Number(2, parseInt(String(j / 6), 10))
6099
+ m: G.Number(2, parseInt(String(k / 6), 10))
6076
6100
  }, d.timeText.current.textContent = n.m), e.onValue(n.h + ":" + n.m);
6077
6101
  }
6078
6102
  }, g = (R) => {
@@ -6082,16 +6106,16 @@ const qo = (e) => {
6082
6106
  let N = parseInt(String(l / 50));
6083
6107
  if (_ !== N) {
6084
6108
  _ = N;
6085
- let j = parseInt(n.h, 10) + 1;
6086
- j = j > 23 ? 0 : j, n = { ...n, h: G.Number(2, j) }, d.hourText.current.textContent = n.h, d[r].current.style.transform = "rotate(" + n.h * 15 + "deg)";
6109
+ let k = parseInt(n.h, 10) + 1;
6110
+ k = k > 23 ? 0 : k, n = { ...n, h: G.Number(2, k) }, d.hourText.current.textContent = n.h, d[r].current.style.transform = "rotate(" + n.h * 15 + "deg)";
6087
6111
  }
6088
6112
  } else {
6089
6113
  l -= R.deltaY;
6090
6114
  let N = parseInt(String(l / 50));
6091
6115
  if (_ !== N) {
6092
6116
  _ = N;
6093
- let j = parseInt(n.h, 10) - 1;
6094
- j = j < 0 ? 23 : j, n = { ...n, h: G.Number(2, j) }, d.hourText.current.textContent = n.h, d[r].current.style.transform = "rotate(" + n.h * 15 + "deg)";
6117
+ let k = parseInt(n.h, 10) - 1;
6118
+ k = k < 0 ? 23 : k, n = { ...n, h: G.Number(2, k) }, d.hourText.current.textContent = n.h, d[r].current.style.transform = "rotate(" + n.h * 15 + "deg)";
6095
6119
  }
6096
6120
  }
6097
6121
  else if (R.deltaY > 0) {
@@ -6099,22 +6123,22 @@ const qo = (e) => {
6099
6123
  let N = parseInt(String(l / 50));
6100
6124
  if (_ !== N) {
6101
6125
  _ = N;
6102
- let j = parseInt(n.m, 10) + 1;
6103
- j = j > 59 ? 0 : j, n = { ...n, m: G.Number(2, j) }, d.timeText.current.textContent = n.m, d[r].current.style.transform = "rotate(" + n.m * 6 + "deg)";
6126
+ let k = parseInt(n.m, 10) + 1;
6127
+ k = k > 59 ? 0 : k, n = { ...n, m: G.Number(2, k) }, d.timeText.current.textContent = n.m, d[r].current.style.transform = "rotate(" + n.m * 6 + "deg)";
6104
6128
  }
6105
6129
  } else {
6106
6130
  l -= R.deltaY;
6107
6131
  let N = parseInt(String(l / 50));
6108
6132
  if (_ !== N) {
6109
6133
  _ = N;
6110
- let j = parseInt(n.m, 10) - 1;
6111
- j = j < 0 ? 59 : j, n = { ...n, m: G.Number(2, j) }, d.timeText.current.textContent = n.m, d[r].current.style.transform = "rotate(" + n.m * 6 + "deg)";
6134
+ let k = parseInt(n.m, 10) - 1;
6135
+ k = k < 0 ? 59 : k, n = { ...n, m: G.Number(2, k) }, d.timeText.current.textContent = n.m, d[r].current.style.transform = "rotate(" + n.m * 6 + "deg)";
6112
6136
  }
6113
6137
  }
6114
6138
  e.onValue(n.h + ":" + n.m);
6115
- }, [v, C] = x.useState(!0), w = () => {
6139
+ }, [v, C] = h.useState(!0), w = () => {
6116
6140
  C(!1), e.onSave(n.h + ":" + n.m);
6117
- }, k = window.innerHeight - e.position.y + 33 < 320 ? e.position.y - 312 : e.position.y + 33, b = window.innerWidth - e.position.x < 265 ? e.position.x - 235 : e.position.x;
6141
+ }, y = window.innerHeight - e.position.y + 33 < 320 ? e.position.y - 312 : e.position.y + 33, b = window.innerWidth - e.position.x < 265 ? e.position.x - 235 : e.position.x;
6118
6142
  return /* @__PURE__ */ a.jsx(a.Fragment, { children: v ? /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
6119
6143
  /* @__PURE__ */ a.jsx(
6120
6144
  "div",
@@ -6130,10 +6154,10 @@ const qo = (e) => {
6130
6154
  className: je.c,
6131
6155
  onMouseDown: u,
6132
6156
  onMouseUp: m,
6133
- onMouseMove: h,
6157
+ onMouseMove: x,
6134
6158
  onWheel: g,
6135
6159
  ref: d.body,
6136
- style: { top: k + "px", left: b + "px" },
6160
+ style: { top: y + "px", left: b + "px" },
6137
6161
  children: "xxxx"
6138
6162
  }
6139
6163
  )
@@ -6148,7 +6172,7 @@ function Gn({
6148
6172
  reload: i
6149
6173
  }) {
6150
6174
  n = !!n;
6151
- const [c, l] = x.useState(n), _ = () => {
6175
+ const [c, l] = h.useState(n), _ = () => {
6152
6176
  let m = !c;
6153
6177
  e({ name: s, value: m, reload: i }), l(m);
6154
6178
  }, d = {};
@@ -6160,21 +6184,21 @@ function Gn({
6160
6184
  ] });
6161
6185
  }
6162
6186
  const be = {};
6163
- function Jo(e) {
6164
- const [t, n] = x.useState({}), r = x.useRef(e);
6187
+ function Qo(e) {
6188
+ const [t, n] = h.useState({}), r = h.useRef(e);
6165
6189
  return be.u = (s) => {
6166
6190
  r.current = { ...r.current, [s.name]: s.value };
6167
6191
  }, be.r = () => {
6168
6192
  n(Date.now());
6169
6193
  }, r.current;
6170
6194
  }
6171
- function Xo(e) {
6195
+ function el(e) {
6172
6196
  be.u(e), e.reload && be.r();
6173
6197
  }
6174
- function Qo() {
6198
+ function tl() {
6175
6199
  be.r && be.r();
6176
6200
  }
6177
- const zl = {
6201
+ const Kl = {
6178
6202
  Color: $n,
6179
6203
  Date: Et,
6180
6204
  Code: Ln,
@@ -6194,16 +6218,16 @@ const zl = {
6194
6218
  Phone: It,
6195
6219
  Search: An,
6196
6220
  Select: Dt,
6197
- Set: pt,
6221
+ Set: Ct,
6198
6222
  Textarea: Zn,
6199
6223
  Time: zn,
6200
6224
  Users: Mt,
6201
6225
  String: $e,
6202
- Form: pt,
6203
- runReload: Qo,
6204
- useData: Jo,
6205
- setValue: Xo
6206
- }, Gl = {
6226
+ Form: Ct,
6227
+ runReload: tl,
6228
+ useData: Qo,
6229
+ setValue: el
6230
+ }, Wl = {
6207
6231
  Color: $n,
6208
6232
  Date: Et,
6209
6233
  Code: Ln,
@@ -6223,17 +6247,17 @@ const zl = {
6223
6247
  Phone: It,
6224
6248
  Search: An,
6225
6249
  Select: Dt,
6226
- Set: pt,
6250
+ Set: Ct,
6227
6251
  Textarea: Zn,
6228
6252
  Time: zn,
6229
6253
  Users: Mt,
6230
6254
  String: $e
6231
- }, el = "_spinner_1ul0m_1", tl = "_l_1ul0m_75", nl = "_loadingB_1ul0m_1", Kn = {
6232
- spinner: el,
6233
- l: tl,
6234
- loadingB: nl
6255
+ }, nl = "_spinner_1ul0m_1", al = "_l_1ul0m_75", rl = "_loadingB_1ul0m_1", Kn = {
6256
+ spinner: nl,
6257
+ l: al,
6258
+ loadingB: rl
6235
6259
  };
6236
- function al() {
6260
+ function sl() {
6237
6261
  return /* @__PURE__ */ a.jsx("div", { className: Kn.spinner, children: /* @__PURE__ */ a.jsx("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 483 484", children: /* @__PURE__ */ a.jsx(
6238
6262
  "path",
6239
6263
  {
@@ -6242,18 +6266,18 @@ function al() {
6242
6266
  }
6243
6267
  ) }) });
6244
6268
  }
6245
- function rl() {
6269
+ function il() {
6246
6270
  return /* @__PURE__ */ a.jsxs("div", { className: Kn.l, children: [
6247
6271
  /* @__PURE__ */ a.jsx("i", {}),
6248
6272
  /* @__PURE__ */ a.jsx("i", {}),
6249
6273
  /* @__PURE__ */ a.jsx("i", {})
6250
6274
  ] });
6251
6275
  }
6252
- const Kl = { Spinner: al, Inline: rl }, sl = "_s_t9swc_1", il = {
6253
- s: sl
6276
+ const Vl = { Spinner: sl, Inline: il }, ol = "_s_t9swc_1", ll = {
6277
+ s: ol
6254
6278
  };
6255
6279
  let Ft;
6256
- function ol() {
6280
+ function cl() {
6257
6281
  let e = (s) => {
6258
6282
  Ft(s.target.textContent);
6259
6283
  }, t = (s) => {
@@ -6268,7 +6292,7 @@ function ol() {
6268
6292
  return r.placeholder = "Что искать?", /* @__PURE__ */ a.jsx(
6269
6293
  "div",
6270
6294
  {
6271
- className: il.s,
6295
+ className: ll.s,
6272
6296
  onPaste: n,
6273
6297
  onInput: e,
6274
6298
  onKeyDown: t,
@@ -6278,7 +6302,7 @@ function ol() {
6278
6302
  }
6279
6303
  );
6280
6304
  }
6281
- function ll(e, t, n) {
6305
+ function dl(e, t, n) {
6282
6306
  let r = [], s = 1, i = 0, c = {}, l = 50;
6283
6307
  return c[s] = [], e.forEach((_) => {
6284
6308
  _.text.toLowerCase().indexOf(t) > -1 && r.push(_.id);
@@ -6286,17 +6310,17 @@ function ll(e, t, n) {
6286
6310
  i++, i <= l || (s++, i = 1, c[s] = []), c[s].push(n[_]);
6287
6311
  }), c;
6288
6312
  }
6289
- function cl(e) {
6313
+ function _l(e) {
6290
6314
  Ft = e;
6291
6315
  }
6292
- function dl(e) {
6316
+ function ul(e) {
6293
6317
  Ft = e;
6294
6318
  }
6295
- const Wl = { Field: ol, Run: ll, Get: cl, useValue: dl }, _l = "_f_q3r0i_1", ul = {
6296
- f: _l
6319
+ const Ul = { Field: cl, Run: dl, Get: _l, useValue: ul }, ml = "_f_q3r0i_1", fl = {
6320
+ f: ml
6297
6321
  };
6298
6322
  let ne = {};
6299
- function ml(e, t) {
6323
+ function hl(e, t) {
6300
6324
  switch (t.type) {
6301
6325
  case "open":
6302
6326
  return {
@@ -6346,8 +6370,8 @@ function ml(e, t) {
6346
6370
  throw new Error();
6347
6371
  }
6348
6372
  }
6349
- function fl() {
6350
- const [e, t] = x.useReducer(ml, {
6373
+ function xl() {
6374
+ const [e, t] = h.useReducer(hl, {
6351
6375
  open: !1,
6352
6376
  view: null,
6353
6377
  data: {},
@@ -6365,12 +6389,12 @@ function fl() {
6365
6389
  /* @__PURE__ */ a.jsxs(
6366
6390
  "div",
6367
6391
  {
6368
- className: ul.f,
6392
+ className: fl.f,
6369
6393
  onClick: () => {
6370
6394
  t({ type: "open", open: !0 });
6371
6395
  },
6372
6396
  children: [
6373
- /* @__PURE__ */ a.jsx(Zr, {}),
6397
+ /* @__PURE__ */ a.jsx(zr, {}),
6374
6398
  e.active && /* @__PURE__ */ a.jsxs("i", { children: [
6375
6399
  e.size,
6376
6400
  "1"
@@ -6390,7 +6414,7 @@ function fl() {
6390
6414
  ),
6391
6415
  /* @__PURE__ */ a.jsxs("div", { className: "filter m", children: [
6392
6416
  /* @__PURE__ */ a.jsx("div", { className: "filter l", children: Object.keys(e.data).map((n) => /* @__PURE__ */ a.jsx(
6393
- pl,
6417
+ kl,
6394
6418
  {
6395
6419
  data: n,
6396
6420
  dispatch: t,
@@ -6412,16 +6436,16 @@ function fl() {
6412
6436
  ] }) : /* @__PURE__ */ a.jsx(a.Fragment, {})
6413
6437
  ] });
6414
6438
  }
6415
- function hl(e) {
6439
+ function gl(e) {
6416
6440
  ne.get = e;
6417
6441
  }
6418
- function xl(e) {
6442
+ function vl(e) {
6419
6443
  ne.set !== void 0 && ne.set(e);
6420
6444
  }
6421
- function gl(e) {
6445
+ function pl(e) {
6422
6446
  ne.reset !== void 0 && ne.reset(e);
6423
6447
  }
6424
- function vl(e, t, n, r) {
6448
+ function Cl(e, t, n, r) {
6425
6449
  let s = [], i = 1, c = 0, l = {}, _ = 50;
6426
6450
  return l[i] = [], r === !0 && (Object.keys(t).forEach((d) => {
6427
6451
  Number.parseInt(t[d]) !== 999 && (e = e.filter(
@@ -6436,7 +6460,7 @@ function vl(e, t, n, r) {
6436
6460
  function Wn(e) {
6437
6461
  ne.count(e);
6438
6462
  }
6439
- function pl({ data: e, state: t, dispatch: n }) {
6463
+ function kl({ data: e, state: t, dispatch: n }) {
6440
6464
  let r = () => {
6441
6465
  n({ type: "view", view: e });
6442
6466
  }, s = () => {
@@ -6459,7 +6483,7 @@ function pl({ data: e, state: t, dispatch: n }) {
6459
6483
  ) : ""
6460
6484
  ] }),
6461
6485
  /* @__PURE__ */ a.jsx("div", { className: "filter u", "set-active": (t.view === e) + "", children: Object.keys(t.data[e].list).map((i, c) => /* @__PURE__ */ a.jsx(
6462
- Cl,
6486
+ yl,
6463
6487
  {
6464
6488
  data: t.data[e].list[i],
6465
6489
  head: e,
@@ -6471,7 +6495,7 @@ function pl({ data: e, state: t, dispatch: n }) {
6471
6495
  )) })
6472
6496
  ] });
6473
6497
  }
6474
- function Cl({ data: e, head: t, state: n, dispatch: r, type: s }) {
6498
+ function yl({ data: e, head: t, state: n, dispatch: r, type: s }) {
6475
6499
  if (s !== "999" && e.count === void 0)
6476
6500
  return "";
6477
6501
  const i = () => {
@@ -6490,11 +6514,11 @@ function Cl({ data: e, head: t, state: n, dispatch: r, type: s }) {
6490
6514
  }
6491
6515
  );
6492
6516
  }
6493
- const Vl = { Button: fl, useValue: hl, Set: xl, Run: vl, Count: Wn, Reset: gl }, Ul = { Bell: Hr, Send: Vr, Add: Wr }, kl = "_p_djnh1_1", yl = "_l_djnh1_38", Vn = {
6494
- p: kl,
6495
- l: yl
6517
+ const Yl = { Button: xl, useValue: gl, Set: vl, Run: Cl, Count: Wn, Reset: pl }, Hl = { Bell: qr, Send: Ur, Add: Vr }, jl = "_p_djnh1_1", bl = "_l_djnh1_38", Vn = {
6518
+ p: jl,
6519
+ l: bl
6496
6520
  };
6497
- function jl(e) {
6521
+ function wl(e) {
6498
6522
  let t = 3, n = e.page, r = e.count, s = [], i = () => {
6499
6523
  s.push({ page: 1 }), s.push({ text: "..." });
6500
6524
  }, c = () => {
@@ -6512,7 +6536,7 @@ function jl(e) {
6512
6536
  /* @__PURE__ */ a.jsx("i", { onClick: () => e.onChangePage(n + 1), children: /* @__PURE__ */ a.jsx("svg", { viewBox: "0 0 24 24", children: /* @__PURE__ */ a.jsx("path", { d: "M8.19486 5.40705C8.52237 4.96235 9.14837 4.86736 9.59306 5.19488C9.93847 5.44927 10.2668 5.70372 10.5528 5.92689C11.1236 6.3724 11.8882 6.98573 12.6556 7.65208C13.4181 8.31412 14.2064 9.04815 14.8119 9.73344C15.1136 10.0749 15.3911 10.4279 15.5986 10.7721C15.7895 11.0888 16 11.524 16 12.0001C16 12.4762 15.7895 12.9115 15.5986 13.2282C15.3911 13.5724 15.1136 13.9253 14.8119 14.2668C14.2064 14.9521 13.4181 15.6861 12.6556 16.3482C11.8882 17.0145 11.1236 17.6278 10.5528 18.0734C10.2668 18.2965 9.93847 18.551 9.59307 18.8054C9.14837 19.1329 8.52237 19.0379 8.19486 18.5932C8.0632 18.4144 7.99983 18.2064 8.00001 18.0002L8 12.0001L8 6.00007C7.99983 5.79387 8.0632 5.58581 8.19486 5.40705Z" }) }) })
6513
6537
  ] });
6514
6538
  }
6515
- function bl(e, t) {
6539
+ function Sl(e, t) {
6516
6540
  switch (t.type) {
6517
6541
  case "load":
6518
6542
  return {
@@ -6534,7 +6558,7 @@ function bl(e, t) {
6534
6558
  }
6535
6559
  }
6536
6560
  function Un({ load: e, list: t, item: n }) {
6537
- const r = x.useRef(null), [s, i] = x.useReducer(bl, {
6561
+ const r = h.useRef(null), [s, i] = h.useReducer(Sl, {
6538
6562
  load: !1,
6539
6563
  list: [],
6540
6564
  data: {},
@@ -6542,7 +6566,7 @@ function Un({ load: e, list: t, item: n }) {
6542
6566
  wait: !1,
6543
6567
  item: n
6544
6568
  });
6545
- x.useEffect(() => {
6569
+ h.useEffect(() => {
6546
6570
  t !== null && i({ type: "load", load: e, data: t });
6547
6571
  }, [e]);
6548
6572
  let c = (l) => {
@@ -6552,7 +6576,7 @@ function Un({ load: e, list: t, item: n }) {
6552
6576
  return l = s.size;
6553
6577
  i({ type: "page", page: l });
6554
6578
  };
6555
- return x.useEffect(() => {
6579
+ return h.useEffect(() => {
6556
6580
  }, [s]), /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
6557
6581
  /* @__PURE__ */ a.jsx("div", { className: Vn.l, ref: r, children: /* @__PURE__ */ a.jsx(Rn, { "el-empty": "Данные не найдены", children: s.load && s.list !== void 0 ? s.list.map((l) => /* @__PURE__ */ a.jsx(s.item, { data: l }, l.id)) : /* @__PURE__ */ a.jsxs("div", { "type-data": "load", children: [
6558
6582
  /* @__PURE__ */ a.jsx("i", {}),
@@ -6560,7 +6584,7 @@ function Un({ load: e, list: t, item: n }) {
6560
6584
  /* @__PURE__ */ a.jsx("i", {})
6561
6585
  ] }) }) }),
6562
6586
  s.load && s.list !== void 0 ? /* @__PURE__ */ a.jsx(
6563
- jl,
6587
+ wl,
6564
6588
  {
6565
6589
  page: s.page,
6566
6590
  count: s.size,
@@ -6569,15 +6593,15 @@ function Un({ load: e, list: t, item: n }) {
6569
6593
  ) : /* @__PURE__ */ a.jsx(a.Fragment, {})
6570
6594
  ] });
6571
6595
  }
6572
- const Yl = { Pagination: Un };
6573
- function wl({ head: e, load: t, list: n, item: r }) {
6596
+ const ql = { Pagination: Un };
6597
+ function El({ head: e, load: t, list: n, item: r }) {
6574
6598
  const s = e;
6575
6599
  return /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
6576
6600
  /* @__PURE__ */ a.jsx(s, {}),
6577
6601
  St.getSetting("s05") === 1 ? /* @__PURE__ */ a.jsx(Un, { list: n, load: t, item: r }) : /* @__PURE__ */ a.jsx(Nn, { list: n, load: t, item: r })
6578
6602
  ] });
6579
6603
  }
6580
- function Sl(e, t) {
6604
+ function Rl(e, t) {
6581
6605
  switch (t.type) {
6582
6606
  case "load":
6583
6607
  return {
@@ -6618,51 +6642,51 @@ function Sl(e, t) {
6618
6642
  throw new Error();
6619
6643
  }
6620
6644
  }
6621
- const Ct = {};
6622
- function El(e) {
6623
- Ct.get = e;
6645
+ const kt = {};
6646
+ function Nl(e) {
6647
+ kt.get = e;
6624
6648
  }
6625
- function Rl(e) {
6626
- Ct.get && Ct.get(e);
6649
+ function Tl(e) {
6650
+ kt.get && kt.get(e);
6627
6651
  }
6628
- const Hl = { View: wl, Reducer: Sl, useValue: El, setValue: Rl }, ql = { Get: es }, Jl = { Open: Fi };
6652
+ const Jl = { View: El, Reducer: Rl, useValue: Nl, setValue: Tl }, Xl = { Get: ts }, Ql = { Open: $i };
6629
6653
  export {
6630
- io as Action,
6631
- Fl as Alert,
6654
+ lo as Action,
6655
+ $l as Alert,
6632
6656
  nn as Api,
6633
- Pl as Badge,
6634
- Ml as Bookmarks,
6635
- Il as Browser,
6636
- Js as Button,
6637
- ql as Company,
6657
+ Ol as Badge,
6658
+ Ll as Bookmarks,
6659
+ Ml as Browser,
6660
+ Xs as Button,
6661
+ Xl as Company,
6638
6662
  un as Component,
6639
- Bl as DataBase,
6663
+ Al as DataBase,
6640
6664
  we as Event,
6641
6665
  we as Events,
6642
- Zl as Files,
6643
- Vl as Filter,
6644
- zl as Form,
6666
+ Gl as Files,
6667
+ Yl as Filter,
6668
+ Kl as Form,
6645
6669
  G as Format,
6646
- Ol as HotKey,
6647
- Ll as Icon,
6648
- Wi as Init,
6649
- Gl as Input,
6650
- Hl as List,
6651
- Kl as Loading,
6670
+ Zl as HotKey,
6671
+ Pl as Icon,
6672
+ Ui as Init,
6673
+ Wl as Input,
6674
+ Jl as List,
6675
+ Vl as Loading,
6652
6676
  wt as Modal,
6653
6677
  Le as Notice,
6654
- Ul as Notifications,
6655
- Yl as Pagination,
6656
- Jl as Phone,
6678
+ Hl as Notifications,
6679
+ ql as Pagination,
6680
+ Ql as Phone,
6657
6681
  Ue as Router,
6658
- Al as Scrolling,
6659
- Wl as Search,
6660
- Dl as Setting,
6661
- jt as Sistym,
6682
+ zl as Scrolling,
6683
+ Ul as Search,
6684
+ Fl as Setting,
6685
+ bt as Sistym,
6662
6686
  ce as Socket,
6663
6687
  se as Store,
6664
- Ji as Tabs,
6665
- $l as Triage,
6688
+ Qi as Tabs,
6689
+ Bl as Triage,
6666
6690
  St as User,
6667
6691
  O as WebRTC
6668
6692
  };