@elcrm/telegram 0.0.37 → 0.0.38

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.es.js CHANGED
@@ -1,22 +1,22 @@
1
- import './index.css';var _a = Object.defineProperty;
2
- var da = (e, t, a) => t in e ? _a(e, t, { enumerable: !0, configurable: !0, writable: !0, value: a }) : e[t] = a;
3
- var it = (e, t, a) => (da(e, typeof t != "symbol" ? t + "" : t, a), a);
1
+ import './index.css';var da = Object.defineProperty;
2
+ var ua = (e, t, a) => t in e ? da(e, t, { enumerable: !0, configurable: !0, writable: !0, value: a }) : e[t] = a;
3
+ var it = (e, t, a) => (ua(e, typeof t != "symbol" ? t + "" : t, a), a);
4
4
  import b from "react";
5
5
  let gt = {};
6
- const ua = (e) => {
6
+ const fa = (e) => {
7
7
  gt = e;
8
- }, fa = (e) => gt.enCode(e), ma = (e) => gt.deCode(e), N = { enCode: fa, deCode: ma, New: ua }, j = {}, U = {}, je = {}, nn = {}, re = {};
9
- let pt = "M06";
10
- function ha(e) {
11
- pt = e;
8
+ }, ma = (e) => gt.enCode(e), ha = (e) => gt.deCode(e), N = { enCode: ma, deCode: ha, New: fa }, j = {}, U = {}, je = {}, nn = {}, re = {};
9
+ let xt = "M06";
10
+ function ga(e) {
11
+ xt = e;
12
12
  }
13
- function ga() {
14
- return pt;
13
+ function xa() {
14
+ return xt;
15
15
  }
16
16
  function pa(e) {
17
17
  if (localStorage.getItem("d")) {
18
18
  let a = sessionStorage.getItem("f");
19
- a ? (a = N.deCode(a), a || X(), j.id = a.id, j.tab = a.tab, j.page = a.page, j.module = a.module, j.time = a.time, j.payment = { active: !0 }, j.module_admin = a.module_admin) : (j.id = 0, j.tab = "", j.page = "Main", j.module = j.module || pt);
19
+ a ? (a = N.deCode(a), a || X(), j.id = a.id, j.tab = a.tab, j.page = a.page, j.module = a.module, j.time = a.time, j.payment = { active: !0 }, j.module_admin = a.module_admin) : (j.id = 0, j.tab = "", j.page = "Main", j.module = j.module || xt);
20
20
  } else
21
21
  ["a", "b", "c", "d", "e", "m", "u", "s", "q", "p"].forEach(
22
22
  (a) => localStorage.removeItem(a)
@@ -28,7 +28,7 @@ function X() {
28
28
  (e) => localStorage.removeItem(e)
29
29
  ), ["f"].forEach((e) => sessionStorage.removeItem(e)), window.location.reload();
30
30
  }
31
- function xa(e) {
31
+ function va(e) {
32
32
  e = e.split("/"), j.page = "Main", j.module = e[0], j.tab = e[1], j.id = 0, sessionStorage.setItem(
33
33
  "f",
34
34
  N.enCode({
@@ -40,21 +40,21 @@ function xa(e) {
40
40
  })
41
41
  ), U.page(j.page);
42
42
  }
43
- function va(e) {
43
+ function ka(e) {
44
44
  return localStorage.setItem("d", e);
45
45
  }
46
- function ka() {
46
+ function ba() {
47
47
  let e = localStorage.getItem("d");
48
48
  return e !== "" && e !== "undefined" && e !== null ? e : "";
49
49
  }
50
- function ba(e) {
50
+ function Ca(e) {
51
51
  return localStorage.setItem("a", e);
52
52
  }
53
- function Ca() {
53
+ function ja() {
54
54
  let e = localStorage.getItem("a");
55
55
  return e !== "" && e !== "undefined" && e !== null ? e : "";
56
56
  }
57
- function ja(e) {
57
+ function ya(e) {
58
58
  localStorage.setItem("p", N.enCode(e));
59
59
  }
60
60
  function lt() {
@@ -65,7 +65,7 @@ function lt() {
65
65
  } else
66
66
  return X(), !1;
67
67
  }
68
- function ya(e) {
68
+ function wa(e) {
69
69
  if (typeof e != "function") {
70
70
  const [t, a] = b.useState(e || an()), r = (i) => {
71
71
  a(i);
@@ -74,16 +74,16 @@ function ya(e) {
74
74
  } else
75
75
  U.page = e;
76
76
  }
77
- function wa(e, t = !0) {
77
+ function Sa(e, t = !0) {
78
78
  j.page = e, sessionStorage.setItem("f", N.enCode(j)), t && U.page(e);
79
79
  }
80
80
  function an() {
81
81
  return j.page;
82
82
  }
83
- function Sa(e) {
83
+ function Ea(e) {
84
84
  return j.page === e;
85
85
  }
86
- function Ea(e) {
86
+ function Ba(e) {
87
87
  if (typeof e != "function") {
88
88
  const [t, a] = b.useState(e || rn()), r = (i) => {
89
89
  a(i);
@@ -92,16 +92,16 @@ function Ea(e) {
92
92
  } else
93
93
  U.module = e;
94
94
  }
95
- function Ba(e, t = !0) {
95
+ function Ta(e, t = !0) {
96
96
  j.module = e, sessionStorage.setItem("f", N.enCode(j)), t && U.module(e);
97
97
  }
98
98
  function rn() {
99
99
  return j.module;
100
100
  }
101
- function Ta(e) {
101
+ function Ra(e) {
102
102
  return j.module === e;
103
103
  }
104
- function Ra(e) {
104
+ function Ma(e) {
105
105
  if (typeof e != "function") {
106
106
  const [t, a] = b.useState(e || Ze()), [r, i] = b.useState(!1);
107
107
  return b.useEffect(() => {
@@ -110,7 +110,7 @@ function Ra(e) {
110
110
  } else
111
111
  U.tabs = e;
112
112
  }
113
- function Ma(e, t = !0) {
113
+ function Ia(e, t = !0) {
114
114
  if (j.tab = e, sessionStorage.setItem("f", N.enCode(j)), !!t)
115
115
  if (U.tabs)
116
116
  U.tabs(e);
@@ -120,10 +120,10 @@ function Ma(e, t = !0) {
120
120
  function Ze() {
121
121
  return j.tab;
122
122
  }
123
- function Ia(e) {
123
+ function Na(e) {
124
124
  return j.tab === e;
125
125
  }
126
- function Na(e) {
126
+ function Da(e) {
127
127
  if (typeof e != "function") {
128
128
  const [t, a] = b.useState(e || on()), r = (i) => {
129
129
  a(i);
@@ -132,35 +132,35 @@ function Na(e) {
132
132
  } else
133
133
  U.id = e;
134
134
  }
135
- function Da(e) {
135
+ function Pa(e) {
136
136
  U.id = e;
137
137
  }
138
- function Pa(e, t = !0) {
138
+ function Fa(e, t = !0) {
139
139
  j.id = e, sessionStorage.setItem("f", N.enCode(j)), t && U.id(e);
140
140
  }
141
141
  function on() {
142
142
  return j.id;
143
143
  }
144
- function Fa(e) {
144
+ function $a(e) {
145
145
  return Number(j.id) === e;
146
146
  }
147
- function $a(e, t, a) {
147
+ function La(e, t, a) {
148
148
  j.module = e, j.id = a, j.tab = t, sessionStorage.setItem("f", N.enCode(j)), U.module(e), U.tabs(t);
149
149
  }
150
- function La(e) {
150
+ function Aa(e) {
151
151
  je.data = e[0], delete je.data.id, document.body.dataset.theme = je.data.s15, localStorage.setItem("s", N.enCode(je.data));
152
152
  }
153
- function Aa(e, t) {
153
+ function Oa(e, t) {
154
154
  je.data[e] = t, localStorage.setItem("s", N.enCode(je.data));
155
155
  }
156
- function Oa(e) {
156
+ function Ga(e) {
157
157
  let t = localStorage.getItem("s");
158
158
  return t === null ? {} : (t = N.deCode(t), t ? e !== void 0 ? t[e] : t : X());
159
159
  }
160
160
  function sn(e) {
161
161
  localStorage.setItem("m", N.enCode({ data: e }));
162
162
  }
163
- function Ga() {
163
+ function za() {
164
164
  let e = localStorage.getItem("m");
165
165
  if (e !== "" && e !== "undefined" && e !== null) {
166
166
  let t = localStorage.getItem("m"), a = N.deCode(t);
@@ -175,7 +175,7 @@ function Ga() {
175
175
  } else
176
176
  return X(), !1;
177
177
  }
178
- function za(e) {
178
+ function Wa(e) {
179
179
  U.sort = e;
180
180
  }
181
181
  function ln(e) {
@@ -189,7 +189,7 @@ function ct() {
189
189
  function cn(e) {
190
190
  localStorage.setItem("c", N.enCode(e));
191
191
  }
192
- function Wa(e, t) {
192
+ function Ka(e, t) {
193
193
  var r;
194
194
  let a = localStorage.getItem("c");
195
195
  if (a !== "" && a !== "undefined" && a !== null) {
@@ -201,7 +201,7 @@ function Wa(e, t) {
201
201
  function De(e) {
202
202
  re.data = e, localStorage.setItem("q", N.enCode(re.data));
203
203
  }
204
- function Ka(e, t) {
204
+ function Za(e, t) {
205
205
  re.data = { ...re.data, [e]: t }, localStorage.setItem("q", N.enCode(re.data));
206
206
  }
207
207
  function ke(e, t) {
@@ -211,22 +211,22 @@ function ke(e, t) {
211
211
  }
212
212
  return e === void 0 && t === void 0 ? re.data : e !== void 0 && t === void 0 ? re.data[e] : re.data[e][t];
213
213
  }
214
- function Za(e) {
214
+ function Ua(e) {
215
215
  nn.data = e;
216
216
  }
217
- function Ua(e) {
217
+ function Ha(e) {
218
218
  return nn.data[e];
219
219
  }
220
- function Ha(e) {
220
+ function Ya(e) {
221
221
  j.payment = e;
222
222
  }
223
- function Ya() {
223
+ function Va() {
224
224
  return j.payment;
225
225
  }
226
226
  function _n(e) {
227
227
  localStorage.setItem("u", N.enCode(e));
228
228
  }
229
- function Va() {
229
+ function qa() {
230
230
  let e = localStorage.getItem("u");
231
231
  if (e !== "" && e !== "undefined" && e !== null) {
232
232
  let t = N.deCode(e);
@@ -234,7 +234,7 @@ function Va() {
234
234
  } else
235
235
  return X(), !1;
236
236
  }
237
- function qa(e) {
237
+ function Ja(e) {
238
238
  const t = (a) => {
239
239
  let r = localStorage.getItem(a);
240
240
  if (r !== "" && r !== "undefined" && r !== null)
@@ -251,46 +251,46 @@ function qa(e) {
251
251
  };
252
252
  e.forEach((a) => t(a));
253
253
  }
254
- function Ja(e) {
254
+ function Xa(e) {
255
255
  return j[e] === void 0 ? (j[e] = { data: {}, time: 0 }, { data: {}, time: 0 }) : j[e];
256
256
  }
257
- function Xa(e, t) {
257
+ function Qa(e, t) {
258
258
  j[e] = { data: t.data, time: t.time }, localStorage.setItem(e, N.enCode(j[e]));
259
259
  }
260
- function Qa(e, t, a) {
260
+ function er(e, t, a) {
261
261
  j[e].time = a, j[e].data[t.item][t.name] = t.value, localStorage.setItem(e, N.enCode(j[e]));
262
262
  }
263
263
  const le = {
264
- setSSID: va,
265
- getSSID: ka,
264
+ setSSID: ka,
265
+ getSSID: ba,
266
266
  getPORT: lt,
267
- setPORT: ja,
268
- setAUTH: ba,
269
- getAUTH: Ca,
267
+ setPORT: ya,
268
+ setAUTH: Ca,
269
+ getAUTH: ja,
270
270
  Logaut: X,
271
- Start: xa,
271
+ Start: va,
272
272
  setMenu: sn,
273
- getMenu: Ga,
274
- useSort: za,
273
+ getMenu: za,
274
+ useSort: Wa,
275
275
  setSort: ln,
276
276
  getSort: ct,
277
277
  setCompany: cn,
278
- getCompany: Wa,
278
+ getCompany: Ka,
279
279
  setSelect: De,
280
- addSelect: Ka,
280
+ addSelect: Za,
281
281
  getSelect: ke,
282
- setApi: Za,
283
- getApi: Ua,
284
- setPayment: Ha,
285
- getPayment: Ya,
282
+ setApi: Ua,
283
+ getApi: Ha,
284
+ setPayment: Ya,
285
+ getPayment: Va,
286
286
  setUser: _n,
287
- getUser: Va,
288
- getDefaultModules: ga,
289
- getBase: Ja,
290
- setBase: Xa,
291
- editBase: Qa,
292
- loadBase: qa
293
- }, dn = "KGZ1bmN0aW9uKCl7InVzZSBzdHJpY3QiO29ubWVzc2FnZT1hc3luYyB0PT57dHJ5e2xldCBhPWF3YWl0IGZldGNoKGAke3QuZGF0YS5ob3N0fSR7dC5kYXRhLmxpbmt9YCx7bWV0aG9kOiJQT1NUIixoZWFkZXJzOntzc2lkOnQuZGF0YS5zc2lkLCJDb250ZW50LXR5cGUiOiJhcHBsaWNhdGlvbi9qc29uO2NoYXJzZXQ9dXRmLTgifSxib2R5OkpTT04uc3RyaW5naWZ5KHQuZGF0YS5kYXRhKX0pO3Bvc3RNZXNzYWdlKGF3YWl0IGEuanNvbigpKX1jYXRjaChhKXtwb3N0TWVzc2FnZSh7c3RhdHVzOiJlcnJvciIsZGF0YToid29ya2VyIixtZXNzYWdlOmF9KX19fSkoKTsK", er = (e) => Uint8Array.from(atob(e), (t) => t.charCodeAt(0)), Zt = typeof window < "u" && window.Blob && new Blob([er(dn)], { type: "text/javascript;charset=utf-8" });
287
+ getUser: qa,
288
+ getDefaultModules: xa,
289
+ getBase: Xa,
290
+ setBase: Qa,
291
+ editBase: er,
292
+ loadBase: Ja
293
+ }, dn = "KGZ1bmN0aW9uKCl7InVzZSBzdHJpY3QiO29ubWVzc2FnZT1hc3luYyB0PT57dHJ5e2xldCBhPWF3YWl0IGZldGNoKGAke3QuZGF0YS5ob3N0fSR7dC5kYXRhLmxpbmt9YCx7bWV0aG9kOiJQT1NUIixoZWFkZXJzOntzc2lkOnQuZGF0YS5zc2lkLCJDb250ZW50LXR5cGUiOiJhcHBsaWNhdGlvbi9qc29uO2NoYXJzZXQ9dXRmLTgifSxib2R5OkpTT04uc3RyaW5naWZ5KHQuZGF0YS5kYXRhKX0pO3Bvc3RNZXNzYWdlKGF3YWl0IGEuanNvbigpKX1jYXRjaChhKXtwb3N0TWVzc2FnZSh7c3RhdHVzOiJlcnJvciIsZGF0YToid29ya2VyIixtZXNzYWdlOmF9KX19fSkoKTsK", tr = (e) => Uint8Array.from(atob(e), (t) => t.charCodeAt(0)), Zt = typeof window < "u" && window.Blob && new Blob([tr(dn)], { type: "text/javascript;charset=utf-8" });
294
294
  function un(e) {
295
295
  let t;
296
296
  try {
@@ -314,29 +314,29 @@ function un(e) {
314
314
  }
315
315
  }
316
316
  const de = {};
317
- function tr(e) {
317
+ function nr(e) {
318
318
  return e && (de.s = e), de.s;
319
319
  }
320
- function nr(e) {
320
+ function ar(e) {
321
321
  return e && (de.a = e), de.a;
322
322
  }
323
- function ar(e) {
323
+ function rr(e) {
324
324
  return e && (de.c = e), de.c;
325
325
  }
326
- function rr(e) {
326
+ function ir(e) {
327
327
  return e && (de.h = e), de.h;
328
328
  }
329
- const xt = { version: { Api: nr, Server: tr, Client: ar }, Host: rr };
330
- let ir = "api", or = "elcrm", sr = "online";
331
- function lr() {
329
+ const pt = { version: { Api: ar, Server: nr, Client: rr }, Host: ir };
330
+ let or = "api", sr = "elcrm", lr = "online";
331
+ function cr() {
332
332
  let e = le.getPORT(), t = "", a = "";
333
333
  return e.address === "localhost" ? (t = `http://localhost:${e.socket}/documents`, a = `http://localhost:${e.socket}/files`) : (t = "https://" + e.address + "/documents", a = "https://" + e.address + "/files"), {
334
334
  documents: t,
335
335
  files: a
336
336
  };
337
337
  }
338
- let fn = `${ir}.${or}.${sr}`;
339
- function cr(e) {
338
+ let fn = `${or}.${sr}.${lr}`;
339
+ function _r(e) {
340
340
  return "https://" + le.getPORT().address + "/audio/" + e;
341
341
  }
342
342
  function Ue(e, t = {}, a = le.getAUTH()) {
@@ -348,11 +348,11 @@ function Ue(e, t = {}, a = le.getAUTH()) {
348
348
  link: e,
349
349
  data: t,
350
350
  ssid: a,
351
- host: xt.Host() || `https://${fn}/`
351
+ host: pt.Host() || `https://${fn}/`
352
352
  });
353
353
  });
354
354
  }
355
- function _r(e, t = {}, a = le.getAUTH()) {
355
+ function dr(e, t = {}, a = le.getAUTH()) {
356
356
  return new Promise((r) => {
357
357
  const i = new un();
358
358
  i.onmessage = (o) => {
@@ -361,11 +361,11 @@ function _r(e, t = {}, a = le.getAUTH()) {
361
361
  link: e,
362
362
  data: t,
363
363
  ssid: a,
364
- host: xt.Host() + "modules/" || `https://${fn}/modules`
364
+ host: pt.Host() + "modules/" || `https://${fn}/modules`
365
365
  });
366
366
  });
367
367
  }
368
- function dr(e, t = {}, a) {
368
+ function ur(e, t = {}, a) {
369
369
  const [r, i] = b.useState({ status: "load" }), o = async (l) => {
370
370
  let c = await Ue(e, l, a);
371
371
  i(c);
@@ -378,7 +378,7 @@ let mn = {
378
378
  "Content-type": "application/json;charset=utf-8",
379
379
  ssid: le.getAUTH() || ""
380
380
  };
381
- async function ur(e, t, a = {}) {
381
+ async function fr(e, t, a = {}) {
382
382
  try {
383
383
  return await (await Ue("https://" + e + "/" + t, {
384
384
  method: "POST",
@@ -389,7 +389,7 @@ async function ur(e, t, a = {}) {
389
389
  return { status: "error" };
390
390
  }
391
391
  }
392
- async function fr(e, t = {}) {
392
+ async function mr(e, t = {}) {
393
393
  try {
394
394
  return await (await Ue("https://tb.elcrm.online/v1/" + e, {
395
395
  method: "POST",
@@ -400,7 +400,7 @@ async function fr(e, t = {}) {
400
400
  return { status: "error" };
401
401
  }
402
402
  }
403
- const _l = { audio: cr, fetch: Ue, modules: _r, remoute: ur, url: lr, telegram: fr, use: dr };
403
+ const _l = { audio: _r, fetch: Ue, modules: dr, remoute: fr, url: cr, telegram: mr, use: ur };
404
404
  var _t = { exports: {} }, Re = {};
405
405
  /**
406
406
  * @license React
@@ -412,20 +412,20 @@ var _t = { exports: {} }, Re = {};
412
412
  * LICENSE file in the root directory of this source tree.
413
413
  */
414
414
  var Ut;
415
- function mr() {
415
+ function hr() {
416
416
  if (Ut)
417
417
  return Re;
418
418
  Ut = 1;
419
419
  var e = b, t = Symbol.for("react.element"), a = Symbol.for("react.fragment"), r = Object.prototype.hasOwnProperty, i = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, o = { key: !0, ref: !0, __self: !0, __source: !0 };
420
420
  function l(c, d, _) {
421
- var u, f = {}, x = null, m = null;
422
- _ !== void 0 && (x = "" + _), d.key !== void 0 && (x = "" + d.key), d.ref !== void 0 && (m = d.ref);
421
+ var u, f = {}, p = null, m = null;
422
+ _ !== void 0 && (p = "" + _), d.key !== void 0 && (p = "" + d.key), d.ref !== void 0 && (m = d.ref);
423
423
  for (u in d)
424
424
  r.call(d, u) && !o.hasOwnProperty(u) && (f[u] = d[u]);
425
425
  if (c && c.defaultProps)
426
426
  for (u in d = c.defaultProps, d)
427
427
  f[u] === void 0 && (f[u] = d[u]);
428
- return { $$typeof: t, type: c, key: x, ref: m, props: f, _owner: i.current };
428
+ return { $$typeof: t, type: c, key: p, ref: m, props: f, _owner: i.current };
429
429
  }
430
430
  return Re.Fragment = a, Re.jsx = l, Re.jsxs = l, Re;
431
431
  }
@@ -440,10 +440,10 @@ var Me = {};
440
440
  * LICENSE file in the root directory of this source tree.
441
441
  */
442
442
  var Ht;
443
- function hr() {
443
+ function gr() {
444
444
  return Ht || (Ht = 1, process.env.NODE_ENV !== "production" && function() {
445
- var e = b, t = Symbol.for("react.element"), a = Symbol.for("react.portal"), r = Symbol.for("react.fragment"), i = Symbol.for("react.strict_mode"), o = Symbol.for("react.profiler"), l = Symbol.for("react.provider"), c = Symbol.for("react.context"), d = Symbol.for("react.forward_ref"), _ = Symbol.for("react.suspense"), u = Symbol.for("react.suspense_list"), f = Symbol.for("react.memo"), x = Symbol.for("react.lazy"), m = Symbol.for("react.offscreen"), g = Symbol.iterator, v = "@@iterator";
446
- function p(s) {
445
+ var e = b, t = Symbol.for("react.element"), a = Symbol.for("react.portal"), r = Symbol.for("react.fragment"), i = Symbol.for("react.strict_mode"), o = Symbol.for("react.profiler"), l = Symbol.for("react.provider"), c = Symbol.for("react.context"), d = Symbol.for("react.forward_ref"), _ = Symbol.for("react.suspense"), u = Symbol.for("react.suspense_list"), f = Symbol.for("react.memo"), p = Symbol.for("react.lazy"), m = Symbol.for("react.offscreen"), g = Symbol.iterator, v = "@@iterator";
446
+ function x(s) {
447
447
  if (s === null || typeof s != "object")
448
448
  return null;
449
449
  var h = g && s[g] || s[v];
@@ -470,7 +470,7 @@ function hr() {
470
470
  var T = !1, P = !1, O = !1, K = !1, se = !1, z;
471
471
  z = Symbol.for("react.module.reference");
472
472
  function M(s) {
473
- return !!(typeof s == "string" || typeof s == "function" || s === r || s === o || se || s === i || s === _ || s === u || K || s === m || T || P || O || typeof s == "object" && s !== null && (s.$$typeof === x || s.$$typeof === f || s.$$typeof === l || s.$$typeof === c || s.$$typeof === d || // This needs to include all possible module reference object
473
+ return !!(typeof s == "string" || typeof s == "function" || s === r || s === o || se || s === i || s === _ || s === u || K || s === m || T || P || O || typeof s == "object" && s !== null && (s.$$typeof === p || s.$$typeof === f || s.$$typeof === l || s.$$typeof === c || s.$$typeof === d || // This needs to include all possible module reference object
474
474
  // types supported by any Flight configuration anywhere since
475
475
  // we don't know which Flight build this will end up being used
476
476
  // with.
@@ -520,7 +520,7 @@ function hr() {
520
520
  case f:
521
521
  var w = s.displayName || null;
522
522
  return w !== null ? w : E(s.type) || "Memo";
523
- case x: {
523
+ case p: {
524
524
  var D = s, F = D._payload, I = D._init;
525
525
  try {
526
526
  return E(I(F));
@@ -535,7 +535,7 @@ function hr() {
535
535
  function Rt() {
536
536
  }
537
537
  Rt.__reactDisabledLog = !0;
538
- function $n() {
538
+ function Ln() {
539
539
  {
540
540
  if (Y === 0) {
541
541
  $e = console.log, te = console.info, Ee = console.warn, Ve = console.error, Le = console.group, Bt = console.groupCollapsed, Tt = console.groupEnd;
@@ -558,7 +558,7 @@ function hr() {
558
558
  Y++;
559
559
  }
560
560
  }
561
- function Ln() {
561
+ function An() {
562
562
  {
563
563
  if (Y--, Y === 0) {
564
564
  var s = {
@@ -609,8 +609,8 @@ function hr() {
609
609
  }
610
610
  var Xe = !1, Oe;
611
611
  {
612
- var An = typeof WeakMap == "function" ? WeakMap : Map;
613
- Oe = new An();
612
+ var On = typeof WeakMap == "function" ? WeakMap : Map;
613
+ Oe = new On();
614
614
  }
615
615
  function Mt(s, h) {
616
616
  if (!s || Xe)
@@ -625,7 +625,7 @@ function hr() {
625
625
  var D = Error.prepareStackTrace;
626
626
  Error.prepareStackTrace = void 0;
627
627
  var F;
628
- F = qe.current, qe.current = null, $n();
628
+ F = qe.current, qe.current = null, Ln();
629
629
  try {
630
630
  if (h) {
631
631
  var I = function() {
@@ -678,15 +678,15 @@ function hr() {
678
678
  }
679
679
  }
680
680
  } finally {
681
- Xe = !1, qe.current = F, Ln(), Error.prepareStackTrace = D;
681
+ Xe = !1, qe.current = F, An(), Error.prepareStackTrace = D;
682
682
  }
683
683
  var Ce = s ? s.displayName || s.name : "", he = Ce ? Ae(Ce) : "";
684
684
  return typeof s == "function" && Oe.set(s, he), he;
685
685
  }
686
- function On(s, h, k) {
686
+ function Gn(s, h, k) {
687
687
  return Mt(s, !1);
688
688
  }
689
- function Gn(s) {
689
+ function zn(s) {
690
690
  var h = s.prototype;
691
691
  return !!(h && h.isReactComponent);
692
692
  }
@@ -694,7 +694,7 @@ function hr() {
694
694
  if (s == null)
695
695
  return "";
696
696
  if (typeof s == "function")
697
- return Mt(s, Gn(s));
697
+ return Mt(s, zn(s));
698
698
  if (typeof s == "string")
699
699
  return Ae(s);
700
700
  switch (s) {
@@ -706,10 +706,10 @@ function hr() {
706
706
  if (typeof s == "object")
707
707
  switch (s.$$typeof) {
708
708
  case d:
709
- return On(s.render);
709
+ return Gn(s.render);
710
710
  case f:
711
711
  return Ge(s.type, h, k);
712
- case x: {
712
+ case p: {
713
713
  var w = s, D = w._payload, F = w._init;
714
714
  try {
715
715
  return Ge(F(D), h, k);
@@ -727,7 +727,7 @@ function hr() {
727
727
  } else
728
728
  Nt.setExtraStackFrame(null);
729
729
  }
730
- function zn(s, h, k, w, D) {
730
+ function Wn(s, h, k, w, D) {
731
731
  {
732
732
  var F = Function.call.bind(Be);
733
733
  for (var I in s)
@@ -746,17 +746,17 @@ function hr() {
746
746
  }
747
747
  }
748
748
  }
749
- var Wn = Array.isArray;
749
+ var Kn = Array.isArray;
750
750
  function Qe(s) {
751
- return Wn(s);
751
+ return Kn(s);
752
752
  }
753
- function Kn(s) {
753
+ function Zn(s) {
754
754
  {
755
755
  var h = typeof Symbol == "function" && Symbol.toStringTag, k = h && s[Symbol.toStringTag] || s.constructor.name || "Object";
756
756
  return k;
757
757
  }
758
758
  }
759
- function Zn(s) {
759
+ function Un(s) {
760
760
  try {
761
761
  return Dt(s), !1;
762
762
  } catch {
@@ -767,17 +767,17 @@ function hr() {
767
767
  return "" + s;
768
768
  }
769
769
  function Pt(s) {
770
- if (Zn(s))
771
- return y("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Kn(s)), Dt(s);
770
+ if (Un(s))
771
+ return y("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Zn(s)), Dt(s);
772
772
  }
773
- var Te = C.ReactCurrentOwner, Un = {
773
+ var Te = C.ReactCurrentOwner, Hn = {
774
774
  key: !0,
775
775
  ref: !0,
776
776
  __self: !0,
777
777
  __source: !0
778
778
  }, Ft, $t, et;
779
779
  et = {};
780
- function Hn(s) {
780
+ function Yn(s) {
781
781
  if (Be.call(s, "ref")) {
782
782
  var h = Object.getOwnPropertyDescriptor(s, "ref").get;
783
783
  if (h && h.isReactWarning)
@@ -785,7 +785,7 @@ function hr() {
785
785
  }
786
786
  return s.ref !== void 0;
787
787
  }
788
- function Yn(s) {
788
+ function Vn(s) {
789
789
  if (Be.call(s, "key")) {
790
790
  var h = Object.getOwnPropertyDescriptor(s, "key").get;
791
791
  if (h && h.isReactWarning)
@@ -793,13 +793,13 @@ function hr() {
793
793
  }
794
794
  return s.key !== void 0;
795
795
  }
796
- function Vn(s, h) {
796
+ function qn(s, h) {
797
797
  if (typeof s.ref == "string" && Te.current && h && Te.current.stateNode !== h) {
798
798
  var k = E(Te.current.type);
799
799
  et[k] || (y('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', E(Te.current.type), s.ref), et[k] = !0);
800
800
  }
801
801
  }
802
- function qn(s, h) {
802
+ function Jn(s, h) {
803
803
  {
804
804
  var k = function() {
805
805
  Ft || (Ft = !0, y("%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)", h));
@@ -810,7 +810,7 @@ function hr() {
810
810
  });
811
811
  }
812
812
  }
813
- function Jn(s, h) {
813
+ function Xn(s, h) {
814
814
  {
815
815
  var k = function() {
816
816
  $t || ($t = !0, y("%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)", h));
@@ -821,7 +821,7 @@ function hr() {
821
821
  });
822
822
  }
823
823
  }
824
- var Xn = function(s, h, k, w, D, F, I) {
824
+ var Qn = function(s, h, k, w, D, F, I) {
825
825
  var R = {
826
826
  // This tag allows us to uniquely identify this as a React Element
827
827
  $$typeof: t,
@@ -850,12 +850,12 @@ function hr() {
850
850
  value: D
851
851
  }), Object.freeze && (Object.freeze(R.props), Object.freeze(R)), R;
852
852
  };
853
- function Qn(s, h, k, w, D) {
853
+ function ea(s, h, k, w, D) {
854
854
  {
855
855
  var F, I = {}, R = null, V = null;
856
- k !== void 0 && (Pt(k), R = "" + k), Yn(h) && (Pt(h.key), R = "" + h.key), Hn(h) && (V = h.ref, Vn(h, D));
856
+ k !== void 0 && (Pt(k), R = "" + k), Vn(h) && (Pt(h.key), R = "" + h.key), Yn(h) && (V = h.ref, qn(h, D));
857
857
  for (F in h)
858
- Be.call(h, F) && !Un.hasOwnProperty(F) && (I[F] = h[F]);
858
+ Be.call(h, F) && !Hn.hasOwnProperty(F) && (I[F] = h[F]);
859
859
  if (s && s.defaultProps) {
860
860
  var L = s.defaultProps;
861
861
  for (F in L)
@@ -863,9 +863,9 @@ function hr() {
863
863
  }
864
864
  if (R || V) {
865
865
  var G = typeof s == "function" ? s.displayName || s.name || "Unknown" : s;
866
- R && qn(I, G), V && Jn(I, G);
866
+ R && Jn(I, G), V && Xn(I, G);
867
867
  }
868
- return Xn(s, R, V, D, w, Te.current, I);
868
+ return Qn(s, R, V, D, w, Te.current, I);
869
869
  }
870
870
  }
871
871
  var tt = C.ReactCurrentOwner, Lt = C.ReactDebugCurrentFrame;
@@ -893,11 +893,11 @@ Check the render method of \`` + s + "`.";
893
893
  return "";
894
894
  }
895
895
  }
896
- function ea(s) {
896
+ function ta(s) {
897
897
  return "";
898
898
  }
899
899
  var Ot = {};
900
- function ta(s) {
900
+ function na(s) {
901
901
  {
902
902
  var h = At();
903
903
  if (!h) {
@@ -914,7 +914,7 @@ Check the top-level render call using <` + k + ">.");
914
914
  if (!s._store || s._store.validated || s.key != null)
915
915
  return;
916
916
  s._store.validated = !0;
917
- var k = ta(h);
917
+ var k = na(h);
918
918
  if (Ot[k])
919
919
  return;
920
920
  Ot[k] = !0;
@@ -934,14 +934,14 @@ Check the top-level render call using <` + k + ">.");
934
934
  else if (at(s))
935
935
  s._store && (s._store.validated = !0);
936
936
  else if (s) {
937
- var D = p(s);
937
+ var D = x(s);
938
938
  if (typeof D == "function" && D !== s.entries)
939
939
  for (var F = D.call(s), I; !(I = F.next()).done; )
940
940
  at(I.value) && Gt(I.value, h);
941
941
  }
942
942
  }
943
943
  }
944
- function na(s) {
944
+ function aa(s) {
945
945
  {
946
946
  var h = s.type;
947
947
  if (h == null || typeof h == "string")
@@ -957,7 +957,7 @@ Check the top-level render call using <` + k + ">.");
957
957
  return;
958
958
  if (k) {
959
959
  var w = E(h);
960
- zn(k, s.props, "prop", w, s);
960
+ Wn(k, s.props, "prop", w, s);
961
961
  } else if (h.PropTypes !== void 0 && !nt) {
962
962
  nt = !0;
963
963
  var D = E(h);
@@ -966,7 +966,7 @@ Check the top-level render call using <` + k + ">.");
966
966
  typeof h.getDefaultProps == "function" && !h.getDefaultProps.isReactClassApproved && y("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
967
967
  }
968
968
  }
969
- function aa(s) {
969
+ function ra(s) {
970
970
  {
971
971
  for (var h = Object.keys(s.props), k = 0; k < h.length; k++) {
972
972
  var w = h[k];
@@ -985,12 +985,12 @@ Check the top-level render call using <` + k + ">.");
985
985
  if (!I) {
986
986
  var R = "";
987
987
  (s === void 0 || typeof s == "object" && s !== null && Object.keys(s).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.");
988
- var V = ea();
988
+ var V = ta();
989
989
  V ? R += V : R += At();
990
990
  var L;
991
991
  s === null ? L = "null" : Qe(s) ? L = "array" : s !== void 0 && s.$$typeof === t ? (L = "<" + (E(s.type) || "Unknown") + " />", R = " Did you accidentally export a JSX literal instead of a component?") : L = typeof s, y("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", L, R);
992
992
  }
993
- var G = Qn(s, h, k, D, F);
993
+ var G = ea(s, h, k, D, F);
994
994
  if (G == null)
995
995
  return G;
996
996
  if (I) {
@@ -1007,42 +1007,42 @@ Check the top-level render call using <` + k + ">.");
1007
1007
  zt(Q, s);
1008
1008
  }
1009
1009
  if (Be.call(h, "key")) {
1010
- var he = E(s), q = Object.keys(h).filter(function(ca) {
1011
- return ca !== "key";
1010
+ var he = E(s), q = Object.keys(h).filter(function(_a) {
1011
+ return _a !== "key";
1012
1012
  }), rt = q.length > 0 ? "{key: someKey, " + q.join(": ..., ") + ": ...}" : "{key: someKey}";
1013
1013
  if (!Wt[he + rt]) {
1014
- var la = q.length > 0 ? "{" + q.join(": ..., ") + ": ...}" : "{}";
1014
+ var ca = q.length > 0 ? "{" + q.join(": ..., ") + ": ...}" : "{}";
1015
1015
  y(`A props object containing a "key" prop is being spread into JSX:
1016
1016
  let props = %s;
1017
1017
  <%s {...props} />
1018
1018
  React keys must be passed directly to JSX without using spread:
1019
1019
  let props = %s;
1020
- <%s key={someKey} {...props} />`, rt, he, la, he), Wt[he + rt] = !0;
1020
+ <%s key={someKey} {...props} />`, rt, he, ca, he), Wt[he + rt] = !0;
1021
1021
  }
1022
1022
  }
1023
- return s === r ? aa(G) : na(G), G;
1023
+ return s === r ? ra(G) : aa(G), G;
1024
1024
  }
1025
1025
  }
1026
- function ra(s, h, k) {
1026
+ function ia(s, h, k) {
1027
1027
  return Kt(s, h, k, !0);
1028
1028
  }
1029
- function ia(s, h, k) {
1029
+ function oa(s, h, k) {
1030
1030
  return Kt(s, h, k, !1);
1031
1031
  }
1032
- var oa = ia, sa = ra;
1033
- Me.Fragment = r, Me.jsx = oa, Me.jsxs = sa;
1032
+ var sa = oa, la = ia;
1033
+ Me.Fragment = r, Me.jsx = sa, Me.jsxs = la;
1034
1034
  }()), Me;
1035
1035
  }
1036
- process.env.NODE_ENV === "production" ? _t.exports = mr() : _t.exports = hr();
1036
+ process.env.NODE_ENV === "production" ? _t.exports = hr() : _t.exports = gr();
1037
1037
  var n = _t.exports;
1038
- const gr = "_notice_i1i19_1", pr = "_error_i1i19_10", xr = "_success_i1i19_13", vr = "_warning_i1i19_16", kr = "_copy_i1i19_19", br = {
1039
- notice: gr,
1038
+ const xr = "_notice_49xhv_1", pr = "_error_49xhv_10", vr = "_success_49xhv_13", kr = "_warning_49xhv_16", br = "_copy_49xhv_19", hn = {
1039
+ notice: xr,
1040
1040
  error: pr,
1041
- success: xr,
1042
- warning: vr,
1043
- copy: kr,
1044
- "show-notice": "_show-notice_i1i19_1",
1045
- "hide-notice": "_hide-notice_i1i19_1"
1041
+ success: vr,
1042
+ warning: kr,
1043
+ copy: br,
1044
+ "show-notice": "_show-notice_49xhv_1",
1045
+ "hide-notice": "_hide-notice_49xhv_1"
1046
1046
  };
1047
1047
  let ue = {};
1048
1048
  function Cr() {
@@ -1051,7 +1051,7 @@ function Cr() {
1051
1051
  t([...e, a]);
1052
1052
  }, ue.del = (a) => {
1053
1053
  t(e.filter((r) => r.key !== a));
1054
- }, e.length === 0 ? "" : /* @__PURE__ */ n.jsx("ul", { className: br.notice, children: e.map((a) => a.item) });
1054
+ }, e.length === 0 ? "" : /* @__PURE__ */ n.jsx("ul", { className: hn.notice, children: e.map((a) => a.item) });
1055
1055
  }
1056
1056
  function Pe({ data: e }) {
1057
1057
  let [t, a] = b.useState("show");
@@ -1065,22 +1065,22 @@ function Pe({ data: e }) {
1065
1065
  let r;
1066
1066
  switch (e.type) {
1067
1067
  case "error":
1068
- r = /* @__PURE__ */ n.jsx(pe.error, {});
1068
+ r = /* @__PURE__ */ n.jsx(xe.error, {});
1069
1069
  break;
1070
1070
  case "success":
1071
- r = /* @__PURE__ */ n.jsx(pe.success, {});
1071
+ r = /* @__PURE__ */ n.jsx(xe.success, {});
1072
1072
  break;
1073
1073
  case "copy":
1074
- r = /* @__PURE__ */ n.jsx(pe.success, {});
1074
+ r = /* @__PURE__ */ n.jsx(xe.success, {});
1075
1075
  break;
1076
1076
  case "remark":
1077
- r = /* @__PURE__ */ n.jsx(pe.success, {});
1077
+ r = /* @__PURE__ */ n.jsx(xe.success, {});
1078
1078
  break;
1079
1079
  default:
1080
- r = /* @__PURE__ */ n.jsx(pe.success, {});
1080
+ r = /* @__PURE__ */ n.jsx(xe.success, {});
1081
1081
  break;
1082
1082
  }
1083
- return /* @__PURE__ */ n.jsxs("li", { className: "item " + e.type, "data-status": t, children: [
1083
+ return /* @__PURE__ */ n.jsxs("li", { className: "item " + hn[e.type], "data-status": t, children: [
1084
1084
  r,
1085
1085
  /* @__PURE__ */ n.jsx("p", { children: e.text })
1086
1086
  ] });
@@ -1105,8 +1105,8 @@ function Er(e) {
1105
1105
  let t = Date.now(), a = { key: t, text: e, type: "copy" };
1106
1106
  ue.set({ item: /* @__PURE__ */ n.jsx(Pe, { data: a }, t), key: t });
1107
1107
  }
1108
- const pe = {};
1109
- pe.error = () => /* @__PURE__ */ n.jsxs("svg", { viewBox: "0 0 24 24", fill: "none", children: [
1108
+ const xe = {};
1109
+ xe.error = () => /* @__PURE__ */ n.jsxs("svg", { viewBox: "0 0 24 24", fill: "none", children: [
1110
1110
  /* @__PURE__ */ n.jsx(
1111
1111
  "path",
1112
1112
  {
@@ -1122,7 +1122,7 @@ pe.error = () => /* @__PURE__ */ n.jsxs("svg", { viewBox: "0 0 24 24", fill: "no
1122
1122
  }
1123
1123
  )
1124
1124
  ] });
1125
- pe.success = () => /* @__PURE__ */ n.jsxs("svg", { viewBox: "0 0 24 24", fill: "none", children: [
1125
+ xe.success = () => /* @__PURE__ */ n.jsxs("svg", { viewBox: "0 0 24 24", fill: "none", children: [
1126
1126
  /* @__PURE__ */ n.jsx(
1127
1127
  "path",
1128
1128
  {
@@ -1276,14 +1276,14 @@ function fi({
1276
1276
  /* @__PURE__ */ n.jsxs("div", { className: ne.h, children: [
1277
1277
  /* @__PURE__ */ n.jsx("div", { className: ne.t, children: e }),
1278
1278
  /* @__PURE__ */ n.jsxs("div", { className: ne.m, children: [
1279
- r && /* @__PURE__ */ n.jsx("nav", { children: r.map((f, x) => /* @__PURE__ */ n.jsx(
1279
+ r && /* @__PURE__ */ n.jsx("nav", { children: r.map((f, p) => /* @__PURE__ */ n.jsx(
1280
1280
  "span",
1281
1281
  {
1282
1282
  onClick: f.onClick,
1283
1283
  className: f.active ? "active" : "",
1284
1284
  children: f.name
1285
1285
  },
1286
- x
1286
+ p
1287
1287
  )) }),
1288
1288
  o
1289
1289
  ] }),
@@ -1330,13 +1330,13 @@ function gi(e) {
1330
1330
  t.setAttribute("shake", !1);
1331
1331
  }, 1e3);
1332
1332
  }
1333
- function pi({ type: e, name: t, params: a }) {
1333
+ function xi({ type: e, name: t, params: a }) {
1334
1334
  let [r, i] = b.useState(null);
1335
1335
  return b.useEffect(() => {
1336
1336
  ve.config(e, t, a, i);
1337
1337
  }, [a.id]), /* @__PURE__ */ n.jsx(n.Fragment, { children: r });
1338
1338
  }
1339
- function xi(e, t) {
1339
+ function pi(e, t) {
1340
1340
  ve.config(e, t);
1341
1341
  }
1342
1342
  function vi(e) {
@@ -1374,25 +1374,25 @@ function wi() {
1374
1374
  }), /* @__PURE__ */ n.jsx(n.Fragment, { children: e.map((a) => a) });
1375
1375
  }
1376
1376
  const _e = {
1377
- Path: $a,
1378
- setPage: wa,
1377
+ Path: La,
1378
+ setPage: Sa,
1379
1379
  getPage: an,
1380
- usePage: ya,
1381
- isPage: Sa,
1382
- setModule: Ba,
1380
+ usePage: wa,
1381
+ isPage: Ea,
1382
+ setModule: Ta,
1383
1383
  getModule: rn,
1384
- useModule: Ea,
1385
- isModule: Ta,
1386
- setTabs: Ma,
1384
+ useModule: Ba,
1385
+ isModule: Ra,
1386
+ setTabs: Ia,
1387
1387
  getTabs: Ze,
1388
- useTabs: Ra,
1389
- isTabs: Ia,
1390
- useId: Na,
1391
- setId: Pa,
1392
- subId: Da,
1388
+ useTabs: Ma,
1389
+ isTabs: Na,
1390
+ useId: Da,
1391
+ setId: Fa,
1392
+ subId: Pa,
1393
1393
  getId: on,
1394
- isId: Fa
1395
- }, Ke = { Send: jr, Error: yr, Remark: Sr, Success: wr, Copy: Er }, hn = ({ onClick: e, active: t }) => (t = !!t, /* @__PURE__ */ n.jsx(
1394
+ isId: $a
1395
+ }, Ke = { Send: jr, Error: yr, Remark: Sr, Success: wr, Copy: Er }, gn = ({ onClick: e, active: t }) => (t = !!t, /* @__PURE__ */ n.jsx(
1396
1396
  "div",
1397
1397
  {
1398
1398
  role: "switch",
@@ -1400,7 +1400,7 @@ const _e = {
1400
1400
  "aria-checked": `${t ? "true" : "false"}`
1401
1401
  }
1402
1402
  ));
1403
- function gn({ onClick: e, onSend: t, name: a, onRef: r }) {
1403
+ function xn({ onClick: e, onSend: t, name: a, onRef: r }) {
1404
1404
  let [i, o] = b.useState(!1);
1405
1405
  const l = () => {
1406
1406
  if (e)
@@ -1440,7 +1440,7 @@ function pn({
1440
1440
  }, 3e3)) : a(!1);
1441
1441
  }, f = (C) => {
1442
1442
  _.current.value = C.target.textContent, u();
1443
- }, x = (C) => {
1443
+ }, p = (C) => {
1444
1444
  C.keyCode === 16 && (_.current.shift = !0), C.keyCode === 13 && !_.current.shift && (C.preventDefault(), _.current.value.length !== 0 && (C.target.textContent = "", r && r(_.current.value), t && t(_.current.value), _.current.value = "", a(!1)));
1445
1445
  }, m = (C) => {
1446
1446
  C.keyCode === 16 && (_.current.shift = !1);
@@ -1451,24 +1451,24 @@ function pn({
1451
1451
  });
1452
1452
  }, v = () => {
1453
1453
  a(!1);
1454
- }, p = {
1454
+ }, x = {
1455
1455
  spellCheck: "true"
1456
1456
  };
1457
- return d && (p.placeholder = d), l && c && (p.contentEditable = "plaintext-only"), /* @__PURE__ */ n.jsx("dl", { "data-form": "message", children: /* @__PURE__ */ n.jsx(
1457
+ return d && (x.placeholder = d), l && c && (x.contentEditable = "plaintext-only"), /* @__PURE__ */ n.jsx("dl", { "data-form": "message", children: /* @__PURE__ */ n.jsx(
1458
1458
  "dd",
1459
1459
  {
1460
1460
  onPaste: g,
1461
1461
  onInput: f,
1462
1462
  onKeyUp: m,
1463
- onKeyDown: x,
1463
+ onKeyDown: p,
1464
1464
  onBlur: v,
1465
- ...p,
1465
+ ...x,
1466
1466
  suppressContentEditableWarning: !0,
1467
1467
  children: e
1468
1468
  }
1469
1469
  ) });
1470
1470
  }
1471
- function xn(e) {
1471
+ function vn(e) {
1472
1472
  let t = () => e.title ? /* @__PURE__ */ n.jsx("dt", { children: e.title }) : "", a = e.edit !== void 0 ? e.edit : !0, r = e.active !== void 0 ? e.active : !0, i = e.placeholder !== void 0 ? e.placeholder : "", o = (d) => {
1473
1473
  e.onValue({ value: d.target.textContent, name: e.name });
1474
1474
  }, l = (d) => {
@@ -1511,7 +1511,7 @@ me.Focus = (e) => {
1511
1511
  me.Blur = (e) => {
1512
1512
  e.target.scrollLeft = 0, e.target.querySelector("br") !== null && e.target.querySelector("br").remove();
1513
1513
  };
1514
- function vn({ value: e, onValue: t, placeholder: a = "", name: r }) {
1514
+ function kn({ value: e, onValue: t, placeholder: a = "", name: r }) {
1515
1515
  let i = (m, g) => Number(Math.round(m + Math.random() * (g - m))), o = b.useRef(null), l = b.useRef(null), c = i(1e4, 99999), d = (m) => {
1516
1516
  m.key !== "Backspace" && (m.key === "Enter" && m.preventDefault(), m.target.textContent.length === 5 && m.preventDefault(), /\d/.test(m.key) || m.preventDefault());
1517
1517
  }, _ = (m) => {
@@ -1532,8 +1532,8 @@ function vn({ value: e, onValue: t, placeholder: a = "", name: r }) {
1532
1532
  }, [c]);
1533
1533
  const f = {};
1534
1534
  f.field = "captcha";
1535
- const x = {};
1536
- return a && (x.placeholder = a), /* @__PURE__ */ n.jsxs("dl", { ...f, children: [
1535
+ const p = {};
1536
+ return a && (p.placeholder = a), /* @__PURE__ */ n.jsxs("dl", { ...f, children: [
1537
1537
  /* @__PURE__ */ n.jsx(
1538
1538
  "dd",
1539
1539
  {
@@ -1544,13 +1544,13 @@ function vn({ value: e, onValue: t, placeholder: a = "", name: r }) {
1544
1544
  onKeyDown: d,
1545
1545
  contentEditable: "plaintext-only",
1546
1546
  suppressContentEditableWarning: !0,
1547
- ...x
1547
+ ...p
1548
1548
  }
1549
1549
  ),
1550
1550
  /* @__PURE__ */ n.jsx("canvas", { ref: o, width: "100", height: "35" })
1551
1551
  ] });
1552
1552
  }
1553
- function kn(e) {
1553
+ function bn(e) {
1554
1554
  let t = () => e.title ? /* @__PURE__ */ n.jsx("dt", { children: e.title }) : "", a = () => e.error ? /* @__PURE__ */ n.jsx("em", { children: e.error }) : "", r = {
1555
1555
  n1: "",
1556
1556
  n2: "",
@@ -1683,7 +1683,7 @@ function kn(e) {
1683
1683
  }
1684
1684
  );
1685
1685
  }
1686
- function bn(e) {
1686
+ function Cn(e) {
1687
1687
  let t = () => e.title ? /* @__PURE__ */ n.jsx("dt", { children: e.title }) : "", a = () => e.error ? /* @__PURE__ */ n.jsx("em", { children: e.error }) : "";
1688
1688
  e.edit !== void 0 && e.edit, e.active !== void 0 && e.active;
1689
1689
  let [r, i] = b.useState(e.value), o = (l) => {
@@ -1714,18 +1714,18 @@ function bn(e) {
1714
1714
  ) });
1715
1715
  }
1716
1716
  function vt({ label: e, value: t, placeholder: a, onValue: r, name: i }) {
1717
- const o = "__.__.____", l = new Set("_"), c = ((g) => Array.from(o, (v, p) => l.has(v) ? g = p + 1 : g))(0), d = [...o].findIndex((g) => l.has(g)), _ = new RegExp("\\d", "g"), u = (g) => (g = g.match(_) || [], Array.from(
1717
+ const o = "__.__.____", l = new Set("_"), c = ((g) => Array.from(o, (v, x) => l.has(v) ? g = x + 1 : g))(0), d = [...o].findIndex((g) => l.has(g)), _ = new RegExp("\\d", "g"), u = (g) => (g = g.match(_) || [], Array.from(
1718
1718
  o,
1719
1719
  (v) => (g[0] === v || l.has(v)) && g.shift() || v
1720
1720
  )), f = (g) => {
1721
- const [v, p] = [g.target.selectionStart, g.target.selectionEnd].map(
1721
+ const [v, x] = [g.target.selectionStart, g.target.selectionEnd].map(
1722
1722
  (C) => (C = u(g.target.value.slice(0, C)).findIndex(
1723
1723
  (y) => l.has(y)
1724
- ), C < 0 ? c[c.length - 1] : x ? c[C - 1] || d : C)
1724
+ ), C < 0 ? c[c.length - 1] : p ? c[C - 1] || d : C)
1725
1725
  );
1726
- g.target.value = u(g.target.value).join(""), g.target.setSelectionRange(v, p), x = !1, r == null || r({ name: i, value: g.target.value });
1726
+ g.target.value = u(g.target.value).join(""), g.target.setSelectionRange(v, x), p = !1, r == null || r({ name: i, value: g.target.value });
1727
1727
  };
1728
- let x = !1;
1728
+ let p = !1;
1729
1729
  const m = {};
1730
1730
  return m.field = "input", /* @__PURE__ */ n.jsxs("dl", { ...m, children: [
1731
1731
  /* @__PURE__ */ n.jsx("dt", {}),
@@ -1736,7 +1736,7 @@ function vt({ label: e, value: t, placeholder: a, onValue: r, name: i }) {
1736
1736
  placeholder: a,
1737
1737
  onChange: f,
1738
1738
  inputMode: "numeric",
1739
- onKeyDown: (g) => x = g.key === "Backspace",
1739
+ onKeyDown: (g) => p = g.key === "Backspace",
1740
1740
  onFocus: f,
1741
1741
  onBlur: (g) => g.target.value === o && (g.target.value = "")
1742
1742
  }
@@ -1756,13 +1756,13 @@ function Bi({ children: e, className: t }) {
1756
1756
  function Ti({ children: e }) {
1757
1757
  return /* @__PURE__ */ n.jsx("div", { className: ne.c, children: e });
1758
1758
  }
1759
- const Cn = {
1759
+ const jn = {
1760
1760
  List: Si,
1761
1761
  Scroll: Ei,
1762
1762
  Main: fi,
1763
1763
  Add: mi,
1764
- Icon: pi,
1765
- Open: xi,
1764
+ Icon: xi,
1765
+ Open: pi,
1766
1766
  Shake: gi,
1767
1767
  Form: Bi,
1768
1768
  Center: Ti,
@@ -1781,16 +1781,16 @@ function kt({
1781
1781
  active: _ = !0,
1782
1782
  after: u = "",
1783
1783
  view: f,
1784
- modal: x,
1784
+ modal: p,
1785
1785
  module: m,
1786
1786
  options: g,
1787
1787
  className: v
1788
1788
  }) {
1789
- let [p, C] = b.useState(e), y = (P) => {
1790
- if (!(c && _) || !x)
1789
+ let [x, C] = b.useState(e), y = (P) => {
1790
+ if (!(c && _) || !p)
1791
1791
  return;
1792
- let O = x.split(".");
1793
- Cn.Open(O[1], {
1792
+ let O = p.split(".");
1793
+ jn.Open(O[1], {
1794
1794
  callback: (K) => {
1795
1795
  t && t({ value: K, name: a }), C(K);
1796
1796
  },
@@ -1812,7 +1812,7 @@ function kt({
1812
1812
  onClick: y,
1813
1813
  edit: (c && _) + "",
1814
1814
  "data-after": u,
1815
- children: p
1815
+ children: x
1816
1816
  }
1817
1817
  ),
1818
1818
  o && /* @__PURE__ */ n.jsx("em", { children: o })
@@ -1929,7 +1929,7 @@ const Ii = (e) => {
1929
1929
  u3: ["тысяча", "тысячи", "тысяч"],
1930
1930
  u2: ["миллион", "миллиона", "миллионов"],
1931
1931
  u1: ["миллиард", "миллиарда", "миллиардов"]
1932
- }, i, o, l, c, p, d, _, v, u, f, x, m;
1932
+ }, i, o, l, c, x, d, _, v, u, f, p, m;
1933
1933
  u = parseFloat(e).toFixed(2).split("."), d = u[0], c = u[1];
1934
1934
  var g = 12 - d.length;
1935
1935
  if (g < 0)
@@ -1937,21 +1937,21 @@ const Ii = (e) => {
1937
1937
  for (var v = []; g--; )
1938
1938
  v.push("0");
1939
1939
  d = v.join("") + d;
1940
- var p = [];
1940
+ var x = [];
1941
1941
  if (d > 0) {
1942
1942
  f = t(d, 3);
1943
1943
  for (var C = -1; C < f.length; C++)
1944
- if (_ = f[C], _ > 0 && (x = t(_, 1), i = parseInt(x[0]), o = parseInt(x[1]), l = parseInt(x[2]), p.push(r.a100[i - 1]), m = C + 1 == 3 ? "a2" : "a1", o > 1 ? p.push(
1944
+ if (_ = f[C], _ > 0 && (p = t(_, 1), i = parseInt(p[0]), o = parseInt(p[1]), l = parseInt(p[2]), x.push(r.a100[i - 1]), m = C + 1 == 3 ? "a2" : "a1", o > 1 ? x.push(
1945
1945
  r.a20[o - 2] + (l > 0 ? " " + r[m][l - 1] : "")
1946
- ) : p.push(
1946
+ ) : x.push(
1947
1947
  o > 0 ? r.a10[l] : r[m][l - 1]
1948
1948
  ), f.length > C + 1)) {
1949
1949
  var y = r["u" + (C + 1)];
1950
- p.push(a(_, y));
1950
+ x.push(a(_, y));
1951
1951
  }
1952
1952
  } else
1953
- p.push(r.null);
1954
- return p.push(a(d, r.ur)), p.push(c + " " + a(c, r.uc)), p.join(" ").replace(RegExp(" {2,}", "g"), " ").trimLeft();
1953
+ x.push(r.null);
1954
+ return x.push(a(d, r.ur)), x.push(c + " " + a(c, r.uc)), x.join(" ").replace(RegExp(" {2,}", "g"), " ").trimLeft();
1955
1955
  };
1956
1956
  function Ni(e) {
1957
1957
  let t = -1, a = [" kB", " MB", " GB", " TB", "PB", "EB", "ZB", "YB"];
@@ -2088,7 +2088,7 @@ function Pi(e, t, a, r) {
2088
2088
  if (_ === this.gcaseNom)
2089
2089
  return l;
2090
2090
  if (l.match(/[-]/)) {
2091
- for (var u = l.split("-"), f = 0, x = u.length; f < x; f++)
2091
+ for (var u = l.split("-"), f = 0, p = u.length; f < p; f++)
2092
2092
  u[f] = this.word(u[f], c, d, _);
2093
2093
  return u.join("-");
2094
2094
  }
@@ -2102,9 +2102,9 @@ function Pi(e, t, a, r) {
2102
2102
  // выбираем из списка правил первое подходящее и применяем
2103
2103
  pick: function(l, c, d, _, u) {
2104
2104
  let f = l.toLowerCase();
2105
- for (var x = 0, m = _.length; x < m; x++)
2106
- if (this.ruleMatch(f, c, _[x], u))
2107
- return this.applyMod(l, d, _[x]);
2105
+ for (var p = 0, m = _.length; p < m; p++)
2106
+ if (this.ruleMatch(f, c, _[p], u))
2107
+ return this.applyMod(l, d, _[p]);
2108
2108
  return !1;
2109
2109
  },
2110
2110
  // проверяем, подходит ли правило к слову
@@ -2112,10 +2112,10 @@ function Pi(e, t, a, r) {
2112
2112
  if (d.sex === this.sexM && c === this.sexF || d.sex === this.sexF && c !== this.sexF)
2113
2113
  return !1;
2114
2114
  for (var u = 0, f = d.test.length; u < f; u++) {
2115
- var x = _ ? l : l.substr(
2115
+ var p = _ ? l : l.substr(
2116
2116
  Math.max(l.length - d.test[u].length, 0)
2117
2117
  );
2118
- if (x === d.test[u])
2118
+ if (p === d.test[u])
2119
2119
  return !0;
2120
2120
  }
2121
2121
  return !1;
@@ -2144,15 +2144,15 @@ function Pi(e, t, a, r) {
2144
2144
  break;
2145
2145
  }
2146
2146
  for (var u = 0, f = _.length; u < f; u++) {
2147
- var x = _.substr(u, 1);
2148
- switch (x) {
2147
+ var p = _.substr(u, 1);
2148
+ switch (p) {
2149
2149
  case ".":
2150
2150
  break;
2151
2151
  case "-":
2152
2152
  l = l.substr(0, l.length - 1);
2153
2153
  break;
2154
2154
  default:
2155
- l += x;
2155
+ l += p;
2156
2156
  }
2157
2157
  }
2158
2158
  return l;
@@ -2259,9 +2259,9 @@ const ye = {
2259
2259
  ObjectByArray: Ki
2260
2260
  };
2261
2261
  function bt(e) {
2262
- let t = e.value, a = (f) => e.type === "multi" ? f.replace(/[^+\d.+-]/g, "") : f.replace(/[^+\d.]/g, ""), r = (f, x) => {
2262
+ let t = e.value, a = (f) => e.type === "multi" ? f.replace(/[^+\d.+-]/g, "") : f.replace(/[^+\d.]/g, ""), r = (f, p) => {
2263
2263
  let m = document.createRange(), g = window.getSelection();
2264
- m.setStart(x.childNodes[0], f), m.collapse(!0), g.removeAllRanges(), g.addRange(m), x.focus();
2264
+ m.setStart(p.childNodes[0], f), m.collapse(!0), g.removeAllRanges(), g.addRange(m), p.focus();
2265
2265
  }, i = (f) => {
2266
2266
  e.onValue({
2267
2267
  value: a(f.target.textContent),
@@ -2277,9 +2277,9 @@ function bt(e) {
2277
2277
  }, c = (f) => {
2278
2278
  f.key === "Enter" && f.preventDefault();
2279
2279
  }, d = (f) => {
2280
- f.preventDefault(), navigator.clipboard.readText().then((x) => {
2281
- x = x.replace(/^\s*/, "").replace(/\s*$/, ""), window.document.execCommand("insertText", !1, x);
2282
- }).catch((x) => {
2280
+ f.preventDefault(), navigator.clipboard.readText().then((p) => {
2281
+ p = p.replace(/^\s*/, "").replace(/\s*$/, ""), window.document.execCommand("insertText", !1, p);
2282
+ }).catch((p) => {
2283
2283
  });
2284
2284
  }, _ = () => e.title ? /* @__PURE__ */ n.jsx("dt", { children: e.title }) : "", u = () => e.error ? /* @__PURE__ */ n.jsx("em", { children: e.error }) : "";
2285
2285
  return /* @__PURE__ */ n.jsxs(
@@ -2311,7 +2311,7 @@ const Ui = "_o_1kqkq_1", Hi = "_c_1kqkq_11", Vt = {
2311
2311
  o: Ui,
2312
2312
  c: Hi
2313
2313
  };
2314
- function jn({
2314
+ function yn({
2315
2315
  value: e,
2316
2316
  onValue: t,
2317
2317
  name: a,
@@ -2327,19 +2327,19 @@ function jn({
2327
2327
  b.useEffect(() => {
2328
2328
  f(e);
2329
2329
  }, [e]);
2330
- let x = (v) => {
2330
+ let p = (v) => {
2331
2331
  f(v), t && t({ value: v, name: a });
2332
2332
  }, m = (v) => {
2333
2333
  if (!o || !l)
2334
2334
  return;
2335
- const p = v.target.getBoundingClientRect(), C = p.left, y = p.top;
2335
+ const x = v.target.getBoundingClientRect(), C = x.left, y = x.top;
2336
2336
  He.setListener(
2337
2337
  "form",
2338
2338
  /* @__PURE__ */ n.jsx(
2339
2339
  Yi,
2340
2340
  {
2341
2341
  position: { x: C, y },
2342
- onValue: x,
2342
+ onValue: p,
2343
2343
  date: u
2344
2344
  },
2345
2345
  (/* @__PURE__ */ new Date()).getTime()
@@ -2384,9 +2384,9 @@ const Yi = (e) => {
2384
2384
  d(c + 1);
2385
2385
  }, f = () => {
2386
2386
  d(c - 1);
2387
- }, x = (C) => {
2387
+ }, p = (C) => {
2388
2388
  e.onValue(c + "-" + ye.Number(2, C)), _();
2389
- }, m = (C) => o.y === l.y && o.m === C ? "_FFEB3B" : "", g = Array(12).fill("").map((C, y) => y + 1), v = window.innerHeight - e.position.y + 33 < 320 ? e.position.y - 312 : e.position.y + 33, p = window.innerWidth - e.position.x < 265 ? e.position.x - 235 : e.position.x;
2389
+ }, m = (C) => o.y === l.y && o.m === C ? "_FFEB3B" : "", g = Array(12).fill("").map((C, y) => y + 1), v = window.innerHeight - e.position.y + 33 < 320 ? e.position.y - 312 : e.position.y + 33, x = window.innerWidth - e.position.x < 265 ? e.position.x - 235 : e.position.x;
2390
2390
  return /* @__PURE__ */ n.jsx(n.Fragment, { children: t ? /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
2391
2391
  /* @__PURE__ */ n.jsx(
2392
2392
  "div",
@@ -2400,7 +2400,7 @@ const Yi = (e) => {
2400
2400
  "div",
2401
2401
  {
2402
2402
  className: Vt.c,
2403
- style: { top: v + "px", left: p + "px" },
2403
+ style: { top: v + "px", left: x + "px" },
2404
2404
  children: [
2405
2405
  /* @__PURE__ */ n.jsxs("s", { children: [
2406
2406
  /* @__PURE__ */ n.jsx("i", { "data-icon": "F021", onClick: () => f() }),
@@ -2414,7 +2414,7 @@ const Yi = (e) => {
2414
2414
  "span",
2415
2415
  {
2416
2416
  onClick: () => {
2417
- x(C);
2417
+ p(C);
2418
2418
  },
2419
2419
  color: m(C),
2420
2420
  children: /* @__PURE__ */ n.jsx("b", { children: ye.Month(C).abc })
@@ -2428,21 +2428,21 @@ const Yi = (e) => {
2428
2428
  )
2429
2429
  ] }) : "" });
2430
2430
  };
2431
- function yn(e) {
2431
+ function wn(e) {
2432
2432
  let t = () => e.title ? /* @__PURE__ */ n.jsx("dt", { children: e.title }) : "", a = () => e.error ? /* @__PURE__ */ n.jsx("em", { children: e.error }) : "", [r, i] = b.useState(!1), o = e.edit !== void 0 ? e.edit : !0, l = e.active !== void 0 ? e.active : !0, d = !!(e.hide && (e.value === "" || e.value === void 0)) && !(o && l);
2433
2433
  r = o ? !0 : r;
2434
- let _ = e.placeholder !== void 0 ? e.placeholder : "Заметка пуста", u = (p) => {
2435
- e.onValue && e.onValue({ value: p.target.innerText, name: e.name });
2436
- }, f = (p) => {
2437
- p.preventDefault(), navigator.clipboard.readText().then((C) => {
2434
+ let _ = e.placeholder !== void 0 ? e.placeholder : "Заметка пуста", u = (x) => {
2435
+ e.onValue && e.onValue({ value: x.target.innerText, name: e.name });
2436
+ }, f = (x) => {
2437
+ x.preventDefault(), navigator.clipboard.readText().then((C) => {
2438
2438
  window.document.execCommand("insertText", !1, C);
2439
2439
  }).catch((C) => {
2440
2440
  });
2441
- }, x = (p) => {
2441
+ }, p = (x) => {
2442
2442
  o || i(!r);
2443
2443
  };
2444
- const m = (p) => {
2445
- e.onSave && e.onSave({ value: p.target.innerText, name: e.name });
2444
+ const m = (x) => {
2445
+ e.onSave && e.onSave({ value: x.target.innerText, name: e.name });
2446
2446
  }, g = {};
2447
2447
  g.field = "notes", e.className && (g.className = e.className);
2448
2448
  const v = {};
@@ -2456,7 +2456,7 @@ function yn(e) {
2456
2456
  onBlur: m,
2457
2457
  contentEditable: o && l ? "plaintext-only" : "false",
2458
2458
  ...v,
2459
- onDoubleClick: x,
2459
+ onDoubleClick: p,
2460
2460
  suppressContentEditableWarning: !0,
2461
2461
  children: e.value
2462
2462
  }
@@ -2477,15 +2477,15 @@ function Ct({
2477
2477
  placeholder: _,
2478
2478
  className: u,
2479
2479
  name: f,
2480
- after: x,
2480
+ after: p,
2481
2481
  view: m
2482
2482
  }) {
2483
2483
  r = r !== void 0 ? r : !0, t = t !== void 0 ? t : !0, c = !!(c && (d === "" || d === void 0)) && !(r && t), _ = _ !== void 0 ? _ : "", a = a !== void 0 ? a : 99;
2484
2484
  let v = (C) => {
2485
2485
  e == null || e({ name: f, value: C.currentTarget.value });
2486
2486
  };
2487
- const p = {};
2488
- return p.field = "input", u && (p.className = u), c ? /* @__PURE__ */ n.jsx(n.Fragment, {}) : /* @__PURE__ */ n.jsxs("dl", { ...p, children: [
2487
+ const x = {};
2488
+ return x.field = "input", u && (x.className = u), c ? /* @__PURE__ */ n.jsx(n.Fragment, {}) : /* @__PURE__ */ n.jsxs("dl", { ...x, children: [
2489
2489
  i && /* @__PURE__ */ n.jsx("dt", { children: i }),
2490
2490
  /* @__PURE__ */ n.jsx("dd", { children: /* @__PURE__ */ n.jsx(
2491
2491
  "input",
@@ -2500,7 +2500,7 @@ function Ct({
2500
2500
  o && /* @__PURE__ */ n.jsx("em", { children: o })
2501
2501
  ] });
2502
2502
  }
2503
- function wn({
2503
+ function Sn({
2504
2504
  value: e,
2505
2505
  onValue: t,
2506
2506
  name: a,
@@ -2513,16 +2513,16 @@ function wn({
2513
2513
  reload: _ = !1,
2514
2514
  after: u = ""
2515
2515
  }) {
2516
- let f = (p) => {
2516
+ let f = (x) => {
2517
2517
  t && t({
2518
- value: p.target.textContent,
2518
+ value: x.target.textContent,
2519
2519
  name: a,
2520
2520
  reload: _
2521
2521
  });
2522
- }, x = (p) => {
2523
- p.key === "Enter" && p.preventDefault();
2524
- }, m = (p) => {
2525
- p.preventDefault(), navigator.clipboard.readText().then((C) => {
2522
+ }, p = (x) => {
2523
+ x.key === "Enter" && x.preventDefault();
2524
+ }, m = (x) => {
2525
+ x.preventDefault(), navigator.clipboard.readText().then((C) => {
2526
2526
  window.document.execCommand(
2527
2527
  "insertText",
2528
2528
  !1,
@@ -2541,7 +2541,7 @@ function wn({
2541
2541
  {
2542
2542
  onPaste: m,
2543
2543
  onInput: f,
2544
- onKeyDown: x,
2544
+ onKeyDown: p,
2545
2545
  onBlur: me.Blur,
2546
2546
  contentEditable: c && d ? "plaintext-only" : "false",
2547
2547
  ...v,
@@ -3947,11 +3947,11 @@ function jt({
3947
3947
  active: _ = !0,
3948
3948
  after: u = "",
3949
3949
  show: f = !0,
3950
- view: x,
3950
+ view: p,
3951
3951
  className: m = ""
3952
3952
  }) {
3953
3953
  d = d !== void 0 ? d : !0, _ = _ !== void 0 ? _ : !0, c = !!(c && (e === "" || e === void 0)) && !(d && _), b.useRef(null);
3954
- let v = "+_(___) ___-__-__", p = !0, C = 0, y = ($, E) => {
3954
+ let v = "+_(___) ___-__-__", x = !0, C = 0, y = ($, E) => {
3955
3955
  let Z = document.createRange(), Y = window.getSelection();
3956
3956
  Z.setStart(E.childNodes[0], $), Z.collapse(!0), Y.removeAllRanges(), Y.addRange(Z), E.focus();
3957
3957
  }, B = ($) => {
@@ -3961,13 +3961,13 @@ function jt({
3961
3961
  });
3962
3962
  }, T = ($) => {
3963
3963
  let E = 0, Z = "", Y = $.replace(/\D/g, "");
3964
- Y === "" && (p = !0);
3964
+ Y === "" && (x = !0);
3965
3965
  let $e = Y.split(""), te = "";
3966
3966
  $e.forEach((Le) => {
3967
- p && (te += Le, ot[te] !== void 0 && p ? (p = !1, v = ot[te].mask.replace(new RegExp("[0-9]", "g"), "_"), Z = ot[te].code) : (p && (C = ("" + te).length, v = `+${te}_(___) ___-__-__`.replace(
3967
+ x && (te += Le, ot[te] !== void 0 && x ? (x = !1, v = ot[te].mask.replace(new RegExp("[0-9]", "g"), "_"), Z = ot[te].code) : (x && (C = ("" + te).length, v = `+${te}_(___) ___-__-__`.replace(
3968
3968
  new RegExp("[0-9]", "g"),
3969
3969
  "_"
3970
- ), Z = ""), C > ("" + te).length && (p = !0, v = `+${te}_(___) ___-__-__`.replace(
3970
+ ), Z = ""), C > ("" + te).length && (x = !0, v = `+${te}_(___) ___-__-__`.replace(
3971
3971
  new RegExp("[0-9]", "g"),
3972
3972
  "_"
3973
3973
  ), Z = "")));
@@ -4016,7 +4016,7 @@ function jt({
4016
4016
  l && /* @__PURE__ */ n.jsx("em", { children: l })
4017
4017
  ] });
4018
4018
  }
4019
- const Sn = (e) => {
4019
+ const En = (e) => {
4020
4020
  let t = () => e.title ? /* @__PURE__ */ n.jsx("dt", { children: e.title }) : "", a = e.edit !== void 0 ? e.edit : !0, r = e.active !== void 0 ? e.active : !0, i = e.placeholder !== void 0 ? e.placeholder : "", o = 0, l = () => {
4021
4021
  clearTimeout(o), o = setTimeout(() => {
4022
4022
  }, 1e3);
@@ -4065,11 +4065,11 @@ function yt({
4065
4065
  after: u,
4066
4066
  view: f
4067
4067
  }) {
4068
- const x = b.useRef();
4068
+ const p = b.useRef();
4069
4069
  i = !!(i && (o === "" || c[o].n === void 0)) && !(a && r);
4070
4070
  let g = o !== void 0 && o !== "" ? c[o].n : o, v = (B) => {
4071
- x.current.textContent = c[B].n, l && l({ value: B, name: _ });
4072
- }, p = (B) => {
4071
+ p.current.textContent = c[B].n, l && l({ value: B, name: _ });
4072
+ }, x = (B) => {
4073
4073
  if (!(a && r))
4074
4074
  return;
4075
4075
  const T = B.target.getBoundingClientRect();
@@ -4086,10 +4086,10 @@ function yt({
4086
4086
  (/* @__PURE__ */ new Date()).getTime()
4087
4087
  )
4088
4088
  );
4089
- }, C = { field: "select" }, y = { onClick: p };
4089
+ }, C = { field: "select" }, y = { onClick: x };
4090
4090
  return d && (y.placeholder = d), u && (y.after = u), a && r && (y.edit = ""), i ? "" : /* @__PURE__ */ n.jsxs("dl", { ...C, children: [
4091
4091
  e && /* @__PURE__ */ n.jsx("dt", { children: e }),
4092
- /* @__PURE__ */ n.jsx("dd", { ...y, ref: x, children: g }),
4092
+ /* @__PURE__ */ n.jsx("dd", { ...y, ref: p, children: g }),
4093
4093
  t && /* @__PURE__ */ n.jsx("em", { children: t })
4094
4094
  ] });
4095
4095
  }
@@ -4146,11 +4146,11 @@ function wt({
4146
4146
  after: _ = "",
4147
4147
  show: u = !0,
4148
4148
  view: f,
4149
- onBlur: x,
4149
+ onBlur: p,
4150
4150
  onSave: m,
4151
4151
  className: g = ""
4152
4152
  }) {
4153
- let v = !!(l && (e === "" || e === void 0)), p = (T) => {
4153
+ let v = !!(l && (e === "" || e === void 0)), x = (T) => {
4154
4154
  t == null || t({ value: T.target.value, name: a });
4155
4155
  }, C = (T) => {
4156
4156
  T.preventDefault(), navigator.clipboard.readText().then((P) => {
@@ -4181,7 +4181,7 @@ function wt({
4181
4181
  name: a,
4182
4182
  autoComplete: "off",
4183
4183
  type: "text",
4184
- onChange: p,
4184
+ onChange: x,
4185
4185
  onPaste: C,
4186
4186
  onContextMenu: y,
4187
4187
  placeholder: r
@@ -4213,8 +4213,8 @@ function St(e) {
4213
4213
  )
4214
4214
  );
4215
4215
  };
4216
- const x = {};
4217
- return c && (x.placeholder = c), l ? /* @__PURE__ */ n.jsx(n.Fragment, {}) : /* @__PURE__ */ n.jsxs(
4216
+ const p = {};
4217
+ return c && (p.placeholder = c), l ? /* @__PURE__ */ n.jsx(n.Fragment, {}) : /* @__PURE__ */ n.jsxs(
4218
4218
  "dl",
4219
4219
  {
4220
4220
  "data-form": "select",
@@ -4225,7 +4225,7 @@ function St(e) {
4225
4225
  {
4226
4226
  onClick: f,
4227
4227
  "data-edit": (r && i) + "",
4228
- ...x,
4228
+ ...p,
4229
4229
  children: _
4230
4230
  }
4231
4231
  ),
@@ -4258,7 +4258,7 @@ const qi = ({ onValue: e, parent: t, view: a, options: r }) => {
4258
4258
  left: u + "px",
4259
4259
  width: t.width
4260
4260
  },
4261
- children: /* @__PURE__ */ n.jsx("ul", { children: Object.keys(r).map((f, x) => /* @__PURE__ */ n.jsx(
4261
+ children: /* @__PURE__ */ n.jsx("ul", { children: Object.keys(r).map((f, p) => /* @__PURE__ */ n.jsx(
4262
4262
  "li",
4263
4263
  {
4264
4264
  onClick: () => {
@@ -4266,7 +4266,7 @@ const qi = ({ onValue: e, parent: t, view: a, options: r }) => {
4266
4266
  },
4267
4267
  children: r[f]
4268
4268
  },
4269
- x
4269
+ p
4270
4270
  )) })
4271
4271
  }
4272
4272
  )
@@ -4285,12 +4285,12 @@ function ft({
4285
4285
  show: _ = !0,
4286
4286
  active: u = !0,
4287
4287
  after: f = "",
4288
- view: x,
4288
+ view: p,
4289
4289
  module: m,
4290
4290
  item: g,
4291
4291
  className: v = ""
4292
4292
  }) {
4293
- let p = {};
4293
+ let x = {};
4294
4294
  switch (e) {
4295
4295
  case "String":
4296
4296
  return /* @__PURE__ */ n.jsx(
@@ -4299,7 +4299,7 @@ function ft({
4299
4299
  title: o,
4300
4300
  show: _,
4301
4301
  hide: c,
4302
- view: x,
4302
+ view: p,
4303
4303
  edit: d,
4304
4304
  active: u,
4305
4305
  value: t,
@@ -4310,13 +4310,13 @@ function ft({
4310
4310
  }
4311
4311
  );
4312
4312
  case "Select":
4313
- return g && (p = le.getSelect(parseInt(g)) ? le.getSelect(parseInt(g)) : { 0: { s: "1", n: "не известно" } }), /* @__PURE__ */ n.jsx(
4313
+ return g && (x = le.getSelect(parseInt(g)) ? le.getSelect(parseInt(g)) : { 0: { s: "1", n: "не известно" } }), /* @__PURE__ */ n.jsx(
4314
4314
  yt,
4315
4315
  {
4316
4316
  title: o,
4317
4317
  show: _,
4318
4318
  hide: c,
4319
- view: x,
4319
+ view: p,
4320
4320
  edit: d,
4321
4321
  active: u,
4322
4322
  value: t,
@@ -4324,7 +4324,7 @@ function ft({
4324
4324
  name: r,
4325
4325
  placeholder: i,
4326
4326
  className: v,
4327
- options: p
4327
+ options: x
4328
4328
  }
4329
4329
  );
4330
4330
  case "Users":
@@ -4334,7 +4334,7 @@ function ft({
4334
4334
  title: o,
4335
4335
  show: _,
4336
4336
  hide: c,
4337
- view: x,
4337
+ view: p,
4338
4338
  edit: d,
4339
4339
  active: u,
4340
4340
  value: t,
@@ -4342,7 +4342,7 @@ function ft({
4342
4342
  name: r,
4343
4343
  placeholder: i,
4344
4344
  className: v,
4345
- options: p
4345
+ options: x
4346
4346
  }
4347
4347
  );
4348
4348
  case "Date":
@@ -4352,7 +4352,7 @@ function ft({
4352
4352
  title: o,
4353
4353
  show: _,
4354
4354
  hide: c,
4355
- view: x,
4355
+ view: p,
4356
4356
  edit: d,
4357
4357
  active: u,
4358
4358
  value: t,
@@ -4369,7 +4369,7 @@ function ft({
4369
4369
  title: o,
4370
4370
  show: _,
4371
4371
  hide: c,
4372
- view: x,
4372
+ view: p,
4373
4373
  edit: d,
4374
4374
  active: u,
4375
4375
  value: t,
@@ -4386,7 +4386,7 @@ function ft({
4386
4386
  title: o,
4387
4387
  show: _,
4388
4388
  hide: c,
4389
- view: x,
4389
+ view: p,
4390
4390
  edit: d,
4391
4391
  active: u,
4392
4392
  value: t,
@@ -4403,7 +4403,7 @@ function ft({
4403
4403
  title: o,
4404
4404
  show: _,
4405
4405
  hide: c,
4406
- view: x,
4406
+ view: p,
4407
4407
  edit: d,
4408
4408
  active: u,
4409
4409
  value: t,
@@ -4420,7 +4420,7 @@ function ft({
4420
4420
  title: o,
4421
4421
  show: _,
4422
4422
  hide: c,
4423
- view: x,
4423
+ view: p,
4424
4424
  edit: d,
4425
4425
  active: u,
4426
4426
  value: t,
@@ -4428,13 +4428,13 @@ function ft({
4428
4428
  name: r || "",
4429
4429
  placeholder: i,
4430
4430
  className: v,
4431
- options: p,
4431
+ options: x,
4432
4432
  module: m || ""
4433
4433
  }
4434
4434
  );
4435
4435
  }
4436
4436
  }
4437
- function En({
4437
+ function Bn({
4438
4438
  value: e,
4439
4439
  onValue: t,
4440
4440
  name: a,
@@ -4447,14 +4447,14 @@ function En({
4447
4447
  after: _ = "",
4448
4448
  show: u = !0,
4449
4449
  view: f,
4450
- onBlur: x,
4450
+ onBlur: p,
4451
4451
  onSave: m,
4452
4452
  className: g = ""
4453
4453
  }) {
4454
4454
  let v = !!(l && (e === "" || e === void 0));
4455
4455
  if (!(c && d) && !u || !(c && d) && v)
4456
4456
  return "";
4457
- let p = (T) => {
4457
+ let x = (T) => {
4458
4458
  t && t({ value: T.target.innerText, name: a });
4459
4459
  }, C = (T) => {
4460
4460
  m && m({ value: T.target.innerText, name: a });
@@ -4472,7 +4472,7 @@ function En({
4472
4472
  {
4473
4473
  onPaste: y,
4474
4474
  onBlur: C,
4475
- onInput: p,
4475
+ onInput: x,
4476
4476
  contentEditable: c && d ? "plaintext-only" : "false",
4477
4477
  ...B,
4478
4478
  suppressContentEditableWarning: !0,
@@ -4482,7 +4482,7 @@ function En({
4482
4482
  o ?? /* @__PURE__ */ n.jsx("em", { children: o })
4483
4483
  ] });
4484
4484
  }
4485
- function Bn({
4485
+ function Tn({
4486
4486
  value: e,
4487
4487
  onValue: t,
4488
4488
  name: a,
@@ -4495,15 +4495,15 @@ function Bn({
4495
4495
  after: _ = "",
4496
4496
  show: u = !0,
4497
4497
  view: f,
4498
- onBlur: x,
4498
+ onBlur: p,
4499
4499
  onSave: m,
4500
4500
  className: g = ""
4501
4501
  }) {
4502
4502
  let v = !!(l && (e === "" || e === void 0));
4503
4503
  if (ye.Date(e === void 0 ? /* @__PURE__ */ new Date() : e, "HH:MM"), b.useRef(null), !(c && d) && !u || !(c && d) && v)
4504
4504
  return "";
4505
- const p = "__:__", C = new Set("_"), y = ((M) => Array.from(p, (W, $) => C.has(W) ? M = $ + 1 : M))(0), B = [...p].findIndex((M) => C.has(M)), T = new RegExp("\\d", "g"), P = (M) => (M = M.match(T) || [], Array.from(
4506
- p,
4505
+ const x = "__:__", C = new Set("_"), y = ((M) => Array.from(x, (W, $) => C.has(W) ? M = $ + 1 : M))(0), B = [...x].findIndex((M) => C.has(M)), T = new RegExp("\\d", "g"), P = (M) => (M = M.match(T) || [], Array.from(
4506
+ x,
4507
4507
  (W) => (M[0] === W || C.has(W)) && M.shift() || W
4508
4508
  )), O = (M) => {
4509
4509
  const [W, $] = [M.target.selectionStart, M.target.selectionEnd].map(
@@ -4528,13 +4528,13 @@ function Bn({
4528
4528
  inputMode: "numeric",
4529
4529
  onKeyDown: (M) => z = M.key === "Backspace",
4530
4530
  onFocus: O,
4531
- onBlur: (M) => M.target.value === p && (M.target.value = "")
4531
+ onBlur: (M) => M.target.value === x && (M.target.value = "")
4532
4532
  }
4533
4533
  ) }),
4534
4534
  o ? /* @__PURE__ */ n.jsx("em", { children: o }) : ""
4535
4535
  ] }) });
4536
4536
  }
4537
- function Tn({
4537
+ function Rn({
4538
4538
  onValue: e,
4539
4539
  label: t,
4540
4540
  value: a,
@@ -4554,7 +4554,7 @@ function Tn({
4554
4554
  /* @__PURE__ */ n.jsx("dd", { ...u, onClick: d })
4555
4555
  ] });
4556
4556
  }
4557
- const Rn = ({ onValue: e, value: t, name: a, item: r }) => {
4557
+ const Mn = ({ onValue: e, value: t, name: a, item: r }) => {
4558
4558
  const [i, o] = b.useState(!!t);
4559
4559
  b.useEffect(() => {
4560
4560
  o(!!t);
@@ -4572,7 +4572,7 @@ const Rn = ({ onValue: e, value: t, name: a, item: r }) => {
4572
4572
  }
4573
4573
  );
4574
4574
  };
4575
- function Mn({
4575
+ function In({
4576
4576
  value: e,
4577
4577
  onValue: t,
4578
4578
  name: a,
@@ -4585,20 +4585,20 @@ function Mn({
4585
4585
  after: _ = "",
4586
4586
  show: u = !0,
4587
4587
  view: f,
4588
- onBlur: x,
4588
+ onBlur: p,
4589
4589
  onSave: m,
4590
4590
  className: g = ""
4591
4591
  }) {
4592
- const [v, p] = b.useState(
4592
+ const [v, x] = b.useState(
4593
4593
  e !== void 0 ? e.split(",") : []
4594
4594
  );
4595
4595
  b.useEffect(() => {
4596
- e !== void 0 && p(e !== void 0 ? e.split(",") : []);
4596
+ e !== void 0 && x(e !== void 0 ? e.split(",") : []);
4597
4597
  }, [e]);
4598
4598
  let C = () => {
4599
- p([...v, ""]);
4599
+ x([...v, ""]);
4600
4600
  }, y = (z) => {
4601
- v.splice(z, 1), v.length === 0 && v.push(""), p([...v]), x !== void 0 && x({ value: v.join(","), name: a });
4601
+ v.splice(z, 1), v.length === 0 && v.push(""), x([...v]), p !== void 0 && p({ value: v.join(","), name: a });
4602
4602
  }, B = !!(l && (e === "" || e === void 0)), T = (z) => {
4603
4603
  };
4604
4604
  if (!(c && d) && !u || !(c && d) && B)
@@ -4678,7 +4678,7 @@ function Mn({
4678
4678
  ] });
4679
4679
  }
4680
4680
  const Ji = (e) => (e = e !== void 0 && e !== "" ? e.split(",") : [], e.reduce((t, a) => (t[a] = !0, t), {}));
4681
- function In({
4681
+ function Nn({
4682
4682
  value: e,
4683
4683
  onValue: t,
4684
4684
  name: a,
@@ -4691,23 +4691,23 @@ function In({
4691
4691
  active: _ = !0,
4692
4692
  after: u = "",
4693
4693
  view: f,
4694
- modal: x,
4694
+ modal: p,
4695
4695
  module: m,
4696
4696
  options: g,
4697
4697
  className: v
4698
4698
  }) {
4699
- const [p, C] = b.useState(Ji(e)), y = (P) => {
4700
- if (!(c && _) || !x)
4699
+ const [x, C] = b.useState(Ji(e)), y = (P) => {
4700
+ if (!(c && _) || !p)
4701
4701
  return;
4702
- let O = x.split(".");
4703
- Cn.Open(O[1], {
4702
+ let O = p.split(".");
4703
+ jn.Open(O[1], {
4704
4704
  callback: (K) => {
4705
4705
  t && t({ value: K, name: a }), C(K);
4706
4706
  },
4707
4707
  onValue: t,
4708
4708
  options: g,
4709
4709
  name: a,
4710
- value: p
4710
+ value: x
4711
4711
  });
4712
4712
  }, B = {};
4713
4713
  B.field = "group", v && (B.className = v);
@@ -4740,7 +4740,7 @@ function In({
4740
4740
  onClick: open,
4741
4741
  edit: (c && _) + "",
4742
4742
  "data-after": u,
4743
- children: Object.keys(p).map((P) => {
4743
+ children: Object.keys(x).map((P) => {
4744
4744
  var O;
4745
4745
  return /* @__PURE__ */ n.jsx("div", { className: "field_group_item", children: (O = g[P]) == null ? void 0 : O.label }, P);
4746
4746
  })
@@ -4750,32 +4750,32 @@ function In({
4750
4750
  ] });
4751
4751
  }
4752
4752
  const Xi = {
4753
- Color: bn,
4753
+ Color: Cn,
4754
4754
  Date: vt,
4755
- Code: kn,
4756
- Check: Tn,
4757
- Switch: hn,
4758
- Button: gn,
4755
+ Code: bn,
4756
+ Check: Rn,
4757
+ Switch: gn,
4758
+ Button: xn,
4759
4759
  Message: pn,
4760
- Generator: xn,
4761
- Captcha: vn,
4760
+ Generator: vn,
4761
+ Captcha: kn,
4762
4762
  Modal: kt,
4763
4763
  Money: bt,
4764
- Month: jn,
4765
- Notes: yn,
4764
+ Month: yn,
4765
+ Notes: wn,
4766
4766
  Number: Ct,
4767
- Password: wn,
4767
+ Password: Sn,
4768
4768
  Phone: jt,
4769
- Search: Sn,
4769
+ Search: En,
4770
4770
  Select: yt,
4771
4771
  Set: ft,
4772
- Textarea: En,
4773
- Time: Bn,
4772
+ Textarea: Bn,
4773
+ Time: Tn,
4774
4774
  Users: St,
4775
4775
  String: wt,
4776
- Toogle: Rn,
4777
- Group: Mn,
4778
- Options: In
4776
+ Toogle: Mn,
4777
+ Group: In,
4778
+ Options: Nn
4779
4779
  }, Qi = "_debug_ug20b_34", eo = "_b_ug20b_46", to = "_o_ug20b_50", no = "_mb_ug20b_55", ao = "_tm_ug20b_66", ro = "_ta_ug20b_133", ge = {
4780
4780
  debug: Qi,
4781
4781
  b: eo,
@@ -4785,8 +4785,8 @@ const Xi = {
4785
4785
  ta: ro,
4786
4786
  "--body": "_--body_ug20b_143"
4787
4787
  }, S = window.Telegram.WebApp, oe = { is: !1, MainButton: {}, BackButton: {} };
4788
- let xe = {};
4789
- xe.dark = {
4788
+ let pe = {};
4789
+ pe.dark = {
4790
4790
  "--tg-theme-bg-color": "#212121",
4791
4791
  "--tg-theme-text-color": "#ffffff",
4792
4792
  "--tg-theme-hint-color": "#aaaaaa",
@@ -4801,7 +4801,7 @@ xe.dark = {
4801
4801
  "--tg-theme-subtitle-text-color": "#aaaaaa",
4802
4802
  "--tg-theme-destructive-text-color": "#e53935"
4803
4803
  };
4804
- xe.light = {
4804
+ pe.light = {
4805
4805
  "--tg-theme-bg-color": "#ffffff",
4806
4806
  "--tg-theme-text-color": "#000000",
4807
4807
  "--tg-theme-hint-color": "#999999",
@@ -4810,7 +4810,7 @@ xe.light = {
4810
4810
  "--tg-theme-button-text-color": "#ffffff",
4811
4811
  "--tg-theme-secondary-bg-color": "#efeff3"
4812
4812
  };
4813
- xe.users = {
4813
+ pe.users = {
4814
4814
  "--tg-theme-bg-color": "#000000",
4815
4815
  "--tg-theme-text-color": "#ffffff",
4816
4816
  "--tg-theme-hint-color": "#98989e",
@@ -4855,17 +4855,17 @@ S.Init = ({ dev: e }) => {
4855
4855
  if (e) {
4856
4856
  let [t, a] = b.useState(!1), [r, i] = b.useState(!1), [o, l] = b.useState("dark"), [c, d] = b.useState(!1), [_, u] = b.useState(!1);
4857
4857
  oe.is = !0, oe.MainButton.set = a, oe.BackButton.set = i, b.useEffect(() => {
4858
- for (let m in xe[o])
4858
+ for (let m in pe[o])
4859
4859
  document.documentElement.style.setProperty(
4860
4860
  m,
4861
- xe[o][m]
4861
+ pe[o][m]
4862
4862
  );
4863
4863
  }, []);
4864
4864
  let f = (m) => {
4865
- for (let g in xe[m])
4866
- document.documentElement.style.setProperty(g, xe[m][g]);
4865
+ for (let g in pe[m])
4866
+ document.documentElement.style.setProperty(g, pe[m][g]);
4867
4867
  l(m), d(!1);
4868
- }, x = () => {
4868
+ }, p = () => {
4869
4869
  d(!1), u(!0);
4870
4870
  };
4871
4871
  return /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
@@ -4900,7 +4900,7 @@ S.Init = ({ dev: e }) => {
4900
4900
  ) }),
4901
4901
  c ? /* @__PURE__ */ n.jsxs("div", { className: ge.tm, children: [
4902
4902
  /* @__PURE__ */ n.jsxs("ul", { children: [
4903
- /* @__PURE__ */ n.jsx("li", { children: /* @__PURE__ */ n.jsx("button", { onClick: x, children: "Authorization" }) }),
4903
+ /* @__PURE__ */ n.jsx("li", { children: /* @__PURE__ */ n.jsx("button", { onClick: p, children: "Authorization" }) }),
4904
4904
  /* @__PURE__ */ n.jsx("li", { children: /* @__PURE__ */ n.jsx("button", { onClick: () => _e.setPage("Add"), children: "Add Page" }) })
4905
4905
  ] }),
4906
4906
  /* @__PURE__ */ n.jsxs("ul", { children: [
@@ -4956,7 +4956,7 @@ const io = ({ setAuthorization: e }) => {
4956
4956
  ) }),
4957
4957
  /* @__PURE__ */ n.jsx("div", { onClick: r, children: " Сщхранить " })
4958
4958
  ] }) });
4959
- }, dl = ({ children: e, config: t }) => (window.location.pathname === "/clear" && (window.history.pushState({}, "", "/"), X()), N.New(t.crypto), t.defaultModule && ha(t.defaultModule), pa(
4959
+ }, dl = ({ children: e, config: t }) => (window.location.pathname === "/clear" && (window.history.pushState({}, "", "/"), X()), N.New(t.crypto), t.defaultModule && ga(t.defaultModule), pa(
4960
4960
  /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
4961
4961
  /* @__PURE__ */ n.jsx(S.Init, { dev: t.dev }),
4962
4962
  /* @__PURE__ */ n.jsx(ui, { config: t.modal }),
@@ -5019,10 +5019,10 @@ const lo = ({
5019
5019
  },
5020
5020
  "aria-checked": e ? "true" : "false"
5021
5021
  }
5022
- )), go = { Switch: ho }, po = ({ label: e, onClick: t, active: a }) => /* @__PURE__ */ n.jsx("li", { children: /* @__PURE__ */ n.jsxs("dl", { children: [
5022
+ )), go = { Switch: ho }, xo = ({ label: e, onClick: t, active: a }) => /* @__PURE__ */ n.jsx("li", { children: /* @__PURE__ */ n.jsxs("dl", { children: [
5023
5023
  /* @__PURE__ */ n.jsx("dt", { children: e }),
5024
5024
  /* @__PURE__ */ n.jsx("dd", { children: /* @__PURE__ */ n.jsx(go.Switch, { onClick: t, active: a }) })
5025
- ] }) }), xo = ({ label: e, active: t, options: a }) => /* @__PURE__ */ n.jsx("li", { children: /* @__PURE__ */ n.jsxs("dl", { children: [
5025
+ ] }) }), po = ({ label: e, active: t, options: a }) => /* @__PURE__ */ n.jsx("li", { children: /* @__PURE__ */ n.jsxs("dl", { children: [
5026
5026
  /* @__PURE__ */ n.jsx("dt", { children: e }),
5027
5027
  /* @__PURE__ */ n.jsx("dd", { role: "info", children: t })
5028
5028
  ] }) }), vo = ({ label: e, info: t }) => /* @__PURE__ */ n.jsx("li", { children: /* @__PURE__ */ n.jsxs("dl", { children: [
@@ -5034,8 +5034,8 @@ const lo = ({
5034
5034
  ] }) }), bo = ({ label: e, children: t }) => /* @__PURE__ */ n.jsx("li", { children: /* @__PURE__ */ n.jsxs("dl", { children: [
5035
5035
  /* @__PURE__ */ n.jsx("dt", { children: e }),
5036
5036
  /* @__PURE__ */ n.jsx("dd", { children: t })
5037
- ] }) }), Co = { Accordion: fo, Button: mo, Switch: po, Info: vo, Select: xo, Component: ko, Node: bo };
5038
- function Nn({ list: e, onClick: t, active: a, size: r, view: i }) {
5037
+ ] }) }), Co = { Accordion: fo, Button: mo, Switch: xo, Info: vo, Select: po, Component: ko, Node: bo };
5038
+ function Dn({ list: e, onClick: t, active: a, size: r, view: i }) {
5039
5039
  return /* @__PURE__ */ n.jsx("nav", { children: /* @__PURE__ */ n.jsx("ul", { className: [r, i].join(" "), children: e.map((o) => /* @__PURE__ */ n.jsx(
5040
5040
  jo,
5041
5041
  {
@@ -5048,9 +5048,9 @@ function Nn({ list: e, onClick: t, active: a, size: r, view: i }) {
5048
5048
  )) }) });
5049
5049
  }
5050
5050
  const jo = ({ onClick: e, label: t, link: a, active: r }) => /* @__PURE__ */ n.jsx("li", { "tabs-active": String(r === a), onClick: () => e(a), children: t });
5051
- Nn.defaultProps = { size: "M", view: "H" };
5052
- const ul = { Section: lo, Main: uo, Item: Co, Tabs: Nn };
5053
- function Dn({ text: e, type: t, button: a }) {
5051
+ Dn.defaultProps = { size: "M", view: "H" };
5052
+ const ul = { Section: lo, Main: uo, Item: Co, Tabs: Dn };
5053
+ function Pn({ text: e, type: t, button: a }) {
5054
5054
  let [r, i] = b.useState(!1), o = { active: t };
5055
5055
  const l = () => {
5056
5056
  if (a) {
@@ -5119,7 +5119,7 @@ const Ao = ({ children: e, className: t, title: a }) => /* @__PURE__ */ n.jsxs("
5119
5119
  Group: en,
5120
5120
  Form: Qt,
5121
5121
  List: Jt,
5122
- A: Dn,
5122
+ A: Pn,
5123
5123
  U: Oo,
5124
5124
  G: en,
5125
5125
  C: Go,
@@ -5129,7 +5129,7 @@ const Ao = ({ children: e, className: t, title: a }) => /* @__PURE__ */ n.jsxs("
5129
5129
  H: qt,
5130
5130
  M: zo,
5131
5131
  F: Qt
5132
- }, ml = { Send: Pr, Line: Dn };
5132
+ }, ml = { Send: Pr, Line: Pn };
5133
5133
  function Wo() {
5134
5134
  return /* @__PURE__ */ n.jsx("svg", { viewBox: "0 0 462.86 359.96", children: /* @__PURE__ */ n.jsx(
5135
5135
  "path",
@@ -5473,7 +5473,7 @@ H.info = (e) => {
5473
5473
  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"), _n(t), sn(e.data.menu);
5474
5474
  };
5475
5475
  H.version = async (e) => {
5476
- xt.version.Server(e.data);
5476
+ pt.version.Server(e.data);
5477
5477
  };
5478
5478
  H.online = async (e) => {
5479
5479
  };
@@ -5534,7 +5534,7 @@ H.job = (e) => {
5534
5534
  }), t[1] = a, De(t);
5535
5535
  };
5536
5536
  H.setting = (e) => {
5537
- La(e.data);
5537
+ Aa(e.data);
5538
5538
  };
5539
5539
  H.app = () => {
5540
5540
  };
@@ -5604,20 +5604,20 @@ const Se = () => (st || (st = new us()), st), fe = (e, t, a = Se()) => a._withID
5604
5604
  g += t[m][v];
5605
5605
  }), c) {
5606
5606
  let v = {};
5607
- d.forEach((p) => {
5608
- v[p] = t[m][p];
5607
+ d.forEach((x) => {
5608
+ v[x] = t[m][x];
5609
5609
  });
5610
- for (let p in l)
5611
- t[m][l[p]] === void 0 && (ht(), location.reload()), p === "s1" && (v[p] = new Date(t[m][l[p]]).getTime()), p === "s2" && (v[p] = t[m][l[p]]), p === "s3" && (v[p] = t[m][l[p]].replace(/[^a-zа-яё]/gi, "").substring(0, 1));
5610
+ for (let x in l)
5611
+ t[m][l[x]] === void 0 && (ht(), location.reload()), x === "s1" && (v[x] = new Date(t[m][l[x]]).getTime()), x === "s2" && (v[x] = t[m][l[x]]), x === "s3" && (v[x] = t[m][l[x]].replace(/[^a-zа-яё]/gi, "").substring(0, 1));
5612
5612
  o.push({ id: m, text: g, ...v });
5613
5613
  } else
5614
5614
  o.push({ id: m, text: g });
5615
- }, x = (m) => {
5615
+ }, p = (m) => {
5616
5616
  };
5617
5617
  return _.forEach((m) => {
5618
5618
  u.push(t[m]);
5619
5619
  }), u.forEach((m) => {
5620
- m === void 0 ? (ht(), location.reload()) : (i && f(m.id), c && x(m.id));
5620
+ m === void 0 ? (ht(), location.reload()) : (i && f(m.id), c && p(m.id));
5621
5621
  }), { list: u, search: o, filter: r };
5622
5622
  }, gs = (e, t, a, r = Se()) => {
5623
5623
  if (A[e] === void 0)
@@ -5640,10 +5640,10 @@ const Se = () => (st || (st = new us()), st), fe = (e, t, a = Se()) => a._withID
5640
5640
  return A[e][t.id] = { ...A[e][t.id], ...t.data }, a !== void 0 && A[a] !== void 0 ? A[a][t.id] !== void 0 && (A[a][t.id] = t.data.eDate) : A[a] = [], delete A[e][t.id].$_item, delete A[e][t.id].$_send, r._withIDBStore("readwrite", (i) => {
5641
5641
  i.put(N.enCode(A[e]), e), a !== void 0 && i.put(N.enCode(A[a]), a);
5642
5642
  });
5643
- }, ps = async (e, t, a, r) => {
5643
+ }, xs = async (e, t, a, r) => {
5644
5644
  let i, o;
5645
5645
  o = await ie(a), o[e.id] = e, await fe(a, o), i !== null && (i = await ie(t), i[e.id] = e.eDate, await fe(t, i)), r !== void 0 && r({ type: "load", page: i, base: o });
5646
- }, xs = async (e, t, a, r) => {
5646
+ }, ps = async (e, t, a, r) => {
5647
5647
  let i = await ie(t), o = await ie(a);
5648
5648
  for (let l in e)
5649
5649
  o[l] = e[l], i[l] = e[l].eDate;
@@ -5667,18 +5667,18 @@ const Se = () => (st || (st = new us()), st), fe = (e, t, a = Se()) => a._withID
5667
5667
  id: Cs,
5668
5668
  get: ie,
5669
5669
  set: fe,
5670
- add: ps,
5670
+ add: xs,
5671
5671
  del: fs,
5672
5672
  upd: gs,
5673
5673
  key: ms,
5674
5674
  load: js,
5675
5675
  split: hs,
5676
5676
  clear: ht,
5677
- updAll: xs,
5677
+ updAll: ps,
5678
5678
  delAll: vs,
5679
5679
  delList: ks,
5680
5680
  addList: bs
5681
- }, pl = { setSetting: Aa, getSetting: Oa }, ys = "_s_18bde_1", ws = "_loadingB_18bde_1", Ss = "_ul_18bde_31", Es = {
5681
+ }, xl = { setSetting: Oa, getSetting: Ga }, ys = "_s_18bde_1", ws = "_loadingB_18bde_1", Ss = "_ul_18bde_31", Es = {
5682
5682
  s: ys,
5683
5683
  loadingB: ws,
5684
5684
  ul: Ss
@@ -5719,7 +5719,7 @@ function Ts(e, t) {
5719
5719
  throw new Error();
5720
5720
  }
5721
5721
  }
5722
- function xl({
5722
+ function pl({
5723
5723
  list: e,
5724
5724
  load: t,
5725
5725
  className: a,
@@ -5786,27 +5786,27 @@ function Ns() {
5786
5786
  we.r && we.r();
5787
5787
  }
5788
5788
  const vl = {
5789
- Color: bn,
5789
+ Color: Cn,
5790
5790
  Date: vt,
5791
- Code: kn,
5792
- Check: Tn,
5793
- Switch: hn,
5794
- Button: gn,
5791
+ Code: bn,
5792
+ Check: Rn,
5793
+ Switch: gn,
5794
+ Button: xn,
5795
5795
  Message: pn,
5796
- Generator: xn,
5797
- Captcha: vn,
5796
+ Generator: vn,
5797
+ Captcha: kn,
5798
5798
  Modal: kt,
5799
5799
  Money: bt,
5800
- Month: jn,
5801
- Notes: yn,
5800
+ Month: yn,
5801
+ Notes: wn,
5802
5802
  Number: Ct,
5803
- Password: wn,
5803
+ Password: Sn,
5804
5804
  Phone: jt,
5805
- Search: Sn,
5805
+ Search: En,
5806
5806
  Select: yt,
5807
5807
  Set: ft,
5808
- Textarea: En,
5809
- Time: Bn,
5808
+ Textarea: Bn,
5809
+ Time: Tn,
5810
5810
  Users: St,
5811
5811
  String: wt,
5812
5812
  Form: ft,
@@ -5814,16 +5814,16 @@ const vl = {
5814
5814
  useData: Ms,
5815
5815
  setValue: Is,
5816
5816
  Palette: Rs,
5817
- Toogle: Rn,
5818
- Group: Mn,
5819
- Options: In
5820
- }, Ds = "_spinner_1ul0m_1", Ps = "_l_1ul0m_75", Fs = "_loadingB_1ul0m_1", Pn = {
5817
+ Toogle: Mn,
5818
+ Group: In,
5819
+ Options: Nn
5820
+ }, Ds = "_spinner_1ul0m_1", Ps = "_l_1ul0m_75", Fs = "_loadingB_1ul0m_1", Fn = {
5821
5821
  spinner: Ds,
5822
5822
  l: Ps,
5823
5823
  loadingB: Fs
5824
5824
  };
5825
5825
  function $s() {
5826
- return /* @__PURE__ */ n.jsx("div", { className: Pn.spinner, children: /* @__PURE__ */ n.jsx("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 483 484", children: /* @__PURE__ */ n.jsx(
5826
+ return /* @__PURE__ */ n.jsx("div", { className: Fn.spinner, children: /* @__PURE__ */ n.jsx("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 483 484", children: /* @__PURE__ */ n.jsx(
5827
5827
  "path",
5828
5828
  {
5829
5829
  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",
@@ -5832,7 +5832,7 @@ function $s() {
5832
5832
  ) }) });
5833
5833
  }
5834
5834
  function Ls() {
5835
- return /* @__PURE__ */ n.jsxs("div", { className: Pn.l, children: [
5835
+ return /* @__PURE__ */ n.jsxs("div", { className: Fn.l, children: [
5836
5836
  /* @__PURE__ */ n.jsx("i", {}),
5837
5837
  /* @__PURE__ */ n.jsx("i", {}),
5838
5838
  /* @__PURE__ */ n.jsx("i", {})
@@ -6015,13 +6015,13 @@ function Js(e, t, a, r) {
6015
6015
  Number.parseInt(t[_]) !== 999 && (e = e.filter(
6016
6016
  (u) => Number.parseInt(u[_]) === Number.parseInt(t[_])
6017
6017
  ));
6018
- }), Fn(e.length)), e.forEach((_) => {
6018
+ }), $n(e.length)), e.forEach((_) => {
6019
6019
  i.push(_.id);
6020
6020
  }), i.forEach((_) => {
6021
6021
  l++, l <= d || (o++, l = 1, c[o] = []), c[o].push(a[_]);
6022
6022
  }), c;
6023
6023
  }
6024
- function Fn(e) {
6024
+ function $n(e) {
6025
6025
  ee.count(e);
6026
6026
  }
6027
6027
  function Xs({ data: e, state: t, dispatch: a }) {
@@ -6078,7 +6078,7 @@ function Qs({ data: e, head: t, state: a, dispatch: r, type: i }) {
6078
6078
  }
6079
6079
  );
6080
6080
  }
6081
- const Cl = { Button: Hs, useValue: Ys, Set: Vs, Run: Js, Count: Fn, Reset: qs }, jl = { Bell: as, Send: es, Add: Qo };
6081
+ const Cl = { Button: Hs, useValue: Ys, Set: Vs, Run: Js, Count: $n, Reset: qs }, jl = { Bell: as, Send: es, Add: Qo };
6082
6082
  function yl({ active: e, onActive: t, id: a, name: r }) {
6083
6083
  const [i, o] = b.useState(!!e);
6084
6084
  b.useEffect(() => {
@@ -6190,19 +6190,19 @@ export {
6190
6190
  dl as Init,
6191
6191
  Xi as Input,
6192
6192
  kl as Loading,
6193
- Cn as Modal,
6193
+ jn as Modal,
6194
6194
  Ke as Notice,
6195
6195
  jl as Notifications,
6196
6196
  _e as Router,
6197
- xl as Scrolling,
6197
+ pl as Scrolling,
6198
6198
  bl as Search,
6199
6199
  ul as Setting,
6200
- xt as Sistym,
6200
+ pt as Sistym,
6201
6201
  mt as Socket,
6202
6202
  le as Store,
6203
6203
  yl as Switch,
6204
6204
  oo as Tabs,
6205
6205
  S as Telegram,
6206
6206
  wl as Triage,
6207
- pl as User
6207
+ xl as User
6208
6208
  };