elcrm 0.7.2 → 0.7.4

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,10 +1,10 @@
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
3
  var ot = (e, t, n) => (ya(e, typeof t != "symbol" ? t + "" : t, n), n);
4
- import g, { createElement as ja } from "react";
4
+ import x, { createElement as ja } from "react";
5
5
  let kt = {};
6
6
  const ba = (e) => {
7
- console.log("+++++", e), kt = e;
7
+ kt = e;
8
8
  }, wa = (e) => kt.enCode(e), Sa = (e) => kt.deCode(e), D = { enCode: wa, deCode: Sa, New: ba }, E = {}, Q = {}, ke = {}, mn = {}, he = {};
9
9
  let yt = "M06";
10
10
  function Ea(e) {
@@ -14,8 +14,7 @@ function Ra() {
14
14
  return yt;
15
15
  }
16
16
  function Na(e) {
17
- let t = localStorage.getItem("d");
18
- if (console.log(t), t) {
17
+ if (localStorage.getItem("d")) {
19
18
  let n = sessionStorage.getItem("f");
20
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);
21
20
  } else
@@ -67,8 +66,8 @@ function dt() {
67
66
  return ee(), !1;
68
67
  }
69
68
  function $a() {
70
- const [e, t] = g.useState(fn()), n = (s) => {
71
- t(s);
69
+ const [e, t] = x.useState(fn()), n = (r) => {
70
+ t(r);
72
71
  };
73
72
  return Q.page = n, [e];
74
73
  }
@@ -79,8 +78,8 @@ function fn() {
79
78
  return E.page;
80
79
  }
81
80
  function Ba() {
82
- const [e, t] = g.useState(hn()), n = (s) => {
83
- t(s);
81
+ const [e, t] = x.useState(hn()), n = (r) => {
82
+ t(r);
84
83
  };
85
84
  return Q.module = n, [e];
86
85
  }
@@ -91,10 +90,10 @@ function hn() {
91
90
  return E.module;
92
91
  }
93
92
  function Aa(e) {
94
- const [t, n] = g.useState(He() || e), s = (r) => {
95
- n(r);
93
+ const [t, n] = x.useState(He() || e), r = (s) => {
94
+ n(s);
96
95
  };
97
- return Q.tabs = s, [t];
96
+ return Q.tabs = r, [t];
98
97
  }
99
98
  function Za(e, t) {
100
99
  E.tab = e, sessionStorage.setItem("f", D.enCode(E)), t !== "false" && Q.tabs(e);
@@ -103,20 +102,20 @@ function He() {
103
102
  return E.tab;
104
103
  }
105
104
  function za(e) {
106
- const [t, n] = g.useState(E.id), s = (r) => {
105
+ const [t, n] = x.useState(E.id), r = (s) => {
107
106
  if (e)
108
- return e(r);
109
- n(r);
107
+ return e(s);
108
+ n(s);
110
109
  };
111
- return Q.id = s, [t];
110
+ return Q.id = r, [t];
112
111
  }
113
112
  function Ga(e) {
114
113
  Q.id = e;
115
114
  }
116
- function Wa(e, t = !0) {
115
+ function Ka(e, t = !0) {
117
116
  E.id = e, sessionStorage.setItem("f", D.enCode(E)), t && Q.id(e);
118
117
  }
119
- function Ka() {
118
+ function Wa() {
120
119
  return E.id;
121
120
  }
122
121
  function Va(e, t, n) {
@@ -132,7 +131,7 @@ function Ha(e) {
132
131
  let t = localStorage.getItem("s");
133
132
  return t === null ? {} : (t = D.deCode(t), t ? e !== void 0 ? t[e] : t : ee());
134
133
  }
135
- function gn(e) {
134
+ function xn(e) {
136
135
  localStorage.setItem("m", D.enCode({ data: e }));
137
136
  }
138
137
  function qa() {
@@ -140,20 +139,20 @@ function qa() {
140
139
  if (e !== "" && e !== "undefined" && e !== null) {
141
140
  let t = localStorage.getItem("m"), n = D.deCode(t);
142
141
  n || ee();
143
- const s = (i, c) => {
142
+ const r = (i, c) => {
144
143
  let l = c + "";
145
144
  for (; l.length < i; )
146
145
  l = "0" + l;
147
146
  return l;
148
147
  };
149
- return n.data.split(",").map((i) => "M" + s(2, i));
148
+ return n.data.split(",").map((i) => "M" + r(2, i));
150
149
  } else
151
150
  return ee(), !1;
152
151
  }
153
152
  function Ja(e) {
154
153
  Q.sort = e;
155
154
  }
156
- function xn(e) {
155
+ function gn(e) {
157
156
  let t = localStorage.getItem("b");
158
157
  t = t === null ? {} : D.deCode(t), t[He()] = e, localStorage.setItem("b", D.enCode(t));
159
158
  }
@@ -161,10 +160,10 @@ function _t() {
161
160
  let e = localStorage.getItem("b");
162
161
  return e === null ? {} : (e = D.deCode(e), e = e[He()], e = e === void 0 ? { active: 1, sort: "<" } : e, e);
163
162
  }
164
- function pn(e) {
163
+ function vn(e) {
165
164
  localStorage.setItem("c", D.enCode(e));
166
165
  }
167
- function vn(e) {
166
+ function pn(e) {
168
167
  let t = localStorage.getItem("c");
169
168
  if (t !== "" && t !== "undefined" && t !== null) {
170
169
  let n = D.deCode(t);
@@ -188,16 +187,16 @@ function Xa(e) {
188
187
  function Qa(e) {
189
188
  return mn.data[e];
190
189
  }
191
- function es(e) {
190
+ function er(e) {
192
191
  E.payment = e;
193
192
  }
194
- function ts() {
193
+ function tr() {
195
194
  return E.payment;
196
195
  }
197
196
  function Cn(e) {
198
197
  localStorage.setItem("u", D.enCode(e));
199
198
  }
200
- function ns() {
199
+ function nr() {
201
200
  let e = localStorage.getItem("u");
202
201
  if (e !== "" && e !== "undefined" && e !== null) {
203
202
  let t = D.deCode(e);
@@ -208,7 +207,7 @@ function ns() {
208
207
  function en(e) {
209
208
  localStorage.setItem("e", D.enCode(e));
210
209
  }
211
- function as() {
210
+ function ar() {
212
211
  let e = localStorage.getItem("e");
213
212
  if (e !== "" && e !== "undefined" && e !== null)
214
213
  try {
@@ -220,7 +219,7 @@ function as() {
220
219
  else
221
220
  return {};
222
221
  }
223
- const re = {
222
+ const se = {
224
223
  setSSID: Ia,
225
224
  getSSID: Da,
226
225
  getPORT: dt,
@@ -229,23 +228,23 @@ const re = {
229
228
  getAUTH: Fa,
230
229
  Logaut: ee,
231
230
  Start: Ta,
232
- setMenu: gn,
231
+ setMenu: xn,
233
232
  getMenu: qa,
234
233
  useSort: Ja,
235
- setSort: xn,
234
+ setSort: gn,
236
235
  getSort: _t,
237
- setCompany: pn,
238
- getCompany: vn,
236
+ setCompany: vn,
237
+ getCompany: pn,
239
238
  setSelect: Pe,
240
239
  getSelect: Be,
241
240
  setApi: Xa,
242
241
  getApi: Qa,
243
- setPayment: es,
244
- getPayment: ts,
242
+ setPayment: er,
243
+ getPayment: tr,
245
244
  setUser: Cn,
246
- getUser: ns,
245
+ getUser: nr,
247
246
  getDefaultModules: Ra
248
- }, kn = "KGZ1bmN0aW9uKCl7InVzZSBzdHJpY3QiO29ubWVzc2FnZT1hc3luYyB0PT57dHJ5e2xldCBhPWF3YWl0IGZldGNoKGAke3QuZGF0YS5ob3N0fSR7dC5kYXRhLmxpbmt9YCx7bWV0aG9kOiJQT1NUIixoZWFkZXJzOntzc2lkOnQuZGF0YS5zc2lkLCJDb250ZW50LXR5cGUiOiJhcHBsaWNhdGlvbi9qc29uO2NoYXJzZXQ9dXRmLTgifSxib2R5OkpTT04uc3RyaW5naWZ5KHQuZGF0YS5kYXRhKX0pO3Bvc3RNZXNzYWdlKGF3YWl0IGEuanNvbigpKX1jYXRjaChhKXtwb3N0TWVzc2FnZSh7c3RhdHVzOiJlcnJvciIsZGF0YToid29ya2VyIixtZXNzYWdlOmF9KX19fSkoKTsK", ss = (e) => Uint8Array.from(atob(e), (t) => t.charCodeAt(0)), tn = typeof window < "u" && window.Blob && new Blob([ss(kn)], { type: "text/javascript;charset=utf-8" });
247
+ }, kn = "KGZ1bmN0aW9uKCl7InVzZSBzdHJpY3QiO29ubWVzc2FnZT1hc3luYyB0PT57dHJ5e2xldCBhPWF3YWl0IGZldGNoKGAke3QuZGF0YS5ob3N0fSR7dC5kYXRhLmxpbmt9YCx7bWV0aG9kOiJQT1NUIixoZWFkZXJzOntzc2lkOnQuZGF0YS5zc2lkLCJDb250ZW50LXR5cGUiOiJhcHBsaWNhdGlvbi9qc29uO2NoYXJzZXQ9dXRmLTgifSxib2R5OkpTT04uc3RyaW5naWZ5KHQuZGF0YS5kYXRhKX0pO3Bvc3RNZXNzYWdlKGF3YWl0IGEuanNvbigpKX1jYXRjaChhKXtwb3N0TWVzc2FnZSh7c3RhdHVzOiJlcnJvciIsZGF0YToid29ya2VyIixtZXNzYWdlOmF9KX19fSkoKTsK", rr = (e) => Uint8Array.from(atob(e), (t) => t.charCodeAt(0)), tn = typeof window < "u" && window.Blob && new Blob([rr(kn)], { type: "text/javascript;charset=utf-8" });
249
248
  function yn(e) {
250
249
  let t;
251
250
  try {
@@ -269,37 +268,37 @@ function yn(e) {
269
268
  }
270
269
  }
271
270
  const _e = {};
272
- function rs(e) {
271
+ function sr(e) {
273
272
  return e && (_e.s = e), _e.s;
274
273
  }
275
- function is(e) {
274
+ function ir(e) {
276
275
  return e && (_e.a = e), _e.a;
277
276
  }
278
- function os(e) {
277
+ function or(e) {
279
278
  return e && (_e.c = e), _e.c;
280
279
  }
281
- function ls(e) {
280
+ function lr(e) {
282
281
  return e && (_e.h = e), _e.h;
283
282
  }
284
- const jt = { version: { Api: is, Server: rs, Client: os }, Host: ls };
285
- let cs = "api", ds = "elcrm", _s = "online";
286
- function us() {
287
- let e = re.getPORT(), t = "", n = "";
283
+ const jt = { version: { Api: ir, Server: sr, Client: or }, Host: lr };
284
+ let cr = "api", dr = "elcrm", _r = "online";
285
+ function ur() {
286
+ let e = se.getPORT(), t = "", n = "";
288
287
  return e.address === "localhost" ? (t = `http://localhost:${e.socket}/documents`, n = `http://localhost:${e.socket}/files`) : (t = "https://" + e.address + "/documents", n = "https://" + e.address + "/files"), {
289
288
  documents: t,
290
289
  files: n
291
290
  };
292
291
  }
293
- let jn = `${cs}.${ds}.${_s}`;
294
- function ms(e) {
295
- return "https://" + re.getPORT().address + "/audio/" + e;
296
- }
297
- function bt(e, t = {}, n = re.getAUTH()) {
298
- return new Promise((s) => {
299
- const r = new yn();
300
- r.onmessage = (i) => {
301
- s(i.data), r.terminate();
302
- }, r.postMessage({
292
+ let jn = `${cr}.${dr}.${_r}`;
293
+ function mr(e) {
294
+ return "https://" + se.getPORT().address + "/audio/" + e;
295
+ }
296
+ function bt(e, t = {}, n = se.getAUTH()) {
297
+ return new Promise((r) => {
298
+ const s = new yn();
299
+ s.onmessage = (i) => {
300
+ r(i.data), s.terminate();
301
+ }, s.postMessage({
303
302
  link: e,
304
303
  data: t,
305
304
  ssid: n,
@@ -307,12 +306,12 @@ function bt(e, t = {}, n = re.getAUTH()) {
307
306
  });
308
307
  });
309
308
  }
310
- function fs(e, t = {}, n = re.getAUTH()) {
311
- return new Promise((s) => {
312
- const r = new yn();
313
- r.onmessage = (i) => {
314
- s(i.data), r.terminate();
315
- }, r.postMessage({
309
+ function fr(e, t = {}, n = se.getAUTH()) {
310
+ return new Promise((r) => {
311
+ const s = new yn();
312
+ s.onmessage = (i) => {
313
+ r(i.data), s.terminate();
314
+ }, s.postMessage({
316
315
  link: e,
317
316
  data: t,
318
317
  ssid: n,
@@ -322,9 +321,9 @@ function fs(e, t = {}, n = re.getAUTH()) {
322
321
  }
323
322
  let bn = {
324
323
  "Content-type": "application/json;charset=utf-8",
325
- ssid: re.getAUTH() || ""
324
+ ssid: se.getAUTH() || ""
326
325
  };
327
- async function hs(e, t, n = {}) {
326
+ async function hr(e, t, n = {}) {
328
327
  try {
329
328
  return await (await bt("https://" + e + "/" + t, {
330
329
  method: "POST",
@@ -335,7 +334,7 @@ async function hs(e, t, n = {}) {
335
334
  return { status: "error" };
336
335
  }
337
336
  }
338
- async function gs(e, t = {}) {
337
+ async function xr(e, t = {}) {
339
338
  try {
340
339
  return await (await bt("https://tb.elcrm.online/v1/" + e, {
341
340
  method: "POST",
@@ -346,7 +345,7 @@ async function gs(e, t = {}) {
346
345
  return { status: "error" };
347
346
  }
348
347
  }
349
- const nn = { audio: ms, fetch: bt, modules: fs, remoute: hs, url: us, telegram: gs };
348
+ const nn = { audio: mr, fetch: bt, modules: fr, remoute: hr, url: ur, telegram: xr };
350
349
  var ut = { exports: {} }, Te = {};
351
350
  /**
352
351
  * @license React
@@ -358,20 +357,20 @@ var ut = { exports: {} }, Te = {};
358
357
  * LICENSE file in the root directory of this source tree.
359
358
  */
360
359
  var an;
361
- function xs() {
360
+ function gr() {
362
361
  if (an)
363
362
  return Te;
364
363
  an = 1;
365
- var e = g, t = Symbol.for("react.element"), n = Symbol.for("react.fragment"), s = Object.prototype.hasOwnProperty, r = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, i = { key: !0, ref: !0, __self: !0, __source: !0 };
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 };
366
365
  function c(l, _, d) {
367
- var u, m = {}, h = null, x = null;
368
- d !== void 0 && (h = "" + d), _.key !== void 0 && (h = "" + _.key), _.ref !== void 0 && (x = _.ref);
366
+ var u, m = {}, h = null, g = null;
367
+ d !== void 0 && (h = "" + d), _.key !== void 0 && (h = "" + _.key), _.ref !== void 0 && (g = _.ref);
369
368
  for (u in _)
370
- s.call(_, u) && !i.hasOwnProperty(u) && (m[u] = _[u]);
369
+ r.call(_, u) && !i.hasOwnProperty(u) && (m[u] = _[u]);
371
370
  if (l && l.defaultProps)
372
371
  for (u in _ = l.defaultProps, _)
373
372
  m[u] === void 0 && (m[u] = _[u]);
374
- return { $$typeof: t, type: l, key: h, ref: x, props: m, _owner: r.current };
373
+ return { $$typeof: t, type: l, key: h, ref: g, props: m, _owner: s.current };
375
374
  }
376
375
  return Te.Fragment = n, Te.jsx = c, Te.jsxs = c, Te;
377
376
  }
@@ -385,54 +384,54 @@ var Ie = {};
385
384
  * This source code is licensed under the MIT license found in the
386
385
  * LICENSE file in the root directory of this source tree.
387
386
  */
388
- var sn;
389
- function ps() {
390
- return sn || (sn = 1, process.env.NODE_ENV !== "production" && function() {
391
- var e = g, t = Symbol.for("react.element"), n = Symbol.for("react.portal"), s = Symbol.for("react.fragment"), r = 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"), x = Symbol.for("react.offscreen"), p = Symbol.iterator, C = "@@iterator";
387
+ var rn;
388
+ function vr() {
389
+ 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";
392
391
  function w(o) {
393
392
  if (o === null || typeof o != "object")
394
393
  return null;
395
- var f = p && o[p] || o[C];
394
+ var f = v && o[v] || o[C];
396
395
  return typeof f == "function" ? f : null;
397
396
  }
398
- var y = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
397
+ var k = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
399
398
  function b(o) {
400
399
  {
401
- for (var f = arguments.length, v = new Array(f > 1 ? f - 1 : 0), S = 1; S < f; S++)
402
- v[S - 1] = arguments[S];
403
- N("error", o, v);
400
+ for (var f = arguments.length, p = new Array(f > 1 ? f - 1 : 0), S = 1; S < f; S++)
401
+ p[S - 1] = arguments[S];
402
+ R("error", o, p);
404
403
  }
405
404
  }
406
- function N(o, f, v) {
405
+ function R(o, f, p) {
407
406
  {
408
- var S = y.ReactDebugCurrentFrame, M = S.getStackAddendum();
409
- M !== "" && (f += "%s", v = v.concat([M]));
410
- var L = v.map(function(T) {
411
- return String(T);
407
+ var S = k.ReactDebugCurrentFrame, M = S.getStackAddendum();
408
+ M !== "" && (f += "%s", p = p.concat([M]));
409
+ var L = p.map(function(I) {
410
+ return String(I);
412
411
  });
413
412
  L.unshift("Warning: " + f), Function.prototype.apply.call(console[o], console, L);
414
413
  }
415
414
  }
416
- var I = !1, j = !1, F = !1, P = !1, B = !1, Y;
417
- Y = Symbol.for("react.module.reference");
415
+ var N = !1, j = !1, F = !1, $ = !1, P = !1, H;
416
+ H = Symbol.for("react.module.reference");
418
417
  function V(o) {
419
- return !!(typeof o == "string" || typeof o == "function" || o === s || o === i || B || o === r || o === d || o === u || P || o === x || I || 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
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
420
419
  // types supported by any Flight configuration anywhere since
421
420
  // we don't know which Flight build this will end up being used
422
421
  // with.
423
- o.$$typeof === Y || o.getModuleId !== void 0));
422
+ o.$$typeof === H || o.getModuleId !== void 0));
424
423
  }
425
- function $(o, f, v) {
424
+ function B(o, f, p) {
426
425
  var S = o.displayName;
427
426
  if (S)
428
427
  return S;
429
428
  var M = f.displayName || f.name || "";
430
- return M !== "" ? v + "(" + M + ")" : v;
429
+ return M !== "" ? p + "(" + M + ")" : p;
431
430
  }
432
431
  function ae(o) {
433
432
  return o.displayName || "Context";
434
433
  }
435
- function W(o) {
434
+ function K(o) {
436
435
  if (o == null)
437
436
  return null;
438
437
  if (typeof o.tag == "number" && b("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof o == "function")
@@ -440,13 +439,13 @@ function ps() {
440
439
  if (typeof o == "string")
441
440
  return o;
442
441
  switch (o) {
443
- case s:
442
+ case r:
444
443
  return "Fragment";
445
444
  case n:
446
445
  return "Portal";
447
446
  case i:
448
447
  return "Profiler";
449
- case r:
448
+ case s:
450
449
  return "StrictMode";
451
450
  case d:
452
451
  return "Suspense";
@@ -459,17 +458,17 @@ function ps() {
459
458
  var f = o;
460
459
  return ae(f) + ".Consumer";
461
460
  case c:
462
- var v = o;
463
- return ae(v._context) + ".Provider";
461
+ var p = o;
462
+ return ae(p._context) + ".Provider";
464
463
  case _:
465
- return $(o, o.render, "ForwardRef");
464
+ return B(o, o.render, "ForwardRef");
466
465
  case m:
467
466
  var S = o.displayName || null;
468
- return S !== null ? S : W(o.type) || "Memo";
467
+ return S !== null ? S : K(o.type) || "Memo";
469
468
  case h: {
470
- var M = o, L = M._payload, T = M._init;
469
+ var M = o, L = M._payload, I = M._init;
471
470
  try {
472
- return W(T(L));
471
+ return K(I(L));
473
472
  } catch {
474
473
  return null;
475
474
  }
@@ -539,8 +538,8 @@ function ps() {
539
538
  q < 0 && b("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
540
539
  }
541
540
  }
542
- var Xe = y.ReactCurrentDispatcher, Qe;
543
- function ze(o, f, v) {
541
+ var Xe = k.ReactCurrentDispatcher, Qe;
542
+ function ze(o, f, p) {
544
543
  {
545
544
  if (Qe === void 0)
546
545
  try {
@@ -562,9 +561,9 @@ function ps() {
562
561
  if (!o || et)
563
562
  return "";
564
563
  {
565
- var v = Ge.get(o);
566
- if (v !== void 0)
567
- return v;
564
+ var p = Ge.get(o);
565
+ if (p !== void 0)
566
+ return p;
568
567
  }
569
568
  var S;
570
569
  et = !0;
@@ -574,27 +573,27 @@ function ps() {
574
573
  L = Xe.current, Xe.current = null, Yn();
575
574
  try {
576
575
  if (f) {
577
- var T = function() {
576
+ var I = function() {
578
577
  throw Error();
579
578
  };
580
- if (Object.defineProperty(T.prototype, "props", {
579
+ if (Object.defineProperty(I.prototype, "props", {
581
580
  set: function() {
582
581
  throw Error();
583
582
  }
584
583
  }), typeof Reflect == "object" && Reflect.construct) {
585
584
  try {
586
- Reflect.construct(T, []);
585
+ Reflect.construct(I, []);
587
586
  } catch (J) {
588
587
  S = J;
589
588
  }
590
- Reflect.construct(o, [], T);
589
+ Reflect.construct(o, [], I);
591
590
  } else {
592
591
  try {
593
- T.call();
592
+ I.call();
594
593
  } catch (J) {
595
594
  S = J;
596
595
  }
597
- o.call(T.prototype);
596
+ o.call(I.prototype);
598
597
  }
599
598
  } else {
600
599
  try {
@@ -606,20 +605,20 @@ function ps() {
606
605
  }
607
606
  } catch (J) {
608
607
  if (J && S && typeof J.stack == "string") {
609
- for (var R = J.stack.split(`
610
- `), H = S.stack.split(`
611
- `), Z = R.length - 1, K = H.length - 1; Z >= 1 && K >= 0 && R[Z] !== H[K]; )
612
- K--;
613
- for (; Z >= 1 && K >= 0; Z--, K--)
614
- if (R[Z] !== H[K]) {
615
- if (Z !== 1 || K !== 1)
608
+ for (var T = J.stack.split(`
609
+ `), Y = S.stack.split(`
610
+ `), Z = T.length - 1, W = Y.length - 1; Z >= 1 && W >= 0 && T[Z] !== Y[W]; )
611
+ W--;
612
+ for (; Z >= 1 && W >= 0; Z--, W--)
613
+ if (T[Z] !== Y[W]) {
614
+ if (Z !== 1 || W !== 1)
616
615
  do
617
- if (Z--, K--, K < 0 || R[Z] !== H[K]) {
616
+ if (Z--, W--, W < 0 || T[Z] !== Y[W]) {
618
617
  var te = `
619
- ` + R[Z].replace(" at new ", " at ");
618
+ ` + T[Z].replace(" at new ", " at ");
620
619
  return o.displayName && te.includes("<anonymous>") && (te = te.replace("<anonymous>", o.displayName)), typeof o == "function" && Ge.set(o, te), te;
621
620
  }
622
- while (Z >= 1 && K >= 0);
621
+ while (Z >= 1 && W >= 0);
623
622
  break;
624
623
  }
625
624
  }
@@ -629,14 +628,14 @@ function ps() {
629
628
  var Ce = o ? o.displayName || o.name : "", fe = Ce ? ze(Ce) : "";
630
629
  return typeof o == "function" && Ge.set(o, fe), fe;
631
630
  }
632
- function Jn(o, f, v) {
631
+ function Jn(o, f, p) {
633
632
  return At(o, !1);
634
633
  }
635
634
  function Xn(o) {
636
635
  var f = o.prototype;
637
636
  return !!(f && f.isReactComponent);
638
637
  }
639
- function We(o, f, v) {
638
+ function Ke(o, f, p) {
640
639
  if (o == null)
641
640
  return "";
642
641
  if (typeof o == "function")
@@ -654,41 +653,41 @@ function ps() {
654
653
  case _:
655
654
  return Jn(o.render);
656
655
  case m:
657
- return We(o.type, f, v);
656
+ return Ke(o.type, f, p);
658
657
  case h: {
659
658
  var S = o, M = S._payload, L = S._init;
660
659
  try {
661
- return We(L(M), f, v);
660
+ return Ke(L(M), f, p);
662
661
  } catch {
663
662
  }
664
663
  }
665
664
  }
666
665
  return "";
667
666
  }
668
- var Re = Object.prototype.hasOwnProperty, Zt = {}, zt = y.ReactDebugCurrentFrame;
669
- function Ke(o) {
667
+ var Re = Object.prototype.hasOwnProperty, Zt = {}, zt = k.ReactDebugCurrentFrame;
668
+ function We(o) {
670
669
  if (o) {
671
- var f = o._owner, v = We(o.type, o._source, f ? f.type : null);
672
- zt.setExtraStackFrame(v);
670
+ var f = o._owner, p = Ke(o.type, o._source, f ? f.type : null);
671
+ zt.setExtraStackFrame(p);
673
672
  } else
674
673
  zt.setExtraStackFrame(null);
675
674
  }
676
- function Qn(o, f, v, S, M) {
675
+ function Qn(o, f, p, S, M) {
677
676
  {
678
677
  var L = Function.call.bind(Re);
679
- for (var T in o)
680
- if (L(o, T)) {
681
- var R = void 0;
678
+ for (var I in o)
679
+ if (L(o, I)) {
680
+ var T = void 0;
682
681
  try {
683
- if (typeof o[T] != "function") {
684
- var H = Error((S || "React class") + ": " + v + " type `" + T + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof o[T] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
685
- throw H.name = "Invariant Violation", H;
682
+ if (typeof o[I] != "function") {
683
+ var Y = Error((S || "React class") + ": " + p + " type `" + I + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof o[I] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
684
+ throw Y.name = "Invariant Violation", Y;
686
685
  }
687
- R = o[T](f, T, S, v, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
686
+ T = o[I](f, I, S, p, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
688
687
  } catch (Z) {
689
- R = Z;
688
+ T = Z;
690
689
  }
691
- R && !(R instanceof Error) && (Ke(M), b("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", S || "React class", v, T, typeof R), Ke(null)), R instanceof Error && !(R.message in Zt) && (Zt[R.message] = !0, Ke(M), b("Failed %s type: %s", v, R.message), Ke(null));
690
+ T && !(T instanceof Error) && (We(M), b("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", S || "React class", p, I, typeof T), We(null)), T instanceof Error && !(T.message in Zt) && (Zt[T.message] = !0, We(M), b("Failed %s type: %s", p, T.message), We(null));
692
691
  }
693
692
  }
694
693
  }
@@ -698,8 +697,8 @@ function ps() {
698
697
  }
699
698
  function ta(o) {
700
699
  {
701
- var f = typeof Symbol == "function" && Symbol.toStringTag, v = f && o[Symbol.toStringTag] || o.constructor.name || "Object";
702
- return v;
700
+ var f = typeof Symbol == "function" && Symbol.toStringTag, p = f && o[Symbol.toStringTag] || o.constructor.name || "Object";
701
+ return p;
703
702
  }
704
703
  }
705
704
  function na(o) {
@@ -712,18 +711,18 @@ function ps() {
712
711
  function Gt(o) {
713
712
  return "" + o;
714
713
  }
715
- function Wt(o) {
714
+ function Kt(o) {
716
715
  if (na(o))
717
716
  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);
718
717
  }
719
- var Ne = y.ReactCurrentOwner, aa = {
718
+ var Ne = k.ReactCurrentOwner, aa = {
720
719
  key: !0,
721
720
  ref: !0,
722
721
  __self: !0,
723
722
  __source: !0
724
- }, Kt, Vt, nt;
723
+ }, Wt, Vt, nt;
725
724
  nt = {};
726
- function sa(o) {
725
+ function ra(o) {
727
726
  if (Re.call(o, "ref")) {
728
727
  var f = Object.getOwnPropertyDescriptor(o, "ref").get;
729
728
  if (f && f.isReactWarning)
@@ -731,7 +730,7 @@ function ps() {
731
730
  }
732
731
  return o.ref !== void 0;
733
732
  }
734
- function ra(o) {
733
+ function sa(o) {
735
734
  if (Re.call(o, "key")) {
736
735
  var f = Object.getOwnPropertyDescriptor(o, "key").get;
737
736
  if (f && f.isReactWarning)
@@ -741,96 +740,96 @@ function ps() {
741
740
  }
742
741
  function ia(o, f) {
743
742
  if (typeof o.ref == "string" && Ne.current && f && Ne.current.stateNode !== f) {
744
- var v = W(Ne.current.type);
745
- nt[v] || (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', W(Ne.current.type), o.ref), nt[v] = !0);
743
+ 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);
746
745
  }
747
746
  }
748
747
  function oa(o, f) {
749
748
  {
750
- var v = function() {
751
- Kt || (Kt = !0, b("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", f));
749
+ var p = function() {
750
+ Wt || (Wt = !0, b("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", f));
752
751
  };
753
- v.isReactWarning = !0, Object.defineProperty(o, "key", {
754
- get: v,
752
+ p.isReactWarning = !0, Object.defineProperty(o, "key", {
753
+ get: p,
755
754
  configurable: !0
756
755
  });
757
756
  }
758
757
  }
759
758
  function la(o, f) {
760
759
  {
761
- var v = function() {
760
+ var p = function() {
762
761
  Vt || (Vt = !0, b("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", f));
763
762
  };
764
- v.isReactWarning = !0, Object.defineProperty(o, "ref", {
765
- get: v,
763
+ p.isReactWarning = !0, Object.defineProperty(o, "ref", {
764
+ get: p,
766
765
  configurable: !0
767
766
  });
768
767
  }
769
768
  }
770
- var ca = function(o, f, v, S, M, L, T) {
771
- var R = {
769
+ var ca = function(o, f, p, S, M, L, I) {
770
+ var T = {
772
771
  // This tag allows us to uniquely identify this as a React Element
773
772
  $$typeof: t,
774
773
  // Built-in properties that belong on the element
775
774
  type: o,
776
775
  key: f,
777
- ref: v,
778
- props: T,
776
+ ref: p,
777
+ props: I,
779
778
  // Record the component responsible for creating this element.
780
779
  _owner: L
781
780
  };
782
- return R._store = {}, Object.defineProperty(R._store, "validated", {
781
+ return T._store = {}, Object.defineProperty(T._store, "validated", {
783
782
  configurable: !1,
784
783
  enumerable: !1,
785
784
  writable: !0,
786
785
  value: !1
787
- }), Object.defineProperty(R, "_self", {
786
+ }), Object.defineProperty(T, "_self", {
788
787
  configurable: !1,
789
788
  enumerable: !1,
790
789
  writable: !1,
791
790
  value: S
792
- }), Object.defineProperty(R, "_source", {
791
+ }), Object.defineProperty(T, "_source", {
793
792
  configurable: !1,
794
793
  enumerable: !1,
795
794
  writable: !1,
796
795
  value: M
797
- }), Object.freeze && (Object.freeze(R.props), Object.freeze(R)), R;
796
+ }), Object.freeze && (Object.freeze(T.props), Object.freeze(T)), T;
798
797
  };
799
- function da(o, f, v, S, M) {
798
+ function da(o, f, p, S, M) {
800
799
  {
801
- var L, T = {}, R = null, H = null;
802
- v !== void 0 && (Wt(v), R = "" + v), ra(f) && (Wt(f.key), R = "" + f.key), sa(f) && (H = f.ref, ia(f, M));
800
+ var L, I = {}, T = null, Y = null;
801
+ p !== void 0 && (Kt(p), T = "" + p), sa(f) && (Kt(f.key), T = "" + f.key), ra(f) && (Y = f.ref, ia(f, M));
803
802
  for (L in f)
804
- Re.call(f, L) && !aa.hasOwnProperty(L) && (T[L] = f[L]);
803
+ Re.call(f, L) && !aa.hasOwnProperty(L) && (I[L] = f[L]);
805
804
  if (o && o.defaultProps) {
806
805
  var Z = o.defaultProps;
807
806
  for (L in Z)
808
- T[L] === void 0 && (T[L] = Z[L]);
807
+ I[L] === void 0 && (I[L] = Z[L]);
809
808
  }
810
- if (R || H) {
811
- var K = typeof o == "function" ? o.displayName || o.name || "Unknown" : o;
812
- R && oa(T, K), H && la(T, K);
809
+ if (T || Y) {
810
+ var W = typeof o == "function" ? o.displayName || o.name || "Unknown" : o;
811
+ T && oa(I, W), Y && la(I, W);
813
812
  }
814
- return ca(o, R, H, M, S, Ne.current, T);
813
+ return ca(o, T, Y, M, S, Ne.current, I);
815
814
  }
816
815
  }
817
- var at = y.ReactCurrentOwner, Ut = y.ReactDebugCurrentFrame;
818
- function ve(o) {
816
+ var at = k.ReactCurrentOwner, Ut = k.ReactDebugCurrentFrame;
817
+ function pe(o) {
819
818
  if (o) {
820
- var f = o._owner, v = We(o.type, o._source, f ? f.type : null);
821
- Ut.setExtraStackFrame(v);
819
+ var f = o._owner, p = Ke(o.type, o._source, f ? f.type : null);
820
+ Ut.setExtraStackFrame(p);
822
821
  } else
823
822
  Ut.setExtraStackFrame(null);
824
823
  }
825
- var st;
826
- st = !1;
827
- function rt(o) {
824
+ var rt;
825
+ rt = !1;
826
+ function st(o) {
828
827
  return typeof o == "object" && o !== null && o.$$typeof === t;
829
828
  }
830
829
  function Yt() {
831
830
  {
832
831
  if (at.current) {
833
- var o = W(at.current.type);
832
+ var o = K(at.current.type);
834
833
  if (o)
835
834
  return `
836
835
 
@@ -847,10 +846,10 @@ Check the render method of \`` + o + "`.";
847
846
  {
848
847
  var f = Yt();
849
848
  if (!f) {
850
- var v = typeof o == "string" ? o : o.displayName || o.name;
851
- v && (f = `
849
+ var p = typeof o == "string" ? o : o.displayName || o.name;
850
+ p && (f = `
852
851
 
853
- Check the top-level render call using <` + v + ">.");
852
+ Check the top-level render call using <` + p + ">.");
854
853
  }
855
854
  return f;
856
855
  }
@@ -860,12 +859,12 @@ Check the top-level render call using <` + v + ">.");
860
859
  if (!o._store || o._store.validated || o.key != null)
861
860
  return;
862
861
  o._store.validated = !0;
863
- var v = ua(f);
864
- if (Ht[v])
862
+ var p = ua(f);
863
+ if (Ht[p])
865
864
  return;
866
- Ht[v] = !0;
865
+ Ht[p] = !0;
867
866
  var S = "";
868
- o && o._owner && o._owner !== at.current && (S = " It was passed a child from " + W(o._owner.type) + "."), ve(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.', v, S), ve(null);
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);
869
868
  }
870
869
  }
871
870
  function Jt(o, f) {
@@ -873,17 +872,17 @@ Check the top-level render call using <` + v + ">.");
873
872
  if (typeof o != "object")
874
873
  return;
875
874
  if (tt(o))
876
- for (var v = 0; v < o.length; v++) {
877
- var S = o[v];
878
- rt(S) && qt(S, f);
875
+ for (var p = 0; p < o.length; p++) {
876
+ var S = o[p];
877
+ st(S) && qt(S, f);
879
878
  }
880
- else if (rt(o))
879
+ else if (st(o))
881
880
  o._store && (o._store.validated = !0);
882
881
  else if (o) {
883
882
  var M = w(o);
884
883
  if (typeof M == "function" && M !== o.entries)
885
- for (var L = M.call(o), T; !(T = L.next()).done; )
886
- rt(T.value) && qt(T.value, f);
884
+ for (var L = M.call(o), I; !(I = L.next()).done; )
885
+ st(I.value) && qt(I.value, f);
887
886
  }
888
887
  }
889
888
  }
@@ -892,21 +891,21 @@ Check the top-level render call using <` + v + ">.");
892
891
  var f = o.type;
893
892
  if (f == null || typeof f == "string")
894
893
  return;
895
- var v;
894
+ var p;
896
895
  if (typeof f == "function")
897
- v = f.propTypes;
896
+ p = f.propTypes;
898
897
  else if (typeof f == "object" && (f.$$typeof === _ || // Note: Memo only checks outer props here.
899
898
  // Inner props are checked in the reconciler.
900
899
  f.$$typeof === m))
901
- v = f.propTypes;
900
+ p = f.propTypes;
902
901
  else
903
902
  return;
904
- if (v) {
905
- var S = W(f);
906
- Qn(v, o.props, "prop", S, o);
907
- } else if (f.PropTypes !== void 0 && !st) {
908
- st = !0;
909
- var M = W(f);
903
+ if (p) {
904
+ var S = K(f);
905
+ Qn(p, o.props, "prop", S, o);
906
+ } else if (f.PropTypes !== void 0 && !rt) {
907
+ rt = !0;
908
+ var M = K(f);
910
909
  b("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", M || "Unknown");
911
910
  }
912
911
  typeof f.getDefaultProps == "function" && !f.getDefaultProps.isReactClassApproved && b("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
@@ -914,32 +913,32 @@ Check the top-level render call using <` + v + ">.");
914
913
  }
915
914
  function fa(o) {
916
915
  {
917
- for (var f = Object.keys(o.props), v = 0; v < f.length; v++) {
918
- var S = f[v];
916
+ for (var f = Object.keys(o.props), p = 0; p < f.length; p++) {
917
+ var S = f[p];
919
918
  if (S !== "children" && S !== "key") {
920
- ve(o), b("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", S), ve(null);
919
+ pe(o), b("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", S), pe(null);
921
920
  break;
922
921
  }
923
922
  }
924
- o.ref !== null && (ve(o), b("Invalid attribute `ref` supplied to `React.Fragment`."), ve(null));
923
+ o.ref !== null && (pe(o), b("Invalid attribute `ref` supplied to `React.Fragment`."), pe(null));
925
924
  }
926
925
  }
927
926
  var Xt = {};
928
- function Qt(o, f, v, S, M, L) {
927
+ function Qt(o, f, p, S, M, L) {
929
928
  {
930
- var T = V(o);
931
- if (!T) {
932
- var R = "";
933
- (o === void 0 || typeof o == "object" && o !== null && Object.keys(o).length === 0) && (R += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
934
- var H = _a();
935
- H ? R += H : R += Yt();
929
+ var I = V(o);
930
+ if (!I) {
931
+ var T = "";
932
+ (o === void 0 || typeof o == "object" && o !== null && Object.keys(o).length === 0) && (T += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
933
+ var Y = _a();
934
+ Y ? T += Y : T += Yt();
936
935
  var Z;
937
- o === null ? Z = "null" : tt(o) ? Z = "array" : o !== void 0 && o.$$typeof === t ? (Z = "<" + (W(o.type) || "Unknown") + " />", R = " 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, R);
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);
938
937
  }
939
- var K = da(o, f, v, M, L);
940
- if (K == null)
941
- return K;
942
- if (T) {
938
+ var W = da(o, f, p, M, L);
939
+ if (W == null)
940
+ return W;
941
+ if (I) {
943
942
  var te = f.children;
944
943
  if (te !== void 0)
945
944
  if (S)
@@ -953,107 +952,107 @@ Check the top-level render call using <` + v + ">.");
953
952
  Jt(te, o);
954
953
  }
955
954
  if (Re.call(f, "key")) {
956
- var fe = W(o), J = Object.keys(f).filter(function(Ca) {
955
+ var fe = K(o), J = Object.keys(f).filter(function(Ca) {
957
956
  return Ca !== "key";
958
957
  }), it = J.length > 0 ? "{key: someKey, " + J.join(": ..., ") + ": ...}" : "{key: someKey}";
959
958
  if (!Xt[fe + it]) {
960
- var va = J.length > 0 ? "{" + J.join(": ..., ") + ": ...}" : "{}";
959
+ var pa = J.length > 0 ? "{" + J.join(": ..., ") + ": ...}" : "{}";
961
960
  b(`A props object containing a "key" prop is being spread into JSX:
962
961
  let props = %s;
963
962
  <%s {...props} />
964
963
  React keys must be passed directly to JSX without using spread:
965
964
  let props = %s;
966
- <%s key={someKey} {...props} />`, it, fe, va, fe), Xt[fe + it] = !0;
965
+ <%s key={someKey} {...props} />`, it, fe, pa, fe), Xt[fe + it] = !0;
967
966
  }
968
967
  }
969
- return o === s ? fa(K) : ma(K), K;
968
+ return o === r ? fa(W) : ma(W), W;
970
969
  }
971
970
  }
972
- function ha(o, f, v) {
973
- return Qt(o, f, v, !0);
971
+ function ha(o, f, p) {
972
+ return Qt(o, f, p, !0);
974
973
  }
975
- function ga(o, f, v) {
976
- return Qt(o, f, v, !1);
974
+ function xa(o, f, p) {
975
+ return Qt(o, f, p, !1);
977
976
  }
978
- var xa = ga, pa = ha;
979
- Ie.Fragment = s, Ie.jsx = xa, Ie.jsxs = pa;
977
+ var ga = xa, va = ha;
978
+ Ie.Fragment = r, Ie.jsx = ga, Ie.jsxs = va;
980
979
  }()), Ie;
981
980
  }
982
- process.env.NODE_ENV === "production" ? ut.exports = xs() : ut.exports = ps();
981
+ process.env.NODE_ENV === "production" ? ut.exports = gr() : ut.exports = vr();
983
982
  var a = ut.exports;
984
- const vs = "_notice_820sc_2", Cs = "_error_820sc_9", ks = "_success_820sc_12", ys = "_remark_820sc_15", js = "_copy_820sc_18", bs = {
985
- notice: vs,
986
- error: Cs,
987
- success: ks,
988
- remark: ys,
989
- copy: js,
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
989
  "show-notice": "_show-notice_820sc_1",
991
990
  "hide-notice": "_hide-notice_820sc_1"
992
991
  };
993
992
  let ue = {};
994
- function ws() {
995
- let [e, t] = g.useState([]);
993
+ function wr() {
994
+ let [e, t] = x.useState([]);
996
995
  return ue.set = (n) => {
997
996
  t([...e, n]);
998
997
  }, ue.del = (n) => {
999
- t(e.filter((s) => s.key !== n));
1000
- }, e.length === 0 ? "" : /* @__PURE__ */ a.jsx("ul", { className: bs.notice, children: e.map((n) => n.item) });
998
+ t(e.filter((r) => r.key !== n));
999
+ }, e.length === 0 ? "" : /* @__PURE__ */ a.jsx("ul", { className: br.notice, children: e.map((n) => n.item) });
1001
1000
  }
1002
1001
  function Oe({ data: e }) {
1003
- let [t, n] = g.useState("show");
1004
- g.useEffect(() => {
1002
+ let [t, n] = x.useState("show");
1003
+ x.useEffect(() => {
1005
1004
  setTimeout(function() {
1006
1005
  n("hide");
1007
1006
  }, 1800), setTimeout(function() {
1008
1007
  ue.del(e.key);
1009
1008
  }, 2500);
1010
1009
  }, [e.key]);
1011
- let s, r;
1010
+ let r, s;
1012
1011
  switch (e.type) {
1013
1012
  case "error":
1014
- s = /* @__PURE__ */ a.jsx(ge.error, {}), r = "Ошибка:";
1013
+ r = /* @__PURE__ */ a.jsx(xe.error, {}), s = "Ошибка:";
1015
1014
  break;
1016
1015
  case "success":
1017
- s = /* @__PURE__ */ a.jsx(ge.success, {}), r = "Информация:";
1016
+ r = /* @__PURE__ */ a.jsx(xe.success, {}), s = "Информация:";
1018
1017
  break;
1019
1018
  case "copy":
1020
- s = /* @__PURE__ */ a.jsx(ge.success, {}), r = "Копирование:";
1019
+ r = /* @__PURE__ */ a.jsx(xe.success, {}), s = "Копирование:";
1021
1020
  break;
1022
1021
  case "remark":
1023
- s = /* @__PURE__ */ a.jsx(ge.success, {}), r = "Подсказка:";
1022
+ r = /* @__PURE__ */ a.jsx(xe.success, {}), s = "Подсказка:";
1024
1023
  break;
1025
1024
  default:
1026
- s = /* @__PURE__ */ a.jsx(ge.success, {}), r = "Предупреждение:";
1025
+ r = /* @__PURE__ */ a.jsx(xe.success, {}), s = "Предупреждение:";
1027
1026
  break;
1028
1027
  }
1029
1028
  return /* @__PURE__ */ a.jsxs("li", { className: "item " + e.type, "data-status": t, children: [
1030
- s,
1031
- /* @__PURE__ */ a.jsx("b", { children: r }),
1029
+ r,
1030
+ /* @__PURE__ */ a.jsx("b", { children: s }),
1032
1031
  /* @__PURE__ */ a.jsx("p", { children: e.text })
1033
1032
  ] });
1034
1033
  }
1035
- function Ss(e) {
1034
+ function Sr(e) {
1036
1035
  let t = Date.now(), n = { key: t, ...e };
1037
1036
  ue.set({ item: /* @__PURE__ */ a.jsx(Oe, { data: n }, t), key: t });
1038
1037
  }
1039
- function Es(e) {
1038
+ function Er(e) {
1040
1039
  let t = Date.now(), n = { key: t, text: e, type: "error" };
1041
1040
  ue.set({ item: /* @__PURE__ */ a.jsx(Oe, { data: n }, t), key: t });
1042
1041
  }
1043
- function Rs(e) {
1042
+ function Rr(e) {
1044
1043
  let t = Date.now(), n = { key: t, text: e, type: "success" };
1045
1044
  ue.set({ item: /* @__PURE__ */ a.jsx(Oe, { data: n }, t), key: t });
1046
1045
  }
1047
- function Ns(e) {
1046
+ function Nr(e) {
1048
1047
  let t = Date.now(), n = { key: t, text: e, type: "remark" };
1049
1048
  ue.set({ item: /* @__PURE__ */ a.jsx(Oe, { data: n }, t), key: t });
1050
1049
  }
1051
- function Ts(e) {
1050
+ function Tr(e) {
1052
1051
  let t = Date.now(), n = { key: t, text: e, type: "copy" };
1053
1052
  ue.set({ item: /* @__PURE__ */ a.jsx(Oe, { data: n }, t), key: t });
1054
1053
  }
1055
- const ge = {};
1056
- ge.error = () => /* @__PURE__ */ a.jsxs("svg", { viewBox: "0 0 24 24", fill: "none", children: [
1054
+ const xe = {};
1055
+ xe.error = () => /* @__PURE__ */ a.jsxs("svg", { viewBox: "0 0 24 24", fill: "none", children: [
1057
1056
  /* @__PURE__ */ a.jsx(
1058
1057
  "path",
1059
1058
  {
@@ -1069,7 +1068,7 @@ ge.error = () => /* @__PURE__ */ a.jsxs("svg", { viewBox: "0 0 24 24", fill: "no
1069
1068
  }
1070
1069
  )
1071
1070
  ] });
1072
- ge.success = () => /* @__PURE__ */ a.jsxs("svg", { viewBox: "0 0 24 24", fill: "none", children: [
1071
+ xe.success = () => /* @__PURE__ */ a.jsxs("svg", { viewBox: "0 0 24 24", fill: "none", children: [
1073
1072
  /* @__PURE__ */ a.jsx(
1074
1073
  "path",
1075
1074
  {
@@ -1085,21 +1084,21 @@ ge.success = () => /* @__PURE__ */ a.jsxs("svg", { viewBox: "0 0 24 24", fill: "
1085
1084
  }
1086
1085
  )
1087
1086
  ] });
1088
- const Is = "_alerts_1pds5_1", Ds = "_menuAnimation_1pds5_1", Ms = "_menuItemAnimation_1pds5_1", Fs = "_allert_1pds5_111", Ls = "_al_1pds5_1", mt = {
1089
- alerts: Is,
1090
- menuAnimation: Ds,
1091
- menuItemAnimation: Ms,
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,
1092
1091
  "--body": "_--body_1pds5_103",
1093
- allert: Fs,
1092
+ allert: Fr,
1094
1093
  "--form": "_--form_1pds5_111",
1095
- al: Ls
1094
+ al: Lr
1096
1095
  };
1097
1096
  let Fe = {};
1098
- function $s() {
1099
- let [e, t] = g.useState("");
1097
+ function $r() {
1098
+ let [e, t] = x.useState("");
1100
1099
  return Fe.set = (n) => t(n), Fe.del = () => t(""), /* @__PURE__ */ a.jsx(a.Fragment, { children: e });
1101
1100
  }
1102
- const Ps = ({ data: e, callback: t }) => (e.button = e.button === void 0 ? "Подтвердить" : e.button, /* @__PURE__ */ a.jsxs("div", { className: mt.alerts, children: [
1101
+ const Pr = ({ data: e, callback: t }) => (e.button = e.button === void 0 ? "Подтвердить" : e.button, /* @__PURE__ */ a.jsxs("div", { className: mt.alerts, children: [
1103
1102
  /* @__PURE__ */ a.jsxs("dl", { children: [
1104
1103
  /* @__PURE__ */ a.jsx("dt", { children: e.title }),
1105
1104
  /* @__PURE__ */ a.jsx("dd", { children: e.text }),
@@ -1116,10 +1115,10 @@ const Ps = ({ data: e, callback: t }) => (e.button = e.button === void 0 ? "По
1116
1115
  ] }),
1117
1116
  /* @__PURE__ */ a.jsx("div", { className: mt["--body"], onClick: Fe.del })
1118
1117
  ] }));
1119
- function Bs(e, t) {
1120
- Fe.set(/* @__PURE__ */ a.jsx(Ps, { data: e, callback: t }));
1118
+ function Br(e, t) {
1119
+ Fe.set(/* @__PURE__ */ a.jsx(Pr, { data: e, callback: t }));
1121
1120
  }
1122
- const Le = { Send: Ss, Error: Es, Remark: Ns, Success: Rs, Copy: Ts }, Ue = {
1121
+ const Le = { Send: Sr, Error: Er, Remark: Nr, Success: Rr, Copy: Tr }, Ue = {
1123
1122
  Path: Va,
1124
1123
  setPage: Pa,
1125
1124
  getPage: fn,
@@ -1131,11 +1130,11 @@ const Le = { Send: Ss, Error: Es, Remark: Ns, Success: Rs, Copy: Ts }, Ue = {
1131
1130
  getTabs: He,
1132
1131
  useTabs: Aa,
1133
1132
  useId: za,
1134
- setId: Wa,
1133
+ setId: Ka,
1135
1134
  subId: Ga,
1136
- getId: Ka
1135
+ getId: Wa
1137
1136
  };
1138
- function Os() {
1137
+ function Or() {
1139
1138
  return /* @__PURE__ */ a.jsxs("svg", { viewBox: "0 0 24 24", fill: "none", children: [
1140
1139
  /* @__PURE__ */ a.jsx(
1141
1140
  "path",
@@ -1170,7 +1169,7 @@ function Os() {
1170
1169
  )
1171
1170
  ] });
1172
1171
  }
1173
- function As() {
1172
+ function Ar() {
1174
1173
  return /* @__PURE__ */ a.jsxs("svg", { viewBox: "0 0 24 24", fill: "none", children: [
1175
1174
  /* @__PURE__ */ a.jsx(
1176
1175
  "path",
@@ -1199,7 +1198,7 @@ function As() {
1199
1198
  )
1200
1199
  ] });
1201
1200
  }
1202
- function Zs() {
1201
+ function Zr() {
1203
1202
  return /* @__PURE__ */ a.jsx("svg", { viewBox: "0 0 24 24", fill: "none", children: /* @__PURE__ */ a.jsx(
1204
1203
  "path",
1205
1204
  {
@@ -1212,11 +1211,11 @@ function Zs() {
1212
1211
  }
1213
1212
  ) });
1214
1213
  }
1215
- const zs = "_n_euuvm_1", Gs = {
1216
- n: zs
1214
+ const zr = "_n_euuvm_1", Gr = {
1215
+ n: zr
1217
1216
  };
1218
1217
  let Ae = {}, De = [];
1219
- const Ws = (e, t) => {
1218
+ const Kr = (e, t) => {
1220
1219
  switch (t.type) {
1221
1220
  case "open":
1222
1221
  return {
@@ -1241,7 +1240,7 @@ const Ws = (e, t) => {
1241
1240
  active: t.data.length !== 0
1242
1241
  };
1243
1242
  case "hide":
1244
- let n = e.news.filter((r) => r.id !== t.id);
1243
+ let n = e.news.filter((s) => s.id !== t.id);
1245
1244
  return {
1246
1245
  ...e,
1247
1246
  news: n,
@@ -1253,13 +1252,13 @@ const Ws = (e, t) => {
1253
1252
  size: t.size
1254
1253
  };
1255
1254
  case "take":
1256
- let s = { [t.list]: t.take };
1257
- s = { ...e.take, ...s }, e.active = !1;
1258
- for (let r in s)
1259
- s[r] !== "999" && (e.active = !0);
1260
- return Ae.get(s, e.active), {
1255
+ let r = { [t.list]: t.take };
1256
+ r = { ...e.take, ...r }, e.active = !1;
1257
+ for (let s in r)
1258
+ r[s] !== "999" && (e.active = !0);
1259
+ return Ae.get(r, e.active), {
1261
1260
  ...e,
1262
- take: s,
1261
+ take: r,
1263
1262
  active: e.active
1264
1263
  };
1265
1264
  case "exit":
@@ -1268,49 +1267,47 @@ const Ws = (e, t) => {
1268
1267
  throw new Error();
1269
1268
  }
1270
1269
  };
1271
- function Ks(e) {
1270
+ function Wr(e) {
1272
1271
  Ae.fn({ action: "add", data: e });
1273
1272
  }
1274
- function Vs(e) {
1273
+ function Vr(e) {
1275
1274
  Ae.fn({ action: "add", data: e });
1276
1275
  }
1277
- function Us(e) {
1276
+ function Ur(e) {
1278
1277
  Ae.fn({ action: "new", data: e });
1279
1278
  }
1280
- function Ys(e) {
1279
+ function Yr(e) {
1281
1280
  Ae.fn = e;
1282
1281
  }
1283
- function Hs() {
1284
- const [e, t] = g.useReducer(Ws, {
1282
+ function Hr() {
1283
+ const [e, t] = x.useReducer(Kr, {
1285
1284
  open: !1,
1286
1285
  active: !1,
1287
1286
  news: [],
1288
1287
  take: {}
1289
1288
  });
1290
- ce.useListener("bell", async (s) => {
1291
- console.log(s);
1292
- }), Ys(async (s) => {
1293
- switch (console.log(s), s.action) {
1289
+ ce.useListener("bell", async (r) => {
1290
+ }), Yr(async (r) => {
1291
+ switch (r.action) {
1294
1292
  case "add":
1295
- De.push(s.data);
1293
+ De.push(r.data);
1296
1294
  break;
1297
1295
  }
1298
- }), g.useEffect(() => {
1296
+ }), x.useEffect(() => {
1299
1297
  (async () => {
1300
- let s = await ce.Send({
1298
+ let r = await ce.Send({
1301
1299
  type: "module",
1302
1300
  module: "M00",
1303
1301
  query: "x0054",
1304
1302
  array: ["M01", "M02"]
1305
1303
  });
1306
- console.log(s);
1307
- for (let r in s)
1308
- switch (r) {
1304
+ for (let s in r)
1305
+ switch (s) {
1309
1306
  case "news":
1310
- t({ type: "news", data: s.news });
1307
+ t({ type: "news", data: r.news });
1311
1308
  break;
1312
1309
  case "M01":
1313
- s[r].forEach((i) => {
1310
+ r[s].forEach((i) => {
1314
1311
  De.push({
1315
1312
  module: "M01",
1316
1313
  type: 1,
@@ -1321,7 +1318,7 @@ function Hs() {
1321
1318
  });
1322
1319
  break;
1323
1320
  case "M02":
1324
- s[r].forEach((i) => {
1321
+ r[s].forEach((i) => {
1325
1322
  De.push({
1326
1323
  module: "M02",
1327
1324
  type: 117,
@@ -1333,32 +1330,32 @@ function Hs() {
1333
1330
  break;
1334
1331
  }
1335
1332
  })(), setInterval(() => {
1336
- De.forEach((s, r) => {
1333
+ De.forEach((r, s) => {
1337
1334
  t({
1338
1335
  type: "add",
1339
1336
  data: {
1340
- module: s.module,
1341
- type: s.type,
1342
- id: s.id,
1343
- datetime: s.datetime,
1344
- txt: s.title
1337
+ module: r.module,
1338
+ type: r.type,
1339
+ id: r.id,
1340
+ datetime: r.datetime,
1341
+ txt: r.title
1345
1342
  }
1346
- }), s.datetime < (/* @__PURE__ */ new Date()).getTime() && De.splice(r, 1);
1343
+ }), r.datetime < (/* @__PURE__ */ new Date()).getTime() && De.splice(s, 1);
1347
1344
  });
1348
1345
  }, 6e4);
1349
1346
  }, []);
1350
- let n = async (s) => {
1351
- t({ type: "hide", id: s.id });
1347
+ let n = async (r) => {
1348
+ t({ type: "hide", id: r.id });
1352
1349
  };
1353
1350
  return /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
1354
1351
  /* @__PURE__ */ a.jsx(
1355
1352
  "div",
1356
1353
  {
1357
- className: Gs.n,
1354
+ className: Gr.n,
1358
1355
  onClick: () => {
1359
1356
  t({ type: "open", open: !0 });
1360
1357
  },
1361
- children: e.active ? /* @__PURE__ */ a.jsx(As, {}) : /* @__PURE__ */ a.jsx(Os, {})
1358
+ children: e.active ? /* @__PURE__ */ a.jsx(Ar, {}) : /* @__PURE__ */ a.jsx(Or, {})
1362
1359
  }
1363
1360
  ),
1364
1361
  e.open ? /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
@@ -1372,29 +1369,27 @@ function Hs() {
1372
1369
  }
1373
1370
  ),
1374
1371
  /* @__PURE__ */ a.jsxs("div", { className: "notify-m", children: [
1375
- /* @__PURE__ */ a.jsx("div", { className: "notify-l", children: e.news.map((s, r) => /* @__PURE__ */ a.jsx(
1376
- qs,
1372
+ /* @__PURE__ */ a.jsx("div", { className: "notify-l", children: e.news.map((r, s) => /* @__PURE__ */ a.jsx(
1373
+ qr,
1377
1374
  {
1378
- data: s,
1375
+ data: r,
1379
1376
  dispatch: t
1380
1377
  },
1381
- r
1378
+ s
1382
1379
  )) }),
1383
1380
  /* @__PURE__ */ a.jsx("div", { className: "notify-b", onClick: n, children: "История" })
1384
1381
  ] })
1385
1382
  ] }) : ""
1386
1383
  ] });
1387
1384
  }
1388
- const qs = ({ data: e, dispatch: t }) => {
1389
- let n = async (s) => {
1390
- console.log(s), t({ type: "hide", id: s.id });
1391
- let r = await ce.Send({
1385
+ const qr = ({ data: e, dispatch: t }) => {
1386
+ let n = async (r) => {
1387
+ t({ type: "hide", id: r.id }), await ce.Send({
1392
1388
  type: "module",
1393
1389
  module: "M00",
1394
1390
  query: "x0055",
1395
- data: { id: s.id, type: s.type, db: s.db }
1391
+ data: { id: r.id, type: r.type, db: r.db }
1396
1392
  });
1397
- console.log(r);
1398
1393
  };
1399
1394
  return /* @__PURE__ */ a.jsxs("div", { className: "notify-i", children: [
1400
1395
  /* @__PURE__ */ a.jsx("div", { className: "--icon", "data-icon": e.type }),
@@ -1404,25 +1399,25 @@ const qs = ({ data: e, dispatch: t }) => {
1404
1399
  ] }),
1405
1400
  /* @__PURE__ */ a.jsx("div", { className: "--hide", "data-icon": "F038", onClick: () => n(e), children: " " })
1406
1401
  ] });
1407
- }, Js = "KGZ1bmN0aW9uKCl7InVzZSBzdHJpY3QiO2xldCBhPVtdLHM9bnVsbDtvbmNvbm5lY3Q9ZnVuY3Rpb24obCl7dmFyIHQ9bC5zb3VyY2U7YS5wdXNoKHQpO2NvbnN0IG49ZT0+e3MhPT1udWxsJiZzLnJlYWR5U3RhdGU9PT0xP3Muc2VuZChKU09OLnN0cmluZ2lmeShlKSk6dC5wb3N0TWVzc2FnZSh7dHlwZToibm9TZW5kIn0pfTtsZXQgcj1lPT57aWYocyE9PW51bGwmJnMucmVhZHlTdGF0ZT09PTEpcmV0dXJuIHQucG9zdE1lc3NhZ2Uoe3R5cGU6InRydWUifSk7ZS5say5hZGRyZXNzPT09ImxvY2FsaG9zdCI/cz1uZXcgV2ViU29ja2V0KGB3czovL2xvY2FsaG9zdDoke2UubGsuc29ja2V0KzF9YCk6cz1uZXcgV2ViU29ja2V0KCJ3c3M6Ly8iK2UubGsuYWRkcmVzcysiOiIrKGUubGsuc29ja2V0KzEpKSxzLm9uZXJyb3I9KCk9PnQucG9zdE1lc3NhZ2Uoe3R5cGU6ImVycm9yIn0pLHMub25vcGVuPSgpPT57bih7dHlwZToiY29ubmVjdCIsdWtleTplLnVrZXl9KX0scy5vbm1lc3NhZ2U9bz0+e2xldCBjPUpTT04ucGFyc2Uoby5kYXRhKTthLmZvckVhY2goZD0+e2QucG9zdE1lc3NhZ2UoYyl9KX0scy5vbmNsb3NlPSgpPT50LnBvc3RNZXNzYWdlKHt0eXBlOiJjbG9zZWQifSl9O3Qub25tZXNzYWdlPWZ1bmN0aW9uKGUpe3N3aXRjaChlLmRhdGEudHlwZSl7Y2FzZSJsZW5ndGgiOnJldHVybiB0LnBvc3RNZXNzYWdlKGEubGVuZ3RoKTtjYXNlImFsbCI6cmV0dXJuIGEuZm9yRWFjaChvPT5vLnBvc3RNZXNzYWdlKHthbGw6YS5sZW5ndGh9KSk7Y2FzZSJzZW5kIjpyZXR1cm4gbihlLmRhdGEuanNvbik7Y2FzZSJjb25uZWN0IjpyZXR1cm4gcihlLmRhdGEpO2RlZmF1bHQ6dC5wb3N0TWVzc2FnZSh7dHlwZToiZGVmYXVsdCIsZGF0YTplLmRhdGEuanNvbn0pfX19fSkoKTsK";
1408
- function Xs(e) {
1402
+ }, Jr = "KGZ1bmN0aW9uKCl7InVzZSBzdHJpY3QiO2xldCBhPVtdLHM9bnVsbDtvbmNvbm5lY3Q9ZnVuY3Rpb24obCl7dmFyIHQ9bC5zb3VyY2U7YS5wdXNoKHQpO2NvbnN0IG49ZT0+e3MhPT1udWxsJiZzLnJlYWR5U3RhdGU9PT0xP3Muc2VuZChKU09OLnN0cmluZ2lmeShlKSk6dC5wb3N0TWVzc2FnZSh7dHlwZToibm9TZW5kIn0pfTtsZXQgcj1lPT57aWYocyE9PW51bGwmJnMucmVhZHlTdGF0ZT09PTEpcmV0dXJuIHQucG9zdE1lc3NhZ2Uoe3R5cGU6InRydWUifSk7ZS5say5hZGRyZXNzPT09ImxvY2FsaG9zdCI/cz1uZXcgV2ViU29ja2V0KGB3czovL2xvY2FsaG9zdDoke2UubGsuc29ja2V0KzF9YCk6cz1uZXcgV2ViU29ja2V0KCJ3c3M6Ly8iK2UubGsuYWRkcmVzcysiOiIrKGUubGsuc29ja2V0KzEpKSxzLm9uZXJyb3I9KCk9PnQucG9zdE1lc3NhZ2Uoe3R5cGU6ImVycm9yIn0pLHMub25vcGVuPSgpPT57bih7dHlwZToiY29ubmVjdCIsdWtleTplLnVrZXl9KX0scy5vbm1lc3NhZ2U9bz0+e2xldCBjPUpTT04ucGFyc2Uoby5kYXRhKTthLmZvckVhY2goZD0+e2QucG9zdE1lc3NhZ2UoYyl9KX0scy5vbmNsb3NlPSgpPT50LnBvc3RNZXNzYWdlKHt0eXBlOiJjbG9zZWQifSl9O3Qub25tZXNzYWdlPWZ1bmN0aW9uKGUpe3N3aXRjaChlLmRhdGEudHlwZSl7Y2FzZSJsZW5ndGgiOnJldHVybiB0LnBvc3RNZXNzYWdlKGEubGVuZ3RoKTtjYXNlImFsbCI6cmV0dXJuIGEuZm9yRWFjaChvPT5vLnBvc3RNZXNzYWdlKHthbGw6YS5sZW5ndGh9KSk7Y2FzZSJzZW5kIjpyZXR1cm4gbihlLmRhdGEuanNvbik7Y2FzZSJjb25uZWN0IjpyZXR1cm4gcihlLmRhdGEpO2RlZmF1bHQ6dC5wb3N0TWVzc2FnZSh7dHlwZToiZGVmYXVsdCIsZGF0YTplLmRhdGEuanNvbn0pfX19fSkoKTsK";
1403
+ function Xr(e) {
1409
1404
  return new SharedWorker(
1410
- "data:text/javascript;base64," + Js,
1405
+ "data:text/javascript;base64," + Jr,
1411
1406
  {
1412
1407
  name: e == null ? void 0 : e.name
1413
1408
  }
1414
1409
  );
1415
1410
  }
1416
- function Qs(e) {
1411
+ function Qr(e) {
1417
1412
  let t = {}, n = {};
1418
- e.data.forEach((r) => {
1419
- t[r.id] = { s: r.v, n: r.a }, n[r.id] = r;
1413
+ e.data.forEach((s) => {
1414
+ t[s.id] = { s: s.v, n: s.a }, n[s.id] = s;
1420
1415
  });
1421
- let s = { ...Be(), 901: t };
1422
- pn(n), Pe(s);
1416
+ let r = { ...Be(), 901: t };
1417
+ vn(n), Pe(r);
1423
1418
  }
1424
- function er() {
1425
- let e = vn(), t = {};
1419
+ function es() {
1420
+ let e = pn(), t = {};
1426
1421
  return Object.keys(e).forEach((n) => {
1427
1422
  t[e[n].id] = {}, t[e[n].id].name = e[n].a;
1428
1423
  }), t;
@@ -1437,10 +1432,10 @@ let ie = {}, U = {}, Ve = [
1437
1432
  "info",
1438
1433
  "job"
1439
1434
  ];
1440
- function tr() {
1441
- const [e, t] = g.useState(!1), [n, s] = g.useState(!1);
1442
- function r(i) {
1443
- const c = new Xs();
1435
+ function ts() {
1436
+ const [e, t] = x.useState(!1), [n, r] = x.useState(!1);
1437
+ function s(i) {
1438
+ const c = new Xr();
1444
1439
  ie.laodData = (l) => {
1445
1440
  let _ = Ve.indexOf(l);
1446
1441
  _ >= 0 && Ve.splice(_, 1), Ve.length === 0 && t(!0);
@@ -1448,7 +1443,7 @@ function tr() {
1448
1443
  c.port.postMessage({ type: "send", json: l });
1449
1444
  }, c.port.onmessage = (l) => {
1450
1445
  let _ = l.data;
1451
- _.type === "error" && s(!0), _.type === "true" && t(!0), _.type === "closed" && c.port.postMessage({
1446
+ _.type === "error" && r(!0), _.type === "true" && t(!0), _.type === "closed" && c.port.postMessage({
1452
1447
  type: "connect",
1453
1448
  ukey: i,
1454
1449
  lk: dt()
@@ -1459,16 +1454,16 @@ function tr() {
1459
1454
  lk: dt()
1460
1455
  });
1461
1456
  }
1462
- return [r, e, n];
1457
+ return [s, e, n];
1463
1458
  }
1464
1459
  U.module = (e) => {
1465
1460
  ie[e.listen] !== void 0 && (ie[e.listen](e), delete ie[e.listen]);
1466
1461
  };
1467
- U.bell = Us;
1468
- U.company = Qs;
1462
+ U.bell = Ur;
1463
+ U.company = Qr;
1469
1464
  U.info = (e) => {
1470
1465
  let t = {};
1471
- 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), gn(e.data.menu);
1466
+ 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);
1472
1467
  };
1473
1468
  U.version = async (e) => {
1474
1469
  jt.version.Server(e.data);
@@ -1478,7 +1473,7 @@ U.online = async (e) => {
1478
1473
  U.offline = async (e) => {
1479
1474
  };
1480
1475
  U.chat = (e) => {
1481
- switch (console.log(e.data.action), e.data.action) {
1476
+ switch (e.data.action) {
1482
1477
  case "new_message":
1483
1478
  Ue.getModule();
1484
1479
  break;
@@ -1489,22 +1484,20 @@ U.chat = (e) => {
1489
1484
  Ue.getModule();
1490
1485
  break;
1491
1486
  }
1492
- console.log(e);
1493
1487
  };
1494
1488
  U.users = (e) => {
1495
- console.log("users", e);
1496
1489
  let t = {};
1497
- e.data.forEach((s) => {
1498
- let r = s.p01 + " " + s.p02 + " " + s.p03, i = s.p01 + " " + s.p02.substring(0, 1) + "." + s.p03.substring(0, 1) + ".", c = s.p01.substring(0, 1) + "" + s.p02.substring(0, 1) + s.p03.substring(0, 1);
1499
- t[s.id] = {
1500
- id: s.id,
1501
- admin: s.m.includes("99"),
1502
- ava: JSON.parse(s.a),
1503
- job: s.j,
1490
+ e.data.forEach((r) => {
1491
+ let s = r.p01 + " " + r.p02 + " " + r.p03, i = r.p01 + " " + r.p02.substring(0, 1) + "." + r.p03.substring(0, 1) + ".", c = r.p01.substring(0, 1) + "" + r.p02.substring(0, 1) + r.p03.substring(0, 1);
1492
+ t[r.id] = {
1493
+ id: r.id,
1494
+ admin: r.m.includes("99"),
1495
+ ava: JSON.parse(r.a),
1496
+ job: r.j,
1504
1497
  login: "",
1505
- online: { time: s.o, status: 0 },
1506
- sts: s.s,
1507
- nameFull: r,
1498
+ online: { time: r.o, status: 0 },
1499
+ sts: r.s,
1500
+ nameFull: s,
1508
1501
  name: i,
1509
1502
  number: c
1510
1503
  };
@@ -1529,8 +1522,8 @@ U.select = (e) => {
1529
1522
  };
1530
1523
  U.job = (e) => {
1531
1524
  let t = { ...Be() }, n = {};
1532
- Object.keys(e.data).forEach((s) => {
1533
- n[s] = { s: 1, n: e.data[s] };
1525
+ Object.keys(e.data).forEach((r) => {
1526
+ n[r] = { s: 1, n: e.data[r] };
1534
1527
  }), t[1] = n, Pe(t);
1535
1528
  };
1536
1529
  U.setting = (e) => {
@@ -1538,21 +1531,21 @@ U.setting = (e) => {
1538
1531
  };
1539
1532
  U.app = () => {
1540
1533
  };
1541
- const nr = (e, t) => {
1534
+ const ns = (e, t) => {
1542
1535
  ie[e] = t;
1543
- }, ar = (e, t) => {
1536
+ }, as = (e, t) => {
1544
1537
  ie[e](t);
1545
1538
  };
1546
- function sr(e) {
1539
+ function rs(e) {
1547
1540
  let t = "_" + String(Math.random()).substring(2, 7);
1548
1541
  return new Promise((n) => {
1549
- ie[t] = (s) => {
1550
- s.error !== void 0 ? n({ error: s.error }) : n(s.data), delete ie[t];
1542
+ ie[t] = (r) => {
1543
+ r.error !== void 0 ? n({ error: r.error }) : n(r.data), delete ie[t];
1551
1544
  }, e = { ...e, listen: t }, e.type = "modules", ie.send(e);
1552
1545
  });
1553
1546
  }
1554
- const ce = { useConnect: tr, useListener: nr, setListener: ar, Send: sr };
1555
- function rr(e, t) {
1547
+ const ce = { useConnect: ts, useListener: ns, setListener: as, Send: rs };
1548
+ function ss(e, t) {
1556
1549
  t === void 0 ? (t = e, e = /* @__PURE__ */ new Date()) : e = new Date(e);
1557
1550
  let n = {
1558
1551
  yyyy: e.getFullYear(),
@@ -1565,27 +1558,27 @@ function rr(e, t) {
1565
1558
  __: "      ",
1566
1559
  _: "    "
1567
1560
  };
1568
- for (const s in n)
1569
- t = t.replace(s, n[s]);
1561
+ for (const r in n)
1562
+ t = t.replace(r, n[r]);
1570
1563
  return t;
1571
1564
  }
1572
- function ir(e) {
1565
+ function is(e) {
1573
1566
  let t = ["Января", "Февраля", "Марта", "Апреля", "Мая", "Июня", "Июля", "Августа", "Сентября", "Октября", "Ноября", "Декабря"], n = new Date(e);
1574
1567
  return { day: ("" + n.getFullYear()).slice(-2) + "" + ("0" + (n.getMonth() + 1)).slice(-2) + ("0" + n.getDate()).slice(-2), name: n.getDate() + " " + t[n.getMonth()] };
1575
1568
  }
1576
- const or = (e) => {
1577
- function t(N, I) {
1578
- var j, P, F;
1579
- N = N ?? "", I = I ?? 1;
1580
- for (var j = [], F = 0, P = N.length; F < P; )
1581
- j.push(N.slice(F, F += I));
1569
+ const os = (e) => {
1570
+ function t(R, N) {
1571
+ var j, $, F;
1572
+ R = R ?? "", N = N ?? 1;
1573
+ for (var j = [], F = 0, $ = R.length; F < $; )
1574
+ j.push(R.slice(F, F += N));
1582
1575
  return j;
1583
1576
  }
1584
- function n(N, I) {
1577
+ function n(R, N) {
1585
1578
  var j = [2, 0, 1, 1, 1, 2];
1586
- return I[N > 4 && N < 20 ? 2 : j[Math.min(N, 5)]];
1579
+ return N[R > 4 && R < 20 ? 2 : j[Math.min(R, 5)]];
1587
1580
  }
1588
- var s = {
1581
+ var r = {
1589
1582
  null: "ноль",
1590
1583
  a1: [
1591
1584
  "один",
@@ -1647,43 +1640,43 @@ const or = (e) => {
1647
1640
  u3: ["тысяча", "тысячи", "тысяч"],
1648
1641
  u2: ["миллион", "миллиона", "миллионов"],
1649
1642
  u1: ["миллиард", "миллиарда", "миллиардов"]
1650
- }, r, i, c, l, w, _, d, C, u, m, h, x;
1643
+ }, s, i, c, l, w, _, d, C, u, m, h, g;
1651
1644
  u = parseFloat(e).toFixed(2).split("."), _ = u[0], l = u[1];
1652
- var p = 12 - _.length;
1653
- if (p < 0)
1645
+ var v = 12 - _.length;
1646
+ if (v < 0)
1654
1647
  return !1;
1655
- for (var C = []; p--; )
1648
+ for (var C = []; v--; )
1656
1649
  C.push("0");
1657
1650
  _ = C.join("") + _;
1658
1651
  var w = [];
1659
1652
  if (_ > 0) {
1660
1653
  m = t(_, 3);
1661
- for (var y = -1; y < m.length; y++)
1662
- if (d = m[y], d > 0 && (h = t(d, 1), r = parseInt(h[0]), i = parseInt(h[1]), c = parseInt(h[2]), w.push(s.a100[r - 1]), x = y + 1 == 3 ? "a2" : "a1", i > 1 ? w.push(
1663
- s.a20[i - 2] + (c > 0 ? " " + s[x][c - 1] : "")
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(
1656
+ r.a20[i - 2] + (c > 0 ? " " + r[g][c - 1] : "")
1664
1657
  ) : w.push(
1665
- i > 0 ? s.a10[c] : s[x][c - 1]
1666
- ), m.length > y + 1)) {
1667
- var b = s["u" + (y + 1)];
1658
+ i > 0 ? r.a10[c] : r[g][c - 1]
1659
+ ), m.length > k + 1)) {
1660
+ var b = r["u" + (k + 1)];
1668
1661
  w.push(n(d, b));
1669
1662
  }
1670
1663
  } else
1671
- w.push(s.null);
1672
- return w.push(n(_, s.ur)), w.push(l + " " + n(l, s.uc)), w.join(" ").replace(RegExp(" {2,}", "g"), " ").trimLeft();
1664
+ w.push(r.null);
1665
+ return w.push(n(_, r.ur)), w.push(l + " " + n(l, r.uc)), w.join(" ").replace(RegExp(" {2,}", "g"), " ").trimLeft();
1673
1666
  };
1674
- function lr(e) {
1667
+ function ls(e) {
1675
1668
  let t = -1, n = [" kB", " MB", " GB", " TB", "PB", "EB", "ZB", "YB"];
1676
1669
  do
1677
1670
  e = e / 1024, t++;
1678
1671
  while (e > 1024);
1679
1672
  return Math.max(e, 0.1).toFixed(1) + n[t];
1680
1673
  }
1681
- function cr(e) {
1674
+ function cs(e) {
1682
1675
  let t = {};
1683
1676
  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];
1684
1677
  }
1685
- function dr(e, t, n, s) {
1686
- let r = {
1678
+ function ds(e, t, n, r) {
1679
+ let s = {
1687
1680
  sexM: "m",
1688
1681
  sexF: "f",
1689
1682
  gcaseIm: "nominative",
@@ -1813,14 +1806,14 @@ function dr(e, t, n, s) {
1813
1806
  if (c.match(/^[А-ЯЁ]\.?$/i))
1814
1807
  return c;
1815
1808
  this.init();
1816
- var x = this.rules[_];
1817
- let p;
1818
- return x.exceptions && (p = this.pick(c, l, d, x.exceptions, !0), p) ? p : (p = this.pick(c, l, d, x.suffixes, !1), p || c);
1809
+ var g = this.rules[_];
1810
+ let v;
1811
+ return g.exceptions && (v = this.pick(c, l, d, g.exceptions, !0), v) ? v : (v = this.pick(c, l, d, g.suffixes, !1), v || c);
1819
1812
  },
1820
1813
  // выбираем из списка правил первое подходящее и применяем
1821
1814
  pick: function(c, l, _, d, u) {
1822
1815
  let m = c.toLowerCase();
1823
- for (var h = 0, x = d.length; h < x; h++)
1816
+ for (var h = 0, g = d.length; h < g; h++)
1824
1817
  if (this.ruleMatch(m, l, d[h], u))
1825
1818
  return this.applyMod(c, _, d[h]);
1826
1819
  return !1;
@@ -1876,8 +1869,8 @@ function dr(e, t, n, s) {
1876
1869
  return c;
1877
1870
  },
1878
1871
  getSex: () => {
1879
- if (r.mn.length > 2)
1880
- switch (r.mn.substr(r.mn.length - 2)) {
1872
+ if (s.mn.length > 2)
1873
+ switch (s.mn.substr(s.mn.length - 2)) {
1881
1874
  case "ич":
1882
1875
  return "m";
1883
1876
  case "на":
@@ -1885,20 +1878,20 @@ function dr(e, t, n, s) {
1885
1878
  }
1886
1879
  return "";
1887
1880
  },
1888
- fullName: (c) => ((r.fullNameSurnameLast ? "" : r.lastName(c) + " ") + r.firstName(c) + " " + r.middleName(c) + (r.fullNameSurnameLast ? " " + r.lastName(c) : "")).replace(/^ +| +$/g, ""),
1889
- lastName: (c) => r.word(r.ln, r.sex, "lastName", c),
1890
- firstName: (c) => r.word(r.fn, r.sex, "firstName", c),
1891
- middleName: (c) => r.word(r.mn, r.sex, "middleName", c)
1881
+ fullName: (c) => ((s.fullNameSurnameLast ? "" : s.lastName(c) + " ") + s.firstName(c) + " " + s.middleName(c) + (s.fullNameSurnameLast ? " " + s.lastName(c) : "")).replace(/^ +| +$/g, ""),
1882
+ lastName: (c) => s.word(s.ln, s.sex, "lastName", c),
1883
+ firstName: (c) => s.word(s.fn, s.sex, "firstName", c),
1884
+ middleName: (c) => s.word(s.mn, s.sex, "middleName", c)
1892
1885
  };
1893
1886
  if (typeof t > "u") {
1894
1887
  var i = e.match(/^\s*(\S+)(\s+(\S+)(\s+(\S+))?)?\s*$/);
1895
1888
  if (!i)
1896
1889
  return "Cannot parse supplied name";
1897
- i[5] && i[3].match(/(ич|на)$/) && !i[5].match(/(ич|на)$/) ? (e = i[5], t = i[1], n = i[3], r.fullNameSurnameLast = !0) : (e = i[1], t = i[3], n = i[5]);
1890
+ i[5] && i[3].match(/(ич|на)$/) && !i[5].match(/(ич|на)$/) ? (e = i[5], t = i[1], n = i[3], s.fullNameSurnameLast = !0) : (e = i[1], t = i[3], n = i[5]);
1898
1891
  }
1899
- return r.ln = e, r.fn = t || "", r.mn = n || "", r.sex = s || r.getSex(), r;
1892
+ return s.ln = e, s.fn = t || "", s.mn = n || "", s.sex = r || s.getSex(), s;
1900
1893
  }
1901
- function _r(e) {
1894
+ function _s(e) {
1902
1895
  let t = e.split(" ");
1903
1896
  switch (t.length) {
1904
1897
  case 2:
@@ -1909,7 +1902,7 @@ function _r(e) {
1909
1902
  return e;
1910
1903
  }
1911
1904
  }
1912
- function ur(e) {
1905
+ function us(e) {
1913
1906
  return {
1914
1907
  1: { val: "01", name: "Январь", names: "Января", abc: "Янв" },
1915
1908
  2: { val: "02", name: "Февраль", names: "Февраля", abc: "Февр" },
@@ -1925,130 +1918,130 @@ function ur(e) {
1925
1918
  12: { val: "12", name: "Декабрь", names: "Декабря", abc: "Дек" }
1926
1919
  }[e];
1927
1920
  }
1928
- function mr(e) {
1921
+ function ms(e) {
1929
1922
  return parseFloat(e).toFixed(2).replace(/(\d)(?=(\d{3})+\.)/g, "$1 ");
1930
1923
  }
1931
- function fr(e, t) {
1924
+ function fs(e, t) {
1932
1925
  let n = t + "";
1933
1926
  for (; n.length < e; )
1934
1927
  n = "0" + n;
1935
1928
  return n;
1936
1929
  }
1937
- function hr(e, t, n) {
1938
- let s = t / e * n;
1939
- return (typeof s != "number" || s === 1 / 0) && (s = 0), parseFloat(s).toFixed(1);
1930
+ function hs(e, t, n) {
1931
+ let r = t / e * n;
1932
+ return (typeof r != "number" || r === 1 / 0) && (r = 0), parseFloat(r).toFixed(1);
1940
1933
  }
1941
- function gr(e) {
1934
+ function xs(e) {
1942
1935
  return e.charAt(0).toUpperCase() + e.slice(1);
1943
1936
  }
1944
- function xr(e, t) {
1937
+ function gs(e, t) {
1945
1938
  e = Math.abs(e) % 100;
1946
1939
  let n = e % 10;
1947
1940
  return e > 10 && e < 20 ? t[2] : n > 1 && n < 5 ? t[1] : n === 1 ? t[0] : t[2];
1948
1941
  }
1949
1942
  const G = {
1950
- Date: rr,
1951
- MoneyString: or,
1952
- DateSort: ir,
1953
- Size: lr,
1954
- TypeFiles: cr,
1955
- Cases: dr,
1956
- Initials: _r,
1957
- Month: ur,
1958
- Money: mr,
1959
- Number: fr,
1960
- Percent: hr,
1961
- CapitalizeFirstLetter: gr,
1962
- DeclensionWord: xr
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
1963
1956
  };
1964
- function pr({ children: e }) {
1957
+ function vs({ children: e }) {
1965
1958
  return /* @__PURE__ */ a.jsx("div", { className: "l", children: /* @__PURE__ */ a.jsx("ul", { children: e }) });
1966
1959
  }
1967
- const vr = "_white_11p39_14", Cr = "_black_11p39_26", kr = "_shake_11p39_1", yr = "_modal_11p39_73", jr = "_o_11p39_83", br = "_w_11p39_14", wr = "_h_11p39_107", Sr = "_l_11p39_121", Er = "_t_11p39_159", Rr = "_m_11p39_73", Nr = "_x_11p39_167", Tr = "_s_11p39_177", Ir = "_c_11p39_182", Dr = "_f_11p39_187", Mr = "_btn_11p39_230", Fr = "_g_11p39_243", Lr = "_confirm_11p39_322", $r = "_cancel_11p39_327", Pr = "_disabled_11p39_332", Br = "_active_11p39_389", Or = "_coincidence_11p39_395", Ar = "_sa_11p39_431", Zr = "_ss_11p39_435", zr = "_sm_11p39_439", Gr = "_sl_11p39_443", Wr = "_sx_11p39_447", Kr = "_sf_11p39_451", se = {
1968
- white: vr,
1969
- black: Cr,
1970
- shake: kr,
1971
- modal: yr,
1972
- o: jr,
1973
- w: br,
1974
- h: wr,
1975
- l: Sr,
1976
- t: Er,
1977
- m: Rr,
1978
- x: Nr,
1979
- s: Tr,
1980
- c: Ir,
1981
- f: Dr,
1982
- btn: Mr,
1983
- g: Fr,
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,
1984
1977
  "size-a": "_size-a_11p39_296",
1985
1978
  "size-s": "_size-s_11p39_300",
1986
1979
  "size-m": "_size-m_11p39_304",
1987
1980
  "size-l": "_size-l_11p39_308",
1988
1981
  "size-x": "_size-x_11p39_312",
1989
1982
  "size-f": "_size-f_11p39_316",
1990
- confirm: Lr,
1991
- cancel: $r,
1992
- disabled: Pr,
1983
+ confirm: Ls,
1984
+ cancel: $s,
1985
+ disabled: Ps,
1993
1986
  await: "_await_11p39_339",
1994
- active: Br,
1995
- coincidence: Or,
1996
- sa: Ar,
1997
- ss: Zr,
1998
- sm: zr,
1999
- sl: Gr,
2000
- sx: Wr,
2001
- sf: Kr
1987
+ active: Bs,
1988
+ coincidence: Os,
1989
+ sa: As,
1990
+ ss: Zs,
1991
+ sm: zs,
1992
+ sl: Gs,
1993
+ sx: Ks,
1994
+ sf: Ws
2002
1995
  };
2003
- function Vr({ children: e }) {
2004
- return /* @__PURE__ */ a.jsx("div", { className: se.s, children: e });
1996
+ function Vs({ children: e }) {
1997
+ return /* @__PURE__ */ a.jsx("div", { className: re.s, children: e });
2005
1998
  }
2006
- function Ur({ children: e, className: t }) {
1999
+ function Us({ children: e, className: t }) {
2007
2000
  let n = {};
2008
2001
  return t && (n.className = t), /* @__PURE__ */ a.jsx("div", { "data-form": "outline", ...n, children: /* @__PURE__ */ a.jsx("ul", { children: e }) });
2009
2002
  }
2010
- function Yr({ children: e }) {
2011
- return /* @__PURE__ */ a.jsx("div", { className: se.c, children: e });
2003
+ function Ys({ children: e }) {
2004
+ return /* @__PURE__ */ a.jsx("div", { className: re.c, children: e });
2012
2005
  }
2013
- const Hr = "_btn_1hz2s_6", qr = "_confirm_1hz2s_19", rn = {
2014
- btn: Hr,
2015
- confirm: qr
2006
+ const Hs = "_btn_1hz2s_6", qs = "_confirm_1hz2s_19", sn = {
2007
+ btn: Hs,
2008
+ confirm: qs
2016
2009
  };
2017
- function Jr({ onClick: e, onSend: t, label: n, onRef: s }) {
2018
- let [r, i] = g.useState(!1);
2010
+ function Js({ onClick: e, onSend: t, label: n, onRef: r }) {
2011
+ let [s, i] = x.useState(!1);
2019
2012
  const c = () => {
2020
2013
  if (e)
2021
2014
  return e();
2022
- r || (i(!0), t && t(i));
2015
+ s || (i(!0), t && t(i));
2023
2016
  };
2024
2017
  return /* @__PURE__ */ a.jsx(
2025
2018
  "button",
2026
2019
  {
2027
- ref: s,
2028
- className: [rn.btn, rn.confirm].join(" "),
2020
+ ref: r,
2021
+ className: [sn.btn, sn.confirm].join(" "),
2029
2022
  onClick: c,
2030
- children: r ? "Ожидайте" : n
2023
+ children: s ? "Ожидайте" : n
2031
2024
  }
2032
2025
  );
2033
2026
  }
2034
2027
  let ye = {};
2035
- function Xr({ config: e }) {
2036
- let [t, n] = g.useState([]);
2028
+ function Xs({ config: e }) {
2029
+ let [t, n] = x.useState([]);
2037
2030
  return ye.x = () => {
2038
2031
  n([]);
2039
- }, ye.config = e, ye.add = (s) => {
2040
- n([...t, s]);
2041
- }, /* @__PURE__ */ a.jsx(a.Fragment, { children: t.map((s) => s) });
2032
+ }, ye.config = e, ye.add = (r) => {
2033
+ n([...t, r]);
2034
+ }, /* @__PURE__ */ a.jsx(a.Fragment, { children: t.map((r) => r) });
2042
2035
  }
2043
- function Qr({
2036
+ function Qs({
2044
2037
  title: e,
2045
2038
  children: t,
2046
2039
  button: n,
2047
- tabs: s,
2048
- size: r = "m",
2040
+ tabs: r,
2041
+ size: s = "m",
2049
2042
  menu: i
2050
2043
  }) {
2051
- const [c, l] = g.useState(!0), _ = g.useRef(), d = (m) => {
2044
+ const [c, l] = x.useState(!0), _ = x.useRef(), d = (m) => {
2052
2045
  if (n) {
2053
2046
  if (n.onClick)
2054
2047
  return m(!1), n.onClick({ setOpen: l });
@@ -2063,19 +2056,19 @@ function Qr({
2063
2056
  return /* @__PURE__ */ a.jsx(a.Fragment, { children: c ? /* @__PURE__ */ a.jsxs(
2064
2057
  "div",
2065
2058
  {
2066
- className: `${se.modal} ${se.white}`,
2059
+ className: `${re.modal} ${re.white}`,
2067
2060
  children: [
2068
- /* @__PURE__ */ a.jsx("div", { className: se.o, onClick: u }),
2061
+ /* @__PURE__ */ a.jsx("div", { className: re.o, onClick: u }),
2069
2062
  /* @__PURE__ */ a.jsxs(
2070
2063
  "div",
2071
2064
  {
2072
- className: [se.w, se[`s${r}`]].join(" "),
2065
+ className: [re.w, re[`s${s}`]].join(" "),
2073
2066
  ref: _,
2074
2067
  children: [
2075
- /* @__PURE__ */ a.jsxs("div", { className: se.h, children: [
2076
- /* @__PURE__ */ a.jsx("div", { className: se.t, children: e }),
2077
- /* @__PURE__ */ a.jsxs("div", { className: se.m, children: [
2078
- s && /* @__PURE__ */ a.jsx("nav", { children: s.map((m, h) => /* @__PURE__ */ a.jsx(
2068
+ /* @__PURE__ */ a.jsxs("div", { className: re.h, children: [
2069
+ /* @__PURE__ */ a.jsx("div", { className: re.t, children: e }),
2070
+ /* @__PURE__ */ a.jsxs("div", { className: re.m, children: [
2071
+ r && /* @__PURE__ */ a.jsx("nav", { children: r.map((m, h) => /* @__PURE__ */ a.jsx(
2079
2072
  "span",
2080
2073
  {
2081
2074
  onClick: m.onClick,
@@ -2089,7 +2082,7 @@ function Qr({
2089
2082
  /* @__PURE__ */ a.jsx(
2090
2083
  "div",
2091
2084
  {
2092
- className: se.x,
2085
+ className: re.x,
2093
2086
  onClick: () => {
2094
2087
  l(!1);
2095
2088
  },
@@ -2107,7 +2100,7 @@ function Qr({
2107
2100
  )
2108
2101
  ] }),
2109
2102
  t,
2110
- n !== void 0 ? /* @__PURE__ */ a.jsx(Jr, { label: n.label, onSend: d }) : ""
2103
+ n !== void 0 ? /* @__PURE__ */ a.jsx(Js, { label: n.label, onSend: d }) : ""
2111
2104
  ]
2112
2105
  }
2113
2106
  )
@@ -2130,23 +2123,23 @@ function ni(e) {
2130
2123
  }, 1e3);
2131
2124
  }
2132
2125
  function ai({ type: e, name: t, params: n }) {
2133
- let [s, r] = g.useState(null);
2134
- return g.useEffect(() => {
2135
- ye.config(e, t, n, r);
2136
- }, [n.id]), /* @__PURE__ */ a.jsx(a.Fragment, { children: s });
2126
+ let [r, s] = x.useState(null);
2127
+ return x.useEffect(() => {
2128
+ ye.config(e, t, n, s);
2129
+ }, [n.id]), /* @__PURE__ */ a.jsx(a.Fragment, { children: r });
2137
2130
  }
2138
- function si(e, t, n) {
2131
+ function ri(e, t, n) {
2139
2132
  ye.config(e, t, n);
2140
2133
  }
2141
- const wt = { List: pr, Scroll: Vr, Main: Qr, Add: ei, Icon: ai, Open: si, Shake: ni, Form: Ur, Center: Yr };
2134
+ const wt = { List: vs, Scroll: Vs, Main: Qs, Add: ei, Icon: ai, Open: ri, Shake: ni, Form: Us, Center: Ys };
2142
2135
  function wn({ text: e, type: t, button: n }) {
2143
- let [s, r] = g.useState(!1), i = { active: t };
2136
+ let [r, s] = x.useState(!1), i = { active: t };
2144
2137
  const c = () => {
2145
2138
  if (n) {
2146
2139
  if (n.onClick)
2147
2140
  return n.onClick({});
2148
2141
  if (n.onSend)
2149
- return s ? void 0 : (r(!0), n.onSend(r));
2142
+ return r ? void 0 : (s(!0), n.onSend(s));
2150
2143
  }
2151
2144
  };
2152
2145
  return /* @__PURE__ */ a.jsxs("div", { className: mt.al, ...i, children: [
@@ -2171,8 +2164,8 @@ function wn({ text: e, type: t, button: n }) {
2171
2164
  n && /* @__PURE__ */ a.jsx("button", { onClick: c, children: n.label })
2172
2165
  ] });
2173
2166
  }
2174
- const ri = "_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", gi = "_loadingB_1usnu_1", xi = "_m_1usnu_180", pi = "_ul_1usnu_196", vi = "_f_1usnu_226", X = {
2175
- h: ri,
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,
2176
2169
  g: ii,
2177
2170
  hr: oi,
2178
2171
  hl: li,
@@ -2183,18 +2176,18 @@ const ri = "_h_1usnu_1", ii = "_g_1usnu_11", oi = "_hr_1usnu_16", li = "_hl_1usn
2183
2176
  l: mi,
2184
2177
  hh: fi,
2185
2178
  c: hi,
2186
- loadingB: gi,
2187
- m: xi,
2188
- ul: pi,
2189
- f: vi
2190
- }, on = ({ title: e, left: t, right: n, children: s }) => /* @__PURE__ */ a.jsxs("div", { className: X.h, children: [
2179
+ loadingB: xi,
2180
+ m: gi,
2181
+ ul: vi,
2182
+ f: pi
2183
+ }, on = ({ title: e, left: t, right: n, children: r }) => /* @__PURE__ */ a.jsxs("div", { className: X.h, children: [
2191
2184
  /* @__PURE__ */ a.jsx("div", { className: X.t, children: e }),
2192
2185
  t && /* @__PURE__ */ a.jsx("div", { className: X.hl, children: t }),
2193
2186
  n && /* @__PURE__ */ a.jsx("div", { className: X.hr, children: n }),
2194
- s
2187
+ r
2195
2188
  ] }), ln = ({ children: e, ...t }) => /* @__PURE__ */ a.jsx("div", { className: X.l, children: e }), cn = ({ children: e }) => /* @__PURE__ */ a.jsx("div", { className: X.s, children: e }), dn = ({ children: e, edit: t }) => {
2196
2189
  const n = {};
2197
- return t && (n.edit = ""), console.log(n), /* @__PURE__ */ a.jsx("div", { ...n, className: X.f, children: e });
2190
+ return t && (n.edit = ""), /* @__PURE__ */ a.jsx("div", { ...n, className: X.f, children: e });
2198
2191
  };
2199
2192
  function _n({ children: e }) {
2200
2193
  return /* @__PURE__ */ a.jsx("div", { className: X.g, children: e });
@@ -2287,7 +2280,7 @@ const Ci = ({ children: e, className: t, title: n }) => /* @__PURE__ */ a.jsxs("
2287
2280
  search: !1,
2288
2281
  revers: !0
2289
2282
  }), Si = () => {
2290
- let [e, t] = g.useState([]);
2283
+ let [e, t] = x.useState([]);
2291
2284
  return /* @__PURE__ */ a.jsx(a.Fragment, { children: e.length !== 0 ? /* @__PURE__ */ a.jsxs("div", { className: "upload view", children: [
2292
2285
  /* @__PURE__ */ a.jsxs("div", { className: "--head", children: [
2293
2286
  /* @__PURE__ */ a.jsx("b", { children: "Загрузки" }),
@@ -2306,17 +2299,15 @@ const Ci = ({ children: e, className: t, title: n }) => /* @__PURE__ */ a.jsxs("
2306
2299
  id: e,
2307
2300
  name: t,
2308
2301
  listen: n,
2309
- dir: s
2302
+ dir: r
2310
2303
  }) => {
2311
2304
  t = t || "Файлы";
2312
- const [r, i] = g.useReducer(bi, {}, wi);
2313
- console.log(n);
2314
- const c = () => {
2305
+ const [s, i] = x.useReducer(bi, {}, wi), c = () => {
2315
2306
  wt.Add(
2316
2307
  /* @__PURE__ */ a.jsx(
2317
2308
  Ri,
2318
2309
  {
2319
- dir: s,
2310
+ dir: r,
2320
2311
  dispatch: i,
2321
2312
  id: e
2322
2313
  },
@@ -2324,17 +2315,17 @@ const Ci = ({ children: e, className: t, title: n }) => /* @__PURE__ */ a.jsxs("
2324
2315
  )
2325
2316
  );
2326
2317
  };
2327
- return g.useEffect(() => {
2318
+ return x.useEffect(() => {
2328
2319
  (async () => {
2329
2320
  let l = await ce.Send({
2330
2321
  type: "module",
2331
2322
  module: "M09",
2332
2323
  query: "x0900",
2333
- data: { dir: s, id: e }
2324
+ data: { dir: r, id: e }
2334
2325
  });
2335
2326
  i({ type: "load", list: l });
2336
2327
  })();
2337
- }, [e, s]), /* @__PURE__ */ a.jsxs(un.O, { children: [
2328
+ }, [e, r]), /* @__PURE__ */ a.jsxs(un.O, { children: [
2338
2329
  " ",
2339
2330
  /* @__PURE__ */ a.jsx(
2340
2331
  un.H,
@@ -2359,19 +2350,19 @@ const Ci = ({ children: e, className: t, title: n }) => /* @__PURE__ */ a.jsxs("
2359
2350
  )
2360
2351
  }
2361
2352
  ),
2362
- /* @__PURE__ */ a.jsx("ul", { "data-empty": "Файлов нет", className: "files_list", children: r.load ? /* @__PURE__ */ a.jsxs("div", { "type-load": "load", children: [
2353
+ /* @__PURE__ */ a.jsx("ul", { "data-empty": "Файлов нет", className: "files_list", children: s.load ? /* @__PURE__ */ a.jsxs("div", { "type-load": "load", children: [
2363
2354
  /* @__PURE__ */ a.jsx("i", {}),
2364
2355
  /* @__PURE__ */ a.jsx("i", {}),
2365
2356
  /* @__PURE__ */ a.jsx("i", {})
2366
- ] }) : r.list.length === 0 ? /* @__PURE__ */ a.jsx(a.Fragment, {}) : r.list.map((l, _) => /* @__PURE__ */ a.jsx(Ni, { dispatch: i, data: l }, _)) })
2357
+ ] }) : s.list.length === 0 ? /* @__PURE__ */ a.jsx(a.Fragment, {}) : s.list.map((l, _) => /* @__PURE__ */ a.jsx(Ni, { dispatch: i, data: l }, _)) })
2367
2358
  ] });
2368
2359
  }, Ri = ({ id: e, dir: t, dispatch: n }) => {
2369
- let [s, r] = g.useState(!0), i = g.useRef(null), c = (d) => {
2360
+ let [r, s] = x.useState(!0), i = x.useRef(null), c = (d) => {
2370
2361
  d.preventDefault(), d.stopPropagation();
2371
2362
  }, l = (d) => {
2372
2363
  }, _ = (d) => {
2373
2364
  };
2374
- return g.useEffect(() => {
2365
+ return x.useEffect(() => {
2375
2366
  let d = i.current;
2376
2367
  ["dragenter", "dragover", "dragleave", "drop"].forEach((u) => {
2377
2368
  d.addEventListener(u, c, !1), document.body.addEventListener(u, c, !1);
@@ -2380,7 +2371,7 @@ const Ci = ({ children: e, className: t, title: n }) => /* @__PURE__ */ a.jsxs("
2380
2371
  }), ["dragleave", "drop"].forEach((u) => {
2381
2372
  d.addEventListener(u, _, !1);
2382
2373
  });
2383
- }, []), /* @__PURE__ */ a.jsx(a.Fragment, { children: s ? /* @__PURE__ */ a.jsx(a.Fragment, { children: /* @__PURE__ */ a.jsx(
2374
+ }, []), /* @__PURE__ */ a.jsx(a.Fragment, { children: r ? /* @__PURE__ */ a.jsx(a.Fragment, { children: /* @__PURE__ */ a.jsx(
2384
2375
  "div",
2385
2376
  {
2386
2377
  className: "modal o ",
@@ -2393,7 +2384,7 @@ const Ci = ({ children: e, className: t, title: n }) => /* @__PURE__ */ a.jsxs("
2393
2384
  className: "x",
2394
2385
  "data-icon": "F038",
2395
2386
  onClick: () => {
2396
- r(!1);
2387
+ s(!1);
2397
2388
  }
2398
2389
  }
2399
2390
  ),
@@ -2419,7 +2410,7 @@ const Ci = ({ children: e, className: t, title: n }) => /* @__PURE__ */ a.jsxs("
2419
2410
  let i = await (await fetch(nn.url().files + "/yandex/data/" + e.id, {
2420
2411
  headers: {
2421
2412
  "Content-type": "application/json;charset=utf-8",
2422
- SSID: re.getSSID() || ""
2413
+ SSID: se.getSSID() || ""
2423
2414
  }
2424
2415
  })).blob();
2425
2416
  if (i.size !== 2) {
@@ -2428,11 +2419,11 @@ const Ci = ({ children: e, className: t, title: n }) => /* @__PURE__ */ a.jsxs("
2428
2419
  let l = document.createElement("a");
2429
2420
  l.setAttribute("href", c), l.setAttribute("download", e.name), l.click();
2430
2421
  }
2431
- }, s = async () => {
2422
+ }, r = async () => {
2432
2423
  (await (await fetch(nn.url().files + "/yandex/delete/" + e.id, {
2433
2424
  headers: {
2434
2425
  "Content-type": "application/json;charset=utf-8",
2435
- SSID: re.getSSID() || ""
2426
+ SSID: se.getSSID() || ""
2436
2427
  }
2437
2428
  })).json()).status === "success" && (t({ type: "delete", id: e.id }), Le.Send({ type: "success", text: "Файл успешно удалён" }));
2438
2429
  };
@@ -2456,7 +2447,7 @@ const Ci = ({ children: e, className: t, title: n }) => /* @__PURE__ */ a.jsxs("
2456
2447
  className: "f025",
2457
2448
  "data-icon": "F048 35 pointer",
2458
2449
  "data-color": "_b5b9cc :FF9800",
2459
- onClick: s
2450
+ onClick: r
2460
2451
  }
2461
2452
  )
2462
2453
  ] }),
@@ -2464,12 +2455,12 @@ const Ci = ({ children: e, className: t, title: n }) => /* @__PURE__ */ a.jsxs("
2464
2455
  ] });
2465
2456
  }, St = { setSetting: Ya, getSetting: Ha };
2466
2457
  let A = {};
2467
- A.list = as();
2458
+ A.list = ar();
2468
2459
  A.active = null;
2469
2460
  const Ti = () => {
2470
- var r;
2471
- let [e, t] = g.useState([]), [n, s] = g.useState(St.getSetting("s03"));
2472
- return g.useEffect(() => {
2461
+ var s;
2462
+ let [e, t] = x.useState([]), [n, r] = x.useState(St.getSetting("s03"));
2463
+ return x.useEffect(() => {
2473
2464
  (async () => {
2474
2465
  let i = Object.keys(A.list);
2475
2466
  if (i.length !== 0) {
@@ -2490,7 +2481,7 @@ const Ti = () => {
2490
2481
  })();
2491
2482
  }, []), A.active = (i) => {
2492
2483
  var c;
2493
- s(i), (c = document.querySelector("app-body")) == null || c.setAttribute("bookmarks", i === 1 ? "bottom" : "");
2484
+ r(i), (c = document.querySelector("app-body")) == null || c.setAttribute("bookmarks", i === 1 ? "bottom" : "");
2494
2485
  }, A.set = (i) => {
2495
2486
  t([
2496
2487
  ...e,
@@ -2500,19 +2491,19 @@ const Ti = () => {
2500
2491
  e.forEach((c, l) => {
2501
2492
  c.link === i && e.splice(l, 1);
2502
2493
  }), t([...e]);
2503
- }, (r = document.querySelector("app-body")) == null || r.setAttribute(
2494
+ }, (s = document.querySelector("app-body")) == null || s.setAttribute(
2504
2495
  "bookmarks",
2505
2496
  n === 1 && e.length !== 0 ? "bottom" : ""
2506
2497
  ), n !== 0 ? /* @__PURE__ */ a.jsx(a.Fragment, { children: e.length !== 0 ? /* @__PURE__ */ a.jsx("div", { className: "bookmarks", children: e.map((i) => i.item) }) : "" }) : "";
2507
2498
  }, Ii = ({ id: e, type: t, name: n }) => {
2508
- let s = t + "-" + e, [r, i] = g.useState(
2509
- A.list[s] !== void 0
2499
+ let r = t + "-" + e, [s, i] = x.useState(
2500
+ A.list[r] !== void 0
2510
2501
  );
2511
- g.useEffect(() => {
2512
- i(A.list[s] !== void 0);
2513
- }, [s]);
2502
+ x.useEffect(() => {
2503
+ i(A.list[r] !== void 0);
2504
+ }, [r]);
2514
2505
  let c = () => {
2515
- A.list[s] !== void 0 ? (A.del(s), delete A.list[s], en(A.list), i(!1), Le.Send({ type: "success", text: "Запись удален из закладок" })) : (A.list[s] = { id: e, name: n, type: t, link: s }, A.set(A.list[s]), en(A.list), i(!0), Le.Send({
2506
+ A.list[r] !== void 0 ? (A.del(r), delete A.list[r], en(A.list), i(!1), Le.Send({ type: "success", text: "Запись удален из закладок" })) : (A.list[r] = { id: e, name: n, type: t, link: r }, A.set(A.list[r]), en(A.list), i(!0), Le.Send({
2516
2507
  type: "success",
2517
2508
  text: "Запись добавлен в закладки"
2518
2509
  }));
@@ -2521,46 +2512,45 @@ const Ti = () => {
2521
2512
  "i",
2522
2513
  {
2523
2514
  "data-icon": "C018",
2524
- "data-color": r ? "_F44333 :F44333" : "_b5b9cc :F44333",
2515
+ "data-color": s ? "_F44333 :F44333" : "_b5b9cc :F44333",
2525
2516
  onClick: c
2526
2517
  }
2527
2518
  ) : "" });
2528
2519
  }, ft = ({ data: e }) => {
2529
- let t = (s) => {
2530
- s.preventDefault(), delete A.list[e.link], A.del(e.link);
2520
+ let t = (r) => {
2521
+ r.preventDefault(), delete A.list[e.link], A.del(e.link);
2531
2522
  }, n = () => {
2532
2523
  Ue.setId(e.id);
2533
2524
  };
2534
2525
  return /* @__PURE__ */ a.jsx("span", { onContextMenu: t, onClick: n, children: e.name });
2535
2526
  }, Di = (e) => {
2536
2527
  A.active(e);
2537
- }, O = {}, ht = {}, k = {};
2538
- k.config = { iceServers: [{ url: "stun:stun.l.google.com:19302" }] };
2539
- k.constraints = { optional: [{ DtlsSrtpKeyAgreement: !0 }] };
2540
- k.other = [];
2541
- k.users = {};
2542
- k.asset = 0;
2543
- k.remoute = !1;
2544
- k.stream = null;
2545
- k.user = 0;
2546
- k.connect = !1;
2547
- k.offer = null;
2548
- k.btnRefuse = null;
2549
- k.time = !1;
2550
- let xe;
2551
- xe = document.createElement("audio");
2552
- xe.setAttribute("autoplay", "true");
2553
- xe.setAttribute("muted", "true");
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;
2541
+ let ge;
2542
+ ge = document.createElement("audio");
2543
+ ge.setAttribute("autoplay", "true");
2544
+ ge.setAttribute("muted", "true");
2554
2545
  O.start = async (e) => {
2555
- k.rtc = new RTCPeerConnection(k.config), k.other = [], k.remoute = !1, k.rtc.onicecandidate = (n) => {
2556
- n.candidate && k.other.push(n.candidate);
2557
- }, k.rtc.ontrack = (n) => {
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) => {
2558
2549
  if (n.streams && n.streams[0])
2559
- xe.srcObject = n.streams[0];
2550
+ ge.srcObject = n.streams[0];
2560
2551
  else {
2561
- console.log(!1);
2562
- let s = new MediaStream(n.track);
2563
- xe.srcObject = s;
2552
+ let r = new MediaStream(n.track);
2553
+ ge.srcObject = r;
2564
2554
  }
2565
2555
  };
2566
2556
  const t = await navigator.mediaDevices.getUserMedia({
@@ -2568,33 +2558,24 @@ O.start = async (e) => {
2568
2558
  audio: { echoCancellation: !1, autoGainControl: !0 }
2569
2559
  });
2570
2560
  t.getTracks().forEach((n) => {
2571
- k.rtc.addTrack(n, t);
2572
- }), k.rtc.onconnectionstatechange = () => {
2573
- console.log(k.rtc.connectionState), k.rtc.connectionState;
2574
- }, k.rtc.ontrack = async (n) => {
2561
+ y.rtc.addTrack(n, t);
2562
+ }), y.rtc.onconnectionstatechange = () => {
2563
+ y.rtc.connectionState;
2564
+ }, y.rtc.ontrack = async (n) => {
2575
2565
  if (n.streams && n.streams[0])
2576
- xe.srcObject = n.streams[0];
2566
+ ge.srcObject = n.streams[0];
2577
2567
  else {
2578
- console.log(!1);
2579
- let s = new MediaStream(n.track);
2580
- xe.srcObject = s;
2568
+ let r = new MediaStream(n.track);
2569
+ ge.srcObject = r;
2581
2570
  }
2582
- }, k.rtc.onaddstream = (n) => {
2583
- console.log(n);
2584
- }, k.rtc.onnegotiationneeded = (n) => {
2585
- console.log(n);
2586
- }, k.rtc.oniceconnectionstatechange = (n) => {
2587
- console.log(n.target);
2588
- }, k.rtc.onsignalingstatechange = (n) => {
2589
- console.log(n.target.connectionState);
2590
- }, k.rtc.onicegatheringstatechange = (n) => {
2591
- console.log(n);
2592
- }, k.rtc.onicecandidateerror = (n) => {
2593
- console.log(n);
2594
- }, k.rtc.ondatachannel = (n) => {
2595
- console.log(n);
2596
- }, console.log(k.rtc), k.rtc.onerror = (n) => {
2597
- console.log("error", n);
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) => {
2598
2579
  }, e();
2599
2580
  };
2600
2581
  O.useListener = (e) => {
@@ -2605,66 +2586,66 @@ O.setListener = (e) => {
2605
2586
  };
2606
2587
  O.callTo = async (e) => {
2607
2588
  O.start(async () => {
2608
- const t = await k.rtc.createOffer();
2609
- await k.rtc.setLocalDescription(t), k.uid = e, ce.Send({
2589
+ const t = await y.rtc.createOffer();
2590
+ await y.rtc.setLocalDescription(t), y.uid = e, ce.Send({
2610
2591
  type: "module",
2611
2592
  module: "M00",
2612
2593
  query: "x0050",
2613
2594
  data: {
2614
2595
  type: "offer",
2615
2596
  offer: btoa(JSON.stringify(t)),
2616
- user: k.uid
2597
+ user: y.uid
2617
2598
  }
2618
2599
  });
2619
2600
  });
2620
2601
  };
2621
2602
  O.callIn = async (e) => {
2622
- console.log("callIn"), k.asset = e.id, k.offer = e.offer, k.uid = e.id;
2603
+ y.asset = e.id, y.offer = e.offer, y.uid = e.id;
2623
2604
  };
2624
2605
  O.callRise = async () => {
2625
2606
  O.start(async () => {
2626
- k.rtc.setRemoteDescription(
2627
- new RTCSessionDescription(JSON.parse(atob(k.offer)))
2607
+ y.rtc.setRemoteDescription(
2608
+ new RTCSessionDescription(JSON.parse(atob(y.offer)))
2628
2609
  );
2629
- const e = await k.rtc.createAnswer();
2630
- await k.rtc.setLocalDescription(e), ce.Send({
2610
+ const e = await y.rtc.createAnswer();
2611
+ await y.rtc.setLocalDescription(e), ce.Send({
2631
2612
  type: "module",
2632
2613
  module: "M00",
2633
2614
  query: "x0050",
2634
2615
  data: {
2635
2616
  type: "answer",
2636
2617
  answer: btoa(JSON.stringify(e)),
2637
- user: k.uid
2618
+ user: y.uid
2638
2619
  }
2639
- }), console.log("согласилась");
2620
+ });
2640
2621
  });
2641
2622
  };
2642
2623
  O.callOk = async (e) => {
2643
- k.asset = e.id;
2624
+ y.asset = e.id;
2644
2625
  const t = new RTCSessionDescription(JSON.parse(atob(e.answer)));
2645
- await k.rtc.setRemoteDescription(t), console.log("ok"), ce.Send({
2626
+ await y.rtc.setRemoteDescription(t), ce.Send({
2646
2627
  type: "module",
2647
2628
  module: "M00",
2648
2629
  query: "x0050",
2649
2630
  data: {
2650
2631
  type: "IceCandidate",
2651
- candidate: JSON.parse(JSON.stringify(k.other)),
2652
- user: k.uid,
2632
+ candidate: JSON.parse(JSON.stringify(y.other)),
2633
+ user: y.uid,
2653
2634
  send: !0
2654
2635
  }
2655
2636
  });
2656
2637
  };
2657
2638
  O.IceCandidate = async (e) => {
2658
- console.log(e), console.log("candidate"), e.candidate.forEach((t) => {
2659
- k.rtc.addIceCandidate(new RTCIceCandidate(t));
2639
+ e.candidate.forEach((t) => {
2640
+ y.rtc.addIceCandidate(new RTCIceCandidate(t));
2660
2641
  }), e.send && ce.Send({
2661
2642
  type: "module",
2662
2643
  module: "M00",
2663
2644
  query: "x0050",
2664
2645
  data: {
2665
2646
  type: "IceCandidate",
2666
- candidate: JSON.parse(JSON.stringify(k.other)),
2667
- user: k.uid,
2647
+ candidate: JSON.parse(JSON.stringify(y.other)),
2648
+ user: y.uid,
2668
2649
  send: !1
2669
2650
  }
2670
2651
  });
@@ -2672,34 +2653,34 @@ O.IceCandidate = async (e) => {
2672
2653
  O.callFrom = async () => {
2673
2654
  };
2674
2655
  O.callNo = () => {
2675
- console.log("Пользователь не в сети или отклонил"), k.asset = 0, k.time = !1, k.rtc && k.rtc.close(), O.setListener({ type: "state", data: "closed" });
2656
+ y.asset = 0, y.time = !1, y.rtc && y.rtc.close(), O.setListener({ type: "state", data: "closed" });
2676
2657
  };
2677
2658
  O.callOf = () => {
2678
- k.asset = 0, k.time = !1, k.rtc.close();
2659
+ y.asset = 0, y.time = !1, y.rtc.close();
2679
2660
  };
2680
2661
  O.callRefuser = async () => {
2681
2662
  ce.Send({
2682
2663
  type: "module",
2683
2664
  module: "M00",
2684
2665
  query: "x0050",
2685
- data: { type: "callRefuser", user: k.uid }
2686
- }), k.asset = 0, k.time = !1, k.rtc && k.rtc.close();
2666
+ data: { type: "callRefuser", user: y.uid }
2667
+ }), y.asset = 0, y.time = !1, y.rtc && y.rtc.close();
2687
2668
  };
2688
2669
  O.Run = async (e) => {
2689
2670
  O[e.data.type] && O[e.data.type](e.data);
2690
2671
  };
2691
2672
  let Me = {};
2692
2673
  function Mi() {
2693
- let [e, t] = g.useState([]), n = g.useRef(null);
2694
- return g.useEffect(() => {
2695
- }, []), Me.set = (s) => {
2696
- t([...e, s]);
2674
+ let [e, t] = x.useState([]), n = x.useRef(null);
2675
+ return x.useEffect(() => {
2676
+ }, []), Me.set = (r) => {
2677
+ t([...e, r]);
2697
2678
  }, Me.del = () => {
2698
2679
  t([]);
2699
- }, Me.audio = (s, r) => {
2700
- n.current.volume = 0.5, n.current.loop = r, n.current.src = "/audio/" + s, n.current.muted = !1;
2680
+ }, Me.audio = (r, s) => {
2681
+ n.current.volume = 0.5, n.current.loop = s, n.current.src = "/audio/" + r, n.current.muted = !1;
2701
2682
  }, /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
2702
- e.map((s) => s.item),
2683
+ e.map((r) => r.item),
2703
2684
  /* @__PURE__ */ a.jsx("audio", { id: "audio", ref: n, autoPlay: !0, muted: !0 })
2704
2685
  ] });
2705
2686
  }
@@ -2711,17 +2692,17 @@ function Fi(e, t) {
2711
2692
  });
2712
2693
  }
2713
2694
  function Li({ id: e, type: t }) {
2714
- const [n, s] = g.useState({}), [r, i] = g.useState(t);
2715
- console.log(r), g.useEffect(() => {
2716
- s(re.getSelect("user")[e]);
2717
- }, []), console.log(r), O.useListener((_) => {
2695
+ const [n, r] = x.useState({}), [s, i] = x.useState(t);
2696
+ x.useEffect(() => {
2697
+ r(se.getSelect("user")[e]);
2698
+ }, []), O.useListener((_) => {
2718
2699
  switch (_.type) {
2719
2700
  case "state":
2720
2701
  i(_.data);
2721
2702
  }
2722
2703
  });
2723
2704
  const c = () => {
2724
- switch (r) {
2705
+ switch (s) {
2725
2706
  case "out":
2726
2707
  return /* @__PURE__ */ a.jsx(
2727
2708
  "span",
@@ -2810,48 +2791,48 @@ function Li({ id: e, type: t }) {
2810
2791
  /* @__PURE__ */ a.jsx("div", { className: "b", children: c() })
2811
2792
  ] }) });
2812
2793
  }
2813
- const gt = {};
2794
+ const xt = {};
2814
2795
  function $i(e) {
2815
- gt.add(e);
2796
+ xt.add(e);
2816
2797
  }
2817
2798
  function Pi({ color: e, size: t, name: n }) {
2818
2799
  return /* @__PURE__ */ a.jsx("svg", { width: t, height: t, color: e, children: /* @__PURE__ */ a.jsx("use", { href: `#${n}` }) });
2819
2800
  }
2820
2801
  function Bi() {
2821
- let [e, t] = g.useState([]);
2822
- if (gt.x = () => {
2802
+ let [e, t] = x.useState([]);
2803
+ if (xt.x = () => {
2823
2804
  t([]);
2824
- }, gt.add = (s) => {
2825
- t(s);
2805
+ }, xt.add = (r) => {
2806
+ t(r);
2826
2807
  }, e.length === 0)
2827
2808
  return "";
2828
2809
  const n = { sprite: "" };
2829
- return /* @__PURE__ */ a.jsx("svg", { ...n, xmlns: "http://www.w3.org/2000/svg", children: e.map((s, r) => /* @__PURE__ */ a.jsx(
2810
+ return /* @__PURE__ */ a.jsx("svg", { ...n, xmlns: "http://www.w3.org/2000/svg", children: e.map((r, s) => /* @__PURE__ */ a.jsx(
2830
2811
  "symbol",
2831
2812
  {
2832
- id: s.name,
2813
+ id: r.name,
2833
2814
  viewBox: "0 0 24 24",
2834
2815
  fillRule: "evenodd",
2835
2816
  clipRule: "evenodd",
2836
- children: /* @__PURE__ */ a.jsx(s.path, {})
2817
+ children: /* @__PURE__ */ a.jsx(r.path, {})
2837
2818
  },
2838
- r
2819
+ s
2839
2820
  )) });
2840
2821
  }
2841
- const xt = {};
2822
+ const gt = {};
2842
2823
  function Oi(e, t) {
2843
- xt[e] = t;
2824
+ gt[e] = t;
2844
2825
  }
2845
2826
  function Ai(e, t) {
2846
- xt[e] !== void 0 && xt[e](t);
2827
+ gt[e] !== void 0 && gt[e](t);
2847
2828
  }
2848
2829
  const de = {};
2849
2830
  function Zi(e, t) {
2850
- const [n, s] = g.useState(t);
2851
- return g.useEffect(() => {
2831
+ const [n, r] = x.useState(t);
2832
+ return x.useEffect(() => {
2852
2833
  if (de[e])
2853
- return de[e].push(s);
2854
- de[e] = [s];
2834
+ return de[e].push(r);
2835
+ de[e] = [r];
2855
2836
  }, []), [n];
2856
2837
  }
2857
2838
  function zi(e, t) {
@@ -2863,20 +2844,20 @@ function Gi(e, t) {
2863
2844
  de[e] && de[e].forEach((n) => n(t));
2864
2845
  }
2865
2846
  const we = { setListener: Ai, useListener: Oi, setEmitter: Gi, useEmitter: Zi, subEmitter: zi };
2866
- function Wi() {
2867
- let [e, t] = g.useState([]);
2847
+ function Ki() {
2848
+ let [e, t] = x.useState([]);
2868
2849
  return we.useListener("form", (n) => {
2869
2850
  t([n]);
2870
2851
  }), /* @__PURE__ */ a.jsx(a.Fragment, { children: e.map((n) => n) });
2871
2852
  }
2872
- const Ki = ({ children: e, config: t }) => (D.New(t.crypto), t.defaultModule && Ea(t.defaultModule), Na(
2853
+ const Wi = ({ children: e, config: t }) => (D.New(t.crypto), t.defaultModule && Ea(t.defaultModule), Na(
2873
2854
  /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
2874
- /* @__PURE__ */ a.jsx(Xr, { config: t.modal }),
2875
- /* @__PURE__ */ a.jsx(ws, {}),
2876
- /* @__PURE__ */ a.jsx($s, {}),
2855
+ /* @__PURE__ */ a.jsx(Xs, { config: t.modal }),
2856
+ /* @__PURE__ */ a.jsx(wr, {}),
2857
+ /* @__PURE__ */ a.jsx($r, {}),
2877
2858
  /* @__PURE__ */ a.jsx(Si, {}),
2878
2859
  /* @__PURE__ */ a.jsx(Bi, {}),
2879
- /* @__PURE__ */ a.jsx(Wi, {}),
2860
+ /* @__PURE__ */ a.jsx(Ki, {}),
2880
2861
  /* @__PURE__ */ a.jsx(Mi, {}),
2881
2862
  /* @__PURE__ */ a.jsx(Ti, {}),
2882
2863
  e
@@ -2888,19 +2869,19 @@ const Ki = ({ children: e, config: t }) => (D.New(t.crypto), t.defaultModule &&
2888
2869
  payment: Yi
2889
2870
  };
2890
2871
  function qi() {
2891
- let [e, t] = g.useState({});
2872
+ let [e, t] = x.useState({});
2892
2873
  return !e.active && !e.payment ? "" : /* @__PURE__ */ a.jsx("div", { className: Hi.payment, children: "Истек срок оплаты! Доступ доступен до 16.04.2024" });
2893
2874
  }
2894
2875
  const Il = ({ children: e, ...t }) => {
2895
2876
  let n = {};
2896
- return n.enCode = (s) => JSON.stringify(s).toString(), n.deCode = (s) => JSON.parse(s), /* @__PURE__ */ a.jsxs("div", { className: "app", children: [
2877
+ return n.enCode = (r) => JSON.stringify(r).toString(), n.deCode = (r) => JSON.parse(r), /* @__PURE__ */ a.jsxs("div", { className: "app", children: [
2897
2878
  /* @__PURE__ */ a.jsx(qi, {}),
2898
2879
  /* @__PURE__ */ a.jsx(Vi, {}),
2899
2880
  /* @__PURE__ */ a.jsx(Ui, {}),
2900
- /* @__PURE__ */ a.jsx(Ki, { config: { modal: {}, crypto: n } }),
2881
+ /* @__PURE__ */ a.jsx(Wi, { config: { modal: {}, crypto: n } }),
2901
2882
  e
2902
2883
  ] });
2903
- }, Ji = ({ list: e, onClick: t, active: n, size: s, view: r }) => /* @__PURE__ */ a.jsx("nav", { children: /* @__PURE__ */ a.jsx("ul", { className: [s, r].join(" "), children: e.map((i) => /* @__PURE__ */ a.jsx(
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(
2904
2885
  Xi,
2905
2886
  {
2906
2887
  onClick: t,
@@ -2909,13 +2890,13 @@ const Il = ({ children: e, ...t }) => {
2909
2890
  link: i.link
2910
2891
  },
2911
2892
  i.link
2912
- )) }) }), Xi = ({ onClick: e, label: t, link: n, active: s }) => /* @__PURE__ */ a.jsx("li", { "tabs-active": String(s === n), onClick: () => e(n), children: t });
2893
+ )) }) }), Xi = ({ onClick: e, label: t, link: n, active: r }) => /* @__PURE__ */ a.jsx("li", { "tabs-active": String(r === n), onClick: () => e(n), children: t });
2913
2894
  Ji.defaultProps = { size: "M", view: "H" };
2914
2895
  const Qi = ({
2915
2896
  title: e = "",
2916
2897
  button: t,
2917
2898
  description: n = "",
2918
- children: s
2899
+ children: r
2919
2900
  }) => /* @__PURE__ */ a.jsxs("fieldset", { children: [
2920
2901
  e && /* @__PURE__ */ a.jsxs("legend", { children: [
2921
2902
  e,
@@ -2929,32 +2910,32 @@ const Qi = ({
2929
2910
  ),
2930
2911
  " "
2931
2912
  ] }),
2932
- /* @__PURE__ */ a.jsx("ul", { children: s }),
2913
+ /* @__PURE__ */ a.jsx("ul", { children: r }),
2933
2914
  n && /* @__PURE__ */ a.jsx("article", { children: n })
2934
2915
  ] }), eo = "_setting_dva4m_2", to = {
2935
2916
  setting: eo
2936
2917
  }, no = ({ children: e }) => /* @__PURE__ */ a.jsx("div", { className: to.setting, children: e }), ao = ({ label: e, children: t }) => {
2937
- let [n, s] = g.useState(!1);
2918
+ let [n, r] = x.useState(!1);
2938
2919
  return /* @__PURE__ */ a.jsxs("li", { "data-item": "accordion", children: [
2939
- /* @__PURE__ */ a.jsxs("dl", { onClick: () => s(!n), children: [
2920
+ /* @__PURE__ */ a.jsxs("dl", { onClick: () => r(!n), children: [
2940
2921
  /* @__PURE__ */ a.jsx("dt", { children: e }),
2941
2922
  /* @__PURE__ */ a.jsx("dd", { children: /* @__PURE__ */ a.jsx("div", { "data-close": String(n) }) })
2942
2923
  ] }),
2943
2924
  n && /* @__PURE__ */ a.jsx("div", { children: t })
2944
2925
  ] });
2945
- }, so = ({ label: e, onClick: t, button: n }) => /* @__PURE__ */ a.jsx("li", { children: /* @__PURE__ */ a.jsxs("dl", { children: [
2926
+ }, ro = ({ label: e, onClick: t, button: n }) => /* @__PURE__ */ a.jsx("li", { children: /* @__PURE__ */ a.jsxs("dl", { children: [
2946
2927
  /* @__PURE__ */ a.jsx("dt", { children: e }),
2947
2928
  /* @__PURE__ */ a.jsx("dd", { role: "button", onClick: () => t(), children: n })
2948
- ] }) }), ro = ({ active: e, onClick: t }) => (console.log(e), e = typeof e == "number" ? !!e : e, /* @__PURE__ */ a.jsx(
2929
+ ] }) }), so = ({ active: e, onClick: t }) => (e = typeof e == "number" ? !!e : e, /* @__PURE__ */ a.jsx(
2949
2930
  "div",
2950
2931
  {
2951
2932
  role: "switch",
2952
2933
  onClick: () => {
2953
- console.log("Wewew"), t();
2934
+ t();
2954
2935
  },
2955
2936
  "aria-checked": e ? "true" : "false"
2956
2937
  }
2957
- )), io = { Switch: ro }, oo = ({ label: e, onClick: t, active: n }) => /* @__PURE__ */ a.jsx("li", { children: /* @__PURE__ */ a.jsxs("dl", { children: [
2938
+ )), io = { Switch: so }, oo = ({ label: e, onClick: t, active: n }) => /* @__PURE__ */ a.jsx("li", { children: /* @__PURE__ */ a.jsxs("dl", { children: [
2958
2939
  /* @__PURE__ */ a.jsx("dt", { children: e }),
2959
2940
  /* @__PURE__ */ a.jsx("dd", { children: /* @__PURE__ */ a.jsx(io.Switch, { onClick: t, active: n }) })
2960
2941
  ] }) }), lo = ({ label: e, active: t, options: n }) => /* @__PURE__ */ a.jsx("li", { children: /* @__PURE__ */ a.jsxs("dl", { children: [
@@ -2969,9 +2950,9 @@ const Qi = ({
2969
2950
  ] }) }), uo = ({ label: e, children: t }) => /* @__PURE__ */ a.jsx("li", { children: /* @__PURE__ */ a.jsxs("dl", { children: [
2970
2951
  /* @__PURE__ */ a.jsx("dt", { children: e }),
2971
2952
  /* @__PURE__ */ a.jsx("dd", { children: t })
2972
- ] }) }), mo = { Accordion: ao, Button: so, Switch: oo, Info: co, Select: lo, Component: _o, Node: uo };
2973
- function Sn({ list: e, onClick: t, active: n, size: s, view: r }) {
2974
- return /* @__PURE__ */ a.jsx("nav", { children: /* @__PURE__ */ a.jsx("ul", { className: [s, r].join(" "), children: e.map((i) => /* @__PURE__ */ a.jsx(
2953
+ ] }) }), mo = { Accordion: ao, Button: ro, Switch: oo, Info: co, Select: lo, Component: _o, Node: uo };
2954
+ function Sn({ list: e, onClick: t, active: n, size: r, view: s }) {
2955
+ return /* @__PURE__ */ a.jsx("nav", { children: /* @__PURE__ */ a.jsx("ul", { className: [r, s].join(" "), children: e.map((i) => /* @__PURE__ */ a.jsx(
2975
2956
  fo,
2976
2957
  {
2977
2958
  onClick: t,
@@ -2982,9 +2963,9 @@ function Sn({ list: e, onClick: t, active: n, size: s, view: r }) {
2982
2963
  i.link
2983
2964
  )) }) });
2984
2965
  }
2985
- const fo = ({ onClick: e, label: t, link: n, active: s }) => /* @__PURE__ */ a.jsx("li", { "tabs-active": String(s === n), onClick: () => e(n), children: t });
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 });
2986
2967
  Sn.defaultProps = { size: "M", view: "H" };
2987
- const Dl = { Section: Qi, Main: no, Item: mo, Tabs: Sn }, Ml = { Icon: Ii, Item: ft, Active: Di }, Fl = { Send: Bs, Line: wn };
2968
+ const Dl = { Section: Qi, Main: no, Item: mo, Tabs: Sn }, Ml = { Icon: Ii, Item: ft, Active: Di }, Fl = { Send: Br, Line: wn };
2988
2969
  function ho() {
2989
2970
  return /* @__PURE__ */ a.jsx("svg", { viewBox: "0 0 462.86 359.96", children: /* @__PURE__ */ a.jsx(
2990
2971
  "path",
@@ -2994,15 +2975,15 @@ function ho() {
2994
2975
  }
2995
2976
  ) });
2996
2977
  }
2997
- const Ll = { Logo: ho, Sprite: $i, Symbol: Pi }, go = "_sort_1yrvt_1", xo = {
2998
- sort: go
2978
+ const Ll = { Logo: ho, Sprite: $i, Symbol: Pi }, xo = "_sort_1yrvt_1", go = {
2979
+ sort: xo
2999
2980
  };
3000
2981
  let qe = {};
3001
- function po(e, t) {
2982
+ function vo(e, t) {
3002
2983
  switch (t.type) {
3003
2984
  case "active":
3004
2985
  let n = "<";
3005
- return e.active === t.data && (n = e.sort === "<" ? ">" : "<"), qe.get({ active: t.data, sort: n }, !1), xn({ active: t.data, sort: n }), {
2986
+ return e.active === t.data && (n = e.sort === "<" ? ">" : "<"), qe.get({ active: t.data, sort: n }, !1), gn({ active: t.data, sort: n }), {
3006
2987
  ...e,
3007
2988
  active: t.data,
3008
2989
  sort: n
@@ -3011,12 +2992,12 @@ function po(e, t) {
3011
2992
  throw new Error();
3012
2993
  }
3013
2994
  }
3014
- function vo() {
3015
- const [e, t] = g.useReducer(
3016
- po,
2995
+ function po() {
2996
+ const [e, t] = x.useReducer(
2997
+ vo,
3017
2998
  _t() === void 0 ? { active: 1, sort: "<" } : _t()
3018
2999
  );
3019
- return /* @__PURE__ */ a.jsxs("div", { className: xo.sort, children: [
3000
+ return /* @__PURE__ */ a.jsxs("div", { className: go.sort, children: [
3020
3001
  /* @__PURE__ */ a.jsx(
3021
3002
  "i",
3022
3003
  {
@@ -3050,8 +3031,8 @@ function ko(e) {
3050
3031
  qe.set(e);
3051
3032
  }
3052
3033
  function yo(e, t, n) {
3053
- let s = 1, r = 0, i = {}, c = 50;
3054
- i[s] = [];
3034
+ let r = 1, s = 0, i = {}, c = 50;
3035
+ i[r] = [];
3055
3036
  let l = {}, _ = "s1a";
3056
3037
  switch (l.s1a = (d, u) => u.s1 - d.s1, l.s1d = (d, u) => d.s1 - u.s1, l.s2a = (d, u) => d.s2 - u.s2, l.s2d = (d, u) => u.s2 - d.s2, l.s3a = (d, u) => d.s3.localeCompare(u.s3), l.s3d = (d, u) => u.s3.localeCompare(d.s3), n.active) {
3057
3038
  case 1:
@@ -3065,21 +3046,21 @@ function yo(e, t, n) {
3065
3046
  break;
3066
3047
  }
3067
3048
  return t.sort(l[_]).forEach((d) => {
3068
- r++, r <= c || (s++, r = 1, i[s] = []), i[s].push(e[d.id]);
3049
+ s++, s <= c || (r++, s = 1, i[r] = []), i[r].push(e[d.id]);
3069
3050
  }), { data: i };
3070
3051
  }
3071
3052
  function jo(e) {
3072
3053
  qe.count(e);
3073
3054
  }
3074
- const $l = { Init: vo, useValue: Co, Set: ko, Run: yo, Count: jo }, Ye = {}, En = {};
3055
+ const $l = { Init: po, useValue: Co, Set: ko, Run: yo, Count: jo }, Ye = {}, En = {};
3075
3056
  function bo(e) {
3076
- const [t, n] = g.useState({}), s = async (r) => {
3057
+ const [t, n] = x.useState({}), r = async (s) => {
3077
3058
  n(
3078
3059
  Object.keys(Ye).reduce((i, c) => (i ? i[c] = Ye[c].all : i = {}, i), {})
3079
3060
  );
3080
3061
  };
3081
- return g.useEffect(() => {
3082
- e.forEach((r) => Ye[r] = { all: 0 }), En.menu = s, s();
3062
+ return x.useEffect(() => {
3063
+ e.forEach((s) => Ye[s] = { all: 0 }), En.menu = r, r();
3083
3064
  }, [e]), t;
3084
3065
  }
3085
3066
  function wo(e, t) {
@@ -3094,39 +3075,39 @@ class So {
3094
3075
  constructor(t = "el", n = "db") {
3095
3076
  ot(this, "storeName");
3096
3077
  ot(this, "_dbp");
3097
- this.storeName = n, this._dbp = new Promise((s, r) => {
3078
+ this.storeName = n, this._dbp = new Promise((r, s) => {
3098
3079
  const i = indexedDB.open(t, 1);
3099
- i.onerror = () => r(i.error), i.onsuccess = () => s(i.result), i.onupgradeneeded = () => {
3080
+ i.onerror = () => s(i.error), i.onsuccess = () => r(i.result), i.onupgradeneeded = () => {
3100
3081
  i.result.createObjectStore(n);
3101
3082
  };
3102
3083
  });
3103
3084
  }
3104
3085
  _withIDBStore(t, n) {
3105
3086
  return this._dbp.then(
3106
- (s) => new Promise((r, i) => {
3107
- const c = s.transaction(this.storeName, t);
3108
- c.oncomplete = () => r(), c.onabort = c.onerror = () => i(c.error), n(c.objectStore(this.storeName));
3087
+ (r) => new Promise((s, i) => {
3088
+ const c = r.transaction(this.storeName, t);
3089
+ c.oncomplete = () => s(), c.onabort = c.onerror = () => i(c.error), n(c.objectStore(this.storeName));
3109
3090
  })
3110
3091
  );
3111
3092
  }
3112
3093
  }
3113
3094
  let lt, z = {};
3114
- const Se = () => (lt || (lt = new So()), lt), me = (e, t, n = Se()) => n._withIDBStore("readwrite", (s) => {
3115
- z[e] = t, s.put(D.enCode(t), e);
3116
- }), oe = (e, t = Se()) => z[e] === void 0 ? new Promise((n, s) => {
3117
- let r;
3095
+ const Se = () => (lt || (lt = new So()), lt), me = (e, t, n = Se()) => n._withIDBStore("readwrite", (r) => {
3096
+ z[e] = t, r.put(D.enCode(t), e);
3097
+ }), oe = (e, t = Se()) => z[e] === void 0 ? new Promise((n, r) => {
3098
+ let s;
3118
3099
  t._withIDBStore("readonly", (i) => {
3119
- r = i.get(e);
3100
+ s = i.get(e);
3120
3101
  }).then(() => {
3121
- if (r.result !== void 0) {
3122
- let i = D.deCode(r.result);
3102
+ if (s.result !== void 0) {
3103
+ let i = D.deCode(s.result);
3123
3104
  z[e] = i, n(i);
3124
3105
  } else
3125
3106
  n({});
3126
3107
  });
3127
3108
  }) : z[e], Eo = (e, t = Se()) => t._withIDBStore("readwrite", (n) => {
3128
3109
  n.delete(e);
3129
- }), pt = (e = Se()) => e._withIDBStore("readwrite", (t) => {
3110
+ }), vt = (e = Se()) => e._withIDBStore("readwrite", (t) => {
3130
3111
  t.clear();
3131
3112
  }), Ro = (e = Se()) => {
3132
3113
  const t = [];
@@ -3135,35 +3116,35 @@ const Se = () => (lt || (lt = new So()), lt), me = (e, t, n = Se()) => n._withID
3135
3116
  this.result && (t.push(this.result.key), this.result.continue());
3136
3117
  };
3137
3118
  }).then(() => t);
3138
- }, No = (e, t, n = [], s = {}) => {
3139
- let r = n.length !== 0, i = [], c = s.sort, l = Object.keys(s).length !== 0, _ = Object.keys(s), d = Object.keys(e), u = 1, m = [], h = {};
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 = {};
3140
3121
  h[u] = [];
3141
- let x = (C) => {
3122
+ let g = (C) => {
3142
3123
  let w = "";
3143
- if (n.forEach((y) => {
3144
- w += t[C][y];
3124
+ if (n.forEach((k) => {
3125
+ w += t[C][k];
3145
3126
  }), l) {
3146
- let y = {};
3127
+ let k = {};
3147
3128
  _.forEach((b) => {
3148
- y[b] = t[C][b];
3129
+ k[b] = t[C][b];
3149
3130
  });
3150
3131
  for (let b in c)
3151
- 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));
3152
- i.push({ id: C, text: w, ...y });
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 });
3153
3134
  } else
3154
3135
  i.push({ id: C, text: w });
3155
- }, p = (C) => {
3136
+ }, v = (C) => {
3156
3137
  };
3157
3138
  return d.forEach((C) => {
3158
3139
  m.push(t[C]);
3159
3140
  }), m.forEach((C) => {
3160
- C === void 0 ? (pt(), location.reload()) : (r && x(C.id), l && p(C.id));
3161
- }), { list: h, search: i, filter: s };
3162
- }, To = (e, t, n, s = Se()) => {
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()) => {
3163
3144
  if (z[e] === void 0)
3164
- return new Promise((r, i) => {
3145
+ return new Promise((s, i) => {
3165
3146
  let c;
3166
- s._withIDBStore("readonly", (l) => {
3147
+ r._withIDBStore("readonly", (l) => {
3167
3148
  c = l.get(e);
3168
3149
  }).then(() => {
3169
3150
  if (c.result !== void 0) {
@@ -3171,38 +3152,38 @@ const Se = () => (lt || (lt = new So()), lt), me = (e, t, n = Se()) => n._withID
3171
3152
  z[e] = l, z[e][t.id] = {
3172
3153
  ...z[e][t.id],
3173
3154
  ...t.data
3174
- }, s.put(D.enCode(z[e]), e), r({});
3155
+ }, r.put(D.enCode(z[e]), e), s({});
3175
3156
  } else
3176
- r({});
3157
+ s({});
3177
3158
  });
3178
3159
  });
3179
3160
  if (z[e][t.id] !== void 0)
3180
- 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, s._withIDBStore("readwrite", (r) => {
3181
- r.put(D.enCode(z[e]), e), n !== void 0 && r.put(D.enCode(z[n]), n);
3161
+ 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
+ s.put(D.enCode(z[e]), e), n !== void 0 && s.put(D.enCode(z[n]), n);
3182
3163
  });
3183
- }, Io = async (e, t, n, s) => {
3184
- let r, i;
3185
- i = await oe(n), i[e.id] = e, await me(n, i), r !== null && (r = await oe(t), r[e.id] = e.eDate, await me(t, r)), s !== void 0 && s({ type: "load", page: r, base: i });
3186
- }, Do = async (e, t, n, s) => {
3187
- let r = await oe(t), i = await oe(n);
3164
+ }, Io = async (e, t, n, r) => {
3165
+ let s, i;
3166
+ 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) => {
3168
+ let s = await oe(t), i = await oe(n);
3188
3169
  for (let c in e)
3189
- i[c] = e[c], r[c] = e[c].eDate;
3190
- await me(t, r), await me(n, i), s !== void 0 && s({ type: "load", page: r, base: i });
3191
- }, Mo = async (e, t, n, s) => {
3192
- let r = await oe(t), i = await oe(n);
3193
- e.forEach((c) => delete r[c]), await me(t, r), s !== void 0 && s({ type: "load", page: r, base: i });
3170
+ i[c] = e[c], s[c] = e[c].eDate;
3171
+ 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) => {
3173
+ let s = await oe(t), i = await oe(n);
3174
+ e.forEach((c) => delete s[c]), await me(t, s), r !== void 0 && r({ type: "load", page: s, base: i });
3194
3175
  }, Fo = async (e, t, n) => {
3195
- let s = await oe(t);
3196
- e.forEach((r) => delete s[r]), await me(t, s);
3176
+ let r = await oe(t);
3177
+ e.forEach((s) => delete r[s]), await me(t, r);
3197
3178
  }, Lo = async (e, t, n) => {
3198
- let s = await oe(t);
3199
- e.forEach((r) => s[r.id] = r.eDate), await me(t, s);
3179
+ let r = await oe(t);
3180
+ e.forEach((s) => r[s.id] = s.eDate), await me(t, r);
3200
3181
  }, $o = async (e, t, n) => {
3201
- let s = await oe(t);
3182
+ let r = await oe(t);
3202
3183
  if (n !== void 0)
3203
- n({ type: "load", base: s });
3184
+ n({ type: "load", base: r });
3204
3185
  else
3205
- return s[e];
3186
+ return r[e];
3206
3187
  }, Po = (e) => z[e], Bl = {
3207
3188
  id: $o,
3208
3189
  get: oe,
@@ -3213,20 +3194,20 @@ const Se = () => (lt || (lt = new So()), lt), me = (e, t, n = Se()) => n._withID
3213
3194
  key: Ro,
3214
3195
  load: Po,
3215
3196
  split: No,
3216
- clear: pt,
3197
+ clear: vt,
3217
3198
  updAll: Do,
3218
3199
  delAll: Mo,
3219
3200
  delList: Fo,
3220
3201
  addList: Lo
3221
3202
  }, Bo = (e, t) => {
3222
3203
  const n = [];
3223
- t = t.map((s) => s.charCodeAt(0)), document.onkeydown = function(s) {
3224
- n.push(s.keyCode);
3225
- for (var r = 0; r < t.length; r++)
3226
- if (n.indexOf(t[r]) == -1)
3204
+ t = t.map((r) => r.charCodeAt(0)), document.onkeydown = function(r) {
3205
+ n.push(r.keyCode);
3206
+ for (var s = 0; s < t.length; s++)
3207
+ if (n.indexOf(t[s]) == -1)
3227
3208
  return;
3228
3209
  e(), n.length = 0;
3229
- }, document.onkeyup = function(s) {
3210
+ }, document.onkeyup = function(r) {
3230
3211
  n.length = 0;
3231
3212
  };
3232
3213
  }, Ol = { useKey: Bo }, Oo = "_s_18bde_1", Ao = "_loadingB_18bde_1", Zo = "_ul_18bde_31", zo = {
@@ -3250,12 +3231,12 @@ function Go(e, t) {
3250
3231
  size: Object.keys(t.data).length
3251
3232
  };
3252
3233
  case "update":
3253
- let n = Object.keys(e.data).length, s = e.item + 1;
3254
- return s = n < s ? 1 : s, e.item === s ? e : {
3234
+ let n = Object.keys(e.data).length, r = e.item + 1;
3235
+ return r = n < r ? 1 : r, e.item === r ? e : {
3255
3236
  ...e,
3256
- wait: e.size === s,
3257
- item: s,
3258
- list: [...e.list, ...e.data[s]]
3237
+ wait: e.size === r,
3238
+ item: r,
3239
+ list: [...e.list, ...e.data[r]]
3259
3240
  };
3260
3241
  case "clear":
3261
3242
  return {
@@ -3271,7 +3252,7 @@ function Go(e, t) {
3271
3252
  }
3272
3253
  }
3273
3254
  function Nn(e) {
3274
- const t = g.useRef(null), [n, s] = g.useReducer(Go, {
3255
+ const t = x.useRef(null), [n, r] = x.useReducer(Go, {
3275
3256
  load: !1,
3276
3257
  list: [],
3277
3258
  data: {},
@@ -3279,14 +3260,14 @@ function Nn(e) {
3279
3260
  wait: !1,
3280
3261
  size: 0
3281
3262
  });
3282
- g.useEffect(() => {
3283
- }, []), g.useEffect(() => {
3284
- t.current.scrollTop = 0, e.list !== null && s({ type: "load", load: !0, data: e.list });
3263
+ x.useEffect(() => {
3264
+ }, []), x.useEffect(() => {
3265
+ t.current.scrollTop = 0, e.list !== null && r({ type: "load", load: !0, data: e.list });
3285
3266
  }, [e.load]);
3286
- let r = () => {
3287
- t.current.scrollHeight - t.current.scrollTop - 300 <= t.current.clientHeight && !n.wait && s({ type: "update" });
3267
+ let s = () => {
3268
+ t.current.scrollHeight - t.current.scrollTop - 300 <= t.current.clientHeight && !n.wait && r({ type: "update" });
3288
3269
  };
3289
- return /* @__PURE__ */ a.jsx("div", { className: zo.s, ref: t, onScroll: r, 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: [
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: [
3290
3271
  /* @__PURE__ */ a.jsx("i", {}),
3291
3272
  /* @__PURE__ */ a.jsx("i", {}),
3292
3273
  /* @__PURE__ */ a.jsx("i", {})
@@ -3300,28 +3281,28 @@ const Al = { Scrolling: Nn }, Zl = { Widget: Ei }, Tn = ({ onClick: e, active: t
3300
3281
  "aria-checked": `${t ? "true" : "false"}`
3301
3282
  }
3302
3283
  ));
3303
- let pe = {};
3304
- pe.KeyDown = (e) => {
3284
+ let ve = {};
3285
+ ve.KeyDown = (e) => {
3305
3286
  e.key === "Enter" && e.preventDefault();
3306
3287
  };
3307
- pe.PasteOne = (e) => {
3288
+ ve.PasteOne = (e) => {
3308
3289
  e.preventDefault(), navigator.clipboard.readText().then((t) => {
3309
3290
  t = t.replace(/^\s*/, "").replace(/\s*$/, ""), window.document.execCommand("insertText", !1, t);
3310
3291
  }).catch((t) => {
3311
3292
  });
3312
3293
  };
3313
- pe.Focus = (e) => {
3294
+ ve.Focus = (e) => {
3314
3295
  e.target.textContent.length === 0 && (e.target.innerHTML = "<br>");
3315
3296
  };
3316
- pe.Blur = (e) => {
3297
+ ve.Blur = (e) => {
3317
3298
  e.target.scrollLeft = 0, e.target.querySelector("br") !== null && e.target.querySelector("br").remove();
3318
3299
  };
3319
3300
  function $e({
3320
3301
  value: e,
3321
3302
  onValue: t,
3322
3303
  name: n,
3323
- placeholder: s = "",
3324
- title: r = "",
3304
+ placeholder: r = "",
3305
+ title: s = "",
3325
3306
  error: i = "",
3326
3307
  hide: c = !1,
3327
3308
  edit: l = !0,
@@ -3330,43 +3311,42 @@ function $e({
3330
3311
  show: u = !0,
3331
3312
  view: m,
3332
3313
  onBlur: h,
3333
- onSave: x,
3334
- className: p = ""
3314
+ onSave: g,
3315
+ className: v = ""
3335
3316
  }) {
3336
- let C = !!(c && (e === "" || e === void 0)), w = (P) => {
3337
- t && t({ value: P.target.textContent, name: n });
3338
- }, y = (P) => {
3339
- P.key === "Enter" && P.preventDefault();
3340
- }, b = (P) => {
3341
- }, N = (P) => {
3342
- P.preventDefault(), navigator.clipboard.writeText(P.target.textContent).then(
3317
+ let C = !!(c && (e === "" || e === void 0)), w = ($) => {
3318
+ t && t({ value: $.target.textContent, name: n });
3319
+ }, k = ($) => {
3320
+ $.key === "Enter" && $.preventDefault();
3321
+ }, b = ($) => {
3322
+ }, R = ($) => {
3323
+ $.preventDefault(), navigator.clipboard.writeText($.target.textContent).then(
3343
3324
  function() {
3344
3325
  Le.Copy("Данные в буфер обмене");
3345
3326
  },
3346
- function(B) {
3347
- console.error("Async: Could not copy text: ", B);
3327
+ function(P) {
3348
3328
  }
3349
3329
  );
3350
3330
  };
3351
3331
  if (!(l && _) && !u || !(l && _) && C)
3352
3332
  return "";
3353
- const I = {};
3354
- I.field = "input", p && (I.className = p);
3333
+ const N = {};
3334
+ N.field = "input", v && (N.className = v);
3355
3335
  const j = {};
3356
- s && (j.placeholder = s), j.edit = (l && _) + "";
3357
- const F = (P) => {
3358
- pe.Blur(P), x && x({ value: P.target.textContent, name: n });
3336
+ r && (j.placeholder = r), j.edit = (l && _) + "";
3337
+ const F = ($) => {
3338
+ ve.Blur($), g && g({ value: $.target.textContent, name: n });
3359
3339
  };
3360
- return /* @__PURE__ */ a.jsxs("dl", { ...I, children: [
3361
- r ? /* @__PURE__ */ a.jsx("dt", { children: r }) : "",
3340
+ return /* @__PURE__ */ a.jsxs("dl", { ...N, children: [
3341
+ s ? /* @__PURE__ */ a.jsx("dt", { children: s }) : "",
3362
3342
  /* @__PURE__ */ a.jsx(
3363
3343
  "dd",
3364
3344
  {
3365
3345
  onPaste: b,
3366
3346
  onInput: w,
3367
3347
  onBlur: F,
3368
- onKeyDown: y,
3369
- onContextMenu: N,
3348
+ onKeyDown: k,
3349
+ onContextMenu: R,
3370
3350
  contentEditable: l && _ ? "plaintext-only" : "false",
3371
3351
  suppressContentEditableWarning: !0,
3372
3352
  ...j,
@@ -3376,21 +3356,21 @@ function $e({
3376
3356
  i ? /* @__PURE__ */ a.jsx("em", { children: i }) : ""
3377
3357
  ] });
3378
3358
  }
3379
- function In({ onClick: e, onSend: t, name: n, onRef: s }) {
3380
- let [r, i] = g.useState(!1);
3359
+ function In({ onClick: e, onSend: t, name: n, onRef: r }) {
3360
+ let [s, i] = x.useState(!1);
3381
3361
  const c = () => {
3382
3362
  if (e)
3383
3363
  return e();
3384
- r || (i(!0), t && t(i));
3364
+ s || (i(!0), t && t(i));
3385
3365
  };
3386
3366
  return /* @__PURE__ */ a.jsx(
3387
3367
  "button",
3388
3368
  {
3389
- ref: s,
3369
+ ref: r,
3390
3370
  "data-form": "button",
3391
- className: r ? "btn await" : "btn confirm pointer",
3371
+ className: s ? "btn await" : "btn confirm pointer",
3392
3372
  onClick: c,
3393
- children: r ? "Ожидайте" : n
3373
+ children: s ? "Ожидайте" : n
3394
3374
  }
3395
3375
  );
3396
3376
  }
@@ -3398,14 +3378,14 @@ function Dn({
3398
3378
  value: e,
3399
3379
  onValue: t,
3400
3380
  onActive: n,
3401
- data: s,
3402
- name: r,
3381
+ data: r,
3382
+ name: s,
3403
3383
  view: i,
3404
3384
  edit: c = !0,
3405
3385
  active: l = !0,
3406
3386
  placeholder: _ = "Введите сообщение"
3407
3387
  }) {
3408
- const d = g.useRef({
3388
+ const d = x.useRef({
3409
3389
  value: e,
3410
3390
  timerId: null,
3411
3391
  shift: !1,
@@ -3414,14 +3394,14 @@ function Dn({
3414
3394
  d.current.value.length > 0 ? d.current.send && (n(!0), d.current.send = !1, d.current.timerId = setTimeout(() => {
3415
3395
  d.current.send = !0;
3416
3396
  }, 3e3)) : n(!1);
3417
- }, m = (y) => {
3418
- d.current.value = y.target.textContent, u();
3419
- }, h = (y) => {
3420
- y.keyCode === 16 && (d.current.shift = !0), y.keyCode === 13 && !d.current.shift && (y.preventDefault(), d.current.value.length !== 0 && (y.target.textContent = "", s && s(d.current.value), t && t(d.current.value), d.current.value = "", n(!1)));
3421
- }, x = (y) => {
3422
- y.keyCode === 16 && (d.current.shift = !1);
3423
- }, p = (y) => {
3424
- y.preventDefault(), navigator.clipboard.readText().then((b) => {
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) => {
3425
3405
  window.document.execCommand("insertText", !1, b);
3426
3406
  }).catch((b) => {
3427
3407
  });
@@ -3433,9 +3413,9 @@ function Dn({
3433
3413
  return _ && (w.placeholder = _), c && l && (w.contentEditable = "plaintext-only"), /* @__PURE__ */ a.jsx("dl", { "data-form": "message", children: /* @__PURE__ */ a.jsx(
3434
3414
  "dd",
3435
3415
  {
3436
- onPaste: p,
3416
+ onPaste: v,
3437
3417
  onInput: m,
3438
- onKeyUp: x,
3418
+ onKeyUp: g,
3439
3419
  onKeyDown: h,
3440
3420
  onBlur: C,
3441
3421
  ...w,
@@ -3445,7 +3425,7 @@ function Dn({
3445
3425
  ) });
3446
3426
  }
3447
3427
  function Mn(e) {
3448
- let t = () => e.title ? /* @__PURE__ */ a.jsx("dt", { children: e.title }) : "", n = e.edit !== void 0 ? e.edit : !0, s = e.active !== void 0 ? e.active : !0, r = e.placeholder !== void 0 ? e.placeholder : "", i = (_) => {
3428
+ let t = () => e.title ? /* @__PURE__ */ a.jsx("dt", { children: e.title }) : "", n = e.edit !== void 0 ? e.edit : !0, r = e.active !== void 0 ? e.active : !0, s = e.placeholder !== void 0 ? e.placeholder : "", i = (_) => {
3449
3429
  e.onValue({ value: _.target.textContent, name: e.name });
3450
3430
  }, c = (_) => {
3451
3431
  _.key === "Enter" && _.preventDefault();
@@ -3453,7 +3433,6 @@ function Mn(e) {
3453
3433
  _.preventDefault(), navigator.clipboard.readText().then((d) => {
3454
3434
  window.document.execCommand("insertText", !1, d);
3455
3435
  }).catch((d) => {
3456
- console.log("Something went wrong", d);
3457
3436
  });
3458
3437
  };
3459
3438
  return /* @__PURE__ */ a.jsxs("dl", { "data-form": "input", "type-data": "generator", children: [
@@ -3464,33 +3443,32 @@ function Mn(e) {
3464
3443
  onPaste: l,
3465
3444
  onInput: i,
3466
3445
  onKeyDown: c,
3467
- contentEditable: n && s ? "plaintext-only" : "false",
3468
- "data-placeholder": r,
3446
+ contentEditable: n && r ? "plaintext-only" : "false",
3447
+ "data-placeholder": s,
3469
3448
  suppressContentEditableWarning: !0,
3470
3449
  children: e.value
3471
3450
  }
3472
3451
  )
3473
3452
  ] });
3474
3453
  }
3475
- function Fn({ value: e, onValue: t, placeholder: n = "", name: s }) {
3476
- let r = (x, p) => Number(Math.round(x + Math.random() * (p - x))), i = g.useRef(null), c = g.useRef(null), l = r(1e4, 99999), _ = (x) => {
3477
- x.key !== "Backspace" && (x.key === "Enter" && x.preventDefault(), x.target.textContent.length === 5 && x.preventDefault(), /\d/.test(x.key) || x.preventDefault());
3478
- }, d = (x) => {
3479
- t({ value: Number(x.target.textContent) === l, name: s });
3480
- }, u = (x) => {
3481
- x.preventDefault(), navigator.clipboard.readText().then((p) => {
3454
+ 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) => {
3456
+ g.key !== "Backspace" && (g.key === "Enter" && g.preventDefault(), g.target.textContent.length === 5 && g.preventDefault(), /\d/.test(g.key) || g.preventDefault());
3457
+ }, d = (g) => {
3458
+ t({ value: Number(g.target.textContent) === l, name: r });
3459
+ }, u = (g) => {
3460
+ g.preventDefault(), navigator.clipboard.readText().then((v) => {
3482
3461
  window.document.execCommand(
3483
3462
  "insertText",
3484
3463
  !1,
3485
- p.replace(/(\r\n|\n|\r)/gm, " ").replace(/[^0-9]/g, "").substring(0, 5)
3464
+ v.replace(/(\r\n|\n|\r)/gm, " ").replace(/[^0-9]/g, "").substring(0, 5)
3486
3465
  );
3487
- }).catch((p) => {
3488
- console.log("Something went wrong", p);
3466
+ }).catch((v) => {
3489
3467
  });
3490
3468
  };
3491
- g.useEffect(() => {
3492
- const x = i.current, p = x.getContext("2d");
3493
- p.clearRect(0, 0, x.width, x.height), p.font = "30px brush script mt", p.fillStyle = "#eee", p.textAlign = "center", p.fillText(l, 50, 27), c.current.textContent = "";
3469
+ x.useEffect(() => {
3470
+ const g = i.current, v = g.getContext("2d");
3471
+ 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 = "";
3494
3472
  }, [l]);
3495
3473
  const m = {};
3496
3474
  m.field = "captcha";
@@ -3502,7 +3480,7 @@ function Fn({ value: e, onValue: t, placeholder: n = "", name: s }) {
3502
3480
  ref: c,
3503
3481
  onPaste: u,
3504
3482
  onInput: d,
3505
- onBlur: pe.Blur,
3483
+ onBlur: ve.Blur,
3506
3484
  onKeyDown: _,
3507
3485
  contentEditable: "plaintext-only",
3508
3486
  suppressContentEditableWarning: !0,
@@ -3513,7 +3491,7 @@ function Fn({ value: e, onValue: t, placeholder: n = "", name: s }) {
3513
3491
  ] });
3514
3492
  }
3515
3493
  function Ln(e) {
3516
- let t = () => e.title ? /* @__PURE__ */ a.jsx("dt", { children: e.title }) : "", n = () => e.error ? /* @__PURE__ */ a.jsx("em", { children: e.error }) : "", s = {
3494
+ let t = () => e.title ? /* @__PURE__ */ a.jsx("dt", { children: e.title }) : "", n = () => e.error ? /* @__PURE__ */ a.jsx("em", { children: e.error }) : "", r = {
3517
3495
  n1: "",
3518
3496
  n2: "",
3519
3497
  n3: "",
@@ -3521,27 +3499,27 @@ function Ln(e) {
3521
3499
  n5: "",
3522
3500
  n6: "",
3523
3501
  code: ""
3524
- }, r = (d) => {
3502
+ }, s = (d) => {
3525
3503
  d.preventDefault(), d.target.textContent = d.target.textContent.slice(-1).replace(/[^+\d]/g, "");
3526
3504
  let u = window.getSelection(), m = d.target.textContent.length;
3527
- if (s[d.target.id] = d.target.textContent, s.code = s.n1 + "" + s.n2 + s.n3 + s.n4 + s.n5 + s.n6, u.collapse(d.target.firstChild, 1), m === 0) {
3505
+ if (r[d.target.id] = d.target.textContent, r.code = r.n1 + "" + r.n2 + r.n3 + r.n4 + r.n5 + r.n6, u.collapse(d.target.firstChild, 1), m === 0) {
3528
3506
  d.target.blur(), d.target.focus();
3529
3507
  return;
3530
3508
  }
3531
3509
  d.target.nextSibling != null && d.target.nextSibling.focus();
3532
3510
  }, i = (d) => {
3533
3511
  if (d.key === "Enter" && d.preventDefault(), d.key === "Backspace") {
3534
- if (d.preventDefault(), d.target.textContent = "", s[d.target.id] = "", d.target.previousSibling != null) {
3512
+ if (d.preventDefault(), d.target.textContent = "", r[d.target.id] = "", d.target.previousSibling != null) {
3535
3513
  let u = d.target.previousSibling.id.slice(1);
3536
- d.target.previousSibling.textContent = "", s["n" + u] = "", d.target.previousSibling.focus();
3514
+ d.target.previousSibling.textContent = "", r["n" + u] = "", d.target.previousSibling.focus();
3537
3515
  }
3538
- s.code = s.n1 + "" + s.n2 + s.n3 + s.n4 + s.n5 + s.n6;
3516
+ r.code = r.n1 + "" + r.n2 + r.n3 + r.n4 + r.n5 + r.n6;
3539
3517
  }
3540
3518
  }, c = (d) => {
3541
3519
  if (e.real)
3542
- e.onValue({ value: s.code, name: e.name });
3543
- else if (s.code.length === 6 && (e.onValue({ value: s.code, name: e.name }), e.empty)) {
3544
- s = {
3520
+ e.onValue({ value: r.code, name: e.name });
3521
+ else if (r.code.length === 6 && (e.onValue({ value: r.code, name: e.name }), e.empty)) {
3522
+ r = {
3545
3523
  n1: "",
3546
3524
  n2: "",
3547
3525
  n3: "",
@@ -3575,7 +3553,7 @@ function Ln(e) {
3575
3553
  onKeyUp: c,
3576
3554
  onFocus: l,
3577
3555
  onPaste: _,
3578
- onInput: r,
3556
+ onInput: s,
3579
3557
  contentEditable: !0
3580
3558
  }
3581
3559
  ),
@@ -3587,7 +3565,7 @@ function Ln(e) {
3587
3565
  onKeyUp: c,
3588
3566
  onFocus: l,
3589
3567
  onPaste: _,
3590
- onInput: r,
3568
+ onInput: s,
3591
3569
  contentEditable: !0
3592
3570
  }
3593
3571
  ),
@@ -3599,7 +3577,7 @@ function Ln(e) {
3599
3577
  onKeyUp: c,
3600
3578
  onFocus: l,
3601
3579
  onPaste: _,
3602
- onInput: r,
3580
+ onInput: s,
3603
3581
  contentEditable: !0
3604
3582
  }
3605
3583
  ),
@@ -3611,7 +3589,7 @@ function Ln(e) {
3611
3589
  onKeyUp: c,
3612
3590
  onFocus: l,
3613
3591
  onPaste: _,
3614
- onInput: r,
3592
+ onInput: s,
3615
3593
  contentEditable: !0
3616
3594
  }
3617
3595
  ),
@@ -3623,7 +3601,7 @@ function Ln(e) {
3623
3601
  onKeyUp: c,
3624
3602
  onFocus: l,
3625
3603
  onPaste: _,
3626
- onInput: r,
3604
+ onInput: s,
3627
3605
  contentEditable: !0
3628
3606
  }
3629
3607
  ),
@@ -3635,7 +3613,7 @@ function Ln(e) {
3635
3613
  onKeyUp: c,
3636
3614
  onFocus: l,
3637
3615
  onPaste: _,
3638
- onInput: r,
3616
+ onInput: s,
3639
3617
  contentEditable: !0
3640
3618
  }
3641
3619
  )
@@ -3648,9 +3626,9 @@ function Ln(e) {
3648
3626
  function $n(e) {
3649
3627
  let t = () => e.title ? /* @__PURE__ */ a.jsx("dt", { children: e.title }) : "", n = () => e.error ? /* @__PURE__ */ a.jsx("em", { children: e.error }) : "";
3650
3628
  e.edit !== void 0 && e.edit, e.active !== void 0 && e.active;
3651
- let [s, r] = g.useState(e.value), i = (c) => {
3629
+ let [r, s] = x.useState(e.value), i = (c) => {
3652
3630
  let l = c.target.getAttribute("set-color");
3653
- r(l), e.onValue({ value: l, name: e.name });
3631
+ s(l), e.onValue({ value: l, name: e.name });
3654
3632
  };
3655
3633
  return /* @__PURE__ */ a.jsx(a.Fragment, { children: e.view === "icon" ? /* @__PURE__ */ a.jsx(
3656
3634
  "i",
@@ -3662,7 +3640,7 @@ function $n(e) {
3662
3640
  {
3663
3641
  children: [
3664
3642
  t(),
3665
- /* @__PURE__ */ a.jsxs("dd", { "el-val": s, children: [
3643
+ /* @__PURE__ */ a.jsxs("dd", { "el-val": r, children: [
3666
3644
  /* @__PURE__ */ a.jsx("em", { onClick: i, "set-color": "0" }),
3667
3645
  /* @__PURE__ */ a.jsx("em", { onClick: i, "set-color": "1" }),
3668
3646
  /* @__PURE__ */ a.jsx("em", { onClick: i, "set-color": "2" }),
@@ -3675,21 +3653,21 @@ function $n(e) {
3675
3653
  }
3676
3654
  ) });
3677
3655
  }
3678
- const Wo = "_o_ff5dx_1", Ko = "_c_ff5dx_11", je = {
3679
- o: Wo,
3680
- c: Ko
3656
+ const Ko = "_o_ff5dx_1", Wo = "_c_ff5dx_11", je = {
3657
+ o: Ko,
3658
+ c: Wo
3681
3659
  };
3682
3660
  function Et(e) {
3683
- let t = () => e.title ? /* @__PURE__ */ a.jsx("dt", { children: e.title }) : "", n = () => e.error ? /* @__PURE__ */ a.jsx("em", { children: e.error }) : "", s = e.edit !== void 0 ? e.edit : !0, r = e.active !== void 0 ? e.active : !0, i = e.placeholder !== void 0 ? e.placeholder : "", [c, l] = g.useState(
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
3662
  e.value === void 0 ? /* @__PURE__ */ new Date() : e.value
3685
- ), _ = !s && r;
3686
- g.useEffect(() => {
3663
+ ), _ = !r && s;
3664
+ x.useEffect(() => {
3687
3665
  l(e.value === void 0 ? /* @__PURE__ */ new Date() : e.value);
3688
3666
  }, [e.value]);
3689
- let d = (x) => {
3690
- l(x), e.onValue({ value: x, name: e.name });
3691
- }, u = (x) => {
3692
- const p = x.target.getBoundingClientRect(), C = p.left, w = p.top;
3667
+ let d = (g) => {
3668
+ l(g), e.onValue({ value: g, name: e.name });
3669
+ }, u = (g) => {
3670
+ const v = g.target.getBoundingClientRect(), C = v.left, w = v.top;
3693
3671
  we.setListener(
3694
3672
  "form",
3695
3673
  /* @__PURE__ */ a.jsx(
@@ -3725,7 +3703,7 @@ function Et(e) {
3725
3703
  {
3726
3704
  onClick: u,
3727
3705
  ...h,
3728
- "data-edit": (s && r) + "",
3706
+ "data-edit": (r && s) + "",
3729
3707
  children: G.Date(c, "dd.mm.yyyy")
3730
3708
  }
3731
3709
  ),
@@ -3735,41 +3713,41 @@ function Et(e) {
3735
3713
  ) });
3736
3714
  }
3737
3715
  const Vo = (e) => {
3738
- let [t, n] = g.useState(!0), s = /* @__PURE__ */ new Date(), r = new Date(e.date), i = {
3739
- y: parseInt(s.getFullYear()),
3740
- d: parseInt(s.getDate()),
3741
- m: parseInt(s.getMonth()) + 1
3742
- }, c = {
3716
+ let [t, n] = x.useState(!0), r = /* @__PURE__ */ new Date(), s = new Date(e.date), i = {
3743
3717
  y: parseInt(r.getFullYear()),
3744
3718
  d: parseInt(r.getDate()),
3745
3719
  m: parseInt(r.getMonth()) + 1
3746
- }, [l, _] = g.useState({ y: c.y, m: c.m }), d = (j) => {
3720
+ }, c = {
3721
+ y: parseInt(s.getFullYear()),
3722
+ d: parseInt(s.getDate()),
3723
+ m: parseInt(s.getMonth()) + 1
3724
+ }, [l, _] = x.useState({ y: c.y, m: c.m }), d = (j) => {
3747
3725
  let F = j.getDay();
3748
3726
  return F === 0 && (F = 7), F - 1;
3749
- }, u = ["пн", "вт", "ср", "чт", "пт", "сб", "вс"], m = l.m - 1, h = new Date(l.y, m), x = [];
3727
+ }, u = ["пн", "вт", "ср", "чт", "пт", "сб", "вс"], m = l.m - 1, h = new Date(l.y, m), g = [];
3750
3728
  for (let j = 0; j < d(h); j++)
3751
- x.push(0);
3729
+ g.push(0);
3752
3730
  for (; h.getMonth() === m; )
3753
- x.push(h.getDate()), h.setDate(h.getDate() + 1);
3754
- let p = () => {
3731
+ g.push(h.getDate()), h.setDate(h.getDate() + 1);
3732
+ let v = () => {
3755
3733
  n(!1);
3756
3734
  }, C = () => {
3757
3735
  b(l.m + 1, l.y);
3758
3736
  }, w = () => {
3759
3737
  b(l.m - 1, l.y);
3760
- }, y = (j) => {
3738
+ }, k = (j) => {
3761
3739
  e.onValue(
3762
3740
  l.y + "-" + G.Number(2, l.m) + "-" + G.Number(2, j)
3763
- ), p();
3741
+ ), v();
3764
3742
  }, b = (j, F) => {
3765
3743
  F = j > 12 ? F + 1 : j < 1 ? F - 1 : F, j = j > 12 ? 1 : j < 1 ? 12 : j, _({ y: F, m: j });
3766
- }, N = window.innerHeight - e.position.y + 33 < 320 ? e.position.y - 312 : e.position.y + 33, I = window.innerWidth - e.position.x < 265 ? e.position.x - 235 : e.position.x;
3744
+ }, 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;
3767
3745
  return /* @__PURE__ */ a.jsx(a.Fragment, { children: t ? /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
3768
3746
  /* @__PURE__ */ a.jsx(
3769
3747
  "div",
3770
3748
  {
3771
3749
  className: je.o,
3772
- onClick: () => p()
3750
+ onClick: () => v()
3773
3751
  },
3774
3752
  (/* @__PURE__ */ new Date()).getTime()
3775
3753
  ),
@@ -3777,7 +3755,7 @@ const Vo = (e) => {
3777
3755
  "div",
3778
3756
  {
3779
3757
  className: je.c,
3780
- style: { top: N + "px", left: I + "px" },
3758
+ style: { top: R + "px", left: N + "px" },
3781
3759
  children: [
3782
3760
  /* @__PURE__ */ a.jsxs("s", { children: [
3783
3761
  /* @__PURE__ */ a.jsx("i", { "data-icon": "F021", onClick: () => w() }),
@@ -3790,11 +3768,11 @@ const Vo = (e) => {
3790
3768
  ] }),
3791
3769
  /* @__PURE__ */ a.jsxs("div", { children: [
3792
3770
  u.map((j, F) => /* @__PURE__ */ a.jsx("p", { children: j }, "v" + F)),
3793
- x.map((j, F) => /* @__PURE__ */ a.jsx("span", { children: j !== 0 ? /* @__PURE__ */ a.jsx(
3771
+ g.map((j, F) => /* @__PURE__ */ a.jsx("span", { children: j !== 0 ? /* @__PURE__ */ a.jsx(
3794
3772
  "b",
3795
3773
  {
3796
3774
  color: i.y === l.y && i.m === l.m && i.d === j ? "_FFEB3B" : "",
3797
- onClick: () => y(j),
3775
+ onClick: () => k(j),
3798
3776
  children: j
3799
3777
  }
3800
3778
  ) : /* @__PURE__ */ a.jsx("p", {}) }, F))
@@ -3808,8 +3786,8 @@ function Rt({
3808
3786
  value: e,
3809
3787
  onValue: t,
3810
3788
  name: n,
3811
- placeholder: s = "",
3812
- title: r,
3789
+ placeholder: r = "",
3790
+ title: s,
3813
3791
  error: i,
3814
3792
  hide: c = !1,
3815
3793
  edit: l = !0,
@@ -3817,44 +3795,48 @@ function Rt({
3817
3795
  active: d = !0,
3818
3796
  after: u = "",
3819
3797
  view: m,
3820
- module: h,
3821
- options: x
3798
+ modal: h,
3799
+ module: g,
3800
+ options: v
3822
3801
  }) {
3823
- let [p, C] = g.useState(e), w = (y) => {
3824
- wt.Open(h, n, {
3825
- callback: (b) => {
3826
- t && t({ value: b, name: n }), C(b);
3802
+ let [C, w] = x.useState(e), k = (b) => {
3803
+ if (!h)
3804
+ 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);
3827
3809
  },
3828
3810
  onValue: t,
3829
- options: x,
3811
+ options: v,
3830
3812
  name: n,
3831
3813
  value: e
3832
3814
  });
3833
3815
  };
3834
3816
  return c ? /* @__PURE__ */ a.jsx(a.Fragment, {}) : /* @__PURE__ */ a.jsxs("dl", { "data-form": "select", "data-view": m, children: [
3835
- r ? /* @__PURE__ */ a.jsx("dt", { children: r }) : "",
3817
+ s ? /* @__PURE__ */ a.jsx("dt", { children: s }) : "",
3836
3818
  /* @__PURE__ */ a.jsx(
3837
3819
  "dd",
3838
3820
  {
3839
- onClick: w,
3821
+ onClick: k,
3840
3822
  "data-edit": (l && d) + "",
3841
- "data-placeholder": s,
3823
+ "data-placeholder": r,
3842
3824
  "data-after": u,
3843
- children: p
3825
+ children: C
3844
3826
  }
3845
3827
  ),
3846
3828
  i ? /* @__PURE__ */ a.jsx("dt", { children: i }) : ""
3847
3829
  ] });
3848
3830
  }
3849
3831
  function Nt(e) {
3850
- let t = e.value, n = (m) => e.type === "multi" ? m.replace(/[^+\d.+-]/g, "") : m.replace(/[^+\d.]/g, ""), s = (m, h) => {
3851
- let x = document.createRange(), p = window.getSelection();
3852
- x.setStart(h.childNodes[0], m), x.collapse(!0), p.removeAllRanges(), p.addRange(x), h.focus();
3853
- }, r = (m) => {
3832
+ let t = e.value, n = (m) => e.type === "multi" ? m.replace(/[^+\d.+-]/g, "") : m.replace(/[^+\d.]/g, ""), r = (m, h) => {
3833
+ let g = document.createRange(), v = window.getSelection();
3834
+ g.setStart(h.childNodes[0], m), g.collapse(!0), v.removeAllRanges(), v.addRange(g), h.focus();
3835
+ }, s = (m) => {
3854
3836
  e.onValue({
3855
3837
  value: n(m.target.textContent),
3856
3838
  name: e.name
3857
- }), m.target.textContent = n(m.target.textContent), m.target.textContent.length > 0 && s(m.target.textContent.length, m.target);
3839
+ }), m.target.textContent = n(m.target.textContent), m.target.textContent.length > 0 && r(m.target.textContent.length, m.target);
3858
3840
  }, i = (m) => {
3859
3841
  m.target.textContent === "" && (m.target.textContent = 0), e.onValue({
3860
3842
  value: n(m.target.textContent),
@@ -3868,7 +3850,6 @@ function Nt(e) {
3868
3850
  m.preventDefault(), navigator.clipboard.readText().then((h) => {
3869
3851
  h = h.replace(/^\s*/, "").replace(/\s*$/, ""), window.document.execCommand("insertText", !1, h);
3870
3852
  }).catch((h) => {
3871
- console.log("Something went wrong", h);
3872
3853
  });
3873
3854
  }, d = () => e.title ? /* @__PURE__ */ a.jsx("dt", { children: e.title }) : "", u = () => e.error ? /* @__PURE__ */ a.jsx("em", { children: e.error }) : "";
3874
3855
  return /* @__PURE__ */ a.jsxs(
@@ -3880,7 +3861,7 @@ function Nt(e) {
3880
3861
  /* @__PURE__ */ a.jsx(
3881
3862
  "dd",
3882
3863
  {
3883
- onInput: r,
3864
+ onInput: s,
3884
3865
  onPaste: _,
3885
3866
  onBlur: i,
3886
3867
  onKeyDown: l,
@@ -3900,30 +3881,30 @@ function Pn({
3900
3881
  value: e,
3901
3882
  onValue: t,
3902
3883
  name: n,
3903
- view: s,
3904
- error: r,
3884
+ view: r,
3885
+ error: s,
3905
3886
  edit: i = !0,
3906
3887
  active: c = !0,
3907
3888
  title: l,
3908
3889
  placeholder: _ = "",
3909
3890
  after: d
3910
3891
  }) {
3911
- let [u, m] = g.useState(e);
3912
- g.useEffect(() => {
3892
+ let [u, m] = x.useState(e);
3893
+ x.useEffect(() => {
3913
3894
  m(e);
3914
3895
  }, [e]);
3915
3896
  let h = (C) => {
3916
3897
  m(C), t && t({ value: C, name: n });
3917
- }, x = (C) => {
3898
+ }, g = (C) => {
3918
3899
  if (!i || !c)
3919
3900
  return;
3920
- const w = C.target.getBoundingClientRect(), y = w.left, b = w.top;
3901
+ const w = C.target.getBoundingClientRect(), k = w.left, b = w.top;
3921
3902
  we.setListener(
3922
3903
  "form",
3923
3904
  /* @__PURE__ */ a.jsx(
3924
3905
  Uo,
3925
3906
  {
3926
- position: { x: y, y: b },
3907
+ position: { x: k, y: b },
3927
3908
  onValue: h,
3928
3909
  date: u
3929
3910
  },
@@ -3931,12 +3912,12 @@ function Pn({
3931
3912
  )
3932
3913
  );
3933
3914
  };
3934
- const p = {};
3935
- return _ && (p.placeholder = _), /* @__PURE__ */ a.jsx(a.Fragment, { children: s === "icon" ? /* @__PURE__ */ a.jsx(
3915
+ const v = {};
3916
+ return _ && (v.placeholder = _), /* @__PURE__ */ a.jsx(a.Fragment, { children: r === "icon" ? /* @__PURE__ */ a.jsx(
3936
3917
  "i",
3937
3918
  {
3938
3919
  "data-icon": "F043",
3939
- onClick: x
3920
+ onClick: g
3940
3921
  }
3941
3922
  ) : /* @__PURE__ */ a.jsxs(
3942
3923
  "dl",
@@ -3946,32 +3927,32 @@ function Pn({
3946
3927
  /* @__PURE__ */ a.jsx(
3947
3928
  "dd",
3948
3929
  {
3949
- onClick: x,
3950
- ...p,
3930
+ onClick: g,
3931
+ ...v,
3951
3932
  children: G.Date(u, "mm.yyyy")
3952
3933
  }
3953
3934
  ),
3954
- r && /* @__PURE__ */ a.jsx("em", { children: r })
3935
+ s && /* @__PURE__ */ a.jsx("em", { children: s })
3955
3936
  ]
3956
3937
  }
3957
3938
  ) });
3958
3939
  }
3959
3940
  const Uo = (e) => {
3960
- let [t, n] = g.useState(!0), s = /* @__PURE__ */ new Date(), r = new Date(e.date), i = {
3961
- y: parseInt(s.getFullYear()),
3962
- m: parseInt(s.getMonth()) + 1
3963
- }, c = {
3941
+ let [t, n] = x.useState(!0), r = /* @__PURE__ */ new Date(), s = new Date(e.date), i = {
3964
3942
  y: parseInt(r.getFullYear()),
3965
3943
  m: parseInt(r.getMonth()) + 1
3966
- }, [l, _] = g.useState(c.y), d = () => {
3944
+ }, c = {
3945
+ y: parseInt(s.getFullYear()),
3946
+ m: parseInt(s.getMonth()) + 1
3947
+ }, [l, _] = x.useState(c.y), d = () => {
3967
3948
  n(!1);
3968
3949
  }, u = () => {
3969
3950
  _(l + 1);
3970
3951
  }, m = () => {
3971
3952
  _(l - 1);
3972
- }, h = (y) => {
3973
- e.onValue(l + "-" + G.Number(2, y)), d();
3974
- }, x = (y) => i.y === c.y && i.m === y ? "_FFEB3B" : "", p = 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;
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;
3975
3956
  return /* @__PURE__ */ a.jsx(a.Fragment, { children: t ? /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
3976
3957
  /* @__PURE__ */ a.jsx(
3977
3958
  "div",
@@ -3995,14 +3976,14 @@ const Uo = (e) => {
3995
3976
  /* @__PURE__ */ a.jsx(
3996
3977
  "div",
3997
3978
  {
3998
- children: p.map((y, b) => /* @__PURE__ */ a.jsx(
3979
+ children: v.map((k, b) => /* @__PURE__ */ a.jsx(
3999
3980
  "span",
4000
3981
  {
4001
3982
  onClick: () => {
4002
- h(y);
3983
+ h(k);
4003
3984
  },
4004
- color: x(y),
4005
- children: /* @__PURE__ */ a.jsx("b", { children: G.Month(y).abc })
3985
+ color: g(k),
3986
+ children: /* @__PURE__ */ a.jsx("b", { children: G.Month(k).abc })
4006
3987
  },
4007
3988
  b
4008
3989
  ))
@@ -4014,23 +3995,22 @@ const Uo = (e) => {
4014
3995
  ] }) : "" });
4015
3996
  };
4016
3997
  function Bn(e) {
4017
- let t = () => e.title ? /* @__PURE__ */ a.jsx("dt", { children: e.title }) : "", n = () => e.error ? /* @__PURE__ */ a.jsx("em", { children: e.error }) : "", [s, r] = g.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);
4018
- s = i ? !0 : s;
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);
3999
+ r = i ? !0 : r;
4019
4000
  let d = e.placeholder !== void 0 ? e.placeholder : "Заметка пуста", u = (C) => {
4020
4001
  e.onValue({ value: C.target.innerText, name: e.name });
4021
4002
  }, m = (C) => {
4022
4003
  C.preventDefault(), navigator.clipboard.readText().then((w) => {
4023
4004
  window.document.execCommand("insertText", !1, w);
4024
4005
  }).catch((w) => {
4025
- console.log("Something went wrong", w);
4026
4006
  });
4027
4007
  }, h = (C) => {
4028
- i || r(!s);
4008
+ i || s(!r);
4029
4009
  };
4030
- const x = {};
4031
- x.field = "notes", e.className && (x.className = e.className);
4032
- const p = {};
4033
- return d && (p.placeholder = d), _ ? /* @__PURE__ */ a.jsx(a.Fragment, {}) : /* @__PURE__ */ a.jsxs("dl", { ...x, children: [
4010
+ const g = {};
4011
+ g.field = "notes", e.className && (g.className = e.className);
4012
+ const v = {};
4013
+ return d && (v.placeholder = d), _ ? /* @__PURE__ */ a.jsx(a.Fragment, {}) : /* @__PURE__ */ a.jsxs("dl", { ...g, children: [
4034
4014
  t(),
4035
4015
  /* @__PURE__ */ a.jsx(
4036
4016
  "dd",
@@ -4039,8 +4019,8 @@ function Bn(e) {
4039
4019
  onInput: u,
4040
4020
  contentEditable: i && c ? "plaintext-only" : "false",
4041
4021
  "data-edit": (i && c) + "",
4042
- "data-open": "" + s,
4043
- ...p,
4022
+ "data-open": "" + r,
4023
+ ...v,
4044
4024
  onDoubleClick: h,
4045
4025
  suppressContentEditableWarning: !0,
4046
4026
  children: e.value
@@ -4053,8 +4033,8 @@ function Tt({
4053
4033
  onValue: e,
4054
4034
  active: t,
4055
4035
  max: n,
4056
- edit: s,
4057
- title: r,
4036
+ edit: r,
4037
+ title: s,
4058
4038
  error: i,
4059
4039
  show: c,
4060
4040
  hide: l,
@@ -4063,45 +4043,44 @@ function Tt({
4063
4043
  className: u,
4064
4044
  name: m,
4065
4045
  after: h,
4066
- view: x
4046
+ view: g
4067
4047
  }) {
4068
- let p = () => r ? /* @__PURE__ */ a.jsx("dt", { children: r }) : "", C = () => i ? /* @__PURE__ */ a.jsx("em", { children: i }) : "";
4069
- s = s !== void 0 ? s : !0, t = t !== void 0 ? t : !0, l = !!(l && (_ === "" || _ === void 0)) && !(s && t), d = d !== void 0 ? d : "", n = n !== void 0 ? n : 99;
4070
- let y = !1, b = (B) => {
4071
- e && e({ value: B.target.textContent, name: m });
4072
- }, N = (B) => {
4073
- if (!(y && B.which === 86)) {
4074
- if (B.which === 17 || B.which === 91)
4075
- return y = !0;
4076
- B.key !== "Backspace" && (B.target.textContent.length === n && B.preventDefault(), B.key === "Enter" && B.preventDefault(), isNaN(parseInt(String.fromCharCode(B.which))) && B.preventDefault());
4048
+ let v = () => s ? /* @__PURE__ */ a.jsx("dt", { children: s }) : "", C = () => i ? /* @__PURE__ */ a.jsx("em", { children: i }) : "";
4049
+ 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) => {
4051
+ e && e({ value: P.target.textContent, name: m });
4052
+ }, R = (P) => {
4053
+ if (!(k && P.which === 86)) {
4054
+ if (P.which === 17 || P.which === 91)
4055
+ return k = !0;
4056
+ P.key !== "Backspace" && (P.target.textContent.length === n && P.preventDefault(), P.key === "Enter" && P.preventDefault(), isNaN(parseInt(String.fromCharCode(P.which))) && P.preventDefault());
4077
4057
  }
4078
- }, I = (B) => {
4079
- if (B.which === 17 || B.which === 91)
4080
- return y = !1;
4081
- }, j = (B) => {
4082
- B.preventDefault(), navigator.clipboard.readText().then((Y) => {
4083
- Y = Y.replace(/\D/g, ""), console.log(Y), window.document.execCommand(
4058
+ }, N = (P) => {
4059
+ if (P.which === 17 || P.which === 91)
4060
+ return k = !1;
4061
+ }, j = (P) => {
4062
+ P.preventDefault(), navigator.clipboard.readText().then((H) => {
4063
+ H = H.replace(/\D/g, ""), window.document.execCommand(
4084
4064
  "insertText",
4085
4065
  !1,
4086
- "" + Y.replace(/\D/g, "")
4066
+ "" + H.replace(/\D/g, "")
4087
4067
  );
4088
- }).catch((Y) => {
4089
- console.log("Something went wrong", Y);
4068
+ }).catch((H) => {
4090
4069
  });
4091
4070
  };
4092
4071
  const F = {};
4093
4072
  F.field = "input", u && (F.className = u);
4094
- let P = {};
4095
- return s && t ? (P.edit = "true", P.contentEditable = "plaintext-only") : P.contentEditable = "false", d && (P.placeholder = d), h && (P.after = h), l ? /* @__PURE__ */ a.jsx(a.Fragment, {}) : /* @__PURE__ */ a.jsxs("dl", { ...F, children: [
4096
- p(),
4073
+ 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: [
4075
+ v(),
4097
4076
  /* @__PURE__ */ a.jsx(
4098
4077
  "dd",
4099
4078
  {
4100
- ...P,
4079
+ ...$,
4101
4080
  onPaste: j,
4102
4081
  onInput: b,
4103
- onKeyDown: N,
4104
- onKeyUp: I,
4082
+ onKeyDown: R,
4083
+ onKeyUp: N,
4105
4084
  suppressContentEditableWarning: !0,
4106
4085
  children: _
4107
4086
  }
@@ -4113,8 +4092,8 @@ function On({
4113
4092
  value: e,
4114
4093
  onValue: t,
4115
4094
  name: n,
4116
- placeholder: s = "",
4117
- className: r,
4095
+ placeholder: r = "",
4096
+ className: s,
4118
4097
  title: i,
4119
4098
  error: c,
4120
4099
  edit: l = !0,
@@ -4130,29 +4109,28 @@ function On({
4130
4109
  });
4131
4110
  }, h = (w) => {
4132
4111
  w.key === "Enter" && w.preventDefault();
4133
- }, x = (w) => {
4134
- w.preventDefault(), navigator.clipboard.readText().then((y) => {
4112
+ }, g = (w) => {
4113
+ w.preventDefault(), navigator.clipboard.readText().then((k) => {
4135
4114
  window.document.execCommand(
4136
4115
  "insertText",
4137
4116
  !1,
4138
- y.replace(/(\r\n|\n|\r)/gm, " ")
4117
+ k.replace(/(\r\n|\n|\r)/gm, " ")
4139
4118
  );
4140
- }).catch((y) => {
4141
- console.log("Something went wrong", y);
4119
+ }).catch((k) => {
4142
4120
  });
4143
4121
  };
4144
- const p = {};
4145
- p.field = "password", r && (p.className = r);
4122
+ const v = {};
4123
+ v.field = "password", s && (v.className = s);
4146
4124
  const C = {};
4147
- return s && (C.placeholder = s), /* @__PURE__ */ a.jsxs("dl", { ...p, children: [
4125
+ return r && (C.placeholder = r), /* @__PURE__ */ a.jsxs("dl", { ...v, children: [
4148
4126
  i ? /* @__PURE__ */ a.jsx("dt", { children: i }) : "",
4149
4127
  /* @__PURE__ */ a.jsx(
4150
4128
  "dd",
4151
4129
  {
4152
- onPaste: x,
4130
+ onPaste: g,
4153
4131
  onInput: m,
4154
4132
  onKeyDown: h,
4155
- onBlur: pe.Blur,
4133
+ onBlur: ve.Blur,
4156
4134
  contentEditable: l && _ ? "plaintext-only" : "false",
4157
4135
  ...C,
4158
4136
  suppressContentEditableWarning: !0,
@@ -5548,8 +5526,8 @@ function It({
5548
5526
  value: e,
5549
5527
  onValue: t,
5550
5528
  name: n,
5551
- placeholder: s = "",
5552
- title: r = "",
5529
+ placeholder: r = "",
5530
+ title: s = "",
5553
5531
  error: i = "",
5554
5532
  hide: c = !1,
5555
5533
  edit: l = !0,
@@ -5559,61 +5537,59 @@ function It({
5559
5537
  view: m,
5560
5538
  className: h = ""
5561
5539
  }) {
5562
- l = l !== void 0 ? l : !0, _ = _ !== void 0 ? _ : !0, c = !!(c && (e === "" || e === void 0)) && !(l && _), g.useRef(null);
5563
- let p = "+_(___) ___-__-__", C = !0, w = 0, y = (V, $) => {
5564
- let ae = document.createRange(), W = window.getSelection();
5565
- ae.setStart($.childNodes[0], V), ae.collapse(!0), W.removeAllRanges(), W.addRange(ae), $.focus();
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) => {
5542
+ let ae = document.createRange(), K = window.getSelection();
5543
+ ae.setStart(B.childNodes[0], V), ae.collapse(!0), K.removeAllRanges(), K.addRange(ae), B.focus();
5566
5544
  }, b = (V) => {
5567
- V.preventDefault(), navigator.clipboard.readText().then(($) => {
5568
- window.document.execCommand("insertText", !1, $);
5569
- }).catch(($) => {
5570
- console.log("Something went wrong", $);
5545
+ V.preventDefault(), navigator.clipboard.readText().then((B) => {
5546
+ window.document.execCommand("insertText", !1, B);
5547
+ }).catch((B) => {
5571
5548
  });
5572
- }, N = (V) => {
5573
- let $ = 0, ae = "", W = V.replace(/\D/g, "");
5574
- W === "" && (C = !0);
5575
- let le = W.split(""), q = "";
5549
+ }, R = (V) => {
5550
+ let B = 0, ae = "", K = V.replace(/\D/g, "");
5551
+ K === "" && (C = !0);
5552
+ let le = K.split(""), q = "";
5576
5553
  le.forEach((Ze) => {
5577
- C && (q += Ze, ct[q] !== void 0 && C ? (C = !1, p = ct[q].mask.replace(new RegExp("[0-9]", "g"), "_"), ae = ct[q].code) : (C && (w = ("" + q).length, p = `+${q}_(___) ___-__-__`.replace(
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
5555
  new RegExp("[0-9]", "g"),
5579
5556
  "_"
5580
- ), ae = ""), w > ("" + q).length && (C = !0, p = `+${q}_(___) ___-__-__`.replace(
5557
+ ), ae = ""), w > ("" + q).length && (C = !0, v = `+${q}_(___) ___-__-__`.replace(
5581
5558
  new RegExp("[0-9]", "g"),
5582
5559
  "_"
5583
5560
  ), ae = "")));
5584
5561
  });
5585
- let Ee = p.replace(/\D/g, "");
5586
- return Ee.length >= W.length && (W = Ee), { q: p.replace(/[_\d]/g, function() {
5587
- return W.charAt($++) || "_";
5588
- }), i: $, v: W, f: ae };
5589
- }, I = (V) => {
5562
+ let Ee = v.replace(/\D/g, "");
5563
+ return Ee.length >= K.length && (K = Ee), { q: v.replace(/[_\d]/g, function() {
5564
+ return K.charAt(B++) || "_";
5565
+ }), i: B, v: K, f: ae };
5566
+ }, N = (V) => {
5590
5567
  V.preventDefault(), navigator.clipboard.writeText(V.target.textContent.replace(/\D/g, "")).then(
5591
5568
  function() {
5592
5569
  Le.Copy("Данные в буфер обмене");
5593
5570
  },
5594
- function($) {
5595
- console.error("Async: Could not copy text: ", $);
5571
+ function(B) {
5596
5572
  }
5597
5573
  );
5598
- }, j = N(e), F = (V) => {
5599
- let $ = N(V.target.textContent);
5600
- V.target.textContent = $.q, $.i = $.q.lastIndexOf($.v.substr(-1)), $.i < $.q.length && $.q !== p ? $.i++ : $.i = $.q.indexOf("_"), y($.i, V.target), t && t({ value: $.q.replace(/\D/g, ""), name: n });
5601
- }, P = (V) => {
5574
+ }, j = R(e), F = (V) => {
5575
+ 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 });
5577
+ }, $ = (V) => {
5602
5578
  V.key === "Enter" && V.preventDefault();
5603
5579
  };
5604
- const B = {};
5605
- B.field = "input", h && (B.className = h);
5606
- let Y = {};
5607
- return l && _ ? (Y.edit = "true", Y.contentEditable = "plaintext-only") : Y.contentEditable = "false", s && (Y.placeholder = s), d && (Y.after = d), c ? /* @__PURE__ */ a.jsx(a.Fragment, {}) : /* @__PURE__ */ a.jsxs("dl", { ...B, children: [
5608
- r && /* @__PURE__ */ a.jsx("dt", { children: r }),
5580
+ const P = {};
5581
+ P.field = "input", h && (P.className = h);
5582
+ let H = {};
5583
+ 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
+ s && /* @__PURE__ */ a.jsx("dt", { children: s }),
5609
5585
  /* @__PURE__ */ a.jsx(
5610
5586
  "dd",
5611
5587
  {
5612
- ...Y,
5588
+ ...H,
5613
5589
  onPaste: b,
5614
5590
  onInput: F,
5615
- onKeyDown: P,
5616
- onContextMenu: I,
5591
+ onKeyDown: $,
5592
+ onContextMenu: N,
5617
5593
  suppressContentEditableWarning: !0,
5618
5594
  children: j.q
5619
5595
  }
@@ -5622,19 +5598,19 @@ function It({
5622
5598
  ] });
5623
5599
  }
5624
5600
  const An = (e) => {
5625
- let t = () => e.title ? /* @__PURE__ */ a.jsx("dt", { children: e.title }) : "", n = e.edit !== void 0 ? e.edit : !0, s = e.active !== void 0 ? e.active : !0, r = e.placeholder !== void 0 ? e.placeholder : "", i = 0, c = () => {
5626
- clearTimeout(i), i = setTimeout(() => console.log("rerrwere"), 1e3);
5601
+ let t = () => e.title ? /* @__PURE__ */ a.jsx("dt", { children: e.title }) : "", n = e.edit !== void 0 ? e.edit : !0, r = e.active !== void 0 ? e.active : !0, s = e.placeholder !== void 0 ? e.placeholder : "", i = 0, c = () => {
5602
+ clearTimeout(i), i = setTimeout(() => {
5603
+ }, 1e3);
5627
5604
  }, l = (u) => {
5628
5605
  u.key === "Enter" && u.preventDefault();
5629
5606
  }, _ = (u) => {
5630
5607
  u.preventDefault(), navigator.clipboard.readText().then((m) => {
5631
5608
  window.document.execCommand("insertText", !1, m);
5632
5609
  }).catch((m) => {
5633
- console.log("Something went wrong", m);
5634
5610
  });
5635
5611
  };
5636
5612
  const d = {};
5637
- return r && (d.placeholder = r), /* @__PURE__ */ a.jsxs(
5613
+ return s && (d.placeholder = s), /* @__PURE__ */ a.jsxs(
5638
5614
  "dl",
5639
5615
  {
5640
5616
  "data-form": "input",
@@ -5646,7 +5622,7 @@ const An = (e) => {
5646
5622
  onPaste: _,
5647
5623
  onInput: c,
5648
5624
  onKeyDown: l,
5649
- contentEditable: n && s ? "plaintext-only" : "false",
5625
+ contentEditable: n && r ? "plaintext-only" : "false",
5650
5626
  ...d,
5651
5627
  suppressContentEditableWarning: !0,
5652
5628
  children: e.value
@@ -5660,8 +5636,8 @@ function Dt({
5660
5636
  title: e,
5661
5637
  error: t,
5662
5638
  edit: n = !0,
5663
- active: s = !0,
5664
- hide: r,
5639
+ active: r = !0,
5640
+ hide: s,
5665
5641
  value: i = "0",
5666
5642
  onValue: c,
5667
5643
  options: l,
@@ -5670,20 +5646,20 @@ function Dt({
5670
5646
  after: u,
5671
5647
  view: m
5672
5648
  }) {
5673
- const h = g.useRef();
5674
- r = !!(r && (i === "" || l[i].n === void 0)) && !(n && s);
5675
- let p = i !== void 0 && i !== "" ? l[i].n : i, C = (N) => {
5676
- h.current.textContent = l[N].n, c && c({ value: N, name: d });
5677
- }, w = (N) => {
5678
- if (!(n && s))
5649
+ const h = x.useRef();
5650
+ s = !!(s && (i === "" || l[i].n === void 0)) && !(n && r);
5651
+ 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 });
5653
+ }, w = (R) => {
5654
+ if (!(n && r))
5679
5655
  return;
5680
- const I = N.target.getBoundingClientRect();
5656
+ const N = R.target.getBoundingClientRect();
5681
5657
  we.setListener(
5682
5658
  "form",
5683
5659
  /* @__PURE__ */ a.jsx(
5684
5660
  Yo,
5685
5661
  {
5686
- parent: I,
5662
+ parent: N,
5687
5663
  onValue: C,
5688
5664
  view: m,
5689
5665
  options: l
@@ -5691,20 +5667,20 @@ function Dt({
5691
5667
  (/* @__PURE__ */ new Date()).getTime()
5692
5668
  )
5693
5669
  );
5694
- }, y = { field: "select" }, b = { onClick: w };
5695
- return n && s && (b.edit = "true"), _ && (b.placeholder = _), u && (b.after = u), r ? "" : /* @__PURE__ */ a.jsxs("dl", { ...y, children: [
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: [
5696
5672
  e && /* @__PURE__ */ a.jsx("dt", { children: e }),
5697
- /* @__PURE__ */ a.jsx("dd", { ...b, ref: h, children: p }),
5673
+ /* @__PURE__ */ a.jsx("dd", { ...b, ref: h, children: v }),
5698
5674
  t && /* @__PURE__ */ a.jsx("em", { children: t })
5699
5675
  ] });
5700
5676
  }
5701
- const Yo = ({ onValue: e, parent: t, view: n, options: s }) => {
5702
- let [r, i] = g.useState(!0), c = () => {
5677
+ const Yo = ({ onValue: e, parent: t, view: n, options: r }) => {
5678
+ let [s, i] = x.useState(!0), c = () => {
5703
5679
  i(!1);
5704
5680
  }, l = (u) => {
5705
5681
  i(!1), e(u);
5706
5682
  }, _ = window.innerHeight - t.y + t.height < 320 ? t.y - 312 : t.y + 33, d = window.innerWidth - t.x < 265 ? t.x - 235 : t.x;
5707
- return /* @__PURE__ */ a.jsx(a.Fragment, { children: r ? /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
5683
+ return /* @__PURE__ */ a.jsx(a.Fragment, { children: s ? /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
5708
5684
  /* @__PURE__ */ a.jsx(
5709
5685
  "div",
5710
5686
  {
@@ -5722,14 +5698,14 @@ const Yo = ({ onValue: e, parent: t, view: n, options: s }) => {
5722
5698
  left: d + "px",
5723
5699
  width: t.width
5724
5700
  },
5725
- children: /* @__PURE__ */ a.jsx("ul", { children: Object.keys(s).map(
5726
- (u, m) => s[u].s === 1 ? /* @__PURE__ */ a.jsx(
5701
+ children: /* @__PURE__ */ a.jsx("ul", { children: Object.keys(r).map(
5702
+ (u, m) => r[u].s === 1 ? /* @__PURE__ */ a.jsx(
5727
5703
  "li",
5728
5704
  {
5729
5705
  onClick: () => {
5730
5706
  l(u);
5731
5707
  },
5732
- children: s[u].n
5708
+ children: r[u].n
5733
5709
  },
5734
5710
  m
5735
5711
  ) : ""
@@ -5739,20 +5715,20 @@ const Yo = ({ onValue: e, parent: t, view: n, options: s }) => {
5739
5715
  ] }) : "" });
5740
5716
  };
5741
5717
  function Mt(e) {
5742
- let t = () => e.title ? /* @__PURE__ */ a.jsx("dt", { children: e.title }) : "", n = () => e.error ? /* @__PURE__ */ a.jsx("em", { children: e.error }) : "", s = e.edit !== void 0 ? e.edit : !0, r = e.active !== void 0 ? e.active : !0, c = !!(e.hide && (e.default === "" || e.options[e.default] === void 0)) && !(s && r), l = e.placeholder !== void 0 ? e.placeholder : "", _ = (x) => {
5743
- u(e.options[x]), e.onValue({ value: x, name: e.name });
5744
- }, [d, u] = g.useState(
5718
+ 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
+ u(e.options[g]), e.onValue({ value: g, name: e.name });
5720
+ }, [d, u] = x.useState(
5745
5721
  e.default !== void 0 ? e.options[e.default] : e.default
5746
- ), m = (x) => {
5747
- if (!(s && r))
5722
+ ), m = (g) => {
5723
+ if (!(r && s))
5748
5724
  return;
5749
- const p = x.target.getBoundingClientRect();
5725
+ const v = g.target.getBoundingClientRect();
5750
5726
  we.setListener(
5751
5727
  "form",
5752
5728
  /* @__PURE__ */ a.jsx(
5753
5729
  Ho,
5754
5730
  {
5755
- parent: p,
5731
+ parent: v,
5756
5732
  onValue: _,
5757
5733
  view: e.view,
5758
5734
  options: e.options
@@ -5772,7 +5748,7 @@ function Mt(e) {
5772
5748
  "dd",
5773
5749
  {
5774
5750
  onClick: m,
5775
- "data-edit": (s && r) + "",
5751
+ "data-edit": (r && s) + "",
5776
5752
  ...h,
5777
5753
  children: d
5778
5754
  }
@@ -5782,13 +5758,13 @@ function Mt(e) {
5782
5758
  }
5783
5759
  );
5784
5760
  }
5785
- const Ho = ({ onValue: e, parent: t, view: n, options: s }) => {
5786
- let [r, i] = g.useState(!0), c = () => {
5761
+ const Ho = ({ onValue: e, parent: t, view: n, options: r }) => {
5762
+ let [s, i] = x.useState(!0), c = () => {
5787
5763
  i(!1);
5788
5764
  }, l = (m) => {
5789
5765
  i(!1), e(m);
5790
- }, _ = Object.keys(s).length * 36, d = window.innerHeight - t.y + t.height < _ ? t.y - (_ - 33) : t.y + 33, u = window.innerWidth - t.x < 265 ? t.x - 235 : t.x;
5791
- return /* @__PURE__ */ a.jsx(a.Fragment, { children: r ? /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
5766
+ }, _ = Object.keys(r).length * 36, d = window.innerHeight - t.y + t.height < _ ? t.y - (_ - 33) : t.y + 33, u = window.innerWidth - t.x < 265 ? t.x - 235 : t.x;
5767
+ return /* @__PURE__ */ a.jsx(a.Fragment, { children: s ? /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
5792
5768
  /* @__PURE__ */ a.jsx(
5793
5769
  "div",
5794
5770
  {
@@ -5806,13 +5782,13 @@ const Ho = ({ onValue: e, parent: t, view: n, options: s }) => {
5806
5782
  left: u + "px",
5807
5783
  width: t.width
5808
5784
  },
5809
- children: /* @__PURE__ */ a.jsx("ul", { children: Object.keys(s).map((m, h) => /* @__PURE__ */ a.jsx(
5785
+ children: /* @__PURE__ */ a.jsx("ul", { children: Object.keys(r).map((m, h) => /* @__PURE__ */ a.jsx(
5810
5786
  "li",
5811
5787
  {
5812
5788
  onClick: () => {
5813
5789
  l(m);
5814
5790
  },
5815
- children: s[m]
5791
+ children: r[m]
5816
5792
  },
5817
5793
  h
5818
5794
  )) })
@@ -5820,12 +5796,12 @@ const Ho = ({ onValue: e, parent: t, view: n, options: s }) => {
5820
5796
  )
5821
5797
  ] }) : "" });
5822
5798
  };
5823
- function vt({
5799
+ function pt({
5824
5800
  set: e,
5825
5801
  value: t,
5826
5802
  onValue: n,
5827
- name: s,
5828
- placeholder: r = "",
5803
+ name: r,
5804
+ placeholder: s = "",
5829
5805
  title: i = "",
5830
5806
  error: c = "",
5831
5807
  hide: l = !1,
@@ -5834,8 +5810,8 @@ function vt({
5834
5810
  active: u = !0,
5835
5811
  after: m = "",
5836
5812
  view: h,
5837
- module: x,
5838
- item: p,
5813
+ module: g,
5814
+ item: v,
5839
5815
  className: C = ""
5840
5816
  }) {
5841
5817
  let w = {};
@@ -5852,13 +5828,13 @@ function vt({
5852
5828
  active: u,
5853
5829
  value: t,
5854
5830
  onValue: n,
5855
- name: s,
5856
- placeholder: r,
5831
+ name: r,
5832
+ placeholder: s,
5857
5833
  className: C
5858
5834
  }
5859
5835
  );
5860
5836
  case "Select":
5861
- return p && (w = re.getSelect(parseInt(p)) ? re.getSelect(parseInt(p)) : { 0: { s: "1", n: "не известно" } }), /* @__PURE__ */ a.jsx(
5837
+ return v && (w = se.getSelect(parseInt(v)) ? se.getSelect(parseInt(v)) : { 0: { s: "1", n: "не известно" } }), /* @__PURE__ */ a.jsx(
5862
5838
  Dt,
5863
5839
  {
5864
5840
  title: i,
@@ -5869,14 +5845,14 @@ function vt({
5869
5845
  active: u,
5870
5846
  value: t,
5871
5847
  onValue: n,
5872
- name: s,
5873
- placeholder: r,
5848
+ name: r,
5849
+ placeholder: s,
5874
5850
  className: C,
5875
5851
  options: w
5876
5852
  }
5877
5853
  );
5878
5854
  case "Users":
5879
- return re.getSelect("user"), /* @__PURE__ */ a.jsx(
5855
+ return se.getSelect("user"), /* @__PURE__ */ a.jsx(
5880
5856
  Mt,
5881
5857
  {
5882
5858
  title: i,
@@ -5887,8 +5863,8 @@ function vt({
5887
5863
  active: u,
5888
5864
  value: t,
5889
5865
  onValue: n,
5890
- name: s,
5891
- placeholder: r,
5866
+ name: r,
5867
+ placeholder: s,
5892
5868
  className: C,
5893
5869
  options: w
5894
5870
  }
@@ -5905,8 +5881,8 @@ function vt({
5905
5881
  active: u,
5906
5882
  value: t,
5907
5883
  onValue: n,
5908
- name: s,
5909
- placeholder: r,
5884
+ name: r,
5885
+ placeholder: s,
5910
5886
  className: C
5911
5887
  }
5912
5888
  );
@@ -5922,8 +5898,8 @@ function vt({
5922
5898
  active: u,
5923
5899
  value: t,
5924
5900
  onValue: n,
5925
- name: s,
5926
- placeholder: r,
5901
+ name: r,
5902
+ placeholder: s,
5927
5903
  className: C
5928
5904
  }
5929
5905
  );
@@ -5939,8 +5915,8 @@ function vt({
5939
5915
  active: u,
5940
5916
  value: t,
5941
5917
  onValue: n,
5942
- name: s,
5943
- placeholder: r,
5918
+ name: r,
5919
+ placeholder: s,
5944
5920
  className: C
5945
5921
  }
5946
5922
  );
@@ -5956,8 +5932,8 @@ function vt({
5956
5932
  active: u,
5957
5933
  value: t,
5958
5934
  onValue: n,
5959
- name: s,
5960
- placeholder: r,
5935
+ name: r,
5936
+ placeholder: s,
5961
5937
  className: C
5962
5938
  }
5963
5939
  );
@@ -5973,23 +5949,22 @@ function vt({
5973
5949
  active: u,
5974
5950
  value: t,
5975
5951
  onValue: n,
5976
- name: s || "",
5977
- placeholder: r,
5952
+ name: r || "",
5953
+ placeholder: s,
5978
5954
  className: C,
5979
5955
  options: w,
5980
- module: x || ""
5956
+ module: g || ""
5981
5957
  }
5982
5958
  );
5983
5959
  }
5984
5960
  }
5985
5961
  function Zn(e) {
5986
- let t = () => e.title ? /* @__PURE__ */ a.jsx("dt", { children: e.title }) : "", n = () => e.error ? /* @__PURE__ */ a.jsx("em", { children: e.error }) : "", s = e.edit !== void 0 ? e.edit : !0, r = e.active !== void 0 ? e.active : !0, i = e.placeholder !== void 0 ? e.placeholder : "", c = (d) => {
5962
+ 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 = (d) => {
5987
5963
  e.onValue({ value: d.target.innerText, name: e.name });
5988
5964
  }, l = (d) => {
5989
5965
  d.preventDefault(), navigator.clipboard.readText().then((u) => {
5990
5966
  window.document.execCommand("insertText", !1, u);
5991
5967
  }).catch((u) => {
5992
- console.log("Something went wrong", u);
5993
5968
  });
5994
5969
  };
5995
5970
  const _ = {};
@@ -6005,7 +5980,7 @@ function Zn(e) {
6005
5980
  className: e.className,
6006
5981
  ref: e.useRef,
6007
5982
  onInput: c,
6008
- contentEditable: s && r ? "plaintext-only" : "false",
5983
+ contentEditable: r && s ? "plaintext-only" : "false",
6009
5984
  ..._,
6010
5985
  suppressContentEditableWarning: !0,
6011
5986
  children: e.value
@@ -6019,31 +5994,31 @@ function Zn(e) {
6019
5994
  function zn(e) {
6020
5995
  let t = () => e.title ? /* @__PURE__ */ a.jsx("dt", { children: e.title }) : "", n = () => e.error ? /* @__PURE__ */ a.jsx("em", { children: e.error }) : "";
6021
5996
  e.edit !== void 0 && e.edit, e.active !== void 0 && e.active;
6022
- let s = e.placeholder !== void 0 ? e.placeholder : "", r = G.Date(
5997
+ let r = e.placeholder !== void 0 ? e.placeholder : "", s = G.Date(
6023
5998
  e.value === void 0 ? /* @__PURE__ */ new Date() : e.value,
6024
5999
  "HH:MM"
6025
- ), i = g.useRef(null), c = (u) => {
6000
+ ), i = x.useRef(null), c = (u) => {
6026
6001
  i.current.textContent = u, e.onValue && e.onValue({ value: u, name: e.name });
6027
6002
  }, l = (u) => {
6028
6003
  e.onSave && e.onSave({ value: u, name: e.name });
6029
6004
  }, _ = (u) => {
6030
- const m = u.target.getBoundingClientRect(), h = m.left, x = m.top;
6005
+ const m = u.target.getBoundingClientRect(), h = m.left, g = m.top;
6031
6006
  we.setListener(
6032
6007
  "form",
6033
6008
  /* @__PURE__ */ a.jsx(
6034
6009
  qo,
6035
6010
  {
6036
- position: { x: h, y: x },
6011
+ position: { x: h, y: g },
6037
6012
  onSave: l,
6038
6013
  onValue: c,
6039
- date: r
6014
+ date: s
6040
6015
  },
6041
6016
  (/* @__PURE__ */ new Date()).getTime()
6042
6017
  )
6043
6018
  );
6044
6019
  };
6045
6020
  const d = {};
6046
- return s && (d.placeholder = s), /* @__PURE__ */ a.jsx(a.Fragment, { children: e.view === "icon" ? /* @__PURE__ */ a.jsx(
6021
+ return r && (d.placeholder = r), /* @__PURE__ */ a.jsx(a.Fragment, { children: e.view === "icon" ? /* @__PURE__ */ a.jsx(
6047
6022
  "i",
6048
6023
  {
6049
6024
  "data-icon": "F043",
@@ -6060,7 +6035,7 @@ function zn(e) {
6060
6035
  onClick: _,
6061
6036
  ref: i,
6062
6037
  ...d,
6063
- children: r
6038
+ children: s
6064
6039
  }
6065
6040
  ),
6066
6041
  n()
@@ -6072,27 +6047,27 @@ const qo = (e) => {
6072
6047
  let t = e.date.split(":"), n = {
6073
6048
  h: G.Number(2, t[0]),
6074
6049
  m: G.Number(2, t[1])
6075
- }, s = "hour", [r, i] = g.useState({}), c = !1, l = 0, _ = 0, d = {
6076
- body: g.useRef(null),
6077
- time: g.useRef(null),
6078
- hour: g.useRef(null),
6079
- timeText: g.useRef(null),
6080
- hourText: g.useRef(null)
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)
6081
6056
  };
6082
- g.useEffect(() => {
6057
+ x.useEffect(() => {
6083
6058
  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)";
6084
6059
  }, [d.body, d.hour, d.time, n.m, n.h]);
6085
6060
  let u = () => {
6086
6061
  c = !0;
6087
6062
  }, m = () => {
6088
- c = !1, s = s === "hour" ? "time" : "hour", d.body.current.setAttribute("active", s);
6089
- }, h = (N) => {
6063
+ c = !1, r = r === "hour" ? "time" : "hour", d.body.current.setAttribute("active", r);
6064
+ }, h = (R) => {
6090
6065
  if (c) {
6091
6066
  let j = Math.atan2(
6092
- N.pageX - (r.x + 78),
6093
- N.pageY - (r.y + 78)
6067
+ R.pageX - (s.x + 78),
6068
+ R.pageY - (s.y + 78)
6094
6069
  ) * (180 / Math.PI) * -1 + 180;
6095
- d[s].current.style.transform = "rotate(" + j + "deg)", s === "hour" ? (n = {
6070
+ d[r].current.style.transform = "rotate(" + j + "deg)", r === "hour" ? (n = {
6096
6071
  ...n,
6097
6072
  h: G.Number(2, parseInt(String(j / 15), 10))
6098
6073
  }, d.hourText.current.textContent = n.h) : (n = {
@@ -6100,47 +6075,47 @@ const qo = (e) => {
6100
6075
  m: G.Number(2, parseInt(String(j / 6), 10))
6101
6076
  }, d.timeText.current.textContent = n.m), e.onValue(n.h + ":" + n.m);
6102
6077
  }
6103
- }, x = (N) => {
6104
- if (s === "hour")
6105
- if (N.deltaY > 0) {
6106
- l += N.deltaY;
6107
- let I = parseInt(String(l / 50));
6108
- if (_ !== I) {
6109
- _ = I;
6078
+ }, g = (R) => {
6079
+ if (r === "hour")
6080
+ if (R.deltaY > 0) {
6081
+ l += R.deltaY;
6082
+ let N = parseInt(String(l / 50));
6083
+ if (_ !== N) {
6084
+ _ = N;
6110
6085
  let j = parseInt(n.h, 10) + 1;
6111
- j = j > 23 ? 0 : j, n = { ...n, h: G.Number(2, j) }, d.hourText.current.textContent = n.h, d[s].current.style.transform = "rotate(" + n.h * 15 + "deg)";
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)";
6112
6087
  }
6113
6088
  } else {
6114
- l -= N.deltaY;
6115
- let I = parseInt(String(l / 50));
6116
- if (_ !== I) {
6117
- _ = I;
6089
+ l -= R.deltaY;
6090
+ let N = parseInt(String(l / 50));
6091
+ if (_ !== N) {
6092
+ _ = N;
6118
6093
  let j = parseInt(n.h, 10) - 1;
6119
- j = j < 0 ? 23 : j, n = { ...n, h: G.Number(2, j) }, d.hourText.current.textContent = n.h, d[s].current.style.transform = "rotate(" + n.h * 15 + "deg)";
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)";
6120
6095
  }
6121
6096
  }
6122
- else if (N.deltaY > 0) {
6123
- l += N.deltaY;
6124
- let I = parseInt(String(l / 50));
6125
- if (_ !== I) {
6126
- _ = I;
6097
+ else if (R.deltaY > 0) {
6098
+ l += R.deltaY;
6099
+ let N = parseInt(String(l / 50));
6100
+ if (_ !== N) {
6101
+ _ = N;
6127
6102
  let j = parseInt(n.m, 10) + 1;
6128
- j = j > 59 ? 0 : j, n = { ...n, m: G.Number(2, j) }, d.timeText.current.textContent = n.m, d[s].current.style.transform = "rotate(" + n.m * 6 + "deg)";
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)";
6129
6104
  }
6130
6105
  } else {
6131
- l -= N.deltaY;
6132
- let I = parseInt(String(l / 50));
6133
- if (_ !== I) {
6134
- _ = I;
6106
+ l -= R.deltaY;
6107
+ let N = parseInt(String(l / 50));
6108
+ if (_ !== N) {
6109
+ _ = N;
6135
6110
  let j = parseInt(n.m, 10) - 1;
6136
- j = j < 0 ? 59 : j, n = { ...n, m: G.Number(2, j) }, d.timeText.current.textContent = n.m, d[s].current.style.transform = "rotate(" + n.m * 6 + "deg)";
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)";
6137
6112
  }
6138
6113
  }
6139
6114
  e.onValue(n.h + ":" + n.m);
6140
- }, [p, C] = g.useState(!0), w = () => {
6115
+ }, [v, C] = x.useState(!0), w = () => {
6141
6116
  C(!1), e.onSave(n.h + ":" + n.m);
6142
- }, 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;
6143
- return /* @__PURE__ */ a.jsx(a.Fragment, { children: p ? /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
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;
6118
+ return /* @__PURE__ */ a.jsx(a.Fragment, { children: v ? /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
6144
6119
  /* @__PURE__ */ a.jsx(
6145
6120
  "div",
6146
6121
  {
@@ -6156,9 +6131,9 @@ const qo = (e) => {
6156
6131
  onMouseDown: u,
6157
6132
  onMouseUp: m,
6158
6133
  onMouseMove: h,
6159
- onWheel: x,
6134
+ onWheel: g,
6160
6135
  ref: d.body,
6161
- style: { top: y + "px", left: b + "px" },
6136
+ style: { top: k + "px", left: b + "px" },
6162
6137
  children: "xxxx"
6163
6138
  }
6164
6139
  )
@@ -6168,16 +6143,16 @@ function Gn({
6168
6143
  onValue: e,
6169
6144
  label: t,
6170
6145
  value: n,
6171
- className: s,
6172
- name: r,
6146
+ className: r,
6147
+ name: s,
6173
6148
  reload: i
6174
6149
  }) {
6175
6150
  n = !!n;
6176
- const [c, l] = g.useState(n), _ = () => {
6151
+ const [c, l] = x.useState(n), _ = () => {
6177
6152
  let m = !c;
6178
- console.log(m), e({ name: r, value: m, reload: i }), l(m);
6153
+ e({ name: s, value: m, reload: i }), l(m);
6179
6154
  }, d = {};
6180
- d.field = "check", s && (d.className = s);
6155
+ d.field = "check", r && (d.className = r);
6181
6156
  const u = {};
6182
6157
  return c && (u.active = ""), /* @__PURE__ */ a.jsxs("dl", { ...d, children: [
6183
6158
  t ? /* @__PURE__ */ a.jsx("dt", { children: t }) : "",
@@ -6186,12 +6161,12 @@ function Gn({
6186
6161
  }
6187
6162
  const be = {};
6188
6163
  function Jo(e) {
6189
- const [t, n] = g.useState({}), s = g.useRef(e);
6190
- return be.u = (r) => {
6191
- s.current = { ...s.current, [r.name]: r.value };
6164
+ const [t, n] = x.useState({}), r = x.useRef(e);
6165
+ return be.u = (s) => {
6166
+ r.current = { ...r.current, [s.name]: s.value };
6192
6167
  }, be.r = () => {
6193
6168
  n(Date.now());
6194
- }, s.current;
6169
+ }, r.current;
6195
6170
  }
6196
6171
  function Xo(e) {
6197
6172
  be.u(e), e.reload && be.r();
@@ -6219,12 +6194,12 @@ const zl = {
6219
6194
  Phone: It,
6220
6195
  Search: An,
6221
6196
  Select: Dt,
6222
- Set: vt,
6197
+ Set: pt,
6223
6198
  Textarea: Zn,
6224
6199
  Time: zn,
6225
6200
  Users: Mt,
6226
6201
  String: $e,
6227
- Form: vt,
6202
+ Form: pt,
6228
6203
  runReload: Qo,
6229
6204
  useData: Jo,
6230
6205
  setValue: Xo
@@ -6248,18 +6223,18 @@ const zl = {
6248
6223
  Phone: It,
6249
6224
  Search: An,
6250
6225
  Select: Dt,
6251
- Set: vt,
6226
+ Set: pt,
6252
6227
  Textarea: Zn,
6253
6228
  Time: zn,
6254
6229
  Users: Mt,
6255
6230
  String: $e
6256
- }, el = "_spinner_1ul0m_1", tl = "_l_1ul0m_75", nl = "_loadingB_1ul0m_1", Wn = {
6231
+ }, el = "_spinner_1ul0m_1", tl = "_l_1ul0m_75", nl = "_loadingB_1ul0m_1", Kn = {
6257
6232
  spinner: el,
6258
6233
  l: tl,
6259
6234
  loadingB: nl
6260
6235
  };
6261
6236
  function al() {
6262
- return /* @__PURE__ */ a.jsx("div", { className: Wn.spinner, children: /* @__PURE__ */ a.jsx("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 483 484", children: /* @__PURE__ */ a.jsx(
6237
+ 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(
6263
6238
  "path",
6264
6239
  {
6265
6240
  d: "M264,492a22.2,22.2,0,0,0,22-22V411a22.2,22.2,0,0,0-22-22H236a22.2,22.2,0,0,0-22,22v59a22.2,22.2,0,0,0,22,22Zm74-134a23.9,23.9,0,0,0-6,16,20.35,20.35,0,0,0,6,15l42,42q7,7,16,7,10,0,16-7l20-20a20.35,20.35,0,0,0,6-15,23.9,23.9,0,0,0-6-16l-42-42q-7-7-16-7-8,0-15,7ZM163,389a18.94,18.94,0,0,0,7-15q0-9-7-16l-20-20q-7-7-16-7-8,0-15,7L70,380q-7,7-7,16a18.94,18.94,0,0,0,7,15l20,20q7,7,16,7a18.94,18.94,0,0,0,15-7ZM112,237a22.2,22.2,0,0,0-22-22H31a21.17,21.17,0,0,0-15.5,6.5A21.17,21.17,0,0,0,9,237v28a21.17,21.17,0,0,0,6.5,15.5A21.17,21.17,0,0,0,31,287H90a22.2,22.2,0,0,0,22-22Zm358,50a22.2,22.2,0,0,0,22-22V237a22.2,22.2,0,0,0-22-22H411a22.2,22.2,0,0,0-22,22v28a22.2,22.2,0,0,0,22,22ZM163,142q7-7,7-15.5T163,111L121,69q-7-7-15-7-7,0-16,7L70,89q-7,7-7,16a18.94,18.94,0,0,0,7,15l42,42a18.94,18.94,0,0,0,15,7q10,0,16-7Zm269-22a20.35,20.35,0,0,0,6-15,23.9,23.9,0,0,0-6-16L412,69q-7-7-16-7-7,0-16,7l-42,42q-7,8-7,16t7,15l21,20a18.94,18.94,0,0,0,15,7q10,0,16-7Zm-168-9a22.06,22.06,0,0,0,15.5-6q6.5-6,6.5-16V30a21.17,21.17,0,0,0-6.5-15.5A21.17,21.17,0,0,0,264,8H236a21.17,21.17,0,0,0-15.5,6.5A21.17,21.17,0,0,0,214,30V89q0,10,6.5,16a22.06,22.06,0,0,0,15.5,6Z",
@@ -6267,31 +6242,30 @@ function al() {
6267
6242
  }
6268
6243
  ) }) });
6269
6244
  }
6270
- function sl() {
6271
- return /* @__PURE__ */ a.jsxs("div", { className: Wn.l, children: [
6245
+ function rl() {
6246
+ return /* @__PURE__ */ a.jsxs("div", { className: Kn.l, children: [
6272
6247
  /* @__PURE__ */ a.jsx("i", {}),
6273
6248
  /* @__PURE__ */ a.jsx("i", {}),
6274
6249
  /* @__PURE__ */ a.jsx("i", {})
6275
6250
  ] });
6276
6251
  }
6277
- const Wl = { Spinner: al, Inline: sl }, rl = "_s_t9swc_1", il = {
6278
- s: rl
6252
+ const Kl = { Spinner: al, Inline: rl }, sl = "_s_t9swc_1", il = {
6253
+ s: sl
6279
6254
  };
6280
6255
  let Ft;
6281
6256
  function ol() {
6282
- let e = (r) => {
6283
- Ft(r.target.textContent);
6284
- }, t = (r) => {
6285
- r.key === "Enter" && r.preventDefault();
6286
- }, n = (r) => {
6287
- r.preventDefault(), navigator.clipboard.readText().then((i) => {
6257
+ let e = (s) => {
6258
+ Ft(s.target.textContent);
6259
+ }, t = (s) => {
6260
+ s.key === "Enter" && s.preventDefault();
6261
+ }, n = (s) => {
6262
+ s.preventDefault(), navigator.clipboard.readText().then((i) => {
6288
6263
  window.document.execCommand("insertText", !1, i);
6289
6264
  }).catch((i) => {
6290
- console.log("Something went wrong", i);
6291
6265
  });
6292
6266
  };
6293
- const s = {};
6294
- return s.placeholder = "Что искать?", /* @__PURE__ */ a.jsx(
6267
+ const r = {};
6268
+ return r.placeholder = "Что искать?", /* @__PURE__ */ a.jsx(
6295
6269
  "div",
6296
6270
  {
6297
6271
  className: il.s,
@@ -6299,17 +6273,17 @@ function ol() {
6299
6273
  onInput: e,
6300
6274
  onKeyDown: t,
6301
6275
  contentEditable: "true",
6302
- ...s,
6276
+ ...r,
6303
6277
  suppressContentEditableWarning: !0
6304
6278
  }
6305
6279
  );
6306
6280
  }
6307
6281
  function ll(e, t, n) {
6308
- let s = [], r = 1, i = 0, c = {}, l = 50;
6309
- return c[r] = [], e.forEach((_) => {
6310
- _.text.toLowerCase().indexOf(t) > -1 && s.push(_.id);
6311
- }), s.forEach((_) => {
6312
- i++, i <= l || (r++, i = 1, c[r] = []), c[r].push(n[_]);
6282
+ let r = [], s = 1, i = 0, c = {}, l = 50;
6283
+ return c[s] = [], e.forEach((_) => {
6284
+ _.text.toLowerCase().indexOf(t) > -1 && r.push(_.id);
6285
+ }), r.forEach((_) => {
6286
+ i++, i <= l || (s++, i = 1, c[s] = []), c[s].push(n[_]);
6313
6287
  }), c;
6314
6288
  }
6315
6289
  function cl(e) {
@@ -6318,7 +6292,7 @@ function cl(e) {
6318
6292
  function dl(e) {
6319
6293
  Ft = e;
6320
6294
  }
6321
- const Kl = { Field: ol, Run: ll, Get: cl, useValue: dl }, _l = "_f_q3r0i_1", ul = {
6295
+ const Wl = { Field: ol, Run: ll, Get: cl, useValue: dl }, _l = "_f_q3r0i_1", ul = {
6322
6296
  f: _l
6323
6297
  };
6324
6298
  let ne = {};
@@ -6336,8 +6310,8 @@ function ml(e, t) {
6336
6310
  };
6337
6311
  case "data":
6338
6312
  let n = {};
6339
- return Object.keys(t.data).forEach((r) => {
6340
- r !== "sort" && (n[r] = t.data[r], e.take[r] = "999");
6313
+ return Object.keys(t.data).forEach((s) => {
6314
+ s !== "sort" && (n[s] = t.data[s], e.take[s] = "999");
6341
6315
  }), {
6342
6316
  ...e,
6343
6317
  data: n,
@@ -6349,18 +6323,18 @@ function ml(e, t) {
6349
6323
  size: t.size
6350
6324
  };
6351
6325
  case "take":
6352
- let s = { [t.list]: t.take };
6353
- s = { ...e.take, ...s }, e.active = !1;
6354
- for (let r in s)
6355
- s[r] !== "999" && (e.active = !0);
6356
- return ne.get(s, e.active), {
6326
+ let r = { [t.list]: t.take };
6327
+ r = { ...e.take, ...r }, e.active = !1;
6328
+ for (let s in r)
6329
+ r[s] !== "999" && (e.active = !0);
6330
+ return ne.get(r, e.active), {
6357
6331
  ...e,
6358
- take: s,
6332
+ take: r,
6359
6333
  active: e.active
6360
6334
  };
6361
6335
  case "exit":
6362
- for (let r in e.take)
6363
- e.take[r] = "999";
6336
+ for (let s in e.take)
6337
+ e.take[s] = "999";
6364
6338
  return ne.get && ne.get([], !1), {
6365
6339
  ...e,
6366
6340
  size: 0,
@@ -6373,7 +6347,7 @@ function ml(e, t) {
6373
6347
  }
6374
6348
  }
6375
6349
  function fl() {
6376
- const [e, t] = g.useReducer(ml, {
6350
+ const [e, t] = x.useReducer(ml, {
6377
6351
  open: !1,
6378
6352
  view: null,
6379
6353
  data: {},
@@ -6396,7 +6370,7 @@ function fl() {
6396
6370
  t({ type: "open", open: !0 });
6397
6371
  },
6398
6372
  children: [
6399
- /* @__PURE__ */ a.jsx(Zs, {}),
6373
+ /* @__PURE__ */ a.jsx(Zr, {}),
6400
6374
  e.active && /* @__PURE__ */ a.jsxs("i", { children: [
6401
6375
  e.size,
6402
6376
  "1"
@@ -6416,7 +6390,7 @@ function fl() {
6416
6390
  ),
6417
6391
  /* @__PURE__ */ a.jsxs("div", { className: "filter m", children: [
6418
6392
  /* @__PURE__ */ a.jsx("div", { className: "filter l", children: Object.keys(e.data).map((n) => /* @__PURE__ */ a.jsx(
6419
- vl,
6393
+ pl,
6420
6394
  {
6421
6395
  data: n,
6422
6396
  dispatch: t,
@@ -6441,36 +6415,36 @@ function fl() {
6441
6415
  function hl(e) {
6442
6416
  ne.get = e;
6443
6417
  }
6444
- function gl(e) {
6418
+ function xl(e) {
6445
6419
  ne.set !== void 0 && ne.set(e);
6446
6420
  }
6447
- function xl(e) {
6421
+ function gl(e) {
6448
6422
  ne.reset !== void 0 && ne.reset(e);
6449
6423
  }
6450
- function pl(e, t, n, s) {
6451
- let r = [], i = 1, c = 0, l = {}, _ = 50;
6452
- return l[i] = [], s === !0 && (Object.keys(t).forEach((d) => {
6424
+ function vl(e, t, n, r) {
6425
+ let s = [], i = 1, c = 0, l = {}, _ = 50;
6426
+ return l[i] = [], r === !0 && (Object.keys(t).forEach((d) => {
6453
6427
  Number.parseInt(t[d]) !== 999 && (e = e.filter(
6454
6428
  (u) => Number.parseInt(u[d]) === Number.parseInt(t[d])
6455
6429
  ));
6456
- }), Kn(e.length)), e.forEach((d) => {
6457
- r.push(d.id);
6458
- }), r.forEach((d) => {
6430
+ }), Wn(e.length)), e.forEach((d) => {
6431
+ s.push(d.id);
6432
+ }), s.forEach((d) => {
6459
6433
  c++, c <= _ || (i++, c = 1, l[i] = []), l[i].push(n[d]);
6460
6434
  }), l;
6461
6435
  }
6462
- function Kn(e) {
6436
+ function Wn(e) {
6463
6437
  ne.count(e);
6464
6438
  }
6465
- function vl({ data: e, state: t, dispatch: n }) {
6466
- let s = () => {
6439
+ function pl({ data: e, state: t, dispatch: n }) {
6440
+ let r = () => {
6467
6441
  n({ type: "view", view: e });
6468
- }, r = () => {
6442
+ }, s = () => {
6469
6443
  n({ type: "take", list: e, take: "999" });
6470
6444
  };
6471
6445
  return /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
6472
6446
  /* @__PURE__ */ a.jsxs("div", { className: "filter s", children: [
6473
- /* @__PURE__ */ a.jsxs("div", { onClick: s, children: [
6447
+ /* @__PURE__ */ a.jsxs("div", { onClick: r, children: [
6474
6448
  " ",
6475
6449
  t.data[e].name,
6476
6450
  " "
@@ -6478,7 +6452,7 @@ function vl({ data: e, state: t, dispatch: n }) {
6478
6452
  t.take[e] !== "999" ? /* @__PURE__ */ a.jsx(
6479
6453
  "div",
6480
6454
  {
6481
- onClick: r,
6455
+ onClick: s,
6482
6456
  className: "filter x",
6483
6457
  "data-icon": "F038"
6484
6458
  }
@@ -6497,18 +6471,18 @@ function vl({ data: e, state: t, dispatch: n }) {
6497
6471
  )) })
6498
6472
  ] });
6499
6473
  }
6500
- function Cl({ data: e, head: t, state: n, dispatch: s, type: r }) {
6501
- if (r !== "999" && e.count === void 0)
6474
+ function Cl({ data: e, head: t, state: n, dispatch: r, type: s }) {
6475
+ if (s !== "999" && e.count === void 0)
6502
6476
  return "";
6503
6477
  const i = () => {
6504
- s({ type: "take", list: t, take: r });
6478
+ r({ type: "take", list: t, take: s });
6505
6479
  };
6506
6480
  return /* @__PURE__ */ a.jsxs(
6507
6481
  "div",
6508
6482
  {
6509
6483
  className: "filter a",
6510
6484
  onClick: i,
6511
- "set-active": (n.take[t] === r) + "",
6485
+ "set-active": (n.take[t] === s) + "",
6512
6486
  children: [
6513
6487
  e.name,
6514
6488
  /* @__PURE__ */ a.jsx("div", { className: "filter e", children: e.count })
@@ -6516,23 +6490,22 @@ function Cl({ data: e, head: t, state: n, dispatch: s, type: r }) {
6516
6490
  }
6517
6491
  );
6518
6492
  }
6519
- const Vl = { Button: fl, useValue: hl, Set: gl, Run: pl, Count: Kn, Reset: xl }, Ul = { Bell: Hs, Send: Vs, Add: Ks }, kl = "_p_djnh1_1", yl = "_l_djnh1_38", Vn = {
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 = {
6520
6494
  p: kl,
6521
6495
  l: yl
6522
6496
  };
6523
6497
  function jl(e) {
6524
- let t = 3, n = e.page, s = e.count, r = [], i = () => {
6525
- r.push({ page: 1 }), r.push({ text: "..." });
6498
+ let t = 3, n = e.page, r = e.count, s = [], i = () => {
6499
+ s.push({ page: 1 }), s.push({ text: "..." });
6526
6500
  }, c = () => {
6527
- r.push({ text: "..." }), r.push({ page: s });
6501
+ s.push({ text: "..." }), s.push({ page: r });
6528
6502
  }, l = (_, d) => {
6529
6503
  for (let u = _; u < d; u++)
6530
- r.push({ page: u });
6504
+ s.push({ page: u });
6531
6505
  };
6532
- return s < t * 2 + 6 ? l(1, s + 1) : n < t * 2 + 1 ? (l(1, t * 2 + 4), c()) : n > s - t * 2 ? (t = s > 1e4 ? 1 : t, i(), l(s - t * 2 - 2, s + 1)) : (t = s > 1e4 ? 1 : t, i(), l(n - t, n + t + 1), c()), r.length === 1 ? /* @__PURE__ */ a.jsx(a.Fragment, {}) : /* @__PURE__ */ a.jsxs("div", { className: Vn.p, children: [
6506
+ return r < t * 2 + 6 ? l(1, r + 1) : n < t * 2 + 1 ? (l(1, t * 2 + 4), c()) : n > r - t * 2 ? (t = r > 1e4 ? 1 : t, i(), l(r - t * 2 - 2, r + 1)) : (t = r > 1e4 ? 1 : t, i(), l(n - t, n + t + 1), c()), s.length === 1 ? /* @__PURE__ */ a.jsx(a.Fragment, {}) : /* @__PURE__ */ a.jsxs("div", { className: Vn.p, children: [
6533
6507
  /* @__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" }) }) }),
6534
- r.map((_, d) => {
6535
- console.log(_, e);
6508
+ s.map((_, d) => {
6536
6509
  const u = {};
6537
6510
  return _.page && (u.onClick = () => e.onChangePage(_.page)), _.page === e.page && (u.active = ""), /* @__PURE__ */ ja("span", { ...u, key: d }, _.page || _.text);
6538
6511
  }),
@@ -6561,7 +6534,7 @@ function bl(e, t) {
6561
6534
  }
6562
6535
  }
6563
6536
  function Un({ load: e, list: t, item: n }) {
6564
- const s = g.useRef(null), [r, i] = g.useReducer(bl, {
6537
+ const r = x.useRef(null), [s, i] = x.useReducer(bl, {
6565
6538
  load: !1,
6566
6539
  list: [],
6567
6540
  data: {},
@@ -6569,39 +6542,39 @@ function Un({ load: e, list: t, item: n }) {
6569
6542
  wait: !1,
6570
6543
  item: n
6571
6544
  });
6572
- console.log("load", e), g.useEffect(() => {
6545
+ x.useEffect(() => {
6573
6546
  t !== null && i({ type: "load", load: e, data: t });
6574
6547
  }, [e]);
6575
6548
  let c = (l) => {
6576
6549
  if (l === 0)
6577
6550
  return l = 1;
6578
- if (l > r.size)
6579
- return l = r.size;
6551
+ if (l > s.size)
6552
+ return l = s.size;
6580
6553
  i({ type: "page", page: l });
6581
6554
  };
6582
- return g.useEffect(() => {
6583
- }, [r]), console.log(r), /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
6584
- /* @__PURE__ */ a.jsx("div", { className: Vn.l, ref: s, children: /* @__PURE__ */ a.jsx(Rn, { "el-empty": "Данные не найдены", children: r.load && r.list !== void 0 ? r.list.map((l) => /* @__PURE__ */ a.jsx(r.item, { data: l }, l.id)) : /* @__PURE__ */ a.jsxs("div", { "type-data": "load", children: [
6555
+ return x.useEffect(() => {
6556
+ }, [s]), /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
6557
+ /* @__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: [
6585
6558
  /* @__PURE__ */ a.jsx("i", {}),
6586
6559
  /* @__PURE__ */ a.jsx("i", {}),
6587
6560
  /* @__PURE__ */ a.jsx("i", {})
6588
6561
  ] }) }) }),
6589
- r.load && r.list !== void 0 ? /* @__PURE__ */ a.jsx(
6562
+ s.load && s.list !== void 0 ? /* @__PURE__ */ a.jsx(
6590
6563
  jl,
6591
6564
  {
6592
- page: r.page,
6593
- count: r.size,
6565
+ page: s.page,
6566
+ count: s.size,
6594
6567
  onChangePage: c
6595
6568
  }
6596
6569
  ) : /* @__PURE__ */ a.jsx(a.Fragment, {})
6597
6570
  ] });
6598
6571
  }
6599
6572
  const Yl = { Pagination: Un };
6600
- function wl({ head: e, load: t, list: n, item: s }) {
6601
- const r = e;
6573
+ function wl({ head: e, load: t, list: n, item: r }) {
6574
+ const s = e;
6602
6575
  return /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
6603
- /* @__PURE__ */ a.jsx(r, {}),
6604
- St.getSetting("s05") === 1 ? /* @__PURE__ */ a.jsx(Un, { list: n, load: t, item: s }) : /* @__PURE__ */ a.jsx(Nn, { list: n, load: t, item: s })
6576
+ /* @__PURE__ */ a.jsx(s, {}),
6577
+ St.getSetting("s05") === 1 ? /* @__PURE__ */ a.jsx(Un, { list: n, load: t, item: r }) : /* @__PURE__ */ a.jsx(Nn, { list: n, load: t, item: r })
6605
6578
  ] });
6606
6579
  }
6607
6580
  function Sl(e, t) {
@@ -6652,7 +6625,7 @@ function El(e) {
6652
6625
  function Rl(e) {
6653
6626
  Ct.get && Ct.get(e);
6654
6627
  }
6655
- const Hl = { View: wl, Reducer: Sl, useValue: El, setValue: Rl }, ql = { Get: er }, Jl = { Open: Fi };
6628
+ const Hl = { View: wl, Reducer: Sl, useValue: El, setValue: Rl }, ql = { Get: es }, Jl = { Open: Fi };
6656
6629
  export {
6657
6630
  io as Action,
6658
6631
  Fl as Alert,
@@ -6660,7 +6633,7 @@ export {
6660
6633
  Pl as Badge,
6661
6634
  Ml as Bookmarks,
6662
6635
  Il as Browser,
6663
- Jr as Button,
6636
+ Js as Button,
6664
6637
  ql as Company,
6665
6638
  un as Component,
6666
6639
  Bl as DataBase,
@@ -6672,10 +6645,10 @@ export {
6672
6645
  G as Format,
6673
6646
  Ol as HotKey,
6674
6647
  Ll as Icon,
6675
- Ki as Init,
6648
+ Wi as Init,
6676
6649
  Gl as Input,
6677
6650
  Hl as List,
6678
- Wl as Loading,
6651
+ Kl as Loading,
6679
6652
  wt as Modal,
6680
6653
  Le as Notice,
6681
6654
  Ul as Notifications,
@@ -6683,11 +6656,11 @@ export {
6683
6656
  Jl as Phone,
6684
6657
  Ue as Router,
6685
6658
  Al as Scrolling,
6686
- Kl as Search,
6659
+ Wl as Search,
6687
6660
  Dl as Setting,
6688
6661
  jt as Sistym,
6689
6662
  ce as Socket,
6690
- re as Store,
6663
+ se as Store,
6691
6664
  Ji as Tabs,
6692
6665
  $l as Triage,
6693
6666
  St as User,