elcrm 0.4.4 → 0.4.6

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,14 +1,14 @@
1
1
  import './index.css';
2
2
  var sn = Object.defineProperty;
3
3
  var an = (e, t, r) => t in e ? sn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r;
4
- var Pe = (e, t, r) => (an(e, typeof t != "symbol" ? t + "" : t, r), r);
4
+ var Oe = (e, t, r) => (an(e, typeof t != "symbol" ? t + "" : t, r), r);
5
5
  import E from "react";
6
- let k = {};
7
- const v = {}, D = {}, dt = {}, bt = {}, K = {};
6
+ let w = {};
7
+ const v = {}, D = {}, re = {}, bt = {}, K = {};
8
8
  function on(e, t) {
9
- if (k = e, localStorage.getItem("ssid")) {
9
+ if (w = e, localStorage.getItem("ssid")) {
10
10
  let s = sessionStorage.getItem("page");
11
- s ? (s = k.deCode(s), v.id = s.id, v.tab = s.tab, v.page = s.page, v.module = s.module, v.time = s.time, v.payment = { active: !0 }, v.module_admin = s.module_admin) : (v.id = 0, v.tab = "", v.page = "Main", v.module = v.module || "M05");
11
+ s ? (s = w.deCode(s), v.id = s.id, v.tab = s.tab, v.page = s.page, v.module = s.module, v.time = s.time, v.payment = { active: !0 }, v.module_admin = s.module_admin) : (v.id = 0, v.tab = "", v.page = "Main", v.module = v.module || "M05");
12
12
  } else
13
13
  [
14
14
  "ssid",
@@ -45,7 +45,7 @@ function $() {
45
45
  function cn(e) {
46
46
  e = e.split("/"), v.page = "Main", v.module = e[0], v.tab = e[1], v.id = 0, sessionStorage.setItem(
47
47
  "page",
48
- k.enCode({
48
+ w.enCode({
49
49
  module: v.module,
50
50
  page: v.page,
51
51
  tab: v.tab,
@@ -69,12 +69,12 @@ function fn() {
69
69
  return e !== "" && e !== "undefined" && e !== null ? e : ($(), !1);
70
70
  }
71
71
  function mn(e) {
72
- localStorage.setItem("port", k.enCode(e));
72
+ localStorage.setItem("port", w.enCode(e));
73
73
  }
74
- function Fe() {
74
+ function Me() {
75
75
  let e = localStorage.getItem("port");
76
76
  if (e !== "" && e !== "undefined" && e !== null) {
77
- let t = k.deCode(e);
77
+ let t = w.deCode(e);
78
78
  return t || $(), t;
79
79
  } else
80
80
  return $(), !1;
@@ -86,7 +86,7 @@ function pn() {
86
86
  return D.page = r, [e];
87
87
  }
88
88
  function hn(e) {
89
- v.page = e, sessionStorage.setItem("page", k.enCode(v)), D.page(e);
89
+ v.page = e, sessionStorage.setItem("page", w.enCode(v)), D.page(e);
90
90
  }
91
91
  function _t() {
92
92
  return v.page;
@@ -98,21 +98,21 @@ function vn() {
98
98
  return D.module = r, [e];
99
99
  }
100
100
  function gn(e, t) {
101
- v.module = e, sessionStorage.setItem("page", k.enCode(v)), t !== "false" && D.module(e);
101
+ v.module = e, sessionStorage.setItem("page", w.enCode(v)), t !== "false" && D.module(e);
102
102
  }
103
103
  function xt() {
104
104
  return v.module;
105
105
  }
106
106
  function bn(e) {
107
- const [t, r] = E.useState(Se() || e), s = (o) => {
107
+ const [t, r] = E.useState(je() || e), s = (o) => {
108
108
  r(o);
109
109
  };
110
110
  return D.tabs = s, [t];
111
111
  }
112
112
  function _n(e, t) {
113
- v.tab = e, sessionStorage.setItem("page", k.enCode(v)), t !== "false" && D.tabs(e);
113
+ v.tab = e, sessionStorage.setItem("page", w.enCode(v)), t !== "false" && D.tabs(e);
114
114
  }
115
- function Se() {
115
+ function je() {
116
116
  return v.tab;
117
117
  }
118
118
  function xn() {
@@ -125,28 +125,31 @@ function yn(e) {
125
125
  D.id = e;
126
126
  }
127
127
  function Sn(e, t) {
128
- v.id = e, sessionStorage.setItem("page", k.enCode(v)), t !== "false" && D.id(e);
128
+ v.id = e, sessionStorage.setItem("page", w.enCode(v)), t !== "false" && D.id(e);
129
129
  }
130
130
  function jn() {
131
131
  return v.id;
132
132
  }
133
133
  function wn(e, t, r) {
134
- v.module = e, v.id = r, v.tab = t, sessionStorage.setItem("page", k.enCode(v)), D.module(e), D.tabs(t);
134
+ v.module = e, v.id = r, v.tab = t, sessionStorage.setItem("page", w.enCode(v)), D.module(e), D.tabs(t);
135
+ }
136
+ function Cn(e) {
137
+ re.data = e[0], delete re.data.id, document.body.dataset.theme = re.data.s15, localStorage.setItem("sett", w.enCode(re.data));
135
138
  }
136
- function Cn(e, t) {
137
- dt.data[e] = t, localStorage.setItem("sett", k.enCode(dt.data));
139
+ function kn(e, t) {
140
+ re.data[e] = t, localStorage.setItem("sett", w.enCode(re.data));
138
141
  }
139
- function kn(e) {
142
+ function En(e) {
140
143
  let t = localStorage.getItem("sett");
141
- return t === null ? {} : (t = k.deCode(t), t ? e !== void 0 ? t[e] : t : $());
144
+ return t === null ? {} : (t = w.deCode(t), t ? e !== void 0 ? t[e] : t : $());
142
145
  }
143
146
  function yt(e) {
144
- localStorage.setItem("menu", k.enCode({ data: e }));
147
+ localStorage.setItem("menu", w.enCode({ data: e }));
145
148
  }
146
- function En() {
149
+ function Rn() {
147
150
  let e = localStorage.getItem("menu");
148
151
  if (e !== "" && e !== "undefined" && e !== null) {
149
- let t = localStorage.getItem("menu"), r = k.deCode(t);
152
+ let t = localStorage.getItem("menu"), r = w.deCode(t);
150
153
  r || $();
151
154
  const s = (l, c) => {
152
155
  let f = c + "";
@@ -158,89 +161,87 @@ function En() {
158
161
  } else
159
162
  return $(), !1;
160
163
  }
161
- function Rn(e) {
164
+ function In(e) {
162
165
  D.sort = e;
163
166
  }
164
167
  function St(e) {
165
168
  let t = localStorage.getItem("sort");
166
- t = t === null ? {} : k.deCode(t), t[Se()] = e, localStorage.setItem("sort", k.enCode(t));
169
+ t = t === null ? {} : w.deCode(t), t[je()] = e, localStorage.setItem("sort", w.enCode(t));
167
170
  }
168
- function Me() {
171
+ function De() {
169
172
  let e = localStorage.getItem("sort");
170
- return e === null ? {} : (e = k.deCode(e), e = e[Se()], e = e === void 0 ? { active: 1, sort: "<" } : e, e);
173
+ return e === null ? {} : (e = w.deCode(e), e = e[je()], e = e === void 0 ? { active: 1, sort: "<" } : e, e);
171
174
  }
172
175
  function jt(e) {
173
- localStorage.setItem("c", k.enCode(e));
176
+ localStorage.setItem("c", w.enCode(e));
174
177
  }
175
- function In(e) {
178
+ function Tn(e) {
176
179
  let t = localStorage.getItem("c");
177
180
  if (t !== "" && t !== "undefined" && t !== null) {
178
- let r = k.deCode(t);
181
+ let r = w.deCode(t);
179
182
  return r || $(), e === void 0 ? r : r[e];
180
183
  } else
181
184
  return $(), !1;
182
185
  }
183
- function ue(e) {
184
- K.data = e, localStorage.setItem("qder", k.enCode(K.data));
186
+ function de(e) {
187
+ K.data = e, localStorage.setItem("qder", w.enCode(K.data));
185
188
  }
186
- function de(e, t) {
189
+ function fe(e, t) {
187
190
  if (!K.data) {
188
191
  let r = localStorage.getItem("qder");
189
- r && (K.data = k.deCode(r));
192
+ r && (K.data = w.deCode(r));
190
193
  }
191
194
  return e === void 0 && t === void 0 ? K.data : e !== void 0 && t === void 0 ? K.data[e] : K.data[e][t];
192
195
  }
193
- function Tn(e) {
196
+ function Nn(e) {
194
197
  bt.data = e;
195
198
  }
196
- function Nn(e) {
199
+ function Pn(e) {
197
200
  return bt.data[e];
198
201
  }
199
- function Pn(e) {
202
+ function On(e) {
200
203
  v.payment = e;
201
204
  }
202
- function On() {
205
+ function Ln() {
203
206
  return v.payment;
204
207
  }
205
208
  function wt(e) {
206
- localStorage.setItem("user", k.enCode(e));
209
+ localStorage.setItem("user", w.enCode(e));
207
210
  }
208
- function Ln() {
211
+ function Fn() {
209
212
  let e = localStorage.getItem("user");
210
213
  if (e !== "" && e !== "undefined" && e !== null) {
211
- let t = k.deCode(e);
214
+ let t = w.deCode(e);
212
215
  return t || $(), t;
213
216
  } else
214
217
  return $(), !1;
215
218
  }
216
- const Ze = {
219
+ const Ae = {
217
220
  setSSID: ln,
218
221
  getSSID: un,
219
- getPORT: Fe,
222
+ getPORT: Me,
220
223
  setPORT: mn,
221
224
  setAUTH: dn,
222
225
  getAUTH: fn,
223
226
  Logaut: $,
224
227
  Start: cn,
225
- setSetting: Cn,
226
- getSetting: kn,
227
228
  setMenu: yt,
228
- getMenu: En,
229
- useSort: Rn,
229
+ getMenu: Rn,
230
+ useSort: In,
230
231
  setSort: St,
231
- getSort: Me,
232
+ getSort: De,
232
233
  setCompany: jt,
233
- getCompany: In,
234
- setSelect: ue,
235
- getSelect: de,
236
- setApi: Tn,
237
- getApi: Nn,
238
- setPayment: Pn,
239
- getPayment: On,
234
+ getCompany: Tn,
235
+ setSelect: de,
236
+ getSelect: fe,
237
+ setApi: Nn,
238
+ getApi: Pn,
239
+ setPayment: On,
240
+ getPayment: Ln,
240
241
  setUser: wt,
241
- getUser: Ln
242
- }, Ct = "KGZ1bmN0aW9uKCl7InVzZSBzdHJpY3QiO3ZhciBhPXtCQVNFX1VSTDoiLyIsTU9ERToicHJvZHVjdGlvbiIsREVWOiExLFBST0Q6ITAsU1NSOiExfTtvbm1lc3NhZ2U9YXN5bmMgdD0+e2NvbnNvbGUubG9nKGEuVklURV9VUkwpO3RyeXtsZXQgZT1hLlZJVEVfVVJMPT09ImxvY2FsaG9zdCI/Imh0dHA6Ly9sb2NhbGhvc3Q6MzUzNS8iOiJodHRwczovL2FwaS5lbGNybS5vbmxpbmUvIixzPWF3YWl0IGZldGNoKGAke2V9JHt0LmRhdGEubGlua31gLHttZXRob2Q6IlBPU1QiLGhlYWRlcnM6eyJDb250ZW50LXR5cGUiOiJhcHBsaWNhdGlvbi9qc29uO2NoYXJzZXQ9dXRmLTgiLHNzaWQ6dC5kYXRhLnNzaWR9LGJvZHk6SlNPTi5zdHJpbmdpZnkodC5kYXRhLmRhdGEpfSk7cG9zdE1lc3NhZ2UoYXdhaXQgcy5qc29uKCkpfWNhdGNoe3Bvc3RNZXNzYWdlKHtzdGF0dXM6ImVycm9yIn0pfX19KSgpOwo=", Fn = (e) => Uint8Array.from(atob(e), (t) => t.charCodeAt(0)), ft = typeof window < "u" && window.Blob && new Blob([Fn(Ct)], { type: "text/javascript;charset=utf-8" });
243
- function Mn(e) {
242
+ getUser: Fn
243
+ }, Ct = "KGZ1bmN0aW9uKCl7InVzZSBzdHJpY3QiO3ZhciBhPXtCQVNFX1VSTDoiLyIsTU9ERToicHJvZHVjdGlvbiIsREVWOiExLFBST0Q6ITAsU1NSOiExfTtvbm1lc3NhZ2U9YXN5bmMgdD0+e2NvbnNvbGUubG9nKGEuVklURV9VUkwpO3RyeXtsZXQgZT1hLlZJVEVfVVJMPT09ImxvY2FsaG9zdCI/Imh0dHA6Ly9sb2NhbGhvc3Q6MzUzNS8iOiJodHRwczovL2FwaS5lbGNybS5vbmxpbmUvIixzPWF3YWl0IGZldGNoKGAke2V9JHt0LmRhdGEubGlua31gLHttZXRob2Q6IlBPU1QiLGhlYWRlcnM6eyJDb250ZW50LXR5cGUiOiJhcHBsaWNhdGlvbi9qc29uO2NoYXJzZXQ9dXRmLTgiLHNzaWQ6dC5kYXRhLnNzaWR9LGJvZHk6SlNPTi5zdHJpbmdpZnkodC5kYXRhLmRhdGEpfSk7cG9zdE1lc3NhZ2UoYXdhaXQgcy5qc29uKCkpfWNhdGNoe3Bvc3RNZXNzYWdlKHtzdGF0dXM6ImVycm9yIn0pfX19KSgpOwo=", Mn = (e) => Uint8Array.from(atob(e), (t) => t.charCodeAt(0)), ft = typeof window < "u" && window.Blob && new Blob([Mn(Ct)], { type: "text/javascript;charset=utf-8" });
244
+ function Dn(e) {
244
245
  let t;
245
246
  try {
246
247
  if (t = ft && (window.URL || window.webkitURL).createObjectURL(ft), !t)
@@ -262,24 +263,24 @@ function Mn(e) {
262
263
  t && (window.URL || window.webkitURL).revokeObjectURL(t);
263
264
  }
264
265
  }
265
- function Dn(e) {
266
- return "https://" + Ze.getPORT().address + "/audio/" + e;
266
+ function $n(e) {
267
+ return "https://" + Ae.getPORT().address + "/audio/" + e;
267
268
  }
268
- function kt(e, t = {}, r = Ze.getAUTH()) {
269
+ function kt(e, t = {}, r = Ae.getAUTH()) {
269
270
  return new Promise((s) => {
270
- const o = new Mn();
271
+ const o = new Dn();
271
272
  o.onmessage = (l) => {
272
273
  s(l.data), o.terminate();
273
274
  }, o.postMessage({ link: e, data: t, ssid: r });
274
275
  });
275
276
  }
276
- async function $n(e, t, r = {}) {
277
+ async function zn(e, t, r = {}) {
277
278
  try {
278
279
  return await (await kt("https://" + e + "/" + t, {
279
280
  method: "POST",
280
281
  headers: {
281
282
  "Content-type": "application/json;charset=utf-8",
282
- ssid: Ze.getAUTH() || ""
283
+ ssid: Ae.getAUTH() || ""
283
284
  },
284
285
  body: JSON.stringify(r)
285
286
  })).json();
@@ -287,8 +288,8 @@ async function $n(e, t, r = {}) {
287
288
  return { status: "error" };
288
289
  }
289
290
  }
290
- const ua = { audio: Dn, fetch: kt, remoute: $n };
291
- var De = { exports: {} }, ie = {};
291
+ const da = { audio: $n, fetch: kt, remoute: zn };
292
+ var $e = { exports: {} }, ce = {};
292
293
  /**
293
294
  * @license React
294
295
  * react-jsx-runtime.production.min.js
@@ -299,9 +300,9 @@ var De = { exports: {} }, ie = {};
299
300
  * LICENSE file in the root directory of this source tree.
300
301
  */
301
302
  var mt;
302
- function zn() {
303
+ function Zn() {
303
304
  if (mt)
304
- return ie;
305
+ return ce;
305
306
  mt = 1;
306
307
  var e = E, t = Symbol.for("react.element"), r = Symbol.for("react.fragment"), s = Object.prototype.hasOwnProperty, o = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, l = { key: !0, ref: !0, __self: !0, __source: !0 };
307
308
  function c(f, d, m) {
@@ -314,9 +315,9 @@ function zn() {
314
315
  b[p] === void 0 && (b[p] = d[p]);
315
316
  return { $$typeof: t, type: f, key: S, ref: O, props: b, _owner: o.current };
316
317
  }
317
- return ie.Fragment = r, ie.jsx = c, ie.jsxs = c, ie;
318
+ return ce.Fragment = r, ce.jsx = c, ce.jsxs = c, ce;
318
319
  }
319
- var ce = {};
320
+ var le = {};
320
321
  /**
321
322
  * @license React
322
323
  * react-jsx-runtime.development.js
@@ -327,13 +328,13 @@ var ce = {};
327
328
  * LICENSE file in the root directory of this source tree.
328
329
  */
329
330
  var pt;
330
- function Zn() {
331
+ function An() {
331
332
  return pt || (pt = 1, process.env.NODE_ENV !== "production" && function() {
332
- var e = E, t = Symbol.for("react.element"), r = Symbol.for("react.portal"), s = Symbol.for("react.fragment"), o = Symbol.for("react.strict_mode"), l = Symbol.for("react.profiler"), c = Symbol.for("react.provider"), f = Symbol.for("react.context"), d = Symbol.for("react.forward_ref"), m = Symbol.for("react.suspense"), p = Symbol.for("react.suspense_list"), b = Symbol.for("react.memo"), S = Symbol.for("react.lazy"), O = Symbol.for("react.offscreen"), F = Symbol.iterator, w = "@@iterator";
333
- function C(n) {
333
+ var e = E, t = Symbol.for("react.element"), r = Symbol.for("react.portal"), s = Symbol.for("react.fragment"), o = Symbol.for("react.strict_mode"), l = Symbol.for("react.profiler"), c = Symbol.for("react.provider"), f = Symbol.for("react.context"), d = Symbol.for("react.forward_ref"), m = Symbol.for("react.suspense"), p = Symbol.for("react.suspense_list"), b = Symbol.for("react.memo"), S = Symbol.for("react.lazy"), O = Symbol.for("react.offscreen"), F = Symbol.iterator, C = "@@iterator";
334
+ function k(n) {
334
335
  if (n === null || typeof n != "object")
335
336
  return null;
336
- var i = F && n[F] || n[w];
337
+ var i = F && n[F] || n[C];
337
338
  return typeof i == "function" ? i : null;
338
339
  }
339
340
  var R = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
@@ -354,14 +355,14 @@ function Zn() {
354
355
  j.unshift("Warning: " + i), Function.prototype.apply.call(console[n], console, j);
355
356
  }
356
357
  }
357
- var G = !1, H = !1, ee = !1, me = !1, Tt = !1, Ae;
358
- Ae = Symbol.for("react.module.reference");
358
+ var G = !1, H = !1, ee = !1, pe = !1, Tt = !1, Ue;
359
+ Ue = Symbol.for("react.module.reference");
359
360
  function Nt(n) {
360
- return !!(typeof n == "string" || typeof n == "function" || n === s || n === l || Tt || n === o || n === m || n === p || me || n === O || G || H || ee || typeof n == "object" && n !== null && (n.$$typeof === S || n.$$typeof === b || n.$$typeof === c || n.$$typeof === f || n.$$typeof === d || // This needs to include all possible module reference object
361
+ return !!(typeof n == "string" || typeof n == "function" || n === s || n === l || Tt || n === o || n === m || n === p || pe || n === O || G || H || ee || typeof n == "object" && n !== null && (n.$$typeof === S || n.$$typeof === b || n.$$typeof === c || n.$$typeof === f || n.$$typeof === d || // This needs to include all possible module reference object
361
362
  // types supported by any Flight configuration anywhere since
362
363
  // we don't know which Flight build this will end up being used
363
364
  // with.
364
- n.$$typeof === Ae || n.getModuleId !== void 0));
365
+ n.$$typeof === Ue || n.getModuleId !== void 0));
365
366
  }
366
367
  function Pt(n, i, u) {
367
368
  var h = n.displayName;
@@ -370,7 +371,7 @@ function Zn() {
370
371
  var y = i.displayName || i.name || "";
371
372
  return y !== "" ? u + "(" + y + ")" : u;
372
373
  }
373
- function Ue(n) {
374
+ function We(n) {
374
375
  return n.displayName || "Context";
375
376
  }
376
377
  function U(n) {
@@ -398,10 +399,10 @@ function Zn() {
398
399
  switch (n.$$typeof) {
399
400
  case f:
400
401
  var i = n;
401
- return Ue(i) + ".Consumer";
402
+ return We(i) + ".Consumer";
402
403
  case c:
403
404
  var u = n;
404
- return Ue(u._context) + ".Provider";
405
+ return We(u._context) + ".Provider";
405
406
  case d:
406
407
  return Pt(n, n.render, "ForwardRef");
407
408
  case b:
@@ -418,18 +419,18 @@ function Zn() {
418
419
  }
419
420
  return null;
420
421
  }
421
- var J = Object.assign, ae = 0, We, Ge, Ve, Ye, Be, Xe, He;
422
- function Je() {
422
+ var J = Object.assign, oe = 0, Ge, Ve, Ye, Be, Xe, He, Je;
423
+ function Ke() {
423
424
  }
424
- Je.__reactDisabledLog = !0;
425
+ Ke.__reactDisabledLog = !0;
425
426
  function Ot() {
426
427
  {
427
- if (ae === 0) {
428
- We = console.log, Ge = console.info, Ve = console.warn, Ye = console.error, Be = console.group, Xe = console.groupCollapsed, He = console.groupEnd;
428
+ if (oe === 0) {
429
+ Ge = console.log, Ve = console.info, Ye = console.warn, Be = console.error, Xe = console.group, He = console.groupCollapsed, Je = console.groupEnd;
429
430
  var n = {
430
431
  configurable: !0,
431
432
  enumerable: !0,
432
- value: Je,
433
+ value: Ke,
433
434
  writable: !0
434
435
  };
435
436
  Object.defineProperties(console, {
@@ -442,12 +443,12 @@ function Zn() {
442
443
  groupEnd: n
443
444
  });
444
445
  }
445
- ae++;
446
+ oe++;
446
447
  }
447
448
  }
448
449
  function Lt() {
449
450
  {
450
- if (ae--, ae === 0) {
451
+ if (oe--, oe === 0) {
451
452
  var n = {
452
453
  configurable: !0,
453
454
  enumerable: !0,
@@ -455,64 +456,64 @@ function Zn() {
455
456
  };
456
457
  Object.defineProperties(console, {
457
458
  log: J({}, n, {
458
- value: We
459
+ value: Ge
459
460
  }),
460
461
  info: J({}, n, {
461
- value: Ge
462
+ value: Ve
462
463
  }),
463
464
  warn: J({}, n, {
464
- value: Ve
465
+ value: Ye
465
466
  }),
466
467
  error: J({}, n, {
467
- value: Ye
468
+ value: Be
468
469
  }),
469
470
  group: J({}, n, {
470
- value: Be
471
+ value: Xe
471
472
  }),
472
473
  groupCollapsed: J({}, n, {
473
- value: Xe
474
+ value: He
474
475
  }),
475
476
  groupEnd: J({}, n, {
476
- value: He
477
+ value: Je
477
478
  })
478
479
  });
479
480
  }
480
- ae < 0 && x("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
481
+ oe < 0 && x("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
481
482
  }
482
483
  }
483
- var we = R.ReactCurrentDispatcher, Ce;
484
- function pe(n, i, u) {
484
+ var Ce = R.ReactCurrentDispatcher, ke;
485
+ function he(n, i, u) {
485
486
  {
486
- if (Ce === void 0)
487
+ if (ke === void 0)
487
488
  try {
488
489
  throw Error();
489
490
  } catch (y) {
490
491
  var h = y.stack.trim().match(/\n( *(at )?)/);
491
- Ce = h && h[1] || "";
492
+ ke = h && h[1] || "";
492
493
  }
493
494
  return `
494
- ` + Ce + n;
495
+ ` + ke + n;
495
496
  }
496
497
  }
497
- var ke = !1, he;
498
+ var Ee = !1, ve;
498
499
  {
499
500
  var Ft = typeof WeakMap == "function" ? WeakMap : Map;
500
- he = new Ft();
501
+ ve = new Ft();
501
502
  }
502
- function Ke(n, i) {
503
- if (!n || ke)
503
+ function Qe(n, i) {
504
+ if (!n || Ee)
504
505
  return "";
505
506
  {
506
- var u = he.get(n);
507
+ var u = ve.get(n);
507
508
  if (u !== void 0)
508
509
  return u;
509
510
  }
510
511
  var h;
511
- ke = !0;
512
+ Ee = !0;
512
513
  var y = Error.prepareStackTrace;
513
514
  Error.prepareStackTrace = void 0;
514
515
  var j;
515
- j = we.current, we.current = null, Ot();
516
+ j = Ce.current, Ce.current = null, Ot();
516
517
  try {
517
518
  if (i) {
518
519
  var _ = function() {
@@ -558,65 +559,65 @@ function Zn() {
558
559
  if (I--, N--, N < 0 || g[I] !== L[N]) {
559
560
  var z = `
560
561
  ` + g[I].replace(" at new ", " at ");
561
- return n.displayName && z.includes("<anonymous>") && (z = z.replace("<anonymous>", n.displayName)), typeof n == "function" && he.set(n, z), z;
562
+ return n.displayName && z.includes("<anonymous>") && (z = z.replace("<anonymous>", n.displayName)), typeof n == "function" && ve.set(n, z), z;
562
563
  }
563
564
  while (I >= 1 && N >= 0);
564
565
  break;
565
566
  }
566
567
  }
567
568
  } finally {
568
- ke = !1, we.current = j, Lt(), Error.prepareStackTrace = y;
569
+ Ee = !1, Ce.current = j, Lt(), Error.prepareStackTrace = y;
569
570
  }
570
- var ne = n ? n.displayName || n.name : "", ut = ne ? pe(ne) : "";
571
- return typeof n == "function" && he.set(n, ut), ut;
571
+ var ne = n ? n.displayName || n.name : "", dt = ne ? he(ne) : "";
572
+ return typeof n == "function" && ve.set(n, dt), dt;
572
573
  }
573
574
  function Mt(n, i, u) {
574
- return Ke(n, !1);
575
+ return Qe(n, !1);
575
576
  }
576
577
  function Dt(n) {
577
578
  var i = n.prototype;
578
579
  return !!(i && i.isReactComponent);
579
580
  }
580
- function ve(n, i, u) {
581
+ function ge(n, i, u) {
581
582
  if (n == null)
582
583
  return "";
583
584
  if (typeof n == "function")
584
- return Ke(n, Dt(n));
585
+ return Qe(n, Dt(n));
585
586
  if (typeof n == "string")
586
- return pe(n);
587
+ return he(n);
587
588
  switch (n) {
588
589
  case m:
589
- return pe("Suspense");
590
+ return he("Suspense");
590
591
  case p:
591
- return pe("SuspenseList");
592
+ return he("SuspenseList");
592
593
  }
593
594
  if (typeof n == "object")
594
595
  switch (n.$$typeof) {
595
596
  case d:
596
597
  return Mt(n.render);
597
598
  case b:
598
- return ve(n.type, i, u);
599
+ return ge(n.type, i, u);
599
600
  case S: {
600
601
  var h = n, y = h._payload, j = h._init;
601
602
  try {
602
- return ve(j(y), i, u);
603
+ return ge(j(y), i, u);
603
604
  } catch {
604
605
  }
605
606
  }
606
607
  }
607
608
  return "";
608
609
  }
609
- var ge = Object.prototype.hasOwnProperty, Qe = {}, qe = R.ReactDebugCurrentFrame;
610
- function be(n) {
610
+ var be = Object.prototype.hasOwnProperty, qe = {}, et = R.ReactDebugCurrentFrame;
611
+ function _e(n) {
611
612
  if (n) {
612
- var i = n._owner, u = ve(n.type, n._source, i ? i.type : null);
613
- qe.setExtraStackFrame(u);
613
+ var i = n._owner, u = ge(n.type, n._source, i ? i.type : null);
614
+ et.setExtraStackFrame(u);
614
615
  } else
615
- qe.setExtraStackFrame(null);
616
+ et.setExtraStackFrame(null);
616
617
  }
617
618
  function $t(n, i, u, h, y) {
618
619
  {
619
- var j = Function.call.bind(ge);
620
+ var j = Function.call.bind(be);
620
621
  for (var _ in n)
621
622
  if (j(n, _)) {
622
623
  var g = void 0;
@@ -629,12 +630,12 @@ function Zn() {
629
630
  } catch (I) {
630
631
  g = I;
631
632
  }
632
- g && !(g instanceof Error) && (be(y), x("%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).", h || "React class", u, _, typeof g), be(null)), g instanceof Error && !(g.message in Qe) && (Qe[g.message] = !0, be(y), x("Failed %s type: %s", u, g.message), be(null));
633
+ g && !(g instanceof Error) && (_e(y), x("%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).", h || "React class", u, _, typeof g), _e(null)), g instanceof Error && !(g.message in qe) && (qe[g.message] = !0, _e(y), x("Failed %s type: %s", u, g.message), _e(null));
633
634
  }
634
635
  }
635
636
  }
636
637
  var zt = Array.isArray;
637
- function Ee(n) {
638
+ function Re(n) {
638
639
  return zt(n);
639
640
  }
640
641
  function Zt(n) {
@@ -645,27 +646,27 @@ function Zn() {
645
646
  }
646
647
  function At(n) {
647
648
  try {
648
- return et(n), !1;
649
+ return tt(n), !1;
649
650
  } catch {
650
651
  return !0;
651
652
  }
652
653
  }
653
- function et(n) {
654
+ function tt(n) {
654
655
  return "" + n;
655
656
  }
656
- function tt(n) {
657
+ function nt(n) {
657
658
  if (At(n))
658
- return x("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Zt(n)), et(n);
659
+ return x("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Zt(n)), tt(n);
659
660
  }
660
- var oe = R.ReactCurrentOwner, Ut = {
661
+ var ie = R.ReactCurrentOwner, Ut = {
661
662
  key: !0,
662
663
  ref: !0,
663
664
  __self: !0,
664
665
  __source: !0
665
- }, nt, rt, Re;
666
- Re = {};
666
+ }, rt, st, Ie;
667
+ Ie = {};
667
668
  function Wt(n) {
668
- if (ge.call(n, "ref")) {
669
+ if (be.call(n, "ref")) {
669
670
  var i = Object.getOwnPropertyDescriptor(n, "ref").get;
670
671
  if (i && i.isReactWarning)
671
672
  return !1;
@@ -673,7 +674,7 @@ function Zn() {
673
674
  return n.ref !== void 0;
674
675
  }
675
676
  function Gt(n) {
676
- if (ge.call(n, "key")) {
677
+ if (be.call(n, "key")) {
677
678
  var i = Object.getOwnPropertyDescriptor(n, "key").get;
678
679
  if (i && i.isReactWarning)
679
680
  return !1;
@@ -681,15 +682,15 @@ function Zn() {
681
682
  return n.key !== void 0;
682
683
  }
683
684
  function Vt(n, i) {
684
- if (typeof n.ref == "string" && oe.current && i && oe.current.stateNode !== i) {
685
- var u = U(oe.current.type);
686
- Re[u] || (x('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', U(oe.current.type), n.ref), Re[u] = !0);
685
+ if (typeof n.ref == "string" && ie.current && i && ie.current.stateNode !== i) {
686
+ var u = U(ie.current.type);
687
+ Ie[u] || (x('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', U(ie.current.type), n.ref), Ie[u] = !0);
687
688
  }
688
689
  }
689
690
  function Yt(n, i) {
690
691
  {
691
692
  var u = function() {
692
- nt || (nt = !0, x("%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)", i));
693
+ rt || (rt = !0, x("%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)", i));
693
694
  };
694
695
  u.isReactWarning = !0, Object.defineProperty(n, "key", {
695
696
  get: u,
@@ -700,7 +701,7 @@ function Zn() {
700
701
  function Bt(n, i) {
701
702
  {
702
703
  var u = function() {
703
- rt || (rt = !0, x("%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)", i));
704
+ st || (st = !0, x("%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)", i));
704
705
  };
705
706
  u.isReactWarning = !0, Object.defineProperty(n, "ref", {
706
707
  get: u,
@@ -740,9 +741,9 @@ function Zn() {
740
741
  function Ht(n, i, u, h, y) {
741
742
  {
742
743
  var j, _ = {}, g = null, L = null;
743
- u !== void 0 && (tt(u), g = "" + u), Gt(i) && (tt(i.key), g = "" + i.key), Wt(i) && (L = i.ref, Vt(i, y));
744
+ u !== void 0 && (nt(u), g = "" + u), Gt(i) && (nt(i.key), g = "" + i.key), Wt(i) && (L = i.ref, Vt(i, y));
744
745
  for (j in i)
745
- ge.call(i, j) && !Ut.hasOwnProperty(j) && (_[j] = i[j]);
746
+ be.call(i, j) && !Ut.hasOwnProperty(j) && (_[j] = i[j]);
746
747
  if (n && n.defaultProps) {
747
748
  var I = n.defaultProps;
748
749
  for (j in I)
@@ -752,26 +753,26 @@ function Zn() {
752
753
  var N = typeof n == "function" ? n.displayName || n.name || "Unknown" : n;
753
754
  g && Yt(_, N), L && Bt(_, N);
754
755
  }
755
- return Xt(n, g, L, y, h, oe.current, _);
756
+ return Xt(n, g, L, y, h, ie.current, _);
756
757
  }
757
758
  }
758
- var Ie = R.ReactCurrentOwner, st = R.ReactDebugCurrentFrame;
759
+ var Te = R.ReactCurrentOwner, at = R.ReactDebugCurrentFrame;
759
760
  function te(n) {
760
761
  if (n) {
761
- var i = n._owner, u = ve(n.type, n._source, i ? i.type : null);
762
- st.setExtraStackFrame(u);
762
+ var i = n._owner, u = ge(n.type, n._source, i ? i.type : null);
763
+ at.setExtraStackFrame(u);
763
764
  } else
764
- st.setExtraStackFrame(null);
765
+ at.setExtraStackFrame(null);
765
766
  }
766
- var Te;
767
- Te = !1;
768
- function Ne(n) {
767
+ var Ne;
768
+ Ne = !1;
769
+ function Pe(n) {
769
770
  return typeof n == "object" && n !== null && n.$$typeof === t;
770
771
  }
771
- function at() {
772
+ function ot() {
772
773
  {
773
- if (Ie.current) {
774
- var n = U(Ie.current.type);
774
+ if (Te.current) {
775
+ var n = U(Te.current.type);
775
776
  if (n)
776
777
  return `
777
778
 
@@ -791,10 +792,10 @@ Check your code at ` + i + ":" + u + ".";
791
792
  return "";
792
793
  }
793
794
  }
794
- var ot = {};
795
+ var it = {};
795
796
  function Kt(n) {
796
797
  {
797
- var i = at();
798
+ var i = ot();
798
799
  if (!i) {
799
800
  var u = typeof n == "string" ? n : n.displayName || n.name;
800
801
  u && (i = `
@@ -804,35 +805,35 @@ Check the top-level render call using <` + u + ">.");
804
805
  return i;
805
806
  }
806
807
  }
807
- function it(n, i) {
808
+ function ct(n, i) {
808
809
  {
809
810
  if (!n._store || n._store.validated || n.key != null)
810
811
  return;
811
812
  n._store.validated = !0;
812
813
  var u = Kt(i);
813
- if (ot[u])
814
+ if (it[u])
814
815
  return;
815
- ot[u] = !0;
816
+ it[u] = !0;
816
817
  var h = "";
817
- n && n._owner && n._owner !== Ie.current && (h = " It was passed a child from " + U(n._owner.type) + "."), te(n), x('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', u, h), te(null);
818
+ n && n._owner && n._owner !== Te.current && (h = " It was passed a child from " + U(n._owner.type) + "."), te(n), x('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', u, h), te(null);
818
819
  }
819
820
  }
820
- function ct(n, i) {
821
+ function lt(n, i) {
821
822
  {
822
823
  if (typeof n != "object")
823
824
  return;
824
- if (Ee(n))
825
+ if (Re(n))
825
826
  for (var u = 0; u < n.length; u++) {
826
827
  var h = n[u];
827
- Ne(h) && it(h, i);
828
+ Pe(h) && ct(h, i);
828
829
  }
829
- else if (Ne(n))
830
+ else if (Pe(n))
830
831
  n._store && (n._store.validated = !0);
831
832
  else if (n) {
832
- var y = C(n);
833
+ var y = k(n);
833
834
  if (typeof y == "function" && y !== n.entries)
834
835
  for (var j = y.call(n), _; !(_ = j.next()).done; )
835
- Ne(_.value) && it(_.value, i);
836
+ Pe(_.value) && ct(_.value, i);
836
837
  }
837
838
  }
838
839
  }
@@ -853,8 +854,8 @@ Check the top-level render call using <` + u + ">.");
853
854
  if (u) {
854
855
  var h = U(i);
855
856
  $t(u, n.props, "prop", h, n);
856
- } else if (i.PropTypes !== void 0 && !Te) {
857
- Te = !0;
857
+ } else if (i.PropTypes !== void 0 && !Ne) {
858
+ Ne = !0;
858
859
  var y = U(i);
859
860
  x("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", y || "Unknown");
860
861
  }
@@ -873,16 +874,16 @@ Check the top-level render call using <` + u + ">.");
873
874
  n.ref !== null && (te(n), x("Invalid attribute `ref` supplied to `React.Fragment`."), te(null));
874
875
  }
875
876
  }
876
- function lt(n, i, u, h, y, j) {
877
+ function ut(n, i, u, h, y, j) {
877
878
  {
878
879
  var _ = Nt(n);
879
880
  if (!_) {
880
881
  var g = "";
881
882
  (n === void 0 || typeof n == "object" && n !== null && Object.keys(n).length === 0) && (g += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
882
883
  var L = Jt(y);
883
- L ? g += L : g += at();
884
+ L ? g += L : g += ot();
884
885
  var I;
885
- n === null ? I = "null" : Ee(n) ? I = "array" : n !== void 0 && n.$$typeof === t ? (I = "<" + (U(n.type) || "Unknown") + " />", g = " Did you accidentally export a JSX literal instead of a component?") : I = typeof n, x("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", I, g);
886
+ n === null ? I = "null" : Re(n) ? I = "array" : n !== void 0 && n.$$typeof === t ? (I = "<" + (U(n.type) || "Unknown") + " />", g = " Did you accidentally export a JSX literal instead of a component?") : I = typeof n, x("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", I, g);
886
887
  }
887
888
  var N = Ht(n, i, u, y, j);
888
889
  if (N == null)
@@ -891,49 +892,49 @@ Check the top-level render call using <` + u + ">.");
891
892
  var z = i.children;
892
893
  if (z !== void 0)
893
894
  if (h)
894
- if (Ee(z)) {
895
+ if (Re(z)) {
895
896
  for (var ne = 0; ne < z.length; ne++)
896
- ct(z[ne], n);
897
+ lt(z[ne], n);
897
898
  Object.freeze && Object.freeze(z);
898
899
  } else
899
900
  x("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
900
901
  else
901
- ct(z, n);
902
+ lt(z, n);
902
903
  }
903
904
  return n === s ? qt(N) : Qt(N), N;
904
905
  }
905
906
  }
906
907
  function en(n, i, u) {
907
- return lt(n, i, u, !0);
908
+ return ut(n, i, u, !0);
908
909
  }
909
910
  function tn(n, i, u) {
910
- return lt(n, i, u, !1);
911
+ return ut(n, i, u, !1);
911
912
  }
912
913
  var nn = tn, rn = en;
913
- ce.Fragment = s, ce.jsx = nn, ce.jsxs = rn;
914
- }()), ce;
915
- }
916
- process.env.NODE_ENV === "production" ? De.exports = zn() : De.exports = Zn();
917
- var a = De.exports;
918
- const An = "_notice_820sc_2", Un = "_error_820sc_9", Wn = "_success_820sc_12", Gn = "_remark_820sc_15", Vn = "_copy_820sc_18", Yn = {
919
- notice: An,
920
- error: Un,
921
- success: Wn,
922
- remark: Gn,
923
- copy: Vn,
914
+ le.Fragment = s, le.jsx = nn, le.jsxs = rn;
915
+ }()), le;
916
+ }
917
+ process.env.NODE_ENV === "production" ? $e.exports = Zn() : $e.exports = An();
918
+ var a = $e.exports;
919
+ const Un = "_notice_820sc_2", Wn = "_error_820sc_9", Gn = "_success_820sc_12", Vn = "_remark_820sc_15", Yn = "_copy_820sc_18", Bn = {
920
+ notice: Un,
921
+ error: Wn,
922
+ success: Gn,
923
+ remark: Vn,
924
+ copy: Yn,
924
925
  "show-notice": "_show-notice_820sc_1",
925
926
  "hide-notice": "_hide-notice_820sc_1"
926
927
  };
927
928
  let B = {};
928
- function Bn() {
929
+ function Xn() {
929
930
  let [e, t] = E.useState([]);
930
931
  return B.set = (r) => {
931
932
  t([...e, r]);
932
933
  }, B.del = (r) => {
933
934
  t(e.filter((s) => s.key !== r));
934
- }, e.length === 0 ? "" : /* @__PURE__ */ a.jsx("ul", { className: Yn.notice, children: e.map((r) => r.item) });
935
+ }, e.length === 0 ? "" : /* @__PURE__ */ a.jsx("ul", { className: Bn.notice, children: e.map((r) => r.item) });
935
936
  }
936
- function fe({ data: e }) {
937
+ function me({ data: e }) {
937
938
  let [t, r] = E.useState("show");
938
939
  E.useEffect(() => {
939
940
  setTimeout(function() {
@@ -966,25 +967,25 @@ function fe({ data: e }) {
966
967
  /* @__PURE__ */ a.jsx("p", { children: e.text })
967
968
  ] });
968
969
  }
969
- function Xn(e) {
970
+ function Hn(e) {
970
971
  let t = Date.now(), r = { key: t, ...e };
971
- B.set({ item: /* @__PURE__ */ a.jsx(fe, { data: r }, t), key: t });
972
+ B.set({ item: /* @__PURE__ */ a.jsx(me, { data: r }, t), key: t });
972
973
  }
973
- function Hn(e) {
974
+ function Jn(e) {
974
975
  let t = Date.now(), r = { key: t, text: e, type: "error" };
975
- B.set({ item: /* @__PURE__ */ a.jsx(fe, { data: r }, t), key: t });
976
+ B.set({ item: /* @__PURE__ */ a.jsx(me, { data: r }, t), key: t });
976
977
  }
977
- function Jn(e) {
978
+ function Kn(e) {
978
979
  let t = Date.now(), r = { key: t, text: e, type: "success" };
979
- B.set({ item: /* @__PURE__ */ a.jsx(fe, { data: r }, t), key: t });
980
+ B.set({ item: /* @__PURE__ */ a.jsx(me, { data: r }, t), key: t });
980
981
  }
981
- function Kn(e) {
982
+ function Qn(e) {
982
983
  let t = Date.now(), r = { key: t, text: e, type: "remark" };
983
- B.set({ item: /* @__PURE__ */ a.jsx(fe, { data: r }, t), key: t });
984
+ B.set({ item: /* @__PURE__ */ a.jsx(me, { data: r }, t), key: t });
984
985
  }
985
- function Qn(e) {
986
+ function qn(e) {
986
987
  let t = Date.now(), r = { key: t, text: e, type: "copy" };
987
- B.set({ item: /* @__PURE__ */ a.jsx(fe, { data: r }, t), key: t });
988
+ B.set({ item: /* @__PURE__ */ a.jsx(me, { data: r }, t), key: t });
988
989
  }
989
990
  const Q = {};
990
991
  Q.error = () => /* @__PURE__ */ a.jsxs("svg", { viewBox: "0 0 24 24", fill: "none", children: [
@@ -1019,20 +1020,20 @@ Q.success = () => /* @__PURE__ */ a.jsxs("svg", { viewBox: "0 0 24 24", fill: "n
1019
1020
  }
1020
1021
  )
1021
1022
  ] });
1022
- const qn = "_alerts_1e9y0_1", er = "_menuAnimation_1e9y0_1", tr = "_menuItemAnimation_1e9y0_1", nr = "_allert_1e9y0_111", rr = {
1023
- alerts: qn,
1024
- menuAnimation: er,
1025
- menuItemAnimation: tr,
1023
+ const er = "_alerts_1e9y0_1", tr = "_menuAnimation_1e9y0_1", nr = "_menuItemAnimation_1e9y0_1", rr = "_allert_1e9y0_111", sr = {
1024
+ alerts: er,
1025
+ menuAnimation: tr,
1026
+ menuItemAnimation: nr,
1026
1027
  "--body": "_--body_1e9y0_103",
1027
- allert: nr,
1028
+ allert: rr,
1028
1029
  "--form": "_--form_1e9y0_111"
1029
1030
  };
1030
- let le = {};
1031
- function sr() {
1031
+ let ue = {};
1032
+ function ar() {
1032
1033
  let [e, t] = E.useState("");
1033
- return le.set = (r) => t(r), le.del = () => t(""), /* @__PURE__ */ a.jsx(a.Fragment, { children: e });
1034
+ return ue.set = (r) => t(r), ue.del = () => t(""), /* @__PURE__ */ a.jsx(a.Fragment, { children: e });
1034
1035
  }
1035
- const ar = ({ data: e, callback: t }) => (e.button = e.button === void 0 ? "Подтвердить" : e.button, /* @__PURE__ */ a.jsxs("div", { className: rr.alerts, children: [
1036
+ const or = ({ data: e, callback: t }) => (e.button = e.button === void 0 ? "Подтвердить" : e.button, /* @__PURE__ */ a.jsxs("div", { className: sr.alerts, children: [
1036
1037
  /* @__PURE__ */ a.jsxs("dl", { children: [
1037
1038
  /* @__PURE__ */ a.jsx("dt", { children: e.title }),
1038
1039
  /* @__PURE__ */ a.jsx("dd", { children: e.text }),
@@ -1041,24 +1042,24 @@ const ar = ({ data: e, callback: t }) => (e.button = e.button === void 0 ? "По
1041
1042
  {
1042
1043
  "data-color": e.color || "blue",
1043
1044
  onClick: () => {
1044
- t(), le.del();
1045
+ t(), ue.del();
1045
1046
  },
1046
1047
  children: e.button
1047
1048
  }
1048
1049
  ) })
1049
1050
  ] }),
1050
- /* @__PURE__ */ a.jsx("div", { className: "--body", onClick: le.del })
1051
+ /* @__PURE__ */ a.jsx("div", { className: "--body", onClick: ue.del })
1051
1052
  ] }));
1052
- function or(e, t) {
1053
- le.set(/* @__PURE__ */ a.jsx(ar, { data: e, callback: t }));
1053
+ function ir(e, t) {
1054
+ ue.set(/* @__PURE__ */ a.jsx(or, { data: e, callback: t }));
1054
1055
  }
1055
- function ir({ children: e }) {
1056
+ function cr({ children: e }) {
1056
1057
  return /* @__PURE__ */ a.jsx("div", { className: "l", children: /* @__PURE__ */ a.jsx("ul", { children: e }) });
1057
1058
  }
1058
- function cr({ children: e }) {
1059
+ function lr({ children: e }) {
1059
1060
  return /* @__PURE__ */ a.jsx("div", { className: "s", children: e });
1060
1061
  }
1061
- const lr = ({
1062
+ const ur = ({
1062
1063
  children: e,
1063
1064
  disabled: t,
1064
1065
  label: r,
@@ -1068,45 +1069,45 @@ const lr = ({
1068
1069
  t || s && s(l);
1069
1070
  };
1070
1071
  return /* @__PURE__ */ a.jsx("button", { disabled: t, onClick: o, children: r });
1071
- }, ur = "_white_1iomo_14", dr = "_black_1iomo_26", fr = "_shake_1iomo_1", mr = "_modal_1iomo_73", pr = "_o_1iomo_83", hr = "_w_1iomo_14", vr = "_h_1iomo_106", gr = "_l_1iomo_120", br = "_t_1iomo_158", _r = "_m_1iomo_73", xr = "_x_1iomo_166", yr = "_s_1iomo_176", Sr = "_c_1iomo_181", jr = "_f_1iomo_186", wr = "_btn_1iomo_229", Cr = "_g_1iomo_242", kr = "_confirm_1iomo_320", Er = "_cancel_1iomo_325", Rr = "_disabled_1iomo_330", Ir = "_active_1iomo_387", Tr = "_coincidence_1iomo_393", V = {
1072
- white: ur,
1073
- black: dr,
1074
- shake: fr,
1075
- modal: mr,
1076
- o: pr,
1077
- w: hr,
1078
- h: vr,
1079
- l: gr,
1080
- t: br,
1081
- m: _r,
1082
- x: xr,
1083
- s: yr,
1084
- c: Sr,
1085
- f: jr,
1086
- btn: wr,
1087
- g: Cr,
1072
+ }, dr = "_white_1iomo_14", fr = "_black_1iomo_26", mr = "_shake_1iomo_1", pr = "_modal_1iomo_73", hr = "_o_1iomo_83", vr = "_w_1iomo_14", gr = "_h_1iomo_106", br = "_l_1iomo_120", _r = "_t_1iomo_158", xr = "_m_1iomo_73", yr = "_x_1iomo_166", Sr = "_s_1iomo_176", jr = "_c_1iomo_181", wr = "_f_1iomo_186", Cr = "_btn_1iomo_229", kr = "_g_1iomo_242", Er = "_confirm_1iomo_320", Rr = "_cancel_1iomo_325", Ir = "_disabled_1iomo_330", Tr = "_active_1iomo_387", Nr = "_coincidence_1iomo_393", V = {
1073
+ white: dr,
1074
+ black: fr,
1075
+ shake: mr,
1076
+ modal: pr,
1077
+ o: hr,
1078
+ w: vr,
1079
+ h: gr,
1080
+ l: br,
1081
+ t: _r,
1082
+ m: xr,
1083
+ x: yr,
1084
+ s: Sr,
1085
+ c: jr,
1086
+ f: wr,
1087
+ btn: Cr,
1088
+ g: kr,
1088
1089
  "size-a": "_size-a_1iomo_294",
1089
1090
  "size-s": "_size-s_1iomo_298",
1090
1091
  "size-m": "_size-m_1iomo_302",
1091
1092
  "size-l": "_size-l_1iomo_306",
1092
1093
  "size-x": "_size-x_1iomo_310",
1093
1094
  "size-f": "_size-f_1iomo_314",
1094
- confirm: kr,
1095
- cancel: Er,
1096
- disabled: Rr,
1095
+ confirm: Er,
1096
+ cancel: Rr,
1097
+ disabled: Ir,
1097
1098
  await: "_await_1iomo_337",
1098
- active: Ir,
1099
- coincidence: Tr
1099
+ active: Tr,
1100
+ coincidence: Nr
1100
1101
  };
1101
- let re = {};
1102
- const Nr = ({ config: e }) => {
1102
+ let se = {};
1103
+ const Pr = ({ config: e }) => {
1103
1104
  let [t, r] = E.useState([]);
1104
- return re.x = () => {
1105
+ return se.x = () => {
1105
1106
  r([]);
1106
- }, re.config = e, re.add = (s) => {
1107
+ }, se.config = e, se.add = (s) => {
1107
1108
  r([...t, s]);
1108
1109
  }, /* @__PURE__ */ a.jsx(a.Fragment, { children: t.map((s) => s) });
1109
- }, Pr = ({
1110
+ }, Or = ({
1110
1111
  children: e,
1111
1112
  title: t,
1112
1113
  button: r,
@@ -1156,7 +1157,7 @@ const Nr = ({ config: e }) => {
1156
1157
  ] }),
1157
1158
  e,
1158
1159
  r !== void 0 ? /* @__PURE__ */ a.jsx(
1159
- lr,
1160
+ ur,
1160
1161
  {
1161
1162
  label: String(r.name),
1162
1163
  onClick: m
@@ -1166,41 +1167,41 @@ const Nr = ({ config: e }) => {
1166
1167
  ]
1167
1168
  }
1168
1169
  ) : "" });
1169
- }, Or = (e) => {
1170
- re.add(/* @__PURE__ */ a.jsx(Lr, { children: e }, String(Date.now())));
1171
- }, Lr = ({ children: e }) => /* @__PURE__ */ a.jsx(a.Fragment, { children: e }), Fr = ({ type: e, name: t, params: r }) => {
1170
+ }, Lr = (e) => {
1171
+ se.add(/* @__PURE__ */ a.jsx(Fr, { children: e }, String(Date.now())));
1172
+ }, Fr = ({ children: e }) => /* @__PURE__ */ a.jsx(a.Fragment, { children: e }), Mr = ({ type: e, name: t, params: r }) => {
1172
1173
  let [s, o] = E.useState(null);
1173
1174
  return E.useEffect(() => {
1174
- re.config(e, t, r, o);
1175
+ se.config(e, t, r, o);
1175
1176
  }, [r.id]), /* @__PURE__ */ a.jsx(a.Fragment, { children: s });
1176
- }, Mr = (e, t, r) => {
1177
- re.config(e, t, r);
1178
- }, Dr = { List: ir, Scroll: cr, Init: Nr, Main: Pr, Add: Or, Icon: Fr, Open: Mr }, $r = ({ children: e, config: t, crypto: r, ...s }) => on(r, /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
1179
- /* @__PURE__ */ a.jsx(Dr.Init, { config: t.modal }),
1180
- /* @__PURE__ */ a.jsx(Bn, {}),
1181
- /* @__PURE__ */ a.jsx(sr, {}),
1177
+ }, Dr = (e, t, r) => {
1178
+ se.config(e, t, r);
1179
+ }, $r = { List: cr, Scroll: lr, Init: Pr, Main: Or, Add: Lr, Icon: Mr, Open: Dr }, zr = ({ children: e, config: t, crypto: r, ...s }) => on(r, /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
1180
+ /* @__PURE__ */ a.jsx($r.Init, { config: t.modal }),
1181
+ /* @__PURE__ */ a.jsx(Xn, {}),
1182
+ /* @__PURE__ */ a.jsx(ar, {}),
1182
1183
  e
1183
- ] })), zr = ({ children: e, ...t }) => /* @__PURE__ */ a.jsx("menu", { children: e }), Zr = ({ children: e, ...t }) => /* @__PURE__ */ a.jsxs("header", { children: [
1184
+ ] })), Zr = ({ children: e, ...t }) => /* @__PURE__ */ a.jsx("menu", { children: e }), Ar = ({ children: e, ...t }) => /* @__PURE__ */ a.jsxs("header", { children: [
1184
1185
  "xz",
1185
1186
  e
1186
- ] }), Ar = "_payment_1lxfv_1", Ur = {
1187
- payment: Ar
1187
+ ] }), Ur = "_payment_1lxfv_1", Wr = {
1188
+ payment: Ur
1188
1189
  };
1189
- function Wr() {
1190
+ function Gr() {
1190
1191
  let [e, t] = E.useState({});
1191
- return !e.active && !e.payment ? "" : /* @__PURE__ */ a.jsx("div", { className: Ur.payment, children: "Истек срок оплаты! Доступ доступен до 16.04.2024" });
1192
+ return !e.active && !e.payment ? "" : /* @__PURE__ */ a.jsx("div", { className: Wr.payment, children: "Истек срок оплаты! Доступ доступен до 16.04.2024" });
1192
1193
  }
1193
- const da = ({ children: e, ...t }) => {
1194
+ const fa = ({ children: e, ...t }) => {
1194
1195
  let r = {};
1195
1196
  return r.enCode = (s) => JSON.stringify(s).toString(), r.deCode = (s) => JSON.parse(s), /* @__PURE__ */ a.jsxs("div", { className: "app", children: [
1196
- /* @__PURE__ */ a.jsx(Wr, {}),
1197
- /* @__PURE__ */ a.jsx(zr, {}),
1197
+ /* @__PURE__ */ a.jsx(Gr, {}),
1198
1198
  /* @__PURE__ */ a.jsx(Zr, {}),
1199
- /* @__PURE__ */ a.jsx($r, { config: { modal: {} }, crypto: r }),
1199
+ /* @__PURE__ */ a.jsx(Ar, {}),
1200
+ /* @__PURE__ */ a.jsx(zr, { config: { modal: {} }, crypto: r }),
1200
1201
  e
1201
1202
  ] });
1202
- }, Gr = ({ list: e, onClick: t, active: r, size: s, view: o }) => /* @__PURE__ */ a.jsx("nav", { children: /* @__PURE__ */ a.jsx("ul", { className: [s, o].join(" "), children: e.map((l) => /* @__PURE__ */ a.jsx(
1203
- Vr,
1203
+ }, Vr = ({ list: e, onClick: t, active: r, size: s, view: o }) => /* @__PURE__ */ a.jsx("nav", { children: /* @__PURE__ */ a.jsx("ul", { className: [s, o].join(" "), children: e.map((l) => /* @__PURE__ */ a.jsx(
1204
+ Yr,
1204
1205
  {
1205
1206
  onClick: t,
1206
1207
  active: r,
@@ -1208,9 +1209,9 @@ const da = ({ children: e, ...t }) => {
1208
1209
  link: l.link
1209
1210
  },
1210
1211
  l.link
1211
- )) }) }), Vr = ({ onClick: e, label: t, link: r, active: s }) => /* @__PURE__ */ a.jsx("li", { "tabs-active": String(s === r), onClick: () => e(r), children: t });
1212
- Gr.defaultProps = { size: "M", view: "H" };
1213
- const Yr = ({
1212
+ )) }) }), Yr = ({ onClick: e, label: t, link: r, active: s }) => /* @__PURE__ */ a.jsx("li", { "tabs-active": String(s === r), onClick: () => e(r), children: t });
1213
+ Vr.defaultProps = { size: "M", view: "H" };
1214
+ const Br = ({
1214
1215
  title: e = "",
1215
1216
  button: t,
1216
1217
  description: r = "",
@@ -1230,9 +1231,9 @@ const Yr = ({
1230
1231
  ] }),
1231
1232
  /* @__PURE__ */ a.jsx("ul", { children: s }),
1232
1233
  r && /* @__PURE__ */ a.jsx("article", { children: r })
1233
- ] }), Br = "_setting_1r0pc_2", Xr = {
1234
- setting: Br
1235
- }, Hr = ({ children: e }) => /* @__PURE__ */ a.jsx("div", { className: Xr.setting, children: e }), Jr = ({ label: e, children: t }) => {
1234
+ ] }), Xr = "_setting_1r0pc_2", Hr = {
1235
+ setting: Xr
1236
+ }, Jr = ({ children: e }) => /* @__PURE__ */ a.jsx("div", { className: Hr.setting, children: e }), Kr = ({ label: e, children: t }) => {
1236
1237
  let [r, s] = E.useState(!1);
1237
1238
  return /* @__PURE__ */ a.jsxs("li", { "data-item": "accordion", children: [
1238
1239
  /* @__PURE__ */ a.jsxs("dl", { onClick: () => s(!r), children: [
@@ -1241,10 +1242,10 @@ const Yr = ({
1241
1242
  ] }),
1242
1243
  r && /* @__PURE__ */ a.jsx("div", { children: t })
1243
1244
  ] });
1244
- }, Kr = ({ label: e, onClick: t, button: r }) => /* @__PURE__ */ a.jsx("li", { children: /* @__PURE__ */ a.jsxs("dl", { children: [
1245
+ }, Qr = ({ label: e, onClick: t, button: r }) => /* @__PURE__ */ a.jsx("li", { children: /* @__PURE__ */ a.jsxs("dl", { children: [
1245
1246
  /* @__PURE__ */ a.jsx("dt", { children: e }),
1246
1247
  /* @__PURE__ */ a.jsx("dd", { role: "button", onClick: () => t(), children: r })
1247
- ] }) }), Qr = ({ active: e, onClick: t }) => (console.log(e), e = typeof e == "number" ? !!e : e, /* @__PURE__ */ a.jsx(
1248
+ ] }) }), qr = ({ active: e, onClick: t }) => (console.log(e), e = typeof e == "number" ? !!e : e, /* @__PURE__ */ a.jsx(
1248
1249
  "div",
1249
1250
  {
1250
1251
  role: "switch",
@@ -1253,25 +1254,25 @@ const Yr = ({
1253
1254
  },
1254
1255
  "aria-checked": e ? "true" : "false"
1255
1256
  }
1256
- )), qr = { Switch: Qr }, es = ({ label: e, onClick: t, active: r }) => /* @__PURE__ */ a.jsx("li", { children: /* @__PURE__ */ a.jsxs("dl", { children: [
1257
+ )), es = { Switch: qr }, ts = ({ label: e, onClick: t, active: r }) => /* @__PURE__ */ a.jsx("li", { children: /* @__PURE__ */ a.jsxs("dl", { children: [
1257
1258
  /* @__PURE__ */ a.jsx("dt", { children: e }),
1258
- /* @__PURE__ */ a.jsx("dd", { children: /* @__PURE__ */ a.jsx(qr.Switch, { onClick: t, active: r }) })
1259
- ] }) }), ts = ({ label: e, active: t, options: r }) => /* @__PURE__ */ a.jsx("li", { children: /* @__PURE__ */ a.jsxs("dl", { children: [
1259
+ /* @__PURE__ */ a.jsx("dd", { children: /* @__PURE__ */ a.jsx(es.Switch, { onClick: t, active: r }) })
1260
+ ] }) }), ns = ({ label: e, active: t, options: r }) => /* @__PURE__ */ a.jsx("li", { children: /* @__PURE__ */ a.jsxs("dl", { children: [
1260
1261
  /* @__PURE__ */ a.jsx("dt", { children: e }),
1261
1262
  /* @__PURE__ */ a.jsx("dd", { role: "info", children: t })
1262
- ] }) }), ns = ({ label: e, info: t }) => /* @__PURE__ */ a.jsx("li", { children: /* @__PURE__ */ a.jsxs("dl", { children: [
1263
+ ] }) }), rs = ({ label: e, info: t }) => /* @__PURE__ */ a.jsx("li", { children: /* @__PURE__ */ a.jsxs("dl", { children: [
1263
1264
  /* @__PURE__ */ a.jsx("dt", { children: e }),
1264
1265
  /* @__PURE__ */ a.jsx("dd", { role: "info", children: t })
1265
- ] }) }), rs = ({ label: e, children: t }) => /* @__PURE__ */ a.jsx("li", { children: /* @__PURE__ */ a.jsxs("dl", { children: [
1266
+ ] }) }), ss = ({ label: e, children: t }) => /* @__PURE__ */ a.jsx("li", { children: /* @__PURE__ */ a.jsxs("dl", { children: [
1266
1267
  /* @__PURE__ */ a.jsx("dt", { children: e }),
1267
1268
  /* @__PURE__ */ a.jsx("dd", { children: t })
1268
- ] }) }), ss = ({ label: e, children: t }) => /* @__PURE__ */ a.jsx("li", { children: /* @__PURE__ */ a.jsxs("dl", { children: [
1269
+ ] }) }), as = ({ label: e, children: t }) => /* @__PURE__ */ a.jsx("li", { children: /* @__PURE__ */ a.jsxs("dl", { children: [
1269
1270
  /* @__PURE__ */ a.jsx("dt", { children: e }),
1270
1271
  /* @__PURE__ */ a.jsx("dd", { children: t })
1271
- ] }) }), as = { Accordion: Jr, Button: Kr, Switch: es, Info: ns, Select: ts, Component: rs, Node: ss };
1272
+ ] }) }), os = { Accordion: Kr, Button: Qr, Switch: ts, Info: rs, Select: ns, Component: ss, Node: as };
1272
1273
  function Et({ list: e, onClick: t, active: r, size: s, view: o }) {
1273
1274
  return /* @__PURE__ */ a.jsx("nav", { children: /* @__PURE__ */ a.jsx("ul", { className: [s, o].join(" "), children: e.map((l) => /* @__PURE__ */ a.jsx(
1274
- os,
1275
+ is,
1275
1276
  {
1276
1277
  onClick: t,
1277
1278
  active: r,
@@ -1281,24 +1282,24 @@ function Et({ list: e, onClick: t, active: r, size: s, view: o }) {
1281
1282
  l.link
1282
1283
  )) }) });
1283
1284
  }
1284
- const os = ({ onClick: e, label: t, link: r, active: s }) => /* @__PURE__ */ a.jsx("li", { "tabs-active": String(s === r), onClick: () => e(r), children: t });
1285
+ const is = ({ onClick: e, label: t, link: r, active: s }) => /* @__PURE__ */ a.jsx("li", { "tabs-active": String(s === r), onClick: () => e(r), children: t });
1285
1286
  Et.defaultProps = { size: "M", view: "H" };
1286
- const fa = { Section: Yr, Main: Hr, Item: as, Tabs: Et }, is = "_h_158b4_1", cs = "_t_158b4_11", ls = "_s_158b4_31", us = "_u_158b4_40", ds = "_o_158b4_47", fs = "_l_158b4_56", ms = "_hh_158b4_63", q = {
1287
- h: is,
1288
- t: cs,
1289
- s: ls,
1290
- u: us,
1291
- o: ds,
1292
- l: fs,
1293
- hh: ms
1287
+ const ma = { Section: Br, Main: Jr, Item: os, Tabs: Et }, cs = "_h_158b4_1", ls = "_t_158b4_11", us = "_s_158b4_31", ds = "_u_158b4_40", fs = "_o_158b4_47", ms = "_l_158b4_56", ps = "_hh_158b4_63", q = {
1288
+ h: cs,
1289
+ t: ls,
1290
+ s: us,
1291
+ u: ds,
1292
+ o: fs,
1293
+ l: ms,
1294
+ hh: ps
1294
1295
  }, ht = ({ title: e, children: t }) => /* @__PURE__ */ a.jsxs("div", { className: q.h, children: [
1295
1296
  /* @__PURE__ */ a.jsx("div", { className: q.t, children: e }),
1296
1297
  t
1297
- ] }), ps = ({ children: e, title: t }) => /* @__PURE__ */ a.jsxs("div", { className: q.o, children: [
1298
+ ] }), hs = ({ children: e, title: t }) => /* @__PURE__ */ a.jsxs("div", { className: q.o, children: [
1298
1299
  t && /* @__PURE__ */ a.jsx("div", { className: q.hh, children: t }),
1299
1300
  e
1300
- ] }), hs = ({ children: e }) => /* @__PURE__ */ a.jsx("div", { className: q.u, children: e }), vt = ({ children: e }) => /* @__PURE__ */ a.jsx("div", { className: q.s, children: e }), gt = ({ children: e, ...t }) => /* @__PURE__ */ a.jsx("div", { className: q.l, children: e }), ma = { Header: ht, Section: vt, List: gt, U: hs, L: gt, O: ps, S: vt, H: ht }, pa = { Send: Xn, Error: Hn, Remark: Kn, Success: Jn, Copy: Qn }, ha = { Send: or };
1301
- function vs() {
1301
+ ] }), vs = ({ children: e }) => /* @__PURE__ */ a.jsx("div", { className: q.u, children: e }), vt = ({ children: e }) => /* @__PURE__ */ a.jsx("div", { className: q.s, children: e }), gt = ({ children: e, ...t }) => /* @__PURE__ */ a.jsx("div", { className: q.l, children: e }), pa = { Header: ht, Section: vt, List: gt, U: vs, L: gt, O: hs, S: vt, H: ht }, ha = { Send: Hn, Error: Jn, Remark: Qn, Success: Kn, Copy: qn }, va = { Send: ir };
1302
+ function gs() {
1302
1303
  return /* @__PURE__ */ a.jsx("svg", { viewBox: "0 0 462.86 359.96", children: /* @__PURE__ */ a.jsx(
1303
1304
  "path",
1304
1305
  {
@@ -1307,15 +1308,15 @@ function vs() {
1307
1308
  }
1308
1309
  ) });
1309
1310
  }
1310
- const va = { Logo: vs }, Oe = { Path: wn, setPage: hn, getPage: _t, usePage: pn, setModule: gn, getModule: xt, useModule: vn, setTabs: _n, getTabs: Se, useTabs: bn, useId: xn, setId: Sn, subId: yn, getId: jn }, gs = "_sort_1yrvt_1", bs = {
1311
- sort: gs
1311
+ const ga = { Logo: gs }, Le = { Path: wn, setPage: hn, getPage: _t, usePage: pn, setModule: gn, getModule: xt, useModule: vn, setTabs: _n, getTabs: je, useTabs: bn, useId: xn, setId: Sn, subId: yn, getId: jn }, bs = "_sort_1yrvt_1", _s = {
1312
+ sort: bs
1312
1313
  };
1313
- let je = {};
1314
- function _s(e, t) {
1314
+ let we = {};
1315
+ function xs(e, t) {
1315
1316
  switch (t.type) {
1316
1317
  case "active":
1317
1318
  let r = "<";
1318
- return e.active === t.data && (r = e.sort === "<" ? ">" : "<"), je.get({ active: t.data, sort: r }, !1), St({ active: t.data, sort: r }), {
1319
+ return e.active === t.data && (r = e.sort === "<" ? ">" : "<"), we.get({ active: t.data, sort: r }, !1), St({ active: t.data, sort: r }), {
1319
1320
  ...e,
1320
1321
  active: t.data,
1321
1322
  sort: r
@@ -1324,12 +1325,12 @@ function _s(e, t) {
1324
1325
  throw new Error();
1325
1326
  }
1326
1327
  }
1327
- function xs() {
1328
+ function ys() {
1328
1329
  const [e, t] = E.useReducer(
1329
- _s,
1330
- Me() === void 0 ? { active: 1, sort: "<" } : Me()
1330
+ xs,
1331
+ De() === void 0 ? { active: 1, sort: "<" } : De()
1331
1332
  );
1332
- return /* @__PURE__ */ a.jsxs("div", { className: bs.sort, children: [
1333
+ return /* @__PURE__ */ a.jsxs("div", { className: _s.sort, children: [
1333
1334
  /* @__PURE__ */ a.jsx(
1334
1335
  "i",
1335
1336
  {
@@ -1356,13 +1357,13 @@ function xs() {
1356
1357
  )
1357
1358
  ] });
1358
1359
  }
1359
- function ys(e) {
1360
- je.get = e;
1361
- }
1362
1360
  function Ss(e) {
1363
- je.set(e);
1361
+ we.get = e;
1362
+ }
1363
+ function js(e) {
1364
+ we.set(e);
1364
1365
  }
1365
- function js(e, t, r) {
1366
+ function ws(e, t, r) {
1366
1367
  let s = 1, o = 0, l = {}, c = 50;
1367
1368
  l[s] = [];
1368
1369
  let f = {}, d = "s1a";
@@ -1381,11 +1382,11 @@ function js(e, t, r) {
1381
1382
  o++, o <= c || (s++, o = 1, l[s] = []), l[s].push(e[m.id]);
1382
1383
  }), { data: l };
1383
1384
  }
1384
- function ws(e) {
1385
- je.count(e);
1385
+ function Cs(e) {
1386
+ we.count(e);
1386
1387
  }
1387
- const ga = { Init: xs, useValue: ys, Set: Ss, Run: js, Count: ws };
1388
- function Cs(e, t) {
1388
+ const ba = { Init: ys, useValue: Ss, Set: js, Run: ws, Count: Cs };
1389
+ function ks(e, t) {
1389
1390
  t === void 0 ? (t = e, e = /* @__PURE__ */ new Date()) : e = new Date(e);
1390
1391
  let r = {
1391
1392
  yyyy: e.getFullYear(),
@@ -1402,15 +1403,15 @@ function Cs(e, t) {
1402
1403
  t = t.replace(s, r[s]);
1403
1404
  return t;
1404
1405
  }
1405
- function ks(e) {
1406
+ function Es(e) {
1406
1407
  let t = ["Января", "Февраля", "Марта", "Апреля", "Мая", "Июня", "Июля", "Августа", "Сентября", "Октября", "Ноября", "Декабря"], r = new Date(e);
1407
1408
  return { day: ("" + r.getFullYear()).slice(-2) + "" + ("0" + (r.getMonth() + 1)).slice(-2) + ("0" + r.getDate()).slice(-2), name: r.getDate() + " " + t[r.getMonth()] };
1408
1409
  }
1409
- const Es = (e) => {
1410
+ const Rs = (e) => {
1410
1411
  function t(Z, G) {
1411
- var H, me, ee;
1412
+ var H, pe, ee;
1412
1413
  Z = Z ?? "", G = G ?? 1;
1413
- for (var H = [], ee = 0, me = Z.length; ee < me; )
1414
+ for (var H = [], ee = 0, pe = Z.length; ee < pe; )
1414
1415
  H.push(Z.slice(ee, ee += G));
1415
1416
  return H;
1416
1417
  }
@@ -1480,42 +1481,42 @@ const Es = (e) => {
1480
1481
  u3: ["тысяча", "тысячи", "тысяч"],
1481
1482
  u2: ["миллион", "миллиона", "миллионов"],
1482
1483
  u1: ["миллиард", "миллиарда", "миллиардов"]
1483
- }, o, l, c, f, C, d, m, w, p, b, S, O;
1484
+ }, o, l, c, f, k, d, m, C, p, b, S, O;
1484
1485
  p = parseFloat(e).toFixed(2).split("."), d = p[0], f = p[1];
1485
1486
  var F = 12 - d.length;
1486
1487
  if (F < 0)
1487
1488
  return !1;
1488
- for (var w = []; F--; )
1489
- w.push("0");
1490
- d = w.join("") + d;
1491
- var C = [];
1489
+ for (var C = []; F--; )
1490
+ C.push("0");
1491
+ d = C.join("") + d;
1492
+ var k = [];
1492
1493
  if (d > 0) {
1493
1494
  b = t(d, 3);
1494
1495
  for (var R = -1; R < b.length; R++)
1495
- if (m = b[R], m > 0 && (S = t(m, 1), o = parseInt(S[0]), l = parseInt(S[1]), c = parseInt(S[2]), C.push(s.a100[o - 1]), O = R + 1 == 3 ? "a2" : "a1", l > 1 ? C.push(
1496
+ if (m = b[R], m > 0 && (S = t(m, 1), o = parseInt(S[0]), l = parseInt(S[1]), c = parseInt(S[2]), k.push(s.a100[o - 1]), O = R + 1 == 3 ? "a2" : "a1", l > 1 ? k.push(
1496
1497
  s.a20[l - 2] + (c > 0 ? " " + s[O][c - 1] : "")
1497
- ) : C.push(
1498
+ ) : k.push(
1498
1499
  l > 0 ? s.a10[c] : s[O][c - 1]
1499
1500
  ), b.length > R + 1)) {
1500
1501
  var x = s["u" + (R + 1)];
1501
- C.push(r(m, x));
1502
+ k.push(r(m, x));
1502
1503
  }
1503
1504
  } else
1504
- C.push(s.null);
1505
- return C.push(r(d, s.ur)), C.push(f + " " + r(f, s.uc)), C.join(" ").replace(RegExp(" {2,}", "g"), " ").trimLeft();
1505
+ k.push(s.null);
1506
+ return k.push(r(d, s.ur)), k.push(f + " " + r(f, s.uc)), k.join(" ").replace(RegExp(" {2,}", "g"), " ").trimLeft();
1506
1507
  };
1507
- function Rs(e) {
1508
+ function Is(e) {
1508
1509
  let t = -1, r = [" kB", " MB", " GB", " TB", "PB", "EB", "ZB", "YB"];
1509
1510
  do
1510
1511
  e = e / 1024, t++;
1511
1512
  while (e > 1024);
1512
1513
  return Math.max(e, 0.1).toFixed(1) + r[t];
1513
1514
  }
1514
- function Is(e) {
1515
+ function Ts(e) {
1515
1516
  let t = {};
1516
1517
  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];
1517
1518
  }
1518
- function Ts(e, t, r, s) {
1519
+ function Ns(e, t, r, s) {
1519
1520
  let o = {
1520
1521
  sexM: "m",
1521
1522
  sexF: "f",
@@ -1731,7 +1732,7 @@ function Ts(e, t, r, s) {
1731
1732
  }
1732
1733
  return o.ln = e, o.fn = t || "", o.mn = r || "", o.sex = s || o.getSex(), o;
1733
1734
  }
1734
- function Ns(e) {
1735
+ function Ps(e) {
1735
1736
  let t = e.split(" ");
1736
1737
  switch (t.length) {
1737
1738
  case 2:
@@ -1742,7 +1743,7 @@ function Ns(e) {
1742
1743
  return e;
1743
1744
  }
1744
1745
  }
1745
- function Ps(e) {
1746
+ function Os(e) {
1746
1747
  return {
1747
1748
  1: { val: "01", name: "Январь", names: "Января", abc: "Янв" },
1748
1749
  2: { val: "02", name: "Февраль", names: "Февраля", abc: "Февр" },
@@ -1758,44 +1759,44 @@ function Ps(e) {
1758
1759
  12: { val: "12", name: "Декабрь", names: "Декабря", abc: "Дек" }
1759
1760
  }[e];
1760
1761
  }
1761
- function Os(e) {
1762
+ function Ls(e) {
1762
1763
  return parseFloat(e).toFixed(2).replace(/(\d)(?=(\d{3})+\.)/g, "$1 ");
1763
1764
  }
1764
- function Ls(e, t) {
1765
+ function Fs(e, t) {
1765
1766
  let r = t + "";
1766
1767
  for (; r.length < e; )
1767
1768
  r = "0" + r;
1768
1769
  return r;
1769
1770
  }
1770
- function Fs(e, t, r) {
1771
+ function Ms(e, t, r) {
1771
1772
  let s = t / e * r;
1772
1773
  return (typeof s != "number" || s === 1 / 0) && (s = 0), parseFloat(s).toFixed(1);
1773
1774
  }
1774
- function Ms(e) {
1775
+ function Ds(e) {
1775
1776
  return e.charAt(0).toUpperCase() + e.slice(1);
1776
1777
  }
1777
- const ba = {
1778
- Date: Cs,
1779
- MoneyString: Es,
1780
- DateSort: ks,
1781
- Size: Rs,
1782
- TypeFiles: Is,
1783
- Cases: Ts,
1784
- Initials: Ns,
1785
- Month: Ps,
1786
- Money: Os,
1787
- Number: Ls,
1788
- Percent: Fs,
1789
- CapitalizeFirstLetter: Ms
1790
- }, $e = {};
1791
- function Ds(e, t) {
1792
- $e[e] = t;
1793
- }
1778
+ const _a = {
1779
+ Date: ks,
1780
+ MoneyString: Rs,
1781
+ DateSort: Es,
1782
+ Size: Is,
1783
+ TypeFiles: Ts,
1784
+ Cases: Ns,
1785
+ Initials: Ps,
1786
+ Month: Os,
1787
+ Money: Ls,
1788
+ Number: Fs,
1789
+ Percent: Ms,
1790
+ CapitalizeFirstLetter: Ds
1791
+ }, ze = {};
1794
1792
  function $s(e, t) {
1795
- $e[e] !== void 0 && $e[e](t);
1793
+ ze[e] = t;
1796
1794
  }
1797
- const Y = {};
1798
1795
  function zs(e, t) {
1796
+ ze[e] !== void 0 && ze[e](t);
1797
+ }
1798
+ const Y = {};
1799
+ function Zs(e, t) {
1799
1800
  const [r, s] = E.useState(t);
1800
1801
  return E.useEffect(() => {
1801
1802
  if (Y[e])
@@ -1803,42 +1804,42 @@ function zs(e, t) {
1803
1804
  Y[e] = [s];
1804
1805
  }, []), [r];
1805
1806
  }
1806
- function Zs(e, t) {
1807
+ function As(e, t) {
1807
1808
  if (Y[e])
1808
1809
  return Y[e].push(t);
1809
1810
  Y[e] = [t];
1810
1811
  }
1811
- function As(e, t) {
1812
+ function Us(e, t) {
1812
1813
  Y[e] && Y[e].forEach((r) => r(t));
1813
1814
  }
1814
- const _a = { setListener: $s, useListener: Ds, setEmitter: As, useEmitter: zs, subEmitter: Zs }, xe = {}, Rt = {};
1815
- function Us(e) {
1815
+ const xa = { setListener: zs, useListener: $s, setEmitter: Us, useEmitter: Zs, subEmitter: As }, ye = {}, Rt = {};
1816
+ function Ws(e) {
1816
1817
  const [t, r] = E.useState({}), s = async (o) => {
1817
1818
  r(
1818
- Object.keys(xe).reduce((l, c) => (l ? l[c] = xe[c].all : l = {}, l), {})
1819
+ Object.keys(ye).reduce((l, c) => (l ? l[c] = ye[c].all : l = {}, l), {})
1819
1820
  );
1820
1821
  };
1821
1822
  return E.useEffect(() => {
1822
- e.forEach((o) => xe[o] = { all: 0 }), Rt.menu = s, s();
1823
+ e.forEach((o) => ye[o] = { all: 0 }), Rt.menu = s, s();
1823
1824
  }, [e]), t;
1824
1825
  }
1825
- function Ws(e, t) {
1826
+ function Gs(e, t) {
1826
1827
  switch (typeof t) {
1827
1828
  case "number":
1828
- xe[e].all += t, Rt.menu();
1829
+ ye[e].all += t, Rt.menu();
1829
1830
  break;
1830
1831
  }
1831
1832
  }
1832
- const xa = { useMenu: Us, setUpdate: Ws }, Gs = "KGZ1bmN0aW9uKCl7InVzZSBzdHJpY3QiO2xldCBhPVtdLHM9bnVsbDtvbmNvbm5lY3Q9ZnVuY3Rpb24obCl7dmFyIHQ9bC5zb3VyY2U7YS5wdXNoKHQpO2NvbnN0IG49ZT0+e3MhPT1udWxsJiZzLnJlYWR5U3RhdGU9PT0xP3Muc2VuZChKU09OLnN0cmluZ2lmeShlKSk6dC5wb3N0TWVzc2FnZSh7dHlwZToibm9TZW5kIn0pfTtsZXQgcj1lPT57aWYocyE9PW51bGwmJnMucmVhZHlTdGF0ZT09PTEpcmV0dXJuIHQucG9zdE1lc3NhZ2Uoe3R5cGU6InRydWUifSk7ZS5say5hZGRyZXNzPT09ImxvY2FsaG9zdCI/cz1uZXcgV2ViU29ja2V0KGB3czovL2xvY2FsaG9zdDoke2UubGsuc29ja2V0KzF9YCk6cz1uZXcgV2ViU29ja2V0KCJ3c3M6Ly8iK2UubGsuYWRkcmVzcysiOiIrKGUubGsuc29ja2V0KzEpKSxzLm9uZXJyb3I9KCk9PnQucG9zdE1lc3NhZ2Uoe3R5cGU6ImVycm9yIn0pLHMub25vcGVuPSgpPT57bih7dHlwZToiY29ubmVjdCIsdWtleTplLnVrZXl9KX0scy5vbm1lc3NhZ2U9bz0+e2xldCBjPUpTT04ucGFyc2Uoby5kYXRhKTthLmZvckVhY2goZD0+e2QucG9zdE1lc3NhZ2UoYyl9KX0scy5vbmNsb3NlPSgpPT50LnBvc3RNZXNzYWdlKHt0eXBlOiJjbG9zZWQifSl9O3Qub25tZXNzYWdlPWZ1bmN0aW9uKGUpe3N3aXRjaChlLmRhdGEudHlwZSl7Y2FzZSJsZW5ndGgiOnJldHVybiB0LnBvc3RNZXNzYWdlKGEubGVuZ3RoKTtjYXNlImFsbCI6cmV0dXJuIGEuZm9yRWFjaChvPT5vLnBvc3RNZXNzYWdlKHthbGw6YS5sZW5ndGh9KSk7Y2FzZSJzZW5kIjpyZXR1cm4gbihlLmRhdGEuanNvbik7Y2FzZSJjb25uZWN0IjpyZXR1cm4gcihlLmRhdGEpO2RlZmF1bHQ6dC5wb3N0TWVzc2FnZSh7dHlwZToiZGVmYXVsdCIsZGF0YTplLmRhdGEuanNvbn0pfX19fSkoKTsK";
1833
- function Vs(e) {
1833
+ const ya = { useMenu: Ws, setUpdate: Gs }, Vs = "KGZ1bmN0aW9uKCl7InVzZSBzdHJpY3QiO2xldCBhPVtdLHM9bnVsbDtvbmNvbm5lY3Q9ZnVuY3Rpb24obCl7dmFyIHQ9bC5zb3VyY2U7YS5wdXNoKHQpO2NvbnN0IG49ZT0+e3MhPT1udWxsJiZzLnJlYWR5U3RhdGU9PT0xP3Muc2VuZChKU09OLnN0cmluZ2lmeShlKSk6dC5wb3N0TWVzc2FnZSh7dHlwZToibm9TZW5kIn0pfTtsZXQgcj1lPT57aWYocyE9PW51bGwmJnMucmVhZHlTdGF0ZT09PTEpcmV0dXJuIHQucG9zdE1lc3NhZ2Uoe3R5cGU6InRydWUifSk7ZS5say5hZGRyZXNzPT09ImxvY2FsaG9zdCI/cz1uZXcgV2ViU29ja2V0KGB3czovL2xvY2FsaG9zdDoke2UubGsuc29ja2V0KzF9YCk6cz1uZXcgV2ViU29ja2V0KCJ3c3M6Ly8iK2UubGsuYWRkcmVzcysiOiIrKGUubGsuc29ja2V0KzEpKSxzLm9uZXJyb3I9KCk9PnQucG9zdE1lc3NhZ2Uoe3R5cGU6ImVycm9yIn0pLHMub25vcGVuPSgpPT57bih7dHlwZToiY29ubmVjdCIsdWtleTplLnVrZXl9KX0scy5vbm1lc3NhZ2U9bz0+e2xldCBjPUpTT04ucGFyc2Uoby5kYXRhKTthLmZvckVhY2goZD0+e2QucG9zdE1lc3NhZ2UoYyl9KX0scy5vbmNsb3NlPSgpPT50LnBvc3RNZXNzYWdlKHt0eXBlOiJjbG9zZWQifSl9O3Qub25tZXNzYWdlPWZ1bmN0aW9uKGUpe3N3aXRjaChlLmRhdGEudHlwZSl7Y2FzZSJsZW5ndGgiOnJldHVybiB0LnBvc3RNZXNzYWdlKGEubGVuZ3RoKTtjYXNlImFsbCI6cmV0dXJuIGEuZm9yRWFjaChvPT5vLnBvc3RNZXNzYWdlKHthbGw6YS5sZW5ndGh9KSk7Y2FzZSJzZW5kIjpyZXR1cm4gbihlLmRhdGEuanNvbik7Y2FzZSJjb25uZWN0IjpyZXR1cm4gcihlLmRhdGEpO2RlZmF1bHQ6dC5wb3N0TWVzc2FnZSh7dHlwZToiZGVmYXVsdCIsZGF0YTplLmRhdGEuanNvbn0pfX19fSkoKTsK";
1834
+ function Ys(e) {
1834
1835
  return new SharedWorker(
1835
- "data:text/javascript;base64," + Gs,
1836
+ "data:text/javascript;base64," + Vs,
1836
1837
  {
1837
1838
  name: e == null ? void 0 : e.name
1838
1839
  }
1839
1840
  );
1840
1841
  }
1841
- let M = {}, P = {}, _e = [
1842
+ let M = {}, P = {}, xe = [
1842
1843
  "filter",
1843
1844
  "online",
1844
1845
  "users",
@@ -1848,13 +1849,13 @@ let M = {}, P = {}, _e = [
1848
1849
  "info",
1849
1850
  "job"
1850
1851
  ];
1851
- const Ys = () => {
1852
+ const Bs = () => {
1852
1853
  const [e, t] = E.useState(!1), [r, s] = E.useState(!1);
1853
1854
  return [(l) => {
1854
- const c = new Vs();
1855
+ const c = new Ys();
1855
1856
  M.laodData = (f) => {
1856
- let d = _e.indexOf(f);
1857
- d >= 0 && _e.splice(d, 1), _e.length === 0 && t(!0);
1857
+ let d = xe.indexOf(f);
1858
+ d >= 0 && xe.splice(d, 1), xe.length === 0 && t(!0);
1858
1859
  }, M.send = (f) => {
1859
1860
  c.port.postMessage({ type: "send", json: f });
1860
1861
  }, c.port.onmessage = (f) => {
@@ -1862,12 +1863,12 @@ const Ys = () => {
1862
1863
  console.log(d), d.type === "error" && s(!0), d.type === "true" && t(!0), d.type === "closed" && (console.warn("closed"), c.port.postMessage({
1863
1864
  type: "connect",
1864
1865
  ukey: l,
1865
- lk: Fe()
1866
- })), _e.length !== 0 && M.laodData(d.type), P[d.type] && P[d.type](d);
1866
+ lk: Me()
1867
+ })), xe.length !== 0 && M.laodData(d.type), P[d.type] && P[d.type](d);
1867
1868
  }, c.port.postMessage({
1868
1869
  type: "connect",
1869
1870
  ukey: l,
1870
- lk: Fe()
1871
+ lk: Me()
1871
1872
  });
1872
1873
  }, e, r];
1873
1874
  };
@@ -1890,13 +1891,13 @@ P.offline = async (e) => {
1890
1891
  P.chat = (e) => {
1891
1892
  switch (console.log(e.data.action), e.data.action) {
1892
1893
  case "new_message":
1893
- Oe.getModule();
1894
+ Le.getModule();
1894
1895
  break;
1895
1896
  case "view_message":
1896
- Oe.getModule();
1897
+ Le.getModule();
1897
1898
  break;
1898
1899
  case "write_message":
1899
- Oe.getModule();
1900
+ Le.getModule();
1900
1901
  break;
1901
1902
  }
1902
1903
  console.log(e);
@@ -1919,16 +1920,16 @@ P.users = (e) => {
1919
1920
  number: c
1920
1921
  };
1921
1922
  });
1922
- let r = { ...de(), user: t };
1923
- ue(r);
1923
+ let r = { ...fe(), user: t };
1924
+ de(r);
1924
1925
  };
1925
1926
  P.company = (e) => {
1926
1927
  let t = {}, r = {};
1927
1928
  e.data.forEach((o) => {
1928
1929
  t[o.id] = { s: o.v, n: o.a }, r[o.id] = o;
1929
1930
  });
1930
- let s = { ...de(), 901: t };
1931
- jt(r), ue(s);
1931
+ let s = { ...fe(), 901: t };
1932
+ jt(r), de(s);
1932
1933
  };
1933
1934
  P.api = (e) => {
1934
1935
  let t = {};
@@ -1940,27 +1941,28 @@ P.delete = () => {
1940
1941
  $();
1941
1942
  };
1942
1943
  P.select = (e) => {
1943
- let t = { ...de() };
1944
+ let t = { ...fe() };
1944
1945
  e.data.forEach((r) => {
1945
1946
  t[r.n] = JSON.parse(r.s);
1946
- }), ue(t);
1947
+ }), de(t);
1947
1948
  };
1948
1949
  P.job = (e) => {
1949
- let t = { ...de() }, r = {};
1950
+ let t = { ...fe() }, r = {};
1950
1951
  Object.keys(e.data).forEach((s) => {
1951
1952
  r[s] = { s: 1, n: e.data[s] };
1952
- }), t[1] = r, ue(t);
1953
+ }), t[1] = r, de(t);
1953
1954
  };
1954
1955
  P.setting = (e) => {
1956
+ Cn(e.data);
1955
1957
  };
1956
1958
  P.app = () => {
1957
1959
  };
1958
- const Bs = (e, t) => {
1960
+ const Xs = (e, t) => {
1959
1961
  M[e] = t;
1960
- }, Xs = (e, t) => {
1962
+ }, Hs = (e, t) => {
1961
1963
  M[e](t);
1962
1964
  };
1963
- function Hs(e) {
1965
+ function Js(e) {
1964
1966
  let t = "_" + String(Math.random()).substring(2, 7);
1965
1967
  return new Promise((r) => {
1966
1968
  M[t] = (s) => {
@@ -1968,12 +1970,12 @@ function Hs(e) {
1968
1970
  }, e = { ...e, listen: t }, e.type = "modules", M.send(e);
1969
1971
  });
1970
1972
  }
1971
- const ya = { useConnect: Ys, useListener: Bs, setListener: Xs, Send: Hs };
1972
- let ye = (e) => k.enCode(e), It = (e) => k.enCode(e);
1973
- class Js {
1973
+ const Sa = { useConnect: Bs, useListener: Xs, setListener: Hs, Send: Js };
1974
+ let Se = (e) => w.enCode(e), It = (e) => w.enCode(e);
1975
+ class Ks {
1974
1976
  constructor(t = "el", r = "db") {
1975
- Pe(this, "storeName");
1976
- Pe(this, "_dbp");
1977
+ Oe(this, "storeName");
1978
+ Oe(this, "_dbp");
1977
1979
  this.storeName = r, this._dbp = new Promise((s, o) => {
1978
1980
  const l = indexedDB.open(t, 1);
1979
1981
  l.onerror = () => o(l.error), l.onsuccess = () => s(l.result), l.onupgradeneeded = () => {
@@ -1990,10 +1992,10 @@ class Js {
1990
1992
  );
1991
1993
  }
1992
1994
  }
1993
- let Le, T = {};
1994
- const se = () => (Le || (Le = new Js()), Le), X = (e, t, r = se()) => r._withIDBStore("readwrite", (s) => {
1995
- T[e] = t, s.put(ye(t), e);
1996
- }), A = (e, t = se()) => T[e] === void 0 ? new Promise((r, s) => {
1995
+ let Fe, T = {};
1996
+ const ae = () => (Fe || (Fe = new Ks()), Fe), X = (e, t, r = ae()) => r._withIDBStore("readwrite", (s) => {
1997
+ T[e] = t, s.put(Se(t), e);
1998
+ }), A = (e, t = ae()) => T[e] === void 0 ? new Promise((r, s) => {
1997
1999
  let o;
1998
2000
  t._withIDBStore("readonly", (l) => {
1999
2001
  o = l.get(e);
@@ -2004,45 +2006,45 @@ const se = () => (Le || (Le = new Js()), Le), X = (e, t, r = se()) => r._withIDB
2004
2006
  } else
2005
2007
  r({});
2006
2008
  });
2007
- }) : T[e], Ks = (e, t = se()) => t._withIDBStore("readwrite", (r) => {
2009
+ }) : T[e], Qs = (e, t = ae()) => t._withIDBStore("readwrite", (r) => {
2008
2010
  r.delete(e);
2009
- }), ze = (e = se()) => e._withIDBStore("readwrite", (t) => {
2011
+ }), Ze = (e = ae()) => e._withIDBStore("readwrite", (t) => {
2010
2012
  t.clear();
2011
- }), Qs = (e = se()) => {
2013
+ }), qs = (e = ae()) => {
2012
2014
  const t = [];
2013
2015
  return e._withIDBStore("readonly", (r) => {
2014
2016
  (r.openKeyCursor || r.openCursor).call(r).onsuccess = function() {
2015
2017
  this.result && (t.push(this.result.key), this.result.continue());
2016
2018
  };
2017
2019
  }).then(() => t);
2018
- }, qs = (e, t, r = [], s = {}) => {
2020
+ }, ea = (e, t, r = [], s = {}) => {
2019
2021
  let o = r.length !== 0, l = [], c = s.sort, f = Object.keys(s).length !== 0, d = Object.keys(s), m = Object.keys(e), p = 1, b = [], S = {};
2020
2022
  S[p] = [];
2021
- let O = (w) => {
2022
- let C = "";
2023
+ let O = (C) => {
2024
+ let k = "";
2023
2025
  if (r.forEach((R) => {
2024
- C += t[w][R];
2026
+ k += t[C][R];
2025
2027
  }), f) {
2026
2028
  let R = {};
2027
2029
  d.forEach((x) => {
2028
- R[x] = t[w][x];
2030
+ R[x] = t[C][x];
2029
2031
  });
2030
2032
  for (let x in c)
2031
- t[w][c[x]] === void 0 && (ze(), location.reload()), x === "s1" && (R[x] = new Date(t[w][c[x]]).getTime()), x === "s2" && (R[x] = t[w][c[x]]), x === "s3" && (R[x] = t[w][c[x]].replace(/[^a-zа-яё]/gi, "").substring(0, 1));
2032
- l.push({ id: w, text: C, ...R });
2033
+ t[C][c[x]] === void 0 && (Ze(), location.reload()), x === "s1" && (R[x] = new Date(t[C][c[x]]).getTime()), x === "s2" && (R[x] = t[C][c[x]]), x === "s3" && (R[x] = t[C][c[x]].replace(/[^a-zа-яё]/gi, "").substring(0, 1));
2034
+ l.push({ id: C, text: k, ...R });
2033
2035
  } else
2034
- l.push({ id: w, text: C });
2035
- }, F = (w) => {
2036
- d.forEach((C) => {
2037
- C !== "sort" && s[C].list[t[w][C]] !== void 0 && (s[C].list[t[w][C]].count === void 0 ? s[C].list[t[w][C]].count = 1 : s[C].list[t[w][C]].count++);
2036
+ l.push({ id: C, text: k });
2037
+ }, F = (C) => {
2038
+ d.forEach((k) => {
2039
+ k !== "sort" && s[k].list[t[C][k]] !== void 0 && (s[k].list[t[C][k]].count === void 0 ? s[k].list[t[C][k]].count = 1 : s[k].list[t[C][k]].count++);
2038
2040
  });
2039
2041
  };
2040
- return m.forEach((w) => {
2041
- b.push(t[w]);
2042
- }), b.forEach((w) => {
2043
- w === void 0 ? (ze(), location.reload()) : (o && O(w.id), f && F(w.id));
2042
+ return m.forEach((C) => {
2043
+ b.push(t[C]);
2044
+ }), b.forEach((C) => {
2045
+ C === void 0 ? (Ze(), location.reload()) : (o && O(C.id), f && F(C.id));
2044
2046
  }), { list: S, search: l, filter: s };
2045
- }, ea = (e, t, r, s = se()) => {
2047
+ }, ta = (e, t, r, s = ae()) => {
2046
2048
  if (T[e] === void 0)
2047
2049
  return new Promise((o, l) => {
2048
2050
  let c;
@@ -2054,73 +2056,74 @@ const se = () => (Le || (Le = new Js()), Le), X = (e, t, r = se()) => r._withIDB
2054
2056
  T[e] = f, T[e][t.id] = {
2055
2057
  ...T[e][t.id],
2056
2058
  ...t.data
2057
- }, s.put(ye(T[e]), e), o({});
2059
+ }, s.put(Se(T[e]), e), o({});
2058
2060
  } else
2059
2061
  o({});
2060
2062
  });
2061
2063
  });
2062
2064
  if (T[e][t.id] !== void 0)
2063
2065
  return T[e][t.id] = { ...T[e][t.id], ...t.data }, r !== void 0 && T[r] !== void 0 ? T[r][t.id] !== void 0 && (T[r][t.id] = t.data.eDate) : T[r] = [], delete T[e][t.id].$_item, delete T[e][t.id].$_send, s._withIDBStore("readwrite", (o) => {
2064
- o.put(ye(T[e]), e), r !== void 0 && o.put(ye(T[r]), r);
2066
+ o.put(Se(T[e]), e), r !== void 0 && o.put(Se(T[r]), r);
2065
2067
  });
2066
- }, ta = async (e, t, r, s) => {
2068
+ }, na = async (e, t, r, s) => {
2067
2069
  let o, l;
2068
2070
  l = await A(r), l[e.id] = e, await X(r, l), o !== null && (o = await A(t), o[e.id] = e.eDate, await X(t, o)), s !== void 0 && s({ type: "load", page: o, base: l });
2069
- }, na = async (e, t, r, s) => {
2071
+ }, ra = async (e, t, r, s) => {
2070
2072
  let o = await A(t), l = await A(r);
2071
2073
  for (let c in e)
2072
2074
  l[c] = e[c], o[c] = e[c].eDate;
2073
2075
  await X(t, o), await X(r, l), s !== void 0 && s({ type: "load", page: o, base: l });
2074
- }, ra = async (e, t, r, s) => {
2076
+ }, sa = async (e, t, r, s) => {
2075
2077
  let o = await A(t), l = await A(r);
2076
2078
  e.forEach((c) => delete o[c]), await X(t, o), s !== void 0 && s({ type: "load", page: o, base: l });
2077
- }, sa = async (e, t, r) => {
2079
+ }, aa = async (e, t, r) => {
2078
2080
  let s = await A(t);
2079
2081
  e.forEach((o) => delete s[o]), await X(t, s);
2080
- }, aa = async (e, t, r) => {
2082
+ }, oa = async (e, t, r) => {
2081
2083
  let s = await A(t);
2082
2084
  e.forEach((o) => s[o.id] = o.eDate), await X(t, s);
2083
- }, oa = async (e, t, r) => {
2085
+ }, ia = async (e, t, r) => {
2084
2086
  let s = await A(t);
2085
2087
  if (r !== void 0)
2086
2088
  r({ type: "load", base: s });
2087
2089
  else
2088
2090
  return s[e];
2089
- }, ia = (e) => T[e], Sa = {
2090
- id: oa,
2091
+ }, ca = (e) => T[e], ja = {
2092
+ id: ia,
2091
2093
  get: A,
2092
2094
  set: X,
2093
- add: ta,
2094
- del: Ks,
2095
- upd: ea,
2096
- key: Qs,
2097
- load: ia,
2098
- split: qs,
2099
- clear: ze,
2100
- updAll: na,
2101
- delAll: ra,
2102
- delList: sa,
2103
- addList: aa
2104
- };
2095
+ add: na,
2096
+ del: Qs,
2097
+ upd: ta,
2098
+ key: qs,
2099
+ load: ca,
2100
+ split: ea,
2101
+ clear: Ze,
2102
+ updAll: ra,
2103
+ delAll: sa,
2104
+ delList: aa,
2105
+ addList: oa
2106
+ }, wa = { setSetting: kn, getSetting: En };
2105
2107
  export {
2106
- qr as Action,
2107
- ha as Alert,
2108
- ua as Api,
2109
- xa as Badge,
2110
- da as Browser,
2111
- lr as Button,
2112
- ma as Component,
2113
- Sa as DataBase,
2114
- _a as Event,
2115
- ba as Format,
2116
- va as Icon,
2117
- $r as Init,
2118
- Dr as Modal,
2119
- pa as Notice,
2120
- Oe as Router,
2121
- fa as Setting,
2122
- ya as Socket,
2123
- Ze as Store,
2124
- Gr as Tabs,
2125
- ga as Triage
2108
+ es as Action,
2109
+ va as Alert,
2110
+ da as Api,
2111
+ ya as Badge,
2112
+ fa as Browser,
2113
+ ur as Button,
2114
+ pa as Component,
2115
+ ja as DataBase,
2116
+ xa as Event,
2117
+ _a as Format,
2118
+ ga as Icon,
2119
+ zr as Init,
2120
+ $r as Modal,
2121
+ ha as Notice,
2122
+ Le as Router,
2123
+ ma as Setting,
2124
+ Sa as Socket,
2125
+ Ae as Store,
2126
+ Vr as Tabs,
2127
+ ba as Triage,
2128
+ wa as User
2126
2129
  };