@elcrm/telegram 0.0.109 → 0.0.110

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.
@@ -10,7 +10,7 @@ export declare namespace Modal {
10
10
  import_modules?: (p: string) => Promise<any>;
11
11
  }): JSX.Element;
12
12
  function Add(e: React.JSX.Element, name?: string): void;
13
- function Create(Screen: ComponentType, name?: string): {
13
+ function Create(Screen: ComponentType, name?: string, offsetTop?: boolean): {
14
14
  Open: (params: any) => void;
15
15
  };
16
16
  function Close(nameModal: string): void;
package/dist/index.es.js CHANGED
@@ -15,12 +15,12 @@ function or() {
15
15
  if (Ut) return tt;
16
16
  Ut = 1;
17
17
  var r = F, n = Symbol.for("react.element"), a = Symbol.for("react.fragment"), c = Object.prototype.hasOwnProperty, l = r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, p = { key: !0, ref: !0, __self: !0, __source: !0 };
18
- function k(b, u, S) {
19
- var h, g = {}, m = null, P = null;
20
- S !== void 0 && (m = "" + S), u.key !== void 0 && (m = "" + u.key), u.ref !== void 0 && (P = u.ref);
21
- for (h in u) c.call(u, h) && !p.hasOwnProperty(h) && (g[h] = u[h]);
22
- if (b && b.defaultProps) for (h in u = b.defaultProps, u) g[h] === void 0 && (g[h] = u[h]);
23
- return { $$typeof: n, type: b, key: m, ref: P, props: g, _owner: l.current };
18
+ function k(m, u, R) {
19
+ var h, b = {}, g = null, T = null;
20
+ R !== void 0 && (g = "" + R), u.key !== void 0 && (g = "" + u.key), u.ref !== void 0 && (T = u.ref);
21
+ for (h in u) c.call(u, h) && !p.hasOwnProperty(h) && (b[h] = u[h]);
22
+ if (m && m.defaultProps) for (h in u = m.defaultProps, u) b[h] === void 0 && (b[h] = u[h]);
23
+ return { $$typeof: n, type: m, key: g, ref: T, props: b, _owner: l.current };
24
24
  }
25
25
  return tt.Fragment = a, tt.jsx = k, tt.jsxs = k, tt;
26
26
  }
@@ -37,11 +37,11 @@ var rt = {};
37
37
  var Yt;
38
38
  function ar() {
39
39
  return Yt || (Yt = 1, process.env.NODE_ENV !== "production" && function() {
40
- var r = F, n = Symbol.for("react.element"), a = Symbol.for("react.portal"), c = Symbol.for("react.fragment"), l = Symbol.for("react.strict_mode"), p = Symbol.for("react.profiler"), k = Symbol.for("react.provider"), b = Symbol.for("react.context"), u = Symbol.for("react.forward_ref"), S = Symbol.for("react.suspense"), h = Symbol.for("react.suspense_list"), g = Symbol.for("react.memo"), m = Symbol.for("react.lazy"), P = Symbol.for("react.offscreen"), T = Symbol.iterator, Te = "@@iterator";
40
+ var r = F, n = Symbol.for("react.element"), a = Symbol.for("react.portal"), c = Symbol.for("react.fragment"), l = Symbol.for("react.strict_mode"), p = Symbol.for("react.profiler"), k = Symbol.for("react.provider"), m = Symbol.for("react.context"), u = Symbol.for("react.forward_ref"), R = Symbol.for("react.suspense"), h = Symbol.for("react.suspense_list"), b = Symbol.for("react.memo"), g = Symbol.for("react.lazy"), T = Symbol.for("react.offscreen"), C = Symbol.iterator, Te = "@@iterator";
41
41
  function pe(e) {
42
42
  if (e === null || typeof e != "object")
43
43
  return null;
44
- var t = T && e[T] || e[Te];
44
+ var t = C && e[C] || e[Te];
45
45
  return typeof t == "function" ? t : null;
46
46
  }
47
47
  var W = r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
@@ -65,7 +65,7 @@ function ar() {
65
65
  var Ne = !1, Oe = !1, Be = !1, Ie = !1, _ = !1, E;
66
66
  E = Symbol.for("react.module.reference");
67
67
  function B(e) {
68
- return !!(typeof e == "string" || typeof e == "function" || e === c || e === p || _ || e === l || e === S || e === h || Ie || e === P || Ne || Oe || Be || typeof e == "object" && e !== null && (e.$$typeof === m || e.$$typeof === g || e.$$typeof === k || e.$$typeof === b || e.$$typeof === u || // This needs to include all possible module reference object
68
+ return !!(typeof e == "string" || typeof e == "function" || e === c || e === p || _ || e === l || e === R || e === h || Ie || e === T || Ne || Oe || Be || typeof e == "object" && e !== null && (e.$$typeof === g || e.$$typeof === b || e.$$typeof === k || e.$$typeof === m || e.$$typeof === u || // This needs to include all possible module reference object
69
69
  // types supported by any Flight configuration anywhere since
70
70
  // we don't know which Flight build this will end up being used
71
71
  // with.
@@ -97,14 +97,14 @@ function ar() {
97
97
  return "Profiler";
98
98
  case l:
99
99
  return "StrictMode";
100
- case S:
100
+ case R:
101
101
  return "Suspense";
102
102
  case h:
103
103
  return "SuspenseList";
104
104
  }
105
105
  if (typeof e == "object")
106
106
  switch (e.$$typeof) {
107
- case b:
107
+ case m:
108
108
  var t = e;
109
109
  return I(t) + ".Consumer";
110
110
  case k:
@@ -112,10 +112,10 @@ function ar() {
112
112
  return I(o._context) + ".Provider";
113
113
  case u:
114
114
  return M(e, e.render, "ForwardRef");
115
- case g:
115
+ case b:
116
116
  var s = e.displayName || null;
117
117
  return s !== null ? s : $(e.type) || "Memo";
118
- case m: {
118
+ case g: {
119
119
  var v = e, y = v._payload, d = v._init;
120
120
  try {
121
121
  return $(d(y));
@@ -257,18 +257,18 @@ function ar() {
257
257
  if (w && s && typeof w.stack == "string") {
258
258
  for (var f = w.stack.split(`
259
259
  `), O = s.stack.split(`
260
- `), R = f.length - 1, x = O.length - 1; R >= 1 && x >= 0 && f[R] !== O[x]; )
260
+ `), S = f.length - 1, x = O.length - 1; S >= 1 && x >= 0 && f[S] !== O[x]; )
261
261
  x--;
262
- for (; R >= 1 && x >= 0; R--, x--)
263
- if (f[R] !== O[x]) {
264
- if (R !== 1 || x !== 1)
262
+ for (; S >= 1 && x >= 0; S--, x--)
263
+ if (f[S] !== O[x]) {
264
+ if (S !== 1 || x !== 1)
265
265
  do
266
- if (R--, x--, x < 0 || f[R] !== O[x]) {
267
- var C = `
268
- ` + f[R].replace(" at new ", " at ");
269
- return e.displayName && C.includes("<anonymous>") && (C = C.replace("<anonymous>", e.displayName)), typeof e == "function" && ne.set(e, C), C;
266
+ if (S--, x--, x < 0 || f[S] !== O[x]) {
267
+ var P = `
268
+ ` + f[S].replace(" at new ", " at ");
269
+ return e.displayName && P.includes("<anonymous>") && (P = P.replace("<anonymous>", e.displayName)), typeof e == "function" && ne.set(e, P), P;
270
270
  }
271
- while (R >= 1 && x >= 0);
271
+ while (S >= 1 && x >= 0);
272
272
  break;
273
273
  }
274
274
  }
@@ -293,7 +293,7 @@ function ar() {
293
293
  if (typeof e == "string")
294
294
  return re(e);
295
295
  switch (e) {
296
- case S:
296
+ case R:
297
297
  return re("Suspense");
298
298
  case h:
299
299
  return re("SuspenseList");
@@ -302,9 +302,9 @@ function ar() {
302
302
  switch (e.$$typeof) {
303
303
  case u:
304
304
  return pt(e.render);
305
- case g:
305
+ case b:
306
306
  return oe(e.type, t, o);
307
- case m: {
307
+ case g: {
308
308
  var s = e, v = s._payload, y = s._init;
309
309
  try {
310
310
  return oe(y(v), t, o);
@@ -334,8 +334,8 @@ function ar() {
334
334
  throw O.name = "Invariant Violation", O;
335
335
  }
336
336
  f = e[d](t, d, s, o, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
337
- } catch (R) {
338
- f = R;
337
+ } catch (S) {
338
+ f = S;
339
339
  }
340
340
  f && !(f instanceof Error) && (ae(v), j("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", s || "React class", o, d, typeof f), ae(null)), f instanceof Error && !(f.message in Le) && (Le[f.message] = !0, ae(v), j("Failed %s type: %s", o, f.message), ae(null));
341
341
  }
@@ -448,9 +448,9 @@ function ar() {
448
448
  for (y in t)
449
449
  K.call(t, y) && !bt.hasOwnProperty(y) && (d[y] = t[y]);
450
450
  if (e && e.defaultProps) {
451
- var R = e.defaultProps;
452
- for (y in R)
453
- d[y] === void 0 && (d[y] = R[y]);
451
+ var S = e.defaultProps;
452
+ for (y in S)
453
+ d[y] === void 0 && (d[y] = S[y]);
454
454
  }
455
455
  if (f || O) {
456
456
  var x = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
@@ -542,7 +542,7 @@ Check the top-level render call using <` + o + ">.");
542
542
  o = t.propTypes;
543
543
  else if (typeof t == "object" && (t.$$typeof === u || // Note: Memo only checks outer props here.
544
544
  // Inner props are checked in the reconciler.
545
- t.$$typeof === g))
545
+ t.$$typeof === b))
546
546
  o = t.propTypes;
547
547
  else
548
548
  return;
@@ -578,24 +578,24 @@ Check the top-level render call using <` + o + ">.");
578
578
  (e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (f += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
579
579
  var O = Ot();
580
580
  O ? f += O : f += Ke();
581
- var R;
582
- e === null ? R = "null" : ye(e) ? R = "array" : e !== void 0 && e.$$typeof === n ? (R = "<" + ($(e.type) || "Unknown") + " />", f = " Did you accidentally export a JSX literal instead of a component?") : R = typeof e, j("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", R, f);
581
+ var S;
582
+ e === null ? S = "null" : ye(e) ? S = "array" : e !== void 0 && e.$$typeof === n ? (S = "<" + ($(e.type) || "Unknown") + " />", f = " Did you accidentally export a JSX literal instead of a component?") : S = typeof e, j("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", S, f);
583
583
  }
584
584
  var x = jt(e, t, o, v, y);
585
585
  if (x == null)
586
586
  return x;
587
587
  if (d) {
588
- var C = t.children;
589
- if (C !== void 0)
588
+ var P = t.children;
589
+ if (P !== void 0)
590
590
  if (s)
591
- if (ye(C)) {
592
- for (var z = 0; z < C.length; z++)
593
- Xe(C[z], e);
594
- Object.freeze && Object.freeze(C);
591
+ if (ye(P)) {
592
+ for (var z = 0; z < P.length; z++)
593
+ Xe(P[z], e);
594
+ Object.freeze && Object.freeze(P);
595
595
  } else
596
596
  j("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
597
597
  else
598
- Xe(C, e);
598
+ Xe(P, e);
599
599
  }
600
600
  if (K.call(t, "key")) {
601
601
  var L = $(e), w = Object.keys(t).filter(function(It) {
@@ -636,55 +636,55 @@ let q = {};
636
636
  var Wt;
637
637
  ((r) => {
638
638
  function n({
639
- children: b,
639
+ children: m,
640
640
  onCallbackModal: u,
641
- nameModal: S,
641
+ nameModal: R,
642
642
  offsetTop: h = !0
643
643
  }) {
644
- const [g, m] = J(!1), [P, T] = J(!1);
645
- if (q[S].onClose = () => {
646
- N.BackButton(!1), T(!0), setTimeout(() => {
647
- m(!1), T(!1), u == null || u(), q.x(S);
644
+ const [b, g] = J(!1), [T, C] = J(!1);
645
+ if (q[R].onClose = () => {
646
+ N.BackButton(!1), C(!0), setTimeout(() => {
647
+ g(!1), C(!1), u == null || u(), q.x(R);
648
648
  }, 300);
649
649
  }, fe(() => {
650
- g ? q[S].onClose() : (N.BackButton({
651
- callback: () => q[S].onClose()
652
- }), m(!0));
653
- }, []), !!g)
654
- return /* @__PURE__ */ i.jsx("div", { className: Pe(Ae.o, P && Ae.x), children: /* @__PURE__ */ i.jsx(
650
+ b ? q[R].onClose() : (N.BackButton({
651
+ callback: () => q[R].onClose()
652
+ }), g(!0));
653
+ }, []), !!b)
654
+ return /* @__PURE__ */ i.jsx("div", { className: Pe(Ae.o, T && Ae.x), children: /* @__PURE__ */ i.jsx(
655
655
  "div",
656
656
  {
657
657
  className: Pe(
658
658
  Ae.p,
659
- P && Ae.x,
659
+ T && Ae.x,
660
660
  h ? Ae.o : Ae.m
661
661
  ),
662
- children: b
662
+ children: m
663
663
  }
664
664
  ) });
665
665
  }
666
666
  r.Content = n;
667
667
  function a({
668
- import_modules: b
668
+ import_modules: m
669
669
  }) {
670
- let [u, S] = J([]);
670
+ let [u, R] = J([]);
671
671
  return q.x = (h) => {
672
- S(h ? u.filter((g) => g.key !== h) : []);
672
+ R(h ? u.filter((b) => b.key !== h) : []);
673
673
  }, fe(() => {
674
- b && (q.i = b);
675
- }, []), q.add = (h, g = Date.now()) => {
676
- S([...u, { key: g, item: h }]);
674
+ m && (q.i = m);
675
+ }, []), q.add = (h, b = Date.now()) => {
676
+ R([...u, { key: b, item: h }]);
677
677
  }, /* @__PURE__ */ i.jsx(i.Fragment, { children: u.map((h) => h.item) });
678
678
  }
679
679
  r.Init = a;
680
- function c(b, u) {
680
+ function c(m, u) {
681
681
  q.add(
682
682
  /* @__PURE__ */ i.jsx(
683
683
  n,
684
684
  {
685
685
  onCallbackModal: q["callback_modal" + u],
686
686
  nameModal: u || "",
687
- children: b
687
+ children: m
688
688
  },
689
689
  String(Date.now())
690
690
  ),
@@ -692,19 +692,20 @@ var Wt;
692
692
  );
693
693
  }
694
694
  r.Add = c;
695
- function l(b, u = Date.now().toString()) {
695
+ function l(m, u = Date.now().toString(), R = !0) {
696
696
  return q[u] = {}, {
697
697
  Open: (g) => {
698
698
  r.Add(
699
699
  /* @__PURE__ */ i.jsx(
700
- b,
700
+ m,
701
701
  {
702
702
  ...g,
703
- onCallbackModal: (m) => {
704
- var P;
705
- (P = g.callback) == null || P.call(g, m);
703
+ onCallbackModal: (T) => {
704
+ var C;
705
+ (C = g.callback) == null || C.call(g, T);
706
706
  },
707
- nameModal: u
707
+ nameModal: u,
708
+ offsetTop: R
708
709
  },
709
710
  (/* @__PURE__ */ new Date()).getTime()
710
711
  ),
@@ -714,13 +715,13 @@ var Wt;
714
715
  };
715
716
  }
716
717
  r.Create = l;
717
- function p(b) {
718
- q[b].onClose();
718
+ function p(m) {
719
+ q[m].onClose();
719
720
  }
720
721
  r.Close = p;
721
- function k(b, u, S, h) {
722
- q.i && (h && (S.callback = h), q.i(`${b}/modals/${u}.tsx`).then((g) => {
723
- g.default.Open(S);
722
+ function k(m, u, R, h) {
723
+ q.i && (h && (R.callback = h), q.i(`${m}/modals/${u}.tsx`).then((b) => {
724
+ b.default.Open(R);
724
725
  }));
725
726
  }
726
727
  r.Open = k;
@@ -797,7 +798,7 @@ const lt = (r) => {
797
798
  const n = r.split(".");
798
799
  if (n.length !== 3)
799
800
  throw new Error("Неверный формат зашифрованных данных");
800
- const a = n[0], c = n[1], l = n[2], p = Qt(it().key, a), k = pr(c), b = er(k, p), u = fr(b);
801
+ const a = n[0], c = n[1], l = n[2], p = Qt(it().key, a), k = pr(c), m = er(k, p), u = fr(m);
801
802
  if (lt(u + a).substring(
802
803
  0,
803
804
  8
@@ -847,12 +848,12 @@ function gr() {
847
848
  if (zt) return nt;
848
849
  zt = 1;
849
850
  var r = F, n = Symbol.for("react.element"), a = Symbol.for("react.fragment"), c = Object.prototype.hasOwnProperty, l = r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, p = { key: !0, ref: !0, __self: !0, __source: !0 };
850
- function k(b, u, S) {
851
- var h, g = {}, m = null, P = null;
852
- S !== void 0 && (m = "" + S), u.key !== void 0 && (m = "" + u.key), u.ref !== void 0 && (P = u.ref);
853
- for (h in u) c.call(u, h) && !p.hasOwnProperty(h) && (g[h] = u[h]);
854
- if (b && b.defaultProps) for (h in u = b.defaultProps, u) g[h] === void 0 && (g[h] = u[h]);
855
- return { $$typeof: n, type: b, key: m, ref: P, props: g, _owner: l.current };
851
+ function k(m, u, R) {
852
+ var h, b = {}, g = null, T = null;
853
+ R !== void 0 && (g = "" + R), u.key !== void 0 && (g = "" + u.key), u.ref !== void 0 && (T = u.ref);
854
+ for (h in u) c.call(u, h) && !p.hasOwnProperty(h) && (b[h] = u[h]);
855
+ if (m && m.defaultProps) for (h in u = m.defaultProps, u) b[h] === void 0 && (b[h] = u[h]);
856
+ return { $$typeof: n, type: m, key: g, ref: T, props: b, _owner: l.current };
856
857
  }
857
858
  return nt.Fragment = a, nt.jsx = k, nt.jsxs = k, nt;
858
859
  }
@@ -869,11 +870,11 @@ var at = {};
869
870
  var qt;
870
871
  function yr() {
871
872
  return qt || (qt = 1, process.env.NODE_ENV !== "production" && function() {
872
- var r = F, n = Symbol.for("react.element"), a = Symbol.for("react.portal"), c = Symbol.for("react.fragment"), l = Symbol.for("react.strict_mode"), p = Symbol.for("react.profiler"), k = Symbol.for("react.provider"), b = Symbol.for("react.context"), u = Symbol.for("react.forward_ref"), S = Symbol.for("react.suspense"), h = Symbol.for("react.suspense_list"), g = Symbol.for("react.memo"), m = Symbol.for("react.lazy"), P = Symbol.for("react.offscreen"), T = Symbol.iterator, Te = "@@iterator";
873
+ var r = F, n = Symbol.for("react.element"), a = Symbol.for("react.portal"), c = Symbol.for("react.fragment"), l = Symbol.for("react.strict_mode"), p = Symbol.for("react.profiler"), k = Symbol.for("react.provider"), m = Symbol.for("react.context"), u = Symbol.for("react.forward_ref"), R = Symbol.for("react.suspense"), h = Symbol.for("react.suspense_list"), b = Symbol.for("react.memo"), g = Symbol.for("react.lazy"), T = Symbol.for("react.offscreen"), C = Symbol.iterator, Te = "@@iterator";
873
874
  function pe(e) {
874
875
  if (e === null || typeof e != "object")
875
876
  return null;
876
- var t = T && e[T] || e[Te];
877
+ var t = C && e[C] || e[Te];
877
878
  return typeof t == "function" ? t : null;
878
879
  }
879
880
  var W = r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
@@ -897,7 +898,7 @@ function yr() {
897
898
  var Ne = !1, Oe = !1, Be = !1, Ie = !1, _ = !1, E;
898
899
  E = Symbol.for("react.module.reference");
899
900
  function B(e) {
900
- return !!(typeof e == "string" || typeof e == "function" || e === c || e === p || _ || e === l || e === S || e === h || Ie || e === P || Ne || Oe || Be || typeof e == "object" && e !== null && (e.$$typeof === m || e.$$typeof === g || e.$$typeof === k || e.$$typeof === b || e.$$typeof === u || // This needs to include all possible module reference object
901
+ return !!(typeof e == "string" || typeof e == "function" || e === c || e === p || _ || e === l || e === R || e === h || Ie || e === T || Ne || Oe || Be || typeof e == "object" && e !== null && (e.$$typeof === g || e.$$typeof === b || e.$$typeof === k || e.$$typeof === m || e.$$typeof === u || // This needs to include all possible module reference object
901
902
  // types supported by any Flight configuration anywhere since
902
903
  // we don't know which Flight build this will end up being used
903
904
  // with.
@@ -929,14 +930,14 @@ function yr() {
929
930
  return "Profiler";
930
931
  case l:
931
932
  return "StrictMode";
932
- case S:
933
+ case R:
933
934
  return "Suspense";
934
935
  case h:
935
936
  return "SuspenseList";
936
937
  }
937
938
  if (typeof e == "object")
938
939
  switch (e.$$typeof) {
939
- case b:
940
+ case m:
940
941
  var t = e;
941
942
  return I(t) + ".Consumer";
942
943
  case k:
@@ -944,10 +945,10 @@ function yr() {
944
945
  return I(o._context) + ".Provider";
945
946
  case u:
946
947
  return M(e, e.render, "ForwardRef");
947
- case g:
948
+ case b:
948
949
  var s = e.displayName || null;
949
950
  return s !== null ? s : $(e.type) || "Memo";
950
- case m: {
951
+ case g: {
951
952
  var v = e, y = v._payload, d = v._init;
952
953
  try {
953
954
  return $(d(y));
@@ -1089,18 +1090,18 @@ function yr() {
1089
1090
  if (w && s && typeof w.stack == "string") {
1090
1091
  for (var f = w.stack.split(`
1091
1092
  `), O = s.stack.split(`
1092
- `), R = f.length - 1, x = O.length - 1; R >= 1 && x >= 0 && f[R] !== O[x]; )
1093
+ `), S = f.length - 1, x = O.length - 1; S >= 1 && x >= 0 && f[S] !== O[x]; )
1093
1094
  x--;
1094
- for (; R >= 1 && x >= 0; R--, x--)
1095
- if (f[R] !== O[x]) {
1096
- if (R !== 1 || x !== 1)
1095
+ for (; S >= 1 && x >= 0; S--, x--)
1096
+ if (f[S] !== O[x]) {
1097
+ if (S !== 1 || x !== 1)
1097
1098
  do
1098
- if (R--, x--, x < 0 || f[R] !== O[x]) {
1099
- var C = `
1100
- ` + f[R].replace(" at new ", " at ");
1101
- return e.displayName && C.includes("<anonymous>") && (C = C.replace("<anonymous>", e.displayName)), typeof e == "function" && ne.set(e, C), C;
1099
+ if (S--, x--, x < 0 || f[S] !== O[x]) {
1100
+ var P = `
1101
+ ` + f[S].replace(" at new ", " at ");
1102
+ return e.displayName && P.includes("<anonymous>") && (P = P.replace("<anonymous>", e.displayName)), typeof e == "function" && ne.set(e, P), P;
1102
1103
  }
1103
- while (R >= 1 && x >= 0);
1104
+ while (S >= 1 && x >= 0);
1104
1105
  break;
1105
1106
  }
1106
1107
  }
@@ -1125,7 +1126,7 @@ function yr() {
1125
1126
  if (typeof e == "string")
1126
1127
  return re(e);
1127
1128
  switch (e) {
1128
- case S:
1129
+ case R:
1129
1130
  return re("Suspense");
1130
1131
  case h:
1131
1132
  return re("SuspenseList");
@@ -1134,9 +1135,9 @@ function yr() {
1134
1135
  switch (e.$$typeof) {
1135
1136
  case u:
1136
1137
  return pt(e.render);
1137
- case g:
1138
+ case b:
1138
1139
  return oe(e.type, t, o);
1139
- case m: {
1140
+ case g: {
1140
1141
  var s = e, v = s._payload, y = s._init;
1141
1142
  try {
1142
1143
  return oe(y(v), t, o);
@@ -1166,8 +1167,8 @@ function yr() {
1166
1167
  throw O.name = "Invariant Violation", O;
1167
1168
  }
1168
1169
  f = e[d](t, d, s, o, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
1169
- } catch (R) {
1170
- f = R;
1170
+ } catch (S) {
1171
+ f = S;
1171
1172
  }
1172
1173
  f && !(f instanceof Error) && (ae(v), j("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", s || "React class", o, d, typeof f), ae(null)), f instanceof Error && !(f.message in Le) && (Le[f.message] = !0, ae(v), j("Failed %s type: %s", o, f.message), ae(null));
1173
1174
  }
@@ -1280,9 +1281,9 @@ function yr() {
1280
1281
  for (y in t)
1281
1282
  K.call(t, y) && !bt.hasOwnProperty(y) && (d[y] = t[y]);
1282
1283
  if (e && e.defaultProps) {
1283
- var R = e.defaultProps;
1284
- for (y in R)
1285
- d[y] === void 0 && (d[y] = R[y]);
1284
+ var S = e.defaultProps;
1285
+ for (y in S)
1286
+ d[y] === void 0 && (d[y] = S[y]);
1286
1287
  }
1287
1288
  if (f || O) {
1288
1289
  var x = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
@@ -1374,7 +1375,7 @@ Check the top-level render call using <` + o + ">.");
1374
1375
  o = t.propTypes;
1375
1376
  else if (typeof t == "object" && (t.$$typeof === u || // Note: Memo only checks outer props here.
1376
1377
  // Inner props are checked in the reconciler.
1377
- t.$$typeof === g))
1378
+ t.$$typeof === b))
1378
1379
  o = t.propTypes;
1379
1380
  else
1380
1381
  return;
@@ -1410,24 +1411,24 @@ Check the top-level render call using <` + o + ">.");
1410
1411
  (e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (f += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
1411
1412
  var O = Ot();
1412
1413
  O ? f += O : f += Ke();
1413
- var R;
1414
- e === null ? R = "null" : ye(e) ? R = "array" : e !== void 0 && e.$$typeof === n ? (R = "<" + ($(e.type) || "Unknown") + " />", f = " Did you accidentally export a JSX literal instead of a component?") : R = typeof e, j("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", R, f);
1414
+ var S;
1415
+ e === null ? S = "null" : ye(e) ? S = "array" : e !== void 0 && e.$$typeof === n ? (S = "<" + ($(e.type) || "Unknown") + " />", f = " Did you accidentally export a JSX literal instead of a component?") : S = typeof e, j("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", S, f);
1415
1416
  }
1416
1417
  var x = jt(e, t, o, v, y);
1417
1418
  if (x == null)
1418
1419
  return x;
1419
1420
  if (d) {
1420
- var C = t.children;
1421
- if (C !== void 0)
1421
+ var P = t.children;
1422
+ if (P !== void 0)
1422
1423
  if (s)
1423
- if (ye(C)) {
1424
- for (var z = 0; z < C.length; z++)
1425
- Xe(C[z], e);
1426
- Object.freeze && Object.freeze(C);
1424
+ if (ye(P)) {
1425
+ for (var z = 0; z < P.length; z++)
1426
+ Xe(P[z], e);
1427
+ Object.freeze && Object.freeze(P);
1427
1428
  } else
1428
1429
  j("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
1429
1430
  else
1430
- Xe(C, e);
1431
+ Xe(P, e);
1431
1432
  }
1432
1433
  if (K.call(t, "key")) {
1433
1434
  var L = $(e), w = Object.keys(t).filter(function(It) {
@@ -1580,21 +1581,21 @@ var de;
1580
1581
  return A().page;
1581
1582
  }
1582
1583
  r.getPage = k;
1583
- function b(_) {
1584
+ function m(_) {
1584
1585
  return A().page === _;
1585
1586
  }
1586
- r.isPage = b;
1587
+ r.isPage = m;
1587
1588
  function u() {
1588
1589
  return A().prev;
1589
1590
  }
1590
1591
  r.getBack = u;
1591
- function S(_, E) {
1592
+ function R(_, E) {
1592
1593
  const [B, M] = F.useState(
1593
- g() || _ || A().module
1594
+ b() || _ || A().module
1594
1595
  );
1595
1596
  return Se({ module: M }), B;
1596
1597
  }
1597
- r.useModule = S;
1598
+ r.useModule = R;
1598
1599
  function h(_, E = !0) {
1599
1600
  te({ module: _ }), sessionStorage.setItem(
1600
1601
  A().STORAGE,
@@ -1602,15 +1603,15 @@ var de;
1602
1603
  ), E && ie().module(_);
1603
1604
  }
1604
1605
  r.setModule = h;
1605
- function g() {
1606
+ function b() {
1606
1607
  return A().module || "";
1607
1608
  }
1608
- r.getModule = g;
1609
- function m(_) {
1609
+ r.getModule = b;
1610
+ function g(_) {
1610
1611
  return A().module === _;
1611
1612
  }
1612
- r.isModule = m;
1613
- function P(_, E) {
1613
+ r.isModule = g;
1614
+ function T(_, E) {
1614
1615
  if (typeof _ != "function") {
1615
1616
  const [B, M] = F.useState(!E), [I, $] = F.useState(_ || pe());
1616
1617
  return Se({ tabs: $ }), E && F.useEffect(() => {
@@ -1619,8 +1620,8 @@ var de;
1619
1620
  } else
1620
1621
  Se({ tabs: _ });
1621
1622
  }
1622
- r.useTabs = P;
1623
- function T(_) {
1623
+ r.useTabs = T;
1624
+ function C(_) {
1624
1625
  let E = (I) => (te({ tab: I }), I);
1625
1626
  const [B, M] = F.useState(
1626
1627
  pe() || _ && E(_) || A().tab
@@ -1629,7 +1630,7 @@ var de;
1629
1630
  M(I);
1630
1631
  } }), B;
1631
1632
  }
1632
- r.useTab = T;
1633
+ r.useTab = C;
1633
1634
  async function Te(_, E = !0) {
1634
1635
  te({ tab: _ }), sessionStorage.setItem(
1635
1636
  A().STORAGE,
@@ -1800,25 +1801,25 @@ G.users = {
1800
1801
  };
1801
1802
  const Sr = () => {
1802
1803
  if (location.hostname === "localhost") {
1803
- let [r, n] = J(!1), [a, c] = J(!1), [l, p] = J("dark"), [k, b] = J(!1), [u, S] = J(!1);
1804
+ let [r, n] = J(!1), [a, c] = J(!1), [l, p] = J("dark"), [k, m] = J(!1), [u, R] = J(!1);
1804
1805
  Ee.is = !0, Ee.MainButton.set = n, Ee.BackButton.set = c, fe(() => {
1805
1806
  G[l]["--tg-theme-bg-color-alpha"] = G[l]["--tg-theme-bg-color"] + "b3", G[l]["--tg-theme-secondary-bg-color-alpha"] = G[l]["--tg-theme-secondary-bg-color"] + "d3";
1806
- for (let m in G[l])
1807
+ for (let g in G[l])
1807
1808
  document.documentElement.style.setProperty(
1808
- m,
1809
- G[l][m]
1809
+ g,
1810
+ G[l][g]
1810
1811
  );
1811
1812
  Ce.safeAreaInset.bottom === 0 && document.documentElement.style.setProperty(
1812
1813
  "--tg-safe-area-inset-bottom",
1813
1814
  "16px"
1814
1815
  );
1815
1816
  }, []);
1816
- let h = (m) => {
1817
- for (let P in G[m])
1818
- document.documentElement.style.setProperty(P, G[m][P]);
1819
- p(m), b(!1);
1820
- }, g = () => {
1821
- b(!1), S(!0);
1817
+ let h = (g) => {
1818
+ for (let T in G[g])
1819
+ document.documentElement.style.setProperty(T, G[g][T]);
1820
+ p(g), m(!1);
1821
+ }, b = () => {
1822
+ m(!1), R(!0);
1822
1823
  };
1823
1824
  return /* @__PURE__ */ i.jsxs(i.Fragment, { children: [
1824
1825
  /* @__PURE__ */ i.jsxs("header", { className: "debug", children: [
@@ -1826,14 +1827,14 @@ const Sr = () => {
1826
1827
  "div",
1827
1828
  {
1828
1829
  onClick: () => {
1829
- var m;
1830
- a.page === void 0 ? (m = a.callback) == null || m.call(a) : de.setPage(a.page);
1830
+ var g;
1831
+ a.page === void 0 ? (g = a.callback) == null || g.call(a) : de.setPage(a.page);
1831
1832
  },
1832
1833
  className: "b",
1833
1834
  children: "Назад"
1834
1835
  }
1835
1836
  ),
1836
- /* @__PURE__ */ i.jsx("div", { className: "o", onClick: () => b(!k), children: "Меню" })
1837
+ /* @__PURE__ */ i.jsx("div", { className: "o", onClick: () => m(!k), children: "Меню" })
1837
1838
  ] }),
1838
1839
  /* @__PURE__ */ i.jsx(xe.Init, {}),
1839
1840
  r && /* @__PURE__ */ i.jsx("div", { className: "mb", children: /* @__PURE__ */ i.jsx(
@@ -1847,7 +1848,7 @@ const Sr = () => {
1847
1848
  ) }),
1848
1849
  k ? /* @__PURE__ */ i.jsxs("div", { className: "tm", children: [
1849
1850
  /* @__PURE__ */ i.jsxs("ul", { children: [
1850
- /* @__PURE__ */ i.jsx("li", { children: /* @__PURE__ */ i.jsx("button", { onClick: g, children: "Authorization" }) }),
1851
+ /* @__PURE__ */ i.jsx("li", { children: /* @__PURE__ */ i.jsx("button", { onClick: b, children: "Authorization" }) }),
1851
1852
  /* @__PURE__ */ i.jsx("li", {})
1852
1853
  ] }),
1853
1854
  /* @__PURE__ */ i.jsxs("ul", { children: [
@@ -1877,10 +1878,10 @@ const Sr = () => {
1877
1878
  ) })
1878
1879
  ] })
1879
1880
  ] }),
1880
- /* @__PURE__ */ i.jsx("li", { children: /* @__PURE__ */ i.jsx("button", { onClick: () => b(!k), children: "Closed" }) })
1881
+ /* @__PURE__ */ i.jsx("li", { children: /* @__PURE__ */ i.jsx("button", { onClick: () => m(!k), children: "Closed" }) })
1881
1882
  ] })
1882
1883
  ] }) : "",
1883
- u ? /* @__PURE__ */ i.jsx(kr, { setAuthorization: S }) : ""
1884
+ u ? /* @__PURE__ */ i.jsx(kr, { setAuthorization: R }) : ""
1884
1885
  ] });
1885
1886
  } else
1886
1887
  return fe(() => {
@@ -1978,24 +1979,24 @@ function qr({
1978
1979
  view: p = "list",
1979
1980
  position: k = "left"
1980
1981
  }) {
1981
- const [b, u] = J(!1), [S, h] = J(
1982
+ const [m, u] = J(!1), [R, h] = J(
1982
1983
  null
1983
1984
  );
1984
1985
  fe(() => {
1985
- let m = document.querySelector(".p_sb");
1986
- return m || (m = document.createElement("div"), m.className = "_p_sb", document.body.appendChild(m)), h(m), () => {
1987
- m && m.parentNode && m.parentNode.removeChild(m);
1986
+ let g = document.querySelector(".p_sb");
1987
+ return g || (g = document.createElement("div"), g.className = "_p_sb", document.body.appendChild(g)), h(g), () => {
1988
+ g && g.parentNode && g.parentNode.removeChild(g);
1988
1989
  };
1989
1990
  }, []);
1990
- const g = /* @__PURE__ */ i.jsxs(i.Fragment, { children: [
1991
- b && /* @__PURE__ */ i.jsx("div", { className: le.o, onClick: () => u(!1) }),
1991
+ const b = /* @__PURE__ */ i.jsxs(i.Fragment, { children: [
1992
+ m && /* @__PURE__ */ i.jsx("div", { className: le.o, onClick: () => u(!1) }),
1992
1993
  /* @__PURE__ */ i.jsxs(
1993
1994
  "div",
1994
1995
  {
1995
1996
  className: Pe(
1996
1997
  le.m,
1997
1998
  k === "left" ? le.l : le.r,
1998
- b && le.x,
1999
+ m && le.x,
1999
2000
  l
2000
2001
  ),
2001
2002
  children: [
@@ -2037,7 +2038,7 @@ function qr({
2037
2038
  children: n
2038
2039
  }
2039
2040
  ),
2040
- S && nr(g, S)
2041
+ R && nr(b, R)
2041
2042
  ] });
2042
2043
  }
2043
2044
  let ot = () => {
@@ -2050,9 +2051,9 @@ const rr = ({
2050
2051
  className: l,
2051
2052
  onOpen: p
2052
2053
  }) => {
2053
- const [k, b] = F.useState(!1);
2054
+ const [k, m] = F.useState(!1);
2054
2055
  return ot = () => {
2055
- b(!0), setTimeout(() => {
2056
+ m(!0), setTimeout(() => {
2056
2057
  var u;
2057
2058
  p == null || p(!1), (u = we == null ? void 0 : we.onClose) == null || u.call(we);
2058
2059
  }, 300);
@@ -2098,7 +2099,7 @@ const rr = ({
2098
2099
  onPageChange: p,
2099
2100
  direction: k = "row"
2100
2101
  }) => {
2101
- const [b, u] = F.useState(null), [S, h] = F.useState(
2102
+ const [m, u] = F.useState(null), [R, h] = F.useState(
2102
2103
  l ? Jt(r || [], l) : 0
2103
2104
  );
2104
2105
  return we.onClose = () => {
@@ -2106,41 +2107,41 @@ const rr = ({
2106
2107
  }, fe(() => {
2107
2108
  if (!c)
2108
2109
  return;
2109
- const g = document.querySelectorAll("[contenteditable]"), m = () => {
2110
- const T = document.querySelector("footer");
2111
- T && (T.style.display = "flex");
2112
- }, P = () => {
2113
- const T = document.querySelector("footer");
2114
- T && (T.style.display = "none");
2110
+ const b = document.querySelectorAll("[contenteditable]"), g = () => {
2111
+ const C = document.querySelector("footer");
2112
+ C && (C.style.display = "flex");
2113
+ }, T = () => {
2114
+ const C = document.querySelector("footer");
2115
+ C && (C.style.display = "none");
2115
2116
  };
2116
- return g.forEach((T) => {
2117
- T.addEventListener("focus", P, !0), T.addEventListener("blur", m, !0);
2117
+ return b.forEach((C) => {
2118
+ C.addEventListener("focus", T, !0), C.addEventListener("blur", g, !0);
2118
2119
  }), () => {
2119
- g.forEach((T) => {
2120
- T.removeEventListener("focus", P, !0), T.removeEventListener("blur", m, !0);
2120
+ b.forEach((C) => {
2121
+ C.removeEventListener("focus", T, !0), C.removeEventListener("blur", g, !0);
2121
2122
  });
2122
2123
  };
2123
2124
  }, []), /* @__PURE__ */ i.jsxs(i.Fragment, { children: [
2124
- b,
2125
+ m,
2125
2126
  /* @__PURE__ */ i.jsxs(
2126
2127
  "footer",
2127
2128
  {
2128
2129
  className: `${Mt.h} ${Mt[k]} ${a} `,
2129
2130
  children: [
2130
2131
  n,
2131
- r && r.map((g, m) => /* @__PURE__ */ i.jsxs(
2132
+ r && r.map((b, g) => /* @__PURE__ */ i.jsxs(
2132
2133
  "div",
2133
2134
  {
2134
- "data-active": S === m ? "true" : "false",
2135
+ "data-active": R === g ? "true" : "false",
2135
2136
  onClick: () => {
2136
- g.page && (h(m), p == null || p(g.page)), g.callback && (g.callback(), h(m)), g.component && (S === m ? ot() : (u(g.component), h(m)));
2137
+ b.page && (h(g), p == null || p(b.page)), b.callback && (b.callback(), h(g)), b.component && (R === g ? ot() : (u(b.component), h(g)));
2137
2138
  },
2138
2139
  children: [
2139
- g.icon,
2140
- g.badge && /* @__PURE__ */ i.jsx("div", { className: Mt.badge, children: g.badge })
2140
+ b.icon,
2141
+ b.badge && /* @__PURE__ */ i.jsx("div", { className: Mt.badge, children: b.badge })
2141
2142
  ]
2142
2143
  },
2143
- m
2144
+ g
2144
2145
  ))
2145
2146
  ]
2146
2147
  }
@@ -2160,24 +2161,24 @@ function rn({
2160
2161
  isScroll: l = !0,
2161
2162
  nextBackButton: p
2162
2163
  }) {
2163
- const [k, b] = J(!1);
2164
+ const [k, m] = J(!1);
2164
2165
  return fe(() => {
2165
2166
  if (!c) return;
2166
- const u = p === void 0 ? dn().pop() : p, S = () => {
2167
- b(!1), setTimeout(() => {
2167
+ const u = p === void 0 ? dn().pop() : p, R = () => {
2168
+ m(!1), setTimeout(() => {
2168
2169
  Gt(u || !1), a == null || a();
2169
2170
  }, 300);
2170
2171
  };
2171
2172
  Lt[n] = {
2172
- onClose: S,
2173
+ onClose: R,
2173
2174
  onOpen: () => {
2174
- b(!0);
2175
+ m(!0);
2175
2176
  }
2176
2177
  }, Gt({
2177
- callback: S
2178
+ callback: R
2178
2179
  });
2179
2180
  const h = setTimeout(() => {
2180
- b(!0);
2181
+ m(!0);
2181
2182
  }, 10);
2182
2183
  return () => {
2183
2184
  clearTimeout(h);
@@ -2212,14 +2213,14 @@ function sn({
2212
2213
  isLoading: l,
2213
2214
  isScrollBar: p = !1
2214
2215
  }) {
2215
- const [k, b] = J(l || !1);
2216
+ const [k, m] = J(l || !1);
2216
2217
  fe(() => {
2217
- b(l || !1);
2218
+ m(l || !1);
2218
2219
  }, [l]);
2219
2220
  let u = {
2220
- onScroll: (S) => {
2221
- const { scrollTop: h, scrollHeight: g, clientHeight: m } = S.currentTarget;
2222
- h + m >= g - c && !k && (b(!0), a == null || a());
2221
+ onScroll: (R) => {
2222
+ const { scrollTop: h, scrollHeight: b, clientHeight: g } = R.currentTarget;
2223
+ h + g >= b - c && !k && (m(!0), a == null || a());
2223
2224
  }
2224
2225
  };
2225
2226
  return /* @__PURE__ */ i.jsx(
package/dist/index.umd.js CHANGED
@@ -1,4 +1,4 @@
1
- (function(_,w){typeof exports=="object"&&typeof module<"u"?w(exports,require("react"),require("react-dom")):typeof define=="function"&&define.amd?define(["exports","react","react-dom"],w):(_=typeof globalThis<"u"?globalThis:_||self,w((_.elCRM=_.elCRM||{},_.elCRM.components={}),_.React,_.ReactDOM))})(this,function(_,w,nr){"use strict";var Wt=document.createElement("style");Wt.textContent=`@charset "UTF-8";*{-webkit-touch-callout:none;-webkit-user-select:none;-khtml-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;box-sizing:border-box;padding:0;margin:0}html{height:-webkit-fill-available}body{background-color:var(--tg-theme-bg-color);color:var(--tg-theme-text-color);-webkit-font-smoothing:antialiased;font-family:sans-serif;font-variant:no-common-ligatures;text-rendering:optimizeLegibility;padding:0;margin:0}body{overflow:hidden!important}body:has(.debug){--tg-viewport-height: calc(100dvh - 50px) ;--tg-safe-area-inset-top: 50px}body::-webkit-scrollbar{width:0px;height:0px;display:none!important;-ms-overflow-style:none;scrollbar-width:none}.debug{height:50px;font-family:Inter,system-ui,Avenir,Helvetica,Arial,sans-serif;background:var(--tg-theme-header-bg-color);color:var(--tg-theme-text-color);display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid var(--tg-theme-bg-color);z-index:222;position:fixed;top:0;left:0;right:0}.debug .b,.debug .o{padding:0 15px;cursor:pointer}.mb{bottom:0;position:fixed;left:0;right:0;padding:10px}.mb button{width:100%}.tm{font-family:Inter,system-ui,Avenir,Helvetica,Arial,sans-serif;display:flex;flex-direction:column;background-color:var(--tg-theme-bg-color);border-radius:10px;box-shadow:0 10px 20px #40404026;width:200px;position:absolute;right:5px;z-index:999;border:1px solid var(--tg-theme-hint-color)}.tm ul{list-style-type:none;margin:0;display:block;width:100%;padding:8px;border-top:1px solid var(--tg-theme-hint-color)}.tm ul:first-child{border-top:0}.tm ol{list-style-type:none;display:none;padding:8px;background-color:var(--tg-theme-bg-color);border-radius:10px;box-shadow:0 10px 20px #40404026;position:absolute;right:100%;left:-180px;z-index:100;width:100%;top:0;flex-direction:column;border:1px solid var(--tg-theme-hint-color)}.tm ol:hover{display:flex}.tm li{position:relative}.tm button{font:inherit;border:0;padding:8px 36px 8px 8px;width:100%;border-radius:8px;text-align:left;display:flex;align-items:center;position:relative;color:var(--tg-theme-text-color);background-color:var(--tg-theme-bg-color)}.tm button:hover{background-color:var(--tg-theme-button-color)}.tm button:hover+ol{display:flex}.ta{margin:0;width:100vw;height:100vh;display:-webkit-flex;display:flex;justify-content:center;align-items:center;background-color:#0006}.ta .--body{font-family:-apple-system,BlinkMacSystemFont;-webkit-font-smoothing:antialiased;text-rendering:optimizelegibility;box-sizing:border-box;font-size:17px;overflow:hidden;width:270px;height:auto;background-color:#ffffff73;border-radius:12px}:root{--tg-modal-height: calc( 100dvh - var(--tg-safe-area-inset-top, 0px) - var( --tg-content-safe-area-inset-top, 0px ) - var(--tg-footer-height, 60px) )}._o_w3bne_11{position:fixed;top:0;left:0;right:0;bottom:0;background:var(--tg-theme-bg-color-alpha);z-index:11;display:flex;align-items:flex-end;justify-content:center;animation:_fadeIn_w3bne_1 .3s ease}._o_w3bne_11._x_w3bne_25{animation:_fadeOut_w3bne_1 .3s ease}._p_w3bne_29{position:fixed;width:100%;overflow:hidden;animation:_slideUp_w3bne_1 .3s ease;background:var(--tg-theme-bg-color);top:0;bottom:0;left:0;right:0;margin:0 auto;padding-bottom:calc(var(--tg-safe-area-inset-bottom) + var(--tg-content-safe-area-inset-bottom, 0px) + var(--tg-footer-height, 0px))}._p_w3bne_29._x_w3bne_25{animation:_slideDown_w3bne_1 .3s ease}._p_w3bne_29._m_w3bne_47{--tg-modal-offset-top: calc( var(--tg-safe-area-inset-top, 0px) + var(--tg-content-safe-area-inset-top, 0px) )}._p_w3bne_29._o_w3bne_11{--tg-modal-offset-top: 0px;padding-top:calc(var(--tg-safe-area-inset-top, 0px) + var(--tg-content-safe-area-inset-top, 0px))}@keyframes _fadeIn_w3bne_1{0%{opacity:0}to{opacity:1}}@keyframes _fadeOut_w3bne_1{0%{opacity:1}to{opacity:0}}@keyframes _slideUp_w3bne_1{0%{transform:translateY(100%)}to{transform:translateY(0)}}@keyframes _slideDown_w3bne_1{0%{transform:translateY(0)}to{transform:translateY(100%)}}.notice{position:fixed;z-index:999;max-height:0px;top:calc(var(--tg-safe-area-inset-top) + var(--tg-content-safe-area-inset-top, 0px))}.notice .item{display:block;color:#fff;overflow:hidden;cursor:pointer;display:flex;margin:20px 20px 10px;border-radius:10px;padding-left:10px;gap:10px;width:calc(100vw - 40px)}.notice svg{margin-top:7px}.notice .text{padding:9px 0;flex:1}.notice .error{background:#f44336}.notice .success{background:#4caf50}.notice .warning{background:#ff9800}.notice .item.thema{background:var(--tg-theme-secondary-bg-color);color:var(--tg-theme-text-color)}.notice .item.error.thema svg{color:#f44336}.notice .item.success.thema svg{color:#4caf50}.notice .item.warning.thema svg{color:#ff9800}._p_12hh1_1{padding-bottom:calc(var(--tg-safe-area-inset-bottom) + var(--tg-content-safe-area-inset-bottom, 0px) + var(--tg-footer-height, 0px));padding-top:calc(var(--tg-safe-area-inset-top) + var(--tg-content-safe-area-inset-top, 0px));padding-left:calc(var(--tg-safe-area-inset-left) + var(--tg-content-safe-area-inset-left, 0px));padding-right:calc(var(--tg-safe-area-inset-right) + var(--tg-content-safe-area-inset-right, 0px));height:var(--tg-safe-area-height);max-height:var(--tg-safe-area-height)}._m_12hh1_10{margin-bottom:calc(var(--tg-safe-area-inset-bottom) + var(--tg-content-safe-area-inset-bottom, 0px));margin-top:calc(var(--tg-safe-area-inset-top) + var(--tg-content-safe-area-inset-top, 0px));margin-left:calc(var(--tg-safe-area-inset-left) + var(--tg-content-safe-area-inset-left, 0px));margin-right:calc(var(--tg-safe-area-inset-right) + var(--tg-content-safe-area-inset-right, 0px))}._s_12hh1_17{overflow:scroll}._l_gfyud_1{padding-bottom:calc(var(--tg-safe-area-inset-bottom) + var(--tg-content-safe-area-inset-bottom, 0px));padding-top:calc(var(--tg-safe-area-inset-top) + var(--tg-content-safe-area-inset-top, 0px));padding-left:calc(var(--tg-safe-area-inset-left) + var(--tg-content-safe-area-inset-left, 0px));padding-right:calc(var(--tg-safe-area-inset-right) + var(--tg-content-safe-area-inset-right, 0px));margin:auto;position:absolute;top:0;right:0;bottom:0;left:0}._m_ppm7n_2{display:flex;flex-direction:column;gap:8px;margin-top:20px;padding:0 10px}._g_ppm7n_10{display:flex;flex-direction:column;border-radius:10px;overflow:hidden;gap:1px}._i_ppm7n_18{display:flex;align-items:center;padding:12px 16px;border:none;text-align:left;font-size:17px;cursor:pointer;transition:background-color .2s;width:100%;position:relative;background:none;color:inherit;background-color:var(--tg-theme-secondary-bg-color);font-weight:400}._c_ppm7n_35{display:flex;align-items:center;gap:12px;flex:1}._l_ppm7n_42{width:32px;height:32px;display:flex;align-items:center;justify-content:center;border-radius:8px;flex-shrink:0}._l_ppm7n_42 svg{width:20px;height:20px;color:#fff}._a_ppm7n_57{color:#8e8e93;font-size:18px}._n_ppm7n_62{margin-left:auto;color:#8e8e93;font-size:17px;margin-right:4px}._o_8ho2f_3{position:fixed;top:0;left:0;right:0;bottom:0;background:var(--tg-theme-bg-color-alpha);z-index:998;animation:_fadeIn_8ho2f_1 .3s ease}._m_8ho2f_14{position:fixed;bottom:0;width:80%;max-width:320px;background:var(--tg-theme-bg-color, #ffffff);z-index:999;transition:transform .3s ease;box-shadow:2px 0 10px #0000001a;display:flex;flex-direction:column;top:calc(var(--tg-safe-area-inset-top) + var(--tg-content-safe-area-inset-top, 0px))}._l_8ho2f_28{left:0;transform:translate(-100%)}._r_8ho2f_33{right:0;transform:translate(100%)}._x_8ho2f_38{transform:translate(0)}._h_8ho2f_42{display:flex;justify-content:space-between;align-items:center;padding:10px 16px;border-bottom:1px solid var(--tg-theme-section-bg-color, #e5e5e5)}._h_8ho2f_42 h3{margin:0;font-size:18px;font-weight:700;color:var(--tg-theme-text-color, #000000)}._c_8ho2f_57{flex:1;overflow-y:auto}._c_8ho2f_57:after{content:"";position:absolute;top:0;bottom:0;right:0;width:7px;height:100%;background:var(--tg-theme-bg-color)}._u_8ho2f_72{display:flex;flex-direction:column;gap:10px;padding:16px}._u_8ho2f_72 li{padding:12px 0;border-bottom:1px solid var(--tg-theme-secondary-bg-color, #e5e5e5);display:flex;align-items:center;gap:10px}._u_8ho2f_72 li i{width:15px;height:15px;display:block;background:var(--tg-theme-button-color);border-radius:50%}._u_8ho2f_72 li em{display:block;width:15px;height:15px;background:var(--tg-theme-secondary-bg-color);border-radius:50%}._u_8ho2f_72 li:last-child{border-bottom:none}._u_8ho2f_72 li p{margin:0;font-size:15px;color:var(--tg-theme-text-color, #000000)}.footer-menu-overlay{position:fixed;top:auto;left:0;right:0;bottom:0;z-index:10;display:flex;align-items:flex-end;justify-content:center;transition:opacity .5s ease-out;opacity:1}.footer-menu-overlay.is-overlay{background:var(--tg-theme-bg-color-alpha);top:0}.footer-menu-overlay.closing{opacity:0}.footer-menu-popup-book{position:relative;-webkit-backdrop-filter:blur(15px);backdrop-filter:blur(15px);border-radius:20px 20px 0 0;width:100%;max-width:500px;max-height:70vh;overflow:hidden;animation:slideUp .3s ease;box-shadow:0 -10px 30px #00000080;box-shadow:0 -.5px #0000001a;background:var(--tg-theme-secondary-bg-color-alpha);border-bottom:1px solid var(--tg-theme-section-separator-color)}.footer-menu-popup-book.footer{margin-bottom:calc(var(--tg-safe-area-inset-bottom) + 40px)}.footer-menu-popup-book.closing{animation:slideDown .3s ease}.footer-menu-header{position:relative;display:flex;opacity:.8;justify-content:space-between;align-items:center;padding:20px;border-bottom:1px solid var(--tg-theme-section-separator-color);z-index:1}.footer-menu-header h3{margin:0;color:var(--tg-theme-text-color);font-size:18px;font-weight:600}.footer-menu-close-btn{background:none;border:none;color:var(--tg-theme-text-color);font-size:20px;cursor:pointer;padding:5px;border-radius:50%;width:30px;height:30px;display:flex;align-items:center;justify-content:center;transition:background-color .2s ease,transform .15s ease-in-out}.footer-menu-close-btn:active{transform:scale(1.1)}.chapters-list{position:relative;max-height:60vh;overflow-y:auto;overflow-x:hidden;padding:10px 0 20px;z-index:1}.chapter-item{display:flex;justify-content:space-between;align-items:center;padding:15px 20px;cursor:pointer;transition:background-color .2s ease,transform .15s ease-in-out;border-bottom:1px solid var(--tg-theme-section-separator-color)}.chapter-item:active{transform:scale(1.02)}.chapter-item:hover{background-color:#ffffff0d}.chapter-item.active{background-color:#ffffff1a}.chapter-info-item{display:flex;align-items:center;gap:12px}.chapter-number{background:var(--tg-theme-bg-color);color:var(--tg-theme-text-color);min-width:24px;min-height:24px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:12px;font-weight:600}.chapter-item.active .chapter-number{background:var(--tg-theme-button-color);color:var(--tg-theme-button-text-color)}.chapter-title{color:var(--tg-theme-text-color);font-size:16px;font-weight:400}.chapter-title p{font-size:10px;color:var(--tg-subtitle_text_color);font-weight:400}.chapter-title b{font-size:16px;font-weight:400}.chapter-duration{color:var(--tg-theme-text-color);opacity:.8;font-size:14px;font-weight:400}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}@keyframes fadeOut{0%{opacity:1}to{opacity:0}}@keyframes slideUp{0%{transform:translateY(100%)}to{transform:translateY(0)}}@keyframes slideDown{0%{transform:translateY(0)}to{transform:translateY(100%)}}.chapters-list::-webkit-scrollbar{width:6px}.chapters-list::-webkit-scrollbar-track{background:#333}.chapters-list::-webkit-scrollbar-thumb{background:#666;border-radius:3px}.chapters-list::-webkit-scrollbar-thumb:hover{background:#888}@media (max-width: 375px){.chapter-progress{padding:15px 10px 5px}.chapters-popup{max-height:80vh}.chapter-item{padding:12px 15px}.chapter-title{font-size:14px}.chapter-duration{font-size:12px}}body:has(._h_1ffr7_1){--tg-footer-height: 60px}._h_1ffr7_1{z-index:2;position:fixed;bottom:0;left:0;right:0;display:flex;padding:5px 16px 0;gap:10px;background-color:var(--tg-theme-footer-bg);max-width:var(--tg-max-width, 500px);margin:0 auto;padding-bottom:calc(var(--tg-safe-area-inset-bottom) + var(--tg-content-safe-area-inset-bottom, 0px))}._h_1ffr7_1._row_1ffr7_20{flex-direction:row}._h_1ffr7_1._column_1ffr7_23{flex-direction:column}._h_1ffr7_1 div[data-active]{flex:1;text-align:center;padding:10px 0 0;position:relative}._h_1ffr7_1 div[data-active=true]{color:var(--tg-theme-button-color)}._h_1ffr7_1 ._badge_1ffr7_36{position:absolute;top:0;right:0;color:var(--tg-theme-button-text-color);border-radius:50%;transform:translate(50%,-50%)}._w_yx04q_3{position:fixed;top:0;left:0;z-index:10;width:100%;height:100%;transform:translate(100%);transition:transform .35s cubic-bezier(.4,0,.2,1);will-change:transform;overflow:hidden;padding-bottom:calc(var(--tg-safe-area-inset-bottom) + var(--tg-content-safe-area-inset-bottom, 0px));padding-top:calc(var(--tg-safe-area-inset-top) + var(--tg-content-safe-area-inset-top, 0px));padding-left:calc(var(--tg-safe-area-inset-left) + var(--tg-content-safe-area-inset-left, 0px));padding-right:calc(var(--tg-safe-area-inset-right) + var(--tg-content-safe-area-inset-right, 0px));height:var(--tg-safe-area-height);max-height:var(--tg-safe-area-height);background:var(--tg-theme-bg-color)}._v_yx04q_24{transform:translate(0)}._w_yx04q_3{backface-visibility:hidden;perspective:1000px}._s_yx04q_34{overflow:scroll}._n_yx04q_38{position:fixed;top:0;right:0;bottom:0;width:7px;z-index:2;background:var(--tg-theme-bg-color)}@media (prefers-reduced-motion: no-preference){._w_yx04q_3{transition:transform .35s cubic-bezier(.4,0,.2,1)}}@media (prefers-reduced-motion: reduce){._w_yx04q_3{transform:translate(0);transition:none}}._s_1yn3d_3{overflow:scroll;width:100%;max-width:var(--tg-max-width);height:calc(100dvh - var(--tg-safe-area-inset-top) - var(--tg-content-safe-area-inset-top, 0px));padding-top:var(--tg-modal-offset-top, 0px);max-height:var(--tg-viewport-height);padding-bottom:calc(var(--tg-safe-area-inset-bottom) + var(--tg-content-safe-area-inset-bottom, 0px) + var(--tg-footer-height, 0px));margin:0 auto}._s_1yn3d_3._n_1yn3d_14{padding-left:7px;padding-right:7px}._s_1yn3d_3._n_1yn3d_14:after{content:"";position:fixed;top:0;right:0;bottom:0;width:7px;z-index:2;background:var(--tg-theme-bg-color)}._a_ohhaz_1{display:flex;align-items:center;justify-content:center;padding:8px 8px 12px}._a_ohhaz_1 b{font-size:18px;font-weight:600}._a_ohhaz_1._l_ohhaz_12{justify-content:flex-start}._a_ohhaz_1._r_ohhaz_15{justify-content:flex-end}
1
+ (function(v,S){typeof exports=="object"&&typeof module<"u"?S(exports,require("react"),require("react-dom")):typeof define=="function"&&define.amd?define(["exports","react","react-dom"],S):(v=typeof globalThis<"u"?globalThis:v||self,S((v.elCRM=v.elCRM||{},v.elCRM.components={}),v.React,v.ReactDOM))})(this,function(v,S,nr){"use strict";var Wt=document.createElement("style");Wt.textContent=`@charset "UTF-8";*{-webkit-touch-callout:none;-webkit-user-select:none;-khtml-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;box-sizing:border-box;padding:0;margin:0}html{height:-webkit-fill-available}body{background-color:var(--tg-theme-bg-color);color:var(--tg-theme-text-color);-webkit-font-smoothing:antialiased;font-family:sans-serif;font-variant:no-common-ligatures;text-rendering:optimizeLegibility;padding:0;margin:0}body{overflow:hidden!important}body:has(.debug){--tg-viewport-height: calc(100dvh - 50px) ;--tg-safe-area-inset-top: 50px}body::-webkit-scrollbar{width:0px;height:0px;display:none!important;-ms-overflow-style:none;scrollbar-width:none}.debug{height:50px;font-family:Inter,system-ui,Avenir,Helvetica,Arial,sans-serif;background:var(--tg-theme-header-bg-color);color:var(--tg-theme-text-color);display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid var(--tg-theme-bg-color);z-index:222;position:fixed;top:0;left:0;right:0}.debug .b,.debug .o{padding:0 15px;cursor:pointer}.mb{bottom:0;position:fixed;left:0;right:0;padding:10px}.mb button{width:100%}.tm{font-family:Inter,system-ui,Avenir,Helvetica,Arial,sans-serif;display:flex;flex-direction:column;background-color:var(--tg-theme-bg-color);border-radius:10px;box-shadow:0 10px 20px #40404026;width:200px;position:absolute;right:5px;z-index:999;border:1px solid var(--tg-theme-hint-color)}.tm ul{list-style-type:none;margin:0;display:block;width:100%;padding:8px;border-top:1px solid var(--tg-theme-hint-color)}.tm ul:first-child{border-top:0}.tm ol{list-style-type:none;display:none;padding:8px;background-color:var(--tg-theme-bg-color);border-radius:10px;box-shadow:0 10px 20px #40404026;position:absolute;right:100%;left:-180px;z-index:100;width:100%;top:0;flex-direction:column;border:1px solid var(--tg-theme-hint-color)}.tm ol:hover{display:flex}.tm li{position:relative}.tm button{font:inherit;border:0;padding:8px 36px 8px 8px;width:100%;border-radius:8px;text-align:left;display:flex;align-items:center;position:relative;color:var(--tg-theme-text-color);background-color:var(--tg-theme-bg-color)}.tm button:hover{background-color:var(--tg-theme-button-color)}.tm button:hover+ol{display:flex}.ta{margin:0;width:100vw;height:100vh;display:-webkit-flex;display:flex;justify-content:center;align-items:center;background-color:#0006}.ta .--body{font-family:-apple-system,BlinkMacSystemFont;-webkit-font-smoothing:antialiased;text-rendering:optimizelegibility;box-sizing:border-box;font-size:17px;overflow:hidden;width:270px;height:auto;background-color:#ffffff73;border-radius:12px}:root{--tg-modal-height: calc( 100dvh - var(--tg-safe-area-inset-top, 0px) - var( --tg-content-safe-area-inset-top, 0px ) - var(--tg-footer-height, 60px) )}._o_w3bne_11{position:fixed;top:0;left:0;right:0;bottom:0;background:var(--tg-theme-bg-color-alpha);z-index:11;display:flex;align-items:flex-end;justify-content:center;animation:_fadeIn_w3bne_1 .3s ease}._o_w3bne_11._x_w3bne_25{animation:_fadeOut_w3bne_1 .3s ease}._p_w3bne_29{position:fixed;width:100%;overflow:hidden;animation:_slideUp_w3bne_1 .3s ease;background:var(--tg-theme-bg-color);top:0;bottom:0;left:0;right:0;margin:0 auto;padding-bottom:calc(var(--tg-safe-area-inset-bottom) + var(--tg-content-safe-area-inset-bottom, 0px) + var(--tg-footer-height, 0px))}._p_w3bne_29._x_w3bne_25{animation:_slideDown_w3bne_1 .3s ease}._p_w3bne_29._m_w3bne_47{--tg-modal-offset-top: calc( var(--tg-safe-area-inset-top, 0px) + var(--tg-content-safe-area-inset-top, 0px) )}._p_w3bne_29._o_w3bne_11{--tg-modal-offset-top: 0px;padding-top:calc(var(--tg-safe-area-inset-top, 0px) + var(--tg-content-safe-area-inset-top, 0px))}@keyframes _fadeIn_w3bne_1{0%{opacity:0}to{opacity:1}}@keyframes _fadeOut_w3bne_1{0%{opacity:1}to{opacity:0}}@keyframes _slideUp_w3bne_1{0%{transform:translateY(100%)}to{transform:translateY(0)}}@keyframes _slideDown_w3bne_1{0%{transform:translateY(0)}to{transform:translateY(100%)}}.notice{position:fixed;z-index:999;max-height:0px;top:calc(var(--tg-safe-area-inset-top) + var(--tg-content-safe-area-inset-top, 0px))}.notice .item{display:block;color:#fff;overflow:hidden;cursor:pointer;display:flex;margin:20px 20px 10px;border-radius:10px;padding-left:10px;gap:10px;width:calc(100vw - 40px)}.notice svg{margin-top:7px}.notice .text{padding:9px 0;flex:1}.notice .error{background:#f44336}.notice .success{background:#4caf50}.notice .warning{background:#ff9800}.notice .item.thema{background:var(--tg-theme-secondary-bg-color);color:var(--tg-theme-text-color)}.notice .item.error.thema svg{color:#f44336}.notice .item.success.thema svg{color:#4caf50}.notice .item.warning.thema svg{color:#ff9800}._p_12hh1_1{padding-bottom:calc(var(--tg-safe-area-inset-bottom) + var(--tg-content-safe-area-inset-bottom, 0px) + var(--tg-footer-height, 0px));padding-top:calc(var(--tg-safe-area-inset-top) + var(--tg-content-safe-area-inset-top, 0px));padding-left:calc(var(--tg-safe-area-inset-left) + var(--tg-content-safe-area-inset-left, 0px));padding-right:calc(var(--tg-safe-area-inset-right) + var(--tg-content-safe-area-inset-right, 0px));height:var(--tg-safe-area-height);max-height:var(--tg-safe-area-height)}._m_12hh1_10{margin-bottom:calc(var(--tg-safe-area-inset-bottom) + var(--tg-content-safe-area-inset-bottom, 0px));margin-top:calc(var(--tg-safe-area-inset-top) + var(--tg-content-safe-area-inset-top, 0px));margin-left:calc(var(--tg-safe-area-inset-left) + var(--tg-content-safe-area-inset-left, 0px));margin-right:calc(var(--tg-safe-area-inset-right) + var(--tg-content-safe-area-inset-right, 0px))}._s_12hh1_17{overflow:scroll}._l_gfyud_1{padding-bottom:calc(var(--tg-safe-area-inset-bottom) + var(--tg-content-safe-area-inset-bottom, 0px));padding-top:calc(var(--tg-safe-area-inset-top) + var(--tg-content-safe-area-inset-top, 0px));padding-left:calc(var(--tg-safe-area-inset-left) + var(--tg-content-safe-area-inset-left, 0px));padding-right:calc(var(--tg-safe-area-inset-right) + var(--tg-content-safe-area-inset-right, 0px));margin:auto;position:absolute;top:0;right:0;bottom:0;left:0}._m_ppm7n_2{display:flex;flex-direction:column;gap:8px;margin-top:20px;padding:0 10px}._g_ppm7n_10{display:flex;flex-direction:column;border-radius:10px;overflow:hidden;gap:1px}._i_ppm7n_18{display:flex;align-items:center;padding:12px 16px;border:none;text-align:left;font-size:17px;cursor:pointer;transition:background-color .2s;width:100%;position:relative;background:none;color:inherit;background-color:var(--tg-theme-secondary-bg-color);font-weight:400}._c_ppm7n_35{display:flex;align-items:center;gap:12px;flex:1}._l_ppm7n_42{width:32px;height:32px;display:flex;align-items:center;justify-content:center;border-radius:8px;flex-shrink:0}._l_ppm7n_42 svg{width:20px;height:20px;color:#fff}._a_ppm7n_57{color:#8e8e93;font-size:18px}._n_ppm7n_62{margin-left:auto;color:#8e8e93;font-size:17px;margin-right:4px}._o_8ho2f_3{position:fixed;top:0;left:0;right:0;bottom:0;background:var(--tg-theme-bg-color-alpha);z-index:998;animation:_fadeIn_8ho2f_1 .3s ease}._m_8ho2f_14{position:fixed;bottom:0;width:80%;max-width:320px;background:var(--tg-theme-bg-color, #ffffff);z-index:999;transition:transform .3s ease;box-shadow:2px 0 10px #0000001a;display:flex;flex-direction:column;top:calc(var(--tg-safe-area-inset-top) + var(--tg-content-safe-area-inset-top, 0px))}._l_8ho2f_28{left:0;transform:translate(-100%)}._r_8ho2f_33{right:0;transform:translate(100%)}._x_8ho2f_38{transform:translate(0)}._h_8ho2f_42{display:flex;justify-content:space-between;align-items:center;padding:10px 16px;border-bottom:1px solid var(--tg-theme-section-bg-color, #e5e5e5)}._h_8ho2f_42 h3{margin:0;font-size:18px;font-weight:700;color:var(--tg-theme-text-color, #000000)}._c_8ho2f_57{flex:1;overflow-y:auto}._c_8ho2f_57:after{content:"";position:absolute;top:0;bottom:0;right:0;width:7px;height:100%;background:var(--tg-theme-bg-color)}._u_8ho2f_72{display:flex;flex-direction:column;gap:10px;padding:16px}._u_8ho2f_72 li{padding:12px 0;border-bottom:1px solid var(--tg-theme-secondary-bg-color, #e5e5e5);display:flex;align-items:center;gap:10px}._u_8ho2f_72 li i{width:15px;height:15px;display:block;background:var(--tg-theme-button-color);border-radius:50%}._u_8ho2f_72 li em{display:block;width:15px;height:15px;background:var(--tg-theme-secondary-bg-color);border-radius:50%}._u_8ho2f_72 li:last-child{border-bottom:none}._u_8ho2f_72 li p{margin:0;font-size:15px;color:var(--tg-theme-text-color, #000000)}.footer-menu-overlay{position:fixed;top:auto;left:0;right:0;bottom:0;z-index:10;display:flex;align-items:flex-end;justify-content:center;transition:opacity .5s ease-out;opacity:1}.footer-menu-overlay.is-overlay{background:var(--tg-theme-bg-color-alpha);top:0}.footer-menu-overlay.closing{opacity:0}.footer-menu-popup-book{position:relative;-webkit-backdrop-filter:blur(15px);backdrop-filter:blur(15px);border-radius:20px 20px 0 0;width:100%;max-width:500px;max-height:70vh;overflow:hidden;animation:slideUp .3s ease;box-shadow:0 -10px 30px #00000080;box-shadow:0 -.5px #0000001a;background:var(--tg-theme-secondary-bg-color-alpha);border-bottom:1px solid var(--tg-theme-section-separator-color)}.footer-menu-popup-book.footer{margin-bottom:calc(var(--tg-safe-area-inset-bottom) + 40px)}.footer-menu-popup-book.closing{animation:slideDown .3s ease}.footer-menu-header{position:relative;display:flex;opacity:.8;justify-content:space-between;align-items:center;padding:20px;border-bottom:1px solid var(--tg-theme-section-separator-color);z-index:1}.footer-menu-header h3{margin:0;color:var(--tg-theme-text-color);font-size:18px;font-weight:600}.footer-menu-close-btn{background:none;border:none;color:var(--tg-theme-text-color);font-size:20px;cursor:pointer;padding:5px;border-radius:50%;width:30px;height:30px;display:flex;align-items:center;justify-content:center;transition:background-color .2s ease,transform .15s ease-in-out}.footer-menu-close-btn:active{transform:scale(1.1)}.chapters-list{position:relative;max-height:60vh;overflow-y:auto;overflow-x:hidden;padding:10px 0 20px;z-index:1}.chapter-item{display:flex;justify-content:space-between;align-items:center;padding:15px 20px;cursor:pointer;transition:background-color .2s ease,transform .15s ease-in-out;border-bottom:1px solid var(--tg-theme-section-separator-color)}.chapter-item:active{transform:scale(1.02)}.chapter-item:hover{background-color:#ffffff0d}.chapter-item.active{background-color:#ffffff1a}.chapter-info-item{display:flex;align-items:center;gap:12px}.chapter-number{background:var(--tg-theme-bg-color);color:var(--tg-theme-text-color);min-width:24px;min-height:24px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:12px;font-weight:600}.chapter-item.active .chapter-number{background:var(--tg-theme-button-color);color:var(--tg-theme-button-text-color)}.chapter-title{color:var(--tg-theme-text-color);font-size:16px;font-weight:400}.chapter-title p{font-size:10px;color:var(--tg-subtitle_text_color);font-weight:400}.chapter-title b{font-size:16px;font-weight:400}.chapter-duration{color:var(--tg-theme-text-color);opacity:.8;font-size:14px;font-weight:400}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}@keyframes fadeOut{0%{opacity:1}to{opacity:0}}@keyframes slideUp{0%{transform:translateY(100%)}to{transform:translateY(0)}}@keyframes slideDown{0%{transform:translateY(0)}to{transform:translateY(100%)}}.chapters-list::-webkit-scrollbar{width:6px}.chapters-list::-webkit-scrollbar-track{background:#333}.chapters-list::-webkit-scrollbar-thumb{background:#666;border-radius:3px}.chapters-list::-webkit-scrollbar-thumb:hover{background:#888}@media (max-width: 375px){.chapter-progress{padding:15px 10px 5px}.chapters-popup{max-height:80vh}.chapter-item{padding:12px 15px}.chapter-title{font-size:14px}.chapter-duration{font-size:12px}}body:has(._h_1ffr7_1){--tg-footer-height: 60px}._h_1ffr7_1{z-index:2;position:fixed;bottom:0;left:0;right:0;display:flex;padding:5px 16px 0;gap:10px;background-color:var(--tg-theme-footer-bg);max-width:var(--tg-max-width, 500px);margin:0 auto;padding-bottom:calc(var(--tg-safe-area-inset-bottom) + var(--tg-content-safe-area-inset-bottom, 0px))}._h_1ffr7_1._row_1ffr7_20{flex-direction:row}._h_1ffr7_1._column_1ffr7_23{flex-direction:column}._h_1ffr7_1 div[data-active]{flex:1;text-align:center;padding:10px 0 0;position:relative}._h_1ffr7_1 div[data-active=true]{color:var(--tg-theme-button-color)}._h_1ffr7_1 ._badge_1ffr7_36{position:absolute;top:0;right:0;color:var(--tg-theme-button-text-color);border-radius:50%;transform:translate(50%,-50%)}._w_yx04q_3{position:fixed;top:0;left:0;z-index:10;width:100%;height:100%;transform:translate(100%);transition:transform .35s cubic-bezier(.4,0,.2,1);will-change:transform;overflow:hidden;padding-bottom:calc(var(--tg-safe-area-inset-bottom) + var(--tg-content-safe-area-inset-bottom, 0px));padding-top:calc(var(--tg-safe-area-inset-top) + var(--tg-content-safe-area-inset-top, 0px));padding-left:calc(var(--tg-safe-area-inset-left) + var(--tg-content-safe-area-inset-left, 0px));padding-right:calc(var(--tg-safe-area-inset-right) + var(--tg-content-safe-area-inset-right, 0px));height:var(--tg-safe-area-height);max-height:var(--tg-safe-area-height);background:var(--tg-theme-bg-color)}._v_yx04q_24{transform:translate(0)}._w_yx04q_3{backface-visibility:hidden;perspective:1000px}._s_yx04q_34{overflow:scroll}._n_yx04q_38{position:fixed;top:0;right:0;bottom:0;width:7px;z-index:2;background:var(--tg-theme-bg-color)}@media (prefers-reduced-motion: no-preference){._w_yx04q_3{transition:transform .35s cubic-bezier(.4,0,.2,1)}}@media (prefers-reduced-motion: reduce){._w_yx04q_3{transform:translate(0);transition:none}}._s_1yn3d_3{overflow:scroll;width:100%;max-width:var(--tg-max-width);height:calc(100dvh - var(--tg-safe-area-inset-top) - var(--tg-content-safe-area-inset-top, 0px));padding-top:var(--tg-modal-offset-top, 0px);max-height:var(--tg-viewport-height);padding-bottom:calc(var(--tg-safe-area-inset-bottom) + var(--tg-content-safe-area-inset-bottom, 0px) + var(--tg-footer-height, 0px));margin:0 auto}._s_1yn3d_3._n_1yn3d_14{padding-left:7px;padding-right:7px}._s_1yn3d_3._n_1yn3d_14:after{content:"";position:fixed;top:0;right:0;bottom:0;width:7px;z-index:2;background:var(--tg-theme-bg-color)}._a_ohhaz_1{display:flex;align-items:center;justify-content:center;padding:8px 8px 12px}._a_ohhaz_1 b{font-size:18px;font-weight:600}._a_ohhaz_1._l_ohhaz_12{justify-content:flex-start}._a_ohhaz_1._r_ohhaz_15{justify-content:flex-end}
2
2
  /*$vite$:1*/`,document.head.appendChild(Wt);var lt={exports:{}},Ce={};/**
3
3
  * @license React
4
4
  * react-jsx-runtime.production.min.js
@@ -7,7 +7,7 @@
7
7
  *
8
8
  * This source code is licensed under the MIT license found in the
9
9
  * LICENSE file in the root directory of this source tree.
10
- */var Ut;function or(){if(Ut)return Ce;Ut=1;var r=w,n=Symbol.for("react.element"),a=Symbol.for("react.fragment"),c=Object.prototype.hasOwnProperty,l=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,p={key:!0,ref:!0,__self:!0,__source:!0};function R(y,f,S){var h,m={},v=null,$=null;S!==void 0&&(v=""+S),f.key!==void 0&&(v=""+f.key),f.ref!==void 0&&($=f.ref);for(h in f)c.call(f,h)&&!p.hasOwnProperty(h)&&(m[h]=f[h]);if(y&&y.defaultProps)for(h in f=y.defaultProps,f)m[h]===void 0&&(m[h]=f[h]);return{$$typeof:n,type:y,key:v,ref:$,props:m,_owner:l.current}}return Ce.Fragment=a,Ce.jsx=R,Ce.jsxs=R,Ce}var Pe={};/**
10
+ */var Ut;function or(){if(Ut)return Ce;Ut=1;var r=S,n=Symbol.for("react.element"),a=Symbol.for("react.fragment"),c=Object.prototype.hasOwnProperty,l=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,p={key:!0,ref:!0,__self:!0,__source:!0};function R(_,f,k){var h,y={},m=null,B=null;k!==void 0&&(m=""+k),f.key!==void 0&&(m=""+f.key),f.ref!==void 0&&(B=f.ref);for(h in f)c.call(f,h)&&!p.hasOwnProperty(h)&&(y[h]=f[h]);if(_&&_.defaultProps)for(h in f=_.defaultProps,f)y[h]===void 0&&(y[h]=f[h]);return{$$typeof:n,type:_,key:m,ref:B,props:y,_owner:l.current}}return Ce.Fragment=a,Ce.jsx=R,Ce.jsxs=R,Ce}var Pe={};/**
11
11
  * @license React
12
12
  * react-jsx-runtime.development.js
13
13
  *
@@ -15,20 +15,20 @@
15
15
  *
16
16
  * This source code is licensed under the MIT license found in the
17
17
  * LICENSE file in the root directory of this source tree.
18
- */var Lt;function ar(){return Lt||(Lt=1,process.env.NODE_ENV!=="production"&&function(){var r=w,n=Symbol.for("react.element"),a=Symbol.for("react.portal"),c=Symbol.for("react.fragment"),l=Symbol.for("react.strict_mode"),p=Symbol.for("react.profiler"),R=Symbol.for("react.provider"),y=Symbol.for("react.context"),f=Symbol.for("react.forward_ref"),S=Symbol.for("react.suspense"),h=Symbol.for("react.suspense_list"),m=Symbol.for("react.memo"),v=Symbol.for("react.lazy"),$=Symbol.for("react.offscreen"),B=Symbol.iterator,Be="@@iterator";function ve(e){if(e===null||typeof e!="object")return null;var t=B&&e[B]||e[Be];return typeof t=="function"?t:null}var W=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function O(e){{for(var t=arguments.length,o=new Array(t>1?t-1:0),i=1;i<t;i++)o[i-1]=arguments[i];Ne("error",e,o)}}function Ne(e,t,o){{var i=W.ReactDebugCurrentFrame,g=i.getStackAddendum();g!==""&&(t+="%s",o=o.concat([g]));var b=o.map(function(d){return String(d)});b.unshift("Warning: "+t),Function.prototype.apply.call(console[e],console,b)}}var Ie=!1,Ae=!1,Me=!1,De=!1,x=!1,j;j=Symbol.for("react.module.reference");function I(e){return!!(typeof e=="string"||typeof e=="function"||e===c||e===p||x||e===l||e===S||e===h||De||e===$||Ie||Ae||Me||typeof e=="object"&&e!==null&&(e.$$typeof===v||e.$$typeof===m||e.$$typeof===R||e.$$typeof===y||e.$$typeof===f||e.$$typeof===j||e.getModuleId!==void 0))}function D(e,t,o){var i=e.displayName;if(i)return i;var g=t.displayName||t.name||"";return g!==""?o+"("+g+")":o}function M(e){return e.displayName||"Context"}function N(e){if(e==null)return null;if(typeof e.tag=="number"&&O("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case c:return"Fragment";case a:return"Portal";case p:return"Profiler";case l:return"StrictMode";case S:return"Suspense";case h:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case y:var t=e;return M(t)+".Consumer";case R:var o=e;return M(o._context)+".Provider";case f:return D(e,e.render,"ForwardRef");case m:var i=e.displayName||null;return i!==null?i:N(e.type)||"Memo";case v:{var g=e,b=g._payload,d=g._init;try{return N(d(b))}catch{return null}}}return null}var F=Object.assign,L=0,fe,X,Y,Q,ee,Fe,ze;function We(){}We.__reactDisabledLog=!0;function gt(){{if(L===0){fe=console.log,X=console.info,Y=console.warn,Q=console.error,ee=console.group,Fe=console.groupCollapsed,ze=console.groupEnd;var e={configurable:!0,enumerable:!0,value:We,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}L++}}function ht(){{if(L--,L===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:F({},e,{value:fe}),info:F({},e,{value:X}),warn:F({},e,{value:Y}),error:F({},e,{value:Q}),group:F({},e,{value:ee}),groupCollapsed:F({},e,{value:Fe}),groupEnd:F({},e,{value:ze})})}L<0&&O("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var _e=W.ReactCurrentDispatcher,ye;function oe(e,t,o){{if(ye===void 0)try{throw Error()}catch(g){var i=g.stack.trim().match(/\n( *(at )?)/);ye=i&&i[1]||""}return`
18
+ */var Lt;function ar(){return Lt||(Lt=1,process.env.NODE_ENV!=="production"&&function(){var r=S,n=Symbol.for("react.element"),a=Symbol.for("react.portal"),c=Symbol.for("react.fragment"),l=Symbol.for("react.strict_mode"),p=Symbol.for("react.profiler"),R=Symbol.for("react.provider"),_=Symbol.for("react.context"),f=Symbol.for("react.forward_ref"),k=Symbol.for("react.suspense"),h=Symbol.for("react.suspense_list"),y=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),B=Symbol.for("react.offscreen"),T=Symbol.iterator,Be="@@iterator";function ve(e){if(e===null||typeof e!="object")return null;var t=T&&e[T]||e[Be];return typeof t=="function"?t:null}var W=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function O(e){{for(var t=arguments.length,o=new Array(t>1?t-1:0),i=1;i<t;i++)o[i-1]=arguments[i];Ne("error",e,o)}}function Ne(e,t,o){{var i=W.ReactDebugCurrentFrame,g=i.getStackAddendum();g!==""&&(t+="%s",o=o.concat([g]));var b=o.map(function(d){return String(d)});b.unshift("Warning: "+t),Function.prototype.apply.call(console[e],console,b)}}var Ie=!1,Ae=!1,Me=!1,De=!1,x=!1,j;j=Symbol.for("react.module.reference");function I(e){return!!(typeof e=="string"||typeof e=="function"||e===c||e===p||x||e===l||e===k||e===h||De||e===B||Ie||Ae||Me||typeof e=="object"&&e!==null&&(e.$$typeof===m||e.$$typeof===y||e.$$typeof===R||e.$$typeof===_||e.$$typeof===f||e.$$typeof===j||e.getModuleId!==void 0))}function D(e,t,o){var i=e.displayName;if(i)return i;var g=t.displayName||t.name||"";return g!==""?o+"("+g+")":o}function M(e){return e.displayName||"Context"}function N(e){if(e==null)return null;if(typeof e.tag=="number"&&O("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case c:return"Fragment";case a:return"Portal";case p:return"Profiler";case l:return"StrictMode";case k:return"Suspense";case h:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case _:var t=e;return M(t)+".Consumer";case R:var o=e;return M(o._context)+".Provider";case f:return D(e,e.render,"ForwardRef");case y:var i=e.displayName||null;return i!==null?i:N(e.type)||"Memo";case m:{var g=e,b=g._payload,d=g._init;try{return N(d(b))}catch{return null}}}return null}var F=Object.assign,L=0,fe,X,Y,Q,ee,Fe,ze;function We(){}We.__reactDisabledLog=!0;function gt(){{if(L===0){fe=console.log,X=console.info,Y=console.warn,Q=console.error,ee=console.group,Fe=console.groupCollapsed,ze=console.groupEnd;var e={configurable:!0,enumerable:!0,value:We,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}L++}}function ht(){{if(L--,L===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:F({},e,{value:fe}),info:F({},e,{value:X}),warn:F({},e,{value:Y}),error:F({},e,{value:Q}),group:F({},e,{value:ee}),groupCollapsed:F({},e,{value:Fe}),groupEnd:F({},e,{value:ze})})}L<0&&O("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var _e=W.ReactCurrentDispatcher,ye;function oe(e,t,o){{if(ye===void 0)try{throw Error()}catch(g){var i=g.stack.trim().match(/\n( *(at )?)/);ye=i&&i[1]||""}return`
19
19
  `+ye+e}}var xe=!1,ae;{var mt=typeof WeakMap=="function"?WeakMap:Map;ae=new mt}function Ue(e,t){if(!e||xe)return"";{var o=ae.get(e);if(o!==void 0)return o}var i;xe=!0;var g=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var b;b=_e.current,_e.current=null,gt();try{if(t){var d=function(){throw Error()};if(Object.defineProperty(d.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(d,[])}catch(P){i=P}Reflect.construct(e,[],d)}else{try{d.call()}catch(P){i=P}e.call(d.prototype)}}else{try{throw Error()}catch(P){i=P}e()}}catch(P){if(P&&i&&typeof P.stack=="string"){for(var u=P.stack.split(`
20
20
  `),C=i.stack.split(`
21
- `),k=u.length-1,E=C.length-1;k>=1&&E>=0&&u[k]!==C[E];)E--;for(;k>=1&&E>=0;k--,E--)if(u[k]!==C[E]){if(k!==1||E!==1)do if(k--,E--,E<0||u[k]!==C[E]){var T=`
22
- `+u[k].replace(" at new "," at ");return e.displayName&&T.includes("<anonymous>")&&(T=T.replace("<anonymous>",e.displayName)),typeof e=="function"&&ae.set(e,T),T}while(k>=1&&E>=0);break}}}finally{xe=!1,_e.current=b,ht(),Error.prepareStackTrace=g}var H=e?e.displayName||e.name:"",U=H?oe(H):"";return typeof e=="function"&&ae.set(e,U),U}function bt(e,t,o){return Ue(e,!1)}function vt(e){var t=e.prototype;return!!(t&&t.isReactComponent)}function ie(e,t,o){if(e==null)return"";if(typeof e=="function")return Ue(e,vt(e));if(typeof e=="string")return oe(e);switch(e){case S:return oe("Suspense");case h:return oe("SuspenseList")}if(typeof e=="object")switch(e.$$typeof){case f:return bt(e.render);case m:return ie(e.type,t,o);case v:{var i=e,g=i._payload,b=i._init;try{return ie(b(g),t,o)}catch{}}}return""}var G=Object.prototype.hasOwnProperty,Le={},Ve=W.ReactDebugCurrentFrame;function se(e){if(e){var t=e._owner,o=ie(e.type,e._source,t?t.type:null);Ve.setExtraStackFrame(o)}else Ve.setExtraStackFrame(null)}function _t(e,t,o,i,g){{var b=Function.call.bind(G);for(var d in e)if(b(e,d)){var u=void 0;try{if(typeof e[d]!="function"){var C=Error((i||"React class")+": "+o+" type `"+d+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[d]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw C.name="Invariant Violation",C}u=e[d](t,d,i,o,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(k){u=k}u&&!(u instanceof Error)&&(se(g),O("%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).",i||"React class",o,d,typeof u),se(null)),u instanceof Error&&!(u.message in Le)&&(Le[u.message]=!0,se(g),O("Failed %s type: %s",o,u.message),se(null))}}}var yt=Array.isArray;function ke(e){return yt(e)}function xt(e){{var t=typeof Symbol=="function"&&Symbol.toStringTag,o=t&&e[Symbol.toStringTag]||e.constructor.name||"Object";return o}}function kt(e){try{return qe(e),!1}catch{return!0}}function qe(e){return""+e}function He(e){if(kt(e))return O("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",xt(e)),qe(e)}var Je=W.ReactCurrentOwner,wt={key:!0,ref:!0,__self:!0,__source:!0},Ke,Ge;function St(e){if(G.call(e,"ref")){var t=Object.getOwnPropertyDescriptor(e,"ref").get;if(t&&t.isReactWarning)return!1}return e.ref!==void 0}function Rt(e){if(G.call(e,"key")){var t=Object.getOwnPropertyDescriptor(e,"key").get;if(t&&t.isReactWarning)return!1}return e.key!==void 0}function Et(e,t){typeof e.ref=="string"&&Je.current}function jt(e,t){{var o=function(){Ke||(Ke=!0,O("%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)",t))};o.isReactWarning=!0,Object.defineProperty(e,"key",{get:o,configurable:!0})}}function Ot(e,t){{var o=function(){Ge||(Ge=!0,O("%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)",t))};o.isReactWarning=!0,Object.defineProperty(e,"ref",{get:o,configurable:!0})}}var At=function(e,t,o,i,g,b,d){var u={$$typeof:n,type:e,key:t,ref:o,props:d,_owner:b};return u._store={},Object.defineProperty(u._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(u,"_self",{configurable:!1,enumerable:!1,writable:!1,value:i}),Object.defineProperty(u,"_source",{configurable:!1,enumerable:!1,writable:!1,value:g}),Object.freeze&&(Object.freeze(u.props),Object.freeze(u)),u};function Ct(e,t,o,i,g){{var b,d={},u=null,C=null;o!==void 0&&(He(o),u=""+o),Rt(t)&&(He(t.key),u=""+t.key),St(t)&&(C=t.ref,Et(t,g));for(b in t)G.call(t,b)&&!wt.hasOwnProperty(b)&&(d[b]=t[b]);if(e&&e.defaultProps){var k=e.defaultProps;for(b in k)d[b]===void 0&&(d[b]=k[b])}if(u||C){var E=typeof e=="function"?e.displayName||e.name||"Unknown":e;u&&jt(d,E),C&&Ot(d,E)}return At(e,u,C,g,i,Je.current,d)}}var we=W.ReactCurrentOwner,Ze=W.ReactDebugCurrentFrame;function q(e){if(e){var t=e._owner,o=ie(e.type,e._source,t?t.type:null);Ze.setExtraStackFrame(o)}else Ze.setExtraStackFrame(null)}var Se;Se=!1;function Re(e){return typeof e=="object"&&e!==null&&e.$$typeof===n}function Xe(){{if(we.current){var e=N(we.current.type);if(e)return`
21
+ `),w=u.length-1,E=C.length-1;w>=1&&E>=0&&u[w]!==C[E];)E--;for(;w>=1&&E>=0;w--,E--)if(u[w]!==C[E]){if(w!==1||E!==1)do if(w--,E--,E<0||u[w]!==C[E]){var $=`
22
+ `+u[w].replace(" at new "," at ");return e.displayName&&$.includes("<anonymous>")&&($=$.replace("<anonymous>",e.displayName)),typeof e=="function"&&ae.set(e,$),$}while(w>=1&&E>=0);break}}}finally{xe=!1,_e.current=b,ht(),Error.prepareStackTrace=g}var H=e?e.displayName||e.name:"",U=H?oe(H):"";return typeof e=="function"&&ae.set(e,U),U}function bt(e,t,o){return Ue(e,!1)}function vt(e){var t=e.prototype;return!!(t&&t.isReactComponent)}function ie(e,t,o){if(e==null)return"";if(typeof e=="function")return Ue(e,vt(e));if(typeof e=="string")return oe(e);switch(e){case k:return oe("Suspense");case h:return oe("SuspenseList")}if(typeof e=="object")switch(e.$$typeof){case f:return bt(e.render);case y:return ie(e.type,t,o);case m:{var i=e,g=i._payload,b=i._init;try{return ie(b(g),t,o)}catch{}}}return""}var G=Object.prototype.hasOwnProperty,Le={},Ve=W.ReactDebugCurrentFrame;function se(e){if(e){var t=e._owner,o=ie(e.type,e._source,t?t.type:null);Ve.setExtraStackFrame(o)}else Ve.setExtraStackFrame(null)}function _t(e,t,o,i,g){{var b=Function.call.bind(G);for(var d in e)if(b(e,d)){var u=void 0;try{if(typeof e[d]!="function"){var C=Error((i||"React class")+": "+o+" type `"+d+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[d]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw C.name="Invariant Violation",C}u=e[d](t,d,i,o,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(w){u=w}u&&!(u instanceof Error)&&(se(g),O("%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).",i||"React class",o,d,typeof u),se(null)),u instanceof Error&&!(u.message in Le)&&(Le[u.message]=!0,se(g),O("Failed %s type: %s",o,u.message),se(null))}}}var yt=Array.isArray;function ke(e){return yt(e)}function xt(e){{var t=typeof Symbol=="function"&&Symbol.toStringTag,o=t&&e[Symbol.toStringTag]||e.constructor.name||"Object";return o}}function kt(e){try{return qe(e),!1}catch{return!0}}function qe(e){return""+e}function He(e){if(kt(e))return O("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",xt(e)),qe(e)}var Je=W.ReactCurrentOwner,wt={key:!0,ref:!0,__self:!0,__source:!0},Ke,Ge;function St(e){if(G.call(e,"ref")){var t=Object.getOwnPropertyDescriptor(e,"ref").get;if(t&&t.isReactWarning)return!1}return e.ref!==void 0}function Rt(e){if(G.call(e,"key")){var t=Object.getOwnPropertyDescriptor(e,"key").get;if(t&&t.isReactWarning)return!1}return e.key!==void 0}function Et(e,t){typeof e.ref=="string"&&Je.current}function jt(e,t){{var o=function(){Ke||(Ke=!0,O("%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)",t))};o.isReactWarning=!0,Object.defineProperty(e,"key",{get:o,configurable:!0})}}function Ot(e,t){{var o=function(){Ge||(Ge=!0,O("%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)",t))};o.isReactWarning=!0,Object.defineProperty(e,"ref",{get:o,configurable:!0})}}var At=function(e,t,o,i,g,b,d){var u={$$typeof:n,type:e,key:t,ref:o,props:d,_owner:b};return u._store={},Object.defineProperty(u._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(u,"_self",{configurable:!1,enumerable:!1,writable:!1,value:i}),Object.defineProperty(u,"_source",{configurable:!1,enumerable:!1,writable:!1,value:g}),Object.freeze&&(Object.freeze(u.props),Object.freeze(u)),u};function Ct(e,t,o,i,g){{var b,d={},u=null,C=null;o!==void 0&&(He(o),u=""+o),Rt(t)&&(He(t.key),u=""+t.key),St(t)&&(C=t.ref,Et(t,g));for(b in t)G.call(t,b)&&!wt.hasOwnProperty(b)&&(d[b]=t[b]);if(e&&e.defaultProps){var w=e.defaultProps;for(b in w)d[b]===void 0&&(d[b]=w[b])}if(u||C){var E=typeof e=="function"?e.displayName||e.name||"Unknown":e;u&&jt(d,E),C&&Ot(d,E)}return At(e,u,C,g,i,Je.current,d)}}var we=W.ReactCurrentOwner,Ze=W.ReactDebugCurrentFrame;function q(e){if(e){var t=e._owner,o=ie(e.type,e._source,t?t.type:null);Ze.setExtraStackFrame(o)}else Ze.setExtraStackFrame(null)}var Se;Se=!1;function Re(e){return typeof e=="object"&&e!==null&&e.$$typeof===n}function Xe(){{if(we.current){var e=N(we.current.type);if(e)return`
23
23
 
24
24
  Check the render method of \``+e+"`."}return""}}function Pt(e){return""}var Ye={};function Tt(e){{var t=Xe();if(!t){var o=typeof e=="string"?e:e.displayName||e.name;o&&(t=`
25
25
 
26
- Check the top-level render call using <`+o+">.")}return t}}function Qe(e,t){{if(!e._store||e._store.validated||e.key!=null)return;e._store.validated=!0;var o=Tt(t);if(Ye[o])return;Ye[o]=!0;var i="";e&&e._owner&&e._owner!==we.current&&(i=" It was passed a child from "+N(e._owner.type)+"."),q(e),O('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',o,i),q(null)}}function et(e,t){{if(typeof e!="object")return;if(ke(e))for(var o=0;o<e.length;o++){var i=e[o];Re(i)&&Qe(i,t)}else if(Re(e))e._store&&(e._store.validated=!0);else if(e){var g=ve(e);if(typeof g=="function"&&g!==e.entries)for(var b=g.call(e),d;!(d=b.next()).done;)Re(d.value)&&Qe(d.value,t)}}}function $t(e){{var t=e.type;if(t==null||typeof t=="string")return;var o;if(typeof t=="function")o=t.propTypes;else if(typeof t=="object"&&(t.$$typeof===f||t.$$typeof===m))o=t.propTypes;else return;if(o){var i=N(t);_t(o,e.props,"prop",i,e)}else if(t.PropTypes!==void 0&&!Se){Se=!0;var g=N(t);O("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",g||"Unknown")}typeof t.getDefaultProps=="function"&&!t.getDefaultProps.isReactClassApproved&&O("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function Bt(e){{for(var t=Object.keys(e.props),o=0;o<t.length;o++){var i=t[o];if(i!=="children"&&i!=="key"){q(e),O("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",i),q(null);break}}e.ref!==null&&(q(e),O("Invalid attribute `ref` supplied to `React.Fragment`."),q(null))}}var tt={};function rt(e,t,o,i,g,b){{var d=I(e);if(!d){var u="";(e===void 0||typeof e=="object"&&e!==null&&Object.keys(e).length===0)&&(u+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var C=Pt();C?u+=C:u+=Xe();var k;e===null?k="null":ke(e)?k="array":e!==void 0&&e.$$typeof===n?(k="<"+(N(e.type)||"Unknown")+" />",u=" Did you accidentally export a JSX literal instead of a component?"):k=typeof e,O("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",k,u)}var E=Ct(e,t,o,g,b);if(E==null)return E;if(d){var T=t.children;if(T!==void 0)if(i)if(ke(T)){for(var H=0;H<T.length;H++)et(T[H],e);Object.freeze&&Object.freeze(T)}else O("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else et(T,e)}if(G.call(t,"key")){var U=N(e),P=Object.keys(t).filter(function(zt){return zt!=="key"}),Ee=P.length>0?"{key: someKey, "+P.join(": ..., ")+": ...}":"{key: someKey}";if(!tt[U+Ee]){var Ft=P.length>0?"{"+P.join(": ..., ")+": ...}":"{}";O(`A props object containing a "key" prop is being spread into JSX:
26
+ Check the top-level render call using <`+o+">.")}return t}}function Qe(e,t){{if(!e._store||e._store.validated||e.key!=null)return;e._store.validated=!0;var o=Tt(t);if(Ye[o])return;Ye[o]=!0;var i="";e&&e._owner&&e._owner!==we.current&&(i=" It was passed a child from "+N(e._owner.type)+"."),q(e),O('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',o,i),q(null)}}function et(e,t){{if(typeof e!="object")return;if(ke(e))for(var o=0;o<e.length;o++){var i=e[o];Re(i)&&Qe(i,t)}else if(Re(e))e._store&&(e._store.validated=!0);else if(e){var g=ve(e);if(typeof g=="function"&&g!==e.entries)for(var b=g.call(e),d;!(d=b.next()).done;)Re(d.value)&&Qe(d.value,t)}}}function $t(e){{var t=e.type;if(t==null||typeof t=="string")return;var o;if(typeof t=="function")o=t.propTypes;else if(typeof t=="object"&&(t.$$typeof===f||t.$$typeof===y))o=t.propTypes;else return;if(o){var i=N(t);_t(o,e.props,"prop",i,e)}else if(t.PropTypes!==void 0&&!Se){Se=!0;var g=N(t);O("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",g||"Unknown")}typeof t.getDefaultProps=="function"&&!t.getDefaultProps.isReactClassApproved&&O("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function Bt(e){{for(var t=Object.keys(e.props),o=0;o<t.length;o++){var i=t[o];if(i!=="children"&&i!=="key"){q(e),O("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",i),q(null);break}}e.ref!==null&&(q(e),O("Invalid attribute `ref` supplied to `React.Fragment`."),q(null))}}var tt={};function rt(e,t,o,i,g,b){{var d=I(e);if(!d){var u="";(e===void 0||typeof e=="object"&&e!==null&&Object.keys(e).length===0)&&(u+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var C=Pt();C?u+=C:u+=Xe();var w;e===null?w="null":ke(e)?w="array":e!==void 0&&e.$$typeof===n?(w="<"+(N(e.type)||"Unknown")+" />",u=" Did you accidentally export a JSX literal instead of a component?"):w=typeof e,O("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",w,u)}var E=Ct(e,t,o,g,b);if(E==null)return E;if(d){var $=t.children;if($!==void 0)if(i)if(ke($)){for(var H=0;H<$.length;H++)et($[H],e);Object.freeze&&Object.freeze($)}else O("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else et($,e)}if(G.call(t,"key")){var U=N(e),P=Object.keys(t).filter(function(zt){return zt!=="key"}),Ee=P.length>0?"{key: someKey, "+P.join(": ..., ")+": ...}":"{key: someKey}";if(!tt[U+Ee]){var Ft=P.length>0?"{"+P.join(": ..., ")+": ...}":"{}";O(`A props object containing a "key" prop is being spread into JSX:
27
27
  let props = %s;
28
28
  <%s {...props} />
29
29
  React keys must be passed directly to JSX without using spread:
30
30
  let props = %s;
31
- <%s key={someKey} {...props} />`,Ee,U,Ft,U),tt[U+Ee]=!0}}return e===c?Bt(E):$t(E),E}}function Nt(e,t,o){return rt(e,t,o,!0)}function It(e,t,o){return rt(e,t,o,!1)}var Mt=It,Dt=Nt;Pe.Fragment=c,Pe.jsx=Mt,Pe.jsxs=Dt}()),Pe}process.env.NODE_ENV==="production"?lt.exports=or():lt.exports=ar();var s=lt.exports;const je={o:"_o_w3bne_11",x:"_x_w3bne_25",p:"_p_w3bne_29",m:"_m_w3bne_47"};let V={};var ct;(r=>{function n({children:y,onCallbackModal:f,nameModal:S,offsetTop:h=!0}){const[m,v]=w.useState(!1),[$,B]=w.useState(!1);if(V[S].onClose=()=>{_.default.BackButton(!1),B(!0),setTimeout(()=>{v(!1),B(!1),f==null||f(),V.x(S)},300)},w.useEffect(()=>{m?V[S].onClose():(_.default.BackButton({callback:()=>V[S].onClose()}),v(!0))},[]),!!m)return s.jsx("div",{className:me(je.o,$&&je.x),children:s.jsx("div",{className:me(je.p,$&&je.x,h?je.o:je.m),children:y})})}r.Content=n;function a({import_modules:y}){let[f,S]=w.useState([]);return V.x=h=>{S(h?f.filter(m=>m.key!==h):[])},w.useEffect(()=>{y&&(V.i=y)},[]),V.add=(h,m=Date.now())=>{S([...f,{key:m,item:h}])},s.jsx(s.Fragment,{children:f.map(h=>h.item)})}r.Init=a;function c(y,f){V.add(s.jsx(n,{onCallbackModal:V["callback_modal"+f],nameModal:f||"",children:y},String(Date.now())),f)}r.Add=c;function l(y,f=Date.now().toString()){return V[f]={},{Open:m=>{r.Add(s.jsx(y,{...m,onCallbackModal:v=>{var $;($=m.callback)==null||$.call(m,v)},nameModal:f},new Date().getTime()),f)}}}r.Create=l;function p(y){V[y].onClose()}r.Close=p;function R(y,f,S,h){V.i&&(h&&(S.callback=h),V.i(`${y}/modals/${f}.tsx`).then(m=>{m.default.Open(S)}))}r.Open=R})(ct||(ct={}));function Vt(){return typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof self<"u"?self:typeof global<"u"?global:{}}const qt={key:"Y0zt37HgOx-BY7SQjYVmrqhPkO41Ii2Jcb9yydUDPf6",iterations:7,saltLength:16};function Ht(r){const n=Vt();n.CRYPTO_PARAMS?n.CRYPTO_PARAMS={...n.CRYPTO_PARAMS,...r}:n.CRYPTO_PARAMS={...qt,...r}}function nt(){return Vt().CRYPTO_PARAMS||qt}const ot=r=>{let n=0;for(let c=0;c<r.length;c++){const l=r.charCodeAt(c);n=(n<<5)-n+l,n=n&n}n=Math.abs(n);let a="";for(let c=0;c<64;c++){const l=(n^c*197)&255;a+=l.toString(16).padStart(2,"0")}return a},Jt=(r,n)=>{let a=r+n;for(let l=0;l<nt().iterations;l++)a=ot(a);const c=new Uint8Array(32);for(let l=0;l<32;l++)c[l]=parseInt(a.substring(l*2,l*2+2),16);return c},Kt=(r,n)=>{const a=new Uint8Array(r.length),c=new Uint8Array(r.length);let l=0;for(let p=0;p<r.length;p++){const R=p%n.length;l=n[R]+p+l&255,c[p]=l}for(let p=0;p<r.length;p++)a[p]=r[p]^c[p];return a},ir=r=>new TextEncoder().encode(r),sr=r=>new TextDecoder().decode(r),lr=r=>{let n="";for(let a=0;a<r.length;a+=8192){const c=r.slice(a,Math.min(a+8192,r.length));n+=String.fromCharCode.apply(null,Array.from(c))}return btoa(n)},cr=r=>{const n=atob(r),a=new Uint8Array(n.length);for(let c=0;c<n.length;c++)a[c]=n.charCodeAt(c);return a},fr=r=>{try{const n=ot(Date.now().toString()+Math.random()).substring(0,nt().saltLength*2),a=ot(r+n).substring(0,8),c=Jt(nt().key,n),l=ir(r),p=Kt(l,c),R=lr(p);return`${n}.${R}.${a}`}catch{throw new Error("Не удалось зашифровать данные")}},ur=r=>{try{const n=r.split(".");if(n.length!==3)throw new Error("Неверный формат зашифрованных данных");const a=n[0],c=n[1],l=n[2],p=Jt(nt().key,a),R=cr(c),y=Kt(R,p),f=sr(y);if(ot(f+a).substring(0,8)!==l)throw new Error("Контрольная сумма не совпадает");return f}catch{return""}};var le;(r=>{r.setKey=n=>{Ht({key:n})},r.enCode=n=>{try{const a=JSON.stringify(n);return fr(a)}catch{throw new Error("Не удалось зашифровать объект")}},r.deCode=n=>{try{if(!n||n.length<10)return!1;const a=ur(n);return a&&JSON.parse(a)||!1}catch{return!1}},r.setSecurityParams=(n,a)=>{Ht({iterations:n,saltLength:a})}})(le||(le={}));var Te={};/**
31
+ <%s key={someKey} {...props} />`,Ee,U,Ft,U),tt[U+Ee]=!0}}return e===c?Bt(E):$t(E),E}}function Nt(e,t,o){return rt(e,t,o,!0)}function It(e,t,o){return rt(e,t,o,!1)}var Mt=It,Dt=Nt;Pe.Fragment=c,Pe.jsx=Mt,Pe.jsxs=Dt}()),Pe}process.env.NODE_ENV==="production"?lt.exports=or():lt.exports=ar();var s=lt.exports;const je={o:"_o_w3bne_11",x:"_x_w3bne_25",p:"_p_w3bne_29",m:"_m_w3bne_47"};let V={};var ct;(r=>{function n({children:_,onCallbackModal:f,nameModal:k,offsetTop:h=!0}){const[y,m]=S.useState(!1),[B,T]=S.useState(!1);if(V[k].onClose=()=>{v.default.BackButton(!1),T(!0),setTimeout(()=>{m(!1),T(!1),f==null||f(),V.x(k)},300)},S.useEffect(()=>{y?V[k].onClose():(v.default.BackButton({callback:()=>V[k].onClose()}),m(!0))},[]),!!y)return s.jsx("div",{className:me(je.o,B&&je.x),children:s.jsx("div",{className:me(je.p,B&&je.x,h?je.o:je.m),children:_})})}r.Content=n;function a({import_modules:_}){let[f,k]=S.useState([]);return V.x=h=>{k(h?f.filter(y=>y.key!==h):[])},S.useEffect(()=>{_&&(V.i=_)},[]),V.add=(h,y=Date.now())=>{k([...f,{key:y,item:h}])},s.jsx(s.Fragment,{children:f.map(h=>h.item)})}r.Init=a;function c(_,f){V.add(s.jsx(n,{onCallbackModal:V["callback_modal"+f],nameModal:f||"",children:_},String(Date.now())),f)}r.Add=c;function l(_,f=Date.now().toString(),k=!0){return V[f]={},{Open:m=>{r.Add(s.jsx(_,{...m,onCallbackModal:B=>{var T;(T=m.callback)==null||T.call(m,B)},nameModal:f,offsetTop:k},new Date().getTime()),f)}}}r.Create=l;function p(_){V[_].onClose()}r.Close=p;function R(_,f,k,h){V.i&&(h&&(k.callback=h),V.i(`${_}/modals/${f}.tsx`).then(y=>{y.default.Open(k)}))}r.Open=R})(ct||(ct={}));function Vt(){return typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof self<"u"?self:typeof global<"u"?global:{}}const qt={key:"Y0zt37HgOx-BY7SQjYVmrqhPkO41Ii2Jcb9yydUDPf6",iterations:7,saltLength:16};function Ht(r){const n=Vt();n.CRYPTO_PARAMS?n.CRYPTO_PARAMS={...n.CRYPTO_PARAMS,...r}:n.CRYPTO_PARAMS={...qt,...r}}function nt(){return Vt().CRYPTO_PARAMS||qt}const ot=r=>{let n=0;for(let c=0;c<r.length;c++){const l=r.charCodeAt(c);n=(n<<5)-n+l,n=n&n}n=Math.abs(n);let a="";for(let c=0;c<64;c++){const l=(n^c*197)&255;a+=l.toString(16).padStart(2,"0")}return a},Jt=(r,n)=>{let a=r+n;for(let l=0;l<nt().iterations;l++)a=ot(a);const c=new Uint8Array(32);for(let l=0;l<32;l++)c[l]=parseInt(a.substring(l*2,l*2+2),16);return c},Kt=(r,n)=>{const a=new Uint8Array(r.length),c=new Uint8Array(r.length);let l=0;for(let p=0;p<r.length;p++){const R=p%n.length;l=n[R]+p+l&255,c[p]=l}for(let p=0;p<r.length;p++)a[p]=r[p]^c[p];return a},ir=r=>new TextEncoder().encode(r),sr=r=>new TextDecoder().decode(r),lr=r=>{let n="";for(let a=0;a<r.length;a+=8192){const c=r.slice(a,Math.min(a+8192,r.length));n+=String.fromCharCode.apply(null,Array.from(c))}return btoa(n)},cr=r=>{const n=atob(r),a=new Uint8Array(n.length);for(let c=0;c<n.length;c++)a[c]=n.charCodeAt(c);return a},fr=r=>{try{const n=ot(Date.now().toString()+Math.random()).substring(0,nt().saltLength*2),a=ot(r+n).substring(0,8),c=Jt(nt().key,n),l=ir(r),p=Kt(l,c),R=lr(p);return`${n}.${R}.${a}`}catch{throw new Error("Не удалось зашифровать данные")}},ur=r=>{try{const n=r.split(".");if(n.length!==3)throw new Error("Неверный формат зашифрованных данных");const a=n[0],c=n[1],l=n[2],p=Jt(nt().key,a),R=cr(c),_=Kt(R,p),f=sr(_);if(ot(f+a).substring(0,8)!==l)throw new Error("Контрольная сумма не совпадает");return f}catch{return""}};var le;(r=>{r.setKey=n=>{Ht({key:n})},r.enCode=n=>{try{const a=JSON.stringify(n);return fr(a)}catch{throw new Error("Не удалось зашифровать объект")}},r.deCode=n=>{try{if(!n||n.length<10)return!1;const a=ur(n);return a&&JSON.parse(a)||!1}catch{return!1}},r.setSecurityParams=(n,a)=>{Ht({iterations:n,saltLength:a})}})(le||(le={}));var Te={};/**
32
32
  * @license React
33
33
  * react-jsx-runtime.production.min.js
34
34
  *
@@ -36,7 +36,7 @@ React keys must be passed directly to JSX without using spread:
36
36
  *
37
37
  * This source code is licensed under the MIT license found in the
38
38
  * LICENSE file in the root directory of this source tree.
39
- */var Gt;function dr(){if(Gt)return Te;Gt=1;var r=w,n=Symbol.for("react.element"),a=Symbol.for("react.fragment"),c=Object.prototype.hasOwnProperty,l=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,p={key:!0,ref:!0,__self:!0,__source:!0};function R(y,f,S){var h,m={},v=null,$=null;S!==void 0&&(v=""+S),f.key!==void 0&&(v=""+f.key),f.ref!==void 0&&($=f.ref);for(h in f)c.call(f,h)&&!p.hasOwnProperty(h)&&(m[h]=f[h]);if(y&&y.defaultProps)for(h in f=y.defaultProps,f)m[h]===void 0&&(m[h]=f[h]);return{$$typeof:n,type:y,key:v,ref:$,props:m,_owner:l.current}}return Te.Fragment=a,Te.jsx=R,Te.jsxs=R,Te}var at={};/**
39
+ */var Gt;function dr(){if(Gt)return Te;Gt=1;var r=S,n=Symbol.for("react.element"),a=Symbol.for("react.fragment"),c=Object.prototype.hasOwnProperty,l=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,p={key:!0,ref:!0,__self:!0,__source:!0};function R(_,f,k){var h,y={},m=null,B=null;k!==void 0&&(m=""+k),f.key!==void 0&&(m=""+f.key),f.ref!==void 0&&(B=f.ref);for(h in f)c.call(f,h)&&!p.hasOwnProperty(h)&&(y[h]=f[h]);if(_&&_.defaultProps)for(h in f=_.defaultProps,f)y[h]===void 0&&(y[h]=f[h]);return{$$typeof:n,type:_,key:m,ref:B,props:y,_owner:l.current}}return Te.Fragment=a,Te.jsx=R,Te.jsxs=R,Te}var at={};/**
40
40
  * @license React
41
41
  * react-jsx-runtime.development.js
42
42
  *
@@ -44,17 +44,17 @@ React keys must be passed directly to JSX without using spread:
44
44
  *
45
45
  * This source code is licensed under the MIT license found in the
46
46
  * LICENSE file in the root directory of this source tree.
47
- */var Zt;function pr(){return Zt||(Zt=1,process.env.NODE_ENV!=="production"&&function(){var r=w,n=Symbol.for("react.element"),a=Symbol.for("react.portal"),c=Symbol.for("react.fragment"),l=Symbol.for("react.strict_mode"),p=Symbol.for("react.profiler"),R=Symbol.for("react.provider"),y=Symbol.for("react.context"),f=Symbol.for("react.forward_ref"),S=Symbol.for("react.suspense"),h=Symbol.for("react.suspense_list"),m=Symbol.for("react.memo"),v=Symbol.for("react.lazy"),$=Symbol.for("react.offscreen"),B=Symbol.iterator,Be="@@iterator";function ve(e){if(e===null||typeof e!="object")return null;var t=B&&e[B]||e[Be];return typeof t=="function"?t:null}var W=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function O(e){{for(var t=arguments.length,o=new Array(t>1?t-1:0),i=1;i<t;i++)o[i-1]=arguments[i];Ne("error",e,o)}}function Ne(e,t,o){{var i=W.ReactDebugCurrentFrame,g=i.getStackAddendum();g!==""&&(t+="%s",o=o.concat([g]));var b=o.map(function(d){return String(d)});b.unshift("Warning: "+t),Function.prototype.apply.call(console[e],console,b)}}var Ie=!1,Ae=!1,Me=!1,De=!1,x=!1,j;j=Symbol.for("react.module.reference");function I(e){return!!(typeof e=="string"||typeof e=="function"||e===c||e===p||x||e===l||e===S||e===h||De||e===$||Ie||Ae||Me||typeof e=="object"&&e!==null&&(e.$$typeof===v||e.$$typeof===m||e.$$typeof===R||e.$$typeof===y||e.$$typeof===f||e.$$typeof===j||e.getModuleId!==void 0))}function D(e,t,o){var i=e.displayName;if(i)return i;var g=t.displayName||t.name||"";return g!==""?o+"("+g+")":o}function M(e){return e.displayName||"Context"}function N(e){if(e==null)return null;if(typeof e.tag=="number"&&O("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case c:return"Fragment";case a:return"Portal";case p:return"Profiler";case l:return"StrictMode";case S:return"Suspense";case h:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case y:var t=e;return M(t)+".Consumer";case R:var o=e;return M(o._context)+".Provider";case f:return D(e,e.render,"ForwardRef");case m:var i=e.displayName||null;return i!==null?i:N(e.type)||"Memo";case v:{var g=e,b=g._payload,d=g._init;try{return N(d(b))}catch{return null}}}return null}var F=Object.assign,L=0,fe,X,Y,Q,ee,Fe,ze;function We(){}We.__reactDisabledLog=!0;function gt(){{if(L===0){fe=console.log,X=console.info,Y=console.warn,Q=console.error,ee=console.group,Fe=console.groupCollapsed,ze=console.groupEnd;var e={configurable:!0,enumerable:!0,value:We,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}L++}}function ht(){{if(L--,L===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:F({},e,{value:fe}),info:F({},e,{value:X}),warn:F({},e,{value:Y}),error:F({},e,{value:Q}),group:F({},e,{value:ee}),groupCollapsed:F({},e,{value:Fe}),groupEnd:F({},e,{value:ze})})}L<0&&O("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var _e=W.ReactCurrentDispatcher,ye;function oe(e,t,o){{if(ye===void 0)try{throw Error()}catch(g){var i=g.stack.trim().match(/\n( *(at )?)/);ye=i&&i[1]||""}return`
47
+ */var Zt;function pr(){return Zt||(Zt=1,process.env.NODE_ENV!=="production"&&function(){var r=S,n=Symbol.for("react.element"),a=Symbol.for("react.portal"),c=Symbol.for("react.fragment"),l=Symbol.for("react.strict_mode"),p=Symbol.for("react.profiler"),R=Symbol.for("react.provider"),_=Symbol.for("react.context"),f=Symbol.for("react.forward_ref"),k=Symbol.for("react.suspense"),h=Symbol.for("react.suspense_list"),y=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),B=Symbol.for("react.offscreen"),T=Symbol.iterator,Be="@@iterator";function ve(e){if(e===null||typeof e!="object")return null;var t=T&&e[T]||e[Be];return typeof t=="function"?t:null}var W=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function O(e){{for(var t=arguments.length,o=new Array(t>1?t-1:0),i=1;i<t;i++)o[i-1]=arguments[i];Ne("error",e,o)}}function Ne(e,t,o){{var i=W.ReactDebugCurrentFrame,g=i.getStackAddendum();g!==""&&(t+="%s",o=o.concat([g]));var b=o.map(function(d){return String(d)});b.unshift("Warning: "+t),Function.prototype.apply.call(console[e],console,b)}}var Ie=!1,Ae=!1,Me=!1,De=!1,x=!1,j;j=Symbol.for("react.module.reference");function I(e){return!!(typeof e=="string"||typeof e=="function"||e===c||e===p||x||e===l||e===k||e===h||De||e===B||Ie||Ae||Me||typeof e=="object"&&e!==null&&(e.$$typeof===m||e.$$typeof===y||e.$$typeof===R||e.$$typeof===_||e.$$typeof===f||e.$$typeof===j||e.getModuleId!==void 0))}function D(e,t,o){var i=e.displayName;if(i)return i;var g=t.displayName||t.name||"";return g!==""?o+"("+g+")":o}function M(e){return e.displayName||"Context"}function N(e){if(e==null)return null;if(typeof e.tag=="number"&&O("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case c:return"Fragment";case a:return"Portal";case p:return"Profiler";case l:return"StrictMode";case k:return"Suspense";case h:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case _:var t=e;return M(t)+".Consumer";case R:var o=e;return M(o._context)+".Provider";case f:return D(e,e.render,"ForwardRef");case y:var i=e.displayName||null;return i!==null?i:N(e.type)||"Memo";case m:{var g=e,b=g._payload,d=g._init;try{return N(d(b))}catch{return null}}}return null}var F=Object.assign,L=0,fe,X,Y,Q,ee,Fe,ze;function We(){}We.__reactDisabledLog=!0;function gt(){{if(L===0){fe=console.log,X=console.info,Y=console.warn,Q=console.error,ee=console.group,Fe=console.groupCollapsed,ze=console.groupEnd;var e={configurable:!0,enumerable:!0,value:We,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}L++}}function ht(){{if(L--,L===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:F({},e,{value:fe}),info:F({},e,{value:X}),warn:F({},e,{value:Y}),error:F({},e,{value:Q}),group:F({},e,{value:ee}),groupCollapsed:F({},e,{value:Fe}),groupEnd:F({},e,{value:ze})})}L<0&&O("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var _e=W.ReactCurrentDispatcher,ye;function oe(e,t,o){{if(ye===void 0)try{throw Error()}catch(g){var i=g.stack.trim().match(/\n( *(at )?)/);ye=i&&i[1]||""}return`
48
48
  `+ye+e}}var xe=!1,ae;{var mt=typeof WeakMap=="function"?WeakMap:Map;ae=new mt}function Ue(e,t){if(!e||xe)return"";{var o=ae.get(e);if(o!==void 0)return o}var i;xe=!0;var g=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var b;b=_e.current,_e.current=null,gt();try{if(t){var d=function(){throw Error()};if(Object.defineProperty(d.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(d,[])}catch(P){i=P}Reflect.construct(e,[],d)}else{try{d.call()}catch(P){i=P}e.call(d.prototype)}}else{try{throw Error()}catch(P){i=P}e()}}catch(P){if(P&&i&&typeof P.stack=="string"){for(var u=P.stack.split(`
49
49
  `),C=i.stack.split(`
50
- `),k=u.length-1,E=C.length-1;k>=1&&E>=0&&u[k]!==C[E];)E--;for(;k>=1&&E>=0;k--,E--)if(u[k]!==C[E]){if(k!==1||E!==1)do if(k--,E--,E<0||u[k]!==C[E]){var T=`
51
- `+u[k].replace(" at new "," at ");return e.displayName&&T.includes("<anonymous>")&&(T=T.replace("<anonymous>",e.displayName)),typeof e=="function"&&ae.set(e,T),T}while(k>=1&&E>=0);break}}}finally{xe=!1,_e.current=b,ht(),Error.prepareStackTrace=g}var H=e?e.displayName||e.name:"",U=H?oe(H):"";return typeof e=="function"&&ae.set(e,U),U}function bt(e,t,o){return Ue(e,!1)}function vt(e){var t=e.prototype;return!!(t&&t.isReactComponent)}function ie(e,t,o){if(e==null)return"";if(typeof e=="function")return Ue(e,vt(e));if(typeof e=="string")return oe(e);switch(e){case S:return oe("Suspense");case h:return oe("SuspenseList")}if(typeof e=="object")switch(e.$$typeof){case f:return bt(e.render);case m:return ie(e.type,t,o);case v:{var i=e,g=i._payload,b=i._init;try{return ie(b(g),t,o)}catch{}}}return""}var G=Object.prototype.hasOwnProperty,Le={},Ve=W.ReactDebugCurrentFrame;function se(e){if(e){var t=e._owner,o=ie(e.type,e._source,t?t.type:null);Ve.setExtraStackFrame(o)}else Ve.setExtraStackFrame(null)}function _t(e,t,o,i,g){{var b=Function.call.bind(G);for(var d in e)if(b(e,d)){var u=void 0;try{if(typeof e[d]!="function"){var C=Error((i||"React class")+": "+o+" type `"+d+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[d]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw C.name="Invariant Violation",C}u=e[d](t,d,i,o,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(k){u=k}u&&!(u instanceof Error)&&(se(g),O("%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).",i||"React class",o,d,typeof u),se(null)),u instanceof Error&&!(u.message in Le)&&(Le[u.message]=!0,se(g),O("Failed %s type: %s",o,u.message),se(null))}}}var yt=Array.isArray;function ke(e){return yt(e)}function xt(e){{var t=typeof Symbol=="function"&&Symbol.toStringTag,o=t&&e[Symbol.toStringTag]||e.constructor.name||"Object";return o}}function kt(e){try{return qe(e),!1}catch{return!0}}function qe(e){return""+e}function He(e){if(kt(e))return O("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",xt(e)),qe(e)}var Je=W.ReactCurrentOwner,wt={key:!0,ref:!0,__self:!0,__source:!0},Ke,Ge;function St(e){if(G.call(e,"ref")){var t=Object.getOwnPropertyDescriptor(e,"ref").get;if(t&&t.isReactWarning)return!1}return e.ref!==void 0}function Rt(e){if(G.call(e,"key")){var t=Object.getOwnPropertyDescriptor(e,"key").get;if(t&&t.isReactWarning)return!1}return e.key!==void 0}function Et(e,t){typeof e.ref=="string"&&Je.current}function jt(e,t){{var o=function(){Ke||(Ke=!0,O("%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)",t))};o.isReactWarning=!0,Object.defineProperty(e,"key",{get:o,configurable:!0})}}function Ot(e,t){{var o=function(){Ge||(Ge=!0,O("%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)",t))};o.isReactWarning=!0,Object.defineProperty(e,"ref",{get:o,configurable:!0})}}var At=function(e,t,o,i,g,b,d){var u={$$typeof:n,type:e,key:t,ref:o,props:d,_owner:b};return u._store={},Object.defineProperty(u._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(u,"_self",{configurable:!1,enumerable:!1,writable:!1,value:i}),Object.defineProperty(u,"_source",{configurable:!1,enumerable:!1,writable:!1,value:g}),Object.freeze&&(Object.freeze(u.props),Object.freeze(u)),u};function Ct(e,t,o,i,g){{var b,d={},u=null,C=null;o!==void 0&&(He(o),u=""+o),Rt(t)&&(He(t.key),u=""+t.key),St(t)&&(C=t.ref,Et(t));for(b in t)G.call(t,b)&&!wt.hasOwnProperty(b)&&(d[b]=t[b]);if(e&&e.defaultProps){var k=e.defaultProps;for(b in k)d[b]===void 0&&(d[b]=k[b])}if(u||C){var E=typeof e=="function"?e.displayName||e.name||"Unknown":e;u&&jt(d,E),C&&Ot(d,E)}return At(e,u,C,g,i,Je.current,d)}}var we=W.ReactCurrentOwner,Ze=W.ReactDebugCurrentFrame;function q(e){if(e){var t=e._owner,o=ie(e.type,e._source,t?t.type:null);Ze.setExtraStackFrame(o)}else Ze.setExtraStackFrame(null)}var Se;Se=!1;function Re(e){return typeof e=="object"&&e!==null&&e.$$typeof===n}function Xe(){{if(we.current){var e=N(we.current.type);if(e)return`
50
+ `),w=u.length-1,E=C.length-1;w>=1&&E>=0&&u[w]!==C[E];)E--;for(;w>=1&&E>=0;w--,E--)if(u[w]!==C[E]){if(w!==1||E!==1)do if(w--,E--,E<0||u[w]!==C[E]){var $=`
51
+ `+u[w].replace(" at new "," at ");return e.displayName&&$.includes("<anonymous>")&&($=$.replace("<anonymous>",e.displayName)),typeof e=="function"&&ae.set(e,$),$}while(w>=1&&E>=0);break}}}finally{xe=!1,_e.current=b,ht(),Error.prepareStackTrace=g}var H=e?e.displayName||e.name:"",U=H?oe(H):"";return typeof e=="function"&&ae.set(e,U),U}function bt(e,t,o){return Ue(e,!1)}function vt(e){var t=e.prototype;return!!(t&&t.isReactComponent)}function ie(e,t,o){if(e==null)return"";if(typeof e=="function")return Ue(e,vt(e));if(typeof e=="string")return oe(e);switch(e){case k:return oe("Suspense");case h:return oe("SuspenseList")}if(typeof e=="object")switch(e.$$typeof){case f:return bt(e.render);case y:return ie(e.type,t,o);case m:{var i=e,g=i._payload,b=i._init;try{return ie(b(g),t,o)}catch{}}}return""}var G=Object.prototype.hasOwnProperty,Le={},Ve=W.ReactDebugCurrentFrame;function se(e){if(e){var t=e._owner,o=ie(e.type,e._source,t?t.type:null);Ve.setExtraStackFrame(o)}else Ve.setExtraStackFrame(null)}function _t(e,t,o,i,g){{var b=Function.call.bind(G);for(var d in e)if(b(e,d)){var u=void 0;try{if(typeof e[d]!="function"){var C=Error((i||"React class")+": "+o+" type `"+d+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[d]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw C.name="Invariant Violation",C}u=e[d](t,d,i,o,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(w){u=w}u&&!(u instanceof Error)&&(se(g),O("%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).",i||"React class",o,d,typeof u),se(null)),u instanceof Error&&!(u.message in Le)&&(Le[u.message]=!0,se(g),O("Failed %s type: %s",o,u.message),se(null))}}}var yt=Array.isArray;function ke(e){return yt(e)}function xt(e){{var t=typeof Symbol=="function"&&Symbol.toStringTag,o=t&&e[Symbol.toStringTag]||e.constructor.name||"Object";return o}}function kt(e){try{return qe(e),!1}catch{return!0}}function qe(e){return""+e}function He(e){if(kt(e))return O("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",xt(e)),qe(e)}var Je=W.ReactCurrentOwner,wt={key:!0,ref:!0,__self:!0,__source:!0},Ke,Ge;function St(e){if(G.call(e,"ref")){var t=Object.getOwnPropertyDescriptor(e,"ref").get;if(t&&t.isReactWarning)return!1}return e.ref!==void 0}function Rt(e){if(G.call(e,"key")){var t=Object.getOwnPropertyDescriptor(e,"key").get;if(t&&t.isReactWarning)return!1}return e.key!==void 0}function Et(e,t){typeof e.ref=="string"&&Je.current}function jt(e,t){{var o=function(){Ke||(Ke=!0,O("%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)",t))};o.isReactWarning=!0,Object.defineProperty(e,"key",{get:o,configurable:!0})}}function Ot(e,t){{var o=function(){Ge||(Ge=!0,O("%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)",t))};o.isReactWarning=!0,Object.defineProperty(e,"ref",{get:o,configurable:!0})}}var At=function(e,t,o,i,g,b,d){var u={$$typeof:n,type:e,key:t,ref:o,props:d,_owner:b};return u._store={},Object.defineProperty(u._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(u,"_self",{configurable:!1,enumerable:!1,writable:!1,value:i}),Object.defineProperty(u,"_source",{configurable:!1,enumerable:!1,writable:!1,value:g}),Object.freeze&&(Object.freeze(u.props),Object.freeze(u)),u};function Ct(e,t,o,i,g){{var b,d={},u=null,C=null;o!==void 0&&(He(o),u=""+o),Rt(t)&&(He(t.key),u=""+t.key),St(t)&&(C=t.ref,Et(t));for(b in t)G.call(t,b)&&!wt.hasOwnProperty(b)&&(d[b]=t[b]);if(e&&e.defaultProps){var w=e.defaultProps;for(b in w)d[b]===void 0&&(d[b]=w[b])}if(u||C){var E=typeof e=="function"?e.displayName||e.name||"Unknown":e;u&&jt(d,E),C&&Ot(d,E)}return At(e,u,C,g,i,Je.current,d)}}var we=W.ReactCurrentOwner,Ze=W.ReactDebugCurrentFrame;function q(e){if(e){var t=e._owner,o=ie(e.type,e._source,t?t.type:null);Ze.setExtraStackFrame(o)}else Ze.setExtraStackFrame(null)}var Se;Se=!1;function Re(e){return typeof e=="object"&&e!==null&&e.$$typeof===n}function Xe(){{if(we.current){var e=N(we.current.type);if(e)return`
52
52
 
53
53
  Check the render method of \``+e+"`."}return""}}function Pt(e){return""}var Ye={};function Tt(e){{var t=Xe();if(!t){var o=typeof e=="string"?e:e.displayName||e.name;o&&(t=`
54
54
 
55
- Check the top-level render call using <`+o+">.")}return t}}function Qe(e,t){{if(!e._store||e._store.validated||e.key!=null)return;e._store.validated=!0;var o=Tt(t);if(Ye[o])return;Ye[o]=!0;var i="";e&&e._owner&&e._owner!==we.current&&(i=" It was passed a child from "+N(e._owner.type)+"."),q(e),O('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',o,i),q(null)}}function et(e,t){{if(typeof e!="object")return;if(ke(e))for(var o=0;o<e.length;o++){var i=e[o];Re(i)&&Qe(i,t)}else if(Re(e))e._store&&(e._store.validated=!0);else if(e){var g=ve(e);if(typeof g=="function"&&g!==e.entries)for(var b=g.call(e),d;!(d=b.next()).done;)Re(d.value)&&Qe(d.value,t)}}}function $t(e){{var t=e.type;if(t==null||typeof t=="string")return;var o;if(typeof t=="function")o=t.propTypes;else if(typeof t=="object"&&(t.$$typeof===f||t.$$typeof===m))o=t.propTypes;else return;if(o){var i=N(t);_t(o,e.props,"prop",i,e)}else if(t.PropTypes!==void 0&&!Se){Se=!0;var g=N(t);O("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",g||"Unknown")}typeof t.getDefaultProps=="function"&&!t.getDefaultProps.isReactClassApproved&&O("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function Bt(e){{for(var t=Object.keys(e.props),o=0;o<t.length;o++){var i=t[o];if(i!=="children"&&i!=="key"){q(e),O("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",i),q(null);break}}e.ref!==null&&(q(e),O("Invalid attribute `ref` supplied to `React.Fragment`."),q(null))}}var tt={};function rt(e,t,o,i,g,b){{var d=I(e);if(!d){var u="";(e===void 0||typeof e=="object"&&e!==null&&Object.keys(e).length===0)&&(u+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var C=Pt();C?u+=C:u+=Xe();var k;e===null?k="null":ke(e)?k="array":e!==void 0&&e.$$typeof===n?(k="<"+(N(e.type)||"Unknown")+" />",u=" Did you accidentally export a JSX literal instead of a component?"):k=typeof e,O("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",k,u)}var E=Ct(e,t,o,g,b);if(E==null)return E;if(d){var T=t.children;if(T!==void 0)if(i)if(ke(T)){for(var H=0;H<T.length;H++)et(T[H],e);Object.freeze&&Object.freeze(T)}else O("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else et(T,e)}if(G.call(t,"key")){var U=N(e),P=Object.keys(t).filter(function(zt){return zt!=="key"}),Ee=P.length>0?"{key: someKey, "+P.join(": ..., ")+": ...}":"{key: someKey}";if(!tt[U+Ee]){var Ft=P.length>0?"{"+P.join(": ..., ")+": ...}":"{}";O(`A props object containing a "key" prop is being spread into JSX:
55
+ Check the top-level render call using <`+o+">.")}return t}}function Qe(e,t){{if(!e._store||e._store.validated||e.key!=null)return;e._store.validated=!0;var o=Tt(t);if(Ye[o])return;Ye[o]=!0;var i="";e&&e._owner&&e._owner!==we.current&&(i=" It was passed a child from "+N(e._owner.type)+"."),q(e),O('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',o,i),q(null)}}function et(e,t){{if(typeof e!="object")return;if(ke(e))for(var o=0;o<e.length;o++){var i=e[o];Re(i)&&Qe(i,t)}else if(Re(e))e._store&&(e._store.validated=!0);else if(e){var g=ve(e);if(typeof g=="function"&&g!==e.entries)for(var b=g.call(e),d;!(d=b.next()).done;)Re(d.value)&&Qe(d.value,t)}}}function $t(e){{var t=e.type;if(t==null||typeof t=="string")return;var o;if(typeof t=="function")o=t.propTypes;else if(typeof t=="object"&&(t.$$typeof===f||t.$$typeof===y))o=t.propTypes;else return;if(o){var i=N(t);_t(o,e.props,"prop",i,e)}else if(t.PropTypes!==void 0&&!Se){Se=!0;var g=N(t);O("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",g||"Unknown")}typeof t.getDefaultProps=="function"&&!t.getDefaultProps.isReactClassApproved&&O("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function Bt(e){{for(var t=Object.keys(e.props),o=0;o<t.length;o++){var i=t[o];if(i!=="children"&&i!=="key"){q(e),O("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",i),q(null);break}}e.ref!==null&&(q(e),O("Invalid attribute `ref` supplied to `React.Fragment`."),q(null))}}var tt={};function rt(e,t,o,i,g,b){{var d=I(e);if(!d){var u="";(e===void 0||typeof e=="object"&&e!==null&&Object.keys(e).length===0)&&(u+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var C=Pt();C?u+=C:u+=Xe();var w;e===null?w="null":ke(e)?w="array":e!==void 0&&e.$$typeof===n?(w="<"+(N(e.type)||"Unknown")+" />",u=" Did you accidentally export a JSX literal instead of a component?"):w=typeof e,O("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",w,u)}var E=Ct(e,t,o,g,b);if(E==null)return E;if(d){var $=t.children;if($!==void 0)if(i)if(ke($)){for(var H=0;H<$.length;H++)et($[H],e);Object.freeze&&Object.freeze($)}else O("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else et($,e)}if(G.call(t,"key")){var U=N(e),P=Object.keys(t).filter(function(zt){return zt!=="key"}),Ee=P.length>0?"{key: someKey, "+P.join(": ..., ")+": ...}":"{key: someKey}";if(!tt[U+Ee]){var Ft=P.length>0?"{"+P.join(": ..., ")+": ...}":"{}";O(`A props object containing a "key" prop is being spread into JSX:
56
56
  let props = %s;
57
57
  <%s {...props} />
58
58
  React keys must be passed directly to JSX without using spread:
59
59
  let props = %s;
60
- <%s key={someKey} {...props} />`,Ee,U,Ft,U),tt[U+Ee]=!0}}return e===c?Bt(E):$t(E),E}}function Nt(e,t,o){return rt(e,t,o,!0)}function It(e,t,o){return rt(e,t,o,!1)}var Mt=It,Dt=Nt;at.Fragment=c,at.jsx=Mt,at.jsxs=Dt}()),at}process.env.NODE_ENV==="production"?dr():pr();const gr="0.0.40",Xt={version:gr},te={},J={module:"",v:Xt.version,page:"Main",auth:"Auth",STORAGE:"f",LISTENER:{},debug:!1,tab:"",id:0,prev:{page:"",module:"",tab:"",id:0}};function ue(){return typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof self<"u"?self:typeof global<"u"?global:{}}ue().elcrm||(ue().elcrm={}),Object.assign(ue().elcrm,{router:Xt.version});function Z(r){var n,a,c,l;const p=ue();if(p.ROUTER_PARAMS){r.debug||p.ROUTER_PARAMS.debug;const R={page:(n=p.ROUTER_PARAMS)==null?void 0:n.page,module:(a=p.ROUTER_PARAMS)==null?void 0:a.module,tab:(c=p.ROUTER_PARAMS)==null?void 0:c.tab,id:(l=p.ROUTER_PARAMS)==null?void 0:l.id};p.ROUTER_PARAMS={...p.ROUTER_PARAMS,...r,prev:R}}else{r.debug||J.debug;const R={page:J==null?void 0:J.page,module:J==null?void 0:J.module,tab:J==null?void 0:J.tab,id:J==null?void 0:J.id};p.ROUTER_PARAMS={...J,...r,prev:R}}}function A(){return ue().ROUTER_PARAMS||J}function de(r){const n=ue();n.ROUTER_PARAMS?n.ROUTER_PARAMS.LISTENER={...n.ROUTER_PARAMS.LISTENER,...r}:n.ROUTER_PARAMS.LISTENER={...r}}function re(){return ue().ROUTER_PARAMS.LISTENER||J.LISTENER}var ce;(r=>{function n(){var x;let j=sessionStorage.getItem("f");if(j){if(j=le.deCode(j),!j)return!1;Z({id:j.id,tab:j.tab,page:j.page,module:j.module,time:j.time,payment:{active:!0},module_admin:j.module_admin})}else Z({id:0,tab:"",page:(x=localStorage.getItem("d"))!=null&&x.length?A().page:A().auth,module:A().module});return!0}function a(){te.id=0,te.tab="",te.page=A().page,te.module=A().module}r.Reset=a;function c({module:x=A().module,page:j=A().page,auth:I=A().auth,debug:D=A().debug}){Z({page:j,module:x,auth:I,debug:D}),n()}r.Default=c;function l(x){let j=M=>(Z({page:M}),M);const[I,D]=w.useState(R()||x&&j(x)||A().page);return de({page:M=>{D(M)}}),I}r.usePage=l;function p(x,j=!0,I={}){Z({page:x,...I}),sessionStorage.setItem(A().STORAGE,le.enCode(A())),j&&re().page(x)}r.setPage=p;function R(){return A().page}r.getPage=R;function y(x){return A().page===x}r.isPage=y;function f(){return A().prev}r.getBack=f;function S(x,j){const[I,D]=w.useState(m()||x||A().module);return de({module:D}),I}r.useModule=S;function h(x,j=!0){Z({module:x}),sessionStorage.setItem(A().STORAGE,le.enCode(A())),j&&re().module(x)}r.setModule=h;function m(){return A().module||""}r.getModule=m;function v(x){return A().module===x}r.isModule=v;function $(x,j){if(typeof x!="function"){const[I,D]=w.useState(!j),[M,N]=w.useState(x||ve());return de({tabs:N}),j&&w.useEffect(()=>{D(!0)},[]),[M,I]}else de({tabs:x})}r.useTabs=$;function B(x){let j=M=>(Z({tab:M}),M);const[I,D]=w.useState(ve()||x&&j(x)||A().tab);return de({tabs:M=>{D(M)}}),I}r.useTab=B;async function Be(x,j=!0){Z({tab:x}),sessionStorage.setItem(A().STORAGE,le.enCode(A())),j&&(re().tabs&&re().tabs(x))}r.setTabs=Be;function ve(){return A().tab}r.getTabs=ve;function W(x){return A().tab===x}r.isTabs=W;function O(x){if(typeof x!="function"){const[j,I]=w.useState(x||Ae());return de({id:D=>{I(D)}}),j}else de({id:x})}r.useId=O;function Ne(x){}r.subId=Ne;async function Ie(x,j=!0){Z({id:x}),sessionStorage.setItem(A().STORAGE,le.enCode(A())),j&&re().id(x)}r.setId=Ie;function Ae(){return A().id}r.getId=Ae;function Me(x){return Number(A().id)===x}r.isId=Me;async function De(x){var j,I,D,M,N,F,L,fe;const{page:X,module:Y,tab:Q,id:ee}=x;X!==void 0&&(te.page=X),Y!==void 0&&(te.module=Y),Q!==void 0&&(te.tab=Q),ee!==void 0&&(te.id=ee),Z({...te}),ee!==void 0&&((I=(j=re()).id)==null||I.call(j,ee)),Q!==void 0&&((M=(D=re()).tabs)==null||M.call(D,Q)),Y!==void 0&&((F=(N=re()).module)==null||F.call(N,Y)),X!==void 0&&((fe=(L=re()).page)==null||fe.call(L,X)),sessionStorage.setItem(A().STORAGE,le.enCode(A()))}r.navigate=De})(ce||(ce={}));let it={};function hr(){const[r,n]=w.useState([]);return it.set=a=>{n([...r,a])},it.del=a=>{r.forEach((c,l)=>{c.key===a&&r.splice(l,1)}),n(r)},r.length===0?s.jsx(s.Fragment,{}):s.jsx("div",{className:"notice",children:r.map(a=>a.item)})}function mr(r){let n=new Date().getTime();r.key=n,it.set({item:s.jsx(br,{data:r},n),key:n})}function br(r){const n=r.data;let[a]=w.useState("show"),[c,l]=w.useState(!1);w.useEffect(()=>{setTimeout(function(){l(!0),it.del(n.key)},5e3)},[n.key]);let p;switch(n.type){case"error":p=s.jsx("path",{d:"M12 2.25c-5.376 0-9.75 4.374-9.75 9.75s4.374 9.75 9.75 9.75 9.75-4.374 9.75-9.75S17.376 2.25 12 2.25Zm3.53 12.22a.75.75 0 1 1-1.06 1.06L12 13.06l-2.47 2.47a.75.75 0 0 1-1.06-1.06L10.94 12 8.47 9.53a.75.75 0 0 1 1.06-1.06L12 10.94l2.47-2.47a.75.75 0 0 1 1.06 1.06L13.06 12l2.47 2.47Z"});break;case"success":p=s.jsx("path",{d:"M12 2.25c-5.376 0-9.75 4.374-9.75 9.75s4.374 9.75 9.75 9.75 9.75-4.374 9.75-9.75S17.376 2.25 12 2.25Zm5.074 6.482-6.3 7.5a.748.748 0 0 1-.562.268h-.013a.75.75 0 0 1-.557-.248l-2.7-3a.751.751 0 0 1 .88-1.186c.09.045.17.107.234.182l2.123 2.36 5.747-6.84a.75.75 0 0 1 1.148.964Z"});break;case"warning":p=s.jsx("path",{d:"M12 2.625c-5.17 0-9.375 4.206-9.375 9.375 0 5.17 4.206 9.375 9.375 9.375 5.17 0 9.375-4.206 9.375-9.375 0-5.17-4.206-9.375-9.375-9.375Zm0 3.844a1.219 1.219 0 1 1 0 2.437 1.219 1.219 0 0 1 0-2.437Zm2.25 10.593h-4.125a.75.75 0 1 1 0-1.5h1.313v-4.124h-.75a.75.75 0 1 1 0-1.5h1.5a.75.75 0 0 1 .75.75v4.874h1.312a.75.75 0 1 1 0 1.5Z"});break;default:p="icon fa fa-exclamation-circle";break}return s.jsx(s.Fragment,{children:c?s.jsx(s.Fragment,{}):s.jsxs("div",{className:"item "+n.type+` ${n.thema!==void 0?" thema":""}`,"data-status":a,children:[s.jsx("svg",{type:"solid",fill:"currentColor",stroke:"none",strokeWidth:"0",width:"24",height:"24",viewBox:"0 0 24 24",children:p}),s.jsx("span",{className:"text",children:n.text})]})})}let pe={Send:mr,Init:hr};const ge={is:!1,MainButton:{},BackButton:{}};let K={};K.dark={"--tg-theme-subtitle-text-color":"#98989e","--tg-theme-destructive-text-color":"#e53935","--tg-theme-section-separator-color":"#545458","--tg-theme-link-color":"#3e88f7","--tg-theme-accent-text-color":"#3e88f7","--tg-theme-bg-color":"#000000","--tg-theme-secondary-bg-color":"#1c1c1d","--tg-theme-button-color":"#3e88f7","--tg-theme-button-text-color":"#ffffff","--tg-theme-bottom-bar-bg-color":"#1d1d1d","--tg-theme-section-header-text-color":"#8d8e93","--tg-theme-header-bg-color":"#1a1a1a","--tg-theme-hint-color":"#98989e","--tg-theme-text-color":"#ffffff","--tg-theme-section-bg-color":"#2c2c2e"},K.light={"--tg-theme-subtitle-text-color":"#8e8e93","--tg-theme-destructive-text-color":"#ff3b30","--tg-theme-section-separator-color":"#c8c7cc","--tg-theme-link-color":"#007aff","--tg-theme-accent-text-color":"#007aff","--tg-theme-bg-color":"#ffffff","--tg-theme-secondary-bg-color":"#efeff4","--tg-theme-button-color":"#007aff","--tg-theme-button-text-color":"#ffffff","--tg-theme-bottom-bar-bg-color":"#f2f2f2","--tg-theme-section-header-text-color":"#6d6d72","--tg-theme-header-bg-color":"#f8f8f8","--tg-theme-hint-color":"#8e8e93","--tg-theme-text-color":"#000000","--tg-theme-section-bg-color":"#f8f8f8"},K.users={"--tg-theme-bg-color":"#000000","--tg-theme-text-color":"#ffffff","--tg-theme-hint-color":"#98989e","--tg-theme-link-color":"#ffffff","--tg-theme-button-color":"#ffffff","--tg-theme-button-text-color":"#000000","--tg-theme-secondary-bg-color":"#000000"};const vr=()=>{if(location.hostname==="localhost"){let[r,n]=w.useState(!1),[a,c]=w.useState(!1),[l,p]=w.useState("dark"),[R,y]=w.useState(!1),[f,S]=w.useState(!1);ge.is=!0,ge.MainButton.set=n,ge.BackButton.set=c,w.useEffect(()=>{K[l]["--tg-theme-bg-color-alpha"]=K[l]["--tg-theme-bg-color"]+"b3",K[l]["--tg-theme-secondary-bg-color-alpha"]=K[l]["--tg-theme-secondary-bg-color"]+"d3";for(let v in K[l])document.documentElement.style.setProperty(v,K[l][v]);be.safeAreaInset.bottom===0&&document.documentElement.style.setProperty("--tg-safe-area-inset-bottom","16px")},[]);let h=v=>{for(let $ in K[v])document.documentElement.style.setProperty($,K[v][$]);p(v),y(!1)},m=()=>{y(!1),S(!0)};return s.jsxs(s.Fragment,{children:[s.jsxs("header",{className:"debug",children:[a===!1?s.jsx("div",{className:"b",children:"Отмена"}):s.jsx("div",{onClick:()=>{var v;a.page===void 0?(v=a.callback)==null||v.call(a):ce.setPage(a.page)},className:"b",children:"Назад"}),s.jsx("div",{className:"o",onClick:()=>y(!R),children:"Меню"})]}),s.jsx(pe.Init,{}),r&&s.jsx("div",{className:"mb",children:s.jsx("button",{onClick:()=>{r.page&&ce.setPage(r.page),r.callback&&r.callback()},children:r.text})}),R?s.jsxs("div",{className:"tm",children:[s.jsxs("ul",{children:[s.jsx("li",{children:s.jsx("button",{onClick:m,children:"Authorization"})}),s.jsx("li",{})]}),s.jsxs("ul",{children:[s.jsxs("li",{children:[s.jsx("button",{children:"Thema"}),s.jsxs("ol",{children:[s.jsx("li",{children:s.jsx("button",{onClick:()=>h("dark"),children:"Dark"})}),s.jsx("li",{children:s.jsx("button",{onClick:()=>h("light"),children:"Light"})}),s.jsx("li",{children:s.jsx("button",{onClick:()=>h("users"),children:"Users"})})]})]}),s.jsx("li",{children:s.jsx("button",{onClick:()=>y(!R),children:"Closed"})})]})]}):"",f?s.jsx(_r,{setAuthorization:S}):""]})}else return w.useEffect(()=>{document.documentElement.style.setProperty("--tg-theme-secondary-bg-color-alpha",be.themeParams.secondary_bg_color+"d3"),document.documentElement.style.setProperty("--tg-theme-bg-color-alpha",be.themeParams.bg_color+"b3"),be.safeAreaInset.bottom===0&&document.documentElement.style.setProperty("--tg-safe-area-inset-bottom","16px")},[]),s.jsx(s.Fragment,{children:s.jsx(pe.Init,{})})},_r=({setAuthorization:r})=>{let n={},a=()=>{localStorage.setItem("auth",n)};return s.jsx("div",{className:"ta",children:s.jsxs("div",{className:"--body",children:[s.jsx("fieldset",{}),s.jsx("div",{onClick:a,children:" Сохранить "})]})})},Yt={p:"_p_12hh1_1",s:"_s_12hh1_17"},yr=({className:r,children:n,isScroll:a=!0})=>s.jsx("div",{className:[Yt.p,a&&Yt.s,r].filter(c=>c!==void 0).join(" "),children:n}),xr={l:"_l_gfyud_1"},kr=({children:r,className:n})=>s.jsx("div",{className:[xr.l,n].filter(a=>a!==void 0).join(" "),children:r}),he={m:"_m_ppm7n_2",g:"_g_ppm7n_10",i:"_i_ppm7n_18",c:"_c_ppm7n_35",l:"_l_ppm7n_42",a:"_a_ppm7n_57",n:"_n_ppm7n_62"},wr=({items:r})=>{const n=c=>{ce.setPage(c)},a=c=>{be.openTelegramLink(c)};return s.jsx("div",{className:he.m,children:r.map(c=>s.jsx("div",{className:he.g,children:c.items.map((l,p)=>s.jsxs("div",{className:he.i,onClick:()=>{l.link&&a(l.link),l.page&&n(l.page),l.callback&&l.callback()},children:[s.jsxs("div",{className:he.c,children:[s.jsx("span",{className:he.l,style:{background:l.color},children:l.icon}),l.title,l.count&&s.jsx("span",{className:he.n,children:l.count})]}),s.jsx("span",{className:he.a,children:"›"})]},p))},c.id))})},ne={o:"_o_8ho2f_3",m:"_m_8ho2f_14",l:"_l_8ho2f_28",r:"_r_8ho2f_33",x:"_x_8ho2f_38",h:"_h_8ho2f_42",c:"_c_8ho2f_57",u:"_u_8ho2f_72"};function Sr({children:r,icon:n,iconBadge:a=0,title:c,className:l,view:p="list",position:R="left"}){const[y,f]=w.useState(!1),[S,h]=w.useState(null);w.useEffect(()=>{let v=document.querySelector(".p_sb");return v||(v=document.createElement("div"),v.className="_p_sb",document.body.appendChild(v)),h(v),()=>{v&&v.parentNode&&v.parentNode.removeChild(v)}},[]);const m=s.jsxs(s.Fragment,{children:[y&&s.jsx("div",{className:ne.o,onClick:()=>f(!1)}),s.jsxs("div",{className:me(ne.m,R==="left"?ne.l:ne.r,y&&ne.x,l),children:[s.jsxs("div",{className:ne.h,children:[c&&s.jsx("h3",{className:ne.t,children:c}),s.jsxs("svg",{onClick:()=>f(!1),fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",viewBox:"0 0 24 24",width:"24",height:"24","data-pointer":"true",style:{cursor:"pointer"},children:[s.jsx("path",{d:"M17.25 17.25 6.75 6.75"}),s.jsx("path",{d:"m17.25 6.75-10.5 10.5"})]})]}),s.jsx("div",{className:ne.c,children:p==="list"?s.jsx("ul",{className:ne.u,children:r}):r})]})]});return s.jsxs(s.Fragment,{children:[n&&s.jsx("div",{onClick:()=>f(!0),className:"bage","data-count":a,children:n}),S&&nr.createPortal(m,S)]})}let $e=()=>{};const Qt=({children:r,title:n,isOverlay:a=!0,footer:c=!0,className:l,onOpen:p})=>{const[R,y]=w.useState(!1);return $e=()=>{y(!0),setTimeout(()=>{var f;p==null||p(!1),(f=Oe==null?void 0:Oe.onClose)==null||f.call(Oe)},300)},s.jsx("div",{className:`footer-menu-overlay ${a?"is-overlay":""} ${R?"closing":""} `,onClick:$e,children:s.jsxs("div",{className:`footer-menu-popup-book ${R?"closing":""} ${l||""} ${c?"footer":""}`,onClick:f=>f.stopPropagation(),children:[s.jsxs("div",{className:"footer-menu-header",children:[s.jsx("h3",{children:n}),s.jsx("button",{className:"footer-menu-close-btn",onClick:$e,children:"✕"})]}),r]})})},ft={h:"_h_1ffr7_1",row:"_row_1ffr7_20",column:"_column_1ffr7_23",badge:"_badge_1ffr7_36"},Oe=[],er=(r,n)=>r.findIndex(a=>(a==null?void 0:a.page)===n),Rr=({actions:r,children:n,className:a,toHide:c=!1,page:l,onPageChange:p,direction:R="row"})=>{const[y,f]=w.useState(null),[S,h]=w.useState(l?er(r||[],l):0);return Oe.onClose=()=>{f(null),h(l?er(r||[],l):0)},w.useEffect(()=>{if(!c)return;const m=document.querySelectorAll("[contenteditable]"),v=()=>{const B=document.querySelector("footer");B&&(B.style.display="flex")},$=()=>{const B=document.querySelector("footer");B&&(B.style.display="none")};return m.forEach(B=>{B.addEventListener("focus",$,!0),B.addEventListener("blur",v,!0)}),()=>{m.forEach(B=>{B.removeEventListener("focus",$,!0),B.removeEventListener("blur",v,!0)})}},[]),s.jsxs(s.Fragment,{children:[y,s.jsxs("footer",{className:`${ft.h} ${ft[R]} ${a} `,children:[n,r&&r.map((m,v)=>s.jsxs("div",{"data-active":S===v?"true":"false",onClick:()=>{m.page&&(h(v),p==null||p(m.page)),m.callback&&(m.callback(),h(v)),m.component&&(S===v?$e():(f(m.component),h(v)))},children:[m.icon,m.badge&&s.jsx("div",{className:ft.badge,children:m.badge})]},v))]})]})},st={w:"_w_yx04q_3",v:"_v_yx04q_24",s:"_s_yx04q_34",n:"_n_yx04q_38"},ut={};function Er({children:r,name:n,onClose:a,isOpen:c,isScroll:l=!0,nextBackButton:p}){const[R,y]=w.useState(!1);return w.useEffect(()=>{if(!c)return;const f=p===void 0?rr().pop():p,S=()=>{y(!1),setTimeout(()=>{pt(f||!1),a==null||a()},300)};ut[n]={onClose:S,onOpen:()=>{y(!0)}},pt({callback:S});const h=setTimeout(()=>{y(!0)},10);return()=>{clearTimeout(h)}},[c]),c?s.jsxs("div",{className:me(st.w,R&&st.v,l&&st.s),children:[s.jsx("div",{className:st.n}),r]}):""}const jr=(r,n)=>{var a,c;n?(a=ut[r])==null||a.onOpen():(c=ut[r])==null||c.onClose()},tr={s:"_s_1yn3d_3",n:"_n_1yn3d_14"};function Or({className:r,children:n,onScrollEnd:a,offset:c=100,isLoading:l,isScrollBar:p=!1}){const[R,y]=w.useState(l||!1);w.useEffect(()=>{y(l||!1)},[l]);let f={onScroll:S=>{const{scrollTop:h,scrollHeight:m,clientHeight:v}=S.currentTarget;h+v>=m-c&&!R&&(y(!0),a==null||a())}};return s.jsx("div",{...f,className:me(tr.s,!p&&tr.n,r),children:n})}const dt={a:"_a_ohhaz_1",l:"_l_ohhaz_12",r:"_r_ohhaz_15"};function Ar({children:r,className:n,position:a="center",title:c}){let l="";return a==="left"?l=dt.l:a==="right"&&(l=dt.r),s.jsxs("div",{className:me(dt.a,l,n),children:[r,c&&s.jsx("b",{children:c})]})}const z={state:[!1],listen:[],prev:{},router:r=>{r===!1?(_.default.WebApp.BackButton.isVisible=!1,_.default.WebApp.BackButton.offClick(z.listen[0]),z.listen.shift(),z.state.length!==1&&z.state.pop()):(_.default.WebApp.BackButton.isVisible=!0,_.default.WebApp.BackButton.offClick(z.listen[0]),z.listen.shift(),z.listen.push(()=>{var a;let n=z.state.pop();z.prev=ce.getPage(),n.page!==void 0?ce.setPage(n.page):(a=n.callback)==null||a.call(n)}),be.BackButton.onClick(z.listen[0]))}},me=(...r)=>r.filter(n=>n!==void 0&&n!==!1&&n!==null&&n!=="").join(" ");_.default=void 0,(r=>{r.WebApp=window.Telegram.WebApp,r.getUser=()=>{var n;return((n=r.WebApp.initDataUnsafe)==null?void 0:n.user)===void 0?{}:r.WebApp.initDataUnsafe},r.Notice={Send:(n,a,c)=>{var l,p;a!==void 0?(pe.Send({type:n,text:a,thema:c}),(l=r.WebApp.HapticFeedback)==null||l.notificationOccurred(n)):(pe.Send(n),(p=r.WebApp.HapticFeedback)==null||p.notificationOccurred(n.type))},Error:n=>{var a;pe.Send({type:"error",text:n}),(a=r.WebApp.HapticFeedback)==null||a.notificationOccurred("error")},Success:n=>{var a;pe.Send({type:"success",text:n}),(a=r.WebApp.HapticFeedback)==null||a.notificationOccurred("success")},Warning:n=>{var a;pe.Send({type:"warning",text:n}),(a=r.WebApp.HapticFeedback)==null||a.notificationOccurred("warning")}},r.Header=vr,r.TabBar=Rr,r.BottomSheet=Qt,r.toggleBottomSheet=$e,r.SafeArea=yr,r.Loading=kr,r.Sidebar=Sr,r.SidePanel=Er,r.AppBar=Ar,r.SidePanelController=jr,r.Scroll=Or,r.Modal=ct,r.Menu=wr,r.MainButton={callback:[],set:n=>{ge.is?ge.MainButton.set(n):(r.WebApp.MainButton.callback.forEach(a=>{r.WebApp.MainButton.offClick(a)}),r.WebApp.MainButton.callback=[],typeof n=="boolean"?r.WebApp.MainButton.isVisible=!1:(r.WebApp.MainButton.text=n.text,n.color&&(r.WebApp.MainButton.color=n.color),n.textColor&&(r.WebApp.MainButton.textColor=n.textColor),r.WebApp.MainButton.isVisible=!0,r.WebApp.MainButton.isActive=n.isActive===void 0?!0:n.isActive,r.WebApp.MainButton.callback.push(()=>{var a;n.page===void 0?(a=n.callback)==null||a.call(n):ce.setPage(n.page)}),r.WebApp.MainButton.onClick(r.WebApp.MainButton.callback[0])))}},r.BackButtonPrev=()=>{z.prev&&(0,r.BackButton)(z.prev)},r.BackButtonState=()=>z.state,r.BackButton=n=>{ge.is?ge.BackButton.set(n):(z.state.push(n),z.router(n))}})(_.default||(_.default={}));const Cr=_.default.TabBar,Pr=Qt,pt=_.default.BackButton,Tr=_.default.BackButtonPrev,rr=_.default.BackButtonState,$r=_.default.Notice,Br=_.default.SafeArea,Nr=_.default.Loading,Ir=_.default.Menu,Mr=_.default.SidePanel,Dr=_.default.Scroll,Fr=_.default.AppBar,zr=_.default.Sidebar,Wr=_.default.SidePanelController,{Header:Ur,toggleBottomSheet:Lr,Modal:Vr,MainButton:qr,WebApp:be,getUser:Hr}=_.default;_.AppBar=Fr,_.BackButton=pt,_.BackButtonPrev=Tr,_.BackButtonState=rr,_.BottomSheet=Pr,_.Header=Ur,_.Loading=Nr,_.MainButton=qr,_.Menu=Ir,_.Modal=Vr,_.Notice=$r,_.SafeArea=Br,_.Scroll=Dr,_.SidePanel=Mr,_.SidePanelController=Wr,_.Sidebar=zr,_.TabBar=Cr,_.WebApp=be,_.clsx=me,_.getUser=Hr,_.toggleBottomSheet=Lr,Object.defineProperties(_,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
60
+ <%s key={someKey} {...props} />`,Ee,U,Ft,U),tt[U+Ee]=!0}}return e===c?Bt(E):$t(E),E}}function Nt(e,t,o){return rt(e,t,o,!0)}function It(e,t,o){return rt(e,t,o,!1)}var Mt=It,Dt=Nt;at.Fragment=c,at.jsx=Mt,at.jsxs=Dt}()),at}process.env.NODE_ENV==="production"?dr():pr();const gr="0.0.40",Xt={version:gr},te={},J={module:"",v:Xt.version,page:"Main",auth:"Auth",STORAGE:"f",LISTENER:{},debug:!1,tab:"",id:0,prev:{page:"",module:"",tab:"",id:0}};function ue(){return typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof self<"u"?self:typeof global<"u"?global:{}}ue().elcrm||(ue().elcrm={}),Object.assign(ue().elcrm,{router:Xt.version});function Z(r){var n,a,c,l;const p=ue();if(p.ROUTER_PARAMS){r.debug||p.ROUTER_PARAMS.debug;const R={page:(n=p.ROUTER_PARAMS)==null?void 0:n.page,module:(a=p.ROUTER_PARAMS)==null?void 0:a.module,tab:(c=p.ROUTER_PARAMS)==null?void 0:c.tab,id:(l=p.ROUTER_PARAMS)==null?void 0:l.id};p.ROUTER_PARAMS={...p.ROUTER_PARAMS,...r,prev:R}}else{r.debug||J.debug;const R={page:J==null?void 0:J.page,module:J==null?void 0:J.module,tab:J==null?void 0:J.tab,id:J==null?void 0:J.id};p.ROUTER_PARAMS={...J,...r,prev:R}}}function A(){return ue().ROUTER_PARAMS||J}function de(r){const n=ue();n.ROUTER_PARAMS?n.ROUTER_PARAMS.LISTENER={...n.ROUTER_PARAMS.LISTENER,...r}:n.ROUTER_PARAMS.LISTENER={...r}}function re(){return ue().ROUTER_PARAMS.LISTENER||J.LISTENER}var ce;(r=>{function n(){var x;let j=sessionStorage.getItem("f");if(j){if(j=le.deCode(j),!j)return!1;Z({id:j.id,tab:j.tab,page:j.page,module:j.module,time:j.time,payment:{active:!0},module_admin:j.module_admin})}else Z({id:0,tab:"",page:(x=localStorage.getItem("d"))!=null&&x.length?A().page:A().auth,module:A().module});return!0}function a(){te.id=0,te.tab="",te.page=A().page,te.module=A().module}r.Reset=a;function c({module:x=A().module,page:j=A().page,auth:I=A().auth,debug:D=A().debug}){Z({page:j,module:x,auth:I,debug:D}),n()}r.Default=c;function l(x){let j=M=>(Z({page:M}),M);const[I,D]=S.useState(R()||x&&j(x)||A().page);return de({page:M=>{D(M)}}),I}r.usePage=l;function p(x,j=!0,I={}){Z({page:x,...I}),sessionStorage.setItem(A().STORAGE,le.enCode(A())),j&&re().page(x)}r.setPage=p;function R(){return A().page}r.getPage=R;function _(x){return A().page===x}r.isPage=_;function f(){return A().prev}r.getBack=f;function k(x,j){const[I,D]=S.useState(y()||x||A().module);return de({module:D}),I}r.useModule=k;function h(x,j=!0){Z({module:x}),sessionStorage.setItem(A().STORAGE,le.enCode(A())),j&&re().module(x)}r.setModule=h;function y(){return A().module||""}r.getModule=y;function m(x){return A().module===x}r.isModule=m;function B(x,j){if(typeof x!="function"){const[I,D]=S.useState(!j),[M,N]=S.useState(x||ve());return de({tabs:N}),j&&S.useEffect(()=>{D(!0)},[]),[M,I]}else de({tabs:x})}r.useTabs=B;function T(x){let j=M=>(Z({tab:M}),M);const[I,D]=S.useState(ve()||x&&j(x)||A().tab);return de({tabs:M=>{D(M)}}),I}r.useTab=T;async function Be(x,j=!0){Z({tab:x}),sessionStorage.setItem(A().STORAGE,le.enCode(A())),j&&(re().tabs&&re().tabs(x))}r.setTabs=Be;function ve(){return A().tab}r.getTabs=ve;function W(x){return A().tab===x}r.isTabs=W;function O(x){if(typeof x!="function"){const[j,I]=S.useState(x||Ae());return de({id:D=>{I(D)}}),j}else de({id:x})}r.useId=O;function Ne(x){}r.subId=Ne;async function Ie(x,j=!0){Z({id:x}),sessionStorage.setItem(A().STORAGE,le.enCode(A())),j&&re().id(x)}r.setId=Ie;function Ae(){return A().id}r.getId=Ae;function Me(x){return Number(A().id)===x}r.isId=Me;async function De(x){var j,I,D,M,N,F,L,fe;const{page:X,module:Y,tab:Q,id:ee}=x;X!==void 0&&(te.page=X),Y!==void 0&&(te.module=Y),Q!==void 0&&(te.tab=Q),ee!==void 0&&(te.id=ee),Z({...te}),ee!==void 0&&((I=(j=re()).id)==null||I.call(j,ee)),Q!==void 0&&((M=(D=re()).tabs)==null||M.call(D,Q)),Y!==void 0&&((F=(N=re()).module)==null||F.call(N,Y)),X!==void 0&&((fe=(L=re()).page)==null||fe.call(L,X)),sessionStorage.setItem(A().STORAGE,le.enCode(A()))}r.navigate=De})(ce||(ce={}));let it={};function hr(){const[r,n]=S.useState([]);return it.set=a=>{n([...r,a])},it.del=a=>{r.forEach((c,l)=>{c.key===a&&r.splice(l,1)}),n(r)},r.length===0?s.jsx(s.Fragment,{}):s.jsx("div",{className:"notice",children:r.map(a=>a.item)})}function mr(r){let n=new Date().getTime();r.key=n,it.set({item:s.jsx(br,{data:r},n),key:n})}function br(r){const n=r.data;let[a]=S.useState("show"),[c,l]=S.useState(!1);S.useEffect(()=>{setTimeout(function(){l(!0),it.del(n.key)},5e3)},[n.key]);let p;switch(n.type){case"error":p=s.jsx("path",{d:"M12 2.25c-5.376 0-9.75 4.374-9.75 9.75s4.374 9.75 9.75 9.75 9.75-4.374 9.75-9.75S17.376 2.25 12 2.25Zm3.53 12.22a.75.75 0 1 1-1.06 1.06L12 13.06l-2.47 2.47a.75.75 0 0 1-1.06-1.06L10.94 12 8.47 9.53a.75.75 0 0 1 1.06-1.06L12 10.94l2.47-2.47a.75.75 0 0 1 1.06 1.06L13.06 12l2.47 2.47Z"});break;case"success":p=s.jsx("path",{d:"M12 2.25c-5.376 0-9.75 4.374-9.75 9.75s4.374 9.75 9.75 9.75 9.75-4.374 9.75-9.75S17.376 2.25 12 2.25Zm5.074 6.482-6.3 7.5a.748.748 0 0 1-.562.268h-.013a.75.75 0 0 1-.557-.248l-2.7-3a.751.751 0 0 1 .88-1.186c.09.045.17.107.234.182l2.123 2.36 5.747-6.84a.75.75 0 0 1 1.148.964Z"});break;case"warning":p=s.jsx("path",{d:"M12 2.625c-5.17 0-9.375 4.206-9.375 9.375 0 5.17 4.206 9.375 9.375 9.375 5.17 0 9.375-4.206 9.375-9.375 0-5.17-4.206-9.375-9.375-9.375Zm0 3.844a1.219 1.219 0 1 1 0 2.437 1.219 1.219 0 0 1 0-2.437Zm2.25 10.593h-4.125a.75.75 0 1 1 0-1.5h1.313v-4.124h-.75a.75.75 0 1 1 0-1.5h1.5a.75.75 0 0 1 .75.75v4.874h1.312a.75.75 0 1 1 0 1.5Z"});break;default:p="icon fa fa-exclamation-circle";break}return s.jsx(s.Fragment,{children:c?s.jsx(s.Fragment,{}):s.jsxs("div",{className:"item "+n.type+` ${n.thema!==void 0?" thema":""}`,"data-status":a,children:[s.jsx("svg",{type:"solid",fill:"currentColor",stroke:"none",strokeWidth:"0",width:"24",height:"24",viewBox:"0 0 24 24",children:p}),s.jsx("span",{className:"text",children:n.text})]})})}let pe={Send:mr,Init:hr};const ge={is:!1,MainButton:{},BackButton:{}};let K={};K.dark={"--tg-theme-subtitle-text-color":"#98989e","--tg-theme-destructive-text-color":"#e53935","--tg-theme-section-separator-color":"#545458","--tg-theme-link-color":"#3e88f7","--tg-theme-accent-text-color":"#3e88f7","--tg-theme-bg-color":"#000000","--tg-theme-secondary-bg-color":"#1c1c1d","--tg-theme-button-color":"#3e88f7","--tg-theme-button-text-color":"#ffffff","--tg-theme-bottom-bar-bg-color":"#1d1d1d","--tg-theme-section-header-text-color":"#8d8e93","--tg-theme-header-bg-color":"#1a1a1a","--tg-theme-hint-color":"#98989e","--tg-theme-text-color":"#ffffff","--tg-theme-section-bg-color":"#2c2c2e"},K.light={"--tg-theme-subtitle-text-color":"#8e8e93","--tg-theme-destructive-text-color":"#ff3b30","--tg-theme-section-separator-color":"#c8c7cc","--tg-theme-link-color":"#007aff","--tg-theme-accent-text-color":"#007aff","--tg-theme-bg-color":"#ffffff","--tg-theme-secondary-bg-color":"#efeff4","--tg-theme-button-color":"#007aff","--tg-theme-button-text-color":"#ffffff","--tg-theme-bottom-bar-bg-color":"#f2f2f2","--tg-theme-section-header-text-color":"#6d6d72","--tg-theme-header-bg-color":"#f8f8f8","--tg-theme-hint-color":"#8e8e93","--tg-theme-text-color":"#000000","--tg-theme-section-bg-color":"#f8f8f8"},K.users={"--tg-theme-bg-color":"#000000","--tg-theme-text-color":"#ffffff","--tg-theme-hint-color":"#98989e","--tg-theme-link-color":"#ffffff","--tg-theme-button-color":"#ffffff","--tg-theme-button-text-color":"#000000","--tg-theme-secondary-bg-color":"#000000"};const vr=()=>{if(location.hostname==="localhost"){let[r,n]=S.useState(!1),[a,c]=S.useState(!1),[l,p]=S.useState("dark"),[R,_]=S.useState(!1),[f,k]=S.useState(!1);ge.is=!0,ge.MainButton.set=n,ge.BackButton.set=c,S.useEffect(()=>{K[l]["--tg-theme-bg-color-alpha"]=K[l]["--tg-theme-bg-color"]+"b3",K[l]["--tg-theme-secondary-bg-color-alpha"]=K[l]["--tg-theme-secondary-bg-color"]+"d3";for(let m in K[l])document.documentElement.style.setProperty(m,K[l][m]);be.safeAreaInset.bottom===0&&document.documentElement.style.setProperty("--tg-safe-area-inset-bottom","16px")},[]);let h=m=>{for(let B in K[m])document.documentElement.style.setProperty(B,K[m][B]);p(m),_(!1)},y=()=>{_(!1),k(!0)};return s.jsxs(s.Fragment,{children:[s.jsxs("header",{className:"debug",children:[a===!1?s.jsx("div",{className:"b",children:"Отмена"}):s.jsx("div",{onClick:()=>{var m;a.page===void 0?(m=a.callback)==null||m.call(a):ce.setPage(a.page)},className:"b",children:"Назад"}),s.jsx("div",{className:"o",onClick:()=>_(!R),children:"Меню"})]}),s.jsx(pe.Init,{}),r&&s.jsx("div",{className:"mb",children:s.jsx("button",{onClick:()=>{r.page&&ce.setPage(r.page),r.callback&&r.callback()},children:r.text})}),R?s.jsxs("div",{className:"tm",children:[s.jsxs("ul",{children:[s.jsx("li",{children:s.jsx("button",{onClick:y,children:"Authorization"})}),s.jsx("li",{})]}),s.jsxs("ul",{children:[s.jsxs("li",{children:[s.jsx("button",{children:"Thema"}),s.jsxs("ol",{children:[s.jsx("li",{children:s.jsx("button",{onClick:()=>h("dark"),children:"Dark"})}),s.jsx("li",{children:s.jsx("button",{onClick:()=>h("light"),children:"Light"})}),s.jsx("li",{children:s.jsx("button",{onClick:()=>h("users"),children:"Users"})})]})]}),s.jsx("li",{children:s.jsx("button",{onClick:()=>_(!R),children:"Closed"})})]})]}):"",f?s.jsx(_r,{setAuthorization:k}):""]})}else return S.useEffect(()=>{document.documentElement.style.setProperty("--tg-theme-secondary-bg-color-alpha",be.themeParams.secondary_bg_color+"d3"),document.documentElement.style.setProperty("--tg-theme-bg-color-alpha",be.themeParams.bg_color+"b3"),be.safeAreaInset.bottom===0&&document.documentElement.style.setProperty("--tg-safe-area-inset-bottom","16px")},[]),s.jsx(s.Fragment,{children:s.jsx(pe.Init,{})})},_r=({setAuthorization:r})=>{let n={},a=()=>{localStorage.setItem("auth",n)};return s.jsx("div",{className:"ta",children:s.jsxs("div",{className:"--body",children:[s.jsx("fieldset",{}),s.jsx("div",{onClick:a,children:" Сохранить "})]})})},Yt={p:"_p_12hh1_1",s:"_s_12hh1_17"},yr=({className:r,children:n,isScroll:a=!0})=>s.jsx("div",{className:[Yt.p,a&&Yt.s,r].filter(c=>c!==void 0).join(" "),children:n}),xr={l:"_l_gfyud_1"},kr=({children:r,className:n})=>s.jsx("div",{className:[xr.l,n].filter(a=>a!==void 0).join(" "),children:r}),he={m:"_m_ppm7n_2",g:"_g_ppm7n_10",i:"_i_ppm7n_18",c:"_c_ppm7n_35",l:"_l_ppm7n_42",a:"_a_ppm7n_57",n:"_n_ppm7n_62"},wr=({items:r})=>{const n=c=>{ce.setPage(c)},a=c=>{be.openTelegramLink(c)};return s.jsx("div",{className:he.m,children:r.map(c=>s.jsx("div",{className:he.g,children:c.items.map((l,p)=>s.jsxs("div",{className:he.i,onClick:()=>{l.link&&a(l.link),l.page&&n(l.page),l.callback&&l.callback()},children:[s.jsxs("div",{className:he.c,children:[s.jsx("span",{className:he.l,style:{background:l.color},children:l.icon}),l.title,l.count&&s.jsx("span",{className:he.n,children:l.count})]}),s.jsx("span",{className:he.a,children:"›"})]},p))},c.id))})},ne={o:"_o_8ho2f_3",m:"_m_8ho2f_14",l:"_l_8ho2f_28",r:"_r_8ho2f_33",x:"_x_8ho2f_38",h:"_h_8ho2f_42",c:"_c_8ho2f_57",u:"_u_8ho2f_72"};function Sr({children:r,icon:n,iconBadge:a=0,title:c,className:l,view:p="list",position:R="left"}){const[_,f]=S.useState(!1),[k,h]=S.useState(null);S.useEffect(()=>{let m=document.querySelector(".p_sb");return m||(m=document.createElement("div"),m.className="_p_sb",document.body.appendChild(m)),h(m),()=>{m&&m.parentNode&&m.parentNode.removeChild(m)}},[]);const y=s.jsxs(s.Fragment,{children:[_&&s.jsx("div",{className:ne.o,onClick:()=>f(!1)}),s.jsxs("div",{className:me(ne.m,R==="left"?ne.l:ne.r,_&&ne.x,l),children:[s.jsxs("div",{className:ne.h,children:[c&&s.jsx("h3",{className:ne.t,children:c}),s.jsxs("svg",{onClick:()=>f(!1),fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",viewBox:"0 0 24 24",width:"24",height:"24","data-pointer":"true",style:{cursor:"pointer"},children:[s.jsx("path",{d:"M17.25 17.25 6.75 6.75"}),s.jsx("path",{d:"m17.25 6.75-10.5 10.5"})]})]}),s.jsx("div",{className:ne.c,children:p==="list"?s.jsx("ul",{className:ne.u,children:r}):r})]})]});return s.jsxs(s.Fragment,{children:[n&&s.jsx("div",{onClick:()=>f(!0),className:"bage","data-count":a,children:n}),k&&nr.createPortal(y,k)]})}let $e=()=>{};const Qt=({children:r,title:n,isOverlay:a=!0,footer:c=!0,className:l,onOpen:p})=>{const[R,_]=S.useState(!1);return $e=()=>{_(!0),setTimeout(()=>{var f;p==null||p(!1),(f=Oe==null?void 0:Oe.onClose)==null||f.call(Oe)},300)},s.jsx("div",{className:`footer-menu-overlay ${a?"is-overlay":""} ${R?"closing":""} `,onClick:$e,children:s.jsxs("div",{className:`footer-menu-popup-book ${R?"closing":""} ${l||""} ${c?"footer":""}`,onClick:f=>f.stopPropagation(),children:[s.jsxs("div",{className:"footer-menu-header",children:[s.jsx("h3",{children:n}),s.jsx("button",{className:"footer-menu-close-btn",onClick:$e,children:"✕"})]}),r]})})},ft={h:"_h_1ffr7_1",row:"_row_1ffr7_20",column:"_column_1ffr7_23",badge:"_badge_1ffr7_36"},Oe=[],er=(r,n)=>r.findIndex(a=>(a==null?void 0:a.page)===n),Rr=({actions:r,children:n,className:a,toHide:c=!1,page:l,onPageChange:p,direction:R="row"})=>{const[_,f]=S.useState(null),[k,h]=S.useState(l?er(r||[],l):0);return Oe.onClose=()=>{f(null),h(l?er(r||[],l):0)},S.useEffect(()=>{if(!c)return;const y=document.querySelectorAll("[contenteditable]"),m=()=>{const T=document.querySelector("footer");T&&(T.style.display="flex")},B=()=>{const T=document.querySelector("footer");T&&(T.style.display="none")};return y.forEach(T=>{T.addEventListener("focus",B,!0),T.addEventListener("blur",m,!0)}),()=>{y.forEach(T=>{T.removeEventListener("focus",B,!0),T.removeEventListener("blur",m,!0)})}},[]),s.jsxs(s.Fragment,{children:[_,s.jsxs("footer",{className:`${ft.h} ${ft[R]} ${a} `,children:[n,r&&r.map((y,m)=>s.jsxs("div",{"data-active":k===m?"true":"false",onClick:()=>{y.page&&(h(m),p==null||p(y.page)),y.callback&&(y.callback(),h(m)),y.component&&(k===m?$e():(f(y.component),h(m)))},children:[y.icon,y.badge&&s.jsx("div",{className:ft.badge,children:y.badge})]},m))]})]})},st={w:"_w_yx04q_3",v:"_v_yx04q_24",s:"_s_yx04q_34",n:"_n_yx04q_38"},ut={};function Er({children:r,name:n,onClose:a,isOpen:c,isScroll:l=!0,nextBackButton:p}){const[R,_]=S.useState(!1);return S.useEffect(()=>{if(!c)return;const f=p===void 0?rr().pop():p,k=()=>{_(!1),setTimeout(()=>{pt(f||!1),a==null||a()},300)};ut[n]={onClose:k,onOpen:()=>{_(!0)}},pt({callback:k});const h=setTimeout(()=>{_(!0)},10);return()=>{clearTimeout(h)}},[c]),c?s.jsxs("div",{className:me(st.w,R&&st.v,l&&st.s),children:[s.jsx("div",{className:st.n}),r]}):""}const jr=(r,n)=>{var a,c;n?(a=ut[r])==null||a.onOpen():(c=ut[r])==null||c.onClose()},tr={s:"_s_1yn3d_3",n:"_n_1yn3d_14"};function Or({className:r,children:n,onScrollEnd:a,offset:c=100,isLoading:l,isScrollBar:p=!1}){const[R,_]=S.useState(l||!1);S.useEffect(()=>{_(l||!1)},[l]);let f={onScroll:k=>{const{scrollTop:h,scrollHeight:y,clientHeight:m}=k.currentTarget;h+m>=y-c&&!R&&(_(!0),a==null||a())}};return s.jsx("div",{...f,className:me(tr.s,!p&&tr.n,r),children:n})}const dt={a:"_a_ohhaz_1",l:"_l_ohhaz_12",r:"_r_ohhaz_15"};function Ar({children:r,className:n,position:a="center",title:c}){let l="";return a==="left"?l=dt.l:a==="right"&&(l=dt.r),s.jsxs("div",{className:me(dt.a,l,n),children:[r,c&&s.jsx("b",{children:c})]})}const z={state:[!1],listen:[],prev:{},router:r=>{r===!1?(v.default.WebApp.BackButton.isVisible=!1,v.default.WebApp.BackButton.offClick(z.listen[0]),z.listen.shift(),z.state.length!==1&&z.state.pop()):(v.default.WebApp.BackButton.isVisible=!0,v.default.WebApp.BackButton.offClick(z.listen[0]),z.listen.shift(),z.listen.push(()=>{var a;let n=z.state.pop();z.prev=ce.getPage(),n.page!==void 0?ce.setPage(n.page):(a=n.callback)==null||a.call(n)}),be.BackButton.onClick(z.listen[0]))}},me=(...r)=>r.filter(n=>n!==void 0&&n!==!1&&n!==null&&n!=="").join(" ");v.default=void 0,(r=>{r.WebApp=window.Telegram.WebApp,r.getUser=()=>{var n;return((n=r.WebApp.initDataUnsafe)==null?void 0:n.user)===void 0?{}:r.WebApp.initDataUnsafe},r.Notice={Send:(n,a,c)=>{var l,p;a!==void 0?(pe.Send({type:n,text:a,thema:c}),(l=r.WebApp.HapticFeedback)==null||l.notificationOccurred(n)):(pe.Send(n),(p=r.WebApp.HapticFeedback)==null||p.notificationOccurred(n.type))},Error:n=>{var a;pe.Send({type:"error",text:n}),(a=r.WebApp.HapticFeedback)==null||a.notificationOccurred("error")},Success:n=>{var a;pe.Send({type:"success",text:n}),(a=r.WebApp.HapticFeedback)==null||a.notificationOccurred("success")},Warning:n=>{var a;pe.Send({type:"warning",text:n}),(a=r.WebApp.HapticFeedback)==null||a.notificationOccurred("warning")}},r.Header=vr,r.TabBar=Rr,r.BottomSheet=Qt,r.toggleBottomSheet=$e,r.SafeArea=yr,r.Loading=kr,r.Sidebar=Sr,r.SidePanel=Er,r.AppBar=Ar,r.SidePanelController=jr,r.Scroll=Or,r.Modal=ct,r.Menu=wr,r.MainButton={callback:[],set:n=>{ge.is?ge.MainButton.set(n):(r.WebApp.MainButton.callback.forEach(a=>{r.WebApp.MainButton.offClick(a)}),r.WebApp.MainButton.callback=[],typeof n=="boolean"?r.WebApp.MainButton.isVisible=!1:(r.WebApp.MainButton.text=n.text,n.color&&(r.WebApp.MainButton.color=n.color),n.textColor&&(r.WebApp.MainButton.textColor=n.textColor),r.WebApp.MainButton.isVisible=!0,r.WebApp.MainButton.isActive=n.isActive===void 0?!0:n.isActive,r.WebApp.MainButton.callback.push(()=>{var a;n.page===void 0?(a=n.callback)==null||a.call(n):ce.setPage(n.page)}),r.WebApp.MainButton.onClick(r.WebApp.MainButton.callback[0])))}},r.BackButtonPrev=()=>{z.prev&&(0,r.BackButton)(z.prev)},r.BackButtonState=()=>z.state,r.BackButton=n=>{ge.is?ge.BackButton.set(n):(z.state.push(n),z.router(n))}})(v.default||(v.default={}));const Cr=v.default.TabBar,Pr=Qt,pt=v.default.BackButton,Tr=v.default.BackButtonPrev,rr=v.default.BackButtonState,$r=v.default.Notice,Br=v.default.SafeArea,Nr=v.default.Loading,Ir=v.default.Menu,Mr=v.default.SidePanel,Dr=v.default.Scroll,Fr=v.default.AppBar,zr=v.default.Sidebar,Wr=v.default.SidePanelController,{Header:Ur,toggleBottomSheet:Lr,Modal:Vr,MainButton:qr,WebApp:be,getUser:Hr}=v.default;v.AppBar=Fr,v.BackButton=pt,v.BackButtonPrev=Tr,v.BackButtonState=rr,v.BottomSheet=Pr,v.Header=Ur,v.Loading=Nr,v.MainButton=qr,v.Menu=Ir,v.Modal=Vr,v.Notice=$r,v.SafeArea=Br,v.Scroll=Dr,v.SidePanel=Mr,v.SidePanelController=Wr,v.Sidebar=zr,v.TabBar=Cr,v.WebApp=be,v.clsx=me,v.getUser=Hr,v.toggleBottomSheet=Lr,Object.defineProperties(v,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@elcrm/telegram",
3
- "version": "0.0.109",
3
+ "version": "0.0.110",
4
4
  "description": "plugin for elCRM to work with telegram",
5
5
  "type": "module",
6
6
  "author": "MaSkal <dev@elcrm.online>",