elcrm 0.4.0 → 0.4.2

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,11 +1,11 @@
1
1
  import './index.css';
2
2
  import j from "react";
3
- let w = {};
4
- const v = {}, P = {}, qe = {}, at = {}, H = {};
5
- function Dt(e, t) {
6
- if (w = e, localStorage.getItem("ssid")) {
7
- let s = sessionStorage.getItem("page");
8
- 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");
3
+ let C = {};
4
+ const v = {}, O = {}, rt = {}, ut = {}, B = {};
5
+ function Ht(e, t) {
6
+ if (C = e, localStorage.getItem("ssid")) {
7
+ let a = sessionStorage.getItem("page");
8
+ a ? (a = C.deCode(a), v.id = a.id, v.tab = a.tab, v.page = a.page, v.module = a.module, v.time = a.time, v.payment = { active: !0 }, v.module_admin = a.module_admin) : (v.id = 0, v.tab = "", v.page = "Main", v.module = v.module || "M05");
9
9
  } else
10
10
  [
11
11
  "ssid",
@@ -20,10 +20,10 @@ function Dt(e, t) {
20
20
  "port",
21
21
  "mark",
22
22
  "sort"
23
- ].forEach((s) => localStorage.removeItem(s)), ["page"].forEach((s) => sessionStorage.removeItem(s)), v.id = 0, v.tab = "", v.page = "Auth", v.module = "M00";
23
+ ].forEach((a) => localStorage.removeItem(a)), ["page"].forEach((a) => sessionStorage.removeItem(a)), v.id = 0, v.tab = "", v.page = "Auth", v.module = "M00";
24
24
  return t;
25
25
  }
26
- function M() {
26
+ function L() {
27
27
  [
28
28
  "ssid",
29
29
  "menu",
@@ -39,205 +39,218 @@ function M() {
39
39
  "sort"
40
40
  ].forEach((e) => localStorage.removeItem(e)), ["page"].forEach((e) => sessionStorage.removeItem(e)), window.location.reload();
41
41
  }
42
- function zt(e) {
42
+ function Jt(e) {
43
43
  e = e.split("/"), v.page = "Main", v.module = e[0], v.tab = e[1], v.id = 0, sessionStorage.setItem(
44
44
  "page",
45
- w.enCode({
45
+ C.enCode({
46
46
  module: v.module,
47
47
  page: v.page,
48
48
  tab: v.tab,
49
49
  id: v.id,
50
50
  time: (/* @__PURE__ */ new Date()).getTime()
51
51
  })
52
- ), P.page(v.page);
52
+ ), O.page(v.page);
53
53
  }
54
- function Ut(e) {
54
+ function Kt(e) {
55
55
  return localStorage.setItem("ssid", e);
56
56
  }
57
- function Wt() {
57
+ function Qt() {
58
58
  let e = localStorage.getItem("ssid");
59
- return e !== "" && e !== "undefined" && e !== null ? localStorage.getItem("ssid") : (M(), !1);
59
+ return e !== "" && e !== "undefined" && e !== null ? localStorage.getItem("ssid") : (L(), !1);
60
60
  }
61
- function Yt(e) {
61
+ function qt(e) {
62
62
  return localStorage.setItem("auth", e);
63
63
  }
64
- function Bt() {
64
+ function en() {
65
65
  let e = localStorage.getItem("auth");
66
- return e !== "" && e !== "undefined" && e !== null ? e : (M(), !1);
66
+ return e !== "" && e !== "undefined" && e !== null ? e : (L(), !1);
67
67
  }
68
- function Vt(e) {
69
- localStorage.setItem("port", w.enCode(e));
68
+ function tn(e) {
69
+ localStorage.setItem("port", C.enCode(e));
70
70
  }
71
- function Gt() {
71
+ function Ee() {
72
72
  let e = localStorage.getItem("port");
73
73
  if (e !== "" && e !== "undefined" && e !== null) {
74
- let t = w.deCode(e);
75
- return t || M(), t;
74
+ let t = C.deCode(e);
75
+ return t || L(), t;
76
76
  } else
77
- return M(), !1;
77
+ return L(), !1;
78
78
  }
79
- function Ht() {
80
- const [e, t] = j.useState(st()), n = (s) => {
81
- t(s);
79
+ function nn() {
80
+ const [e, t] = j.useState(dt()), r = (a) => {
81
+ t(a);
82
82
  };
83
- return P.page = n, [e];
83
+ return O.page = r, [e];
84
84
  }
85
- function Jt(e) {
86
- v.page = e, sessionStorage.setItem("page", w.enCode(v)), P.page(e);
85
+ function rn(e) {
86
+ v.page = e, sessionStorage.setItem("page", C.enCode(v)), O.page(e);
87
87
  }
88
- function st() {
88
+ function dt() {
89
89
  return v.page;
90
90
  }
91
- function Zt() {
92
- const [e, t] = j.useState(ot()), n = (s) => {
93
- t(s);
91
+ function an() {
92
+ const [e, t] = j.useState(ft()), r = (a) => {
93
+ t(a);
94
94
  };
95
- return P.module = n, [e];
95
+ return O.module = r, [e];
96
96
  }
97
- function Xt(e, t) {
98
- v.module = e, sessionStorage.setItem("page", w.enCode(v)), t !== "false" && P.module(e);
97
+ function sn(e, t) {
98
+ v.module = e, sessionStorage.setItem("page", C.enCode(v)), t !== "false" && O.module(e);
99
99
  }
100
- function ot() {
100
+ function ft() {
101
101
  return v.module;
102
102
  }
103
- function qt(e) {
104
- const [t, n] = j.useState(he() || e), s = (c) => {
105
- n(c);
103
+ function on(e) {
104
+ const [t, r] = j.useState(ge() || e), a = (c) => {
105
+ r(c);
106
106
  };
107
- return P.tabs = s, [t];
107
+ return O.tabs = a, [t];
108
108
  }
109
- function Kt(e, t) {
110
- v.tab = e, sessionStorage.setItem("page", w.enCode(v)), t !== "false" && P.tabs(e);
109
+ function cn(e, t) {
110
+ v.tab = e, sessionStorage.setItem("page", C.enCode(v)), t !== "false" && O.tabs(e);
111
111
  }
112
- function he() {
112
+ function ge() {
113
113
  return v.tab;
114
114
  }
115
- function Qt() {
116
- const [e, t] = j.useState(v.id), n = (s) => {
117
- t(s);
115
+ function ln() {
116
+ const [e, t] = j.useState(v.id), r = (a) => {
117
+ t(a);
118
118
  };
119
- return P.id = n, [e];
119
+ return O.id = r, [e];
120
120
  }
121
- function er(e) {
122
- P.id = e;
121
+ function un(e) {
122
+ O.id = e;
123
123
  }
124
- function tr(e, t) {
125
- v.id = e, sessionStorage.setItem("page", w.enCode(v)), t !== "false" && P.id(e);
124
+ function dn(e, t) {
125
+ v.id = e, sessionStorage.setItem("page", C.enCode(v)), t !== "false" && O.id(e);
126
126
  }
127
- function rr() {
127
+ function fn() {
128
128
  return v.id;
129
129
  }
130
- function nr(e, t, n) {
131
- v.module = e, v.id = n, v.tab = t, sessionStorage.setItem("page", w.enCode(v)), P.module(e), P.tabs(t);
130
+ function mn(e, t, r) {
131
+ v.module = e, v.id = r, v.tab = t, sessionStorage.setItem("page", C.enCode(v)), O.module(e), O.tabs(t);
132
132
  }
133
- function ar(e, t) {
134
- qe.data[e] = t, localStorage.setItem("sett", w.enCode(qe.data));
133
+ function pn(e, t) {
134
+ rt.data[e] = t, localStorage.setItem("sett", C.enCode(rt.data));
135
135
  }
136
- function sr(e) {
136
+ function hn(e) {
137
137
  let t = localStorage.getItem("sett");
138
- return t === null ? {} : (t = w.deCode(t), t ? e !== void 0 ? t[e] : t : M());
138
+ return t === null ? {} : (t = C.deCode(t), t ? e !== void 0 ? t[e] : t : L());
139
139
  }
140
- function or(e) {
141
- localStorage.setItem("menu", w.enCode({ data: e }));
140
+ function mt(e) {
141
+ localStorage.setItem("menu", C.enCode({ data: e }));
142
142
  }
143
- function ir() {
143
+ function vn() {
144
144
  let e = localStorage.getItem("menu");
145
145
  if (e !== "" && e !== "undefined" && e !== null) {
146
- let t = localStorage.getItem("menu"), n = w.deCode(t);
147
- n || M();
148
- const s = (m, l) => {
146
+ let t = localStorage.getItem("menu"), r = C.deCode(t);
147
+ r || L();
148
+ const a = (f, l) => {
149
149
  let d = l + "";
150
- for (; d.length < m; )
150
+ for (; d.length < f; )
151
151
  d = "0" + d;
152
152
  return d;
153
153
  };
154
- return n.data.split(",").map((m) => "M" + s(2, m));
154
+ return r.data.split(",").map((f) => "M" + a(2, f));
155
155
  } else
156
- return M(), !1;
156
+ return L(), !1;
157
157
  }
158
- function cr(e) {
159
- P.sort = e;
158
+ function gn(e) {
159
+ O.sort = e;
160
160
  }
161
- function it(e) {
161
+ function pt(e) {
162
162
  let t = localStorage.getItem("sort");
163
- t = t === null ? {} : w.deCode(t), t[he()] = e, localStorage.setItem("sort", w.enCode(t));
163
+ t = t === null ? {} : C.deCode(t), t[ge()] = e, localStorage.setItem("sort", C.enCode(t));
164
164
  }
165
- function Ce() {
165
+ function Te() {
166
166
  let e = localStorage.getItem("sort");
167
- return e === null ? {} : (e = w.deCode(e), e = e[he()], e = e === void 0 ? { active: 1, sort: "<" } : e, e);
167
+ return e === null ? {} : (e = C.deCode(e), e = e[ge()], e = e === void 0 ? { active: 1, sort: "<" } : e, e);
168
168
  }
169
- function lr(e) {
170
- localStorage.setItem("c", w.enCode(e));
169
+ function ht(e) {
170
+ localStorage.setItem("c", C.enCode(e));
171
171
  }
172
- function ur(e) {
172
+ function bn(e) {
173
173
  let t = localStorage.getItem("c");
174
174
  if (t !== "" && t !== "undefined" && t !== null) {
175
- let n = w.deCode(t);
176
- return n || M(), e === void 0 ? n : n[e];
175
+ let r = C.deCode(t);
176
+ return r || L(), e === void 0 ? r : r[e];
177
177
  } else
178
- return M(), !1;
178
+ return L(), !1;
179
179
  }
180
- function dr(e) {
181
- H.data = e, localStorage.setItem("qder", w.enCode(H.data));
180
+ function oe(e) {
181
+ B.data = e, localStorage.setItem("qder", C.enCode(B.data));
182
182
  }
183
- function fr(e, t) {
184
- if (!H.data) {
185
- let n = localStorage.getItem("qder");
186
- n && (H.data = w.deCode(n));
183
+ function ie(e, t) {
184
+ if (!B.data) {
185
+ let r = localStorage.getItem("qder");
186
+ r && (B.data = C.deCode(r));
187
187
  }
188
- return e === void 0 && t === void 0 ? H.data : e !== void 0 && t === void 0 ? H.data[e] : H.data[e][t];
188
+ return e === void 0 && t === void 0 ? B.data : e !== void 0 && t === void 0 ? B.data[e] : B.data[e][t];
189
189
  }
190
- function mr(e) {
191
- at.data = e;
190
+ function _n(e) {
191
+ ut.data = e;
192
192
  }
193
- function hr(e) {
194
- return at.data[e];
193
+ function xn(e) {
194
+ return ut.data[e];
195
195
  }
196
- function pr(e) {
196
+ function yn(e) {
197
197
  v.payment = e;
198
198
  }
199
- function vr() {
199
+ function Sn() {
200
200
  return v.payment;
201
201
  }
202
- const L = {
203
- setSSID: Ut,
204
- getSSID: Wt,
205
- getPORT: Gt,
206
- setPORT: Vt,
207
- setAUTH: Yt,
208
- getAUTH: Bt,
209
- Logaut: M,
210
- Start: zt,
211
- setSetting: ar,
212
- getSetting: sr,
213
- setMenu: or,
214
- getMenu: ir,
215
- useSort: cr,
216
- setSort: it,
217
- getSort: Ce,
218
- setCompany: lr,
219
- getCompany: ur,
220
- setSelect: dr,
221
- getSelect: fr,
222
- setApi: mr,
223
- getApi: hr,
224
- setPayment: pr,
225
- getPayment: vr
226
- }, ct = "KGZ1bmN0aW9uKCl7InVzZSBzdHJpY3QiO3ZhciBhPXtCQVNFX1VSTDoiLyIsTU9ERToicHJvZHVjdGlvbiIsREVWOiExLFBST0Q6ITAsU1NSOiExfTtvbm1lc3NhZ2U9YXN5bmMgdD0+e2NvbnNvbGUubG9nKGEuVklURV9VUkwpO3RyeXtsZXQgZT1hLlZJVEVfVVJMPT09ImxvY2FsaG9zdCI/Imh0dHA6Ly9sb2NhbGhvc3Q6MzUzNS8iOiJodHRwczovL2FwaS5lbGNybS5vbmxpbmUvIixzPWF3YWl0IGZldGNoKGAke2V9JHt0LmRhdGEubGlua31gLHttZXRob2Q6IlBPU1QiLGhlYWRlcnM6eyJDb250ZW50LXR5cGUiOiJhcHBsaWNhdGlvbi9qc29uO2NoYXJzZXQ9dXRmLTgiLHNzaWQ6dC5kYXRhLnNzaWR9LGJvZHk6SlNPTi5zdHJpbmdpZnkodC5kYXRhLmRhdGEpfSk7cG9zdE1lc3NhZ2UoYXdhaXQgcy5qc29uKCkpfWNhdGNoe3Bvc3RNZXNzYWdlKHtzdGF0dXM6ImVycm9yIn0pfX19KSgpOwo=", gr = (e) => Uint8Array.from(atob(e), (t) => t.charCodeAt(0)), Ke = typeof window < "u" && window.Blob && new Blob([gr(ct)], { type: "text/javascript;charset=utf-8" });
227
- function _r(e) {
202
+ function vt(e) {
203
+ localStorage.setItem("user", C.enCode(e));
204
+ }
205
+ function jn() {
206
+ let e = localStorage.getItem("user");
207
+ if (e !== "" && e !== "undefined" && e !== null) {
208
+ let t = C.deCode(e);
209
+ return t || L(), t;
210
+ } else
211
+ return L(), !1;
212
+ }
213
+ const Pe = {
214
+ setSSID: Kt,
215
+ getSSID: Qt,
216
+ getPORT: Ee,
217
+ setPORT: tn,
218
+ setAUTH: qt,
219
+ getAUTH: en,
220
+ Logaut: L,
221
+ Start: Jt,
222
+ setSetting: pn,
223
+ getSetting: hn,
224
+ setMenu: mt,
225
+ getMenu: vn,
226
+ useSort: gn,
227
+ setSort: pt,
228
+ getSort: Te,
229
+ setCompany: ht,
230
+ getCompany: bn,
231
+ setSelect: oe,
232
+ getSelect: ie,
233
+ setApi: _n,
234
+ getApi: xn,
235
+ setPayment: yn,
236
+ getPayment: Sn,
237
+ setUser: vt,
238
+ getUser: jn
239
+ }, gt = "KGZ1bmN0aW9uKCl7InVzZSBzdHJpY3QiO3ZhciBhPXtCQVNFX1VSTDoiLyIsTU9ERToicHJvZHVjdGlvbiIsREVWOiExLFBST0Q6ITAsU1NSOiExfTtvbm1lc3NhZ2U9YXN5bmMgdD0+e2NvbnNvbGUubG9nKGEuVklURV9VUkwpO3RyeXtsZXQgZT1hLlZJVEVfVVJMPT09ImxvY2FsaG9zdCI/Imh0dHA6Ly9sb2NhbGhvc3Q6MzUzNS8iOiJodHRwczovL2FwaS5lbGNybS5vbmxpbmUvIixzPWF3YWl0IGZldGNoKGAke2V9JHt0LmRhdGEubGlua31gLHttZXRob2Q6IlBPU1QiLGhlYWRlcnM6eyJDb250ZW50LXR5cGUiOiJhcHBsaWNhdGlvbi9qc29uO2NoYXJzZXQ9dXRmLTgiLHNzaWQ6dC5kYXRhLnNzaWR9LGJvZHk6SlNPTi5zdHJpbmdpZnkodC5kYXRhLmRhdGEpfSk7cG9zdE1lc3NhZ2UoYXdhaXQgcy5qc29uKCkpfWNhdGNoe3Bvc3RNZXNzYWdlKHtzdGF0dXM6ImVycm9yIn0pfX19KSgpOwo=", Cn = (e) => Uint8Array.from(atob(e), (t) => t.charCodeAt(0)), at = typeof window < "u" && window.Blob && new Blob([Cn(gt)], { type: "text/javascript;charset=utf-8" });
240
+ function kn(e) {
228
241
  let t;
229
242
  try {
230
- if (t = Ke && (window.URL || window.webkitURL).createObjectURL(Ke), !t)
243
+ if (t = at && (window.URL || window.webkitURL).createObjectURL(at), !t)
231
244
  throw "";
232
- const n = new Worker(t, {
245
+ const r = new Worker(t, {
233
246
  name: e == null ? void 0 : e.name
234
247
  });
235
- return n.addEventListener("error", () => {
248
+ return r.addEventListener("error", () => {
236
249
  (window.URL || window.webkitURL).revokeObjectURL(t);
237
- }), n;
250
+ }), r;
238
251
  } catch {
239
252
  return new Worker(
240
- "data:text/javascript;base64," + ct,
253
+ "data:text/javascript;base64," + gt,
241
254
  {
242
255
  name: e == null ? void 0 : e.name
243
256
  }
@@ -246,98 +259,33 @@ function _r(e) {
246
259
  t && (window.URL || window.webkitURL).revokeObjectURL(t);
247
260
  }
248
261
  }
249
- const B = {};
250
- B.url = () => {
251
- let e = L.getPORT(), t = "", n = "";
252
- return e.address === "localhost" ? (t = `http://localhost:${e.socket}/documents`, n = `http://localhost:${e.socket}/files`) : (t = "https://" + e.address + "/documents", n = "https://" + e.address + "/files"), {
253
- documents: t,
254
- files: n
255
- };
256
- };
257
- B.audio = (e) => "https://" + L.getPORT().address + "/audio/" + e;
258
- B.fetch = (e, t = {}, n = L.getAUTH()) => new Promise((s) => {
259
- const c = new _r();
260
- c.onmessage = (m) => {
261
- s(m.data), c.terminate();
262
- }, c.postMessage({ link: e, data: t, ssid: n });
263
- });
264
- B.remoute = async (e, t, n = {}) => {
265
- try {
266
- return await (await fetch("https://" + e + "/" + t, {
267
- method: "POST",
268
- headers: {
269
- "Content-type": "application/json;charset=utf-8",
270
- ssid: L.getAUTH() || ""
271
- },
272
- body: JSON.stringify(n)
273
- })).json();
274
- } catch {
275
- return { status: "error" };
276
- }
277
- };
278
- B.telegram = async (e, t = {}) => {
279
- try {
280
- return await (await fetch("https://tb.elcrm.online/v1/" + e, {
281
- method: "POST",
282
- headers: {
283
- "Content-type": "application/json;charset=utf-8",
284
- ssid: L.getAUTH() || ""
285
- },
286
- body: JSON.stringify(t)
287
- })).json();
288
- } catch {
289
- return { status: "error" };
290
- }
291
- };
292
- B.yandex = async (e, t = {}) => {
293
- let n = L.getPORT();
294
- try {
295
- return await (await fetch("https://" + n.address + "/yandex/" + e, {
296
- method: "POST",
297
- headers: {
298
- "Content-type": "application/json;charset=utf-8",
299
- ssid: L.getSSID() || ""
300
- },
301
- body: JSON.stringify(t)
302
- })).json();
303
- } catch {
304
- return { status: "error" };
305
- }
306
- };
307
- B.backup = async (e, t = {}) => {
308
- let n = L.getPORT();
262
+ function Rn(e) {
263
+ return "https://" + Pe.getPORT().address + "/audio/" + e;
264
+ }
265
+ function bt(e, t = {}, r = Pe.getAUTH()) {
266
+ return new Promise((a) => {
267
+ const c = new kn();
268
+ c.onmessage = (f) => {
269
+ a(f.data), c.terminate();
270
+ }, c.postMessage({ link: e, data: t, ssid: r });
271
+ });
272
+ }
273
+ async function wn(e, t, r = {}) {
309
274
  try {
310
- return await (await fetch("https://" + n.address + "/backup/" + e, {
275
+ return await (await bt("https://" + e + "/" + t, {
311
276
  method: "POST",
312
277
  headers: {
313
278
  "Content-type": "application/json;charset=utf-8",
314
- ssid: L.getSSID() || ""
279
+ ssid: Pe.getAUTH() || ""
315
280
  },
316
- body: JSON.stringify(t)
281
+ body: JSON.stringify(r)
317
282
  })).json();
318
283
  } catch {
319
284
  return { status: "error" };
320
285
  }
321
- };
322
- B.db = async (e, t, n = {}) => {
323
- let s = L.getPORT();
324
- try {
325
- return await (await fetch(
326
- "https://" + s.address + "/" + e + "/" + t,
327
- {
328
- method: "POST",
329
- headers: {
330
- "Content-type": "application/json;charset=utf-8",
331
- ssid: L.getSSID() || ""
332
- },
333
- body: JSON.stringify(n)
334
- }
335
- )).json();
336
- } catch {
337
- return { status: "error" };
338
- }
339
- };
340
- var we = { exports: {} }, ne = {};
286
+ }
287
+ const Da = { audio: Rn, fetch: bt, remoute: wn };
288
+ var Ie = { exports: {} }, re = {};
341
289
  /**
342
290
  * @license React
343
291
  * react-jsx-runtime.production.min.js
@@ -347,23 +295,23 @@ var we = { exports: {} }, ne = {};
347
295
  * This source code is licensed under the MIT license found in the
348
296
  * LICENSE file in the root directory of this source tree.
349
297
  */
350
- var Qe;
351
- function br() {
352
- if (Qe)
353
- return ne;
354
- Qe = 1;
355
- var e = j, t = Symbol.for("react.element"), n = Symbol.for("react.fragment"), s = Object.prototype.hasOwnProperty, c = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, m = { key: !0, ref: !0, __self: !0, __source: !0 };
356
- function l(d, u, f) {
357
- var h, b = {}, S = null, T = null;
358
- f !== void 0 && (S = "" + f), u.key !== void 0 && (S = "" + u.key), u.ref !== void 0 && (T = u.ref);
359
- for (h in u)
360
- s.call(u, h) && !m.hasOwnProperty(h) && (b[h] = u[h]);
298
+ var st;
299
+ function En() {
300
+ if (st)
301
+ return re;
302
+ st = 1;
303
+ var e = j, t = Symbol.for("react.element"), r = Symbol.for("react.fragment"), a = Object.prototype.hasOwnProperty, c = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, f = { key: !0, ref: !0, __self: !0, __source: !0 };
304
+ function l(d, u, m) {
305
+ var p, _ = {}, S = null, I = null;
306
+ m !== void 0 && (S = "" + m), u.key !== void 0 && (S = "" + u.key), u.ref !== void 0 && (I = u.ref);
307
+ for (p in u)
308
+ a.call(u, p) && !f.hasOwnProperty(p) && (_[p] = u[p]);
361
309
  if (d && d.defaultProps)
362
- for (h in u = d.defaultProps, u)
363
- b[h] === void 0 && (b[h] = u[h]);
364
- return { $$typeof: t, type: d, key: S, ref: T, props: b, _owner: c.current };
310
+ for (p in u = d.defaultProps, u)
311
+ _[p] === void 0 && (_[p] = u[p]);
312
+ return { $$typeof: t, type: d, key: S, ref: I, props: _, _owner: c.current };
365
313
  }
366
- return ne.Fragment = n, ne.jsx = l, ne.jsxs = l, ne;
314
+ return re.Fragment = r, re.jsx = l, re.jsxs = l, re;
367
315
  }
368
316
  var ae = {};
369
317
  /**
@@ -375,91 +323,91 @@ var ae = {};
375
323
  * This source code is licensed under the MIT license found in the
376
324
  * LICENSE file in the root directory of this source tree.
377
325
  */
378
- var et;
379
- function xr() {
380
- return et || (et = 1, process.env.NODE_ENV !== "production" && function() {
381
- var e = j, t = Symbol.for("react.element"), n = Symbol.for("react.portal"), s = Symbol.for("react.fragment"), c = Symbol.for("react.strict_mode"), m = Symbol.for("react.profiler"), l = Symbol.for("react.provider"), d = Symbol.for("react.context"), u = Symbol.for("react.forward_ref"), f = Symbol.for("react.suspense"), h = Symbol.for("react.suspense_list"), b = Symbol.for("react.memo"), S = Symbol.for("react.lazy"), T = Symbol.for("react.offscreen"), N = Symbol.iterator, ee = "@@iterator";
382
- function $(r) {
383
- if (r === null || typeof r != "object")
326
+ var ot;
327
+ function Tn() {
328
+ return ot || (ot = 1, process.env.NODE_ENV !== "production" && function() {
329
+ var e = j, t = Symbol.for("react.element"), r = Symbol.for("react.portal"), a = Symbol.for("react.fragment"), c = Symbol.for("react.strict_mode"), f = Symbol.for("react.profiler"), l = Symbol.for("react.provider"), d = Symbol.for("react.context"), u = Symbol.for("react.forward_ref"), m = Symbol.for("react.suspense"), p = Symbol.for("react.suspense_list"), _ = Symbol.for("react.memo"), S = Symbol.for("react.lazy"), I = Symbol.for("react.offscreen"), M = Symbol.iterator, ee = "@@iterator";
330
+ function $(n) {
331
+ if (n === null || typeof n != "object")
384
332
  return null;
385
- var o = N && r[N] || r[ee];
333
+ var o = M && n[M] || n[ee];
386
334
  return typeof o == "function" ? o : null;
387
335
  }
388
- var I = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
389
- function R(r) {
336
+ var N = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
337
+ function w(n) {
390
338
  {
391
- for (var o = arguments.length, i = new Array(o > 1 ? o - 1 : 0), p = 1; p < o; p++)
392
- i[p - 1] = arguments[p];
393
- F("error", r, i);
339
+ for (var o = arguments.length, i = new Array(o > 1 ? o - 1 : 0), h = 1; h < o; h++)
340
+ i[h - 1] = arguments[h];
341
+ z("error", n, i);
394
342
  }
395
343
  }
396
- function F(r, o, i) {
344
+ function z(n, o, i) {
397
345
  {
398
- var p = I.ReactDebugCurrentFrame, x = p.getStackAddendum();
346
+ var h = N.ReactDebugCurrentFrame, x = h.getStackAddendum();
399
347
  x !== "" && (o += "%s", i = i.concat([x]));
400
- var y = i.map(function(_) {
401
- return String(_);
348
+ var y = i.map(function(b) {
349
+ return String(b);
402
350
  });
403
- y.unshift("Warning: " + o), Function.prototype.apply.call(console[r], console, y);
351
+ y.unshift("Warning: " + o), Function.prototype.apply.call(console[n], console, y);
404
352
  }
405
353
  }
406
- var z = !1, V = !1, X = !1, ie = !1, dt = !1, Re;
407
- Re = Symbol.for("react.module.reference");
408
- function ft(r) {
409
- return !!(typeof r == "string" || typeof r == "function" || r === s || r === m || dt || r === c || r === f || r === h || ie || r === T || z || V || X || typeof r == "object" && r !== null && (r.$$typeof === S || r.$$typeof === b || r.$$typeof === l || r.$$typeof === d || r.$$typeof === u || // This needs to include all possible module reference object
354
+ var U = !1, V = !1, J = !1, le = !1, yt = !1, Oe;
355
+ Oe = Symbol.for("react.module.reference");
356
+ function St(n) {
357
+ return !!(typeof n == "string" || typeof n == "function" || n === a || n === f || yt || n === c || n === m || n === p || le || n === I || U || V || J || typeof n == "object" && n !== null && (n.$$typeof === S || n.$$typeof === _ || n.$$typeof === l || n.$$typeof === d || n.$$typeof === u || // This needs to include all possible module reference object
410
358
  // types supported by any Flight configuration anywhere since
411
359
  // we don't know which Flight build this will end up being used
412
360
  // with.
413
- r.$$typeof === Re || r.getModuleId !== void 0));
361
+ n.$$typeof === Oe || n.getModuleId !== void 0));
414
362
  }
415
- function mt(r, o, i) {
416
- var p = r.displayName;
417
- if (p)
418
- return p;
363
+ function jt(n, o, i) {
364
+ var h = n.displayName;
365
+ if (h)
366
+ return h;
419
367
  var x = o.displayName || o.name || "";
420
368
  return x !== "" ? i + "(" + x + ")" : i;
421
369
  }
422
- function Ee(r) {
423
- return r.displayName || "Context";
370
+ function Le(n) {
371
+ return n.displayName || "Context";
424
372
  }
425
- function A(r) {
426
- if (r == null)
373
+ function Z(n) {
374
+ if (n == null)
427
375
  return null;
428
- if (typeof r.tag == "number" && R("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof r == "function")
429
- return r.displayName || r.name || null;
430
- if (typeof r == "string")
431
- return r;
432
- switch (r) {
433
- case s:
376
+ if (typeof n.tag == "number" && w("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof n == "function")
377
+ return n.displayName || n.name || null;
378
+ if (typeof n == "string")
379
+ return n;
380
+ switch (n) {
381
+ case a:
434
382
  return "Fragment";
435
- case n:
383
+ case r:
436
384
  return "Portal";
437
- case m:
385
+ case f:
438
386
  return "Profiler";
439
387
  case c:
440
388
  return "StrictMode";
441
- case f:
389
+ case m:
442
390
  return "Suspense";
443
- case h:
391
+ case p:
444
392
  return "SuspenseList";
445
393
  }
446
- if (typeof r == "object")
447
- switch (r.$$typeof) {
394
+ if (typeof n == "object")
395
+ switch (n.$$typeof) {
448
396
  case d:
449
- var o = r;
450
- return Ee(o) + ".Consumer";
397
+ var o = n;
398
+ return Le(o) + ".Consumer";
451
399
  case l:
452
- var i = r;
453
- return Ee(i._context) + ".Provider";
400
+ var i = n;
401
+ return Le(i._context) + ".Provider";
454
402
  case u:
455
- return mt(r, r.render, "ForwardRef");
456
- case b:
457
- var p = r.displayName || null;
458
- return p !== null ? p : A(r.type) || "Memo";
403
+ return jt(n, n.render, "ForwardRef");
404
+ case _:
405
+ var h = n.displayName || null;
406
+ return h !== null ? h : Z(n.type) || "Memo";
459
407
  case S: {
460
- var x = r, y = x._payload, _ = x._init;
408
+ var x = n, y = x._payload, b = x._init;
461
409
  try {
462
- return A(_(y));
410
+ return Z(b(y));
463
411
  } catch {
464
412
  return null;
465
413
  }
@@ -467,305 +415,305 @@ function xr() {
467
415
  }
468
416
  return null;
469
417
  }
470
- var G = Object.assign, te = 0, Te, Ie, Pe, Oe, Ne, $e, Fe;
471
- function Le() {
418
+ var Y = Object.assign, te = 0, Fe, Me, $e, ze, Ze, De, Ue;
419
+ function We() {
472
420
  }
473
- Le.__reactDisabledLog = !0;
474
- function ht() {
421
+ We.__reactDisabledLog = !0;
422
+ function Ct() {
475
423
  {
476
424
  if (te === 0) {
477
- Te = console.log, Ie = console.info, Pe = console.warn, Oe = console.error, Ne = console.group, $e = console.groupCollapsed, Fe = console.groupEnd;
478
- var r = {
425
+ Fe = console.log, Me = console.info, $e = console.warn, ze = console.error, Ze = console.group, De = console.groupCollapsed, Ue = console.groupEnd;
426
+ var n = {
479
427
  configurable: !0,
480
428
  enumerable: !0,
481
- value: Le,
429
+ value: We,
482
430
  writable: !0
483
431
  };
484
432
  Object.defineProperties(console, {
485
- info: r,
486
- log: r,
487
- warn: r,
488
- error: r,
489
- group: r,
490
- groupCollapsed: r,
491
- groupEnd: r
433
+ info: n,
434
+ log: n,
435
+ warn: n,
436
+ error: n,
437
+ group: n,
438
+ groupCollapsed: n,
439
+ groupEnd: n
492
440
  });
493
441
  }
494
442
  te++;
495
443
  }
496
444
  }
497
- function pt() {
445
+ function kt() {
498
446
  {
499
447
  if (te--, te === 0) {
500
- var r = {
448
+ var n = {
501
449
  configurable: !0,
502
450
  enumerable: !0,
503
451
  writable: !0
504
452
  };
505
453
  Object.defineProperties(console, {
506
- log: G({}, r, {
507
- value: Te
454
+ log: Y({}, n, {
455
+ value: Fe
508
456
  }),
509
- info: G({}, r, {
510
- value: Ie
457
+ info: Y({}, n, {
458
+ value: Me
511
459
  }),
512
- warn: G({}, r, {
513
- value: Pe
460
+ warn: Y({}, n, {
461
+ value: $e
514
462
  }),
515
- error: G({}, r, {
516
- value: Oe
463
+ error: Y({}, n, {
464
+ value: ze
517
465
  }),
518
- group: G({}, r, {
519
- value: Ne
466
+ group: Y({}, n, {
467
+ value: Ze
520
468
  }),
521
- groupCollapsed: G({}, r, {
522
- value: $e
469
+ groupCollapsed: Y({}, n, {
470
+ value: De
523
471
  }),
524
- groupEnd: G({}, r, {
525
- value: Fe
472
+ groupEnd: Y({}, n, {
473
+ value: Ue
526
474
  })
527
475
  });
528
476
  }
529
- te < 0 && R("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
477
+ te < 0 && w("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
530
478
  }
531
479
  }
532
- var ve = I.ReactCurrentDispatcher, ge;
533
- function ce(r, o, i) {
480
+ var _e = N.ReactCurrentDispatcher, xe;
481
+ function ue(n, o, i) {
534
482
  {
535
- if (ge === void 0)
483
+ if (xe === void 0)
536
484
  try {
537
485
  throw Error();
538
486
  } catch (x) {
539
- var p = x.stack.trim().match(/\n( *(at )?)/);
540
- ge = p && p[1] || "";
487
+ var h = x.stack.trim().match(/\n( *(at )?)/);
488
+ xe = h && h[1] || "";
541
489
  }
542
490
  return `
543
- ` + ge + r;
491
+ ` + xe + n;
544
492
  }
545
493
  }
546
- var _e = !1, le;
494
+ var ye = !1, de;
547
495
  {
548
- var vt = typeof WeakMap == "function" ? WeakMap : Map;
549
- le = new vt();
496
+ var Rt = typeof WeakMap == "function" ? WeakMap : Map;
497
+ de = new Rt();
550
498
  }
551
- function Me(r, o) {
552
- if (!r || _e)
499
+ function Ae(n, o) {
500
+ if (!n || ye)
553
501
  return "";
554
502
  {
555
- var i = le.get(r);
503
+ var i = de.get(n);
556
504
  if (i !== void 0)
557
505
  return i;
558
506
  }
559
- var p;
560
- _e = !0;
507
+ var h;
508
+ ye = !0;
561
509
  var x = Error.prepareStackTrace;
562
510
  Error.prepareStackTrace = void 0;
563
511
  var y;
564
- y = ve.current, ve.current = null, ht();
512
+ y = _e.current, _e.current = null, Ct();
565
513
  try {
566
514
  if (o) {
567
- var _ = function() {
515
+ var b = function() {
568
516
  throw Error();
569
517
  };
570
- if (Object.defineProperty(_.prototype, "props", {
518
+ if (Object.defineProperty(b.prototype, "props", {
571
519
  set: function() {
572
520
  throw Error();
573
521
  }
574
522
  }), typeof Reflect == "object" && Reflect.construct) {
575
523
  try {
576
- Reflect.construct(_, []);
524
+ Reflect.construct(b, []);
577
525
  } catch (D) {
578
- p = D;
526
+ h = D;
579
527
  }
580
- Reflect.construct(r, [], _);
528
+ Reflect.construct(n, [], b);
581
529
  } else {
582
530
  try {
583
- _.call();
531
+ b.call();
584
532
  } catch (D) {
585
- p = D;
533
+ h = D;
586
534
  }
587
- r.call(_.prototype);
535
+ n.call(b.prototype);
588
536
  }
589
537
  } else {
590
538
  try {
591
539
  throw Error();
592
540
  } catch (D) {
593
- p = D;
541
+ h = D;
594
542
  }
595
- r();
543
+ n();
596
544
  }
597
545
  } catch (D) {
598
- if (D && p && typeof D.stack == "string") {
546
+ if (D && h && typeof D.stack == "string") {
599
547
  for (var g = D.stack.split(`
600
- `), E = p.stack.split(`
601
- `), C = g.length - 1, k = E.length - 1; C >= 1 && k >= 0 && g[C] !== E[k]; )
602
- k--;
603
- for (; C >= 1 && k >= 0; C--, k--)
604
- if (g[C] !== E[k]) {
605
- if (C !== 1 || k !== 1)
548
+ `), T = h.stack.split(`
549
+ `), k = g.length - 1, R = T.length - 1; k >= 1 && R >= 0 && g[k] !== T[R]; )
550
+ R--;
551
+ for (; k >= 1 && R >= 0; k--, R--)
552
+ if (g[k] !== T[R]) {
553
+ if (k !== 1 || R !== 1)
606
554
  do
607
- if (C--, k--, k < 0 || g[C] !== E[k]) {
608
- var O = `
609
- ` + g[C].replace(" at new ", " at ");
610
- return r.displayName && O.includes("<anonymous>") && (O = O.replace("<anonymous>", r.displayName)), typeof r == "function" && le.set(r, O), O;
555
+ if (k--, R--, R < 0 || g[k] !== T[R]) {
556
+ var F = `
557
+ ` + g[k].replace(" at new ", " at ");
558
+ return n.displayName && F.includes("<anonymous>") && (F = F.replace("<anonymous>", n.displayName)), typeof n == "function" && de.set(n, F), F;
611
559
  }
612
- while (C >= 1 && k >= 0);
560
+ while (k >= 1 && R >= 0);
613
561
  break;
614
562
  }
615
563
  }
616
564
  } finally {
617
- _e = !1, ve.current = y, pt(), Error.prepareStackTrace = x;
565
+ ye = !1, _e.current = y, kt(), Error.prepareStackTrace = x;
618
566
  }
619
- var K = r ? r.displayName || r.name : "", Xe = K ? ce(K) : "";
620
- return typeof r == "function" && le.set(r, Xe), Xe;
567
+ var Q = n ? n.displayName || n.name : "", nt = Q ? ue(Q) : "";
568
+ return typeof n == "function" && de.set(n, nt), nt;
621
569
  }
622
- function gt(r, o, i) {
623
- return Me(r, !1);
570
+ function wt(n, o, i) {
571
+ return Ae(n, !1);
624
572
  }
625
- function _t(r) {
626
- var o = r.prototype;
573
+ function Et(n) {
574
+ var o = n.prototype;
627
575
  return !!(o && o.isReactComponent);
628
576
  }
629
- function ue(r, o, i) {
630
- if (r == null)
577
+ function fe(n, o, i) {
578
+ if (n == null)
631
579
  return "";
632
- if (typeof r == "function")
633
- return Me(r, _t(r));
634
- if (typeof r == "string")
635
- return ce(r);
636
- switch (r) {
637
- case f:
638
- return ce("Suspense");
639
- case h:
640
- return ce("SuspenseList");
580
+ if (typeof n == "function")
581
+ return Ae(n, Et(n));
582
+ if (typeof n == "string")
583
+ return ue(n);
584
+ switch (n) {
585
+ case m:
586
+ return ue("Suspense");
587
+ case p:
588
+ return ue("SuspenseList");
641
589
  }
642
- if (typeof r == "object")
643
- switch (r.$$typeof) {
590
+ if (typeof n == "object")
591
+ switch (n.$$typeof) {
644
592
  case u:
645
- return gt(r.render);
646
- case b:
647
- return ue(r.type, o, i);
593
+ return wt(n.render);
594
+ case _:
595
+ return fe(n.type, o, i);
648
596
  case S: {
649
- var p = r, x = p._payload, y = p._init;
597
+ var h = n, x = h._payload, y = h._init;
650
598
  try {
651
- return ue(y(x), o, i);
599
+ return fe(y(x), o, i);
652
600
  } catch {
653
601
  }
654
602
  }
655
603
  }
656
604
  return "";
657
605
  }
658
- var de = Object.prototype.hasOwnProperty, Ae = {}, De = I.ReactDebugCurrentFrame;
659
- function fe(r) {
660
- if (r) {
661
- var o = r._owner, i = ue(r.type, r._source, o ? o.type : null);
662
- De.setExtraStackFrame(i);
606
+ var me = Object.prototype.hasOwnProperty, Ge = {}, Ve = N.ReactDebugCurrentFrame;
607
+ function pe(n) {
608
+ if (n) {
609
+ var o = n._owner, i = fe(n.type, n._source, o ? o.type : null);
610
+ Ve.setExtraStackFrame(i);
663
611
  } else
664
- De.setExtraStackFrame(null);
612
+ Ve.setExtraStackFrame(null);
665
613
  }
666
- function bt(r, o, i, p, x) {
614
+ function Tt(n, o, i, h, x) {
667
615
  {
668
- var y = Function.call.bind(de);
669
- for (var _ in r)
670
- if (y(r, _)) {
616
+ var y = Function.call.bind(me);
617
+ for (var b in n)
618
+ if (y(n, b)) {
671
619
  var g = void 0;
672
620
  try {
673
- if (typeof r[_] != "function") {
674
- var E = Error((p || "React class") + ": " + i + " type `" + _ + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof r[_] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
675
- throw E.name = "Invariant Violation", E;
621
+ if (typeof n[b] != "function") {
622
+ var T = Error((h || "React class") + ": " + i + " type `" + b + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof n[b] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
623
+ throw T.name = "Invariant Violation", T;
676
624
  }
677
- g = r[_](o, _, p, i, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
678
- } catch (C) {
679
- g = C;
625
+ g = n[b](o, b, h, i, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
626
+ } catch (k) {
627
+ g = k;
680
628
  }
681
- g && !(g instanceof Error) && (fe(x), R("%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).", p || "React class", i, _, typeof g), fe(null)), g instanceof Error && !(g.message in Ae) && (Ae[g.message] = !0, fe(x), R("Failed %s type: %s", i, g.message), fe(null));
629
+ g && !(g instanceof Error) && (pe(x), w("%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", i, b, typeof g), pe(null)), g instanceof Error && !(g.message in Ge) && (Ge[g.message] = !0, pe(x), w("Failed %s type: %s", i, g.message), pe(null));
682
630
  }
683
631
  }
684
632
  }
685
- var xt = Array.isArray;
686
- function be(r) {
687
- return xt(r);
633
+ var It = Array.isArray;
634
+ function Se(n) {
635
+ return It(n);
688
636
  }
689
- function yt(r) {
637
+ function Nt(n) {
690
638
  {
691
- var o = typeof Symbol == "function" && Symbol.toStringTag, i = o && r[Symbol.toStringTag] || r.constructor.name || "Object";
639
+ var o = typeof Symbol == "function" && Symbol.toStringTag, i = o && n[Symbol.toStringTag] || n.constructor.name || "Object";
692
640
  return i;
693
641
  }
694
642
  }
695
- function St(r) {
643
+ function Pt(n) {
696
644
  try {
697
- return ze(r), !1;
645
+ return Ye(n), !1;
698
646
  } catch {
699
647
  return !0;
700
648
  }
701
649
  }
702
- function ze(r) {
703
- return "" + r;
650
+ function Ye(n) {
651
+ return "" + n;
704
652
  }
705
- function Ue(r) {
706
- if (St(r))
707
- return R("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", yt(r)), ze(r);
653
+ function Be(n) {
654
+ if (Pt(n))
655
+ return w("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Nt(n)), Ye(n);
708
656
  }
709
- var re = I.ReactCurrentOwner, jt = {
657
+ var ne = N.ReactCurrentOwner, Ot = {
710
658
  key: !0,
711
659
  ref: !0,
712
660
  __self: !0,
713
661
  __source: !0
714
- }, We, Ye, xe;
715
- xe = {};
716
- function Ct(r) {
717
- if (de.call(r, "ref")) {
718
- var o = Object.getOwnPropertyDescriptor(r, "ref").get;
662
+ }, Xe, He, je;
663
+ je = {};
664
+ function Lt(n) {
665
+ if (me.call(n, "ref")) {
666
+ var o = Object.getOwnPropertyDescriptor(n, "ref").get;
719
667
  if (o && o.isReactWarning)
720
668
  return !1;
721
669
  }
722
- return r.ref !== void 0;
670
+ return n.ref !== void 0;
723
671
  }
724
- function wt(r) {
725
- if (de.call(r, "key")) {
726
- var o = Object.getOwnPropertyDescriptor(r, "key").get;
672
+ function Ft(n) {
673
+ if (me.call(n, "key")) {
674
+ var o = Object.getOwnPropertyDescriptor(n, "key").get;
727
675
  if (o && o.isReactWarning)
728
676
  return !1;
729
677
  }
730
- return r.key !== void 0;
678
+ return n.key !== void 0;
731
679
  }
732
- function kt(r, o) {
733
- if (typeof r.ref == "string" && re.current && o && re.current.stateNode !== o) {
734
- var i = A(re.current.type);
735
- xe[i] || (R('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', A(re.current.type), r.ref), xe[i] = !0);
680
+ function Mt(n, o) {
681
+ if (typeof n.ref == "string" && ne.current && o && ne.current.stateNode !== o) {
682
+ var i = Z(ne.current.type);
683
+ je[i] || (w('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', Z(ne.current.type), n.ref), je[i] = !0);
736
684
  }
737
685
  }
738
- function Rt(r, o) {
686
+ function $t(n, o) {
739
687
  {
740
688
  var i = function() {
741
- We || (We = !0, R("%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)", o));
689
+ Xe || (Xe = !0, w("%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)", o));
742
690
  };
743
- i.isReactWarning = !0, Object.defineProperty(r, "key", {
691
+ i.isReactWarning = !0, Object.defineProperty(n, "key", {
744
692
  get: i,
745
693
  configurable: !0
746
694
  });
747
695
  }
748
696
  }
749
- function Et(r, o) {
697
+ function zt(n, o) {
750
698
  {
751
699
  var i = function() {
752
- Ye || (Ye = !0, R("%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)", o));
700
+ He || (He = !0, w("%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)", o));
753
701
  };
754
- i.isReactWarning = !0, Object.defineProperty(r, "ref", {
702
+ i.isReactWarning = !0, Object.defineProperty(n, "ref", {
755
703
  get: i,
756
704
  configurable: !0
757
705
  });
758
706
  }
759
707
  }
760
- var Tt = function(r, o, i, p, x, y, _) {
708
+ var Zt = function(n, o, i, h, x, y, b) {
761
709
  var g = {
762
710
  // This tag allows us to uniquely identify this as a React Element
763
711
  $$typeof: t,
764
712
  // Built-in properties that belong on the element
765
- type: r,
713
+ type: n,
766
714
  key: o,
767
715
  ref: i,
768
- props: _,
716
+ props: b,
769
717
  // Record the component responsible for creating this element.
770
718
  _owner: y
771
719
  };
@@ -778,7 +726,7 @@ function xr() {
778
726
  configurable: !1,
779
727
  enumerable: !1,
780
728
  writable: !1,
781
- value: p
729
+ value: h
782
730
  }), Object.defineProperty(g, "_source", {
783
731
  configurable: !1,
784
732
  enumerable: !1,
@@ -786,53 +734,53 @@ function xr() {
786
734
  value: x
787
735
  }), Object.freeze && (Object.freeze(g.props), Object.freeze(g)), g;
788
736
  };
789
- function It(r, o, i, p, x) {
737
+ function Dt(n, o, i, h, x) {
790
738
  {
791
- var y, _ = {}, g = null, E = null;
792
- i !== void 0 && (Ue(i), g = "" + i), wt(o) && (Ue(o.key), g = "" + o.key), Ct(o) && (E = o.ref, kt(o, x));
739
+ var y, b = {}, g = null, T = null;
740
+ i !== void 0 && (Be(i), g = "" + i), Ft(o) && (Be(o.key), g = "" + o.key), Lt(o) && (T = o.ref, Mt(o, x));
793
741
  for (y in o)
794
- de.call(o, y) && !jt.hasOwnProperty(y) && (_[y] = o[y]);
795
- if (r && r.defaultProps) {
796
- var C = r.defaultProps;
797
- for (y in C)
798
- _[y] === void 0 && (_[y] = C[y]);
742
+ me.call(o, y) && !Ot.hasOwnProperty(y) && (b[y] = o[y]);
743
+ if (n && n.defaultProps) {
744
+ var k = n.defaultProps;
745
+ for (y in k)
746
+ b[y] === void 0 && (b[y] = k[y]);
799
747
  }
800
- if (g || E) {
801
- var k = typeof r == "function" ? r.displayName || r.name || "Unknown" : r;
802
- g && Rt(_, k), E && Et(_, k);
748
+ if (g || T) {
749
+ var R = typeof n == "function" ? n.displayName || n.name || "Unknown" : n;
750
+ g && $t(b, R), T && zt(b, R);
803
751
  }
804
- return Tt(r, g, E, x, p, re.current, _);
752
+ return Zt(n, g, T, x, h, ne.current, b);
805
753
  }
806
754
  }
807
- var ye = I.ReactCurrentOwner, Be = I.ReactDebugCurrentFrame;
808
- function q(r) {
809
- if (r) {
810
- var o = r._owner, i = ue(r.type, r._source, o ? o.type : null);
811
- Be.setExtraStackFrame(i);
755
+ var Ce = N.ReactCurrentOwner, Je = N.ReactDebugCurrentFrame;
756
+ function K(n) {
757
+ if (n) {
758
+ var o = n._owner, i = fe(n.type, n._source, o ? o.type : null);
759
+ Je.setExtraStackFrame(i);
812
760
  } else
813
- Be.setExtraStackFrame(null);
761
+ Je.setExtraStackFrame(null);
814
762
  }
815
- var Se;
816
- Se = !1;
817
- function je(r) {
818
- return typeof r == "object" && r !== null && r.$$typeof === t;
763
+ var ke;
764
+ ke = !1;
765
+ function Re(n) {
766
+ return typeof n == "object" && n !== null && n.$$typeof === t;
819
767
  }
820
- function Ve() {
768
+ function Ke() {
821
769
  {
822
- if (ye.current) {
823
- var r = A(ye.current.type);
824
- if (r)
770
+ if (Ce.current) {
771
+ var n = Z(Ce.current.type);
772
+ if (n)
825
773
  return `
826
774
 
827
- Check the render method of \`` + r + "`.";
775
+ Check the render method of \`` + n + "`.";
828
776
  }
829
777
  return "";
830
778
  }
831
779
  }
832
- function Pt(r) {
780
+ function Ut(n) {
833
781
  {
834
- if (r !== void 0) {
835
- var o = r.fileName.replace(/^.*[\\\/]/, ""), i = r.lineNumber;
782
+ if (n !== void 0) {
783
+ var o = n.fileName.replace(/^.*[\\\/]/, ""), i = n.lineNumber;
836
784
  return `
837
785
 
838
786
  Check your code at ` + o + ":" + i + ".";
@@ -840,12 +788,12 @@ Check your code at ` + o + ":" + i + ".";
840
788
  return "";
841
789
  }
842
790
  }
843
- var Ge = {};
844
- function Ot(r) {
791
+ var Qe = {};
792
+ function Wt(n) {
845
793
  {
846
- var o = Ve();
794
+ var o = Ke();
847
795
  if (!o) {
848
- var i = typeof r == "string" ? r : r.displayName || r.name;
796
+ var i = typeof n == "string" ? n : n.displayName || n.name;
849
797
  i && (o = `
850
798
 
851
799
  Check the top-level render call using <` + i + ">.");
@@ -853,41 +801,41 @@ Check the top-level render call using <` + i + ">.");
853
801
  return o;
854
802
  }
855
803
  }
856
- function He(r, o) {
804
+ function qe(n, o) {
857
805
  {
858
- if (!r._store || r._store.validated || r.key != null)
806
+ if (!n._store || n._store.validated || n.key != null)
859
807
  return;
860
- r._store.validated = !0;
861
- var i = Ot(o);
862
- if (Ge[i])
808
+ n._store.validated = !0;
809
+ var i = Wt(o);
810
+ if (Qe[i])
863
811
  return;
864
- Ge[i] = !0;
865
- var p = "";
866
- r && r._owner && r._owner !== ye.current && (p = " It was passed a child from " + A(r._owner.type) + "."), q(r), R('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', i, p), q(null);
812
+ Qe[i] = !0;
813
+ var h = "";
814
+ n && n._owner && n._owner !== Ce.current && (h = " It was passed a child from " + Z(n._owner.type) + "."), K(n), w('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', i, h), K(null);
867
815
  }
868
816
  }
869
- function Je(r, o) {
817
+ function et(n, o) {
870
818
  {
871
- if (typeof r != "object")
819
+ if (typeof n != "object")
872
820
  return;
873
- if (be(r))
874
- for (var i = 0; i < r.length; i++) {
875
- var p = r[i];
876
- je(p) && He(p, o);
821
+ if (Se(n))
822
+ for (var i = 0; i < n.length; i++) {
823
+ var h = n[i];
824
+ Re(h) && qe(h, o);
877
825
  }
878
- else if (je(r))
879
- r._store && (r._store.validated = !0);
880
- else if (r) {
881
- var x = $(r);
882
- if (typeof x == "function" && x !== r.entries)
883
- for (var y = x.call(r), _; !(_ = y.next()).done; )
884
- je(_.value) && He(_.value, o);
826
+ else if (Re(n))
827
+ n._store && (n._store.validated = !0);
828
+ else if (n) {
829
+ var x = $(n);
830
+ if (typeof x == "function" && x !== n.entries)
831
+ for (var y = x.call(n), b; !(b = y.next()).done; )
832
+ Re(b.value) && qe(b.value, o);
885
833
  }
886
834
  }
887
835
  }
888
- function Nt(r) {
836
+ function At(n) {
889
837
  {
890
- var o = r.type;
838
+ var o = n.type;
891
839
  if (o == null || typeof o == "string")
892
840
  return;
893
841
  var i;
@@ -895,156 +843,156 @@ Check the top-level render call using <` + i + ">.");
895
843
  i = o.propTypes;
896
844
  else if (typeof o == "object" && (o.$$typeof === u || // Note: Memo only checks outer props here.
897
845
  // Inner props are checked in the reconciler.
898
- o.$$typeof === b))
846
+ o.$$typeof === _))
899
847
  i = o.propTypes;
900
848
  else
901
849
  return;
902
850
  if (i) {
903
- var p = A(o);
904
- bt(i, r.props, "prop", p, r);
905
- } else if (o.PropTypes !== void 0 && !Se) {
906
- Se = !0;
907
- var x = A(o);
908
- R("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", x || "Unknown");
851
+ var h = Z(o);
852
+ Tt(i, n.props, "prop", h, n);
853
+ } else if (o.PropTypes !== void 0 && !ke) {
854
+ ke = !0;
855
+ var x = Z(o);
856
+ w("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", x || "Unknown");
909
857
  }
910
- typeof o.getDefaultProps == "function" && !o.getDefaultProps.isReactClassApproved && R("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
858
+ typeof o.getDefaultProps == "function" && !o.getDefaultProps.isReactClassApproved && w("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
911
859
  }
912
860
  }
913
- function $t(r) {
861
+ function Gt(n) {
914
862
  {
915
- for (var o = Object.keys(r.props), i = 0; i < o.length; i++) {
916
- var p = o[i];
917
- if (p !== "children" && p !== "key") {
918
- q(r), R("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", p), q(null);
863
+ for (var o = Object.keys(n.props), i = 0; i < o.length; i++) {
864
+ var h = o[i];
865
+ if (h !== "children" && h !== "key") {
866
+ K(n), w("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", h), K(null);
919
867
  break;
920
868
  }
921
869
  }
922
- r.ref !== null && (q(r), R("Invalid attribute `ref` supplied to `React.Fragment`."), q(null));
870
+ n.ref !== null && (K(n), w("Invalid attribute `ref` supplied to `React.Fragment`."), K(null));
923
871
  }
924
872
  }
925
- function Ze(r, o, i, p, x, y) {
873
+ function tt(n, o, i, h, x, y) {
926
874
  {
927
- var _ = ft(r);
928
- if (!_) {
875
+ var b = St(n);
876
+ if (!b) {
929
877
  var g = "";
930
- (r === void 0 || typeof r == "object" && r !== null && Object.keys(r).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.");
931
- var E = Pt(x);
932
- E ? g += E : g += Ve();
933
- var C;
934
- r === null ? C = "null" : be(r) ? C = "array" : r !== void 0 && r.$$typeof === t ? (C = "<" + (A(r.type) || "Unknown") + " />", g = " Did you accidentally export a JSX literal instead of a component?") : C = typeof r, R("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", C, g);
878
+ (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.");
879
+ var T = Ut(x);
880
+ T ? g += T : g += Ke();
881
+ var k;
882
+ n === null ? k = "null" : Se(n) ? k = "array" : n !== void 0 && n.$$typeof === t ? (k = "<" + (Z(n.type) || "Unknown") + " />", g = " Did you accidentally export a JSX literal instead of a component?") : k = typeof n, w("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", k, g);
935
883
  }
936
- var k = It(r, o, i, x, y);
937
- if (k == null)
938
- return k;
939
- if (_) {
940
- var O = o.children;
941
- if (O !== void 0)
942
- if (p)
943
- if (be(O)) {
944
- for (var K = 0; K < O.length; K++)
945
- Je(O[K], r);
946
- Object.freeze && Object.freeze(O);
884
+ var R = Dt(n, o, i, x, y);
885
+ if (R == null)
886
+ return R;
887
+ if (b) {
888
+ var F = o.children;
889
+ if (F !== void 0)
890
+ if (h)
891
+ if (Se(F)) {
892
+ for (var Q = 0; Q < F.length; Q++)
893
+ et(F[Q], n);
894
+ Object.freeze && Object.freeze(F);
947
895
  } else
948
- R("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
896
+ w("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
949
897
  else
950
- Je(O, r);
898
+ et(F, n);
951
899
  }
952
- return r === s ? $t(k) : Nt(k), k;
900
+ return n === a ? Gt(R) : At(R), R;
953
901
  }
954
902
  }
955
- function Ft(r, o, i) {
956
- return Ze(r, o, i, !0);
903
+ function Vt(n, o, i) {
904
+ return tt(n, o, i, !0);
957
905
  }
958
- function Lt(r, o, i) {
959
- return Ze(r, o, i, !1);
906
+ function Yt(n, o, i) {
907
+ return tt(n, o, i, !1);
960
908
  }
961
- var Mt = Lt, At = Ft;
962
- ae.Fragment = s, ae.jsx = Mt, ae.jsxs = At;
909
+ var Bt = Yt, Xt = Vt;
910
+ ae.Fragment = a, ae.jsx = Bt, ae.jsxs = Xt;
963
911
  }()), ae;
964
912
  }
965
- process.env.NODE_ENV === "production" ? we.exports = br() : we.exports = xr();
966
- var a = we.exports;
967
- const yr = "_notice_820sc_2", Sr = "_error_820sc_9", jr = "_success_820sc_12", Cr = "_remark_820sc_15", wr = "_copy_820sc_18", kr = {
968
- notice: yr,
969
- error: Sr,
970
- success: jr,
971
- remark: Cr,
972
- copy: wr,
913
+ process.env.NODE_ENV === "production" ? Ie.exports = En() : Ie.exports = Tn();
914
+ var s = Ie.exports;
915
+ const In = "_notice_820sc_2", Nn = "_error_820sc_9", Pn = "_success_820sc_12", On = "_remark_820sc_15", Ln = "_copy_820sc_18", Fn = {
916
+ notice: In,
917
+ error: Nn,
918
+ success: Pn,
919
+ remark: On,
920
+ copy: Ln,
973
921
  "show-notice": "_show-notice_820sc_1",
974
922
  "hide-notice": "_hide-notice_820sc_1"
975
923
  };
976
- let Y = {};
977
- function Rr() {
924
+ let G = {};
925
+ function Mn() {
978
926
  let [e, t] = j.useState([]);
979
- return Y.set = (n) => {
980
- t([...e, n]);
981
- }, Y.del = (n) => {
982
- t(e.filter((s) => s.key !== n));
983
- }, e.length === 0 ? "" : /* @__PURE__ */ a.jsx("ul", { className: kr.notice, children: e.map((n) => n.item) });
984
- }
985
- function oe({ data: e }) {
986
- let [t, n] = j.useState("show");
927
+ return G.set = (r) => {
928
+ t([...e, r]);
929
+ }, G.del = (r) => {
930
+ t(e.filter((a) => a.key !== r));
931
+ }, e.length === 0 ? "" : /* @__PURE__ */ s.jsx("ul", { className: Fn.notice, children: e.map((r) => r.item) });
932
+ }
933
+ function ce({ data: e }) {
934
+ let [t, r] = j.useState("show");
987
935
  j.useEffect(() => {
988
936
  setTimeout(function() {
989
- n("hide");
937
+ r("hide");
990
938
  }, 1800), setTimeout(function() {
991
- Y.del(e.key);
939
+ G.del(e.key);
992
940
  }, 2500);
993
941
  }, [e.key]);
994
- let s, c;
942
+ let a, c;
995
943
  switch (e.type) {
996
944
  case "error":
997
- s = /* @__PURE__ */ a.jsx(J.error, {}), c = "Ошибка:";
945
+ a = /* @__PURE__ */ s.jsx(X.error, {}), c = "Ошибка:";
998
946
  break;
999
947
  case "success":
1000
- s = /* @__PURE__ */ a.jsx(J.success, {}), c = "Информация:";
948
+ a = /* @__PURE__ */ s.jsx(X.success, {}), c = "Информация:";
1001
949
  break;
1002
950
  case "copy":
1003
- s = /* @__PURE__ */ a.jsx(J.success, {}), c = "Копирование:";
951
+ a = /* @__PURE__ */ s.jsx(X.success, {}), c = "Копирование:";
1004
952
  break;
1005
953
  case "remark":
1006
- s = /* @__PURE__ */ a.jsx(J.success, {}), c = "Подсказка:";
954
+ a = /* @__PURE__ */ s.jsx(X.success, {}), c = "Подсказка:";
1007
955
  break;
1008
956
  default:
1009
- s = /* @__PURE__ */ a.jsx(J.success, {}), c = "Предупреждение:";
957
+ a = /* @__PURE__ */ s.jsx(X.success, {}), c = "Предупреждение:";
1010
958
  break;
1011
959
  }
1012
- return /* @__PURE__ */ a.jsxs("li", { className: "item " + e.type, "data-status": t, children: [
1013
- s,
1014
- /* @__PURE__ */ a.jsx("b", { children: c }),
1015
- /* @__PURE__ */ a.jsx("p", { children: e.text })
960
+ return /* @__PURE__ */ s.jsxs("li", { className: "item " + e.type, "data-status": t, children: [
961
+ a,
962
+ /* @__PURE__ */ s.jsx("b", { children: c }),
963
+ /* @__PURE__ */ s.jsx("p", { children: e.text })
1016
964
  ] });
1017
965
  }
1018
- function Er(e) {
1019
- let t = Date.now(), n = { key: t, ...e };
1020
- Y.set({ item: /* @__PURE__ */ a.jsx(oe, { data: n }, t), key: t });
966
+ function $n(e) {
967
+ let t = Date.now(), r = { key: t, ...e };
968
+ G.set({ item: /* @__PURE__ */ s.jsx(ce, { data: r }, t), key: t });
1021
969
  }
1022
- function Tr(e) {
1023
- let t = Date.now(), n = { key: t, text: e, type: "error" };
1024
- Y.set({ item: /* @__PURE__ */ a.jsx(oe, { data: n }, t), key: t });
970
+ function zn(e) {
971
+ let t = Date.now(), r = { key: t, text: e, type: "error" };
972
+ G.set({ item: /* @__PURE__ */ s.jsx(ce, { data: r }, t), key: t });
1025
973
  }
1026
- function Ir(e) {
1027
- let t = Date.now(), n = { key: t, text: e, type: "success" };
1028
- Y.set({ item: /* @__PURE__ */ a.jsx(oe, { data: n }, t), key: t });
974
+ function Zn(e) {
975
+ let t = Date.now(), r = { key: t, text: e, type: "success" };
976
+ G.set({ item: /* @__PURE__ */ s.jsx(ce, { data: r }, t), key: t });
1029
977
  }
1030
- function Pr(e) {
1031
- let t = Date.now(), n = { key: t, text: e, type: "remark" };
1032
- Y.set({ item: /* @__PURE__ */ a.jsx(oe, { data: n }, t), key: t });
978
+ function Dn(e) {
979
+ let t = Date.now(), r = { key: t, text: e, type: "remark" };
980
+ G.set({ item: /* @__PURE__ */ s.jsx(ce, { data: r }, t), key: t });
1033
981
  }
1034
- function Or(e) {
1035
- let t = Date.now(), n = { key: t, text: e, type: "copy" };
1036
- Y.set({ item: /* @__PURE__ */ a.jsx(oe, { data: n }, t), key: t });
982
+ function Un(e) {
983
+ let t = Date.now(), r = { key: t, text: e, type: "copy" };
984
+ G.set({ item: /* @__PURE__ */ s.jsx(ce, { data: r }, t), key: t });
1037
985
  }
1038
- const J = {};
1039
- J.error = () => /* @__PURE__ */ a.jsxs("svg", { viewBox: "0 0 24 24", fill: "none", children: [
1040
- /* @__PURE__ */ a.jsx(
986
+ const X = {};
987
+ X.error = () => /* @__PURE__ */ s.jsxs("svg", { viewBox: "0 0 24 24", fill: "none", children: [
988
+ /* @__PURE__ */ s.jsx(
1041
989
  "path",
1042
990
  {
1043
991
  d: "M12 22C7.28595 22 4.92893 22 3.46447 20.5355C2 19.0711 2 16.714 2 12C2 7.28595 2 4.92893 3.46447 3.46447C4.92893 2 7.28595 2 12 2C16.714 2 19.0711 2 20.5355 3.46447C22 4.92893 22 7.28595 22 12C22 16.714 22 19.0711 20.5355 20.5355C19.0711 22 16.714 22 12 22Z",
1044
992
  fill: "#bb2014"
1045
993
  }
1046
994
  ),
1047
- /* @__PURE__ */ a.jsx(
995
+ /* @__PURE__ */ s.jsx(
1048
996
  "path",
1049
997
  {
1050
998
  d: "M8.96967 8.96967C9.26256 8.67678 9.73744 8.67678 10.0303 8.96967L12 10.9394L13.9697 8.96969C14.2626 8.6768 14.7374 8.6768 15.0303 8.96969C15.3232 9.26258 15.3232 9.73746 15.0303 10.0303L13.0607 12L15.0303 13.9697C15.3232 14.2625 15.3232 14.7374 15.0303 15.0303C14.7374 15.3232 14.2625 15.3232 13.9696 15.0303L12 13.0607L10.0304 15.0303C9.73746 15.3232 9.26258 15.3232 8.96969 15.0303C8.6768 14.7374 8.6768 14.2626 8.96969 13.9697L10.9394 12L8.96967 10.0303C8.67678 9.73744 8.67678 9.26256 8.96967 8.96967Z",
@@ -1052,15 +1000,15 @@ J.error = () => /* @__PURE__ */ a.jsxs("svg", { viewBox: "0 0 24 24", fill: "non
1052
1000
  }
1053
1001
  )
1054
1002
  ] });
1055
- J.success = () => /* @__PURE__ */ a.jsxs("svg", { viewBox: "0 0 24 24", fill: "none", children: [
1056
- /* @__PURE__ */ a.jsx(
1003
+ X.success = () => /* @__PURE__ */ s.jsxs("svg", { viewBox: "0 0 24 24", fill: "none", children: [
1004
+ /* @__PURE__ */ s.jsx(
1057
1005
  "path",
1058
1006
  {
1059
1007
  d: "M12 22C7.28595 22 4.92893 22 3.46447 20.5355C2 19.0711 2 16.714 2 12C2 7.28595 2 4.92893 3.46447 3.46447C4.92893 2 7.28595 2 12 2C16.714 2 19.0711 2 20.5355 3.46447C22 4.92893 22 7.28595 22 12C22 16.714 22 19.0711 20.5355 20.5355C19.0711 22 16.714 22 12 22Z",
1060
1008
  fill: "#367738"
1061
1009
  }
1062
1010
  ),
1063
- /* @__PURE__ */ a.jsx(
1011
+ /* @__PURE__ */ s.jsx(
1064
1012
  "path",
1065
1013
  {
1066
1014
  d: "M16.0303 8.96967C16.3232 9.26256 16.3232 9.73744 16.0303 10.0303L11.0303 15.0303C10.7374 15.3232 10.2626 15.3232 9.96967 15.0303L7.96967 13.0303C7.67678 12.7374 7.67678 12.2626 7.96967 11.9697C8.26256 11.6768 8.73744 11.6768 9.03033 11.9697L10.5 13.4393L14.9697 8.96967C15.2626 8.67678 15.7374 8.67678 16.0303 8.96967Z",
@@ -1068,24 +1016,24 @@ J.success = () => /* @__PURE__ */ a.jsxs("svg", { viewBox: "0 0 24 24", fill: "n
1068
1016
  }
1069
1017
  )
1070
1018
  ] });
1071
- const Nr = "_alerts_1e9y0_1", $r = "_menuAnimation_1e9y0_1", Fr = "_menuItemAnimation_1e9y0_1", Lr = "_allert_1e9y0_111", Mr = {
1072
- alerts: Nr,
1073
- menuAnimation: $r,
1074
- menuItemAnimation: Fr,
1019
+ const Wn = "_alerts_1e9y0_1", An = "_menuAnimation_1e9y0_1", Gn = "_menuItemAnimation_1e9y0_1", Vn = "_allert_1e9y0_111", Yn = {
1020
+ alerts: Wn,
1021
+ menuAnimation: An,
1022
+ menuItemAnimation: Gn,
1075
1023
  "--body": "_--body_1e9y0_103",
1076
- allert: Lr,
1024
+ allert: Vn,
1077
1025
  "--form": "_--form_1e9y0_111"
1078
1026
  };
1079
1027
  let se = {};
1080
- function Ar() {
1028
+ function Bn() {
1081
1029
  let [e, t] = j.useState("");
1082
- return se.set = (n) => t(n), se.del = () => t(""), /* @__PURE__ */ a.jsx(a.Fragment, { children: e });
1030
+ return se.set = (r) => t(r), se.del = () => t(""), /* @__PURE__ */ s.jsx(s.Fragment, { children: e });
1083
1031
  }
1084
- const Dr = ({ data: e, callback: t }) => (e.button = e.button === void 0 ? "Подтвердить" : e.button, /* @__PURE__ */ a.jsxs("div", { className: Mr.alerts, children: [
1085
- /* @__PURE__ */ a.jsxs("dl", { children: [
1086
- /* @__PURE__ */ a.jsx("dt", { children: e.title }),
1087
- /* @__PURE__ */ a.jsx("dd", { children: e.text }),
1088
- /* @__PURE__ */ a.jsx("ul", { children: /* @__PURE__ */ a.jsx(
1032
+ const Xn = ({ data: e, callback: t }) => (e.button = e.button === void 0 ? "Подтвердить" : e.button, /* @__PURE__ */ s.jsxs("div", { className: Yn.alerts, children: [
1033
+ /* @__PURE__ */ s.jsxs("dl", { children: [
1034
+ /* @__PURE__ */ s.jsx("dt", { children: e.title }),
1035
+ /* @__PURE__ */ s.jsx("dd", { children: e.text }),
1036
+ /* @__PURE__ */ s.jsx("ul", { children: /* @__PURE__ */ s.jsx(
1089
1037
  "button",
1090
1038
  {
1091
1039
  "data-color": e.color || "blue",
@@ -1096,178 +1044,178 @@ const Dr = ({ data: e, callback: t }) => (e.button = e.button === void 0 ? "По
1096
1044
  }
1097
1045
  ) })
1098
1046
  ] }),
1099
- /* @__PURE__ */ a.jsx("div", { className: "--body", onClick: se.del })
1047
+ /* @__PURE__ */ s.jsx("div", { className: "--body", onClick: se.del })
1100
1048
  ] }));
1101
- function zr(e, t) {
1102
- se.set(/* @__PURE__ */ a.jsx(Dr, { data: e, callback: t }));
1049
+ function Hn(e, t) {
1050
+ se.set(/* @__PURE__ */ s.jsx(Xn, { data: e, callback: t }));
1103
1051
  }
1104
- function Ur({ children: e }) {
1105
- return /* @__PURE__ */ a.jsx("div", { className: "l", children: /* @__PURE__ */ a.jsx("ul", { children: e }) });
1052
+ function Jn({ children: e }) {
1053
+ return /* @__PURE__ */ s.jsx("div", { className: "l", children: /* @__PURE__ */ s.jsx("ul", { children: e }) });
1106
1054
  }
1107
- function Wr({ children: e }) {
1108
- return /* @__PURE__ */ a.jsx("div", { className: "s", children: e });
1055
+ function Kn({ children: e }) {
1056
+ return /* @__PURE__ */ s.jsx("div", { className: "s", children: e });
1109
1057
  }
1110
- const Yr = ({
1058
+ const Qn = ({
1111
1059
  children: e,
1112
1060
  disabled: t,
1113
- label: n,
1114
- onClick: s
1061
+ label: r,
1062
+ onClick: a
1115
1063
  }) => {
1116
- const c = (m) => {
1117
- t || s && s(m);
1064
+ const c = (f) => {
1065
+ t || a && a(f);
1118
1066
  };
1119
- return /* @__PURE__ */ a.jsx("button", { disabled: t, onClick: c, children: n });
1120
- }, Br = "_white_1iomo_14", Vr = "_black_1iomo_26", Gr = "_shake_1iomo_1", Hr = "_modal_1iomo_73", Jr = "_o_1iomo_83", Zr = "_w_1iomo_14", Xr = "_h_1iomo_106", qr = "_l_1iomo_120", Kr = "_t_1iomo_158", Qr = "_m_1iomo_73", en = "_x_1iomo_166", tn = "_s_1iomo_176", rn = "_c_1iomo_181", nn = "_f_1iomo_186", an = "_btn_1iomo_229", sn = "_g_1iomo_242", on = "_confirm_1iomo_320", cn = "_cancel_1iomo_325", ln = "_disabled_1iomo_330", un = "_active_1iomo_387", dn = "_coincidence_1iomo_393", U = {
1121
- white: Br,
1122
- black: Vr,
1123
- shake: Gr,
1124
- modal: Hr,
1125
- o: Jr,
1126
- w: Zr,
1127
- h: Xr,
1128
- l: qr,
1129
- t: Kr,
1130
- m: Qr,
1131
- x: en,
1132
- s: tn,
1133
- c: rn,
1134
- f: nn,
1135
- btn: an,
1136
- g: sn,
1067
+ return /* @__PURE__ */ s.jsx("button", { disabled: t, onClick: c, children: r });
1068
+ }, qn = "_white_1iomo_14", er = "_black_1iomo_26", tr = "_shake_1iomo_1", nr = "_modal_1iomo_73", rr = "_o_1iomo_83", ar = "_w_1iomo_14", sr = "_h_1iomo_106", or = "_l_1iomo_120", ir = "_t_1iomo_158", cr = "_m_1iomo_73", lr = "_x_1iomo_166", ur = "_s_1iomo_176", dr = "_c_1iomo_181", fr = "_f_1iomo_186", mr = "_btn_1iomo_229", pr = "_g_1iomo_242", hr = "_confirm_1iomo_320", vr = "_cancel_1iomo_325", gr = "_disabled_1iomo_330", br = "_active_1iomo_387", _r = "_coincidence_1iomo_393", W = {
1069
+ white: qn,
1070
+ black: er,
1071
+ shake: tr,
1072
+ modal: nr,
1073
+ o: rr,
1074
+ w: ar,
1075
+ h: sr,
1076
+ l: or,
1077
+ t: ir,
1078
+ m: cr,
1079
+ x: lr,
1080
+ s: ur,
1081
+ c: dr,
1082
+ f: fr,
1083
+ btn: mr,
1084
+ g: pr,
1137
1085
  "size-a": "_size-a_1iomo_294",
1138
1086
  "size-s": "_size-s_1iomo_298",
1139
1087
  "size-m": "_size-m_1iomo_302",
1140
1088
  "size-l": "_size-l_1iomo_306",
1141
1089
  "size-x": "_size-x_1iomo_310",
1142
1090
  "size-f": "_size-f_1iomo_314",
1143
- confirm: on,
1144
- cancel: cn,
1145
- disabled: ln,
1091
+ confirm: hr,
1092
+ cancel: vr,
1093
+ disabled: gr,
1146
1094
  await: "_await_1iomo_337",
1147
- active: un,
1148
- coincidence: dn
1095
+ active: br,
1096
+ coincidence: _r
1149
1097
  };
1150
- let Q = {};
1151
- const fn = ({ config: e }) => {
1152
- let [t, n] = j.useState([]);
1153
- return Q.x = () => {
1154
- n([]);
1155
- }, Q.config = e, Q.add = (s) => {
1156
- n([...t, s]);
1157
- }, /* @__PURE__ */ a.jsx(a.Fragment, { children: t.map((s) => s) });
1158
- }, mn = ({
1098
+ let q = {};
1099
+ const xr = ({ config: e }) => {
1100
+ let [t, r] = j.useState([]);
1101
+ return q.x = () => {
1102
+ r([]);
1103
+ }, q.config = e, q.add = (a) => {
1104
+ r([...t, a]);
1105
+ }, /* @__PURE__ */ s.jsx(s.Fragment, { children: t.map((a) => a) });
1106
+ }, yr = ({
1159
1107
  children: e,
1160
1108
  title: t,
1161
- button: n,
1162
- tabs: s,
1109
+ button: r,
1110
+ tabs: a,
1163
1111
  size: c = "m",
1164
- menu: m
1112
+ menu: f
1165
1113
  }) => {
1166
- const [l, d] = j.useState(!0), u = j.useRef(), f = (b) => {
1167
- if (n && n.onClick)
1168
- return n.onClick({ closed: d, disabled: b });
1169
- }, h = () => {
1114
+ const [l, d] = j.useState(!0), u = j.useRef(), m = (_) => {
1115
+ if (r && r.onClick)
1116
+ return r.onClick({ closed: d, disabled: _ });
1117
+ }, p = () => {
1170
1118
  u.current.setAttribute("shake", !0), setTimeout(() => {
1171
1119
  u.current.setAttribute("shake", !1);
1172
1120
  }, 1e3);
1173
1121
  };
1174
- return /* @__PURE__ */ a.jsx(a.Fragment, { children: l ? /* @__PURE__ */ a.jsxs(
1122
+ return /* @__PURE__ */ s.jsx(s.Fragment, { children: l ? /* @__PURE__ */ s.jsxs(
1175
1123
  "div",
1176
1124
  {
1177
- className: `${U.modal} ${U.white}`,
1125
+ className: `${W.modal} ${W.white}`,
1178
1126
  children: [
1179
- /* @__PURE__ */ a.jsx("div", { className: U.o, onClick: h }),
1180
- /* @__PURE__ */ a.jsxs("div", { className: U.w, ref: u, children: [
1181
- /* @__PURE__ */ a.jsxs("div", { className: U.h, children: [
1182
- /* @__PURE__ */ a.jsx("div", { className: U.t, children: t }),
1183
- /* @__PURE__ */ a.jsxs("div", { className: U.m, children: [
1184
- s && /* @__PURE__ */ a.jsx("nav", { children: s.map((b, S) => /* @__PURE__ */ a.jsx(
1127
+ /* @__PURE__ */ s.jsx("div", { className: W.o, onClick: p }),
1128
+ /* @__PURE__ */ s.jsxs("div", { className: W.w, ref: u, children: [
1129
+ /* @__PURE__ */ s.jsxs("div", { className: W.h, children: [
1130
+ /* @__PURE__ */ s.jsx("div", { className: W.t, children: t }),
1131
+ /* @__PURE__ */ s.jsxs("div", { className: W.m, children: [
1132
+ a && /* @__PURE__ */ s.jsx("nav", { children: a.map((_, S) => /* @__PURE__ */ s.jsx(
1185
1133
  "span",
1186
1134
  {
1187
- onClick: b.onClick,
1188
- className: b.active ? "active" : "",
1189
- children: b.name
1135
+ onClick: _.onClick,
1136
+ className: _.active ? "active" : "",
1137
+ children: _.name
1190
1138
  },
1191
1139
  S
1192
1140
  )) }),
1193
- m
1141
+ f
1194
1142
  ] }),
1195
- /* @__PURE__ */ a.jsx(
1143
+ /* @__PURE__ */ s.jsx(
1196
1144
  "div",
1197
1145
  {
1198
- className: U.x,
1146
+ className: W.x,
1199
1147
  onClick: () => {
1200
1148
  d(!1);
1201
1149
  },
1202
- children: /* @__PURE__ */ a.jsx("svg", { viewBox: "0 0 24 24", fill: "none", children: /* @__PURE__ */ a.jsx("path", { d: "M19.0005 4.99988L5.00045 18.9999M5.00045 4.99988L19.0005 18.9999", stroke: "currentColor", "stroke-width": "2.5", "stroke-linecap": "round", "stroke-linejoin": "round" }) })
1150
+ children: /* @__PURE__ */ s.jsx("svg", { viewBox: "0 0 24 24", fill: "none", children: /* @__PURE__ */ s.jsx("path", { d: "M19.0005 4.99988L5.00045 18.9999M5.00045 4.99988L19.0005 18.9999", stroke: "currentColor", "stroke-width": "2.5", "stroke-linecap": "round", "stroke-linejoin": "round" }) })
1203
1151
  }
1204
1152
  )
1205
1153
  ] }),
1206
1154
  e,
1207
- n !== void 0 ? /* @__PURE__ */ a.jsx(
1208
- Yr,
1155
+ r !== void 0 ? /* @__PURE__ */ s.jsx(
1156
+ Qn,
1209
1157
  {
1210
- label: String(n.name),
1211
- onClick: f
1158
+ label: String(r.name),
1159
+ onClick: m
1212
1160
  }
1213
1161
  ) : ""
1214
1162
  ] })
1215
1163
  ]
1216
1164
  }
1217
1165
  ) : "" });
1218
- }, hn = (e) => {
1219
- Q.add(/* @__PURE__ */ a.jsx(pn, { children: e }, String(Date.now())));
1220
- }, pn = ({ children: e }) => /* @__PURE__ */ a.jsx(a.Fragment, { children: e }), vn = ({ type: e, name: t, params: n }) => {
1221
- let [s, c] = j.useState(null);
1166
+ }, Sr = (e) => {
1167
+ q.add(/* @__PURE__ */ s.jsx(jr, { children: e }, String(Date.now())));
1168
+ }, jr = ({ children: e }) => /* @__PURE__ */ s.jsx(s.Fragment, { children: e }), Cr = ({ type: e, name: t, params: r }) => {
1169
+ let [a, c] = j.useState(null);
1222
1170
  return j.useEffect(() => {
1223
- Q.config(e, t, n, c);
1224
- }, [n.id]), /* @__PURE__ */ a.jsx(a.Fragment, { children: s });
1225
- }, gn = (e, t, n) => {
1226
- Q.config(e, t, n);
1227
- }, _n = { List: Ur, Scroll: Wr, Init: fn, Main: mn, Add: hn, Icon: vn, Open: gn }, bn = ({ children: e, config: t, crypto: n, ...s }) => Dt(n, /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
1228
- /* @__PURE__ */ a.jsx(_n.Init, { config: t.modal }),
1229
- /* @__PURE__ */ a.jsx(Rr, {}),
1230
- /* @__PURE__ */ a.jsx(Ar, {}),
1171
+ q.config(e, t, r, c);
1172
+ }, [r.id]), /* @__PURE__ */ s.jsx(s.Fragment, { children: a });
1173
+ }, kr = (e, t, r) => {
1174
+ q.config(e, t, r);
1175
+ }, Rr = { List: Jn, Scroll: Kn, Init: xr, Main: yr, Add: Sr, Icon: Cr, Open: kr }, wr = ({ children: e, config: t, crypto: r, ...a }) => Ht(r, /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
1176
+ /* @__PURE__ */ s.jsx(Rr.Init, { config: t.modal }),
1177
+ /* @__PURE__ */ s.jsx(Mn, {}),
1178
+ /* @__PURE__ */ s.jsx(Bn, {}),
1231
1179
  e
1232
- ] })), xn = ({ children: e, ...t }) => /* @__PURE__ */ a.jsx("menu", { children: e }), yn = ({ children: e, ...t }) => /* @__PURE__ */ a.jsxs("header", { children: [
1180
+ ] })), Er = ({ children: e, ...t }) => /* @__PURE__ */ s.jsx("menu", { children: e }), Tr = ({ children: e, ...t }) => /* @__PURE__ */ s.jsxs("header", { children: [
1233
1181
  "xz",
1234
1182
  e
1235
- ] }), Sn = "_payment_1lxfv_1", jn = {
1236
- payment: Sn
1183
+ ] }), Ir = "_payment_1lxfv_1", Nr = {
1184
+ payment: Ir
1237
1185
  };
1238
- function Cn() {
1186
+ function Pr() {
1239
1187
  let [e, t] = j.useState({});
1240
- return !e.active && !e.payment ? "" : /* @__PURE__ */ a.jsx("div", { className: jn.payment, children: "Истек срок оплаты! Доступ доступен до 16.04.2024" });
1241
- }
1242
- const ka = ({ children: e, ...t }) => {
1243
- let n = {};
1244
- return n.enCode = (s) => JSON.stringify(s).toString(), n.deCode = (s) => JSON.parse(s), /* @__PURE__ */ a.jsxs("div", { className: "app", children: [
1245
- /* @__PURE__ */ a.jsx(Cn, {}),
1246
- /* @__PURE__ */ a.jsx(xn, {}),
1247
- /* @__PURE__ */ a.jsx(yn, {}),
1248
- /* @__PURE__ */ a.jsx(bn, { config: { modal: {} }, crypto: n }),
1188
+ return !e.active && !e.payment ? "" : /* @__PURE__ */ s.jsx("div", { className: Nr.payment, children: "Истек срок оплаты! Доступ доступен до 16.04.2024" });
1189
+ }
1190
+ const Ua = ({ children: e, ...t }) => {
1191
+ let r = {};
1192
+ return r.enCode = (a) => JSON.stringify(a).toString(), r.deCode = (a) => JSON.parse(a), /* @__PURE__ */ s.jsxs("div", { className: "app", children: [
1193
+ /* @__PURE__ */ s.jsx(Pr, {}),
1194
+ /* @__PURE__ */ s.jsx(Er, {}),
1195
+ /* @__PURE__ */ s.jsx(Tr, {}),
1196
+ /* @__PURE__ */ s.jsx(wr, { config: { modal: {} }, crypto: r }),
1249
1197
  e
1250
1198
  ] });
1251
- }, wn = ({ list: e, onClick: t, active: n, size: s, view: c }) => /* @__PURE__ */ a.jsx("nav", { children: /* @__PURE__ */ a.jsx("ul", { className: [s, c].join(" "), children: e.map((m) => /* @__PURE__ */ a.jsx(
1252
- kn,
1199
+ }, Or = ({ list: e, onClick: t, active: r, size: a, view: c }) => /* @__PURE__ */ s.jsx("nav", { children: /* @__PURE__ */ s.jsx("ul", { className: [a, c].join(" "), children: e.map((f) => /* @__PURE__ */ s.jsx(
1200
+ Lr,
1253
1201
  {
1254
1202
  onClick: t,
1255
- active: n,
1256
- label: m.label,
1257
- link: m.link
1203
+ active: r,
1204
+ label: f.label,
1205
+ link: f.link
1258
1206
  },
1259
- m.link
1260
- )) }) }), kn = ({ onClick: e, label: t, link: n, active: s }) => /* @__PURE__ */ a.jsx("li", { "tabs-active": String(s === n), onClick: () => e(n), children: t });
1261
- wn.defaultProps = { size: "M", view: "H" };
1262
- const Rn = ({
1207
+ f.link
1208
+ )) }) }), Lr = ({ onClick: e, label: t, link: r, active: a }) => /* @__PURE__ */ s.jsx("li", { "tabs-active": String(a === r), onClick: () => e(r), children: t });
1209
+ Or.defaultProps = { size: "M", view: "H" };
1210
+ const Fr = ({
1263
1211
  title: e = "",
1264
1212
  button: t,
1265
- description: n = "",
1266
- children: s
1267
- }) => /* @__PURE__ */ a.jsxs("fieldset", { children: [
1268
- e && /* @__PURE__ */ a.jsxs("legend", { children: [
1213
+ description: r = "",
1214
+ children: a
1215
+ }) => /* @__PURE__ */ s.jsxs("fieldset", { children: [
1216
+ e && /* @__PURE__ */ s.jsxs("legend", { children: [
1269
1217
  e,
1270
- t && /* @__PURE__ */ a.jsx(
1218
+ t && /* @__PURE__ */ s.jsx(
1271
1219
  "div",
1272
1220
  {
1273
1221
  role: "button-outline",
@@ -1277,23 +1225,23 @@ const Rn = ({
1277
1225
  ),
1278
1226
  " "
1279
1227
  ] }),
1280
- /* @__PURE__ */ a.jsx("ul", { children: s }),
1281
- n && /* @__PURE__ */ a.jsx("article", { children: n })
1282
- ] }), En = "_setting_1r0pc_2", Tn = {
1283
- setting: En
1284
- }, In = ({ children: e }) => /* @__PURE__ */ a.jsx("div", { className: Tn.setting, children: e }), Pn = ({ label: e, children: t }) => {
1285
- let [n, s] = j.useState(!1);
1286
- return /* @__PURE__ */ a.jsxs("li", { "data-item": "accordion", children: [
1287
- /* @__PURE__ */ a.jsxs("dl", { onClick: () => s(!n), children: [
1288
- /* @__PURE__ */ a.jsx("dt", { children: e }),
1289
- /* @__PURE__ */ a.jsx("dd", { children: /* @__PURE__ */ a.jsx("div", { "data-close": String(n) }) })
1228
+ /* @__PURE__ */ s.jsx("ul", { children: a }),
1229
+ r && /* @__PURE__ */ s.jsx("article", { children: r })
1230
+ ] }), Mr = "_setting_1r0pc_2", $r = {
1231
+ setting: Mr
1232
+ }, zr = ({ children: e }) => /* @__PURE__ */ s.jsx("div", { className: $r.setting, children: e }), Zr = ({ label: e, children: t }) => {
1233
+ let [r, a] = j.useState(!1);
1234
+ return /* @__PURE__ */ s.jsxs("li", { "data-item": "accordion", children: [
1235
+ /* @__PURE__ */ s.jsxs("dl", { onClick: () => a(!r), children: [
1236
+ /* @__PURE__ */ s.jsx("dt", { children: e }),
1237
+ /* @__PURE__ */ s.jsx("dd", { children: /* @__PURE__ */ s.jsx("div", { "data-close": String(r) }) })
1290
1238
  ] }),
1291
- n && /* @__PURE__ */ a.jsx("div", { children: t })
1239
+ r && /* @__PURE__ */ s.jsx("div", { children: t })
1292
1240
  ] });
1293
- }, On = ({ label: e, onClick: t, button: n }) => /* @__PURE__ */ a.jsx("li", { children: /* @__PURE__ */ a.jsxs("dl", { children: [
1294
- /* @__PURE__ */ a.jsx("dt", { children: e }),
1295
- /* @__PURE__ */ a.jsx("dd", { role: "button", onClick: () => t(), children: n })
1296
- ] }) }), Nn = ({ active: e, onClick: t }) => (console.log(e), e = typeof e == "number" ? !!e : e, /* @__PURE__ */ a.jsx(
1241
+ }, Dr = ({ label: e, onClick: t, button: r }) => /* @__PURE__ */ s.jsx("li", { children: /* @__PURE__ */ s.jsxs("dl", { children: [
1242
+ /* @__PURE__ */ s.jsx("dt", { children: e }),
1243
+ /* @__PURE__ */ s.jsx("dd", { role: "button", onClick: () => t(), children: r })
1244
+ ] }) }), Ur = ({ active: e, onClick: t }) => (console.log(e), e = typeof e == "number" ? !!e : e, /* @__PURE__ */ s.jsx(
1297
1245
  "div",
1298
1246
  {
1299
1247
  role: "switch",
@@ -1302,53 +1250,53 @@ const Rn = ({
1302
1250
  },
1303
1251
  "aria-checked": e ? "true" : "false"
1304
1252
  }
1305
- )), $n = { Switch: Nn }, Fn = ({ label: e, onClick: t, active: n }) => /* @__PURE__ */ a.jsx("li", { children: /* @__PURE__ */ a.jsxs("dl", { children: [
1306
- /* @__PURE__ */ a.jsx("dt", { children: e }),
1307
- /* @__PURE__ */ a.jsx("dd", { children: /* @__PURE__ */ a.jsx($n.Switch, { onClick: t, active: n }) })
1308
- ] }) }), Ln = ({ label: e, active: t, options: n }) => /* @__PURE__ */ a.jsx("li", { children: /* @__PURE__ */ a.jsxs("dl", { children: [
1309
- /* @__PURE__ */ a.jsx("dt", { children: e }),
1310
- /* @__PURE__ */ a.jsx("dd", { role: "info", children: t })
1311
- ] }) }), Mn = ({ label: e, info: t }) => /* @__PURE__ */ a.jsx("li", { children: /* @__PURE__ */ a.jsxs("dl", { children: [
1312
- /* @__PURE__ */ a.jsx("dt", { children: e }),
1313
- /* @__PURE__ */ a.jsx("dd", { role: "info", children: t })
1314
- ] }) }), An = ({ label: e, children: t }) => /* @__PURE__ */ a.jsx("li", { children: /* @__PURE__ */ a.jsxs("dl", { children: [
1315
- /* @__PURE__ */ a.jsx("dt", { children: e }),
1316
- /* @__PURE__ */ a.jsx("dd", { children: t })
1317
- ] }) }), Dn = ({ label: e, children: t }) => /* @__PURE__ */ a.jsx("li", { children: /* @__PURE__ */ a.jsxs("dl", { children: [
1318
- /* @__PURE__ */ a.jsx("dt", { children: e }),
1319
- /* @__PURE__ */ a.jsx("dd", { children: t })
1320
- ] }) }), zn = { Accordion: Pn, Button: On, Switch: Fn, Info: Mn, Select: Ln, Component: An, Node: Dn };
1321
- function lt({ list: e, onClick: t, active: n, size: s, view: c }) {
1322
- return /* @__PURE__ */ a.jsx("nav", { children: /* @__PURE__ */ a.jsx("ul", { className: [s, c].join(" "), children: e.map((m) => /* @__PURE__ */ a.jsx(
1323
- Un,
1253
+ )), Wr = { Switch: Ur }, Ar = ({ label: e, onClick: t, active: r }) => /* @__PURE__ */ s.jsx("li", { children: /* @__PURE__ */ s.jsxs("dl", { children: [
1254
+ /* @__PURE__ */ s.jsx("dt", { children: e }),
1255
+ /* @__PURE__ */ s.jsx("dd", { children: /* @__PURE__ */ s.jsx(Wr.Switch, { onClick: t, active: r }) })
1256
+ ] }) }), Gr = ({ label: e, active: t, options: r }) => /* @__PURE__ */ s.jsx("li", { children: /* @__PURE__ */ s.jsxs("dl", { children: [
1257
+ /* @__PURE__ */ s.jsx("dt", { children: e }),
1258
+ /* @__PURE__ */ s.jsx("dd", { role: "info", children: t })
1259
+ ] }) }), Vr = ({ label: e, info: t }) => /* @__PURE__ */ s.jsx("li", { children: /* @__PURE__ */ s.jsxs("dl", { children: [
1260
+ /* @__PURE__ */ s.jsx("dt", { children: e }),
1261
+ /* @__PURE__ */ s.jsx("dd", { role: "info", children: t })
1262
+ ] }) }), Yr = ({ label: e, children: t }) => /* @__PURE__ */ s.jsx("li", { children: /* @__PURE__ */ s.jsxs("dl", { children: [
1263
+ /* @__PURE__ */ s.jsx("dt", { children: e }),
1264
+ /* @__PURE__ */ s.jsx("dd", { children: t })
1265
+ ] }) }), Br = ({ label: e, children: t }) => /* @__PURE__ */ s.jsx("li", { children: /* @__PURE__ */ s.jsxs("dl", { children: [
1266
+ /* @__PURE__ */ s.jsx("dt", { children: e }),
1267
+ /* @__PURE__ */ s.jsx("dd", { children: t })
1268
+ ] }) }), Xr = { Accordion: Zr, Button: Dr, Switch: Ar, Info: Vr, Select: Gr, Component: Yr, Node: Br };
1269
+ function _t({ list: e, onClick: t, active: r, size: a, view: c }) {
1270
+ return /* @__PURE__ */ s.jsx("nav", { children: /* @__PURE__ */ s.jsx("ul", { className: [a, c].join(" "), children: e.map((f) => /* @__PURE__ */ s.jsx(
1271
+ Hr,
1324
1272
  {
1325
1273
  onClick: t,
1326
- active: n,
1327
- label: m.label,
1328
- link: m.link
1274
+ active: r,
1275
+ label: f.label,
1276
+ link: f.link
1329
1277
  },
1330
- m.link
1278
+ f.link
1331
1279
  )) }) });
1332
1280
  }
1333
- const Un = ({ onClick: e, label: t, link: n, active: s }) => /* @__PURE__ */ a.jsx("li", { "tabs-active": String(s === n), onClick: () => e(n), children: t });
1334
- lt.defaultProps = { size: "M", view: "H" };
1335
- const Ra = { Section: Rn, Main: In, Item: zn, Tabs: lt }, Wn = "_h_158b4_1", Yn = "_t_158b4_11", Bn = "_s_158b4_31", Vn = "_u_158b4_40", Gn = "_o_158b4_47", Hn = "_l_158b4_56", Jn = "_hh_158b4_63", Z = {
1336
- h: Wn,
1337
- t: Yn,
1338
- s: Bn,
1339
- u: Vn,
1340
- o: Gn,
1341
- l: Hn,
1342
- hh: Jn
1343
- }, tt = ({ title: e, children: t }) => /* @__PURE__ */ a.jsxs("div", { className: Z.h, children: [
1344
- /* @__PURE__ */ a.jsx("div", { className: Z.t, children: e }),
1281
+ const Hr = ({ onClick: e, label: t, link: r, active: a }) => /* @__PURE__ */ s.jsx("li", { "tabs-active": String(a === r), onClick: () => e(r), children: t });
1282
+ _t.defaultProps = { size: "M", view: "H" };
1283
+ const Wa = { Section: Fr, Main: zr, Item: Xr, Tabs: _t }, Jr = "_h_158b4_1", Kr = "_t_158b4_11", Qr = "_s_158b4_31", qr = "_u_158b4_40", ea = "_o_158b4_47", ta = "_l_158b4_56", na = "_hh_158b4_63", H = {
1284
+ h: Jr,
1285
+ t: Kr,
1286
+ s: Qr,
1287
+ u: qr,
1288
+ o: ea,
1289
+ l: ta,
1290
+ hh: na
1291
+ }, it = ({ title: e, children: t }) => /* @__PURE__ */ s.jsxs("div", { className: H.h, children: [
1292
+ /* @__PURE__ */ s.jsx("div", { className: H.t, children: e }),
1345
1293
  t
1346
- ] }), Zn = ({ children: e, title: t }) => /* @__PURE__ */ a.jsxs("div", { className: Z.o, children: [
1347
- t && /* @__PURE__ */ a.jsx("div", { className: Z.hh, children: t }),
1294
+ ] }), ra = ({ children: e, title: t }) => /* @__PURE__ */ s.jsxs("div", { className: H.o, children: [
1295
+ t && /* @__PURE__ */ s.jsx("div", { className: H.hh, children: t }),
1348
1296
  e
1349
- ] }), Xn = ({ children: e }) => /* @__PURE__ */ a.jsx("div", { className: Z.u, children: e }), rt = ({ children: e }) => /* @__PURE__ */ a.jsx("div", { className: Z.s, children: e }), nt = ({ children: e, ...t }) => /* @__PURE__ */ a.jsx("div", { className: Z.l, children: e }), Ea = { Header: tt, Section: rt, List: nt, U: Xn, L: nt, O: Zn, S: rt, H: tt }, Ta = { Send: Er, Error: Tr, Remark: Pr, Success: Ir, Copy: Or }, Ia = { Send: zr };
1350
- function qn() {
1351
- return /* @__PURE__ */ a.jsx("svg", { viewBox: "0 0 462.86 359.96", children: /* @__PURE__ */ a.jsx(
1297
+ ] }), aa = ({ children: e }) => /* @__PURE__ */ s.jsx("div", { className: H.u, children: e }), ct = ({ children: e }) => /* @__PURE__ */ s.jsx("div", { className: H.s, children: e }), lt = ({ children: e, ...t }) => /* @__PURE__ */ s.jsx("div", { className: H.l, children: e }), Aa = { Header: it, Section: ct, List: lt, U: aa, L: lt, O: ra, S: ct, H: it }, Ga = { Send: $n, Error: zn, Remark: Dn, Success: Zn, Copy: Un }, Va = { Send: Hn };
1298
+ function sa() {
1299
+ return /* @__PURE__ */ s.jsx("svg", { viewBox: "0 0 462.86 359.96", children: /* @__PURE__ */ s.jsx(
1352
1300
  "path",
1353
1301
  {
1354
1302
  d: "M210.5,307.78c-27,35.41-58.14,58-120.55,50.84-1-.12-1.58-.39-1.58-2V327.87c0-1.32.51-2.12,1.85-2,100.39-1,88.17-63.46,74.8-90.94-47.3-97.28-14.46-166.27,20.26-205.14,14.1-16.37,50.53-42,128.07-23.24,9.1,2,30.51,7.8,24.46,11.38C317.5,30,297.66,68.33,295,73.12c-3.62,6.59-6.26,13.17-4.57,14.13,2.37,1.35,3.5-1.56,6.58-7.91C319.78,34.41,366-22.76,402.78,37.68a1.14,1.14,0,0,1,.09.26c9.3,56.05,30.57,228.62-97.76,224.22-23.38-2-28.82-22-32.57-18.89-3.36,3,10,21.4,32.76,23.19C448.18,270.75,411.55,66.74,407.79,41.91a1.41,1.41,0,0,1,0-.3c2-7.32,129.15,17.47,112.77,158.08,4.82,6.57,10.89,10,18.7,16.08l.13.07c8.9,3.67,10.46,12.06,11.43,18.88a63.15,63.15,0,0,1-.14,15.49c-10.48-4.62-22.74-10.11-22.26-22.53.43-12,7.35-5.21-8.8-14.22a.69.69,0,0,0-1,.57c-.33,3.87-2.7,14.69-3,16.59v0c-4.64,17-16.59,86-18.41,99.58-.77,5.7-4.94,10.41-11.4,10.39l-56.71.18c-7.73.22-9.57-7.9-10.27-11.89-2.7-15.31-4.08-29.7-4.18-29.67-20.24,9.26-108.69,3.08-108.69,3.27V330c-.29,7.56-4.51,15.26-11.74,15.32l-52.87,1c-10.36.1-13.85-1.67-15.5-11.87-2.08-13.08-1-34.26-5.32-37.43-2,1.84-8.33,8.11-10,10.83M196.16,203q9.57,0,11.42-7.72c2.18-9.07-5.66-17.7-14.77-15.68-4.95,1.11-7.53,4.94-7.53,11.53C185.28,199,188.94,203,196.16,203Z",
@@ -1356,30 +1304,30 @@ function qn() {
1356
1304
  }
1357
1305
  ) });
1358
1306
  }
1359
- const Pa = { Logo: qn }, Oa = { Path: nr, setPage: Jt, getPage: st, usePage: Ht, setModule: Xt, getModule: ot, useModule: Zt, setTabs: Kt, getTabs: he, useTabs: qt, useId: Qt, setId: tr, subId: er, getId: rr }, Kn = "_sort_1yrvt_1", Qn = {
1360
- sort: Kn
1307
+ const Ya = { Logo: sa }, we = { Path: mn, setPage: rn, getPage: dt, usePage: nn, setModule: sn, getModule: ft, useModule: an, setTabs: cn, getTabs: ge, useTabs: on, useId: ln, setId: dn, subId: un, getId: fn }, oa = "_sort_1yrvt_1", ia = {
1308
+ sort: oa
1361
1309
  };
1362
- let pe = {};
1363
- function ea(e, t) {
1310
+ let be = {};
1311
+ function ca(e, t) {
1364
1312
  switch (t.type) {
1365
1313
  case "active":
1366
- let n = "<";
1367
- return e.active === t.data && (n = e.sort === "<" ? ">" : "<"), pe.get({ active: t.data, sort: n }, !1), it({ active: t.data, sort: n }), {
1314
+ let r = "<";
1315
+ return e.active === t.data && (r = e.sort === "<" ? ">" : "<"), be.get({ active: t.data, sort: r }, !1), pt({ active: t.data, sort: r }), {
1368
1316
  ...e,
1369
1317
  active: t.data,
1370
- sort: n
1318
+ sort: r
1371
1319
  };
1372
1320
  default:
1373
1321
  throw new Error();
1374
1322
  }
1375
1323
  }
1376
- function ta() {
1324
+ function la() {
1377
1325
  const [e, t] = j.useReducer(
1378
- ea,
1379
- Ce() === void 0 ? { active: 1, sort: "<" } : Ce()
1326
+ ca,
1327
+ Te() === void 0 ? { active: 1, sort: "<" } : Te()
1380
1328
  );
1381
- return /* @__PURE__ */ a.jsxs("div", { className: Qn.sort, children: [
1382
- /* @__PURE__ */ a.jsx(
1329
+ return /* @__PURE__ */ s.jsxs("div", { className: ia.sort, children: [
1330
+ /* @__PURE__ */ s.jsx(
1383
1331
  "i",
1384
1332
  {
1385
1333
  "data-color": e.active === 1 ? "_506290" : "_b5b9cc",
@@ -1387,7 +1335,7 @@ function ta() {
1387
1335
  onClick: () => t({ type: "active", data: 1 })
1388
1336
  }
1389
1337
  ),
1390
- /* @__PURE__ */ a.jsx(
1338
+ /* @__PURE__ */ s.jsx(
1391
1339
  "i",
1392
1340
  {
1393
1341
  "data-color": e.active === 2 ? "_506290" : "_b5b9cc",
@@ -1395,7 +1343,7 @@ function ta() {
1395
1343
  onClick: () => t({ type: "active", data: 2 })
1396
1344
  }
1397
1345
  ),
1398
- /* @__PURE__ */ a.jsx(
1346
+ /* @__PURE__ */ s.jsx(
1399
1347
  "i",
1400
1348
  {
1401
1349
  "data-color": e.active === 3 ? "_506290" : "_b5b9cc",
@@ -1405,38 +1353,38 @@ function ta() {
1405
1353
  )
1406
1354
  ] });
1407
1355
  }
1408
- function ra(e) {
1409
- pe.get = e;
1356
+ function ua(e) {
1357
+ be.get = e;
1410
1358
  }
1411
- function na(e) {
1412
- pe.set(e);
1359
+ function da(e) {
1360
+ be.set(e);
1413
1361
  }
1414
- function aa(e, t, n) {
1415
- let s = 1, c = 0, m = {}, l = 50;
1416
- m[s] = [];
1362
+ function fa(e, t, r) {
1363
+ let a = 1, c = 0, f = {}, l = 50;
1364
+ f[a] = [];
1417
1365
  let d = {}, u = "s1a";
1418
- switch (d.s1a = (f, h) => h.s1 - f.s1, d.s1d = (f, h) => f.s1 - h.s1, d.s2a = (f, h) => f.s2 - h.s2, d.s2d = (f, h) => h.s2 - f.s2, d.s3a = (f, h) => f.s3.localeCompare(h.s3), d.s3d = (f, h) => h.s3.localeCompare(f.s3), n.active) {
1366
+ switch (d.s1a = (m, p) => p.s1 - m.s1, d.s1d = (m, p) => m.s1 - p.s1, d.s2a = (m, p) => m.s2 - p.s2, d.s2d = (m, p) => p.s2 - m.s2, d.s3a = (m, p) => m.s3.localeCompare(p.s3), d.s3d = (m, p) => p.s3.localeCompare(m.s3), r.active) {
1419
1367
  case 1:
1420
- u = n.sort === ">" ? "s1d" : "s1a";
1368
+ u = r.sort === ">" ? "s1d" : "s1a";
1421
1369
  break;
1422
1370
  case 2:
1423
- u = n.sort === ">" ? "s2d" : "s2a";
1371
+ u = r.sort === ">" ? "s2d" : "s2a";
1424
1372
  break;
1425
1373
  case 3:
1426
- u = n.sort === ">" ? "s3d" : "s3a";
1374
+ u = r.sort === ">" ? "s3d" : "s3a";
1427
1375
  break;
1428
1376
  }
1429
- return t.sort(d[u]).forEach((f) => {
1430
- c++, c <= l || (s++, c = 1, m[s] = []), m[s].push(e[f.id]);
1431
- }), { data: m };
1377
+ return t.sort(d[u]).forEach((m) => {
1378
+ c++, c <= l || (a++, c = 1, f[a] = []), f[a].push(e[m.id]);
1379
+ }), { data: f };
1432
1380
  }
1433
- function sa(e) {
1434
- pe.count(e);
1381
+ function ma(e) {
1382
+ be.count(e);
1435
1383
  }
1436
- const Na = { Init: ta, useValue: ra, Set: na, Run: aa, Count: sa };
1437
- function oa(e, t) {
1384
+ const Ba = { Init: la, useValue: ua, Set: da, Run: fa, Count: ma };
1385
+ function pa(e, t) {
1438
1386
  t === void 0 ? (t = e, e = /* @__PURE__ */ new Date()) : e = new Date(e);
1439
- let n = {
1387
+ let r = {
1440
1388
  yyyy: e.getFullYear(),
1441
1389
  yy: ("" + e.getFullYear()).slice(-2),
1442
1390
  mm: ("0" + (e.getMonth() + 1)).slice(-2),
@@ -1447,27 +1395,27 @@ function oa(e, t) {
1447
1395
  __: "      ",
1448
1396
  _: "    "
1449
1397
  };
1450
- for (const s in n)
1451
- t = t.replace(s, n[s]);
1398
+ for (const a in r)
1399
+ t = t.replace(a, r[a]);
1452
1400
  return t;
1453
1401
  }
1454
- function ia(e) {
1455
- let t = ["Января", "Февраля", "Марта", "Апреля", "Мая", "Июня", "Июля", "Августа", "Сентября", "Октября", "Ноября", "Декабря"], n = new Date(e);
1456
- return { day: ("" + n.getFullYear()).slice(-2) + "" + ("0" + (n.getMonth() + 1)).slice(-2) + ("0" + n.getDate()).slice(-2), name: n.getDate() + " " + t[n.getMonth()] };
1457
- }
1458
- const ca = (e) => {
1459
- function t(F, z) {
1460
- var V, ie, X;
1461
- F = F ?? "", z = z ?? 1;
1462
- for (var V = [], X = 0, ie = F.length; X < ie; )
1463
- V.push(F.slice(X, X += z));
1402
+ function ha(e) {
1403
+ let t = ["Января", "Февраля", "Марта", "Апреля", "Мая", "Июня", "Июля", "Августа", "Сентября", "Октября", "Ноября", "Декабря"], r = new Date(e);
1404
+ return { day: ("" + r.getFullYear()).slice(-2) + "" + ("0" + (r.getMonth() + 1)).slice(-2) + ("0" + r.getDate()).slice(-2), name: r.getDate() + " " + t[r.getMonth()] };
1405
+ }
1406
+ const va = (e) => {
1407
+ function t(z, U) {
1408
+ var V, le, J;
1409
+ z = z ?? "", U = U ?? 1;
1410
+ for (var V = [], J = 0, le = z.length; J < le; )
1411
+ V.push(z.slice(J, J += U));
1464
1412
  return V;
1465
1413
  }
1466
- function n(F, z) {
1414
+ function r(z, U) {
1467
1415
  var V = [2, 0, 1, 1, 1, 2];
1468
- return z[F > 4 && F < 20 ? 2 : V[Math.min(F, 5)]];
1416
+ return U[z > 4 && z < 20 ? 2 : V[Math.min(z, 5)]];
1469
1417
  }
1470
- var s = {
1418
+ var a = {
1471
1419
  null: "ноль",
1472
1420
  a1: [
1473
1421
  "один",
@@ -1529,42 +1477,42 @@ const ca = (e) => {
1529
1477
  u3: ["тысяча", "тысячи", "тысяч"],
1530
1478
  u2: ["миллион", "миллиона", "миллионов"],
1531
1479
  u1: ["миллиард", "миллиарда", "миллиардов"]
1532
- }, c, m, l, d, $, u, f, ee, h, b, S, T;
1533
- h = parseFloat(e).toFixed(2).split("."), u = h[0], d = h[1];
1534
- var N = 12 - u.length;
1535
- if (N < 0)
1480
+ }, c, f, l, d, $, u, m, ee, p, _, S, I;
1481
+ p = parseFloat(e).toFixed(2).split("."), u = p[0], d = p[1];
1482
+ var M = 12 - u.length;
1483
+ if (M < 0)
1536
1484
  return !1;
1537
- for (var ee = []; N--; )
1485
+ for (var ee = []; M--; )
1538
1486
  ee.push("0");
1539
1487
  u = ee.join("") + u;
1540
1488
  var $ = [];
1541
1489
  if (u > 0) {
1542
- b = t(u, 3);
1543
- for (var I = -1; I < b.length; I++)
1544
- if (f = b[I], f > 0 && (S = t(f, 1), c = parseInt(S[0]), m = parseInt(S[1]), l = parseInt(S[2]), $.push(s.a100[c - 1]), T = I + 1 == 3 ? "a2" : "a1", m > 1 ? $.push(
1545
- s.a20[m - 2] + (l > 0 ? " " + s[T][l - 1] : "")
1490
+ _ = t(u, 3);
1491
+ for (var N = -1; N < _.length; N++)
1492
+ if (m = _[N], m > 0 && (S = t(m, 1), c = parseInt(S[0]), f = parseInt(S[1]), l = parseInt(S[2]), $.push(a.a100[c - 1]), I = N + 1 == 3 ? "a2" : "a1", f > 1 ? $.push(
1493
+ a.a20[f - 2] + (l > 0 ? " " + a[I][l - 1] : "")
1546
1494
  ) : $.push(
1547
- m > 0 ? s.a10[l] : s[T][l - 1]
1548
- ), b.length > I + 1)) {
1549
- var R = s["u" + (I + 1)];
1550
- $.push(n(f, R));
1495
+ f > 0 ? a.a10[l] : a[I][l - 1]
1496
+ ), _.length > N + 1)) {
1497
+ var w = a["u" + (N + 1)];
1498
+ $.push(r(m, w));
1551
1499
  }
1552
1500
  } else
1553
- $.push(s.null);
1554
- return $.push(n(u, s.ur)), $.push(d + " " + n(d, s.uc)), $.join(" ").replace(RegExp(" {2,}", "g"), " ").trimLeft();
1501
+ $.push(a.null);
1502
+ return $.push(r(u, a.ur)), $.push(d + " " + r(d, a.uc)), $.join(" ").replace(RegExp(" {2,}", "g"), " ").trimLeft();
1555
1503
  };
1556
- function la(e) {
1557
- let t = -1, n = [" kB", " MB", " GB", " TB", "PB", "EB", "ZB", "YB"];
1504
+ function ga(e) {
1505
+ let t = -1, r = [" kB", " MB", " GB", " TB", "PB", "EB", "ZB", "YB"];
1558
1506
  do
1559
1507
  e = e / 1024, t++;
1560
1508
  while (e > 1024);
1561
- return Math.max(e, 0.1).toFixed(1) + n[t];
1509
+ return Math.max(e, 0.1).toFixed(1) + r[t];
1562
1510
  }
1563
- function ua(e) {
1511
+ function ba(e) {
1564
1512
  let t = {};
1565
1513
  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];
1566
1514
  }
1567
- function da(e, t, n, s) {
1515
+ function _a(e, t, r, a) {
1568
1516
  let c = {
1569
1517
  sexM: "m",
1570
1518
  sexF: "f",
@@ -1668,7 +1616,7 @@ function da(e, t, n, s) {
1668
1616
  prepareRules: function() {
1669
1617
  for (var l in this.rules)
1670
1618
  for (var d in this.rules[l])
1671
- for (var u = 0, f = this.rules[l][d].length; u < f; u++)
1619
+ for (var u = 0, m = this.rules[l][d].length; u < m; u++)
1672
1620
  this.rules[l][d][u] = this.rule(
1673
1621
  this.rules[l][d][u]
1674
1622
  );
@@ -1684,67 +1632,67 @@ function da(e, t, n, s) {
1684
1632
  } : !1;
1685
1633
  },
1686
1634
  // склоняем слово по указанному набору правил и исключений
1687
- word: function(l, d, u, f) {
1688
- if (f === this.gcaseNom)
1635
+ word: function(l, d, u, m) {
1636
+ if (m === this.gcaseNom)
1689
1637
  return l;
1690
1638
  if (l.match(/[-]/)) {
1691
- for (var h = l.split("-"), b = 0, S = h.length; b < S; b++)
1692
- h[b] = this.word(h[b], d, u, f);
1693
- return h.join("-");
1639
+ for (var p = l.split("-"), _ = 0, S = p.length; _ < S; _++)
1640
+ p[_] = this.word(p[_], d, u, m);
1641
+ return p.join("-");
1694
1642
  }
1695
1643
  if (l.match(/^[А-ЯЁ]\.?$/i))
1696
1644
  return l;
1697
1645
  this.init();
1698
- var T = this.rules[u];
1699
- let N;
1700
- return T.exceptions && (N = this.pick(l, d, f, T.exceptions, !0), N) ? N : (N = this.pick(l, d, f, T.suffixes, !1), N || l);
1646
+ var I = this.rules[u];
1647
+ let M;
1648
+ return I.exceptions && (M = this.pick(l, d, m, I.exceptions, !0), M) ? M : (M = this.pick(l, d, m, I.suffixes, !1), M || l);
1701
1649
  },
1702
1650
  // выбираем из списка правил первое подходящее и применяем
1703
- pick: function(l, d, u, f, h) {
1704
- let b = l.toLowerCase();
1705
- for (var S = 0, T = f.length; S < T; S++)
1706
- if (this.ruleMatch(b, d, f[S], h))
1707
- return this.applyMod(l, u, f[S]);
1651
+ pick: function(l, d, u, m, p) {
1652
+ let _ = l.toLowerCase();
1653
+ for (var S = 0, I = m.length; S < I; S++)
1654
+ if (this.ruleMatch(_, d, m[S], p))
1655
+ return this.applyMod(l, u, m[S]);
1708
1656
  return !1;
1709
1657
  },
1710
1658
  // проверяем, подходит ли правило к слову
1711
- ruleMatch: function(l, d, u, f) {
1659
+ ruleMatch: function(l, d, u, m) {
1712
1660
  if (u.sex === this.sexM && d === this.sexF || u.sex === this.sexF && d !== this.sexF)
1713
1661
  return !1;
1714
- for (var h = 0, b = u.test.length; h < b; h++) {
1715
- var S = f ? l : l.substr(
1716
- Math.max(l.length - u.test[h].length, 0)
1662
+ for (var p = 0, _ = u.test.length; p < _; p++) {
1663
+ var S = m ? l : l.substr(
1664
+ Math.max(l.length - u.test[p].length, 0)
1717
1665
  );
1718
- if (S === u.test[h])
1666
+ if (S === u.test[p])
1719
1667
  return !0;
1720
1668
  }
1721
1669
  return !1;
1722
1670
  },
1723
1671
  // склоняем слово (правим окончание)
1724
1672
  applyMod: function(l, d, u) {
1725
- let f;
1673
+ let m;
1726
1674
  switch (d) {
1727
1675
  case this.gcaseNom:
1728
- f = ".";
1676
+ m = ".";
1729
1677
  break;
1730
1678
  case this.gcaseGen:
1731
- f = u.mods[0];
1679
+ m = u.mods[0];
1732
1680
  break;
1733
1681
  case this.gcaseDat:
1734
- f = u.mods[1];
1682
+ m = u.mods[1];
1735
1683
  break;
1736
1684
  case this.gcaseAcc:
1737
- f = u.mods[2];
1685
+ m = u.mods[2];
1738
1686
  break;
1739
1687
  case this.gcaseIns:
1740
- f = u.mods[3];
1688
+ m = u.mods[3];
1741
1689
  break;
1742
1690
  case this.gcasePos:
1743
- f = u.mods[4];
1691
+ m = u.mods[4];
1744
1692
  break;
1745
1693
  }
1746
- for (var h = 0, b = f.length; h < b; h++) {
1747
- var S = f.substr(h, 1);
1694
+ for (var p = 0, _ = m.length; p < _; p++) {
1695
+ var S = m.substr(p, 1);
1748
1696
  switch (S) {
1749
1697
  case ".":
1750
1698
  break;
@@ -1773,14 +1721,14 @@ function da(e, t, n, s) {
1773
1721
  middleName: (l) => c.word(c.mn, c.sex, "middleName", l)
1774
1722
  };
1775
1723
  if (typeof t > "u") {
1776
- var m = e.match(/^\s*(\S+)(\s+(\S+)(\s+(\S+))?)?\s*$/);
1777
- if (!m)
1724
+ var f = e.match(/^\s*(\S+)(\s+(\S+)(\s+(\S+))?)?\s*$/);
1725
+ if (!f)
1778
1726
  return "Cannot parse supplied name";
1779
- m[5] && m[3].match(/(ич|на)$/) && !m[5].match(/(ич|на)$/) ? (e = m[5], t = m[1], n = m[3], c.fullNameSurnameLast = !0) : (e = m[1], t = m[3], n = m[5]);
1727
+ f[5] && f[3].match(/(ич|на)$/) && !f[5].match(/(ич|на)$/) ? (e = f[5], t = f[1], r = f[3], c.fullNameSurnameLast = !0) : (e = f[1], t = f[3], r = f[5]);
1780
1728
  }
1781
- return c.ln = e, c.fn = t || "", c.mn = n || "", c.sex = s || c.getSex(), c;
1729
+ return c.ln = e, c.fn = t || "", c.mn = r || "", c.sex = a || c.getSex(), c;
1782
1730
  }
1783
- function fa(e) {
1731
+ function xa(e) {
1784
1732
  let t = e.split(" ");
1785
1733
  switch (t.length) {
1786
1734
  case 2:
@@ -1791,7 +1739,7 @@ function fa(e) {
1791
1739
  return e;
1792
1740
  }
1793
1741
  }
1794
- function ma(e) {
1742
+ function ya(e) {
1795
1743
  return {
1796
1744
  1: { val: "01", name: "Январь", names: "Января", abc: "Янв" },
1797
1745
  2: { val: "02", name: "Февраль", names: "Февраля", abc: "Февр" },
@@ -1807,95 +1755,235 @@ function ma(e) {
1807
1755
  12: { val: "12", name: "Декабрь", names: "Декабря", abc: "Дек" }
1808
1756
  }[e];
1809
1757
  }
1810
- function ha(e) {
1758
+ function Sa(e) {
1811
1759
  return parseFloat(e).toFixed(2).replace(/(\d)(?=(\d{3})+\.)/g, "$1 ");
1812
1760
  }
1813
- function pa(e, t) {
1814
- let n = t + "";
1815
- for (; n.length < e; )
1816
- n = "0" + n;
1817
- return n;
1761
+ function ja(e, t) {
1762
+ let r = t + "";
1763
+ for (; r.length < e; )
1764
+ r = "0" + r;
1765
+ return r;
1818
1766
  }
1819
- function va(e, t, n) {
1820
- let s = t / e * n;
1821
- return (typeof s != "number" || s === 1 / 0) && (s = 0), parseFloat(s).toFixed(1);
1767
+ function Ca(e, t, r) {
1768
+ let a = t / e * r;
1769
+ return (typeof a != "number" || a === 1 / 0) && (a = 0), parseFloat(a).toFixed(1);
1822
1770
  }
1823
- function ga(e) {
1771
+ function ka(e) {
1824
1772
  return e.charAt(0).toUpperCase() + e.slice(1);
1825
1773
  }
1826
- const $a = {
1827
- Date: oa,
1828
- MoneyString: ca,
1829
- DateSort: ia,
1830
- Size: la,
1831
- TypeFiles: ua,
1832
- Cases: da,
1833
- Initials: fa,
1834
- Month: ma,
1835
- Money: ha,
1836
- Number: pa,
1837
- Percent: va,
1838
- CapitalizeFirstLetter: ga
1839
- }, ke = {};
1840
- function _a(e, t) {
1841
- ke[e] = t;
1842
- }
1843
- function ba(e, t) {
1844
- ke[e] !== void 0 && ke[e](t);
1845
- }
1846
- const W = {};
1847
- function xa(e, t) {
1848
- const [n, s] = j.useState(t);
1774
+ const Xa = {
1775
+ Date: pa,
1776
+ MoneyString: va,
1777
+ DateSort: ha,
1778
+ Size: ga,
1779
+ TypeFiles: ba,
1780
+ Cases: _a,
1781
+ Initials: xa,
1782
+ Month: ya,
1783
+ Money: Sa,
1784
+ Number: ja,
1785
+ Percent: Ca,
1786
+ CapitalizeFirstLetter: ka
1787
+ }, Ne = {};
1788
+ function Ra(e, t) {
1789
+ Ne[e] = t;
1790
+ }
1791
+ function wa(e, t) {
1792
+ Ne[e] !== void 0 && Ne[e](t);
1793
+ }
1794
+ const A = {};
1795
+ function Ea(e, t) {
1796
+ const [r, a] = j.useState(t);
1849
1797
  return j.useEffect(() => {
1850
- if (W[e])
1851
- return W[e].push(s);
1852
- W[e] = [s];
1853
- }, []), [n];
1854
- }
1855
- function ya(e, t) {
1856
- if (W[e])
1857
- return W[e].push(t);
1858
- W[e] = [t];
1859
- }
1860
- function Sa(e, t) {
1861
- W[e] && W[e].forEach((n) => n(t));
1862
- }
1863
- const Fa = { setListener: ba, useListener: _a, setEmitter: Sa, useEmitter: xa, subEmitter: ya }, me = {}, ut = {};
1864
- function ja(e) {
1865
- const [t, n] = j.useState({}), s = async (c) => {
1866
- n(
1867
- Object.keys(me).reduce((m, l) => (m ? m[l] = me[l].all : m = {}, m), {})
1798
+ if (A[e])
1799
+ return A[e].push(a);
1800
+ A[e] = [a];
1801
+ }, []), [r];
1802
+ }
1803
+ function Ta(e, t) {
1804
+ if (A[e])
1805
+ return A[e].push(t);
1806
+ A[e] = [t];
1807
+ }
1808
+ function Ia(e, t) {
1809
+ A[e] && A[e].forEach((r) => r(t));
1810
+ }
1811
+ const Ha = { setListener: wa, useListener: Ra, setEmitter: Ia, useEmitter: Ea, subEmitter: Ta }, ve = {}, xt = {};
1812
+ function Na(e) {
1813
+ const [t, r] = j.useState({}), a = async (c) => {
1814
+ r(
1815
+ Object.keys(ve).reduce((f, l) => (f ? f[l] = ve[l].all : f = {}, f), {})
1868
1816
  );
1869
1817
  };
1870
1818
  return j.useEffect(() => {
1871
- e.forEach((c) => me[c] = { all: 0 }), ut.menu = s, s();
1819
+ e.forEach((c) => ve[c] = { all: 0 }), xt.menu = a, a();
1872
1820
  }, [e]), t;
1873
1821
  }
1874
- function Ca(e, t) {
1822
+ function Pa(e, t) {
1875
1823
  switch (typeof t) {
1876
1824
  case "number":
1877
- me[e].all += t, ut.menu();
1825
+ ve[e].all += t, xt.menu();
1878
1826
  break;
1879
1827
  }
1880
1828
  }
1881
- const La = { useMenu: ja, setUpdate: Ca };
1829
+ const Ja = { useMenu: Na, setUpdate: Pa }, Oa = "KGZ1bmN0aW9uKCl7InVzZSBzdHJpY3QiO2xldCBhPVtdLHM9bnVsbDtvbmNvbm5lY3Q9ZnVuY3Rpb24obCl7dmFyIHQ9bC5zb3VyY2U7YS5wdXNoKHQpO2NvbnN0IG49ZT0+e3MhPT1udWxsJiZzLnJlYWR5U3RhdGU9PT0xP3Muc2VuZChKU09OLnN0cmluZ2lmeShlKSk6dC5wb3N0TWVzc2FnZSh7dHlwZToibm9TZW5kIn0pfTtsZXQgcj1lPT57aWYocyE9PW51bGwmJnMucmVhZHlTdGF0ZT09PTEpcmV0dXJuIHQucG9zdE1lc3NhZ2Uoe3R5cGU6InRydWUifSk7ZS5say5hZGRyZXNzPT09ImxvY2FsaG9zdCI/cz1uZXcgV2ViU29ja2V0KGB3czovL2xvY2FsaG9zdDoke2UubGsuc29ja2V0KzF9YCk6cz1uZXcgV2ViU29ja2V0KCJ3c3M6Ly8iK2UubGsuYWRkcmVzcysiOiIrKGUubGsuc29ja2V0KzEpKSxzLm9uZXJyb3I9KCk9PnQucG9zdE1lc3NhZ2Uoe3R5cGU6ImVycm9yIn0pLHMub25vcGVuPSgpPT57bih7dHlwZToiY29ubmVjdCIsdWtleTplLnVrZXl9KX0scy5vbm1lc3NhZ2U9bz0+e2xldCBjPUpTT04ucGFyc2Uoby5kYXRhKTthLmZvckVhY2goZD0+e2QucG9zdE1lc3NhZ2UoYyl9KX0scy5vbmNsb3NlPSgpPT50LnBvc3RNZXNzYWdlKHt0eXBlOiJjbG9zZWQifSl9O3Qub25tZXNzYWdlPWZ1bmN0aW9uKGUpe3N3aXRjaChlLmRhdGEudHlwZSl7Y2FzZSJsZW5ndGgiOnJldHVybiB0LnBvc3RNZXNzYWdlKGEubGVuZ3RoKTtjYXNlImFsbCI6cmV0dXJuIGEuZm9yRWFjaChvPT5vLnBvc3RNZXNzYWdlKHthbGw6YS5sZW5ndGh9KSk7Y2FzZSJzZW5kIjpyZXR1cm4gbihlLmRhdGEuanNvbik7Y2FzZSJjb25uZWN0IjpyZXR1cm4gcihlLmRhdGEpO2RlZmF1bHQ6dC5wb3N0TWVzc2FnZSh7dHlwZToiZGVmYXVsdCIsZGF0YTplLmRhdGEuanNvbn0pfX19fSkoKTsK";
1830
+ function La(e) {
1831
+ return new SharedWorker(
1832
+ "data:text/javascript;base64," + Oa,
1833
+ {
1834
+ name: e == null ? void 0 : e.name
1835
+ }
1836
+ );
1837
+ }
1838
+ let P = {}, E = {}, he = [
1839
+ "filter",
1840
+ "online",
1841
+ "users",
1842
+ "company",
1843
+ "select",
1844
+ "setting",
1845
+ "info",
1846
+ "job"
1847
+ ];
1848
+ const Fa = () => {
1849
+ const [e, t] = j.useState(!1), [r, a] = j.useState(!1);
1850
+ return [(f) => {
1851
+ const l = new La();
1852
+ P.laodData = (d) => {
1853
+ let u = he.indexOf(d);
1854
+ u >= 0 && he.splice(u, 1), he.length === 0 && t(!0);
1855
+ }, P.send = (d) => {
1856
+ l.port.postMessage({ type: "send", json: d });
1857
+ }, l.port.onmessage = (d) => {
1858
+ let u = d.data;
1859
+ console.log(u), u.type === "error" && a(!0), u.type === "true" && t(!0), u.type === "closed" && (console.warn("closed"), l.port.postMessage({
1860
+ type: "connect",
1861
+ ukey: f,
1862
+ lk: Ee()
1863
+ })), he.length !== 0 && P.laodData(u.type), E[u.type] && E[u.type](u);
1864
+ }, l.port.postMessage({
1865
+ type: "connect",
1866
+ ukey: f,
1867
+ lk: Ee()
1868
+ });
1869
+ }, e, r];
1870
+ };
1871
+ E.module = (e) => {
1872
+ P[e.listen] !== void 0 && (P[e.listen](e), delete P[e.listen]);
1873
+ };
1874
+ E.bell = (e) => {
1875
+ P.bell !== void 0 && P.bell(e);
1876
+ };
1877
+ E.info = (e) => {
1878
+ let t = {};
1879
+ 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"), vt(t), mt(e.data.menu);
1880
+ };
1881
+ E.version = async (e) => {
1882
+ };
1883
+ E.online = async (e) => {
1884
+ };
1885
+ E.offline = async (e) => {
1886
+ };
1887
+ E.chat = (e) => {
1888
+ switch (console.log(e.data.action), e.data.action) {
1889
+ case "new_message":
1890
+ we.getModule();
1891
+ break;
1892
+ case "view_message":
1893
+ we.getModule();
1894
+ break;
1895
+ case "write_message":
1896
+ we.getModule();
1897
+ break;
1898
+ }
1899
+ console.log(e);
1900
+ };
1901
+ E.users = (e) => {
1902
+ console.log("users", e);
1903
+ let t = {};
1904
+ e.data.forEach((a) => {
1905
+ let c = a.p01 + " " + a.p02 + " " + a.p03, f = a.p01 + " " + a.p02.substring(0, 1) + "." + a.p03.substring(0, 1) + ".", l = a.p01.substring(0, 1) + "" + a.p02.substring(0, 1) + a.p03.substring(0, 1);
1906
+ t[a.id] = {
1907
+ id: a.id,
1908
+ admin: a.m.includes("99"),
1909
+ ava: JSON.parse(a.a),
1910
+ job: a.j,
1911
+ login: "",
1912
+ online: { time: a.o, status: 0 },
1913
+ sts: a.s,
1914
+ nameFull: c,
1915
+ name: f,
1916
+ number: l
1917
+ };
1918
+ });
1919
+ let r = { ...ie(), user: t };
1920
+ oe(r);
1921
+ };
1922
+ E.company = (e) => {
1923
+ let t = {}, r = {};
1924
+ e.data.forEach((c) => {
1925
+ t[c.id] = { s: c.v, n: c.a }, r[c.id] = c;
1926
+ });
1927
+ let a = { ...ie(), 901: t };
1928
+ ht(r), oe(a);
1929
+ };
1930
+ E.api = (e) => {
1931
+ let t = {};
1932
+ e.data.forEach((r) => {
1933
+ t[r.api] = { key: r.key, p01: r.p01, p02: r.p02 };
1934
+ });
1935
+ };
1936
+ E.delete = () => {
1937
+ L();
1938
+ };
1939
+ E.select = (e) => {
1940
+ let t = { ...ie() };
1941
+ e.data.forEach((r) => {
1942
+ t[r.n] = JSON.parse(r.s);
1943
+ }), oe(t);
1944
+ };
1945
+ E.job = (e) => {
1946
+ let t = { ...ie() }, r = {};
1947
+ Object.keys(e.data).forEach((a) => {
1948
+ r[a] = { s: 1, n: e.data[a] };
1949
+ }), t[1] = r, oe(t);
1950
+ };
1951
+ E.setting = (e) => {
1952
+ };
1953
+ E.app = () => {
1954
+ };
1955
+ const Ma = (e, t) => {
1956
+ P[e] = t;
1957
+ }, $a = (e, t) => {
1958
+ P[e](t);
1959
+ };
1960
+ function za(e) {
1961
+ let t = "_" + String(Math.random()).substring(2, 7);
1962
+ return new Promise((r) => {
1963
+ P[t] = (a) => {
1964
+ a.error !== void 0 ? r({ error: a.error }) : r(a.data), delete P[t];
1965
+ }, e = { ...e, listen: t }, e.type = "modules", P.send(e);
1966
+ });
1967
+ }
1968
+ const Ka = { useConnect: Fa, useListener: Ma, setListener: $a, Send: za };
1882
1969
  export {
1883
- $n as Action,
1884
- Ia as Alert,
1885
- B as Api,
1886
- La as Badge,
1887
- ka as Browser,
1888
- Yr as Button,
1889
- Ea as Component,
1890
- Fa as Event,
1891
- $a as Format,
1892
- Pa as Icon,
1893
- bn as Init,
1894
- _n as Modal,
1895
- Ta as Notice,
1896
- Oa as Router,
1897
- Ra as Setting,
1898
- L as Store,
1899
- wn as Tabs,
1900
- Na as Triage
1970
+ Wr as Action,
1971
+ Va as Alert,
1972
+ Da as Api,
1973
+ Ja as Badge,
1974
+ Ua as Browser,
1975
+ Qn as Button,
1976
+ Aa as Component,
1977
+ Ha as Event,
1978
+ Xa as Format,
1979
+ Ya as Icon,
1980
+ wr as Init,
1981
+ Rr as Modal,
1982
+ Ga as Notice,
1983
+ we as Router,
1984
+ Wa as Setting,
1985
+ Ka as Socket,
1986
+ Pe as Store,
1987
+ Or as Tabs,
1988
+ Ba as Triage
1901
1989
  };