@elcrm/telegram 0.0.21 → 0.0.23
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.es.js +115 -112
- package/dist/index.umd.js +1 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -150,10 +150,10 @@ function $a(e, t, a) {
|
|
|
150
150
|
function La(e) {
|
|
151
151
|
je.data = e[0], delete je.data.id, document.body.dataset.theme = je.data.s15, localStorage.setItem("s", N.enCode(je.data));
|
|
152
152
|
}
|
|
153
|
-
function
|
|
153
|
+
function Aa(e, t) {
|
|
154
154
|
je.data[e] = t, localStorage.setItem("s", N.enCode(je.data));
|
|
155
155
|
}
|
|
156
|
-
function
|
|
156
|
+
function Oa(e) {
|
|
157
157
|
let t = localStorage.getItem("s");
|
|
158
158
|
return t === null ? {} : (t = N.deCode(t), t ? e !== void 0 ? t[e] : t : X());
|
|
159
159
|
}
|
|
@@ -467,10 +467,10 @@ function hr() {
|
|
|
467
467
|
F.unshift("Warning: " + h), Function.prototype.apply.call(console[s], console, F);
|
|
468
468
|
}
|
|
469
469
|
}
|
|
470
|
-
var R = !1, P = !1,
|
|
470
|
+
var R = !1, P = !1, O = !1, K = !1, oe = !1, z;
|
|
471
471
|
z = Symbol.for("react.module.reference");
|
|
472
472
|
function I(s) {
|
|
473
|
-
return !!(typeof s == "string" || typeof s == "function" || s === r || s === o || oe || s === i || s === _ || s === u || K || s === m || R || P ||
|
|
473
|
+
return !!(typeof s == "string" || typeof s == "function" || s === r || s === o || oe || s === i || s === _ || s === u || K || s === m || R || P || O || typeof s == "object" && s !== null && (s.$$typeof === x || s.$$typeof === f || s.$$typeof === l || s.$$typeof === c || s.$$typeof === d || // This needs to include all possible module reference object
|
|
474
474
|
// types supported by any Flight configuration anywhere since
|
|
475
475
|
// we don't know which Flight build this will end up being used
|
|
476
476
|
// with.
|
|
@@ -486,7 +486,7 @@ function hr() {
|
|
|
486
486
|
function $(s) {
|
|
487
487
|
return s.displayName || "Context";
|
|
488
488
|
}
|
|
489
|
-
function
|
|
489
|
+
function E(s) {
|
|
490
490
|
if (s == null)
|
|
491
491
|
return null;
|
|
492
492
|
if (typeof s.tag == "number" && y("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof s == "function")
|
|
@@ -519,11 +519,11 @@ function hr() {
|
|
|
519
519
|
return W(s, s.render, "ForwardRef");
|
|
520
520
|
case f:
|
|
521
521
|
var w = s.displayName || null;
|
|
522
|
-
return w !== null ? w :
|
|
522
|
+
return w !== null ? w : E(s.type) || "Memo";
|
|
523
523
|
case x: {
|
|
524
524
|
var D = s, F = D._payload, M = D._init;
|
|
525
525
|
try {
|
|
526
|
-
return
|
|
526
|
+
return E(M(F));
|
|
527
527
|
} catch {
|
|
528
528
|
return null;
|
|
529
529
|
}
|
|
@@ -594,7 +594,7 @@ function hr() {
|
|
|
594
594
|
}
|
|
595
595
|
}
|
|
596
596
|
var qe = C.ReactCurrentDispatcher, Je;
|
|
597
|
-
function
|
|
597
|
+
function Ae(s, h, k) {
|
|
598
598
|
{
|
|
599
599
|
if (Je === void 0)
|
|
600
600
|
try {
|
|
@@ -607,16 +607,16 @@ function hr() {
|
|
|
607
607
|
` + Je + s;
|
|
608
608
|
}
|
|
609
609
|
}
|
|
610
|
-
var Xe = !1,
|
|
610
|
+
var Xe = !1, Oe;
|
|
611
611
|
{
|
|
612
|
-
var
|
|
613
|
-
|
|
612
|
+
var An = typeof WeakMap == "function" ? WeakMap : Map;
|
|
613
|
+
Oe = new An();
|
|
614
614
|
}
|
|
615
615
|
function It(s, h) {
|
|
616
616
|
if (!s || Xe)
|
|
617
617
|
return "";
|
|
618
618
|
{
|
|
619
|
-
var k =
|
|
619
|
+
var k = Oe.get(s);
|
|
620
620
|
if (k !== void 0)
|
|
621
621
|
return k;
|
|
622
622
|
}
|
|
@@ -671,7 +671,7 @@ function hr() {
|
|
|
671
671
|
if (L--, G--, G < 0 || B[L] !== V[G]) {
|
|
672
672
|
var Q = `
|
|
673
673
|
` + B[L].replace(" at new ", " at ");
|
|
674
|
-
return s.displayName && Q.includes("<anonymous>") && (Q = Q.replace("<anonymous>", s.displayName)), typeof s == "function" &&
|
|
674
|
+
return s.displayName && Q.includes("<anonymous>") && (Q = Q.replace("<anonymous>", s.displayName)), typeof s == "function" && Oe.set(s, Q), Q;
|
|
675
675
|
}
|
|
676
676
|
while (L >= 1 && G >= 0);
|
|
677
677
|
break;
|
|
@@ -680,10 +680,10 @@ function hr() {
|
|
|
680
680
|
} finally {
|
|
681
681
|
Xe = !1, qe.current = F, Ln(), Error.prepareStackTrace = D;
|
|
682
682
|
}
|
|
683
|
-
var Ce = s ? s.displayName || s.name : "", me = Ce ?
|
|
684
|
-
return typeof s == "function" &&
|
|
683
|
+
var Ce = s ? s.displayName || s.name : "", me = Ce ? Ae(Ce) : "";
|
|
684
|
+
return typeof s == "function" && Oe.set(s, me), me;
|
|
685
685
|
}
|
|
686
|
-
function
|
|
686
|
+
function On(s, h, k) {
|
|
687
687
|
return It(s, !1);
|
|
688
688
|
}
|
|
689
689
|
function Gn(s) {
|
|
@@ -696,17 +696,17 @@ function hr() {
|
|
|
696
696
|
if (typeof s == "function")
|
|
697
697
|
return It(s, Gn(s));
|
|
698
698
|
if (typeof s == "string")
|
|
699
|
-
return
|
|
699
|
+
return Ae(s);
|
|
700
700
|
switch (s) {
|
|
701
701
|
case _:
|
|
702
|
-
return
|
|
702
|
+
return Ae("Suspense");
|
|
703
703
|
case u:
|
|
704
|
-
return
|
|
704
|
+
return Ae("SuspenseList");
|
|
705
705
|
}
|
|
706
706
|
if (typeof s == "object")
|
|
707
707
|
switch (s.$$typeof) {
|
|
708
708
|
case d:
|
|
709
|
-
return
|
|
709
|
+
return On(s.render);
|
|
710
710
|
case f:
|
|
711
711
|
return Ge(s.type, h, k);
|
|
712
712
|
case x: {
|
|
@@ -795,8 +795,8 @@ function hr() {
|
|
|
795
795
|
}
|
|
796
796
|
function Vn(s, h) {
|
|
797
797
|
if (typeof s.ref == "string" && Re.current && h && Re.current.stateNode !== h) {
|
|
798
|
-
var k =
|
|
799
|
-
et[k] || (y('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',
|
|
798
|
+
var k = E(Re.current.type);
|
|
799
|
+
et[k] || (y('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', E(Re.current.type), s.ref), et[k] = !0);
|
|
800
800
|
}
|
|
801
801
|
}
|
|
802
802
|
function qn(s, h) {
|
|
@@ -881,10 +881,10 @@ function hr() {
|
|
|
881
881
|
function at(s) {
|
|
882
882
|
return typeof s == "object" && s !== null && s.$$typeof === t;
|
|
883
883
|
}
|
|
884
|
-
function
|
|
884
|
+
function At() {
|
|
885
885
|
{
|
|
886
886
|
if (tt.current) {
|
|
887
|
-
var s =
|
|
887
|
+
var s = E(tt.current.type);
|
|
888
888
|
if (s)
|
|
889
889
|
return `
|
|
890
890
|
|
|
@@ -896,10 +896,10 @@ Check the render method of \`` + s + "`.";
|
|
|
896
896
|
function ea(s) {
|
|
897
897
|
return "";
|
|
898
898
|
}
|
|
899
|
-
var
|
|
899
|
+
var Ot = {};
|
|
900
900
|
function ta(s) {
|
|
901
901
|
{
|
|
902
|
-
var h =
|
|
902
|
+
var h = At();
|
|
903
903
|
if (!h) {
|
|
904
904
|
var k = typeof s == "string" ? s : s.displayName || s.name;
|
|
905
905
|
k && (h = `
|
|
@@ -915,11 +915,11 @@ Check the top-level render call using <` + k + ">.");
|
|
|
915
915
|
return;
|
|
916
916
|
s._store.validated = !0;
|
|
917
917
|
var k = ta(h);
|
|
918
|
-
if (
|
|
918
|
+
if (Ot[k])
|
|
919
919
|
return;
|
|
920
|
-
|
|
920
|
+
Ot[k] = !0;
|
|
921
921
|
var w = "";
|
|
922
|
-
s && s._owner && s._owner !== tt.current && (w = " It was passed a child from " +
|
|
922
|
+
s && s._owner && s._owner !== tt.current && (w = " It was passed a child from " + E(s._owner.type) + "."), be(s), y('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', k, w), be(null);
|
|
923
923
|
}
|
|
924
924
|
}
|
|
925
925
|
function zt(s, h) {
|
|
@@ -956,11 +956,11 @@ Check the top-level render call using <` + k + ">.");
|
|
|
956
956
|
else
|
|
957
957
|
return;
|
|
958
958
|
if (k) {
|
|
959
|
-
var w =
|
|
959
|
+
var w = E(h);
|
|
960
960
|
zn(k, s.props, "prop", w, s);
|
|
961
961
|
} else if (h.PropTypes !== void 0 && !nt) {
|
|
962
962
|
nt = !0;
|
|
963
|
-
var D =
|
|
963
|
+
var D = E(h);
|
|
964
964
|
y("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", D || "Unknown");
|
|
965
965
|
}
|
|
966
966
|
typeof h.getDefaultProps == "function" && !h.getDefaultProps.isReactClassApproved && y("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
@@ -986,9 +986,9 @@ Check the top-level render call using <` + k + ">.");
|
|
|
986
986
|
var B = "";
|
|
987
987
|
(s === void 0 || typeof s == "object" && s !== null && Object.keys(s).length === 0) && (B += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
|
|
988
988
|
var V = ea();
|
|
989
|
-
V ? B += V : B +=
|
|
989
|
+
V ? B += V : B += At();
|
|
990
990
|
var L;
|
|
991
|
-
s === null ? L = "null" : Qe(s) ? L = "array" : s !== void 0 && s.$$typeof === t ? (L = "<" + (
|
|
991
|
+
s === null ? L = "null" : Qe(s) ? L = "array" : s !== void 0 && s.$$typeof === t ? (L = "<" + (E(s.type) || "Unknown") + " />", B = " Did you accidentally export a JSX literal instead of a component?") : L = typeof s, y("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", L, B);
|
|
992
992
|
}
|
|
993
993
|
var G = Qn(s, h, k, D, F);
|
|
994
994
|
if (G == null)
|
|
@@ -1007,7 +1007,7 @@ Check the top-level render call using <` + k + ">.");
|
|
|
1007
1007
|
zt(Q, s);
|
|
1008
1008
|
}
|
|
1009
1009
|
if (Te.call(h, "key")) {
|
|
1010
|
-
var me =
|
|
1010
|
+
var me = E(s), q = Object.keys(h).filter(function(ca) {
|
|
1011
1011
|
return ca !== "key";
|
|
1012
1012
|
}), rt = q.length > 0 ? "{key: someKey, " + q.join(": ..., ") + ": ...}" : "{key: someKey}";
|
|
1013
1013
|
if (!Wt[me + rt]) {
|
|
@@ -1194,9 +1194,9 @@ function Lr({ onClick: e, onSend: t, label: a, onRef: r }) {
|
|
|
1194
1194
|
}
|
|
1195
1195
|
);
|
|
1196
1196
|
}
|
|
1197
|
-
const
|
|
1198
|
-
white:
|
|
1199
|
-
black:
|
|
1197
|
+
const Ar = "_white_11p39_14", Or = "_black_11p39_26", Gr = "_shake_11p39_1", zr = "_modal_11p39_73", Wr = "_o_11p39_83", Kr = "_w_11p39_14", Zr = "_h_11p39_107", Ur = "_l_11p39_121", Hr = "_t_11p39_159", Yr = "_m_11p39_73", Vr = "_x_11p39_167", qr = "_s_11p39_177", Jr = "_c_11p39_182", Xr = "_f_11p39_187", Qr = "_btn_11p39_230", ei = "_g_11p39_243", ti = "_confirm_11p39_322", ni = "_cancel_11p39_327", ai = "_disabled_11p39_332", ri = "_active_11p39_389", ii = "_coincidence_11p39_395", oi = "_sa_11p39_431", si = "_ss_11p39_435", li = "_sm_11p39_439", ci = "_sl_11p39_443", _i = "_sx_11p39_447", di = "_sf_11p39_451", ne = {
|
|
1198
|
+
white: Ar,
|
|
1199
|
+
black: Or,
|
|
1200
1200
|
shake: Gr,
|
|
1201
1201
|
modal: zr,
|
|
1202
1202
|
o: Wr,
|
|
@@ -1790,8 +1790,8 @@ function kt({
|
|
|
1790
1790
|
let [p, C] = b.useState(e), y = (P) => {
|
|
1791
1791
|
if (!(c && _) || !x)
|
|
1792
1792
|
return;
|
|
1793
|
-
let
|
|
1794
|
-
Cn.Open(
|
|
1793
|
+
let O = x.split(".");
|
|
1794
|
+
Cn.Open(O[1], {
|
|
1795
1795
|
callback: (K) => {
|
|
1796
1796
|
t && t({ value: K, name: a }), C(K);
|
|
1797
1797
|
},
|
|
@@ -1858,10 +1858,10 @@ function Ii(e) {
|
|
|
1858
1858
|
}
|
|
1859
1859
|
const Mi = (e) => {
|
|
1860
1860
|
function t(T, R) {
|
|
1861
|
-
var P, K,
|
|
1861
|
+
var P, K, O;
|
|
1862
1862
|
T = T ?? "", R = R ?? 1;
|
|
1863
|
-
for (var P = [],
|
|
1864
|
-
P.push(T.slice(
|
|
1863
|
+
for (var P = [], O = 0, K = T.length; O < K; )
|
|
1864
|
+
P.push(T.slice(O, O += R));
|
|
1865
1865
|
return P;
|
|
1866
1866
|
}
|
|
1867
1867
|
function a(T, R) {
|
|
@@ -2211,13 +2211,13 @@ function $i(e) {
|
|
|
2211
2211
|
function Li(e) {
|
|
2212
2212
|
return parseFloat(e).toFixed(2).replace(/(\d)(?=(\d{3})+\.)/g, "$1 ");
|
|
2213
2213
|
}
|
|
2214
|
-
function
|
|
2214
|
+
function Ai(e, t) {
|
|
2215
2215
|
let a = t + "";
|
|
2216
2216
|
for (; a.length < e; )
|
|
2217
2217
|
a = "0" + a;
|
|
2218
2218
|
return a;
|
|
2219
2219
|
}
|
|
2220
|
-
function
|
|
2220
|
+
function Oi(e, t, a) {
|
|
2221
2221
|
let r = t / e * a;
|
|
2222
2222
|
return (typeof r != "number" || r === 1 / 0) && (r = 0), parseFloat(r).toFixed(1);
|
|
2223
2223
|
}
|
|
@@ -2252,8 +2252,8 @@ const ye = {
|
|
|
2252
2252
|
Initials: Fi,
|
|
2253
2253
|
Month: $i,
|
|
2254
2254
|
Money: Li,
|
|
2255
|
-
Number:
|
|
2256
|
-
Percent:
|
|
2255
|
+
Number: Ai,
|
|
2256
|
+
Percent: Oi,
|
|
2257
2257
|
CapitalizeFirstLetter: Gi,
|
|
2258
2258
|
DeclensionWord: zi,
|
|
2259
2259
|
Select: Wi,
|
|
@@ -3952,16 +3952,16 @@ function jt({
|
|
|
3952
3952
|
className: m = ""
|
|
3953
3953
|
}) {
|
|
3954
3954
|
d = d !== void 0 ? d : !0, _ = _ !== void 0 ? _ : !0, c = !!(c && (e === "" || e === void 0)) && !(d && _), b.useRef(null);
|
|
3955
|
-
let v = "+_(___) ___-__-__", p = !0, C = 0, y = ($,
|
|
3955
|
+
let v = "+_(___) ___-__-__", p = !0, C = 0, y = ($, E) => {
|
|
3956
3956
|
let Z = document.createRange(), Y = window.getSelection();
|
|
3957
|
-
Z.setStart(
|
|
3957
|
+
Z.setStart(E.childNodes[0], $), Z.collapse(!0), Y.removeAllRanges(), Y.addRange(Z), E.focus();
|
|
3958
3958
|
}, T = ($) => {
|
|
3959
|
-
$.preventDefault(), navigator.clipboard.readText().then((
|
|
3960
|
-
window.document.execCommand("insertText", !1,
|
|
3961
|
-
}).catch((
|
|
3959
|
+
$.preventDefault(), navigator.clipboard.readText().then((E) => {
|
|
3960
|
+
window.document.execCommand("insertText", !1, E);
|
|
3961
|
+
}).catch((E) => {
|
|
3962
3962
|
});
|
|
3963
3963
|
}, R = ($) => {
|
|
3964
|
-
let
|
|
3964
|
+
let E = 0, Z = "", Y = $.replace(/\D/g, "");
|
|
3965
3965
|
Y === "" && (p = !0);
|
|
3966
3966
|
let $e = Y.split(""), te = "";
|
|
3967
3967
|
$e.forEach((Le) => {
|
|
@@ -3975,19 +3975,19 @@ function jt({
|
|
|
3975
3975
|
});
|
|
3976
3976
|
let Ee = v.replace(/\D/g, "");
|
|
3977
3977
|
return Ee.length >= Y.length && (Y = Ee), { q: v.replace(/[_\d]/g, function() {
|
|
3978
|
-
return Y.charAt(
|
|
3979
|
-
}), i:
|
|
3978
|
+
return Y.charAt(E++) || "_";
|
|
3979
|
+
}), i: E, v: Y, f: Z };
|
|
3980
3980
|
}, P = ($) => {
|
|
3981
3981
|
$.preventDefault(), navigator.clipboard.writeText($.target.textContent.replace(/\D/g, "")).then(
|
|
3982
3982
|
function() {
|
|
3983
3983
|
Ke.Copy("Данные в буфер обмене");
|
|
3984
3984
|
},
|
|
3985
|
-
function(
|
|
3985
|
+
function(E) {
|
|
3986
3986
|
}
|
|
3987
3987
|
);
|
|
3988
|
-
},
|
|
3989
|
-
let
|
|
3990
|
-
$.target.textContent =
|
|
3988
|
+
}, O = R(e), K = ($) => {
|
|
3989
|
+
let E = R($.target.textContent);
|
|
3990
|
+
$.target.textContent = E.q, E.i = E.q.lastIndexOf(E.v.substr(-1)), E.i < E.q.length && E.q !== v ? E.i++ : E.i = E.q.indexOf("_"), y(E.i, $.target), t && t({ value: E.q.replace(/\D/g, ""), name: r });
|
|
3991
3991
|
}, oe = ($) => {
|
|
3992
3992
|
$.key === "Enter" && $.preventDefault();
|
|
3993
3993
|
};
|
|
@@ -4011,7 +4011,7 @@ function jt({
|
|
|
4011
4011
|
onContextMenu: P,
|
|
4012
4012
|
onBlur: z,
|
|
4013
4013
|
suppressContentEditableWarning: !0,
|
|
4014
|
-
children:
|
|
4014
|
+
children: O.q
|
|
4015
4015
|
}
|
|
4016
4016
|
),
|
|
4017
4017
|
l && /* @__PURE__ */ n.jsx("em", { children: l })
|
|
@@ -4506,11 +4506,11 @@ function Tn({
|
|
|
4506
4506
|
const p = "__:__", C = new Set("_"), y = ((I) => Array.from(p, (W, $) => C.has(W) ? I = $ + 1 : I))(0), T = [...p].findIndex((I) => C.has(I)), R = new RegExp("\\d", "g"), P = (I) => (I = I.match(R) || [], Array.from(
|
|
4507
4507
|
p,
|
|
4508
4508
|
(W) => (I[0] === W || C.has(W)) && I.shift() || W
|
|
4509
|
-
)),
|
|
4509
|
+
)), O = (I) => {
|
|
4510
4510
|
const [W, $] = [I.target.selectionStart, I.target.selectionEnd].map(
|
|
4511
|
-
(
|
|
4511
|
+
(E) => (E = P(I.target.value.slice(0, E)).findIndex(
|
|
4512
4512
|
(Z) => C.has(Z)
|
|
4513
|
-
),
|
|
4513
|
+
), E < 0 ? y[y.length - 1] : z ? y[E - 1] || T : E)
|
|
4514
4514
|
);
|
|
4515
4515
|
I.target.value = P(I.target.value).join(""), I.target.setSelectionRange(W, $), t == null || t({ name: a, value: I.target.value });
|
|
4516
4516
|
}, K = {};
|
|
@@ -4525,10 +4525,10 @@ function Tn({
|
|
|
4525
4525
|
{
|
|
4526
4526
|
type: "tel",
|
|
4527
4527
|
placeholder: r,
|
|
4528
|
-
onChange:
|
|
4528
|
+
onChange: O,
|
|
4529
4529
|
inputMode: "numeric",
|
|
4530
4530
|
onKeyDown: (I) => z = I.key === "Backspace",
|
|
4531
|
-
onFocus:
|
|
4531
|
+
onFocus: O,
|
|
4532
4532
|
onBlur: (I) => I.target.value === p && (I.target.value = "")
|
|
4533
4533
|
}
|
|
4534
4534
|
) }),
|
|
@@ -4606,7 +4606,7 @@ function In({
|
|
|
4606
4606
|
return "";
|
|
4607
4607
|
const P = {};
|
|
4608
4608
|
P.field = "group", g && (P.className = g);
|
|
4609
|
-
const
|
|
4609
|
+
const O = (z) => {
|
|
4610
4610
|
fe.Blur(z), m && m({ value: z.target.textContent, name: a });
|
|
4611
4611
|
};
|
|
4612
4612
|
let K = (z, I) => {
|
|
@@ -4645,7 +4645,7 @@ function In({
|
|
|
4645
4645
|
onPaste: R,
|
|
4646
4646
|
contentEditable: !0,
|
|
4647
4647
|
onKeyDown: oe,
|
|
4648
|
-
onBlur:
|
|
4648
|
+
onBlur: O,
|
|
4649
4649
|
suppressContentEditableWarning: !0,
|
|
4650
4650
|
children: v[I]
|
|
4651
4651
|
}
|
|
@@ -4700,8 +4700,8 @@ function Mn({
|
|
|
4700
4700
|
const [p, C] = b.useState(Ji(e)), y = (P) => {
|
|
4701
4701
|
if (!(c && _) || !x)
|
|
4702
4702
|
return;
|
|
4703
|
-
let
|
|
4704
|
-
Cn.Open(
|
|
4703
|
+
let O = x.split(".");
|
|
4704
|
+
Cn.Open(O[1], {
|
|
4705
4705
|
callback: (K) => {
|
|
4706
4706
|
t && t({ value: K, name: a }), C(K);
|
|
4707
4707
|
},
|
|
@@ -4742,8 +4742,8 @@ function Mn({
|
|
|
4742
4742
|
edit: (c && _) + "",
|
|
4743
4743
|
"data-after": u,
|
|
4744
4744
|
children: Object.keys(p).map((P) => {
|
|
4745
|
-
var
|
|
4746
|
-
return /* @__PURE__ */ n.jsx("div", { className: "field_group_item", children: (
|
|
4745
|
+
var O;
|
|
4746
|
+
return /* @__PURE__ */ n.jsx("div", { className: "field_group_item", children: (O = g[P]) == null ? void 0 : O.label }, P);
|
|
4747
4747
|
})
|
|
4748
4748
|
}
|
|
4749
4749
|
),
|
|
@@ -4785,7 +4785,7 @@ const Xi = {
|
|
|
4785
4785
|
tm: ao,
|
|
4786
4786
|
ta: ro,
|
|
4787
4787
|
"--body": "_--body_ug20b_143"
|
|
4788
|
-
},
|
|
4788
|
+
}, S = window.Telegram.WebApp, ve = { is: !1, MainButton: {}, BackButton: {} };
|
|
4789
4789
|
let pe = {};
|
|
4790
4790
|
pe.dark = {
|
|
4791
4791
|
"--tg-theme-bg-color": "#212121",
|
|
@@ -4820,35 +4820,38 @@ pe.users = {
|
|
|
4820
4820
|
"--tg-theme-button-text-color": "#000000",
|
|
4821
4821
|
"--tg-theme-secondary-bg-color": "#000000"
|
|
4822
4822
|
};
|
|
4823
|
-
|
|
4823
|
+
S.getUser = () => {
|
|
4824
4824
|
var e;
|
|
4825
|
-
return ((e =
|
|
4825
|
+
return ((e = S.initDataUnsafe) == null ? void 0 : e.user) === void 0 ? {} : S.initDataUnsafe;
|
|
4826
4826
|
};
|
|
4827
|
-
|
|
4828
|
-
ve.is ? ve.MainButton.set(e) : typeof e == "boolean" ?
|
|
4827
|
+
S.MainButton.set = (e) => {
|
|
4828
|
+
ve.is ? ve.MainButton.set(e) : typeof e == "boolean" ? S.MainButton.isVisible = !1 : (S.MainButton.text = e.text, e.color && (S.MainButton.color = e.color), e.textColor && (S.MainButton.textColor = e.textColor), S.MainButton.isVisible = !0, S.MainButton.isActive = e.isActive === void 0 ? !0 : e.isActive, e.page === void 0 ? S.MainButton.onClick(() => {
|
|
4829
|
+
var t;
|
|
4830
|
+
(t = e.callback) == null || t.call(e);
|
|
4831
|
+
}) : S.MainButton.onClick(() => {
|
|
4829
4832
|
ce.setPage(e.page);
|
|
4830
4833
|
}));
|
|
4831
4834
|
};
|
|
4832
|
-
|
|
4833
|
-
|
|
4834
|
-
|
|
4835
|
-
e === !1 ? (
|
|
4836
|
-
let t =
|
|
4835
|
+
S.BackButton.state = [!1];
|
|
4836
|
+
S.BackButton.listen = [];
|
|
4837
|
+
S.BackButton.router = (e) => {
|
|
4838
|
+
e === !1 ? (S.BackButton.isVisible = !1, S.BackButton.offClick(S.BackButton.listen[0]), S.BackButton.listen.shift(), S.BackButton.state.length !== 1 && S.BackButton.state.pop()) : (S.BackButton.isVisible = !0, S.BackButton.offClick(S.BackButton.listen[0]), S.BackButton.listen.shift(), S.BackButton.listen.push(() => {
|
|
4839
|
+
let t = S.BackButton.state.pop();
|
|
4837
4840
|
if (t.page !== void 0)
|
|
4838
4841
|
ce.setPage(t.page);
|
|
4839
4842
|
else {
|
|
4840
|
-
let a =
|
|
4841
|
-
|
|
4843
|
+
let a = S.BackButton.state[S.BackButton.state.length - 1];
|
|
4844
|
+
S.BackButton.router(a);
|
|
4842
4845
|
}
|
|
4843
|
-
}),
|
|
4846
|
+
}), S.BackButton.onClick(S.BackButton.listen[0]));
|
|
4844
4847
|
};
|
|
4845
|
-
|
|
4846
|
-
ve.is ? ve.BackButton.set(e) : (
|
|
4848
|
+
S.BackButton.set = (e) => {
|
|
4849
|
+
ve.is ? ve.BackButton.set(e) : (S.BackButton.state.push(e), S.BackButton.router(e));
|
|
4847
4850
|
};
|
|
4848
|
-
|
|
4849
|
-
t !== void 0 ? (Ke.Send({ type: e, text: t }),
|
|
4851
|
+
S.Notice = (e, t) => {
|
|
4852
|
+
t !== void 0 ? (Ke.Send({ type: e, text: t }), S.HapticFeedback.notificationOccurred(e)) : (Ke.Send(e), S.HapticFeedback.notificationOccurred(e.type));
|
|
4850
4853
|
};
|
|
4851
|
-
|
|
4854
|
+
S.Init = ({ dev: e }) => {
|
|
4852
4855
|
if (e) {
|
|
4853
4856
|
let [t, a] = b.useState(!1), [r, i] = b.useState(!1), [o, l] = b.useState("dark"), [c, d] = b.useState(!1), [_, u] = b.useState(!1);
|
|
4854
4857
|
ve.is = !0, ve.MainButton.set = a, ve.BackButton.set = i, b.useEffect(() => {
|
|
@@ -4947,7 +4950,7 @@ const io = ({ setAuthorization: e }) => {
|
|
|
4947
4950
|
] }) });
|
|
4948
4951
|
}, dl = ({ children: e, config: t }) => (window.location.pathname === "/clear" && (window.history.pushState({}, "", "/"), X()), N.New(t.crypto), t.defaultModule && ha(t.defaultModule), pa(
|
|
4949
4952
|
/* @__PURE__ */ n.jsxs(n.Fragment, { children: [
|
|
4950
|
-
/* @__PURE__ */ n.jsx(
|
|
4953
|
+
/* @__PURE__ */ n.jsx(S.Init, { dev: t.dev }),
|
|
4951
4954
|
/* @__PURE__ */ n.jsx(ui, { config: t.modal }),
|
|
4952
4955
|
/* @__PURE__ */ n.jsx(Cr, {}),
|
|
4953
4956
|
/* @__PURE__ */ n.jsx(Nr, {}),
|
|
@@ -5099,21 +5102,21 @@ const yo = "_h_1usnu_1", wo = "_g_1usnu_11", So = "_hr_1usnu_16", Eo = "_hl_1usn
|
|
|
5099
5102
|
function en({ children: e }) {
|
|
5100
5103
|
return /* @__PURE__ */ n.jsx("div", { className: J.g, children: e });
|
|
5101
5104
|
}
|
|
5102
|
-
const
|
|
5105
|
+
const Ao = ({ children: e, className: t, title: a }) => /* @__PURE__ */ n.jsxs("div", { className: [J.o, t].join(" "), children: [
|
|
5103
5106
|
a && /* @__PURE__ */ n.jsx("div", { className: J.hh, children: a }),
|
|
5104
5107
|
e
|
|
5105
|
-
] }),
|
|
5108
|
+
] }), Oo = ({ children: e }) => /* @__PURE__ */ n.jsx("div", { className: J.u, children: e }), Go = ({ children: e }) => /* @__PURE__ */ n.jsx("div", { className: J.c, children: e }), zo = ({ children: e }) => /* @__PURE__ */ n.jsx("div", { className: J.m, children: e }), fl = {
|
|
5106
5109
|
Header: qt,
|
|
5107
5110
|
Section: Xt,
|
|
5108
5111
|
Group: en,
|
|
5109
5112
|
Form: Qt,
|
|
5110
5113
|
List: Jt,
|
|
5111
5114
|
A: Dn,
|
|
5112
|
-
U:
|
|
5115
|
+
U: Oo,
|
|
5113
5116
|
G: en,
|
|
5114
5117
|
C: Go,
|
|
5115
5118
|
L: Jt,
|
|
5116
|
-
O:
|
|
5119
|
+
O: Ao,
|
|
5117
5120
|
S: Xt,
|
|
5118
5121
|
H: qt,
|
|
5119
5122
|
M: zo,
|
|
@@ -5561,21 +5564,21 @@ class us {
|
|
|
5561
5564
|
);
|
|
5562
5565
|
}
|
|
5563
5566
|
}
|
|
5564
|
-
let st,
|
|
5567
|
+
let st, A = {};
|
|
5565
5568
|
const Se = () => (st || (st = new us()), st), ue = (e, t, a = Se()) => a._withIDBStore("readwrite", (r) => {
|
|
5566
|
-
|
|
5567
|
-
}), ie = (e, t = Se()) =>
|
|
5569
|
+
A[e] = t, r.put(N.enCode(t), e);
|
|
5570
|
+
}), ie = (e, t = Se()) => A[e] === void 0 ? new Promise((a, r) => {
|
|
5568
5571
|
let i;
|
|
5569
5572
|
t._withIDBStore("readonly", (o) => {
|
|
5570
5573
|
i = o.get(e);
|
|
5571
5574
|
}).then(() => {
|
|
5572
5575
|
if (i.result !== void 0) {
|
|
5573
5576
|
let o = N.deCode(i.result);
|
|
5574
|
-
|
|
5577
|
+
A[e] = o, a(o);
|
|
5575
5578
|
} else
|
|
5576
5579
|
a({});
|
|
5577
5580
|
});
|
|
5578
|
-
}) :
|
|
5581
|
+
}) : A[e], fs = (e, t = Se()) => t._withIDBStore("readwrite", (a) => {
|
|
5579
5582
|
a.delete(e);
|
|
5580
5583
|
}), ht = (e = Se()) => e._withIDBStore("readwrite", (t) => {
|
|
5581
5584
|
t.clear();
|
|
@@ -5609,7 +5612,7 @@ const Se = () => (st || (st = new us()), st), ue = (e, t, a = Se()) => a._withID
|
|
|
5609
5612
|
m === void 0 ? (ht(), location.reload()) : (i && f(m.id), c && x(m.id));
|
|
5610
5613
|
}), { list: u, search: o, filter: r };
|
|
5611
5614
|
}, gs = (e, t, a, r = Se()) => {
|
|
5612
|
-
if (
|
|
5615
|
+
if (A[e] === void 0)
|
|
5613
5616
|
return new Promise((i, o) => {
|
|
5614
5617
|
let l;
|
|
5615
5618
|
r._withIDBStore("readonly", (c) => {
|
|
@@ -5617,17 +5620,17 @@ const Se = () => (st || (st = new us()), st), ue = (e, t, a = Se()) => a._withID
|
|
|
5617
5620
|
}).then(() => {
|
|
5618
5621
|
if (l.result !== void 0) {
|
|
5619
5622
|
let c = N.deCode(l.result);
|
|
5620
|
-
|
|
5621
|
-
...
|
|
5623
|
+
A[e] = c, A[e][t.id] = {
|
|
5624
|
+
...A[e][t.id],
|
|
5622
5625
|
...t.data
|
|
5623
|
-
}, r.put(N.enCode(
|
|
5626
|
+
}, r.put(N.enCode(A[e]), e), i({});
|
|
5624
5627
|
} else
|
|
5625
5628
|
i({});
|
|
5626
5629
|
});
|
|
5627
5630
|
});
|
|
5628
|
-
if (
|
|
5629
|
-
return
|
|
5630
|
-
i.put(N.enCode(
|
|
5631
|
+
if (A[e][t.id] !== void 0)
|
|
5632
|
+
return A[e][t.id] = { ...A[e][t.id], ...t.data }, a !== void 0 && A[a] !== void 0 ? A[a][t.id] !== void 0 && (A[a][t.id] = t.data.eDate) : A[a] = [], delete A[e][t.id].$_item, delete A[e][t.id].$_send, r._withIDBStore("readwrite", (i) => {
|
|
5633
|
+
i.put(N.enCode(A[e]), e), a !== void 0 && i.put(N.enCode(A[a]), a);
|
|
5631
5634
|
});
|
|
5632
5635
|
}, ps = async (e, t, a, r) => {
|
|
5633
5636
|
let i, o;
|
|
@@ -5652,7 +5655,7 @@ const Se = () => (st || (st = new us()), st), ue = (e, t, a = Se()) => a._withID
|
|
|
5652
5655
|
a({ type: "load", base: r });
|
|
5653
5656
|
else
|
|
5654
5657
|
return r[e];
|
|
5655
|
-
}, js = (e) =>
|
|
5658
|
+
}, js = (e) => A[e], gl = {
|
|
5656
5659
|
id: Cs,
|
|
5657
5660
|
get: ie,
|
|
5658
5661
|
set: ue,
|
|
@@ -5667,7 +5670,7 @@ const Se = () => (st || (st = new us()), st), ue = (e, t, a = Se()) => a._withID
|
|
|
5667
5670
|
delAll: vs,
|
|
5668
5671
|
delList: ks,
|
|
5669
5672
|
addList: bs
|
|
5670
|
-
}, pl = { setSetting:
|
|
5673
|
+
}, pl = { setSetting: Aa, getSetting: Oa }, ys = "_s_18bde_1", ws = "_loadingB_18bde_1", Ss = "_ul_18bde_31", Es = {
|
|
5671
5674
|
s: ys,
|
|
5672
5675
|
loadingB: ws,
|
|
5673
5676
|
ul: Ss
|
|
@@ -5827,11 +5830,11 @@ function Ls() {
|
|
|
5827
5830
|
/* @__PURE__ */ n.jsx("i", {})
|
|
5828
5831
|
] });
|
|
5829
5832
|
}
|
|
5830
|
-
const kl = { Spinner: $s, Inline: Ls },
|
|
5831
|
-
s:
|
|
5833
|
+
const kl = { Spinner: $s, Inline: Ls }, As = "_s_t9swc_1", tn = {
|
|
5834
|
+
s: As
|
|
5832
5835
|
};
|
|
5833
5836
|
let Et;
|
|
5834
|
-
function
|
|
5837
|
+
function Os({ className: e, placeholder: t }) {
|
|
5835
5838
|
let a = (l) => {
|
|
5836
5839
|
Et(l.target.textContent);
|
|
5837
5840
|
}, r = (l) => {
|
|
@@ -5869,7 +5872,7 @@ function zs(e) {
|
|
|
5869
5872
|
function Ws(e) {
|
|
5870
5873
|
Et = e;
|
|
5871
5874
|
}
|
|
5872
|
-
const bl = { Field:
|
|
5875
|
+
const bl = { Field: Os, Run: Gs, Get: zs, useValue: Ws }, Ks = "_f_q3r0i_1", Zs = {
|
|
5873
5876
|
f: Ks
|
|
5874
5877
|
};
|
|
5875
5878
|
let ee = {};
|
|
@@ -6191,7 +6194,7 @@ export {
|
|
|
6191
6194
|
se as Store,
|
|
6192
6195
|
yl as Switch,
|
|
6193
6196
|
oo as Tabs,
|
|
6194
|
-
|
|
6197
|
+
S as Telegram,
|
|
6195
6198
|
wl as Triage,
|
|
6196
6199
|
pl as User
|
|
6197
6200
|
};
|
package/dist/index.umd.js
CHANGED
|
@@ -28,4 +28,4 @@ Check the top-level render call using <`+k+">.")}return p}}function Ln(s,p){{if(
|
|
|
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} />`,Tt,we,$r,we),On[we+Tt]=!0}}return s===i?Tr(G):Er(G),G}}function Ir(s,p,k){return Gn(s,p,k,!0)}function Mr(s,p,k){return Gn(s,p,k,!1)}var Nr=Mr,Dr=Ir;Me.Fragment=i,Me.jsx=Nr,Me.jsxs=Dr}()),Me}process.env.NODE_ENV==="production"?at.exports=Wa():at.exports=Ka();var n=at.exports;const Za={notice:"_notice_9i5tr_2",error:"_error_9i5tr_9",success:"_success_9i5tr_12",remark:"_remark_9i5tr_15",copy:"_copy_9i5tr_18","show-notice":"_show-notice_9i5tr_1","hide-notice":"_hide-notice_9i5tr_1"};let ce={};function Ua(){let[e,t]=b.useState([]);return ce.set=a=>{t([...e,a])},ce.del=a=>{t(e.filter(i=>i.key!==a))},e.length===0?"":n.jsx("ul",{className:Za.notice,children:e.map(a=>a.item)})}function Ne({data:e}){let[t,a]=b.useState("show");b.useEffect(()=>{setTimeout(function(){a("hide")},1800),setTimeout(function(){ce.del(e.key)},2500)},[e.key]);let i,o;switch(e.type){case"error":i=n.jsx(xe.error,{}),o="Ошибка:";break;case"success":i=n.jsx(xe.success,{}),o="Информация:";break;case"copy":i=n.jsx(xe.success,{}),o="Копирование:";break;case"remark":i=n.jsx(xe.success,{}),o="Подсказка:";break;default:i=n.jsx(xe.success,{}),o="Предупреждение:";break}return n.jsxs("li",{className:"item "+e.type,"data-status":t,children:[i,n.jsx("b",{children:o}),n.jsx("p",{children:e.text})]})}function qa(e){let t=Date.now(),a={key:t,...e};ce.set({item:n.jsx(Ne,{data:a},t),key:t})}function Ha(e){let t=Date.now(),a={key:t,text:e,type:"error"};ce.set({item:n.jsx(Ne,{data:a},t),key:t})}function Ya(e){let t=Date.now(),a={key:t,text:e,type:"success"};ce.set({item:n.jsx(Ne,{data:a},t),key:t})}function Va(e){let t=Date.now(),a={key:t,text:e,type:"remark"};ce.set({item:n.jsx(Ne,{data:a},t),key:t})}function Ja(e){let t=Date.now(),a={key:t,text:e,type:"copy"};ce.set({item:n.jsx(Ne,{data:a},t),key:t})}const xe={};xe.error=()=>n.jsxs("svg",{viewBox:"0 0 24 24",fill:"none",children:[n.jsx("path",{d:"M12 22C7.28595 22 4.92893 22 3.46447 20.5355C2 19.0711 2 16.714 2 12C2 7.28595 2 4.92893 3.46447 3.46447C4.92893 2 7.28595 2 12 2C16.714 2 19.0711 2 20.5355 3.46447C22 4.92893 22 7.28595 22 12C22 16.714 22 19.0711 20.5355 20.5355C19.0711 22 16.714 22 12 22Z",fill:"#bb2014"}),n.jsx("path",{d:"M8.96967 8.96967C9.26256 8.67678 9.73744 8.67678 10.0303 8.96967L12 10.9394L13.9697 8.96969C14.2626 8.6768 14.7374 8.6768 15.0303 8.96969C15.3232 9.26258 15.3232 9.73746 15.0303 10.0303L13.0607 12L15.0303 13.9697C15.3232 14.2625 15.3232 14.7374 15.0303 15.0303C14.7374 15.3232 14.2625 15.3232 13.9696 15.0303L12 13.0607L10.0304 15.0303C9.73746 15.3232 9.26258 15.3232 8.96969 15.0303C8.6768 14.7374 8.6768 14.2626 8.96969 13.9697L10.9394 12L8.96967 10.0303C8.67678 9.73744 8.67678 9.26256 8.96967 8.96967Z",fill:"#fff"})]}),xe.success=()=>n.jsxs("svg",{viewBox:"0 0 24 24",fill:"none",children:[n.jsx("path",{d:"M12 22C7.28595 22 4.92893 22 3.46447 20.5355C2 19.0711 2 16.714 2 12C2 7.28595 2 4.92893 3.46447 3.46447C4.92893 2 7.28595 2 12 2C16.714 2 19.0711 2 20.5355 3.46447C22 4.92893 22 7.28595 22 12C22 16.714 22 19.0711 20.5355 20.5355C19.0711 22 16.714 22 12 22Z",fill:"#367738"}),n.jsx("path",{d:"M16.0303 8.96967C16.3232 9.26256 16.3232 9.73744 16.0303 10.0303L11.0303 15.0303C10.7374 15.3232 10.2626 15.3232 9.96967 15.0303L7.96967 13.0303C7.67678 12.7374 7.67678 12.2626 7.96967 11.9697C8.26256 11.6768 8.73744 11.6768 9.03033 11.9697L10.5 13.4393L14.9697 8.96967C15.2626 8.67678 15.7374 8.67678 16.0303 8.96967Z",fill:"#fff"})]});const it={alerts:"_alerts_1pds5_1",menuAnimation:"_menuAnimation_1pds5_1",menuItemAnimation:"_menuItemAnimation_1pds5_1","--body":"_--body_1pds5_103",allert:"_allert_1pds5_111","--form":"_--form_1pds5_111",al:"_al_1pds5_1"};let De={};function Xa(){let[e,t]=b.useState("");return De.set=a=>t(a),De.del=()=>t(""),n.jsx(n.Fragment,{children:e})}const Qa=({data:e,callback:t})=>(e.button=e.button===void 0?"Подтвердить":e.button,n.jsxs("div",{className:it.alerts,children:[n.jsxs("dl",{children:[n.jsx("dt",{children:e.title}),n.jsx("dd",{children:e.text}),n.jsx("ul",{children:n.jsx("button",{"data-color":e.color||"blue",onClick:()=>{t(),De.del()},children:e.button})})]}),n.jsx("div",{className:it["--body"],onClick:De.del})]}));function ei(e,t){De.set(n.jsx(Qa,{data:e,callback:t}))}const Ut={btn:"_btn_1hz2s_6",confirm:"_confirm_1hz2s_19"};function qt({onClick:e,onSend:t,label:a,onRef:i}){let[o,r]=b.useState(!1);const l=()=>{if(e)return e();o||(r(!0),t&&t(r))};return n.jsx("button",{ref:i,className:[Ut.btn,Ut.confirm].join(" "),onClick:l,children:o?"Ожидайте":a})}const ne={white:"_white_11p39_14",black:"_black_11p39_26",shake:"_shake_11p39_1",modal:"_modal_11p39_73",o:"_o_11p39_83",w:"_w_11p39_14",h:"_h_11p39_107",l:"_l_11p39_121",t:"_t_11p39_159",m:"_m_11p39_73",x:"_x_11p39_167",s:"_s_11p39_177",c:"_c_11p39_182",f:"_f_11p39_187",btn:"_btn_11p39_230",g:"_g_11p39_243","size-a":"_size-a_11p39_296","size-s":"_size-s_11p39_300","size-m":"_size-m_11p39_304","size-l":"_size-l_11p39_308","size-x":"_size-x_11p39_312","size-f":"_size-f_11p39_316",confirm:"_confirm_11p39_322",cancel:"_cancel_11p39_327",disabled:"_disabled_11p39_332",await:"_await_11p39_339",active:"_active_11p39_389",coincidence:"_coincidence_11p39_395",sa:"_sa_11p39_431",ss:"_ss_11p39_435",sm:"_sm_11p39_439",sl:"_sl_11p39_443",sx:"_sx_11p39_447",sf:"_sf_11p39_451"};let ge={};function ti({config:e}){let[t,a]=b.useState([]);return ge.x=i=>{i||a([])},ge.config=e,ge.add=i=>{a([...t,i])},n.jsx(n.Fragment,{children:t.map(i=>i)})}function ni({title:e,children:t,button:a,tabs:i,size:o="m",menu:r}){const[l,d]=b.useState(!0),c=b.useRef(),_=f=>{if(a){if(a.onClick)return f(!1),a.onClick({setOpen:d});if(a.onSend)return a.onSend({setOpen:d,disabled:f})}},u=()=>{c.current.setAttribute("shake",!0),setTimeout(()=>{c.current.setAttribute("shake",!1)},1e3)};return n.jsx(n.Fragment,{children:l?n.jsxs("div",{className:`${ne.modal} ${ne.white}`,children:[n.jsx("div",{className:ne.o,onClick:u}),n.jsxs("div",{className:[ne.w,ne[`s${o}`]].join(" "),ref:c,children:[n.jsxs("div",{className:ne.h,children:[n.jsx("div",{className:ne.t,children:e}),n.jsxs("div",{className:ne.m,children:[i&&n.jsx("nav",{children:i.map((f,g)=>n.jsx("span",{onClick:f.onClick,className:f.active?"active":"",children:f.name},g))}),r]}),n.jsx("div",{className:ne.x,onClick:()=>{d(!1)},children:n.jsx("svg",{viewBox:"0 0 24 24",fill:"none",children:n.jsx("path",{d:"M19.0005 4.99988L5.00045 18.9999M5.00045 4.99988L19.0005 18.9999",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round"})})})]}),t,a!==void 0?n.jsx(qt,{label:a.label,onSend:_}):""]})]}):""})}function ai(e){ge.add(n.jsx(ii,{children:e},String(Date.now())))}function ii({children:e}){return n.jsx(n.Fragment,{children:e})}function oi(e){if(e.target.classList[0]!=="modal")return;let t=e.target.children[0];t.setAttribute("shake",!0),setTimeout(()=>{t.setAttribute("shake",!1)},1e3)}function ri({type:e,name:t,params:a}){let[i,o]=b.useState(null);return b.useEffect(()=>{ge.config(e,t,a,o)},[a.id]),n.jsx(n.Fragment,{children:i})}function si(e,t){ge.config(e,t)}function li(e){ge.x(e)}const ot={};function di(e,t){ot[e]=t}function _i(e,t){ot[e]!==void 0&&ot[e](t)}const ue={};function ci(e,t){const[a,i]=b.useState(t);return b.useEffect(()=>{if(ue[e])return ue[e].push(i);ue[e]=[i]},[]),[a]}function ui(e,t){if(ue[e])return ue[e].push(t);ue[e]=[t]}function fi(e,t){ue[e]&&ue[e].forEach(a=>a(t))}const $e={setListener:_i,useListener:di,setEmitter:fi,useEmitter:ci,subEmitter:ui};function mi(){let[e,t]=b.useState([]);return $e.useListener("form",a=>{t([a])}),n.jsx(n.Fragment,{children:e.map(a=>a)})}const le={Path:ca,setPage:Qn,getPage:Nt,usePage:Xn,isPage:ea,setModule:na,getModule:Dt,useModule:ta,isModule:aa,setTabs:oa,getTabs:Oe,useTabs:ia,isTabs:ra,useId:sa,setId:da,subId:la,getId:$t,isId:_a},Fe={Send:qa,Error:Ha,Remark:Va,Success:Ya,Copy:Ja},Ht=({onClick:e,active:t})=>(t=!!t,n.jsx("div",{role:"switch",onClick:()=>e,"aria-checked":`${t?"true":"false"}`}));function Yt({onClick:e,onSend:t,name:a,onRef:i}){let[o,r]=b.useState(!1);const l=()=>{if(e)return e();o||(r(!0),t&&t(r))};return n.jsx("button",{ref:i,"data-form":"button",className:o?"btn await":"btn confirm pointer",onClick:l,children:o?"Ожидайте":a})}function Vt({value:e,onValue:t,onActive:a,data:i,name:o,view:r,edit:l=!0,active:d=!0,placeholder:c="Введите сообщение"}){const _=b.useRef({value:e,timerId:null,shift:!1,send:!0}),u=()=>{_.current.value.length>0?_.current.send&&(a(!0),_.current.send=!1,_.current.timerId=setTimeout(()=>{_.current.send=!0},3e3)):a(!1)},f=y=>{_.current.value=y.target.textContent,u()},g=y=>{y.keyCode===16&&(_.current.shift=!0),y.keyCode===13&&!_.current.shift&&(y.preventDefault(),_.current.value.length!==0&&(y.target.textContent="",i&&i(_.current.value),t&&t(_.current.value),_.current.value="",a(!1)))},m=y=>{y.keyCode===16&&(_.current.shift=!1)},h=y=>{y.preventDefault(),navigator.clipboard.readText().then(C=>{window.document.execCommand("insertText",!1,C)}).catch(C=>{})},v=()=>{a(!1)},x={spellCheck:"true"};return c&&(x.placeholder=c),l&&d&&(x.contentEditable="plaintext-only"),n.jsx("dl",{"data-form":"message",children:n.jsx("dd",{onPaste:h,onInput:f,onKeyUp:m,onKeyDown:g,onBlur:v,...x,suppressContentEditableWarning:!0,children:e})})}function Jt(e){let t=()=>e.title?n.jsx("dt",{children:e.title}):"",a=e.edit!==void 0?e.edit:!0,i=e.active!==void 0?e.active:!0,o=e.placeholder!==void 0?e.placeholder:"",r=c=>{e.onValue({value:c.target.textContent,name:e.name})},l=c=>{c.key==="Enter"&&c.preventDefault()},d=c=>{c.preventDefault(),navigator.clipboard.readText().then(_=>{window.document.execCommand("insertText",!1,_)}).catch(_=>{})};return n.jsxs("dl",{"data-form":"input","type-data":"generator",children:[t(),n.jsx("dd",{onPaste:d,onInput:r,onKeyDown:l,contentEditable:a&&i?"plaintext-only":"false","data-placeholder":o,suppressContentEditableWarning:!0,children:e.value})]})}let fe={};fe.KeyDown=e=>{e.key==="Enter"&&e.preventDefault()},fe.PasteOne=e=>{e.preventDefault(),navigator.clipboard.readText().then(t=>{t=t.replace(/^\s*/,"").replace(/\s*$/,""),window.document.execCommand("insertText",!1,t)}).catch(t=>{})},fe.Focus=e=>{e.target.textContent.length===0&&(e.target.innerHTML="<br>")},fe.Blur=e=>{e.target.scrollLeft=0,e.target.querySelector("br")!==null&&e.target.querySelector("br").remove()};function Xt({value:e,onValue:t,placeholder:a="",name:i}){let o=(m,h)=>Number(Math.round(m+Math.random()*(h-m))),r=b.useRef(null),l=b.useRef(null),d=o(1e4,99999),c=m=>{m.key!=="Backspace"&&(m.key==="Enter"&&m.preventDefault(),m.target.textContent.length===5&&m.preventDefault(),/\d/.test(m.key)||m.preventDefault())},_=m=>{t({value:Number(m.target.textContent)===d,name:i})},u=m=>{m.preventDefault(),navigator.clipboard.readText().then(h=>{window.document.execCommand("insertText",!1,h.replace(/(\r\n|\n|\r)/gm," ").replace(/[^0-9]/g,"").substring(0,5))}).catch(h=>{})};b.useEffect(()=>{const m=r.current,h=m.getContext("2d");h.clearRect(0,0,m.width,m.height),h.font="30px brush script mt",h.fillStyle="#eee",h.textAlign="center",h.fillText(d,50,27),l.current.textContent=""},[d]);const f={};f.field="captcha";const g={};return a&&(g.placeholder=a),n.jsxs("dl",{...f,children:[n.jsx("dd",{ref:l,onPaste:u,onInput:_,onBlur:fe.Blur,onKeyDown:c,contentEditable:"plaintext-only",suppressContentEditableWarning:!0,...g}),n.jsx("canvas",{ref:r,width:"100",height:"35"})]})}function Qt(e){let t=()=>e.title?n.jsx("dt",{children:e.title}):"",a=()=>e.error?n.jsx("em",{children:e.error}):"",i={n1:"",n2:"",n3:"",n4:"",n5:"",n6:"",code:""},o=_=>{_.preventDefault(),_.target.textContent=_.target.textContent.slice(-1).replace(/[^+\d]/g,"");let u=window.getSelection(),f=_.target.textContent.length;if(i[_.target.id]=_.target.textContent,i.code=i.n1+""+i.n2+i.n3+i.n4+i.n5+i.n6,u.collapse(_.target.firstChild,1),f===0){_.target.blur(),_.target.focus();return}_.target.nextSibling!=null&&_.target.nextSibling.focus()},r=_=>{if(_.key==="Enter"&&_.preventDefault(),_.key==="Backspace"){if(_.preventDefault(),_.target.textContent="",i[_.target.id]="",_.target.previousSibling!=null){let u=_.target.previousSibling.id.slice(1);_.target.previousSibling.textContent="",i["n"+u]="",_.target.previousSibling.focus()}i.code=i.n1+""+i.n2+i.n3+i.n4+i.n5+i.n6}},l=_=>{if(e.real)e.onValue({value:i.code,name:e.name});else if(i.code.length===6&&(e.onValue({value:i.code,name:e.name}),e.empty)){i={n1:"",n2:"",n3:"",n4:"",n5:"",n6:"",code:""};for(let u=1;u<=6;u++){let f=document.getElementById("n"+u);f&&(f.textContent="")}}},d=_=>{_.target.textContent=""},c=_=>{_.preventDefault()};return n.jsxs("dl",{"data-form":"code",children:[t(),n.jsxs("div",{children:[n.jsx("dd",{id:"n1",onKeyDown:r,onKeyUp:l,onFocus:d,onPaste:c,onInput:o,contentEditable:!0}),n.jsx("dd",{id:"n2",onKeyDown:r,onKeyUp:l,onFocus:d,onPaste:c,onInput:o,contentEditable:!0}),n.jsx("dd",{id:"n3",onKeyDown:r,onKeyUp:l,onFocus:d,onPaste:c,onInput:o,contentEditable:!0}),n.jsx("dd",{id:"n4",onKeyDown:r,onKeyUp:l,onFocus:d,onPaste:c,onInput:o,contentEditable:!0}),n.jsx("dd",{id:"n5",onKeyDown:r,onKeyUp:l,onFocus:d,onPaste:c,onInput:o,contentEditable:!0}),n.jsx("dd",{id:"n6",onKeyDown:r,onKeyUp:l,onFocus:d,onPaste:c,onInput:o,contentEditable:!0})]}),a()]})}function en(e){let t=()=>e.title?n.jsx("dt",{children:e.title}):"",a=()=>e.error?n.jsx("em",{children:e.error}):"";e.edit!==void 0&&e.edit,e.active!==void 0&&e.active;let[i,o]=b.useState(e.value),r=l=>{let d=l.target.getAttribute("set-color");o(d),e.onValue({value:d,name:e.name})};return n.jsx(n.Fragment,{children:e.view==="icon"?n.jsx("i",{"data-icon":"F043"}):n.jsxs("dl",{children:[t(),n.jsxs("dd",{"el-val":i,children:[n.jsx("em",{onClick:r,"set-color":"0"}),n.jsx("em",{onClick:r,"set-color":"1"}),n.jsx("em",{onClick:r,"set-color":"2"}),n.jsx("em",{onClick:r,"set-color":"3"}),n.jsx("em",{onClick:r,"set-color":"4"}),n.jsx("em",{onClick:r,"set-color":"5"})]}),a()]})})}function rt({label:e,value:t,placeholder:a,onValue:i,name:o}){const r="__.__.____",l=new Set("_"),d=(h=>Array.from(r,(v,x)=>l.has(v)?h=x+1:h))(0),c=[...r].findIndex(h=>l.has(h)),_=new RegExp("\\d","g"),u=h=>(h=h.match(_)||[],Array.from(r,v=>(h[0]===v||l.has(v))&&h.shift()||v)),f=h=>{const[v,x]=[h.target.selectionStart,h.target.selectionEnd].map(y=>(y=u(h.target.value.slice(0,y)).findIndex(C=>l.has(C)),y<0?d[d.length-1]:g?d[y-1]||c:y));h.target.value=u(h.target.value).join(""),h.target.setSelectionRange(v,x),g=!1,i==null||i({name:o,value:h.target.value})};let g=!1;const m={};return m.field="input",n.jsxs("dl",{...m,children:[n.jsx("dt",{}),n.jsx("dd",{children:n.jsx("input",{type:"tel",placeholder:a,onChange:f,inputMode:"numeric",onKeyDown:h=>g=h.key==="Backspace",onFocus:f,onBlur:h=>h.target.value===r&&(h.target.value="")})})]})}function pi({children:e}){return n.jsx("div",{className:"l",children:n.jsx("ul",{children:e})})}function hi({children:e}){return n.jsx("div",{className:ne.s,children:e})}function xi({children:e,className:t}){let a={};return t&&(a.className=t),n.jsx("div",{"data-form":"outline",...a,children:n.jsx("ul",{children:e})})}function gi({children:e}){return n.jsx("div",{className:ne.c,children:e})}const st={List:pi,Scroll:hi,Main:ni,Add:ai,Icon:ri,Open:si,Shake:oi,Form:xi,Center:gi,Close:li};function lt({value:e,onValue:t,name:a,placeholder:i="",title:o,error:r,hide:l=!1,edit:d=!0,show:c=!0,active:_=!0,after:u="",view:f,modal:g,module:m,options:h,className:v}){let[x,y]=b.useState(e),C=z=>{if(!(d&&_)||!g)return;let O=g.split(".");st.Open(O[1],{callback:U=>{t&&t({value:U,name:a}),y(U)},onValue:t,options:h,name:a,value:e})};const T={};T.field="input",v&&(T.className=v);const I={};return i&&(I.placeholder=i),l?n.jsx(n.Fragment,{}):n.jsxs("dl",{...T,children:[o&&n.jsx("dt",{children:o}),n.jsx("dd",{...I,onClick:C,edit:(d&&_)+"","data-after":u,children:x}),r&&n.jsx("em",{children:r})]})}function bi(e,t){t===void 0?(t=e,e=new Date):e=new Date(e);let a={yyyy:e.getFullYear(),yy:(""+e.getFullYear()).slice(-2),mm:("0"+(e.getMonth()+1)).slice(-2),dd:("0"+e.getDate()).slice(-2),HH:("0"+e.getHours()).slice(-2),MM:("0"+e.getMinutes()).slice(-2),SS:("0"+e.getSeconds()).slice(-2),__:" ",_:" "};for(const i in a)t=t.replace(i,a[i]);return t}function vi(e){let t=["Января","Февраля","Марта","Апреля","Мая","Июня","Июля","Августа","Сентября","Октября","Ноября","Декабря"],a=new Date(e);return{day:(""+a.getFullYear()).slice(-2)+""+("0"+(a.getMonth()+1)).slice(-2)+("0"+a.getDate()).slice(-2),name:a.getDate()+" "+t[a.getMonth()]}}const ki=e=>{function t(T,I){var z,U,O;T=T??"",I=I??1;for(var z=[],O=0,U=T.length;O<U;)z.push(T.slice(O,O+=I));return z}function a(T,I){var z=[2,0,1,1,1,2];return I[T>4&&T<20?2:z[Math.min(T,5)]]}var i={null:"ноль",a1:["один","два","три","четыре","пять","шесть","семь","восемь","девять"],a2:["одна","две","три","четыре","пять","шесть","семь","восемь","девять"],a10:["десять","одиннадцать","двенадцать","тринадцать","четырнадцать","пятнадцать","шестнадцать","семнадцать","восемнадцать","девятнадцать"],a20:["двадцать","тридцать","сорок","пятьдесят","шестьдесят","семьдесят","восемьдесят","девяносто"],a100:["сто","двести","триста","четыреста","пятьсот","шестьсот","семьсот","восемьсот","девятьсот"],uc:["копейка","копейки","копеек"],ur:["рубль","рубля","рублей"],u3:["тысяча","тысячи","тысяч"],u2:["миллион","миллиона","миллионов"],u1:["миллиард","миллиарда","миллиардов"]},o,r,l,d,x,c,_,v,u,f,g,m;u=parseFloat(e).toFixed(2).split("."),c=u[0],d=u[1];var h=12-c.length;if(h<0)return!1;for(var v=[];h--;)v.push("0");c=v.join("")+c;var x=[];if(c>0){f=t(c,3);for(var y=-1;y<f.length;y++)if(_=f[y],_>0&&(g=t(_,1),o=parseInt(g[0]),r=parseInt(g[1]),l=parseInt(g[2]),x.push(i.a100[o-1]),m=y+1==3?"a2":"a1",r>1?x.push(i.a20[r-2]+(l>0?" "+i[m][l-1]:"")):x.push(r>0?i.a10[l]:i[m][l-1]),f.length>y+1)){var C=i["u"+(y+1)];x.push(a(_,C))}}else x.push(i.null);return x.push(a(c,i.ur)),x.push(d+" "+a(d,i.uc)),x.join(" ").replace(RegExp(" {2,}","g")," ").trimLeft()};function yi(e){let t=-1,a=[" kB"," MB"," GB"," TB","PB","EB","ZB","YB"];do e=e/1024,t++;while(e>1024);return Math.max(e,.1).toFixed(1)+a[t]}function wi(e){let t={};return t["application/atom+xml"]="atom",t["application/json"]="json",t["application/javascript"]="js",t["application/ogg"]="ogg",t["application/pdf"]="pdf",t["application/soap+xml"]="soap",t["application/font-woff"]="woff",t["application/xhtml+xml"]="xml",t["application/xml-dtd"]="dtd",t["application/xop+xml"]="xop",t["application/zip"]="zip",t["application/gzip"]="gzip",t["application/x-bittorrent"]="bittorrent",t["application/x-tex"]="tex",t["application/xml"]="xml",t["application/msword"]="doc",t["image/svg+xml"]="svg",t[e]}function Ci(e,t,a,i){let o={sexM:"m",sexF:"f",gcaseIm:"nominative",gcaseNom:"nominative",gcaseRod:"genitive",gcaseGen:"genitive",gcaseDat:"dative",gcaseVin:"accusative",gcaseAcc:"accusative",gcaseTvor:"instrumentative",gcaseIns:"instrumentative",gcasePred:"prepositional",gcasePos:"prepositional",rules:{lastName:{exceptions:[" дюма,тома,дега,люка,ферма,гамарра,петипа,шандра . . . . ."," гусь,ремень,камень,онук,богода,нечипас,долгопалец,маненок,рева,кива . . . . ."," вий,сой,цой,хой -я -ю -я -ем -е"],suffixes:["f б,в,г,д,ж,з,й,к,л,м,н,п,р,с,т,ф,х,ц,ч,ш,щ,ъ,ь . . . . .","f ска,цка -ой -ой -ую -ой -ой","f ая --ой --ой --ую --ой --ой"," ская --ой --ой --ую --ой --ой","f на -ой -ой -у -ой -ой"," иной -я -ю -я -ем -е"," уй -я -ю -я -ем -е"," ца -a -е -у -ей -е"," рих а у а ом е"," ия . . . . ."," иа,аа,оа,уа,ыа,еа,юа,эа . . . . ."," их,ых . . . . ."," о,е,э,и,ы,у,ю . . . . ."," ова,ева -ой -ой -у -ой -ой"," га,ка,ха,ча,ща,жа -и -е -у -ой -е"," ца -и -е -у -ей -е"," а -ы -е -у -ой -е"," ь -я -ю -я -ем -е"," ия -и -и -ю -ей -и"," я -и -е -ю -ей -е"," ей -я -ю -я -ем -е"," ян,ан,йн а у а ом е"," ынец,обец --ца --цу --ца --цем --це"," онец,овец --ца --цу --ца --цом --це"," ц,ч,ш,щ а у а ем е"," ай -я -ю -я -ем -е"," гой,кой -го -му -го --им -м"," ой -го -му -го --ым -м"," ах,ив а у а ом е"," ший,щий,жий,ний --его --ему --его -м --ем"," кий,ый --ого --ому --ого -м --ом"," ий -я -ю -я -ем -и"," ок --ка --ку --ка --ком --ке"," ец --ца --цу --ца --цом --це"," в,н а у а ым е"," б,г,д,ж,з,к,л,м,п,р,с,т,ф,х а у а ом е"]},firstName:{exceptions:[" лев --ьва --ьву --ьва --ьвом --ьве"," павел --ла --лу --ла --лом --ле","m шота . . . . .","m пётр ---етра ---етру ---етра ---етром ---етре","f рашель,нинель,николь,габриэль,даниэль . . . . ."],suffixes:[" е,ё,и,о,у,ы,э,ю . . . . .","f б,в,г,д,ж,з,й,к,л,м,н,п,р,с,т,ф,х,ц,ч,ш,щ,ъ . . . . .","f ь -и -и . ю -и","m ь -я -ю -я -ем -е"," га,ка,ха,ча,ща,жа -и -е -у -ой -е"," ша -и -е -у -ей -е"," а -ы -е -у -ой -е"," ия -и -и -ю -ей -и"," я -и -е -ю -ей -е"," ей -я -ю -я -ем -е"," ий -я -ю -я -ем -и"," й -я -ю -я -ем -е"," б,в,г,д,ж,з,к,л,м,н,п,р,с,т,ф,х,ц,ч а у а ом е"]},middleName:{suffixes:[" ич а у а ем е"," на -ы -е -у -ой -е"]}},initialized:!1,init:function(){this.initialized||(this.prepareRules(),this.initialized=!0)},prepareRules:function(){for(var l in this.rules)for(var d in this.rules[l])for(var c=0,_=this.rules[l][d].length;c<_;c++)this.rules[l][d][c]=this.rule(this.rules[l][d][c])},rule:function(l){var d=l.match(/^\s*([fm]?)\s*(\S+)\s+(\S+)\s+(\S+)\s+(\S+)\s+(\S+)\s+(\S+)\s*$/);return d?{sex:d[1],test:d[2].split(","),mods:[d[3],d[4],d[5],d[6],d[7]]}:!1},word:function(l,d,c,_){if(_===this.gcaseNom)return l;if(l.match(/[-]/)){for(var u=l.split("-"),f=0,g=u.length;f<g;f++)u[f]=this.word(u[f],d,c,_);return u.join("-")}if(l.match(/^[А-ЯЁ]\.?$/i))return l;this.init();var m=this.rules[c];let h;return m.exceptions&&(h=this.pick(l,d,_,m.exceptions,!0),h)?h:(h=this.pick(l,d,_,m.suffixes,!1),h||l)},pick:function(l,d,c,_,u){let f=l.toLowerCase();for(var g=0,m=_.length;g<m;g++)if(this.ruleMatch(f,d,_[g],u))return this.applyMod(l,c,_[g]);return!1},ruleMatch:function(l,d,c,_){if(c.sex===this.sexM&&d===this.sexF||c.sex===this.sexF&&d!==this.sexF)return!1;for(var u=0,f=c.test.length;u<f;u++){var g=_?l:l.substr(Math.max(l.length-c.test[u].length,0));if(g===c.test[u])return!0}return!1},applyMod:function(l,d,c){let _;switch(d){case this.gcaseNom:_=".";break;case this.gcaseGen:_=c.mods[0];break;case this.gcaseDat:_=c.mods[1];break;case this.gcaseAcc:_=c.mods[2];break;case this.gcaseIns:_=c.mods[3];break;case this.gcasePos:_=c.mods[4];break}for(var u=0,f=_.length;u<f;u++){var g=_.substr(u,1);switch(g){case".":break;case"-":l=l.substr(0,l.length-1);break;default:l+=g}}return l},getSex:()=>{if(o.mn.length>2)switch(o.mn.substr(o.mn.length-2)){case"ич":return"m";case"на":return"f"}return""},fullName:l=>((o.fullNameSurnameLast?"":o.lastName(l)+" ")+o.firstName(l)+" "+o.middleName(l)+(o.fullNameSurnameLast?" "+o.lastName(l):"")).replace(/^ +| +$/g,""),lastName:l=>o.word(o.ln,o.sex,"lastName",l),firstName:l=>o.word(o.fn,o.sex,"firstName",l),middleName:l=>o.word(o.mn,o.sex,"middleName",l)};if(typeof t>"u"){var r=e.match(/^\s*(\S+)(\s+(\S+)(\s+(\S+))?)?\s*$/);if(!r)return"Cannot parse supplied name";r[5]&&r[3].match(/(ич|на)$/)&&!r[5].match(/(ич|на)$/)?(e=r[5],t=r[1],a=r[3],o.fullNameSurnameLast=!0):(e=r[1],t=r[3],a=r[5])}return o.ln=e,o.fn=t||"",o.mn=a||"",o.sex=i||o.getSex(),o}function ji(e){let t=e.split(" ");switch(t.length){case 2:return t[0]+" "+t[1].substring(0,1)+".";case 3:return t[0]+" "+t[1].substring(0,1)+"."+t[2].substring(0,1)+".";default:return e}}function Si(e){return{1:{val:"01",name:"Январь",names:"Января",abc:"Янв"},2:{val:"02",name:"Февраль",names:"Февраля",abc:"Февр"},3:{val:"03",name:"Март",names:"Марта",abc:"Март"},4:{val:"04",name:"Апрель",names:"Апреля",abc:"Апр"},5:{val:"05",name:"Май",names:"Мая",abc:"Май"},6:{val:"06",name:"Июнь",names:"Июня",abc:"Июнь"},7:{val:"07",name:"Июль",names:"Июля",abc:"Июль"},8:{val:"08",name:"Август",names:"Августа",abc:"Авг"},9:{val:"09",name:"Сентябрь",names:"Сентебря",abc:"Сент"},10:{val:"10",name:"Октябрь",names:"Октября",abc:"Окт"},11:{val:"11",name:"Ноябрь",names:"Ноября",abc:"Нояб"},12:{val:"12",name:"Декабрь",names:"Декабря",abc:"Дек"}}[e]}function Bi(e){return parseFloat(e).toFixed(2).replace(/(\d)(?=(\d{3})+\.)/g,"$1 ")}function Ei(e,t){let a=t+"";for(;a.length<e;)a="0"+a;return a}function Ti(e,t,a){let i=t/e*a;return(typeof i!="number"||i===1/0)&&(i=0),parseFloat(i).toFixed(1)}function Ii(e){return e.charAt(0).toUpperCase()+e.slice(1)}function Mi(e,t){e=Math.abs(e)%100;let a=e%10;return e>10&&e<20?t[2]:a>1&&a<5?t[1]:a===1?t[0]:t[2]}function Ni(e,t,a){return he(e,t)?he(e,t).n:a||""}function Di(e,t){return e.reduce(function(a,i){let o=t instanceof Function?t(i):i[t];return a[o]!==void 0||(a[o]={}),a[o][i.id]=i,a},{})}function $i(e){return parseInt((Date.now()-new Date(e).getTime())/31536e6+"")+""}const be={Age:$i,Date:bi,MoneyString:ki,DateSort:vi,Size:yi,TypeFiles:wi,Cases:Ci,Initials:ji,Month:Si,Money:Bi,Number:Ei,Percent:Ti,CapitalizeFirstLetter:Ii,DeclensionWord:Mi,Select:Ni,ObjectByArray:Di};function dt(e){let t=e.value,a=f=>e.type==="multi"?f.replace(/[^+\d.+-]/g,""):f.replace(/[^+\d.]/g,""),i=(f,g)=>{let m=document.createRange(),h=window.getSelection();m.setStart(g.childNodes[0],f),m.collapse(!0),h.removeAllRanges(),h.addRange(m),g.focus()},o=f=>{e.onValue({value:a(f.target.textContent),name:e.name}),f.target.textContent=a(f.target.textContent),f.target.textContent.length>0&&i(f.target.textContent.length,f.target)},r=f=>{f.target.textContent===""&&(f.target.textContent=0),e.onValue({value:a(f.target.textContent),name:e.name}),f.target.textContent=be.Money(f.target.textContent)},l=f=>{f.target.textContent=a(f.target.textContent)},d=f=>{f.key==="Enter"&&f.preventDefault()},c=f=>{f.preventDefault(),navigator.clipboard.readText().then(g=>{g=g.replace(/^\s*/,"").replace(/\s*$/,""),window.document.execCommand("insertText",!1,g)}).catch(g=>{})},_=()=>e.title?n.jsx("dt",{children:e.title}):"",u=()=>e.error?n.jsx("em",{children:e.error}):"";return n.jsxs("dl",{"data-form":"input",children:[_(),n.jsx("dd",{onInput:o,onPaste:c,onBlur:r,onKeyDown:d,onFocus:l,contentEditable:!0,suppressContentEditableWarning:!0,"e-after":e.after,children:be.Money(t)}),u()]})}const tn={o:"_o_1kqkq_1",c:"_c_1kqkq_11"};function nn({value:e,onValue:t,name:a,view:i,error:o,edit:r=!0,active:l=!0,title:d,placeholder:c="",after:_}){let[u,f]=b.useState(e);b.useEffect(()=>{f(e)},[e]);let g=v=>{f(v),t&&t({value:v,name:a})},m=v=>{if(!r||!l)return;const x=v.target.getBoundingClientRect(),y=x.left,C=x.top;$e.setListener("form",n.jsx(Fi,{position:{x:y,y:C},onValue:g,date:u},new Date().getTime()))};const h={};return c&&(h.placeholder=c),n.jsx(n.Fragment,{children:i==="icon"?n.jsx("i",{"data-icon":"F043",onClick:m}):n.jsxs("dl",{children:[d&&n.jsx("dt",{children:d}),n.jsx("dd",{onClick:m,...h,children:be.Date(u,"mm.yyyy")}),o&&n.jsx("em",{children:o})]})})}const Fi=e=>{let[t,a]=b.useState(!0),i=new Date,o=new Date(e.date),r={y:parseInt(i.getFullYear()),m:parseInt(i.getMonth())+1},l={y:parseInt(o.getFullYear()),m:parseInt(o.getMonth())+1},[d,c]=b.useState(l.y),_=()=>{a(!1)},u=()=>{c(d+1)},f=()=>{c(d-1)},g=y=>{e.onValue(d+"-"+be.Number(2,y)),_()},m=y=>r.y===l.y&&r.m===y?"_FFEB3B":"",h=Array(12).fill("").map((y,C)=>C+1),v=window.innerHeight-e.position.y+33<320?e.position.y-312:e.position.y+33,x=window.innerWidth-e.position.x<265?e.position.x-235:e.position.x;return n.jsx(n.Fragment,{children:t?n.jsxs(n.Fragment,{children:[n.jsx("div",{className:tn.o,onClick:()=>_()},new Date().getTime()),n.jsxs("div",{className:tn.c,style:{top:v+"px",left:x+"px"},children:[n.jsxs("s",{children:[n.jsx("i",{"data-icon":"F021",onClick:()=>f()}),n.jsx("h2",{children:d}),n.jsx("i",{"data-icon":"F022",onClick:()=>u()})]}),n.jsx("div",{children:h.map((y,C)=>n.jsx("span",{onClick:()=>{g(y)},color:m(y),children:n.jsx("b",{children:be.Month(y).abc})},C))})]})]}):""})};function an(e){let t=()=>e.title?n.jsx("dt",{children:e.title}):"",a=()=>e.error?n.jsx("em",{children:e.error}):"",[i,o]=b.useState(!1),r=e.edit!==void 0?e.edit:!0,l=e.active!==void 0?e.active:!0,c=!!(e.hide&&(e.value===""||e.value===void 0))&&!(r&&l);i=r?!0:i;let _=e.placeholder!==void 0?e.placeholder:"Заметка пуста",u=x=>{e.onValue&&e.onValue({value:x.target.innerText,name:e.name})},f=x=>{x.preventDefault(),navigator.clipboard.readText().then(y=>{window.document.execCommand("insertText",!1,y)}).catch(y=>{})},g=x=>{r||o(!i)};const m=x=>{e.onSave&&e.onSave({value:x.target.innerText,name:e.name})},h={};h.field="notes",e.className&&(h.className=e.className);const v={};return _&&(v.placeholder=_),i&&(v.open=""),r&&l&&(v.edit=""),c?n.jsx(n.Fragment,{}):n.jsxs("dl",{...h,children:[t(),n.jsx("dd",{onPaste:f,onInput:u,onBlur:m,contentEditable:r&&l?"plaintext-only":"false",...v,onDoubleClick:g,suppressContentEditableWarning:!0,children:e.value}),a()]})}function _t({onValue:e,active:t,max:a,edit:i,title:o,error:r,show:l,hide:d,value:c,placeholder:_,className:u,name:f,after:g,view:m}){i=i!==void 0?i:!0,t=t!==void 0?t:!0,d=!!(d&&(c===""||c===void 0))&&!(i&&t),_=_!==void 0?_:"",a=a!==void 0?a:99;let v=y=>{e==null||e({name:f,value:y.currentTarget.value})};const x={};return x.field="input",u&&(x.className=u),d?n.jsx(n.Fragment,{}):n.jsxs("dl",{...x,children:[o&&n.jsx("dt",{children:o}),n.jsx("dd",{children:n.jsx("input",{name:f,type:"tel",inputMode:"numeric",onChange:v,placeholder:_})}),r&&n.jsx("em",{children:r})]})}function on({value:e,onValue:t,name:a,placeholder:i="",className:o,title:r,error:l,edit:d=!0,active:c=!0,reload:_=!1,after:u=""}){let f=x=>{t&&t({value:x.target.textContent,name:a,reload:_})},g=x=>{x.key==="Enter"&&x.preventDefault()},m=x=>{x.preventDefault(),navigator.clipboard.readText().then(y=>{window.document.execCommand("insertText",!1,y.replace(/(\r\n|\n|\r)/gm," "))}).catch(y=>{})};const h={};h.field="password",o&&(h.className=o);const v={};return i&&(v.placeholder=i),n.jsxs("dl",{...h,children:[r?n.jsx("dt",{children:r}):"",n.jsx("dd",{onPaste:m,onInput:f,onKeyDown:g,onBlur:fe.Blur,contentEditable:d&&c?"plaintext-only":"false",...v,suppressContentEditableWarning:!0,children:e}),l?n.jsx("em",{children:l}):""]})}const ct={0:{name:"Heard Island and Mcdonald Islands",dial_code:"+0",code:"HM",mask:"+0(___) ___-__-__"},1:{name:"United States",dial_code:"+1",code:"US",mask:"+1(___) ___-__-__"},7:{name:"Russia",dial_code:"+7",code:"RU",mask:"+7(___) ___-__-__"},20:{name:"Egypt",dial_code:"+20",code:"EG",mask:"+20(___) ___-__-__"},27:{name:"South Africa",dial_code:"+27",code:"ZA",mask:"+27(___) __-__-__"},30:{name:"Greece",dial_code:"+30",code:"GR",mask:"+30(___) ___-__-__"},31:{name:"Netherlands",dial_code:"+31",code:"NL",mask:"+31(___) __-__-__"},32:{name:"Belgium",dial_code:"+32",code:"BE",mask:"+32(___) __-__-__"},33:{name:"France",dial_code:"+33",code:"FR",mask:"+33(___) __-__-__"},34:{name:"Spain",dial_code:"+34",code:"ES",mask:"+34(___) __-__-__"},36:{name:"Hungary",dial_code:"+36",code:"HU",mask:"+36(___) __-__-__"},39:{name:"Italy",dial_code:"+39",code:"IT",mask:"+39(___) ___-__-__"},40:{name:"Romania",dial_code:"+40",code:"RO",mask:"+40(___) __-__-__"},41:{name:"Switzerland",dial_code:"+41",code:"CH",mask:"+41(___) __-__-__"},43:{name:"Austria",dial_code:"+43",code:"AT",mask:"+43(__) ___-__-__"},44:{name:"United Kingdom",dial_code:"+44",code:"GB",mask:"+44(___) ___-__-__"},45:{name:"Denmark",dial_code:"+45",code:"DK",mask:"+45(__) __-__-__"},46:{name:"Sweden",dial_code:"+46",code:"SE",mask:"+46(___) __-__-__"},47:{name:"Svalbard and Jan Mayen",dial_code:"+47",code:"SJ",mask:"+47(__) __-__-__"},48:{name:"Poland",dial_code:"+48",code:"PL",mask:"+48(__) __-__-__"},49:{name:"Germany",dial_code:"+49",code:"DE",mask:"+49(___) ___-__-__"},51:{name:"Peru",dial_code:"+51",code:"PE",mask:"+51(___) __-__-__"},52:{name:"Mexico",dial_code:"+52",code:"MX",mask:"+52(__-__) ___-__-__"},53:{name:"Cuba",dial_code:"+53",code:"CU",mask:"+53(__) __-__-__"},54:{name:"Argentina",dial_code:"+54",code:"AR",mask:"+54(__-__) ___-__-__"},55:{name:"Brazil",dial_code:"+55",code:"BR",mask:"+55(___) ___-__-__"},56:{name:"Chile",dial_code:"+56",code:"CL",mask:"+56(___) __-__-__"},57:{name:"Colombia",dial_code:"+57",code:"CO",mask:"+57(___) ___-__-__"},58:{name:"Venezuela, Bolivarian Republic of Venezuela",dial_code:"+58",code:"VE",mask:"+58(___) ___-__-__"},60:{name:"Malaysia",dial_code:"+60",code:"MY",mask:"+60(___) __-__-__"},61:{name:"Cocos (Keeling) Islands",dial_code:"+61",code:"CC",mask:"+61(___) ___-__-__"},62:{name:"Indonesia",dial_code:"+62",code:"ID",mask:"+62(___) __-__-__"},63:{name:"Philippines",dial_code:"+63",code:"PH",mask:"+63(___) ___-__-__"},64:{name:"Pitcairn",dial_code:"+64",code:"PN",mask:"+64(___) __-__-__"},65:{name:"Singapore",dial_code:"+65",code:"SG",mask:"+65(__) __-__-__"},66:{name:"Thailand",dial_code:"+66",code:"TH",mask:"+66(___) __-__-__"},77:{name:"Kazakhstan",dial_code:"+77",code:"KZ",mask:"+77(__) ___-__-__"},81:{name:"Japan",dial_code:"+81",code:"JP",mask:"+81(___) ___-__-__"},82:{name:"Korea, Republic of South Korea",dial_code:"+82",code:"KR",mask:"+82(___) ___-__-__"},84:{name:"Vietnam",dial_code:"+84",code:"VN",mask:"+84(___) __-__-__"},86:{name:"China",dial_code:"+86",code:"CN",mask:"+86(__-__) ___-__-__"},90:{name:"Turkey",dial_code:"+90",code:"TR",mask:"+90(___) ___-__-__"},91:{name:"India",dial_code:"+91",code:"IN",mask:"+91(___) ___-__-__"},92:{name:"Pakistan",dial_code:"+92",code:"PK",mask:"+92(___) ___-__-__"},93:{name:"Afghanistan",dial_code:"+93",code:"AF",mask:"+93(__) ___-__-__"},94:{name:"Sri Lanka",dial_code:"+94",code:"LK",mask:"+94(___) __-__-__"},95:{name:"Myanmar",dial_code:"+95",code:"MM",mask:"+95(___) ___-__-__"},98:{name:"Iran, Islamic Republic of Persian Gulf",dial_code:"+98",code:"IR",mask:"+98(___) ___-__-__"},211:{name:"South Sudan",dial_code:"+211",code:"SS",mask:"+211(___) ___-__-__"},212:{name:"Morocco",dial_code:"+212",code:"MA",mask:"+212(___) __-__-__"},213:{name:"Algeria",dial_code:"+213",code:"DZ",mask:"+213(__) ___-__-__"},216:{name:"Tunisia",dial_code:"+216",code:"TN",mask:"+216(__) __-__-__"},218:{name:"Libyan Arab Jamahiriya",dial_code:"+218",code:"LY",mask:"+218(___) ___-__-__"},220:{name:"Gambia",dial_code:"+220",code:"GM",mask:"+220(___) __-__"},221:{name:"Senegal",dial_code:"+221",code:"SN",mask:"+221(___) __-__-__"},222:{name:"Mauritania",dial_code:"+222",code:"MR",mask:"+222(__) __-__-__"},223:{name:"Mali",dial_code:"+223",code:"ML",mask:"+223(__) __-__-__"},224:{name:"Guinea",dial_code:"+224",code:"GN",mask:"+224(__) __-__-__"},225:{name:"Cote d'Ivoire",dial_code:"+225",code:"CI",mask:"+225(__) __-__-__"},226:{name:"Burkina Faso",dial_code:"+226",code:"BF",mask:"+226(__) __-__-__"},227:{name:"Niger",dial_code:"+227",code:"NE",mask:"+227(__) __-__-__"},228:{name:"Togo",dial_code:"+228",code:"TG",mask:"+228(__) __-__-__"},229:{name:"Benin",dial_code:"+229",code:"BJ",mask:"+229(__) __-__-__"},230:{name:"Mauritius",dial_code:"+230",code:"MU",mask:"+230(___) __-__"},231:{name:"Liberia",dial_code:"+231",code:"LR",mask:"+231(___) __-__"},232:{name:"Sierra Leone",dial_code:"+232",code:"SL",mask:"+232(__) __-__-__"},233:{name:"Ghana",dial_code:"+233",code:"GH",mask:"+233(___) __-__-__"},234:{name:"Nigeria",dial_code:"+234",code:"NG",mask:"+234(___) ___-__-__"},235:{name:"Chad",dial_code:"+235",code:"TD",mask:"+235(__) __-__-__"},236:{name:"Central African Republic",dial_code:"+236",code:"CF",mask:"+236(__) __-__-__"},237:{name:"Cameroon",dial_code:"+237",code:"CM",mask:"+237(__) __-__-__"},238:{name:"Cape Verde",dial_code:"+238",code:"CV",mask:"+238(___) __-__"},239:{name:"Sao Tome and Principe",dial_code:"+239",code:"ST",mask:"+239(___) ___-__-__"},240:{name:"Equatorial Guinea",dial_code:"+240",code:"GQ",mask:"+240(___) __-__-__"},241:{name:"Gabon",dial_code:"+241",code:"GA",mask:"+241(__) __-__-__"},242:{name:"Congo",dial_code:"+242",code:"CG",mask:"+242(___) __-__-__"},243:{name:"Congo, The Democratic Republic of the Congo",dial_code:"+243",code:"CD",mask:"+243(___) ___-__-__"},244:{name:"Angola",dial_code:"+244",code:"AO",mask:"+244(__) ___-__-__"},245:{name:"Guinea-Bissau",dial_code:"+245",code:"GW",mask:"+245(___) __-__"},246:{name:"British Indian Ocean Territory",dial_code:"+246",code:"IO",mask:"+246(___) ___-__-__"},248:{name:"Seychelles",dial_code:"+248",code:"SC",mask:"+248(___) ___-__-__"},249:{name:"Sudan",dial_code:"+249",code:"SD",mask:"+249(___) __-__-__"},250:{name:"Rwanda",dial_code:"+250",code:"RW",mask:"+250(___) __-__-__"},251:{name:"Ethiopia",dial_code:"+251",code:"ET",mask:"+251(___) __-__-__"},252:{name:"Somalia",dial_code:"+252",code:"SO",mask:"+252(___) ___-__-__"},253:{name:"Djibouti",dial_code:"+253",code:"DJ",mask:"+253(___) ___-__-__"},254:{name:"Kenya",dial_code:"+254",code:"KE",mask:"+254(___) __-__-__"},255:{name:"Tanzania, United Republic of Tanzania",dial_code:"+255",code:"TZ",mask:"+255(___) __-__-__"},256:{name:"Uganda",dial_code:"+256",code:"UG",mask:"+256(___) __-__-__"},257:{name:"Burundi",dial_code:"+257",code:"BI",mask:"+257(__) __-__-__"},258:{name:"Mozambique",dial_code:"+258",code:"MZ",mask:"+258(___) __-__-__"},260:{name:"Zambia",dial_code:"+260",code:"ZM",mask:"+260(___) __-__-__"},261:{name:"Madagascar",dial_code:"+261",code:"MG",mask:"+261(___) __-__-__"},262:{name:"Reunion",dial_code:"+262",code:"RE",mask:"+262(___) __-__-__"},263:{name:"Zimbabwe",dial_code:"+263",code:"ZW",mask:"+263(___) __-__-__"},264:{name:"Namibia",dial_code:"+264",code:"NA",mask:"+264(___) __-__-__"},265:{name:"Malawi",dial_code:"+265",code:"MW",mask:"+265(___) __-__-__"},266:{name:"Lesotho",dial_code:"+266",code:"LS",mask:"+266(__) __-__-__"},267:{name:"Botswana",dial_code:"+267",code:"BW",mask:"+267(__) __-__-__"},268:{name:"Swaziland",dial_code:"+268",code:"SZ",mask:"+268(___) ___-__-__"},269:{name:"Comoros",dial_code:"+269",code:"KM",mask:"+269(___) __-__"},290:{name:"Saint Helena, Ascension and Tristan Da Cunha",dial_code:"+290",code:"SH",mask:"+290(___) ___-__-__"},291:{name:"Eritrea",dial_code:"+291",code:"ER",mask:"+291(___) ___-__-__"},297:{name:"Aruba",dial_code:"+297",code:"AW",mask:"+297(_) __-__-__"},298:{name:"Faroe Islands",dial_code:"+298",code:"FO",mask:"+298(__) __-__"},299:{name:"Greenland",dial_code:"+299",code:"GL",mask:"+299(__) __-__"},345:{name:"Cayman Islands",dial_code:"+ 345",code:"KY",mask:"+345(___) ___-__-__"},350:{name:"Gibraltar",dial_code:"+350",code:"GI",mask:"+350(__) __-__-__"},351:{name:"Portugal",dial_code:"+351",code:"PT",mask:"+351(___) __-__-__"},352:{name:"Luxembourg",dial_code:"+352",code:"LU",mask:"+352(___) __-__-__"},353:{name:"Ireland",dial_code:"+353",code:"IE",mask:"+353(___) __-__-__"},354:{name:"Iceland",dial_code:"+354",code:"IS",mask:"+354(___) __-__"},355:{name:"Albania",dial_code:"+355",code:"AL",mask:"+355(__) ___-__-__"},356:{name:"Malta",dial_code:"+356",code:"MT",mask:"+356(__) __-__-__"},357:{name:"Cyprus",dial_code:"+357",code:"CY",mask:"+357(__) __-__-__"},358:{name:"Finland",dial_code:"+358",code:"FI",mask:"+358(___) __-__-__"},359:{name:"Bulgaria",dial_code:"+359",code:"BG",mask:"+359(___) __-__-__"},370:{name:"Lithuania",dial_code:"+370",code:"LT",mask:"+370(_) ___-__-__"},371:{name:"Latvia",dial_code:"+371",code:"LV",mask:"+371(__) __-__-__"},372:{name:"Estonia",dial_code:"+372",code:"EE",mask:"+372(__) __-__-__"},373:{name:"Moldova",dial_code:"+373",code:"MD",mask:"+373(__) __-__-__"},374:{name:"Armenia",dial_code:"+374",code:"AM",mask:"+374(_) ___-__-__"},375:{name:"Belarus",dial_code:"+375",code:"BY",mask:"+375(__) ___-__-__"},376:{name:"Andorra",dial_code:"+376",code:"AD",mask:"+376(_) _-__-__"},377:{name:"Monaco",dial_code:"+377",code:"MC",mask:"+377(___) __-__-__"},378:{name:"San Marino",dial_code:"+378",code:"SM",mask:"+378(__) __-__-__"},379:{name:"Holy See (Vatican City State)",dial_code:"+379",code:"VA",mask:"+379(___) ___-__-__"},380:{name:"Ukraine",dial_code:"+380",code:"UA",mask:"+380(__) ___-__-__"},381:{name:"Serbia",dial_code:"+381",code:"RS",mask:"+381(__) __-__-__"},382:{name:"Montenegro",dial_code:"+382",code:"ME",mask:"+382(___) ___-__-__"},383:{name:"Kosovo",dial_code:"+383",code:"XK",mask:"+383(___) __-__"},385:{name:"Croatia",dial_code:"+385",code:"HR",mask:"+385(__) __-__-__"},386:{name:"Slovenia",dial_code:"+386",code:"SI",mask:"+386(__) __-__-__"},387:{name:"Bosnia and Herzegovina",dial_code:"+387",code:"BA",mask:"+387(__) __-__-__"},389:{name:"Macedonia",dial_code:"+389",code:"MK",mask:"+389(__) __-__-__"},420:{name:"Czech Republic",dial_code:"+420",code:"CZ",mask:"+420(___) __-__-__"},421:{name:"Slovakia",dial_code:"+421",code:"SK",mask:"+421(___) __-__-__"},423:{name:"Liechtenstein",dial_code:"+423",code:"LI",mask:"+423(___) __-__-__"},500:{name:"South Georgia and the South Sandwich Islands",dial_code:"+500",code:"GS",mask:"+500(___) ___-__-__"},501:{name:"Belize",dial_code:"+501",code:"BZ",mask:"+501(___) __-__"},502:{name:"Guatemala",dial_code:"+502",code:"GT",mask:"+502(__) __-__-__"},503:{name:"El Salvador",dial_code:"+503",code:"SV",mask:"+503(__) __-__-__"},504:{name:"Honduras",dial_code:"+504",code:"HN",mask:"+504(__) __-__-__"},505:{name:"Nicaragua",dial_code:"+505",code:"NI",mask:"+505(__) __-__-__"},506:{name:"Costa Rica",dial_code:"+506",code:"CR",mask:"+506(__) __-__-__"},507:{name:"Panama",dial_code:"+507",code:"PA",mask:"+507(__) __-__-__"},508:{name:"Saint Pierre and Miquelon",dial_code:"+508",code:"PM",mask:"+508(___) ___-__-__"},509:{name:"Haiti",dial_code:"+509",code:"HT",mask:"+509(__) __-__-__"},590:{name:"Saint Martin",dial_code:"+590",code:"MF",mask:"+590(___) __-__-__"},591:{name:"Bolivia, Plurinational State of bolivia",dial_code:"+591",code:"BO",mask:"+591(__) __-__-__"},592:{name:"Guyana",dial_code:"+592",code:"GY",mask:"+592(___) ___-__-__"},593:{name:"Ecuador",dial_code:"+593",code:"EC",mask:"+593(___) __-__-__"},594:{name:"French Guiana",dial_code:"+594",code:"GF",mask:"+594(___) __-__-__"},595:{name:"Paraguay",dial_code:"+595",code:"PY",mask:"+595(___) __-__-__"},596:{name:"Martinique",dial_code:"+596",code:"MQ",mask:"+596(___) __-__-__"},597:{name:"Suriname",dial_code:"+597",code:"SR",mask:"+597(___) __-__"},598:{name:"Uruguay",dial_code:"+598",code:"UY",mask:"+598(__) __-__-__"},599:{name:"Netherlands Antilles",dial_code:"+599",code:"AN",mask:"+599(__) __-__-__"},670:{name:"Timor-Leste",dial_code:"+670",code:"TL",mask:"+670(__) __-__-__"},672:{name:"Norfolk Island",dial_code:"+672",code:"NF",mask:"+672(___) ___-__-__"},673:{name:"Brunei Darussalam",dial_code:"+673",code:"BN",mask:"+673(___) __-__"},674:{name:"Nauru",dial_code:"+674",code:"NR",mask:"+674(___) __-__"},675:{name:"Papua New Guinea",dial_code:"+675",code:"PG",mask:"+675(___) __-__"},676:{name:"Tonga",dial_code:"+676",code:"TO",mask:"+676(___) __-__"},677:{name:"Solomon Islands",dial_code:"+677",code:"SB",mask:"+677(___) __-__"},678:{name:"Vanuatu",dial_code:"+678",code:"VU",mask:"+678(___) __-__"},679:{name:"Fiji",dial_code:"+679",code:"FJ",mask:"+679(___) __-__"},680:{name:"Palau",dial_code:"+680",code:"PW",mask:"+680(___) ___-__-__"},681:{name:"Wallis and Futuna",dial_code:"+681",code:"WF",mask:"+681(___) ___-__-__"},682:{name:"Cook Islands",dial_code:"+682",code:"CK",mask:"+682(_) __-__"},683:{name:"Niue",dial_code:"+683",code:"NU",mask:"+683(___) ___-__-__"},685:{name:"Samoa",dial_code:"+685",code:"WS",mask:"+685(__) __-__"},686:{name:"Kiribati",dial_code:"+686",code:"KI",mask:"+686(___) ___-__-__"},687:{name:"New Caledonia",dial_code:"+687",code:"NC",mask:"+687(__) __-__"},688:{name:"Tuvalu",dial_code:"+688",code:"TV",mask:"+688(___) ___-__-__"},689:{name:"French Polynesia",dial_code:"+689",code:"PF",mask:"+689(__) __-__"},690:{name:"Tokelau",dial_code:"+690",code:"TK",mask:"+690(___) ___-__-__"},691:{name:"Micronesia, Federated States of Micronesia",dial_code:"+691",code:"FM",mask:"+691(___) ___-__-__"},692:{name:"Marshall Islands",dial_code:"+692",code:"MH",mask:"+692(___) ___-__-__"},850:{name:"Korea, Democratic People's Republic of Korea",dial_code:"+850",code:"KP",mask:"+850(___) ___-__-__"},852:{name:"Hong Kong",dial_code:"+852",code:"HK",mask:"+852(__) __-__-__"},853:{name:"Macao",dial_code:"+853",code:"MO",mask:"+853(__) __-__-__"},855:{name:"Cambodia",dial_code:"+855",code:"KH",mask:"+855(__) __-__-__"},856:{name:"Laos",dial_code:"+856",code:"LA",mask:"+856(___) ___-__-__"},880:{name:"Bangladesh",dial_code:"+880",code:"BD",mask:"+880(___) ___-__-__"},886:{name:"Taiwan",dial_code:"+886",code:"TW",mask:"+886(___) __-__-__"},960:{name:"Maldives",dial_code:"+960",code:"MV",mask:"+960(___) __-__"},961:{name:"Lebanon",dial_code:"+961",code:"LB",mask:"+961(__) __-__-__"},962:{name:"Jordan",dial_code:"+962",code:"JO",mask:"+962(___) __-__-__"},963:{name:"Syrian Arab Republic",dial_code:"+963",code:"SY",mask:"+963(___) __-__-__"},964:{name:"Iraq",dial_code:"+964",code:"IQ",mask:"+964(___) ___-__-__"},965:{name:"Kuwait",dial_code:"+965",code:"KW",mask:"+965(__) __-__-__"},966:{name:"Saudi Arabia",dial_code:"+966",code:"SA",mask:"+966(___) __-__-__"},967:{name:"Yemen",dial_code:"+967",code:"YE",mask:"+967(___) __-__-__"},968:{name:"Oman",dial_code:"+968",code:"OM",mask:"+968(__) __-__-__"},970:{name:"Palestinian Territory, Occupied",dial_code:"+970",code:"PS",mask:"+970(___) __-__-__"},971:{name:"United Arab Emirates",dial_code:"+971",code:"AE",mask:"+971(___) __-__-__"},972:{name:"Israel",dial_code:"+972",code:"IL",mask:"+972(___) __-__-__"},973:{name:"Bahrain",dial_code:"+973",code:"BH",mask:"+973(__) __-__-__"},974:{name:"Qatar",dial_code:"+974",code:"QA",mask:"+974(__) __-__-__"},975:{name:"Bhutan",dial_code:"+975",code:"BT",mask:"+975(__) __-__-__"},976:{name:"Mongolia",dial_code:"+976",code:"MN",mask:"+976(__) __-__-__"},977:{name:"Nepal",dial_code:"+977",code:"NP",mask:"+977(___) ___-__-__"},992:{name:"Tajikistan",dial_code:"+992",code:"TJ",mask:"+992(___) __-__-__"},993:{name:"Turkmenistan",dial_code:"+993",code:"TM",mask:"+993(__) __-__-__"},994:{name:"Azerbaijan",dial_code:"+994",code:"AZ",mask:"+994(__) ___-__-__"},995:{name:"Georgia",dial_code:"+995",code:"GE",mask:"+995(___) __-__-__"},996:{name:"Kyrgyzstan",dial_code:"+996",code:"KG",mask:"+996(___) __-__-__"},998:{name:"Uzbekistan",dial_code:"+998",code:"UZ",mask:"+998(___) __-__-__"},1242:{name:"Bahamas",dial_code:"+1242",code:"BS",mask:"+1242(___) __-__"},1246:{name:"Barbados",dial_code:"+1246",code:"BB",mask:"+1246(___) __-__"},1264:{name:"Anguilla",dial_code:"+1264",code:"AI",mask:"+1264(___) ___-__-__"},1268:{name:"Antigua and Barbuda",dial_code:"+1268",code:"AG",mask:"+1268(_) __-__"},1284:{name:"Virgin Islands, British",dial_code:"+1284",code:"VG",mask:"+1284(___) __-__"},1340:{name:"Virgin Islands, U.S.",dial_code:"+1340",code:"VI",mask:"+1340(___) ___-__-__"},1441:{name:"Bermuda",dial_code:"+1441",code:"BM",mask:"+1441(___) __-__"},1473:{name:"Grenada",dial_code:"+1473",code:"GD",mask:"+1473(___) __-__"},1649:{name:"Turks and Caicos Islands",dial_code:"+1649",code:"TC",mask:"+1649(___) ___-__-__"},1664:{name:"Montserrat",dial_code:"+1664",code:"MS",mask:"+1664(___) ___-__-__"},1670:{name:"Northern Mariana Islands",dial_code:"+1670",code:"MP",mask:"+1670(___) ___-__-__"},1671:{name:"Guam",dial_code:"+1671",code:"GU",mask:"+1671(___) ___-__-__"},1684:{name:"American Samoa",dial_code:"+1684",code:"AS",mask:"+1684(___) ___-__-__"},1758:{name:"Saint Lucia",dial_code:"+1758",code:"LC",mask:"+1758(___) __-__"},1767:{name:"Dominica",dial_code:"+1767",code:"DM",mask:"+1767(___) __-__"},1784:{name:"Saint Vincent and the Grenadines",dial_code:"+1784",code:"VC",mask:"+1784(___) __-__"},1849:{name:"Dominican Republic",dial_code:"+1849",code:"DO",mask:"+1849(___) ___-__-__"},1868:{name:"Trinidad and Tobago",dial_code:"+1868",code:"TT",mask:"+1868(___) __-__"},1869:{name:"Saint Kitts and Nevis",dial_code:"+1869",code:"KN",mask:"+1869(___) __-__"},1876:{name:"Jamaica",dial_code:"+1876",code:"JM",mask:"+1876(___) __-__"},1939:{name:"Puerto Rico",dial_code:"+1939",code:"PR",mask:"+1939(___) ___-__-__"}};function ut({value:e,onValue:t,onSave:a,name:i,placeholder:o="",title:r="",error:l="",hide:d=!1,edit:c=!0,active:_=!0,after:u="",show:f=!0,view:g,className:m=""}){c=c!==void 0?c:!0,_=_!==void 0?_:!0,d=!!(d&&(e===""||e===void 0))&&!(c&&_),b.useRef(null);let v="+_(___) ___-__-__",x=!0,y=0,C=(R,E)=>{let q=document.createRange(),Y=window.getSelection();q.setStart(E.childNodes[0],R),q.collapse(!0),Y.removeAllRanges(),Y.addRange(q),E.focus()},T=R=>{R.preventDefault(),navigator.clipboard.readText().then(E=>{window.document.execCommand("insertText",!1,E)}).catch(E=>{})},I=R=>{let E=0,q="",Y=R.replace(/\D/g,"");Y===""&&(x=!0);let qe=Y.split(""),ie="";qe.forEach(He=>{x&&(ie+=He,ct[ie]!==void 0&&x?(x=!1,v=ct[ie].mask.replace(new RegExp("[0-9]","g"),"_"),q=ct[ie].code):(x&&(y=(""+ie).length,v=`+${ie}_(___) ___-__-__`.replace(new RegExp("[0-9]","g"),"_"),q=""),y>(""+ie).length&&(x=!0,v=`+${ie}_(___) ___-__-__`.replace(new RegExp("[0-9]","g"),"_"),q="")))});let Re=v.replace(/\D/g,"");return Re.length>=Y.length&&(Y=Re),{q:v.replace(/[_\d]/g,function(){return Y.charAt(E++)||"_"}),i:E,v:Y,f:q}},z=R=>{R.preventDefault(),navigator.clipboard.writeText(R.target.textContent.replace(/\D/g,"")).then(function(){Fe.Copy("Данные в буфер обмене")},function(E){})},O=I(e),U=R=>{let E=I(R.target.textContent);R.target.textContent=E.q,E.i=E.q.lastIndexOf(E.v.substr(-1)),E.i<E.q.length&&E.q!==v?E.i++:E.i=E.q.indexOf("_"),C(E.i,R.target),t&&t({value:E.q.replace(/\D/g,""),name:i})},pe=R=>{R.key==="Enter"&&R.preventDefault()};const W=R=>{fe.Blur(R),a&&a({value:R.target.textContent.replace(/\D/g,""),name:i})},N={};N.field="input",m&&(N.className=m);let K={};return c&&_?(K.edit="true",K.contentEditable="plaintext-only"):K.contentEditable="false",o&&(K.placeholder=o),u&&(K.after=u),d?n.jsx(n.Fragment,{}):n.jsxs("dl",{...N,children:[r&&n.jsx("dt",{children:r}),n.jsx("dd",{...K,onPaste:T,onInput:U,onKeyDown:pe,onContextMenu:z,onBlur:W,suppressContentEditableWarning:!0,children:O.q}),l&&n.jsx("em",{children:l})]})}const rn=e=>{let t=()=>e.title?n.jsx("dt",{children:e.title}):"",a=e.edit!==void 0?e.edit:!0,i=e.active!==void 0?e.active:!0,o=e.placeholder!==void 0?e.placeholder:"",r=0,l=()=>{clearTimeout(r),r=setTimeout(()=>{},1e3)},d=u=>{u.key==="Enter"&&u.preventDefault()},c=u=>{u.preventDefault(),navigator.clipboard.readText().then(f=>{window.document.execCommand("insertText",!1,f)}).catch(f=>{})};const _={};return o&&(_.placeholder=o),n.jsxs("dl",{"data-form":"input",children:[t(),n.jsx("dd",{onPaste:c,onInput:l,onKeyDown:d,contentEditable:a&&i?"plaintext-only":"false",..._,suppressContentEditableWarning:!0,children:e.value})]})};function ft({title:e,error:t,edit:a=!0,active:i=!0,hide:o,value:r="0",onValue:l,options:d,placeholder:c="",name:_,after:u,view:f}){const g=b.useRef();o=!!(o&&(r===""||d[r].n===void 0))&&!(a&&i);let h=r!==void 0&&r!==""?d[r].n:r,v=T=>{g.current.textContent=d[T].n,l&&l({value:T,name:_})},x=T=>{if(!(a&&i))return;const I=T.target.getBoundingClientRect();$e.setListener("form",n.jsx(zi,{parent:I,onValue:v,view:f,options:d},new Date().getTime()))},y={field:"select"},C={onClick:x};return c&&(C.placeholder=c),u&&(C.after=u),a&&i&&(C.edit=""),o?"":n.jsxs("dl",{...y,children:[e&&n.jsx("dt",{children:e}),n.jsx("dd",{...C,ref:g,children:h}),t&&n.jsx("em",{children:t})]})}const zi=({onValue:e,parent:t,view:a,options:i})=>{let[o,r]=b.useState(!0),l=()=>{r(!1)},d=u=>{r(!1),e(u)},c=window.innerHeight-t.y+t.height<320?t.y-312:t.y+33,_=window.innerWidth-t.x<265?t.x-235:t.x;return n.jsx(n.Fragment,{children:o?n.jsxs(n.Fragment,{children:[n.jsx("div",{"data-select":"backdrop",onClick:l},new Date().getTime()),n.jsx("div",{"data-select":"background "+a,style:{top:c+"px",left:_+"px",width:t.width},children:n.jsx("ul",{children:Object.keys(i).map((u,f)=>i[u].s===1?n.jsx("li",{onClick:()=>{d(u)},children:i[u].n},f):"")})})]}):""})};function mt({value:e,onValue:t,name:a,placeholder:i="",title:o="",error:r="",hide:l=!1,edit:d=!0,active:c=!0,after:_="",show:u=!0,view:f,onBlur:g,onSave:m,className:h=""}){let v=!!(l&&(e===""||e===void 0)),x=I=>{t==null||t({value:I.target.value,name:a})},y=I=>{I.preventDefault(),navigator.clipboard.readText().then(z=>{window.document.execCommand("insertText",!1,z.replace(/(\r\n|\n|\r)/gm," "))}).catch(z=>{})},C=I=>{I.preventDefault(),navigator.clipboard.writeText(I.target.value).then(function(){Fe.Copy("Данные в буфер обмене")},function(z){})};if(!(d&&c)&&!u||!(d&&c)&&v)return"";const T={};return T.field="input",h&&(T.className=h),n.jsxs("dl",{...T,children:[o?n.jsx("dt",{children:o}):"",n.jsx("dd",{children:n.jsx("input",{name:a,autoComplete:"off",type:"text",onChange:x,onPaste:y,onContextMenu:C,placeholder:i})}),r?n.jsx("em",{children:r}):""]})}function pt(e){let t=()=>e.title?n.jsx("dt",{children:e.title}):"",a=()=>e.error?n.jsx("em",{children:e.error}):"",i=e.edit!==void 0?e.edit:!0,o=e.active!==void 0?e.active:!0,l=!!(e.hide&&(e.default===""||e.options[e.default]===void 0))&&!(i&&o),d=e.placeholder!==void 0?e.placeholder:"",c=m=>{u(e.options[m]),e.onValue({value:m,name:e.name})},[_,u]=b.useState(e.default!==void 0?e.options[e.default]:e.default),f=m=>{if(!(i&&o))return;const h=m.target.getBoundingClientRect();$e.setListener("form",n.jsx(Pi,{parent:h,onValue:c,view:e.view,options:e.options},new Date().getTime()))};const g={};return d&&(g.placeholder=d),l?n.jsx(n.Fragment,{}):n.jsxs("dl",{"data-form":"select",children:[t(),n.jsx("dd",{onClick:f,"data-edit":(i&&o)+"",...g,children:_}),a()]})}const Pi=({onValue:e,parent:t,view:a,options:i})=>{let[o,r]=b.useState(!0),l=()=>{r(!1)},d=f=>{r(!1),e(f)},c=Object.keys(i).length*36,_=window.innerHeight-t.y+t.height<c?t.y-(c-33):t.y+33,u=window.innerWidth-t.x<265?t.x-235:t.x;return n.jsx(n.Fragment,{children:o?n.jsxs(n.Fragment,{children:[n.jsx("div",{"data-select":"backdrop",onClick:l},new Date().getTime()),n.jsx("div",{"data-select":"background "+a,style:{top:_+"px",left:u+"px",width:t.width},children:n.jsx("ul",{children:Object.keys(i).map((f,g)=>n.jsx("li",{onClick:()=>{d(f)},children:i[f]},g))})})]}):""})};function ht({set:e,value:t,onValue:a,name:i,placeholder:o="",title:r="",error:l="",hide:d=!1,edit:c=!0,show:_=!0,active:u=!0,after:f="",view:g,module:m,item:h,className:v=""}){let x={};switch(e){case"String":return n.jsx(mt,{title:r,show:_,hide:d,view:g,edit:c,active:u,value:t,onValue:a,name:i,placeholder:o,className:v});case"Select":return h&&(x=se.getSelect(parseInt(h))?se.getSelect(parseInt(h)):{0:{s:"1",n:"не известно"}}),n.jsx(ft,{title:r,show:_,hide:d,view:g,edit:c,active:u,value:t,onValue:a,name:i,placeholder:o,className:v,options:x});case"Users":return se.getSelect("user"),n.jsx(pt,{title:r,show:_,hide:d,view:g,edit:c,active:u,value:t,onValue:a,name:i,placeholder:o,className:v,options:x});case"Date":return n.jsx(rt,{title:r,show:_,hide:d,view:g,edit:c,active:u,value:t,onValue:a,name:i,placeholder:o,className:v});case"Phone":return n.jsx(ut,{title:r,show:_,hide:d,view:g,edit:c,active:u,value:t,onValue:a,name:i,placeholder:o,className:v});case"Number":return n.jsx(_t,{title:r,show:_,hide:d,view:g,edit:c,active:u,value:t,onValue:a,name:i,placeholder:o,className:v});case"Money":return n.jsx(dt,{title:r,show:_,hide:d,view:g,edit:c,active:u,value:t,onValue:a,name:i,placeholder:o,className:v});case"Modal":return n.jsx(lt,{title:r,show:_,hide:d,view:g,edit:c,active:u,value:t,onValue:a,name:i||"",placeholder:o,className:v,options:x,module:m||""})}}function sn({value:e,onValue:t,name:a,placeholder:i="",title:o="",error:r="",hide:l=!1,edit:d=!0,active:c=!0,after:_="",show:u=!0,view:f,onBlur:g,onSave:m,className:h=""}){let v=!!(l&&(e===""||e===void 0));if(!(d&&c)&&!u||!(d&&c)&&v)return"";let x=I=>{t&&t({value:I.target.innerText,name:a})},y=I=>{m&&m({value:I.target.innerText,name:a})},C=I=>{I.preventDefault(),navigator.clipboard.readText().then(z=>{window.document.execCommand("insertText",!1,z)}).catch(z=>{})};const T={};return i&&(T.placeholder=i),n.jsxs("dl",{children:[o??n.jsx("dt",{children:o}),n.jsx("dd",{onPaste:C,onBlur:y,onInput:x,contentEditable:d&&c?"plaintext-only":"false",...T,suppressContentEditableWarning:!0,children:e}),r??n.jsx("em",{children:r})]})}function ln({value:e,onValue:t,name:a,placeholder:i="",title:o="",error:r="",hide:l=!1,edit:d=!0,active:c=!0,after:_="",show:u=!0,view:f,onBlur:g,onSave:m,className:h=""}){let v=!!(l&&(e===""||e===void 0));if(be.Date(e===void 0?new Date:e,"HH:MM"),b.useRef(null),!(d&&c)&&!u||!(d&&c)&&v)return"";const x="__:__",y=new Set("_"),C=(N=>Array.from(x,(K,R)=>y.has(K)?N=R+1:N))(0),T=[...x].findIndex(N=>y.has(N)),I=new RegExp("\\d","g"),z=N=>(N=N.match(I)||[],Array.from(x,K=>(N[0]===K||y.has(K))&&N.shift()||K)),O=N=>{const[K,R]=[N.target.selectionStart,N.target.selectionEnd].map(E=>(E=z(N.target.value.slice(0,E)).findIndex(q=>y.has(q)),E<0?C[C.length-1]:W?C[E-1]||T:E));N.target.value=z(N.target.value).join(""),N.target.setSelectionRange(K,R),t==null||t({name:a,value:N.target.value})},U={};U.field="input",h&&(U.className=h);const pe={};i&&(pe.placeholder=i);let W=!1;return n.jsx(n.Fragment,{children:n.jsxs("dl",{...U,children:[o?n.jsx("dt",{children:o}):"",n.jsx("dd",{...pe,children:n.jsx("input",{type:"tel",placeholder:i,onChange:O,inputMode:"numeric",onKeyDown:N=>W=N.key==="Backspace",onFocus:O,onBlur:N=>N.target.value===x&&(N.target.value="")})}),r?n.jsx("em",{children:r}):""]})})}function dn({onValue:e,label:t,value:a,className:i,name:o,reload:r}){a=!!a;const[l,d]=b.useState(a),c=()=>{let f=!l;e({name:o,value:f,reload:r}),d(f)},_={};_.field="check",i&&(_.className=i);const u={};return l&&(u.active=""),n.jsxs("dl",{..._,children:[t?n.jsx("dt",{children:t}):"",n.jsx("dd",{...u,onClick:c})]})}const _n=({onValue:e,value:t,name:a,item:i})=>{const[o,r]=b.useState(!!t);b.useEffect(()=>{r(!!t)},[t]);let l=()=>{let d=parseInt(o)===0?1:0;r(d),e({value:d,name:a,key:i,item:i})};return n.jsx("div",{role:"switch",onClick:l,"aria-checked":`${o?"true":"false"}`})};function cn({value:e,onValue:t,name:a,placeholder:i="",title:o="",error:r="",hide:l=!1,edit:d=!0,active:c=!0,after:_="",show:u=!0,view:f,onBlur:g,onSave:m,className:h=""}){const[v,x]=b.useState(e!==void 0?e.split(","):[]);b.useEffect(()=>{e!==void 0&&x(e!==void 0?e.split(","):[])},[e]);let y=()=>{x([...v,""])},C=W=>{v.splice(W,1),v.length===0&&v.push(""),x([...v]),g!==void 0&&g({value:v.join(","),name:a})},T=!!(l&&(e===""||e===void 0)),I=W=>{};if(!(d&&c)&&!u||!(d&&c)&&T)return"";const z={};z.field="group",h&&(z.className=h);const O=W=>{fe.Blur(W),m&&m({value:W.target.textContent,name:a})};let U=(W,N)=>{v[N]=W.target.textContent,t!==void 0&&t({value:v.join(","),name:a})},pe=W=>{W.key==="Enter"&&W.preventDefault()};return n.jsxs("dl",{...z,children:[n.jsxs("dt",{children:[o,n.jsx("i",{onClick:y,children:n.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",children:[n.jsx("path",{d:"M12 5.25v13.5"}),n.jsx("path",{d:"M18.75 12H5.25"})]})})]}),n.jsx("dd",{children:v.map((W,N)=>n.jsxs("li",{className:"field_group_item",children:[n.jsx("span",{onInput:K=>U(K,N),edit:"true",name:a,placeholder:i,onPaste:I,contentEditable:!0,onKeyDown:pe,onBlur:O,suppressContentEditableWarning:!0,children:v[N]}),n.jsx("i",{onClick:()=>{C(N)},children:n.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",children:[n.jsx("path",{d:"M17.25 17.25 6.75 6.75"}),n.jsx("path",{d:"m17.25 6.75-10.5 10.5"})]})})]},N))}),r?n.jsx("em",{children:r}):""]})}const Ri=e=>(e=e!==void 0&&e!==""?e.split(","):[],e.reduce((t,a)=>(t[a]=!0,t),{}));function un({value:e,onValue:t,name:a,placeholder:i="",title:o,error:r,hide:l=!1,edit:d=!0,show:c=!0,active:_=!0,after:u="",view:f,modal:g,module:m,options:h,className:v}){const[x,y]=b.useState(Ri(e)),C=z=>{if(!(d&&_)||!g)return;let O=g.split(".");st.Open(O[1],{callback:U=>{t&&t({value:U,name:a}),y(U)},onValue:t,options:h,name:a,value:x})},T={};T.field="group",v&&(T.className=v);const I={};return i&&(I.placeholder=i),l?n.jsx(n.Fragment,{}):n.jsxs("dl",{...T,children:[n.jsxs("dt",{children:[o,n.jsx("i",{onClick:C,children:n.jsxs("svg",{width:"20",fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:[n.jsx("path",{d:"M12 5.25v13.5"}),n.jsx("path",{d:"M18.75 12H5.25"})]})})]}),n.jsx("dd",{...I,onClick:open,edit:(d&&_)+"","data-after":u,children:Object.keys(x).map(z=>{var O;return n.jsx("div",{className:"field_group_item",children:(O=h[z])==null?void 0:O.label},z)})}),r&&n.jsx("em",{children:r})]})}const fn={Color:en,Date:rt,Code:Qt,Check:dn,Switch:Ht,Button:Yt,Message:Vt,Generator:Jt,Captcha:Xt,Modal:lt,Money:dt,Month:nn,Notes:an,Number:_t,Password:on,Phone:ut,Search:rn,Select:ft,Set:ht,Textarea:sn,Time:ln,Users:pt,String:mt,Toogle:_n,Group:cn,Options:un},ve={debug:"_debug_ug20b_34",b:"_b_ug20b_46",o:"_o_ug20b_50",mb:"_mb_ug20b_55",tm:"_tm_ug20b_66",ta:"_ta_ug20b_133","--body":"_--body_ug20b_143"},B=window.Telegram.WebApp,ke={is:!1,MainButton:{},BackButton:{}};let ye={};ye.dark={"--tg-theme-bg-color":"#212121","--tg-theme-text-color":"#ffffff","--tg-theme-hint-color":"#aaaaaa","--tg-theme-link-color":"#8774e1","--tg-theme-button-color":"#8774e1","--tg-theme-button-text-color":"#ffffff","--tg-theme-secondary-bg-color":"#0f0f0f","--tg-theme-header-bg-color":"#212121","--tg-theme-accent-text-color":"#8774e1","--tg-theme-section-bg-color":"#212121","--tg-theme-section-header-text-color":"#aaaaaa","--tg-theme-subtitle-text-color":"#aaaaaa","--tg-theme-destructive-text-color":"#e53935"},ye.light={"--tg-theme-bg-color":"#ffffff","--tg-theme-text-color":"#000000","--tg-theme-hint-color":"#999999","--tg-theme-link-color":"#2481cc","--tg-theme-button-color":"#2481cc","--tg-theme-button-text-color":"#ffffff","--tg-theme-secondary-bg-color":"#efeff3"},ye.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"},B.getUser=()=>{var e;return((e=B.initDataUnsafe)==null?void 0:e.user)===void 0?{}:B.initDataUnsafe},B.MainButton.set=e=>{ke.is?ke.MainButton.set(e):typeof e=="boolean"?B.MainButton.isVisible=!1:(B.MainButton.text=e.text,e.color&&(B.MainButton.color=e.color),e.textColor&&(B.MainButton.textColor=e.textColor),B.MainButton.isVisible=!0,B.MainButton.isActive=e.isActive??!0,e.page===void 0||B.MainButton.onClick(()=>{le.setPage(e.page)}))},B.BackButton.state=[!1],B.BackButton.listen=[],B.BackButton.router=e=>{e===!1?(B.BackButton.isVisible=!1,B.BackButton.offClick(B.BackButton.listen[0]),B.BackButton.listen.shift(),B.BackButton.state.length!==1&&B.BackButton.state.pop()):(B.BackButton.isVisible=!0,B.BackButton.offClick(B.BackButton.listen[0]),B.BackButton.listen.shift(),B.BackButton.listen.push(()=>{let t=B.BackButton.state.pop();if(t.page!==void 0)le.setPage(t.page);else{let a=B.BackButton.state[B.BackButton.state.length-1];B.BackButton.router(a)}}),B.BackButton.onClick(B.BackButton.listen[0]))},B.BackButton.set=e=>{ke.is?ke.BackButton.set(e):(B.BackButton.state.push(e),B.BackButton.router(e))},B.Notice=(e,t)=>{t!==void 0?(Fe.Send({type:e,text:t}),B.HapticFeedback.notificationOccurred(e)):(Fe.Send(e),B.HapticFeedback.notificationOccurred(e.type))},B.Init=({dev:e})=>{if(e){let[t,a]=b.useState(!1),[i,o]=b.useState(!1),[r,l]=b.useState("dark"),[d,c]=b.useState(!1),[_,u]=b.useState(!1);ke.is=!0,ke.MainButton.set=a,ke.BackButton.set=o,b.useEffect(()=>{for(let m in ye[r])document.documentElement.style.setProperty(m,ye[r][m])},[]);let f=m=>{for(let h in ye[m])document.documentElement.style.setProperty(h,ye[m][h]);l(m),c(!1)},g=()=>{c(!1),u(!0)};return n.jsxs(n.Fragment,{children:[n.jsxs("div",{className:ve.debug,children:[i===!1?n.jsx("div",{className:ve.b,children:"Отмена"}):n.jsx("div",{onClick:()=>{i.page===void 0||le.setPage(i.page)},className:ve.b,children:"Назад"}),n.jsx("div",{className:ve.o,onClick:()=>c(!d),children:"Меню"})]}),t&&n.jsx("div",{className:ve.mb,children:n.jsx("button",{onClick:()=>le.setPage(t.page),children:t.text})}),d?n.jsxs("div",{className:ve.tm,children:[n.jsxs("ul",{children:[n.jsx("li",{children:n.jsx("button",{onClick:g,children:"Authorization"})}),n.jsx("li",{children:n.jsx("button",{onClick:()=>le.setPage("Add"),children:"Add Page"})})]}),n.jsxs("ul",{children:[n.jsxs("li",{children:[n.jsx("button",{children:"Thema"}),n.jsxs("ol",{children:[n.jsx("li",{children:n.jsx("button",{onClick:()=>f("dark"),children:"Dark"})}),n.jsx("li",{children:n.jsx("button",{onClick:()=>f("light"),children:"Light"})}),n.jsx("li",{children:n.jsx("button",{onClick:()=>f("users"),children:"Users"})})]})]}),n.jsx("li",{children:n.jsx("button",{onClick:()=>c(!d),children:"Closed"})})]})]}):"",_?n.jsx(Li,{setAuthorization:u}):""]})}else return n.jsx(n.Fragment,{})};const Li=({setAuthorization:e})=>{let t={},a=o=>{t=o.value},i=o=>{localStorage.setItem("auth",t)};return n.jsx("div",{className:ve.ta,children:n.jsxs("div",{className:"--body",children:[n.jsx("fieldset",{children:n.jsx(fn.Notes,{label:"Data JSON",name:"description",onValue:a,placeholder:""})}),n.jsx("div",{onClick:i,children:" Сщхранить "})]})})},Ai=({children:e,config:t})=>(window.location.pathname==="/clear"&&(window.history.pushState({},"","/"),Q()),D.New(t.crypto),t.defaultModule&&Wn(t.defaultModule),Zn(n.jsxs(n.Fragment,{children:[n.jsx(B.Init,{dev:t.dev}),n.jsx(ti,{config:t.modal}),n.jsx(Ua,{}),n.jsx(Xa,{}),n.jsx(mi,{}),e]}))),mn=({list:e,onClick:t,active:a,size:i,view:o})=>n.jsx("nav",{children:n.jsx("ul",{className:[i,o].join(" "),children:e.map(r=>n.jsx(Oi,{onClick:t,active:a,label:r.label,link:r.link},r.link))})}),Oi=({onClick:e,label:t,link:a,active:i})=>n.jsx("li",{"tabs-active":String(i===a),onClick:()=>e(a),children:t});mn.defaultProps={size:"M",view:"H"};const Gi=({title:e="",button:t,description:a="",children:i})=>n.jsxs("fieldset",{children:[e&&n.jsxs("legend",{children:[e,t&&n.jsx("div",{role:"button-outline",onClick:()=>t.onClick(),children:t.label})," "]}),n.jsx("ul",{children:i}),a&&n.jsx("article",{children:a})]}),Wi={setting:"_setting_dva4m_2"},Ki=({children:e})=>n.jsx("div",{className:Wi.setting,children:e}),Zi=({label:e,children:t})=>{let[a,i]=b.useState(!1);return n.jsxs("li",{"data-item":"accordion",children:[n.jsxs("dl",{onClick:()=>i(!a),children:[n.jsx("dt",{children:e}),n.jsx("dd",{children:n.jsx("div",{"data-close":String(a)})})]}),a&&n.jsx("div",{children:t})]})},Ui=({label:e,onClick:t,button:a})=>n.jsx("li",{children:n.jsxs("dl",{children:[n.jsx("dt",{children:e}),n.jsx("dd",{role:"button",onClick:()=>t(),children:a})]})}),pn={Switch:({active:e,onClick:t})=>(e=typeof e=="number"?!!e:e,n.jsx("div",{role:"switch",onClick:()=>{t()},"aria-checked":e?"true":"false"}))},qi={Accordion:Zi,Button:Ui,Switch:({label:e,onClick:t,active:a})=>n.jsx("li",{children:n.jsxs("dl",{children:[n.jsx("dt",{children:e}),n.jsx("dd",{children:n.jsx(pn.Switch,{onClick:t,active:a})})]})}),Info:({label:e,info:t})=>n.jsx("li",{children:n.jsxs("dl",{children:[n.jsx("dt",{children:e}),n.jsx("dd",{role:"info",children:t})]})}),Select:({label:e,active:t,options:a})=>n.jsx("li",{children:n.jsxs("dl",{children:[n.jsx("dt",{children:e}),n.jsx("dd",{role:"info",children:t})]})}),Component:({label:e,children:t})=>n.jsx("li",{children:n.jsxs("dl",{children:[n.jsx("dt",{children:e}),n.jsx("dd",{children:t})]})}),Node:({label:e,children:t})=>n.jsx("li",{children:n.jsxs("dl",{children:[n.jsx("dt",{children:e}),n.jsx("dd",{children:t})]})})};function hn({list:e,onClick:t,active:a,size:i,view:o}){return n.jsx("nav",{children:n.jsx("ul",{className:[i,o].join(" "),children:e.map(r=>n.jsx(Hi,{onClick:t,active:a,label:r.label,link:r.link},r.link))})})}const Hi=({onClick:e,label:t,link:a,active:i})=>n.jsx("li",{"tabs-active":String(i===a),onClick:()=>e(a),children:t});hn.defaultProps={size:"M",view:"H"};const Yi={Section:Gi,Main:Ki,Item:qi,Tabs:hn};function xn({text:e,type:t,button:a}){let[i,o]=b.useState(!1),r={active:t};const l=()=>{if(a){if(a.onClick)return a.onClick({});if(a.onSend)return i?void 0:(o(!0),a.onSend(o))}};return n.jsxs("div",{className:it.al,...r,children:[n.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",fillRule:"evenodd",clipRule:"evenodd",children:n.jsx("path",{fill:"#fff",d:"M10.362 2.015C11.4264 1.66167 12.5736 1.66167 13.638 2.015C14.6981 2.36687 15.5304 3.20141 16.3665 4.37395C17.1999 5.5426 18.1208 7.17206 19.3078 9.2725L19.3544 9.35496C20.5417 11.4557 21.4625 13.0851 22.0364 14.4065C22.613 15.7343 22.9002 16.8807 22.6711 17.9821C22.4403 19.0911 21.8714 20.0995 21.0428 20.8617C20.2162 21.622 19.0907 21.9428 17.6736 22.0968C16.2645 22.25 14.4212 22.25 12.0488 22.25H11.9513C9.57882 22.25 7.73554 22.25 6.32642 22.0968C4.90927 21.9428 3.78379 21.622 2.95722 20.8617C2.12862 20.0995 1.55968 19.0911 1.32895 17.9821C1.0998 16.8807 1.387 15.7343 1.96365 14.4065C2.53752 13.0851 3.45835 11.4557 4.64558 9.35495L4.69218 9.2725L4.69218 9.27249C5.87921 7.17206 6.80008 5.5426 7.63347 4.37395C8.46963 3.20141 9.30194 2.36687 10.362 2.015ZM11 17C11 16.4477 11.4457 16 11.9955 16H12.0045C12.5543 16 13 16.4477 13 17C13 17.5523 12.5543 18 12.0045 18H11.9955C11.4457 18 11 17.5523 11 17ZM11 13C11 13.5523 11.4477 14 12 14C12.5523 14 13 13.5523 13 13V9C13 8.44772 12.5523 8 12 8C11.4477 8 11 8.44772 11 9V13Z"})}),n.jsx("span",{children:e}),a&&n.jsx("button",{onClick:l,children:a.label})]})}const J={h:"_h_1usnu_1",g:"_g_1usnu_11",hr:"_hr_1usnu_16",hl:"_hl_1usnu_28",t:"_t_1usnu_40",s:"_s_1usnu_60",u:"_u_1usnu_69",o:"_o_1usnu_76",l:"_l_1usnu_105",hh:"_hh_1usnu_115",c:"_c_1usnu_128",loadingB:"_loadingB_1usnu_1",m:"_m_1usnu_180",ul:"_ul_1usnu_196",f:"_f_1usnu_226"},gn=({title:e,left:t,right:a,children:i})=>n.jsxs("div",{className:J.h,children:[n.jsx("div",{className:J.t,children:e}),t&&n.jsx("div",{className:J.hl,children:t}),a&&n.jsx("div",{className:J.hr,children:a}),i]}),bn=({children:e,...t})=>n.jsx("div",{className:J.l,children:e}),vn=({children:e})=>n.jsx("div",{className:J.s,children:e}),kn=({children:e,edit:t})=>{const a={};return t&&(a.edit=""),n.jsx("div",{...a,className:J.f,children:e})};function yn({children:e}){return n.jsx("div",{className:J.g,children:e})}const Vi={Header:gn,Section:vn,Group:yn,Form:kn,List:bn,A:xn,U:({children:e})=>n.jsx("div",{className:J.u,children:e}),G:yn,C:({children:e})=>n.jsx("div",{className:J.c,children:e}),L:bn,O:({children:e,className:t,title:a})=>n.jsxs("div",{className:[J.o,t].join(" "),children:[a&&n.jsx("div",{className:J.hh,children:a}),e]}),S:vn,H:gn,M:({children:e})=>n.jsx("div",{className:J.m,children:e}),F:kn},Ji={Send:ei,Line:xn};function Xi(){return n.jsx("svg",{viewBox:"0 0 462.86 359.96",children:n.jsx("path",{d:"M210.5,307.78c-27,35.41-58.14,58-120.55,50.84-1-.12-1.58-.39-1.58-2V327.87c0-1.32.51-2.12,1.85-2,100.39-1,88.17-63.46,74.8-90.94-47.3-97.28-14.46-166.27,20.26-205.14,14.1-16.37,50.53-42,128.07-23.24,9.1,2,30.51,7.8,24.46,11.38C317.5,30,297.66,68.33,295,73.12c-3.62,6.59-6.26,13.17-4.57,14.13,2.37,1.35,3.5-1.56,6.58-7.91C319.78,34.41,366-22.76,402.78,37.68a1.14,1.14,0,0,1,.09.26c9.3,56.05,30.57,228.62-97.76,224.22-23.38-2-28.82-22-32.57-18.89-3.36,3,10,21.4,32.76,23.19C448.18,270.75,411.55,66.74,407.79,41.91a1.41,1.41,0,0,1,0-.3c2-7.32,129.15,17.47,112.77,158.08,4.82,6.57,10.89,10,18.7,16.08l.13.07c8.9,3.67,10.46,12.06,11.43,18.88a63.15,63.15,0,0,1-.14,15.49c-10.48-4.62-22.74-10.11-22.26-22.53.43-12,7.35-5.21-8.8-14.22a.69.69,0,0,0-1,.57c-.33,3.87-2.7,14.69-3,16.59v0c-4.64,17-16.59,86-18.41,99.58-.77,5.7-4.94,10.41-11.4,10.39l-56.71.18c-7.73.22-9.57-7.9-10.27-11.89-2.7-15.31-4.08-29.7-4.18-29.67-20.24,9.26-108.69,3.08-108.69,3.27V330c-.29,7.56-4.51,15.26-11.74,15.32l-52.87,1c-10.36.1-13.85-1.67-15.5-11.87-2.08-13.08-1-34.26-5.32-37.43-2,1.84-8.33,8.11-10,10.83M196.16,203q9.57,0,11.42-7.72c2.18-9.07-5.66-17.7-14.77-15.68-4.95,1.11-7.53,4.94-7.53,11.53C185.28,199,188.94,203,196.16,203Z",transform:"translate(-88.37 0)"})})}const Qi={};function eo(e){Qi.add(e)}function to({color:e,size:t,name:a}){return n.jsx("svg",{width:t,height:t,color:e,children:n.jsx("use",{href:`#${a}`})})}const no={Logo:Xi,Sprite:eo,Symbol:to};function ao(){return n.jsxs("svg",{viewBox:"0 0 24 24",fill:"none",children:[n.jsx("path",{d:"M5.15837 11.491C5.08489 12.887 5.16936 14.373 3.92213 15.3084C3.34164 15.7438 3 16.427 3 17.1527C3 18.1508 3.7818 19 4.8 19H19.2C20.2182 19 21 18.1508 21 17.1527C21 16.427 20.6584 15.7438 20.0779 15.3084C18.8306 14.373 18.9151 12.887 18.8416 11.491C18.6501 7.85223 15.6438 5 12 5C8.35617 5 5.34988 7.85222 5.15837 11.491Z",stroke:"currentColor",strokeWidth:"1",strokeLinecap:"round",strokeLinejoin:"round",fill:"none"}),n.jsx("path",{d:"M10.5 3.125C10.5 3.95343 11.1716 5 12 5C12.8284 5 13.5 3.95343 13.5 3.125C13.5 2.29657 12.8284 2 12 2C11.1716 2 10.5 2.29657 10.5 3.125Z",stroke:"currentColor",strokeWidth:"1",fill:"none"}),n.jsx("path",{d:"M15 19C15 20.6569 13.6569 22 12 22C10.3431 22 9 20.6569 9 19",stroke:"currentColor",strokeWidth:"1",strokeLinecap:"round",strokeLinejoin:"round",fill:"none"})]})}function io(){return n.jsxs("svg",{viewBox:"0 0 24 24",fill:"none",children:[n.jsx("path",{d:"M4.4094 11.4516C4.62188 7.41446 7.95728 4.25 12 4.25C16.0427 4.25 19.3781 7.41446 19.5906 11.4516C19.5997 11.6241 19.6064 11.7893 19.6129 11.9485C19.6351 12.49 19.6544 12.9615 19.7525 13.4133C19.8698 13.9531 20.0867 14.3775 20.5279 14.7084C21.2972 15.2854 21.75 16.191 21.75 17.1527C21.75 18.534 20.6628 19.75 19.2 19.75H4.8C3.33719 19.75 2.25 18.534 2.25 17.1527C2.25 16.191 2.70278 15.2854 3.47213 14.7084C3.91329 14.3775 4.13025 13.9531 4.24749 13.4133C4.34561 12.9615 4.3649 12.49 4.38705 11.9485V11.9485L4.38705 11.9485C4.39356 11.7893 4.40032 11.6241 4.4094 11.4516Z",fill:"#141B34"}),n.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.5286 1.37434C10.9737 1.08296 11.517 1 12 1C12.483 1 13.0263 1.08296 13.4714 1.37434C13.9652 1.69759 14.25 2.22083 14.25 2.875C14.25 3.47116 14.017 4.09375 13.6626 4.57057C13.3138 5.03989 12.7415 5.5 12 5.5C11.2585 5.5 10.6862 5.03989 10.3374 4.57057C9.98299 4.09375 9.75 3.47116 9.75 2.875C9.75 2.22083 10.0348 1.69759 10.5286 1.37434Z",fill:"#141B34"}),n.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9 18C9.55228 18 10 18.4477 10 19C10 20.1046 10.8954 21 12 21C13.1046 21 14 20.1046 14 19C14 18.4477 14.4477 18 15 18C15.5523 18 16 18.4477 16 19C16 21.2091 14.2091 23 12 23C9.79086 23 8 21.2091 8 19C8 18.4477 8.44772 18 9 18Z",fill:"#141B34"})]})}function oo(){return n.jsx("svg",{viewBox:"0 0 24 24",fill:"none",children:n.jsx("path",{d:"M8.85746 12.5061C6.36901 10.6456 4.59564 8.59915 3.62734 7.44867C3.3276 7.09253 3.22938 6.8319 3.17033 6.3728C2.96811 4.8008 2.86701 4.0148 3.32795 3.5074C3.7889 3 4.60404 3 6.23433 3H17.7657C19.396 3 20.2111 3 20.672 3.5074C21.133 4.0148 21.0319 4.8008 20.8297 6.37281C20.7706 6.83191 20.6724 7.09254 20.3726 7.44867C19.403 8.60062 17.6261 10.6507 15.1326 12.5135C14.907 12.6821 14.7583 12.9567 14.7307 13.2614C14.4837 15.992 14.2559 17.4876 14.1141 18.2442C13.8853 19.4657 12.1532 20.2006 11.226 20.8563C10.6741 21.2466 10.0043 20.782 9.93278 20.1778C9.79643 19.0261 9.53961 16.6864 9.25927 13.2614C9.23409 12.9539 9.08486 12.6761 8.85746 12.5061Z",stroke:"currentColor",strokeWidth:"1",strokeLinecap:"round",strokeLinejoin:"round",fill:"none"})})}const ro={n:"_n_euuvm_1"};let ze={},Pe=[];const so=(e,t)=>{switch(t.type){case"open":return{...e,open:t.open};case"view":return{...e,view:e.view===t.view?null:t.view};case"add":return{...e,news:[...e.news,t.data],active:!0};case"news":return{...e,news:t.data,active:t.data.length!==0};case"hide":let a=e.news.filter(o=>o.id!==t.id);return{...e,news:a,active:a.length!==0};case"size":return{...e,size:t.size};case"take":let i={[t.list]:t.take};i={...e.take,...i},e.active=!1;for(let o in i)i[o]!=="999"&&(e.active=!0);return ze.get(i,e.active),{...e,take:i,active:e.active};case"exit":return e;default:throw new Error}};function lo(e){ze.fn({action:"add",data:e})}function _o(e){ze.fn({action:"add",data:e})}function co(e){ze.fn({action:"new",data:e})}function uo(e){ze.fn=e}function fo(){const[e,t]=b.useReducer(so,{open:!1,active:!1,news:[],take:{}});Ze.useListener("bell",async i=>{}),uo(async i=>{switch(i.action){case"add":Pe.push(i.data);break}}),b.useEffect(()=>{(async()=>{let i=await Ze.Send({type:"module",module:"M00",query:"x0054",array:["M01","M02"]});for(let o in i)switch(o){case"news":t({type:"news",data:i.news});break;case"M01":i[o].forEach(r=>{Pe.push({module:"M01",type:1,id:r.id,datetime:new Date(r.tDate).getTime(),txt:r.p01})});break;case"M02":i[o].forEach(r=>{Pe.push({module:"M02",type:117,id:r.id,datetime:new Date(r.tDate).getTime(),txt:r.p01})});break}})(),setInterval(()=>{Pe.forEach((i,o)=>{t({type:"add",data:{module:i.module,type:i.type,id:i.id,datetime:i.datetime,txt:i.title}}),i.datetime<new Date().getTime()&&Pe.splice(o,1)})},6e4)},[]);let a=async i=>{t({type:"hide",id:i.id})};return n.jsxs(n.Fragment,{children:[n.jsx("div",{className:ro.n,onClick:()=>{t({type:"open",open:!0})},children:e.active?n.jsx(io,{}):n.jsx(ao,{})}),e.open?n.jsxs(n.Fragment,{children:[n.jsx("div",{className:"notify-o",onClick:()=>{t({type:"open",open:!1})}}),n.jsxs("div",{className:"notify-m",children:[n.jsx("div",{className:"notify-l",children:e.news.map((i,o)=>n.jsx(mo,{data:i,dispatch:t},o))}),n.jsx("div",{className:"notify-b",onClick:a,children:"История"})]})]}):""]})}const mo=({data:e,dispatch:t})=>{let a=async i=>{t({type:"hide",id:i.id}),await Ze.Send({type:"module",module:"M00",query:"x0055",data:{id:i.id,type:i.type,db:i.db}})};return n.jsxs("div",{className:"notify-i",children:[n.jsx("div",{className:"--icon","data-icon":e.type}),n.jsxs("div",{className:"--body",children:[n.jsx("div",{className:"--name",children:e.type}),n.jsx("div",{className:"--text",children:e.txt})]}),n.jsx("div",{className:"--hide","data-icon":"F038",onClick:()=>a(e),children:" "})]})},po="KGZ1bmN0aW9uKCl7InVzZSBzdHJpY3QiO2xldCBhPVtdLHM9bnVsbDtvbmNvbm5lY3Q9ZnVuY3Rpb24obCl7dmFyIHQ9bC5zb3VyY2U7YS5wdXNoKHQpO2NvbnN0IG49ZT0+e3MhPT1udWxsJiZzLnJlYWR5U3RhdGU9PT0xP3Muc2VuZChKU09OLnN0cmluZ2lmeShlKSk6dC5wb3N0TWVzc2FnZSh7dHlwZToibm9TZW5kIn0pfTtsZXQgcj1lPT57aWYocyE9PW51bGwmJnMucmVhZHlTdGF0ZT09PTEpcmV0dXJuIHQucG9zdE1lc3NhZ2Uoe3R5cGU6InRydWUifSk7ZS5say5hZGRyZXNzPT09ImxvY2FsaG9zdCI/cz1uZXcgV2ViU29ja2V0KGB3czovL2xvY2FsaG9zdDoke2UubGsuc29ja2V0KzF9YCk6cz1uZXcgV2ViU29ja2V0KCJ3c3M6Ly8iK2UubGsuYWRkcmVzcysiOiIrKGUubGsuc29ja2V0KzEpKSxzLm9uZXJyb3I9KCk9PnQucG9zdE1lc3NhZ2Uoe3R5cGU6ImVycm9yIn0pLHMub25vcGVuPSgpPT57bih7dHlwZToiY29ubmVjdCIsdWtleTplLnVrZXl9KX0scy5vbm1lc3NhZ2U9bz0+e2xldCBjPUpTT04ucGFyc2Uoby5kYXRhKTthLmZvckVhY2goZD0+e2QucG9zdE1lc3NhZ2UoYyl9KX0scy5vbmNsb3NlPSgpPT50LnBvc3RNZXNzYWdlKHt0eXBlOiJjbG9zZWQifSl9O3Qub25tZXNzYWdlPWZ1bmN0aW9uKGUpe3N3aXRjaChlLmRhdGEudHlwZSl7Y2FzZSJsZW5ndGgiOnJldHVybiB0LnBvc3RNZXNzYWdlKGEubGVuZ3RoKTtjYXNlImFsbCI6cmV0dXJuIGEuZm9yRWFjaChvPT5vLnBvc3RNZXNzYWdlKHthbGw6YS5sZW5ndGh9KSk7Y2FzZSJzZW5kIjpyZXR1cm4gbihlLmRhdGEuanNvbik7Y2FzZSJjb25uZWN0IjpyZXR1cm4gcihlLmRhdGEpO2RlZmF1bHQ6dC5wb3N0TWVzc2FnZSh7dHlwZToiZGVmYXVsdCIsZGF0YTplLmRhdGEuanNvbn0pfX19fSkoKTsK";function ho(e){return new SharedWorker("data:text/javascript;base64,"+po,{name:e==null?void 0:e.name})}function xo(e){let t={},a={};e.data.forEach(o=>{t[o.id]={s:o.v,n:o.a},a[o.id]=o});let i={...he(),901:t};Pt(a),Te(i)}let ae={},H={},Ke=["filter","online","users","company","select","setting","info","job"];function go(){const[e,t]=b.useState(!1),[a,i]=b.useState(!1);function o(r){const l=new ho;ae.laodData=d=>{let c=Ke.indexOf(d);c>=0&&Ke.splice(c,1),Ke.length===0&&t(!0)},ae.send=d=>{l.port.postMessage({type:"send",json:d})},l.port.onmessage=d=>{let c=d.data;c.type==="error"&&i(!0),c.type==="true"&&t(!0),c.type==="closed"&&l.port.postMessage({type:"connect",ukey:r,lk:tt()}),Ke.length!==0&&ae.laodData(c.type),H[c.type]&&H[c.type](c)},l.port.postMessage({type:"connect",ukey:r,lk:tt()})}return[o,e,a]}H.module=e=>{ae[e.listen]!==void 0&&(ae[e.listen](e),delete ae[e.listen])},H.bell=co,H.company=xo,H.info=e=>{let t={};t.db=e.db,t.id=e.data.id,t.job=e.data.job,t.login=e.data.login,t.name=e.data.p02,t.patronymic=e.data.p03,t.surname=e.data.p01,t.email=e.data.email,t.admin=e.data.menu.includes("99"),Rt(t),Ft(e.data.menu)},H.version=async e=>{Ge.version.Server(e.data)},H.online=async e=>{},H.offline=async e=>{},H.chat=e=>{switch(e.data.action){case"new_message":le.getModule();break;case"view_message":le.getModule();break;case"write_message":le.getModule();break}},H.users=e=>{let t={};e.data.forEach(i=>{let o=i.p01+" "+i.p02+" "+i.p03,r=i.p01+" "+i.p02.substring(0,1)+"."+i.p03.substring(0,1)+".",l=i.p01.substring(0,1)+""+i.p02.substring(0,1)+i.p03.substring(0,1);t[i.id]={id:i.id,admin:i.m.includes("99"),ava:JSON.parse(i.a),job:i.j,login:"",online:{time:i.o,status:0},sts:i.s,nameFull:o,name:r,number:l}});let a={...he(),user:t};Te(a)},H.api=e=>{let t={};e.data.forEach(a=>{t[a.api]={key:a.key,p01:a.p01,p02:a.p02}})},H.delete=()=>{Q()},H.select=e=>{let t={...he()};e.data.forEach(a=>{t[a.n]=JSON.parse(a.s)}),Te(t)},H.job=e=>{let t={...he()},a={};Object.keys(e.data).forEach(i=>{a[i]={s:1,n:e.data[i]}}),t[1]=a,Te(t)},H.setting=e=>{ua(e.data)},H.app=()=>{};const bo=(e,t)=>{ae[e]=t},vo=(e,t)=>{ae[e](t)};function ko(e){let t="_"+String(Math.random()).substring(2,7);return new Promise(a=>{ae[t]=i=>{i.error!==void 0?a({error:i.error}):a(i.data),delete ae[t]},e={...e,listen:t},e.type="modules",ae.send(e)})}const Ze={useConnect:go,useListener:bo,setListener:vo,Send:ko};class yo{constructor(t="el",a="db"){It(this,"storeName");It(this,"_dbp");this.storeName=a,this._dbp=new Promise((i,o)=>{const r=indexedDB.open(t,1);r.onerror=()=>o(r.error),r.onsuccess=()=>i(r.result),r.onupgradeneeded=()=>{r.result.createObjectStore(a)}})}_withIDBStore(t,a){return this._dbp.then(i=>new Promise((o,r)=>{const l=i.transaction(this.storeName,t);l.oncomplete=()=>o(),l.onabort=l.onerror=()=>r(l.error),a(l.objectStore(this.storeName))}))}}let xt,L={};const je=()=>(xt||(xt=new yo),xt),me=(e,t,a=je())=>a._withIDBStore("readwrite",i=>{L[e]=t,i.put(D.enCode(t),e)}),re=(e,t=je())=>L[e]===void 0?new Promise((a,i)=>{let o;t._withIDBStore("readonly",r=>{o=r.get(e)}).then(()=>{if(o.result!==void 0){let r=D.deCode(o.result);L[e]=r,a(r)}else a({})})}):L[e],wo=(e,t=je())=>t._withIDBStore("readwrite",a=>{a.delete(e)}),gt=(e=je())=>e._withIDBStore("readwrite",t=>{t.clear()}),Co={id:async(e,t,a)=>{let i=await re(t);if(a!==void 0)a({type:"load",base:i});else return i[e]},get:re,set:me,add:async(e,t,a,i)=>{let o,r;r=await re(a),r[e.id]=e,await me(a,r),o!==null&&(o=await re(t),o[e.id]=e.eDate,await me(t,o)),i!==void 0&&i({type:"load",page:o,base:r})},del:wo,upd:(e,t,a,i=je())=>{if(L[e]===void 0)return new Promise((o,r)=>{let l;i._withIDBStore("readonly",d=>{l=d.get(e)}).then(()=>{if(l.result!==void 0){let d=D.deCode(l.result);L[e]=d,L[e][t.id]={...L[e][t.id],...t.data},i.put(D.enCode(L[e]),e),o({})}else o({})})});if(L[e][t.id]!==void 0)return L[e][t.id]={...L[e][t.id],...t.data},a!==void 0&&L[a]!==void 0?L[a][t.id]!==void 0&&(L[a][t.id]=t.data.eDate):L[a]=[],delete L[e][t.id].$_item,delete L[e][t.id].$_send,i._withIDBStore("readwrite",o=>{o.put(D.enCode(L[e]),e),a!==void 0&&o.put(D.enCode(L[a]),a)})},key:(e=je())=>{const t=[];return e._withIDBStore("readonly",a=>{(a.openKeyCursor||a.openCursor).call(a).onsuccess=function(){this.result&&(t.push(this.result.key),this.result.continue())}}).then(()=>t)},load:e=>L[e],split:(e,t,a=[],i={})=>{let o=a.length!==0,r=[],l=i.sort,d=Object.keys(i).length!==0,c=Object.keys(i),_=Object.keys(e),u=[],f=m=>{let h="";if(a.forEach(v=>{h+=t[m][v]}),d){let v={};c.forEach(x=>{v[x]=t[m][x]});for(let x in l)t[m][l[x]]===void 0&&(gt(),location.reload()),x==="s1"&&(v[x]=new Date(t[m][l[x]]).getTime()),x==="s2"&&(v[x]=t[m][l[x]]),x==="s3"&&(v[x]=t[m][l[x]].replace(/[^a-zа-яё]/gi,"").substring(0,1));r.push({id:m,text:h,...v})}else r.push({id:m,text:h})},g=m=>{};return _.forEach(m=>{u.push(t[m])}),u.forEach(m=>{m===void 0?(gt(),location.reload()):(o&&f(m.id),d&&g(m.id))}),{list:u,search:r,filter:i}},clear:gt,updAll:async(e,t,a,i)=>{let o=await re(t),r=await re(a);for(let l in e)r[l]=e[l],o[l]=e[l].eDate;await me(t,o),await me(a,r),i!==void 0&&i({type:"load",page:o,base:r})},delAll:async(e,t,a,i)=>{let o=await re(t),r=await re(a);e.forEach(l=>delete o[l]),await me(t,o),i!==void 0&&i({type:"load",page:o,base:r})},delList:async(e,t,a)=>{let i=await re(t);e.forEach(o=>delete i[o]),await me(t,i)},addList:async(e,t,a)=>{let i=await re(t);e.forEach(o=>i[o.id]=o.eDate),await me(t,i)}},jo={setSetting:fa,getSetting:ma},So={s:"_s_18bde_1",loadingB:"_loadingB_18bde_1",ul:"_ul_18bde_31"};function Bo({children:e}){return n.jsx("ul",{className:J.ul,children:e})}function Eo(e,t){switch(t.type){case"load":return{...e,load:t.load,wait:!1,item:1,data:t.data,list:t.data[1],size:Object.keys(t.data).length};case"update":let a=Object.keys(e.data).length,i=e.item+1;return i=a<i?1:i,e.item===i?e:{...e,wait:e.size===i,item:i,list:[...e.list,...e.data[i]]};case"clear":return{load:!1,list:[],data:{},item:1,wait:!1,size:0};default:throw new Error}}function To({list:e,load:t,className:a,...i}){const o=b.useRef(null),[r,l]=b.useReducer(Eo,{load:!1,list:[],data:{},item:1,wait:!1,size:0});b.useEffect(()=>{o.current.scrollTop=0,e!==null&&l({type:"load",load:!0,data:e})},[t]);let d=()=>{o.current.scrollHeight-o.current.scrollTop-300<=o.current.clientHeight&&!r.wait&&l({type:"update"})};return n.jsx("div",{className:[So.s,a].join(" "),ref:o,onScroll:d,children:n.jsx(Bo,{"el-empty":"Данные не найдены",children:r.load&&r.list!==void 0?r.list.map(c=>n.jsx(i.item,{data:c},c.id)):n.jsxs("div",{"data-load":"load",children:[n.jsx("i",{}),n.jsx("i",{}),n.jsx("i",{})]})})})}const Io=({label:e,onValue:t,value:a,name:i,item:o})=>{const[r,l]=b.useState(!!a);b.useEffect(()=>{l(!!a)},[a]);let d=()=>{let c=parseInt(r)===0?1:0;l(c),t({value:c,name:i,key:o,item:o})};return n.jsx("div",{role:"switch",onClick:d,"aria-checked":`${r?"true":"false"}`})},Se={};function Mo(e){const[t,a]=b.useState({}),i=b.useRef(e);return Se.u=o=>{i.current={...i.current,[o.name]:o.value}},Se.r=()=>{a(Date.now())},[i.current]}function No(e){Se.u(e),e.reload&&Se.r()}function Do(){Se.r&&Se.r()}const $o={Color:en,Date:rt,Code:Qt,Check:dn,Switch:Ht,Button:Yt,Message:Vt,Generator:Jt,Captcha:Xt,Modal:lt,Money:dt,Month:nn,Notes:an,Number:_t,Password:on,Phone:ut,Search:rn,Select:ft,Set:ht,Textarea:sn,Time:ln,Users:pt,String:mt,Form:ht,runReload:Do,useData:Mo,setValue:No,Palette:Io,Toogle:_n,Group:cn,Options:un},wn={spinner:"_spinner_1ul0m_1",l:"_l_1ul0m_75",loadingB:"_loadingB_1ul0m_1"};function Fo(){return n.jsx("div",{className:wn.spinner,children:n.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 483 484",children:n.jsx("path",{d:"M264,492a22.2,22.2,0,0,0,22-22V411a22.2,22.2,0,0,0-22-22H236a22.2,22.2,0,0,0-22,22v59a22.2,22.2,0,0,0,22,22Zm74-134a23.9,23.9,0,0,0-6,16,20.35,20.35,0,0,0,6,15l42,42q7,7,16,7,10,0,16-7l20-20a20.35,20.35,0,0,0,6-15,23.9,23.9,0,0,0-6-16l-42-42q-7-7-16-7-8,0-15,7ZM163,389a18.94,18.94,0,0,0,7-15q0-9-7-16l-20-20q-7-7-16-7-8,0-15,7L70,380q-7,7-7,16a18.94,18.94,0,0,0,7,15l20,20q7,7,16,7a18.94,18.94,0,0,0,15-7ZM112,237a22.2,22.2,0,0,0-22-22H31a21.17,21.17,0,0,0-15.5,6.5A21.17,21.17,0,0,0,9,237v28a21.17,21.17,0,0,0,6.5,15.5A21.17,21.17,0,0,0,31,287H90a22.2,22.2,0,0,0,22-22Zm358,50a22.2,22.2,0,0,0,22-22V237a22.2,22.2,0,0,0-22-22H411a22.2,22.2,0,0,0-22,22v28a22.2,22.2,0,0,0,22,22ZM163,142q7-7,7-15.5T163,111L121,69q-7-7-15-7-7,0-16,7L70,89q-7,7-7,16a18.94,18.94,0,0,0,7,15l42,42a18.94,18.94,0,0,0,15,7q10,0,16-7Zm269-22a20.35,20.35,0,0,0,6-15,23.9,23.9,0,0,0-6-16L412,69q-7-7-16-7-7,0-16,7l-42,42q-7,8-7,16t7,15l21,20a18.94,18.94,0,0,0,15,7q10,0,16-7Zm-168-9a22.06,22.06,0,0,0,15.5-6q6.5-6,6.5-16V30a21.17,21.17,0,0,0-6.5-15.5A21.17,21.17,0,0,0,264,8H236a21.17,21.17,0,0,0-15.5,6.5A21.17,21.17,0,0,0,214,30V89q0,10,6.5,16a22.06,22.06,0,0,0,15.5,6Z",transform:"translate(-9 -8)"})})})}function zo(){return n.jsxs("div",{className:wn.l,children:[n.jsx("i",{}),n.jsx("i",{}),n.jsx("i",{})]})}const Po={Spinner:Fo,Inline:zo},Cn={s:"_s_t9swc_1"};let bt;function Ro({className:e,placeholder:t}){let a=l=>{bt(l.target.textContent)},i=l=>{l.key==="Enter"&&l.preventDefault()},o=l=>{l.preventDefault(),navigator.clipboard.readText().then(d=>{window.document.execCommand("insertText",!1,d)}).catch(d=>{})};const r={};return t&&(r.placeholder=t),r.className=e?[Cn.s,e].join(" "):Cn.s,n.jsx("div",{onPaste:o,onInput:a,onKeyDown:i,contentEditable:"true",...r,suppressContentEditableWarning:!0})}function Lo(e,t,a){let i=[],o=1,r=0,l={},d=50;return l[o]=[],e.forEach(c=>{c.text.toLowerCase().indexOf(t)>-1&&i.push(c.id)}),i.forEach(c=>{r++,r<=d||(o++,r=1,l[o]=[]),l[o].push(a[c])}),l}function Ao(e){bt=e}function Oo(e){bt=e}const Go={Field:Ro,Run:Lo,Get:Ao,useValue:Oo},Wo={f:"_f_q3r0i_1"};let ee={};function Ko(e,t){switch(t.type){case"open":return{...e,open:t.open};case"view":return{...e,view:e.view===t.view?null:t.view};case"data":let a={};return Object.keys(t.data).forEach(o=>{o!=="sort"&&(a[o]=t.data[o],e.take[o]="999")}),{...e,data:a,take:e.take};case"size":return{...e,size:t.size};case"take":let i={[t.list]:t.take};i={...e.take,...i},e.active=!1;for(let o in i)i[o]!=="999"&&(e.active=!0);return ee.get(i,e.active),{...e,take:i,active:e.active};case"exit":for(let o in e.take)e.take[o]="999";return ee.get&&ee.get([],!1),{...e,size:0,active:!1,take:e.take,open:!1};default:throw new Error}}function Zo(){const[e,t]=b.useReducer(Ko,{open:!1,view:null,data:{},take:{},size:0,active:!1});return ee.set=a=>{t({type:"data",data:a})},ee.count=a=>{t({type:"size",size:a})},ee.reset=()=>{t({type:"exit"})},n.jsxs(n.Fragment,{children:[n.jsxs("div",{className:Wo.f,onClick:()=>{t({type:"open",open:!0})},children:[n.jsx(oo,{}),e.active&&n.jsxs("i",{children:[e.size,"1"]})]}),e.open?n.jsxs(n.Fragment,{children:[n.jsx("div",{className:"filter o",onClick:()=>{t({type:"open",open:!1})}}),n.jsxs("div",{className:"filter m",children:[n.jsx("div",{className:"filter l",children:Object.keys(e.data).map(a=>n.jsx(Vo,{data:a,dispatch:t,state:e},a))}),n.jsx("div",{className:"filter b",onClick:()=>{t({type:"exit"})},children:"Убрать фильтер"})]})]}):n.jsx(n.Fragment,{})]})}function Uo(e){ee.get=e}function qo(e){ee.set!==void 0&&ee.set(e)}function Ho(e){ee.reset!==void 0&&ee.reset(e)}function Yo(e,t,a,i){let o=[],r=1,l=0,d={},c=50;return d[r]=[],i===!0&&(Object.keys(t).forEach(_=>{Number.parseInt(t[_])!==999&&(e=e.filter(u=>Number.parseInt(u[_])===Number.parseInt(t[_])))}),jn(e.length)),e.forEach(_=>{o.push(_.id)}),o.forEach(_=>{l++,l<=c||(r++,l=1,d[r]=[]),d[r].push(a[_])}),d}function jn(e){ee.count(e)}function Vo({data:e,state:t,dispatch:a}){let i=()=>{a({type:"view",view:e})},o=()=>{a({type:"take",list:e,take:"999"})};return n.jsxs(n.Fragment,{children:[n.jsxs("div",{className:"filter s",children:[n.jsxs("div",{onClick:i,children:[" ",t.data[e].name," "]}),t.take[e]!=="999"?n.jsx("div",{onClick:o,className:"filter x","data-icon":"F038"}):""]}),n.jsx("div",{className:"filter u","set-active":(t.view===e)+"",children:Object.keys(t.data[e].list).map((r,l)=>n.jsx(Jo,{data:t.data[e].list[r],head:e,type:r,dispatch:a,state:t},l))})]})}function Jo({data:e,head:t,state:a,dispatch:i,type:o}){if(o!=="999"&&e.count===void 0)return"";const r=()=>{i({type:"take",list:t,take:o})};return n.jsxs("div",{className:"filter a",onClick:r,"set-active":(a.take[t]===o)+"",children:[e.name,n.jsx("div",{className:"filter e",children:e.count})]})}const Xo={Button:Zo,useValue:Uo,Set:qo,Run:Yo,Count:jn,Reset:Ho},Qo={Bell:fo,Send:_o,Add:lo};function er({active:e,onActive:t,id:a,name:i}){const[o,r]=b.useState(!!e);b.useEffect(()=>{r(!!e)},[e]);let l=()=>{let d=parseInt(o)===0?1:0;r(d),t&&t({value:d,name:i,id:a})};return n.jsx("div",{role:"switch",onClick:l,"aria-checked":`${o?"true":"false"}`})}const tr={sort:"_sort_1yrvt_1"};let Ue={};function nr(e,t){switch(t.type){case"active":let a="<";return e.active===t.data&&(a=e.sort==="<"?">":"<"),Ue.get({active:t.data,sort:a},!1),zt({active:t.data,sort:a}),{...e,active:t.data,sort:a};default:throw new Error}}function ar(){const[e,t]=b.useReducer(nr,nt()===void 0?{active:1,sort:"<"}:nt());return n.jsxs("div",{className:tr.sort,children:[n.jsx("i",{"data-color":e.active===1?"_506290":"_b5b9cc","data-icon":e.active===1?e.sort==="<"?"F073":"F072":"F071",onClick:()=>t({type:"active",data:1})}),n.jsx("i",{"data-color":e.active===2?"_506290":"_b5b9cc","data-icon":e.active===2?e.sort==="<"?"F066":"F067":"F074",onClick:()=>t({type:"active",data:2})}),n.jsx("i",{"data-color":e.active===3?"_506290":"_b5b9cc","data-icon":e.active===3?e.sort==="<"?"F068":"F069":"F070",onClick:()=>t({type:"active",data:3})})]})}function ir(e){Ue.get=e}function or(e){Ue.set(e)}function rr(e,t,a){let i=1,o=0,r={},l=50;r[i]=[];let d={},c="s1a";switch(d.s1a=(_,u)=>u.s1-_.s1,d.s1d=(_,u)=>_.s1-u.s1,d.s2a=(_,u)=>_.s2-u.s2,d.s2d=(_,u)=>u.s2-_.s2,d.s3a=(_,u)=>_.s3.localeCompare(u.s3),d.s3d=(_,u)=>u.s3.localeCompare(_.s3),a.active){case 1:c=a.sort===">"?"s1d":"s1a";break;case 2:c=a.sort===">"?"s2d":"s2a";break;case 3:c=a.sort===">"?"s3d":"s3a";break}return t.sort(d[c]).forEach(_=>{o++,o<=l||(i++,o=1,r[i]=[]),r[i].push(e[_.id])}),{data:r}}function sr(e){Ue.count(e)}const lr={Init:ar,useValue:ir,Set:or,Run:rr,Count:sr};S.Action=pn,S.Alert=Ji,S.Api=Ga,S.Button=qt,S.Component=Vi,S.DataBase=Co,S.Events=$e,S.Filter=Xo,S.Form=$o,S.Format=be,S.Icon=no,S.Init=Ai,S.Input=fn,S.Loading=Po,S.Modal=st,S.Notice=Fe,S.Notifications=Qo,S.Router=le,S.Scrolling=To,S.Search=Go,S.Setting=Yi,S.Sistym=Ge,S.Socket=Ze,S.Store=se,S.Switch=er,S.Tabs=mn,S.Telegram=B,S.Triage=lr,S.User=jo,Object.defineProperty(S,Symbol.toStringTag,{value:"Module"})});
|
|
31
|
+
<%s key={someKey} {...props} />`,Tt,we,$r,we),On[we+Tt]=!0}}return s===i?Tr(G):Er(G),G}}function Ir(s,p,k){return Gn(s,p,k,!0)}function Mr(s,p,k){return Gn(s,p,k,!1)}var Nr=Mr,Dr=Ir;Me.Fragment=i,Me.jsx=Nr,Me.jsxs=Dr}()),Me}process.env.NODE_ENV==="production"?at.exports=Wa():at.exports=Ka();var n=at.exports;const Za={notice:"_notice_9i5tr_2",error:"_error_9i5tr_9",success:"_success_9i5tr_12",remark:"_remark_9i5tr_15",copy:"_copy_9i5tr_18","show-notice":"_show-notice_9i5tr_1","hide-notice":"_hide-notice_9i5tr_1"};let ce={};function Ua(){let[e,t]=b.useState([]);return ce.set=a=>{t([...e,a])},ce.del=a=>{t(e.filter(i=>i.key!==a))},e.length===0?"":n.jsx("ul",{className:Za.notice,children:e.map(a=>a.item)})}function Ne({data:e}){let[t,a]=b.useState("show");b.useEffect(()=>{setTimeout(function(){a("hide")},1800),setTimeout(function(){ce.del(e.key)},2500)},[e.key]);let i,o;switch(e.type){case"error":i=n.jsx(xe.error,{}),o="Ошибка:";break;case"success":i=n.jsx(xe.success,{}),o="Информация:";break;case"copy":i=n.jsx(xe.success,{}),o="Копирование:";break;case"remark":i=n.jsx(xe.success,{}),o="Подсказка:";break;default:i=n.jsx(xe.success,{}),o="Предупреждение:";break}return n.jsxs("li",{className:"item "+e.type,"data-status":t,children:[i,n.jsx("b",{children:o}),n.jsx("p",{children:e.text})]})}function qa(e){let t=Date.now(),a={key:t,...e};ce.set({item:n.jsx(Ne,{data:a},t),key:t})}function Ha(e){let t=Date.now(),a={key:t,text:e,type:"error"};ce.set({item:n.jsx(Ne,{data:a},t),key:t})}function Ya(e){let t=Date.now(),a={key:t,text:e,type:"success"};ce.set({item:n.jsx(Ne,{data:a},t),key:t})}function Va(e){let t=Date.now(),a={key:t,text:e,type:"remark"};ce.set({item:n.jsx(Ne,{data:a},t),key:t})}function Ja(e){let t=Date.now(),a={key:t,text:e,type:"copy"};ce.set({item:n.jsx(Ne,{data:a},t),key:t})}const xe={};xe.error=()=>n.jsxs("svg",{viewBox:"0 0 24 24",fill:"none",children:[n.jsx("path",{d:"M12 22C7.28595 22 4.92893 22 3.46447 20.5355C2 19.0711 2 16.714 2 12C2 7.28595 2 4.92893 3.46447 3.46447C4.92893 2 7.28595 2 12 2C16.714 2 19.0711 2 20.5355 3.46447C22 4.92893 22 7.28595 22 12C22 16.714 22 19.0711 20.5355 20.5355C19.0711 22 16.714 22 12 22Z",fill:"#bb2014"}),n.jsx("path",{d:"M8.96967 8.96967C9.26256 8.67678 9.73744 8.67678 10.0303 8.96967L12 10.9394L13.9697 8.96969C14.2626 8.6768 14.7374 8.6768 15.0303 8.96969C15.3232 9.26258 15.3232 9.73746 15.0303 10.0303L13.0607 12L15.0303 13.9697C15.3232 14.2625 15.3232 14.7374 15.0303 15.0303C14.7374 15.3232 14.2625 15.3232 13.9696 15.0303L12 13.0607L10.0304 15.0303C9.73746 15.3232 9.26258 15.3232 8.96969 15.0303C8.6768 14.7374 8.6768 14.2626 8.96969 13.9697L10.9394 12L8.96967 10.0303C8.67678 9.73744 8.67678 9.26256 8.96967 8.96967Z",fill:"#fff"})]}),xe.success=()=>n.jsxs("svg",{viewBox:"0 0 24 24",fill:"none",children:[n.jsx("path",{d:"M12 22C7.28595 22 4.92893 22 3.46447 20.5355C2 19.0711 2 16.714 2 12C2 7.28595 2 4.92893 3.46447 3.46447C4.92893 2 7.28595 2 12 2C16.714 2 19.0711 2 20.5355 3.46447C22 4.92893 22 7.28595 22 12C22 16.714 22 19.0711 20.5355 20.5355C19.0711 22 16.714 22 12 22Z",fill:"#367738"}),n.jsx("path",{d:"M16.0303 8.96967C16.3232 9.26256 16.3232 9.73744 16.0303 10.0303L11.0303 15.0303C10.7374 15.3232 10.2626 15.3232 9.96967 15.0303L7.96967 13.0303C7.67678 12.7374 7.67678 12.2626 7.96967 11.9697C8.26256 11.6768 8.73744 11.6768 9.03033 11.9697L10.5 13.4393L14.9697 8.96967C15.2626 8.67678 15.7374 8.67678 16.0303 8.96967Z",fill:"#fff"})]});const it={alerts:"_alerts_1pds5_1",menuAnimation:"_menuAnimation_1pds5_1",menuItemAnimation:"_menuItemAnimation_1pds5_1","--body":"_--body_1pds5_103",allert:"_allert_1pds5_111","--form":"_--form_1pds5_111",al:"_al_1pds5_1"};let De={};function Xa(){let[e,t]=b.useState("");return De.set=a=>t(a),De.del=()=>t(""),n.jsx(n.Fragment,{children:e})}const Qa=({data:e,callback:t})=>(e.button=e.button===void 0?"Подтвердить":e.button,n.jsxs("div",{className:it.alerts,children:[n.jsxs("dl",{children:[n.jsx("dt",{children:e.title}),n.jsx("dd",{children:e.text}),n.jsx("ul",{children:n.jsx("button",{"data-color":e.color||"blue",onClick:()=>{t(),De.del()},children:e.button})})]}),n.jsx("div",{className:it["--body"],onClick:De.del})]}));function ei(e,t){De.set(n.jsx(Qa,{data:e,callback:t}))}const Ut={btn:"_btn_1hz2s_6",confirm:"_confirm_1hz2s_19"};function qt({onClick:e,onSend:t,label:a,onRef:i}){let[o,r]=b.useState(!1);const l=()=>{if(e)return e();o||(r(!0),t&&t(r))};return n.jsx("button",{ref:i,className:[Ut.btn,Ut.confirm].join(" "),onClick:l,children:o?"Ожидайте":a})}const ne={white:"_white_11p39_14",black:"_black_11p39_26",shake:"_shake_11p39_1",modal:"_modal_11p39_73",o:"_o_11p39_83",w:"_w_11p39_14",h:"_h_11p39_107",l:"_l_11p39_121",t:"_t_11p39_159",m:"_m_11p39_73",x:"_x_11p39_167",s:"_s_11p39_177",c:"_c_11p39_182",f:"_f_11p39_187",btn:"_btn_11p39_230",g:"_g_11p39_243","size-a":"_size-a_11p39_296","size-s":"_size-s_11p39_300","size-m":"_size-m_11p39_304","size-l":"_size-l_11p39_308","size-x":"_size-x_11p39_312","size-f":"_size-f_11p39_316",confirm:"_confirm_11p39_322",cancel:"_cancel_11p39_327",disabled:"_disabled_11p39_332",await:"_await_11p39_339",active:"_active_11p39_389",coincidence:"_coincidence_11p39_395",sa:"_sa_11p39_431",ss:"_ss_11p39_435",sm:"_sm_11p39_439",sl:"_sl_11p39_443",sx:"_sx_11p39_447",sf:"_sf_11p39_451"};let ge={};function ti({config:e}){let[t,a]=b.useState([]);return ge.x=i=>{i||a([])},ge.config=e,ge.add=i=>{a([...t,i])},n.jsx(n.Fragment,{children:t.map(i=>i)})}function ni({title:e,children:t,button:a,tabs:i,size:o="m",menu:r}){const[l,d]=b.useState(!0),c=b.useRef(),_=f=>{if(a){if(a.onClick)return f(!1),a.onClick({setOpen:d});if(a.onSend)return a.onSend({setOpen:d,disabled:f})}},u=()=>{c.current.setAttribute("shake",!0),setTimeout(()=>{c.current.setAttribute("shake",!1)},1e3)};return n.jsx(n.Fragment,{children:l?n.jsxs("div",{className:`${ne.modal} ${ne.white}`,children:[n.jsx("div",{className:ne.o,onClick:u}),n.jsxs("div",{className:[ne.w,ne[`s${o}`]].join(" "),ref:c,children:[n.jsxs("div",{className:ne.h,children:[n.jsx("div",{className:ne.t,children:e}),n.jsxs("div",{className:ne.m,children:[i&&n.jsx("nav",{children:i.map((f,g)=>n.jsx("span",{onClick:f.onClick,className:f.active?"active":"",children:f.name},g))}),r]}),n.jsx("div",{className:ne.x,onClick:()=>{d(!1)},children:n.jsx("svg",{viewBox:"0 0 24 24",fill:"none",children:n.jsx("path",{d:"M19.0005 4.99988L5.00045 18.9999M5.00045 4.99988L19.0005 18.9999",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round"})})})]}),t,a!==void 0?n.jsx(qt,{label:a.label,onSend:_}):""]})]}):""})}function ai(e){ge.add(n.jsx(ii,{children:e},String(Date.now())))}function ii({children:e}){return n.jsx(n.Fragment,{children:e})}function oi(e){if(e.target.classList[0]!=="modal")return;let t=e.target.children[0];t.setAttribute("shake",!0),setTimeout(()=>{t.setAttribute("shake",!1)},1e3)}function ri({type:e,name:t,params:a}){let[i,o]=b.useState(null);return b.useEffect(()=>{ge.config(e,t,a,o)},[a.id]),n.jsx(n.Fragment,{children:i})}function si(e,t){ge.config(e,t)}function li(e){ge.x(e)}const ot={};function di(e,t){ot[e]=t}function _i(e,t){ot[e]!==void 0&&ot[e](t)}const ue={};function ci(e,t){const[a,i]=b.useState(t);return b.useEffect(()=>{if(ue[e])return ue[e].push(i);ue[e]=[i]},[]),[a]}function ui(e,t){if(ue[e])return ue[e].push(t);ue[e]=[t]}function fi(e,t){ue[e]&&ue[e].forEach(a=>a(t))}const $e={setListener:_i,useListener:di,setEmitter:fi,useEmitter:ci,subEmitter:ui};function mi(){let[e,t]=b.useState([]);return $e.useListener("form",a=>{t([a])}),n.jsx(n.Fragment,{children:e.map(a=>a)})}const le={Path:ca,setPage:Qn,getPage:Nt,usePage:Xn,isPage:ea,setModule:na,getModule:Dt,useModule:ta,isModule:aa,setTabs:oa,getTabs:Oe,useTabs:ia,isTabs:ra,useId:sa,setId:da,subId:la,getId:$t,isId:_a},Fe={Send:qa,Error:Ha,Remark:Va,Success:Ya,Copy:Ja},Ht=({onClick:e,active:t})=>(t=!!t,n.jsx("div",{role:"switch",onClick:()=>e,"aria-checked":`${t?"true":"false"}`}));function Yt({onClick:e,onSend:t,name:a,onRef:i}){let[o,r]=b.useState(!1);const l=()=>{if(e)return e();o||(r(!0),t&&t(r))};return n.jsx("button",{ref:i,"data-form":"button",className:o?"btn await":"btn confirm pointer",onClick:l,children:o?"Ожидайте":a})}function Vt({value:e,onValue:t,onActive:a,data:i,name:o,view:r,edit:l=!0,active:d=!0,placeholder:c="Введите сообщение"}){const _=b.useRef({value:e,timerId:null,shift:!1,send:!0}),u=()=>{_.current.value.length>0?_.current.send&&(a(!0),_.current.send=!1,_.current.timerId=setTimeout(()=>{_.current.send=!0},3e3)):a(!1)},f=y=>{_.current.value=y.target.textContent,u()},g=y=>{y.keyCode===16&&(_.current.shift=!0),y.keyCode===13&&!_.current.shift&&(y.preventDefault(),_.current.value.length!==0&&(y.target.textContent="",i&&i(_.current.value),t&&t(_.current.value),_.current.value="",a(!1)))},m=y=>{y.keyCode===16&&(_.current.shift=!1)},h=y=>{y.preventDefault(),navigator.clipboard.readText().then(C=>{window.document.execCommand("insertText",!1,C)}).catch(C=>{})},v=()=>{a(!1)},x={spellCheck:"true"};return c&&(x.placeholder=c),l&&d&&(x.contentEditable="plaintext-only"),n.jsx("dl",{"data-form":"message",children:n.jsx("dd",{onPaste:h,onInput:f,onKeyUp:m,onKeyDown:g,onBlur:v,...x,suppressContentEditableWarning:!0,children:e})})}function Jt(e){let t=()=>e.title?n.jsx("dt",{children:e.title}):"",a=e.edit!==void 0?e.edit:!0,i=e.active!==void 0?e.active:!0,o=e.placeholder!==void 0?e.placeholder:"",r=c=>{e.onValue({value:c.target.textContent,name:e.name})},l=c=>{c.key==="Enter"&&c.preventDefault()},d=c=>{c.preventDefault(),navigator.clipboard.readText().then(_=>{window.document.execCommand("insertText",!1,_)}).catch(_=>{})};return n.jsxs("dl",{"data-form":"input","type-data":"generator",children:[t(),n.jsx("dd",{onPaste:d,onInput:r,onKeyDown:l,contentEditable:a&&i?"plaintext-only":"false","data-placeholder":o,suppressContentEditableWarning:!0,children:e.value})]})}let fe={};fe.KeyDown=e=>{e.key==="Enter"&&e.preventDefault()},fe.PasteOne=e=>{e.preventDefault(),navigator.clipboard.readText().then(t=>{t=t.replace(/^\s*/,"").replace(/\s*$/,""),window.document.execCommand("insertText",!1,t)}).catch(t=>{})},fe.Focus=e=>{e.target.textContent.length===0&&(e.target.innerHTML="<br>")},fe.Blur=e=>{e.target.scrollLeft=0,e.target.querySelector("br")!==null&&e.target.querySelector("br").remove()};function Xt({value:e,onValue:t,placeholder:a="",name:i}){let o=(m,h)=>Number(Math.round(m+Math.random()*(h-m))),r=b.useRef(null),l=b.useRef(null),d=o(1e4,99999),c=m=>{m.key!=="Backspace"&&(m.key==="Enter"&&m.preventDefault(),m.target.textContent.length===5&&m.preventDefault(),/\d/.test(m.key)||m.preventDefault())},_=m=>{t({value:Number(m.target.textContent)===d,name:i})},u=m=>{m.preventDefault(),navigator.clipboard.readText().then(h=>{window.document.execCommand("insertText",!1,h.replace(/(\r\n|\n|\r)/gm," ").replace(/[^0-9]/g,"").substring(0,5))}).catch(h=>{})};b.useEffect(()=>{const m=r.current,h=m.getContext("2d");h.clearRect(0,0,m.width,m.height),h.font="30px brush script mt",h.fillStyle="#eee",h.textAlign="center",h.fillText(d,50,27),l.current.textContent=""},[d]);const f={};f.field="captcha";const g={};return a&&(g.placeholder=a),n.jsxs("dl",{...f,children:[n.jsx("dd",{ref:l,onPaste:u,onInput:_,onBlur:fe.Blur,onKeyDown:c,contentEditable:"plaintext-only",suppressContentEditableWarning:!0,...g}),n.jsx("canvas",{ref:r,width:"100",height:"35"})]})}function Qt(e){let t=()=>e.title?n.jsx("dt",{children:e.title}):"",a=()=>e.error?n.jsx("em",{children:e.error}):"",i={n1:"",n2:"",n3:"",n4:"",n5:"",n6:"",code:""},o=_=>{_.preventDefault(),_.target.textContent=_.target.textContent.slice(-1).replace(/[^+\d]/g,"");let u=window.getSelection(),f=_.target.textContent.length;if(i[_.target.id]=_.target.textContent,i.code=i.n1+""+i.n2+i.n3+i.n4+i.n5+i.n6,u.collapse(_.target.firstChild,1),f===0){_.target.blur(),_.target.focus();return}_.target.nextSibling!=null&&_.target.nextSibling.focus()},r=_=>{if(_.key==="Enter"&&_.preventDefault(),_.key==="Backspace"){if(_.preventDefault(),_.target.textContent="",i[_.target.id]="",_.target.previousSibling!=null){let u=_.target.previousSibling.id.slice(1);_.target.previousSibling.textContent="",i["n"+u]="",_.target.previousSibling.focus()}i.code=i.n1+""+i.n2+i.n3+i.n4+i.n5+i.n6}},l=_=>{if(e.real)e.onValue({value:i.code,name:e.name});else if(i.code.length===6&&(e.onValue({value:i.code,name:e.name}),e.empty)){i={n1:"",n2:"",n3:"",n4:"",n5:"",n6:"",code:""};for(let u=1;u<=6;u++){let f=document.getElementById("n"+u);f&&(f.textContent="")}}},d=_=>{_.target.textContent=""},c=_=>{_.preventDefault()};return n.jsxs("dl",{"data-form":"code",children:[t(),n.jsxs("div",{children:[n.jsx("dd",{id:"n1",onKeyDown:r,onKeyUp:l,onFocus:d,onPaste:c,onInput:o,contentEditable:!0}),n.jsx("dd",{id:"n2",onKeyDown:r,onKeyUp:l,onFocus:d,onPaste:c,onInput:o,contentEditable:!0}),n.jsx("dd",{id:"n3",onKeyDown:r,onKeyUp:l,onFocus:d,onPaste:c,onInput:o,contentEditable:!0}),n.jsx("dd",{id:"n4",onKeyDown:r,onKeyUp:l,onFocus:d,onPaste:c,onInput:o,contentEditable:!0}),n.jsx("dd",{id:"n5",onKeyDown:r,onKeyUp:l,onFocus:d,onPaste:c,onInput:o,contentEditable:!0}),n.jsx("dd",{id:"n6",onKeyDown:r,onKeyUp:l,onFocus:d,onPaste:c,onInput:o,contentEditable:!0})]}),a()]})}function en(e){let t=()=>e.title?n.jsx("dt",{children:e.title}):"",a=()=>e.error?n.jsx("em",{children:e.error}):"";e.edit!==void 0&&e.edit,e.active!==void 0&&e.active;let[i,o]=b.useState(e.value),r=l=>{let d=l.target.getAttribute("set-color");o(d),e.onValue({value:d,name:e.name})};return n.jsx(n.Fragment,{children:e.view==="icon"?n.jsx("i",{"data-icon":"F043"}):n.jsxs("dl",{children:[t(),n.jsxs("dd",{"el-val":i,children:[n.jsx("em",{onClick:r,"set-color":"0"}),n.jsx("em",{onClick:r,"set-color":"1"}),n.jsx("em",{onClick:r,"set-color":"2"}),n.jsx("em",{onClick:r,"set-color":"3"}),n.jsx("em",{onClick:r,"set-color":"4"}),n.jsx("em",{onClick:r,"set-color":"5"})]}),a()]})})}function rt({label:e,value:t,placeholder:a,onValue:i,name:o}){const r="__.__.____",l=new Set("_"),d=(h=>Array.from(r,(v,x)=>l.has(v)?h=x+1:h))(0),c=[...r].findIndex(h=>l.has(h)),_=new RegExp("\\d","g"),u=h=>(h=h.match(_)||[],Array.from(r,v=>(h[0]===v||l.has(v))&&h.shift()||v)),f=h=>{const[v,x]=[h.target.selectionStart,h.target.selectionEnd].map(y=>(y=u(h.target.value.slice(0,y)).findIndex(C=>l.has(C)),y<0?d[d.length-1]:g?d[y-1]||c:y));h.target.value=u(h.target.value).join(""),h.target.setSelectionRange(v,x),g=!1,i==null||i({name:o,value:h.target.value})};let g=!1;const m={};return m.field="input",n.jsxs("dl",{...m,children:[n.jsx("dt",{}),n.jsx("dd",{children:n.jsx("input",{type:"tel",placeholder:a,onChange:f,inputMode:"numeric",onKeyDown:h=>g=h.key==="Backspace",onFocus:f,onBlur:h=>h.target.value===r&&(h.target.value="")})})]})}function pi({children:e}){return n.jsx("div",{className:"l",children:n.jsx("ul",{children:e})})}function hi({children:e}){return n.jsx("div",{className:ne.s,children:e})}function xi({children:e,className:t}){let a={};return t&&(a.className=t),n.jsx("div",{"data-form":"outline",...a,children:n.jsx("ul",{children:e})})}function gi({children:e}){return n.jsx("div",{className:ne.c,children:e})}const st={List:pi,Scroll:hi,Main:ni,Add:ai,Icon:ri,Open:si,Shake:oi,Form:xi,Center:gi,Close:li};function lt({value:e,onValue:t,name:a,placeholder:i="",title:o,error:r,hide:l=!1,edit:d=!0,show:c=!0,active:_=!0,after:u="",view:f,modal:g,module:m,options:h,className:v}){let[x,y]=b.useState(e),C=z=>{if(!(d&&_)||!g)return;let O=g.split(".");st.Open(O[1],{callback:U=>{t&&t({value:U,name:a}),y(U)},onValue:t,options:h,name:a,value:e})};const T={};T.field="input",v&&(T.className=v);const I={};return i&&(I.placeholder=i),l?n.jsx(n.Fragment,{}):n.jsxs("dl",{...T,children:[o&&n.jsx("dt",{children:o}),n.jsx("dd",{...I,onClick:C,edit:(d&&_)+"","data-after":u,children:x}),r&&n.jsx("em",{children:r})]})}function bi(e,t){t===void 0?(t=e,e=new Date):e=new Date(e);let a={yyyy:e.getFullYear(),yy:(""+e.getFullYear()).slice(-2),mm:("0"+(e.getMonth()+1)).slice(-2),dd:("0"+e.getDate()).slice(-2),HH:("0"+e.getHours()).slice(-2),MM:("0"+e.getMinutes()).slice(-2),SS:("0"+e.getSeconds()).slice(-2),__:" ",_:" "};for(const i in a)t=t.replace(i,a[i]);return t}function vi(e){let t=["Января","Февраля","Марта","Апреля","Мая","Июня","Июля","Августа","Сентября","Октября","Ноября","Декабря"],a=new Date(e);return{day:(""+a.getFullYear()).slice(-2)+""+("0"+(a.getMonth()+1)).slice(-2)+("0"+a.getDate()).slice(-2),name:a.getDate()+" "+t[a.getMonth()]}}const ki=e=>{function t(T,I){var z,U,O;T=T??"",I=I??1;for(var z=[],O=0,U=T.length;O<U;)z.push(T.slice(O,O+=I));return z}function a(T,I){var z=[2,0,1,1,1,2];return I[T>4&&T<20?2:z[Math.min(T,5)]]}var i={null:"ноль",a1:["один","два","три","четыре","пять","шесть","семь","восемь","девять"],a2:["одна","две","три","четыре","пять","шесть","семь","восемь","девять"],a10:["десять","одиннадцать","двенадцать","тринадцать","четырнадцать","пятнадцать","шестнадцать","семнадцать","восемнадцать","девятнадцать"],a20:["двадцать","тридцать","сорок","пятьдесят","шестьдесят","семьдесят","восемьдесят","девяносто"],a100:["сто","двести","триста","четыреста","пятьсот","шестьсот","семьсот","восемьсот","девятьсот"],uc:["копейка","копейки","копеек"],ur:["рубль","рубля","рублей"],u3:["тысяча","тысячи","тысяч"],u2:["миллион","миллиона","миллионов"],u1:["миллиард","миллиарда","миллиардов"]},o,r,l,d,x,c,_,v,u,f,g,m;u=parseFloat(e).toFixed(2).split("."),c=u[0],d=u[1];var h=12-c.length;if(h<0)return!1;for(var v=[];h--;)v.push("0");c=v.join("")+c;var x=[];if(c>0){f=t(c,3);for(var y=-1;y<f.length;y++)if(_=f[y],_>0&&(g=t(_,1),o=parseInt(g[0]),r=parseInt(g[1]),l=parseInt(g[2]),x.push(i.a100[o-1]),m=y+1==3?"a2":"a1",r>1?x.push(i.a20[r-2]+(l>0?" "+i[m][l-1]:"")):x.push(r>0?i.a10[l]:i[m][l-1]),f.length>y+1)){var C=i["u"+(y+1)];x.push(a(_,C))}}else x.push(i.null);return x.push(a(c,i.ur)),x.push(d+" "+a(d,i.uc)),x.join(" ").replace(RegExp(" {2,}","g")," ").trimLeft()};function yi(e){let t=-1,a=[" kB"," MB"," GB"," TB","PB","EB","ZB","YB"];do e=e/1024,t++;while(e>1024);return Math.max(e,.1).toFixed(1)+a[t]}function wi(e){let t={};return t["application/atom+xml"]="atom",t["application/json"]="json",t["application/javascript"]="js",t["application/ogg"]="ogg",t["application/pdf"]="pdf",t["application/soap+xml"]="soap",t["application/font-woff"]="woff",t["application/xhtml+xml"]="xml",t["application/xml-dtd"]="dtd",t["application/xop+xml"]="xop",t["application/zip"]="zip",t["application/gzip"]="gzip",t["application/x-bittorrent"]="bittorrent",t["application/x-tex"]="tex",t["application/xml"]="xml",t["application/msword"]="doc",t["image/svg+xml"]="svg",t[e]}function Ci(e,t,a,i){let o={sexM:"m",sexF:"f",gcaseIm:"nominative",gcaseNom:"nominative",gcaseRod:"genitive",gcaseGen:"genitive",gcaseDat:"dative",gcaseVin:"accusative",gcaseAcc:"accusative",gcaseTvor:"instrumentative",gcaseIns:"instrumentative",gcasePred:"prepositional",gcasePos:"prepositional",rules:{lastName:{exceptions:[" дюма,тома,дега,люка,ферма,гамарра,петипа,шандра . . . . ."," гусь,ремень,камень,онук,богода,нечипас,долгопалец,маненок,рева,кива . . . . ."," вий,сой,цой,хой -я -ю -я -ем -е"],suffixes:["f б,в,г,д,ж,з,й,к,л,м,н,п,р,с,т,ф,х,ц,ч,ш,щ,ъ,ь . . . . .","f ска,цка -ой -ой -ую -ой -ой","f ая --ой --ой --ую --ой --ой"," ская --ой --ой --ую --ой --ой","f на -ой -ой -у -ой -ой"," иной -я -ю -я -ем -е"," уй -я -ю -я -ем -е"," ца -a -е -у -ей -е"," рих а у а ом е"," ия . . . . ."," иа,аа,оа,уа,ыа,еа,юа,эа . . . . ."," их,ых . . . . ."," о,е,э,и,ы,у,ю . . . . ."," ова,ева -ой -ой -у -ой -ой"," га,ка,ха,ча,ща,жа -и -е -у -ой -е"," ца -и -е -у -ей -е"," а -ы -е -у -ой -е"," ь -я -ю -я -ем -е"," ия -и -и -ю -ей -и"," я -и -е -ю -ей -е"," ей -я -ю -я -ем -е"," ян,ан,йн а у а ом е"," ынец,обец --ца --цу --ца --цем --це"," онец,овец --ца --цу --ца --цом --це"," ц,ч,ш,щ а у а ем е"," ай -я -ю -я -ем -е"," гой,кой -го -му -го --им -м"," ой -го -му -го --ым -м"," ах,ив а у а ом е"," ший,щий,жий,ний --его --ему --его -м --ем"," кий,ый --ого --ому --ого -м --ом"," ий -я -ю -я -ем -и"," ок --ка --ку --ка --ком --ке"," ец --ца --цу --ца --цом --це"," в,н а у а ым е"," б,г,д,ж,з,к,л,м,п,р,с,т,ф,х а у а ом е"]},firstName:{exceptions:[" лев --ьва --ьву --ьва --ьвом --ьве"," павел --ла --лу --ла --лом --ле","m шота . . . . .","m пётр ---етра ---етру ---етра ---етром ---етре","f рашель,нинель,николь,габриэль,даниэль . . . . ."],suffixes:[" е,ё,и,о,у,ы,э,ю . . . . .","f б,в,г,д,ж,з,й,к,л,м,н,п,р,с,т,ф,х,ц,ч,ш,щ,ъ . . . . .","f ь -и -и . ю -и","m ь -я -ю -я -ем -е"," га,ка,ха,ча,ща,жа -и -е -у -ой -е"," ша -и -е -у -ей -е"," а -ы -е -у -ой -е"," ия -и -и -ю -ей -и"," я -и -е -ю -ей -е"," ей -я -ю -я -ем -е"," ий -я -ю -я -ем -и"," й -я -ю -я -ем -е"," б,в,г,д,ж,з,к,л,м,н,п,р,с,т,ф,х,ц,ч а у а ом е"]},middleName:{suffixes:[" ич а у а ем е"," на -ы -е -у -ой -е"]}},initialized:!1,init:function(){this.initialized||(this.prepareRules(),this.initialized=!0)},prepareRules:function(){for(var l in this.rules)for(var d in this.rules[l])for(var c=0,_=this.rules[l][d].length;c<_;c++)this.rules[l][d][c]=this.rule(this.rules[l][d][c])},rule:function(l){var d=l.match(/^\s*([fm]?)\s*(\S+)\s+(\S+)\s+(\S+)\s+(\S+)\s+(\S+)\s+(\S+)\s*$/);return d?{sex:d[1],test:d[2].split(","),mods:[d[3],d[4],d[5],d[6],d[7]]}:!1},word:function(l,d,c,_){if(_===this.gcaseNom)return l;if(l.match(/[-]/)){for(var u=l.split("-"),f=0,g=u.length;f<g;f++)u[f]=this.word(u[f],d,c,_);return u.join("-")}if(l.match(/^[А-ЯЁ]\.?$/i))return l;this.init();var m=this.rules[c];let h;return m.exceptions&&(h=this.pick(l,d,_,m.exceptions,!0),h)?h:(h=this.pick(l,d,_,m.suffixes,!1),h||l)},pick:function(l,d,c,_,u){let f=l.toLowerCase();for(var g=0,m=_.length;g<m;g++)if(this.ruleMatch(f,d,_[g],u))return this.applyMod(l,c,_[g]);return!1},ruleMatch:function(l,d,c,_){if(c.sex===this.sexM&&d===this.sexF||c.sex===this.sexF&&d!==this.sexF)return!1;for(var u=0,f=c.test.length;u<f;u++){var g=_?l:l.substr(Math.max(l.length-c.test[u].length,0));if(g===c.test[u])return!0}return!1},applyMod:function(l,d,c){let _;switch(d){case this.gcaseNom:_=".";break;case this.gcaseGen:_=c.mods[0];break;case this.gcaseDat:_=c.mods[1];break;case this.gcaseAcc:_=c.mods[2];break;case this.gcaseIns:_=c.mods[3];break;case this.gcasePos:_=c.mods[4];break}for(var u=0,f=_.length;u<f;u++){var g=_.substr(u,1);switch(g){case".":break;case"-":l=l.substr(0,l.length-1);break;default:l+=g}}return l},getSex:()=>{if(o.mn.length>2)switch(o.mn.substr(o.mn.length-2)){case"ич":return"m";case"на":return"f"}return""},fullName:l=>((o.fullNameSurnameLast?"":o.lastName(l)+" ")+o.firstName(l)+" "+o.middleName(l)+(o.fullNameSurnameLast?" "+o.lastName(l):"")).replace(/^ +| +$/g,""),lastName:l=>o.word(o.ln,o.sex,"lastName",l),firstName:l=>o.word(o.fn,o.sex,"firstName",l),middleName:l=>o.word(o.mn,o.sex,"middleName",l)};if(typeof t>"u"){var r=e.match(/^\s*(\S+)(\s+(\S+)(\s+(\S+))?)?\s*$/);if(!r)return"Cannot parse supplied name";r[5]&&r[3].match(/(ич|на)$/)&&!r[5].match(/(ич|на)$/)?(e=r[5],t=r[1],a=r[3],o.fullNameSurnameLast=!0):(e=r[1],t=r[3],a=r[5])}return o.ln=e,o.fn=t||"",o.mn=a||"",o.sex=i||o.getSex(),o}function ji(e){let t=e.split(" ");switch(t.length){case 2:return t[0]+" "+t[1].substring(0,1)+".";case 3:return t[0]+" "+t[1].substring(0,1)+"."+t[2].substring(0,1)+".";default:return e}}function Si(e){return{1:{val:"01",name:"Январь",names:"Января",abc:"Янв"},2:{val:"02",name:"Февраль",names:"Февраля",abc:"Февр"},3:{val:"03",name:"Март",names:"Марта",abc:"Март"},4:{val:"04",name:"Апрель",names:"Апреля",abc:"Апр"},5:{val:"05",name:"Май",names:"Мая",abc:"Май"},6:{val:"06",name:"Июнь",names:"Июня",abc:"Июнь"},7:{val:"07",name:"Июль",names:"Июля",abc:"Июль"},8:{val:"08",name:"Август",names:"Августа",abc:"Авг"},9:{val:"09",name:"Сентябрь",names:"Сентебря",abc:"Сент"},10:{val:"10",name:"Октябрь",names:"Октября",abc:"Окт"},11:{val:"11",name:"Ноябрь",names:"Ноября",abc:"Нояб"},12:{val:"12",name:"Декабрь",names:"Декабря",abc:"Дек"}}[e]}function Bi(e){return parseFloat(e).toFixed(2).replace(/(\d)(?=(\d{3})+\.)/g,"$1 ")}function Ei(e,t){let a=t+"";for(;a.length<e;)a="0"+a;return a}function Ti(e,t,a){let i=t/e*a;return(typeof i!="number"||i===1/0)&&(i=0),parseFloat(i).toFixed(1)}function Ii(e){return e.charAt(0).toUpperCase()+e.slice(1)}function Mi(e,t){e=Math.abs(e)%100;let a=e%10;return e>10&&e<20?t[2]:a>1&&a<5?t[1]:a===1?t[0]:t[2]}function Ni(e,t,a){return he(e,t)?he(e,t).n:a||""}function Di(e,t){return e.reduce(function(a,i){let o=t instanceof Function?t(i):i[t];return a[o]!==void 0||(a[o]={}),a[o][i.id]=i,a},{})}function $i(e){return parseInt((Date.now()-new Date(e).getTime())/31536e6+"")+""}const be={Age:$i,Date:bi,MoneyString:ki,DateSort:vi,Size:yi,TypeFiles:wi,Cases:Ci,Initials:ji,Month:Si,Money:Bi,Number:Ei,Percent:Ti,CapitalizeFirstLetter:Ii,DeclensionWord:Mi,Select:Ni,ObjectByArray:Di};function dt(e){let t=e.value,a=f=>e.type==="multi"?f.replace(/[^+\d.+-]/g,""):f.replace(/[^+\d.]/g,""),i=(f,g)=>{let m=document.createRange(),h=window.getSelection();m.setStart(g.childNodes[0],f),m.collapse(!0),h.removeAllRanges(),h.addRange(m),g.focus()},o=f=>{e.onValue({value:a(f.target.textContent),name:e.name}),f.target.textContent=a(f.target.textContent),f.target.textContent.length>0&&i(f.target.textContent.length,f.target)},r=f=>{f.target.textContent===""&&(f.target.textContent=0),e.onValue({value:a(f.target.textContent),name:e.name}),f.target.textContent=be.Money(f.target.textContent)},l=f=>{f.target.textContent=a(f.target.textContent)},d=f=>{f.key==="Enter"&&f.preventDefault()},c=f=>{f.preventDefault(),navigator.clipboard.readText().then(g=>{g=g.replace(/^\s*/,"").replace(/\s*$/,""),window.document.execCommand("insertText",!1,g)}).catch(g=>{})},_=()=>e.title?n.jsx("dt",{children:e.title}):"",u=()=>e.error?n.jsx("em",{children:e.error}):"";return n.jsxs("dl",{"data-form":"input",children:[_(),n.jsx("dd",{onInput:o,onPaste:c,onBlur:r,onKeyDown:d,onFocus:l,contentEditable:!0,suppressContentEditableWarning:!0,"e-after":e.after,children:be.Money(t)}),u()]})}const tn={o:"_o_1kqkq_1",c:"_c_1kqkq_11"};function nn({value:e,onValue:t,name:a,view:i,error:o,edit:r=!0,active:l=!0,title:d,placeholder:c="",after:_}){let[u,f]=b.useState(e);b.useEffect(()=>{f(e)},[e]);let g=v=>{f(v),t&&t({value:v,name:a})},m=v=>{if(!r||!l)return;const x=v.target.getBoundingClientRect(),y=x.left,C=x.top;$e.setListener("form",n.jsx(Fi,{position:{x:y,y:C},onValue:g,date:u},new Date().getTime()))};const h={};return c&&(h.placeholder=c),n.jsx(n.Fragment,{children:i==="icon"?n.jsx("i",{"data-icon":"F043",onClick:m}):n.jsxs("dl",{children:[d&&n.jsx("dt",{children:d}),n.jsx("dd",{onClick:m,...h,children:be.Date(u,"mm.yyyy")}),o&&n.jsx("em",{children:o})]})})}const Fi=e=>{let[t,a]=b.useState(!0),i=new Date,o=new Date(e.date),r={y:parseInt(i.getFullYear()),m:parseInt(i.getMonth())+1},l={y:parseInt(o.getFullYear()),m:parseInt(o.getMonth())+1},[d,c]=b.useState(l.y),_=()=>{a(!1)},u=()=>{c(d+1)},f=()=>{c(d-1)},g=y=>{e.onValue(d+"-"+be.Number(2,y)),_()},m=y=>r.y===l.y&&r.m===y?"_FFEB3B":"",h=Array(12).fill("").map((y,C)=>C+1),v=window.innerHeight-e.position.y+33<320?e.position.y-312:e.position.y+33,x=window.innerWidth-e.position.x<265?e.position.x-235:e.position.x;return n.jsx(n.Fragment,{children:t?n.jsxs(n.Fragment,{children:[n.jsx("div",{className:tn.o,onClick:()=>_()},new Date().getTime()),n.jsxs("div",{className:tn.c,style:{top:v+"px",left:x+"px"},children:[n.jsxs("s",{children:[n.jsx("i",{"data-icon":"F021",onClick:()=>f()}),n.jsx("h2",{children:d}),n.jsx("i",{"data-icon":"F022",onClick:()=>u()})]}),n.jsx("div",{children:h.map((y,C)=>n.jsx("span",{onClick:()=>{g(y)},color:m(y),children:n.jsx("b",{children:be.Month(y).abc})},C))})]})]}):""})};function an(e){let t=()=>e.title?n.jsx("dt",{children:e.title}):"",a=()=>e.error?n.jsx("em",{children:e.error}):"",[i,o]=b.useState(!1),r=e.edit!==void 0?e.edit:!0,l=e.active!==void 0?e.active:!0,c=!!(e.hide&&(e.value===""||e.value===void 0))&&!(r&&l);i=r?!0:i;let _=e.placeholder!==void 0?e.placeholder:"Заметка пуста",u=x=>{e.onValue&&e.onValue({value:x.target.innerText,name:e.name})},f=x=>{x.preventDefault(),navigator.clipboard.readText().then(y=>{window.document.execCommand("insertText",!1,y)}).catch(y=>{})},g=x=>{r||o(!i)};const m=x=>{e.onSave&&e.onSave({value:x.target.innerText,name:e.name})},h={};h.field="notes",e.className&&(h.className=e.className);const v={};return _&&(v.placeholder=_),i&&(v.open=""),r&&l&&(v.edit=""),c?n.jsx(n.Fragment,{}):n.jsxs("dl",{...h,children:[t(),n.jsx("dd",{onPaste:f,onInput:u,onBlur:m,contentEditable:r&&l?"plaintext-only":"false",...v,onDoubleClick:g,suppressContentEditableWarning:!0,children:e.value}),a()]})}function _t({onValue:e,active:t,max:a,edit:i,title:o,error:r,show:l,hide:d,value:c,placeholder:_,className:u,name:f,after:g,view:m}){i=i!==void 0?i:!0,t=t!==void 0?t:!0,d=!!(d&&(c===""||c===void 0))&&!(i&&t),_=_!==void 0?_:"",a=a!==void 0?a:99;let v=y=>{e==null||e({name:f,value:y.currentTarget.value})};const x={};return x.field="input",u&&(x.className=u),d?n.jsx(n.Fragment,{}):n.jsxs("dl",{...x,children:[o&&n.jsx("dt",{children:o}),n.jsx("dd",{children:n.jsx("input",{name:f,type:"tel",inputMode:"numeric",onChange:v,placeholder:_})}),r&&n.jsx("em",{children:r})]})}function on({value:e,onValue:t,name:a,placeholder:i="",className:o,title:r,error:l,edit:d=!0,active:c=!0,reload:_=!1,after:u=""}){let f=x=>{t&&t({value:x.target.textContent,name:a,reload:_})},g=x=>{x.key==="Enter"&&x.preventDefault()},m=x=>{x.preventDefault(),navigator.clipboard.readText().then(y=>{window.document.execCommand("insertText",!1,y.replace(/(\r\n|\n|\r)/gm," "))}).catch(y=>{})};const h={};h.field="password",o&&(h.className=o);const v={};return i&&(v.placeholder=i),n.jsxs("dl",{...h,children:[r?n.jsx("dt",{children:r}):"",n.jsx("dd",{onPaste:m,onInput:f,onKeyDown:g,onBlur:fe.Blur,contentEditable:d&&c?"plaintext-only":"false",...v,suppressContentEditableWarning:!0,children:e}),l?n.jsx("em",{children:l}):""]})}const ct={0:{name:"Heard Island and Mcdonald Islands",dial_code:"+0",code:"HM",mask:"+0(___) ___-__-__"},1:{name:"United States",dial_code:"+1",code:"US",mask:"+1(___) ___-__-__"},7:{name:"Russia",dial_code:"+7",code:"RU",mask:"+7(___) ___-__-__"},20:{name:"Egypt",dial_code:"+20",code:"EG",mask:"+20(___) ___-__-__"},27:{name:"South Africa",dial_code:"+27",code:"ZA",mask:"+27(___) __-__-__"},30:{name:"Greece",dial_code:"+30",code:"GR",mask:"+30(___) ___-__-__"},31:{name:"Netherlands",dial_code:"+31",code:"NL",mask:"+31(___) __-__-__"},32:{name:"Belgium",dial_code:"+32",code:"BE",mask:"+32(___) __-__-__"},33:{name:"France",dial_code:"+33",code:"FR",mask:"+33(___) __-__-__"},34:{name:"Spain",dial_code:"+34",code:"ES",mask:"+34(___) __-__-__"},36:{name:"Hungary",dial_code:"+36",code:"HU",mask:"+36(___) __-__-__"},39:{name:"Italy",dial_code:"+39",code:"IT",mask:"+39(___) ___-__-__"},40:{name:"Romania",dial_code:"+40",code:"RO",mask:"+40(___) __-__-__"},41:{name:"Switzerland",dial_code:"+41",code:"CH",mask:"+41(___) __-__-__"},43:{name:"Austria",dial_code:"+43",code:"AT",mask:"+43(__) ___-__-__"},44:{name:"United Kingdom",dial_code:"+44",code:"GB",mask:"+44(___) ___-__-__"},45:{name:"Denmark",dial_code:"+45",code:"DK",mask:"+45(__) __-__-__"},46:{name:"Sweden",dial_code:"+46",code:"SE",mask:"+46(___) __-__-__"},47:{name:"Svalbard and Jan Mayen",dial_code:"+47",code:"SJ",mask:"+47(__) __-__-__"},48:{name:"Poland",dial_code:"+48",code:"PL",mask:"+48(__) __-__-__"},49:{name:"Germany",dial_code:"+49",code:"DE",mask:"+49(___) ___-__-__"},51:{name:"Peru",dial_code:"+51",code:"PE",mask:"+51(___) __-__-__"},52:{name:"Mexico",dial_code:"+52",code:"MX",mask:"+52(__-__) ___-__-__"},53:{name:"Cuba",dial_code:"+53",code:"CU",mask:"+53(__) __-__-__"},54:{name:"Argentina",dial_code:"+54",code:"AR",mask:"+54(__-__) ___-__-__"},55:{name:"Brazil",dial_code:"+55",code:"BR",mask:"+55(___) ___-__-__"},56:{name:"Chile",dial_code:"+56",code:"CL",mask:"+56(___) __-__-__"},57:{name:"Colombia",dial_code:"+57",code:"CO",mask:"+57(___) ___-__-__"},58:{name:"Venezuela, Bolivarian Republic of Venezuela",dial_code:"+58",code:"VE",mask:"+58(___) ___-__-__"},60:{name:"Malaysia",dial_code:"+60",code:"MY",mask:"+60(___) __-__-__"},61:{name:"Cocos (Keeling) Islands",dial_code:"+61",code:"CC",mask:"+61(___) ___-__-__"},62:{name:"Indonesia",dial_code:"+62",code:"ID",mask:"+62(___) __-__-__"},63:{name:"Philippines",dial_code:"+63",code:"PH",mask:"+63(___) ___-__-__"},64:{name:"Pitcairn",dial_code:"+64",code:"PN",mask:"+64(___) __-__-__"},65:{name:"Singapore",dial_code:"+65",code:"SG",mask:"+65(__) __-__-__"},66:{name:"Thailand",dial_code:"+66",code:"TH",mask:"+66(___) __-__-__"},77:{name:"Kazakhstan",dial_code:"+77",code:"KZ",mask:"+77(__) ___-__-__"},81:{name:"Japan",dial_code:"+81",code:"JP",mask:"+81(___) ___-__-__"},82:{name:"Korea, Republic of South Korea",dial_code:"+82",code:"KR",mask:"+82(___) ___-__-__"},84:{name:"Vietnam",dial_code:"+84",code:"VN",mask:"+84(___) __-__-__"},86:{name:"China",dial_code:"+86",code:"CN",mask:"+86(__-__) ___-__-__"},90:{name:"Turkey",dial_code:"+90",code:"TR",mask:"+90(___) ___-__-__"},91:{name:"India",dial_code:"+91",code:"IN",mask:"+91(___) ___-__-__"},92:{name:"Pakistan",dial_code:"+92",code:"PK",mask:"+92(___) ___-__-__"},93:{name:"Afghanistan",dial_code:"+93",code:"AF",mask:"+93(__) ___-__-__"},94:{name:"Sri Lanka",dial_code:"+94",code:"LK",mask:"+94(___) __-__-__"},95:{name:"Myanmar",dial_code:"+95",code:"MM",mask:"+95(___) ___-__-__"},98:{name:"Iran, Islamic Republic of Persian Gulf",dial_code:"+98",code:"IR",mask:"+98(___) ___-__-__"},211:{name:"South Sudan",dial_code:"+211",code:"SS",mask:"+211(___) ___-__-__"},212:{name:"Morocco",dial_code:"+212",code:"MA",mask:"+212(___) __-__-__"},213:{name:"Algeria",dial_code:"+213",code:"DZ",mask:"+213(__) ___-__-__"},216:{name:"Tunisia",dial_code:"+216",code:"TN",mask:"+216(__) __-__-__"},218:{name:"Libyan Arab Jamahiriya",dial_code:"+218",code:"LY",mask:"+218(___) ___-__-__"},220:{name:"Gambia",dial_code:"+220",code:"GM",mask:"+220(___) __-__"},221:{name:"Senegal",dial_code:"+221",code:"SN",mask:"+221(___) __-__-__"},222:{name:"Mauritania",dial_code:"+222",code:"MR",mask:"+222(__) __-__-__"},223:{name:"Mali",dial_code:"+223",code:"ML",mask:"+223(__) __-__-__"},224:{name:"Guinea",dial_code:"+224",code:"GN",mask:"+224(__) __-__-__"},225:{name:"Cote d'Ivoire",dial_code:"+225",code:"CI",mask:"+225(__) __-__-__"},226:{name:"Burkina Faso",dial_code:"+226",code:"BF",mask:"+226(__) __-__-__"},227:{name:"Niger",dial_code:"+227",code:"NE",mask:"+227(__) __-__-__"},228:{name:"Togo",dial_code:"+228",code:"TG",mask:"+228(__) __-__-__"},229:{name:"Benin",dial_code:"+229",code:"BJ",mask:"+229(__) __-__-__"},230:{name:"Mauritius",dial_code:"+230",code:"MU",mask:"+230(___) __-__"},231:{name:"Liberia",dial_code:"+231",code:"LR",mask:"+231(___) __-__"},232:{name:"Sierra Leone",dial_code:"+232",code:"SL",mask:"+232(__) __-__-__"},233:{name:"Ghana",dial_code:"+233",code:"GH",mask:"+233(___) __-__-__"},234:{name:"Nigeria",dial_code:"+234",code:"NG",mask:"+234(___) ___-__-__"},235:{name:"Chad",dial_code:"+235",code:"TD",mask:"+235(__) __-__-__"},236:{name:"Central African Republic",dial_code:"+236",code:"CF",mask:"+236(__) __-__-__"},237:{name:"Cameroon",dial_code:"+237",code:"CM",mask:"+237(__) __-__-__"},238:{name:"Cape Verde",dial_code:"+238",code:"CV",mask:"+238(___) __-__"},239:{name:"Sao Tome and Principe",dial_code:"+239",code:"ST",mask:"+239(___) ___-__-__"},240:{name:"Equatorial Guinea",dial_code:"+240",code:"GQ",mask:"+240(___) __-__-__"},241:{name:"Gabon",dial_code:"+241",code:"GA",mask:"+241(__) __-__-__"},242:{name:"Congo",dial_code:"+242",code:"CG",mask:"+242(___) __-__-__"},243:{name:"Congo, The Democratic Republic of the Congo",dial_code:"+243",code:"CD",mask:"+243(___) ___-__-__"},244:{name:"Angola",dial_code:"+244",code:"AO",mask:"+244(__) ___-__-__"},245:{name:"Guinea-Bissau",dial_code:"+245",code:"GW",mask:"+245(___) __-__"},246:{name:"British Indian Ocean Territory",dial_code:"+246",code:"IO",mask:"+246(___) ___-__-__"},248:{name:"Seychelles",dial_code:"+248",code:"SC",mask:"+248(___) ___-__-__"},249:{name:"Sudan",dial_code:"+249",code:"SD",mask:"+249(___) __-__-__"},250:{name:"Rwanda",dial_code:"+250",code:"RW",mask:"+250(___) __-__-__"},251:{name:"Ethiopia",dial_code:"+251",code:"ET",mask:"+251(___) __-__-__"},252:{name:"Somalia",dial_code:"+252",code:"SO",mask:"+252(___) ___-__-__"},253:{name:"Djibouti",dial_code:"+253",code:"DJ",mask:"+253(___) ___-__-__"},254:{name:"Kenya",dial_code:"+254",code:"KE",mask:"+254(___) __-__-__"},255:{name:"Tanzania, United Republic of Tanzania",dial_code:"+255",code:"TZ",mask:"+255(___) __-__-__"},256:{name:"Uganda",dial_code:"+256",code:"UG",mask:"+256(___) __-__-__"},257:{name:"Burundi",dial_code:"+257",code:"BI",mask:"+257(__) __-__-__"},258:{name:"Mozambique",dial_code:"+258",code:"MZ",mask:"+258(___) __-__-__"},260:{name:"Zambia",dial_code:"+260",code:"ZM",mask:"+260(___) __-__-__"},261:{name:"Madagascar",dial_code:"+261",code:"MG",mask:"+261(___) __-__-__"},262:{name:"Reunion",dial_code:"+262",code:"RE",mask:"+262(___) __-__-__"},263:{name:"Zimbabwe",dial_code:"+263",code:"ZW",mask:"+263(___) __-__-__"},264:{name:"Namibia",dial_code:"+264",code:"NA",mask:"+264(___) __-__-__"},265:{name:"Malawi",dial_code:"+265",code:"MW",mask:"+265(___) __-__-__"},266:{name:"Lesotho",dial_code:"+266",code:"LS",mask:"+266(__) __-__-__"},267:{name:"Botswana",dial_code:"+267",code:"BW",mask:"+267(__) __-__-__"},268:{name:"Swaziland",dial_code:"+268",code:"SZ",mask:"+268(___) ___-__-__"},269:{name:"Comoros",dial_code:"+269",code:"KM",mask:"+269(___) __-__"},290:{name:"Saint Helena, Ascension and Tristan Da Cunha",dial_code:"+290",code:"SH",mask:"+290(___) ___-__-__"},291:{name:"Eritrea",dial_code:"+291",code:"ER",mask:"+291(___) ___-__-__"},297:{name:"Aruba",dial_code:"+297",code:"AW",mask:"+297(_) __-__-__"},298:{name:"Faroe Islands",dial_code:"+298",code:"FO",mask:"+298(__) __-__"},299:{name:"Greenland",dial_code:"+299",code:"GL",mask:"+299(__) __-__"},345:{name:"Cayman Islands",dial_code:"+ 345",code:"KY",mask:"+345(___) ___-__-__"},350:{name:"Gibraltar",dial_code:"+350",code:"GI",mask:"+350(__) __-__-__"},351:{name:"Portugal",dial_code:"+351",code:"PT",mask:"+351(___) __-__-__"},352:{name:"Luxembourg",dial_code:"+352",code:"LU",mask:"+352(___) __-__-__"},353:{name:"Ireland",dial_code:"+353",code:"IE",mask:"+353(___) __-__-__"},354:{name:"Iceland",dial_code:"+354",code:"IS",mask:"+354(___) __-__"},355:{name:"Albania",dial_code:"+355",code:"AL",mask:"+355(__) ___-__-__"},356:{name:"Malta",dial_code:"+356",code:"MT",mask:"+356(__) __-__-__"},357:{name:"Cyprus",dial_code:"+357",code:"CY",mask:"+357(__) __-__-__"},358:{name:"Finland",dial_code:"+358",code:"FI",mask:"+358(___) __-__-__"},359:{name:"Bulgaria",dial_code:"+359",code:"BG",mask:"+359(___) __-__-__"},370:{name:"Lithuania",dial_code:"+370",code:"LT",mask:"+370(_) ___-__-__"},371:{name:"Latvia",dial_code:"+371",code:"LV",mask:"+371(__) __-__-__"},372:{name:"Estonia",dial_code:"+372",code:"EE",mask:"+372(__) __-__-__"},373:{name:"Moldova",dial_code:"+373",code:"MD",mask:"+373(__) __-__-__"},374:{name:"Armenia",dial_code:"+374",code:"AM",mask:"+374(_) ___-__-__"},375:{name:"Belarus",dial_code:"+375",code:"BY",mask:"+375(__) ___-__-__"},376:{name:"Andorra",dial_code:"+376",code:"AD",mask:"+376(_) _-__-__"},377:{name:"Monaco",dial_code:"+377",code:"MC",mask:"+377(___) __-__-__"},378:{name:"San Marino",dial_code:"+378",code:"SM",mask:"+378(__) __-__-__"},379:{name:"Holy See (Vatican City State)",dial_code:"+379",code:"VA",mask:"+379(___) ___-__-__"},380:{name:"Ukraine",dial_code:"+380",code:"UA",mask:"+380(__) ___-__-__"},381:{name:"Serbia",dial_code:"+381",code:"RS",mask:"+381(__) __-__-__"},382:{name:"Montenegro",dial_code:"+382",code:"ME",mask:"+382(___) ___-__-__"},383:{name:"Kosovo",dial_code:"+383",code:"XK",mask:"+383(___) __-__"},385:{name:"Croatia",dial_code:"+385",code:"HR",mask:"+385(__) __-__-__"},386:{name:"Slovenia",dial_code:"+386",code:"SI",mask:"+386(__) __-__-__"},387:{name:"Bosnia and Herzegovina",dial_code:"+387",code:"BA",mask:"+387(__) __-__-__"},389:{name:"Macedonia",dial_code:"+389",code:"MK",mask:"+389(__) __-__-__"},420:{name:"Czech Republic",dial_code:"+420",code:"CZ",mask:"+420(___) __-__-__"},421:{name:"Slovakia",dial_code:"+421",code:"SK",mask:"+421(___) __-__-__"},423:{name:"Liechtenstein",dial_code:"+423",code:"LI",mask:"+423(___) __-__-__"},500:{name:"South Georgia and the South Sandwich Islands",dial_code:"+500",code:"GS",mask:"+500(___) ___-__-__"},501:{name:"Belize",dial_code:"+501",code:"BZ",mask:"+501(___) __-__"},502:{name:"Guatemala",dial_code:"+502",code:"GT",mask:"+502(__) __-__-__"},503:{name:"El Salvador",dial_code:"+503",code:"SV",mask:"+503(__) __-__-__"},504:{name:"Honduras",dial_code:"+504",code:"HN",mask:"+504(__) __-__-__"},505:{name:"Nicaragua",dial_code:"+505",code:"NI",mask:"+505(__) __-__-__"},506:{name:"Costa Rica",dial_code:"+506",code:"CR",mask:"+506(__) __-__-__"},507:{name:"Panama",dial_code:"+507",code:"PA",mask:"+507(__) __-__-__"},508:{name:"Saint Pierre and Miquelon",dial_code:"+508",code:"PM",mask:"+508(___) ___-__-__"},509:{name:"Haiti",dial_code:"+509",code:"HT",mask:"+509(__) __-__-__"},590:{name:"Saint Martin",dial_code:"+590",code:"MF",mask:"+590(___) __-__-__"},591:{name:"Bolivia, Plurinational State of bolivia",dial_code:"+591",code:"BO",mask:"+591(__) __-__-__"},592:{name:"Guyana",dial_code:"+592",code:"GY",mask:"+592(___) ___-__-__"},593:{name:"Ecuador",dial_code:"+593",code:"EC",mask:"+593(___) __-__-__"},594:{name:"French Guiana",dial_code:"+594",code:"GF",mask:"+594(___) __-__-__"},595:{name:"Paraguay",dial_code:"+595",code:"PY",mask:"+595(___) __-__-__"},596:{name:"Martinique",dial_code:"+596",code:"MQ",mask:"+596(___) __-__-__"},597:{name:"Suriname",dial_code:"+597",code:"SR",mask:"+597(___) __-__"},598:{name:"Uruguay",dial_code:"+598",code:"UY",mask:"+598(__) __-__-__"},599:{name:"Netherlands Antilles",dial_code:"+599",code:"AN",mask:"+599(__) __-__-__"},670:{name:"Timor-Leste",dial_code:"+670",code:"TL",mask:"+670(__) __-__-__"},672:{name:"Norfolk Island",dial_code:"+672",code:"NF",mask:"+672(___) ___-__-__"},673:{name:"Brunei Darussalam",dial_code:"+673",code:"BN",mask:"+673(___) __-__"},674:{name:"Nauru",dial_code:"+674",code:"NR",mask:"+674(___) __-__"},675:{name:"Papua New Guinea",dial_code:"+675",code:"PG",mask:"+675(___) __-__"},676:{name:"Tonga",dial_code:"+676",code:"TO",mask:"+676(___) __-__"},677:{name:"Solomon Islands",dial_code:"+677",code:"SB",mask:"+677(___) __-__"},678:{name:"Vanuatu",dial_code:"+678",code:"VU",mask:"+678(___) __-__"},679:{name:"Fiji",dial_code:"+679",code:"FJ",mask:"+679(___) __-__"},680:{name:"Palau",dial_code:"+680",code:"PW",mask:"+680(___) ___-__-__"},681:{name:"Wallis and Futuna",dial_code:"+681",code:"WF",mask:"+681(___) ___-__-__"},682:{name:"Cook Islands",dial_code:"+682",code:"CK",mask:"+682(_) __-__"},683:{name:"Niue",dial_code:"+683",code:"NU",mask:"+683(___) ___-__-__"},685:{name:"Samoa",dial_code:"+685",code:"WS",mask:"+685(__) __-__"},686:{name:"Kiribati",dial_code:"+686",code:"KI",mask:"+686(___) ___-__-__"},687:{name:"New Caledonia",dial_code:"+687",code:"NC",mask:"+687(__) __-__"},688:{name:"Tuvalu",dial_code:"+688",code:"TV",mask:"+688(___) ___-__-__"},689:{name:"French Polynesia",dial_code:"+689",code:"PF",mask:"+689(__) __-__"},690:{name:"Tokelau",dial_code:"+690",code:"TK",mask:"+690(___) ___-__-__"},691:{name:"Micronesia, Federated States of Micronesia",dial_code:"+691",code:"FM",mask:"+691(___) ___-__-__"},692:{name:"Marshall Islands",dial_code:"+692",code:"MH",mask:"+692(___) ___-__-__"},850:{name:"Korea, Democratic People's Republic of Korea",dial_code:"+850",code:"KP",mask:"+850(___) ___-__-__"},852:{name:"Hong Kong",dial_code:"+852",code:"HK",mask:"+852(__) __-__-__"},853:{name:"Macao",dial_code:"+853",code:"MO",mask:"+853(__) __-__-__"},855:{name:"Cambodia",dial_code:"+855",code:"KH",mask:"+855(__) __-__-__"},856:{name:"Laos",dial_code:"+856",code:"LA",mask:"+856(___) ___-__-__"},880:{name:"Bangladesh",dial_code:"+880",code:"BD",mask:"+880(___) ___-__-__"},886:{name:"Taiwan",dial_code:"+886",code:"TW",mask:"+886(___) __-__-__"},960:{name:"Maldives",dial_code:"+960",code:"MV",mask:"+960(___) __-__"},961:{name:"Lebanon",dial_code:"+961",code:"LB",mask:"+961(__) __-__-__"},962:{name:"Jordan",dial_code:"+962",code:"JO",mask:"+962(___) __-__-__"},963:{name:"Syrian Arab Republic",dial_code:"+963",code:"SY",mask:"+963(___) __-__-__"},964:{name:"Iraq",dial_code:"+964",code:"IQ",mask:"+964(___) ___-__-__"},965:{name:"Kuwait",dial_code:"+965",code:"KW",mask:"+965(__) __-__-__"},966:{name:"Saudi Arabia",dial_code:"+966",code:"SA",mask:"+966(___) __-__-__"},967:{name:"Yemen",dial_code:"+967",code:"YE",mask:"+967(___) __-__-__"},968:{name:"Oman",dial_code:"+968",code:"OM",mask:"+968(__) __-__-__"},970:{name:"Palestinian Territory, Occupied",dial_code:"+970",code:"PS",mask:"+970(___) __-__-__"},971:{name:"United Arab Emirates",dial_code:"+971",code:"AE",mask:"+971(___) __-__-__"},972:{name:"Israel",dial_code:"+972",code:"IL",mask:"+972(___) __-__-__"},973:{name:"Bahrain",dial_code:"+973",code:"BH",mask:"+973(__) __-__-__"},974:{name:"Qatar",dial_code:"+974",code:"QA",mask:"+974(__) __-__-__"},975:{name:"Bhutan",dial_code:"+975",code:"BT",mask:"+975(__) __-__-__"},976:{name:"Mongolia",dial_code:"+976",code:"MN",mask:"+976(__) __-__-__"},977:{name:"Nepal",dial_code:"+977",code:"NP",mask:"+977(___) ___-__-__"},992:{name:"Tajikistan",dial_code:"+992",code:"TJ",mask:"+992(___) __-__-__"},993:{name:"Turkmenistan",dial_code:"+993",code:"TM",mask:"+993(__) __-__-__"},994:{name:"Azerbaijan",dial_code:"+994",code:"AZ",mask:"+994(__) ___-__-__"},995:{name:"Georgia",dial_code:"+995",code:"GE",mask:"+995(___) __-__-__"},996:{name:"Kyrgyzstan",dial_code:"+996",code:"KG",mask:"+996(___) __-__-__"},998:{name:"Uzbekistan",dial_code:"+998",code:"UZ",mask:"+998(___) __-__-__"},1242:{name:"Bahamas",dial_code:"+1242",code:"BS",mask:"+1242(___) __-__"},1246:{name:"Barbados",dial_code:"+1246",code:"BB",mask:"+1246(___) __-__"},1264:{name:"Anguilla",dial_code:"+1264",code:"AI",mask:"+1264(___) ___-__-__"},1268:{name:"Antigua and Barbuda",dial_code:"+1268",code:"AG",mask:"+1268(_) __-__"},1284:{name:"Virgin Islands, British",dial_code:"+1284",code:"VG",mask:"+1284(___) __-__"},1340:{name:"Virgin Islands, U.S.",dial_code:"+1340",code:"VI",mask:"+1340(___) ___-__-__"},1441:{name:"Bermuda",dial_code:"+1441",code:"BM",mask:"+1441(___) __-__"},1473:{name:"Grenada",dial_code:"+1473",code:"GD",mask:"+1473(___) __-__"},1649:{name:"Turks and Caicos Islands",dial_code:"+1649",code:"TC",mask:"+1649(___) ___-__-__"},1664:{name:"Montserrat",dial_code:"+1664",code:"MS",mask:"+1664(___) ___-__-__"},1670:{name:"Northern Mariana Islands",dial_code:"+1670",code:"MP",mask:"+1670(___) ___-__-__"},1671:{name:"Guam",dial_code:"+1671",code:"GU",mask:"+1671(___) ___-__-__"},1684:{name:"American Samoa",dial_code:"+1684",code:"AS",mask:"+1684(___) ___-__-__"},1758:{name:"Saint Lucia",dial_code:"+1758",code:"LC",mask:"+1758(___) __-__"},1767:{name:"Dominica",dial_code:"+1767",code:"DM",mask:"+1767(___) __-__"},1784:{name:"Saint Vincent and the Grenadines",dial_code:"+1784",code:"VC",mask:"+1784(___) __-__"},1849:{name:"Dominican Republic",dial_code:"+1849",code:"DO",mask:"+1849(___) ___-__-__"},1868:{name:"Trinidad and Tobago",dial_code:"+1868",code:"TT",mask:"+1868(___) __-__"},1869:{name:"Saint Kitts and Nevis",dial_code:"+1869",code:"KN",mask:"+1869(___) __-__"},1876:{name:"Jamaica",dial_code:"+1876",code:"JM",mask:"+1876(___) __-__"},1939:{name:"Puerto Rico",dial_code:"+1939",code:"PR",mask:"+1939(___) ___-__-__"}};function ut({value:e,onValue:t,onSave:a,name:i,placeholder:o="",title:r="",error:l="",hide:d=!1,edit:c=!0,active:_=!0,after:u="",show:f=!0,view:g,className:m=""}){c=c!==void 0?c:!0,_=_!==void 0?_:!0,d=!!(d&&(e===""||e===void 0))&&!(c&&_),b.useRef(null);let v="+_(___) ___-__-__",x=!0,y=0,C=(R,E)=>{let q=document.createRange(),Y=window.getSelection();q.setStart(E.childNodes[0],R),q.collapse(!0),Y.removeAllRanges(),Y.addRange(q),E.focus()},T=R=>{R.preventDefault(),navigator.clipboard.readText().then(E=>{window.document.execCommand("insertText",!1,E)}).catch(E=>{})},I=R=>{let E=0,q="",Y=R.replace(/\D/g,"");Y===""&&(x=!0);let qe=Y.split(""),ie="";qe.forEach(He=>{x&&(ie+=He,ct[ie]!==void 0&&x?(x=!1,v=ct[ie].mask.replace(new RegExp("[0-9]","g"),"_"),q=ct[ie].code):(x&&(y=(""+ie).length,v=`+${ie}_(___) ___-__-__`.replace(new RegExp("[0-9]","g"),"_"),q=""),y>(""+ie).length&&(x=!0,v=`+${ie}_(___) ___-__-__`.replace(new RegExp("[0-9]","g"),"_"),q="")))});let Re=v.replace(/\D/g,"");return Re.length>=Y.length&&(Y=Re),{q:v.replace(/[_\d]/g,function(){return Y.charAt(E++)||"_"}),i:E,v:Y,f:q}},z=R=>{R.preventDefault(),navigator.clipboard.writeText(R.target.textContent.replace(/\D/g,"")).then(function(){Fe.Copy("Данные в буфер обмене")},function(E){})},O=I(e),U=R=>{let E=I(R.target.textContent);R.target.textContent=E.q,E.i=E.q.lastIndexOf(E.v.substr(-1)),E.i<E.q.length&&E.q!==v?E.i++:E.i=E.q.indexOf("_"),C(E.i,R.target),t&&t({value:E.q.replace(/\D/g,""),name:i})},pe=R=>{R.key==="Enter"&&R.preventDefault()};const W=R=>{fe.Blur(R),a&&a({value:R.target.textContent.replace(/\D/g,""),name:i})},N={};N.field="input",m&&(N.className=m);let K={};return c&&_?(K.edit="true",K.contentEditable="plaintext-only"):K.contentEditable="false",o&&(K.placeholder=o),u&&(K.after=u),d?n.jsx(n.Fragment,{}):n.jsxs("dl",{...N,children:[r&&n.jsx("dt",{children:r}),n.jsx("dd",{...K,onPaste:T,onInput:U,onKeyDown:pe,onContextMenu:z,onBlur:W,suppressContentEditableWarning:!0,children:O.q}),l&&n.jsx("em",{children:l})]})}const rn=e=>{let t=()=>e.title?n.jsx("dt",{children:e.title}):"",a=e.edit!==void 0?e.edit:!0,i=e.active!==void 0?e.active:!0,o=e.placeholder!==void 0?e.placeholder:"",r=0,l=()=>{clearTimeout(r),r=setTimeout(()=>{},1e3)},d=u=>{u.key==="Enter"&&u.preventDefault()},c=u=>{u.preventDefault(),navigator.clipboard.readText().then(f=>{window.document.execCommand("insertText",!1,f)}).catch(f=>{})};const _={};return o&&(_.placeholder=o),n.jsxs("dl",{"data-form":"input",children:[t(),n.jsx("dd",{onPaste:c,onInput:l,onKeyDown:d,contentEditable:a&&i?"plaintext-only":"false",..._,suppressContentEditableWarning:!0,children:e.value})]})};function ft({title:e,error:t,edit:a=!0,active:i=!0,hide:o,value:r="0",onValue:l,options:d,placeholder:c="",name:_,after:u,view:f}){const g=b.useRef();o=!!(o&&(r===""||d[r].n===void 0))&&!(a&&i);let h=r!==void 0&&r!==""?d[r].n:r,v=T=>{g.current.textContent=d[T].n,l&&l({value:T,name:_})},x=T=>{if(!(a&&i))return;const I=T.target.getBoundingClientRect();$e.setListener("form",n.jsx(zi,{parent:I,onValue:v,view:f,options:d},new Date().getTime()))},y={field:"select"},C={onClick:x};return c&&(C.placeholder=c),u&&(C.after=u),a&&i&&(C.edit=""),o?"":n.jsxs("dl",{...y,children:[e&&n.jsx("dt",{children:e}),n.jsx("dd",{...C,ref:g,children:h}),t&&n.jsx("em",{children:t})]})}const zi=({onValue:e,parent:t,view:a,options:i})=>{let[o,r]=b.useState(!0),l=()=>{r(!1)},d=u=>{r(!1),e(u)},c=window.innerHeight-t.y+t.height<320?t.y-312:t.y+33,_=window.innerWidth-t.x<265?t.x-235:t.x;return n.jsx(n.Fragment,{children:o?n.jsxs(n.Fragment,{children:[n.jsx("div",{"data-select":"backdrop",onClick:l},new Date().getTime()),n.jsx("div",{"data-select":"background "+a,style:{top:c+"px",left:_+"px",width:t.width},children:n.jsx("ul",{children:Object.keys(i).map((u,f)=>i[u].s===1?n.jsx("li",{onClick:()=>{d(u)},children:i[u].n},f):"")})})]}):""})};function mt({value:e,onValue:t,name:a,placeholder:i="",title:o="",error:r="",hide:l=!1,edit:d=!0,active:c=!0,after:_="",show:u=!0,view:f,onBlur:g,onSave:m,className:h=""}){let v=!!(l&&(e===""||e===void 0)),x=I=>{t==null||t({value:I.target.value,name:a})},y=I=>{I.preventDefault(),navigator.clipboard.readText().then(z=>{window.document.execCommand("insertText",!1,z.replace(/(\r\n|\n|\r)/gm," "))}).catch(z=>{})},C=I=>{I.preventDefault(),navigator.clipboard.writeText(I.target.value).then(function(){Fe.Copy("Данные в буфер обмене")},function(z){})};if(!(d&&c)&&!u||!(d&&c)&&v)return"";const T={};return T.field="input",h&&(T.className=h),n.jsxs("dl",{...T,children:[o?n.jsx("dt",{children:o}):"",n.jsx("dd",{children:n.jsx("input",{name:a,autoComplete:"off",type:"text",onChange:x,onPaste:y,onContextMenu:C,placeholder:i})}),r?n.jsx("em",{children:r}):""]})}function pt(e){let t=()=>e.title?n.jsx("dt",{children:e.title}):"",a=()=>e.error?n.jsx("em",{children:e.error}):"",i=e.edit!==void 0?e.edit:!0,o=e.active!==void 0?e.active:!0,l=!!(e.hide&&(e.default===""||e.options[e.default]===void 0))&&!(i&&o),d=e.placeholder!==void 0?e.placeholder:"",c=m=>{u(e.options[m]),e.onValue({value:m,name:e.name})},[_,u]=b.useState(e.default!==void 0?e.options[e.default]:e.default),f=m=>{if(!(i&&o))return;const h=m.target.getBoundingClientRect();$e.setListener("form",n.jsx(Pi,{parent:h,onValue:c,view:e.view,options:e.options},new Date().getTime()))};const g={};return d&&(g.placeholder=d),l?n.jsx(n.Fragment,{}):n.jsxs("dl",{"data-form":"select",children:[t(),n.jsx("dd",{onClick:f,"data-edit":(i&&o)+"",...g,children:_}),a()]})}const Pi=({onValue:e,parent:t,view:a,options:i})=>{let[o,r]=b.useState(!0),l=()=>{r(!1)},d=f=>{r(!1),e(f)},c=Object.keys(i).length*36,_=window.innerHeight-t.y+t.height<c?t.y-(c-33):t.y+33,u=window.innerWidth-t.x<265?t.x-235:t.x;return n.jsx(n.Fragment,{children:o?n.jsxs(n.Fragment,{children:[n.jsx("div",{"data-select":"backdrop",onClick:l},new Date().getTime()),n.jsx("div",{"data-select":"background "+a,style:{top:_+"px",left:u+"px",width:t.width},children:n.jsx("ul",{children:Object.keys(i).map((f,g)=>n.jsx("li",{onClick:()=>{d(f)},children:i[f]},g))})})]}):""})};function ht({set:e,value:t,onValue:a,name:i,placeholder:o="",title:r="",error:l="",hide:d=!1,edit:c=!0,show:_=!0,active:u=!0,after:f="",view:g,module:m,item:h,className:v=""}){let x={};switch(e){case"String":return n.jsx(mt,{title:r,show:_,hide:d,view:g,edit:c,active:u,value:t,onValue:a,name:i,placeholder:o,className:v});case"Select":return h&&(x=se.getSelect(parseInt(h))?se.getSelect(parseInt(h)):{0:{s:"1",n:"не известно"}}),n.jsx(ft,{title:r,show:_,hide:d,view:g,edit:c,active:u,value:t,onValue:a,name:i,placeholder:o,className:v,options:x});case"Users":return se.getSelect("user"),n.jsx(pt,{title:r,show:_,hide:d,view:g,edit:c,active:u,value:t,onValue:a,name:i,placeholder:o,className:v,options:x});case"Date":return n.jsx(rt,{title:r,show:_,hide:d,view:g,edit:c,active:u,value:t,onValue:a,name:i,placeholder:o,className:v});case"Phone":return n.jsx(ut,{title:r,show:_,hide:d,view:g,edit:c,active:u,value:t,onValue:a,name:i,placeholder:o,className:v});case"Number":return n.jsx(_t,{title:r,show:_,hide:d,view:g,edit:c,active:u,value:t,onValue:a,name:i,placeholder:o,className:v});case"Money":return n.jsx(dt,{title:r,show:_,hide:d,view:g,edit:c,active:u,value:t,onValue:a,name:i,placeholder:o,className:v});case"Modal":return n.jsx(lt,{title:r,show:_,hide:d,view:g,edit:c,active:u,value:t,onValue:a,name:i||"",placeholder:o,className:v,options:x,module:m||""})}}function sn({value:e,onValue:t,name:a,placeholder:i="",title:o="",error:r="",hide:l=!1,edit:d=!0,active:c=!0,after:_="",show:u=!0,view:f,onBlur:g,onSave:m,className:h=""}){let v=!!(l&&(e===""||e===void 0));if(!(d&&c)&&!u||!(d&&c)&&v)return"";let x=I=>{t&&t({value:I.target.innerText,name:a})},y=I=>{m&&m({value:I.target.innerText,name:a})},C=I=>{I.preventDefault(),navigator.clipboard.readText().then(z=>{window.document.execCommand("insertText",!1,z)}).catch(z=>{})};const T={};return i&&(T.placeholder=i),n.jsxs("dl",{children:[o??n.jsx("dt",{children:o}),n.jsx("dd",{onPaste:C,onBlur:y,onInput:x,contentEditable:d&&c?"plaintext-only":"false",...T,suppressContentEditableWarning:!0,children:e}),r??n.jsx("em",{children:r})]})}function ln({value:e,onValue:t,name:a,placeholder:i="",title:o="",error:r="",hide:l=!1,edit:d=!0,active:c=!0,after:_="",show:u=!0,view:f,onBlur:g,onSave:m,className:h=""}){let v=!!(l&&(e===""||e===void 0));if(be.Date(e===void 0?new Date:e,"HH:MM"),b.useRef(null),!(d&&c)&&!u||!(d&&c)&&v)return"";const x="__:__",y=new Set("_"),C=(N=>Array.from(x,(K,R)=>y.has(K)?N=R+1:N))(0),T=[...x].findIndex(N=>y.has(N)),I=new RegExp("\\d","g"),z=N=>(N=N.match(I)||[],Array.from(x,K=>(N[0]===K||y.has(K))&&N.shift()||K)),O=N=>{const[K,R]=[N.target.selectionStart,N.target.selectionEnd].map(E=>(E=z(N.target.value.slice(0,E)).findIndex(q=>y.has(q)),E<0?C[C.length-1]:W?C[E-1]||T:E));N.target.value=z(N.target.value).join(""),N.target.setSelectionRange(K,R),t==null||t({name:a,value:N.target.value})},U={};U.field="input",h&&(U.className=h);const pe={};i&&(pe.placeholder=i);let W=!1;return n.jsx(n.Fragment,{children:n.jsxs("dl",{...U,children:[o?n.jsx("dt",{children:o}):"",n.jsx("dd",{...pe,children:n.jsx("input",{type:"tel",placeholder:i,onChange:O,inputMode:"numeric",onKeyDown:N=>W=N.key==="Backspace",onFocus:O,onBlur:N=>N.target.value===x&&(N.target.value="")})}),r?n.jsx("em",{children:r}):""]})})}function dn({onValue:e,label:t,value:a,className:i,name:o,reload:r}){a=!!a;const[l,d]=b.useState(a),c=()=>{let f=!l;e({name:o,value:f,reload:r}),d(f)},_={};_.field="check",i&&(_.className=i);const u={};return l&&(u.active=""),n.jsxs("dl",{..._,children:[t?n.jsx("dt",{children:t}):"",n.jsx("dd",{...u,onClick:c})]})}const _n=({onValue:e,value:t,name:a,item:i})=>{const[o,r]=b.useState(!!t);b.useEffect(()=>{r(!!t)},[t]);let l=()=>{let d=parseInt(o)===0?1:0;r(d),e({value:d,name:a,key:i,item:i})};return n.jsx("div",{role:"switch",onClick:l,"aria-checked":`${o?"true":"false"}`})};function cn({value:e,onValue:t,name:a,placeholder:i="",title:o="",error:r="",hide:l=!1,edit:d=!0,active:c=!0,after:_="",show:u=!0,view:f,onBlur:g,onSave:m,className:h=""}){const[v,x]=b.useState(e!==void 0?e.split(","):[]);b.useEffect(()=>{e!==void 0&&x(e!==void 0?e.split(","):[])},[e]);let y=()=>{x([...v,""])},C=W=>{v.splice(W,1),v.length===0&&v.push(""),x([...v]),g!==void 0&&g({value:v.join(","),name:a})},T=!!(l&&(e===""||e===void 0)),I=W=>{};if(!(d&&c)&&!u||!(d&&c)&&T)return"";const z={};z.field="group",h&&(z.className=h);const O=W=>{fe.Blur(W),m&&m({value:W.target.textContent,name:a})};let U=(W,N)=>{v[N]=W.target.textContent,t!==void 0&&t({value:v.join(","),name:a})},pe=W=>{W.key==="Enter"&&W.preventDefault()};return n.jsxs("dl",{...z,children:[n.jsxs("dt",{children:[o,n.jsx("i",{onClick:y,children:n.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",children:[n.jsx("path",{d:"M12 5.25v13.5"}),n.jsx("path",{d:"M18.75 12H5.25"})]})})]}),n.jsx("dd",{children:v.map((W,N)=>n.jsxs("li",{className:"field_group_item",children:[n.jsx("span",{onInput:K=>U(K,N),edit:"true",name:a,placeholder:i,onPaste:I,contentEditable:!0,onKeyDown:pe,onBlur:O,suppressContentEditableWarning:!0,children:v[N]}),n.jsx("i",{onClick:()=>{C(N)},children:n.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",children:[n.jsx("path",{d:"M17.25 17.25 6.75 6.75"}),n.jsx("path",{d:"m17.25 6.75-10.5 10.5"})]})})]},N))}),r?n.jsx("em",{children:r}):""]})}const Ri=e=>(e=e!==void 0&&e!==""?e.split(","):[],e.reduce((t,a)=>(t[a]=!0,t),{}));function un({value:e,onValue:t,name:a,placeholder:i="",title:o,error:r,hide:l=!1,edit:d=!0,show:c=!0,active:_=!0,after:u="",view:f,modal:g,module:m,options:h,className:v}){const[x,y]=b.useState(Ri(e)),C=z=>{if(!(d&&_)||!g)return;let O=g.split(".");st.Open(O[1],{callback:U=>{t&&t({value:U,name:a}),y(U)},onValue:t,options:h,name:a,value:x})},T={};T.field="group",v&&(T.className=v);const I={};return i&&(I.placeholder=i),l?n.jsx(n.Fragment,{}):n.jsxs("dl",{...T,children:[n.jsxs("dt",{children:[o,n.jsx("i",{onClick:C,children:n.jsxs("svg",{width:"20",fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:[n.jsx("path",{d:"M12 5.25v13.5"}),n.jsx("path",{d:"M18.75 12H5.25"})]})})]}),n.jsx("dd",{...I,onClick:open,edit:(d&&_)+"","data-after":u,children:Object.keys(x).map(z=>{var O;return n.jsx("div",{className:"field_group_item",children:(O=h[z])==null?void 0:O.label},z)})}),r&&n.jsx("em",{children:r})]})}const fn={Color:en,Date:rt,Code:Qt,Check:dn,Switch:Ht,Button:Yt,Message:Vt,Generator:Jt,Captcha:Xt,Modal:lt,Money:dt,Month:nn,Notes:an,Number:_t,Password:on,Phone:ut,Search:rn,Select:ft,Set:ht,Textarea:sn,Time:ln,Users:pt,String:mt,Toogle:_n,Group:cn,Options:un},ve={debug:"_debug_ug20b_34",b:"_b_ug20b_46",o:"_o_ug20b_50",mb:"_mb_ug20b_55",tm:"_tm_ug20b_66",ta:"_ta_ug20b_133","--body":"_--body_ug20b_143"},B=window.Telegram.WebApp,ke={is:!1,MainButton:{},BackButton:{}};let ye={};ye.dark={"--tg-theme-bg-color":"#212121","--tg-theme-text-color":"#ffffff","--tg-theme-hint-color":"#aaaaaa","--tg-theme-link-color":"#8774e1","--tg-theme-button-color":"#8774e1","--tg-theme-button-text-color":"#ffffff","--tg-theme-secondary-bg-color":"#0f0f0f","--tg-theme-header-bg-color":"#212121","--tg-theme-accent-text-color":"#8774e1","--tg-theme-section-bg-color":"#212121","--tg-theme-section-header-text-color":"#aaaaaa","--tg-theme-subtitle-text-color":"#aaaaaa","--tg-theme-destructive-text-color":"#e53935"},ye.light={"--tg-theme-bg-color":"#ffffff","--tg-theme-text-color":"#000000","--tg-theme-hint-color":"#999999","--tg-theme-link-color":"#2481cc","--tg-theme-button-color":"#2481cc","--tg-theme-button-text-color":"#ffffff","--tg-theme-secondary-bg-color":"#efeff3"},ye.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"},B.getUser=()=>{var e;return((e=B.initDataUnsafe)==null?void 0:e.user)===void 0?{}:B.initDataUnsafe},B.MainButton.set=e=>{ke.is?ke.MainButton.set(e):typeof e=="boolean"?B.MainButton.isVisible=!1:(B.MainButton.text=e.text,e.color&&(B.MainButton.color=e.color),e.textColor&&(B.MainButton.textColor=e.textColor),B.MainButton.isVisible=!0,B.MainButton.isActive=e.isActive===void 0?!0:e.isActive,e.page===void 0?B.MainButton.onClick(()=>{var t;(t=e.callback)==null||t.call(e)}):B.MainButton.onClick(()=>{le.setPage(e.page)}))},B.BackButton.state=[!1],B.BackButton.listen=[],B.BackButton.router=e=>{e===!1?(B.BackButton.isVisible=!1,B.BackButton.offClick(B.BackButton.listen[0]),B.BackButton.listen.shift(),B.BackButton.state.length!==1&&B.BackButton.state.pop()):(B.BackButton.isVisible=!0,B.BackButton.offClick(B.BackButton.listen[0]),B.BackButton.listen.shift(),B.BackButton.listen.push(()=>{let t=B.BackButton.state.pop();if(t.page!==void 0)le.setPage(t.page);else{let a=B.BackButton.state[B.BackButton.state.length-1];B.BackButton.router(a)}}),B.BackButton.onClick(B.BackButton.listen[0]))},B.BackButton.set=e=>{ke.is?ke.BackButton.set(e):(B.BackButton.state.push(e),B.BackButton.router(e))},B.Notice=(e,t)=>{t!==void 0?(Fe.Send({type:e,text:t}),B.HapticFeedback.notificationOccurred(e)):(Fe.Send(e),B.HapticFeedback.notificationOccurred(e.type))},B.Init=({dev:e})=>{if(e){let[t,a]=b.useState(!1),[i,o]=b.useState(!1),[r,l]=b.useState("dark"),[d,c]=b.useState(!1),[_,u]=b.useState(!1);ke.is=!0,ke.MainButton.set=a,ke.BackButton.set=o,b.useEffect(()=>{for(let m in ye[r])document.documentElement.style.setProperty(m,ye[r][m])},[]);let f=m=>{for(let h in ye[m])document.documentElement.style.setProperty(h,ye[m][h]);l(m),c(!1)},g=()=>{c(!1),u(!0)};return n.jsxs(n.Fragment,{children:[n.jsxs("div",{className:ve.debug,children:[i===!1?n.jsx("div",{className:ve.b,children:"Отмена"}):n.jsx("div",{onClick:()=>{i.page===void 0||le.setPage(i.page)},className:ve.b,children:"Назад"}),n.jsx("div",{className:ve.o,onClick:()=>c(!d),children:"Меню"})]}),t&&n.jsx("div",{className:ve.mb,children:n.jsx("button",{onClick:()=>le.setPage(t.page),children:t.text})}),d?n.jsxs("div",{className:ve.tm,children:[n.jsxs("ul",{children:[n.jsx("li",{children:n.jsx("button",{onClick:g,children:"Authorization"})}),n.jsx("li",{children:n.jsx("button",{onClick:()=>le.setPage("Add"),children:"Add Page"})})]}),n.jsxs("ul",{children:[n.jsxs("li",{children:[n.jsx("button",{children:"Thema"}),n.jsxs("ol",{children:[n.jsx("li",{children:n.jsx("button",{onClick:()=>f("dark"),children:"Dark"})}),n.jsx("li",{children:n.jsx("button",{onClick:()=>f("light"),children:"Light"})}),n.jsx("li",{children:n.jsx("button",{onClick:()=>f("users"),children:"Users"})})]})]}),n.jsx("li",{children:n.jsx("button",{onClick:()=>c(!d),children:"Closed"})})]})]}):"",_?n.jsx(Li,{setAuthorization:u}):""]})}else return n.jsx(n.Fragment,{})};const Li=({setAuthorization:e})=>{let t={},a=o=>{t=o.value},i=o=>{localStorage.setItem("auth",t)};return n.jsx("div",{className:ve.ta,children:n.jsxs("div",{className:"--body",children:[n.jsx("fieldset",{children:n.jsx(fn.Notes,{label:"Data JSON",name:"description",onValue:a,placeholder:""})}),n.jsx("div",{onClick:i,children:" Сщхранить "})]})})},Ai=({children:e,config:t})=>(window.location.pathname==="/clear"&&(window.history.pushState({},"","/"),Q()),D.New(t.crypto),t.defaultModule&&Wn(t.defaultModule),Zn(n.jsxs(n.Fragment,{children:[n.jsx(B.Init,{dev:t.dev}),n.jsx(ti,{config:t.modal}),n.jsx(Ua,{}),n.jsx(Xa,{}),n.jsx(mi,{}),e]}))),mn=({list:e,onClick:t,active:a,size:i,view:o})=>n.jsx("nav",{children:n.jsx("ul",{className:[i,o].join(" "),children:e.map(r=>n.jsx(Oi,{onClick:t,active:a,label:r.label,link:r.link},r.link))})}),Oi=({onClick:e,label:t,link:a,active:i})=>n.jsx("li",{"tabs-active":String(i===a),onClick:()=>e(a),children:t});mn.defaultProps={size:"M",view:"H"};const Gi=({title:e="",button:t,description:a="",children:i})=>n.jsxs("fieldset",{children:[e&&n.jsxs("legend",{children:[e,t&&n.jsx("div",{role:"button-outline",onClick:()=>t.onClick(),children:t.label})," "]}),n.jsx("ul",{children:i}),a&&n.jsx("article",{children:a})]}),Wi={setting:"_setting_dva4m_2"},Ki=({children:e})=>n.jsx("div",{className:Wi.setting,children:e}),Zi=({label:e,children:t})=>{let[a,i]=b.useState(!1);return n.jsxs("li",{"data-item":"accordion",children:[n.jsxs("dl",{onClick:()=>i(!a),children:[n.jsx("dt",{children:e}),n.jsx("dd",{children:n.jsx("div",{"data-close":String(a)})})]}),a&&n.jsx("div",{children:t})]})},Ui=({label:e,onClick:t,button:a})=>n.jsx("li",{children:n.jsxs("dl",{children:[n.jsx("dt",{children:e}),n.jsx("dd",{role:"button",onClick:()=>t(),children:a})]})}),pn={Switch:({active:e,onClick:t})=>(e=typeof e=="number"?!!e:e,n.jsx("div",{role:"switch",onClick:()=>{t()},"aria-checked":e?"true":"false"}))},qi={Accordion:Zi,Button:Ui,Switch:({label:e,onClick:t,active:a})=>n.jsx("li",{children:n.jsxs("dl",{children:[n.jsx("dt",{children:e}),n.jsx("dd",{children:n.jsx(pn.Switch,{onClick:t,active:a})})]})}),Info:({label:e,info:t})=>n.jsx("li",{children:n.jsxs("dl",{children:[n.jsx("dt",{children:e}),n.jsx("dd",{role:"info",children:t})]})}),Select:({label:e,active:t,options:a})=>n.jsx("li",{children:n.jsxs("dl",{children:[n.jsx("dt",{children:e}),n.jsx("dd",{role:"info",children:t})]})}),Component:({label:e,children:t})=>n.jsx("li",{children:n.jsxs("dl",{children:[n.jsx("dt",{children:e}),n.jsx("dd",{children:t})]})}),Node:({label:e,children:t})=>n.jsx("li",{children:n.jsxs("dl",{children:[n.jsx("dt",{children:e}),n.jsx("dd",{children:t})]})})};function hn({list:e,onClick:t,active:a,size:i,view:o}){return n.jsx("nav",{children:n.jsx("ul",{className:[i,o].join(" "),children:e.map(r=>n.jsx(Hi,{onClick:t,active:a,label:r.label,link:r.link},r.link))})})}const Hi=({onClick:e,label:t,link:a,active:i})=>n.jsx("li",{"tabs-active":String(i===a),onClick:()=>e(a),children:t});hn.defaultProps={size:"M",view:"H"};const Yi={Section:Gi,Main:Ki,Item:qi,Tabs:hn};function xn({text:e,type:t,button:a}){let[i,o]=b.useState(!1),r={active:t};const l=()=>{if(a){if(a.onClick)return a.onClick({});if(a.onSend)return i?void 0:(o(!0),a.onSend(o))}};return n.jsxs("div",{className:it.al,...r,children:[n.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",fillRule:"evenodd",clipRule:"evenodd",children:n.jsx("path",{fill:"#fff",d:"M10.362 2.015C11.4264 1.66167 12.5736 1.66167 13.638 2.015C14.6981 2.36687 15.5304 3.20141 16.3665 4.37395C17.1999 5.5426 18.1208 7.17206 19.3078 9.2725L19.3544 9.35496C20.5417 11.4557 21.4625 13.0851 22.0364 14.4065C22.613 15.7343 22.9002 16.8807 22.6711 17.9821C22.4403 19.0911 21.8714 20.0995 21.0428 20.8617C20.2162 21.622 19.0907 21.9428 17.6736 22.0968C16.2645 22.25 14.4212 22.25 12.0488 22.25H11.9513C9.57882 22.25 7.73554 22.25 6.32642 22.0968C4.90927 21.9428 3.78379 21.622 2.95722 20.8617C2.12862 20.0995 1.55968 19.0911 1.32895 17.9821C1.0998 16.8807 1.387 15.7343 1.96365 14.4065C2.53752 13.0851 3.45835 11.4557 4.64558 9.35495L4.69218 9.2725L4.69218 9.27249C5.87921 7.17206 6.80008 5.5426 7.63347 4.37395C8.46963 3.20141 9.30194 2.36687 10.362 2.015ZM11 17C11 16.4477 11.4457 16 11.9955 16H12.0045C12.5543 16 13 16.4477 13 17C13 17.5523 12.5543 18 12.0045 18H11.9955C11.4457 18 11 17.5523 11 17ZM11 13C11 13.5523 11.4477 14 12 14C12.5523 14 13 13.5523 13 13V9C13 8.44772 12.5523 8 12 8C11.4477 8 11 8.44772 11 9V13Z"})}),n.jsx("span",{children:e}),a&&n.jsx("button",{onClick:l,children:a.label})]})}const J={h:"_h_1usnu_1",g:"_g_1usnu_11",hr:"_hr_1usnu_16",hl:"_hl_1usnu_28",t:"_t_1usnu_40",s:"_s_1usnu_60",u:"_u_1usnu_69",o:"_o_1usnu_76",l:"_l_1usnu_105",hh:"_hh_1usnu_115",c:"_c_1usnu_128",loadingB:"_loadingB_1usnu_1",m:"_m_1usnu_180",ul:"_ul_1usnu_196",f:"_f_1usnu_226"},gn=({title:e,left:t,right:a,children:i})=>n.jsxs("div",{className:J.h,children:[n.jsx("div",{className:J.t,children:e}),t&&n.jsx("div",{className:J.hl,children:t}),a&&n.jsx("div",{className:J.hr,children:a}),i]}),bn=({children:e,...t})=>n.jsx("div",{className:J.l,children:e}),vn=({children:e})=>n.jsx("div",{className:J.s,children:e}),kn=({children:e,edit:t})=>{const a={};return t&&(a.edit=""),n.jsx("div",{...a,className:J.f,children:e})};function yn({children:e}){return n.jsx("div",{className:J.g,children:e})}const Vi={Header:gn,Section:vn,Group:yn,Form:kn,List:bn,A:xn,U:({children:e})=>n.jsx("div",{className:J.u,children:e}),G:yn,C:({children:e})=>n.jsx("div",{className:J.c,children:e}),L:bn,O:({children:e,className:t,title:a})=>n.jsxs("div",{className:[J.o,t].join(" "),children:[a&&n.jsx("div",{className:J.hh,children:a}),e]}),S:vn,H:gn,M:({children:e})=>n.jsx("div",{className:J.m,children:e}),F:kn},Ji={Send:ei,Line:xn};function Xi(){return n.jsx("svg",{viewBox:"0 0 462.86 359.96",children:n.jsx("path",{d:"M210.5,307.78c-27,35.41-58.14,58-120.55,50.84-1-.12-1.58-.39-1.58-2V327.87c0-1.32.51-2.12,1.85-2,100.39-1,88.17-63.46,74.8-90.94-47.3-97.28-14.46-166.27,20.26-205.14,14.1-16.37,50.53-42,128.07-23.24,9.1,2,30.51,7.8,24.46,11.38C317.5,30,297.66,68.33,295,73.12c-3.62,6.59-6.26,13.17-4.57,14.13,2.37,1.35,3.5-1.56,6.58-7.91C319.78,34.41,366-22.76,402.78,37.68a1.14,1.14,0,0,1,.09.26c9.3,56.05,30.57,228.62-97.76,224.22-23.38-2-28.82-22-32.57-18.89-3.36,3,10,21.4,32.76,23.19C448.18,270.75,411.55,66.74,407.79,41.91a1.41,1.41,0,0,1,0-.3c2-7.32,129.15,17.47,112.77,158.08,4.82,6.57,10.89,10,18.7,16.08l.13.07c8.9,3.67,10.46,12.06,11.43,18.88a63.15,63.15,0,0,1-.14,15.49c-10.48-4.62-22.74-10.11-22.26-22.53.43-12,7.35-5.21-8.8-14.22a.69.69,0,0,0-1,.57c-.33,3.87-2.7,14.69-3,16.59v0c-4.64,17-16.59,86-18.41,99.58-.77,5.7-4.94,10.41-11.4,10.39l-56.71.18c-7.73.22-9.57-7.9-10.27-11.89-2.7-15.31-4.08-29.7-4.18-29.67-20.24,9.26-108.69,3.08-108.69,3.27V330c-.29,7.56-4.51,15.26-11.74,15.32l-52.87,1c-10.36.1-13.85-1.67-15.5-11.87-2.08-13.08-1-34.26-5.32-37.43-2,1.84-8.33,8.11-10,10.83M196.16,203q9.57,0,11.42-7.72c2.18-9.07-5.66-17.7-14.77-15.68-4.95,1.11-7.53,4.94-7.53,11.53C185.28,199,188.94,203,196.16,203Z",transform:"translate(-88.37 0)"})})}const Qi={};function eo(e){Qi.add(e)}function to({color:e,size:t,name:a}){return n.jsx("svg",{width:t,height:t,color:e,children:n.jsx("use",{href:`#${a}`})})}const no={Logo:Xi,Sprite:eo,Symbol:to};function ao(){return n.jsxs("svg",{viewBox:"0 0 24 24",fill:"none",children:[n.jsx("path",{d:"M5.15837 11.491C5.08489 12.887 5.16936 14.373 3.92213 15.3084C3.34164 15.7438 3 16.427 3 17.1527C3 18.1508 3.7818 19 4.8 19H19.2C20.2182 19 21 18.1508 21 17.1527C21 16.427 20.6584 15.7438 20.0779 15.3084C18.8306 14.373 18.9151 12.887 18.8416 11.491C18.6501 7.85223 15.6438 5 12 5C8.35617 5 5.34988 7.85222 5.15837 11.491Z",stroke:"currentColor",strokeWidth:"1",strokeLinecap:"round",strokeLinejoin:"round",fill:"none"}),n.jsx("path",{d:"M10.5 3.125C10.5 3.95343 11.1716 5 12 5C12.8284 5 13.5 3.95343 13.5 3.125C13.5 2.29657 12.8284 2 12 2C11.1716 2 10.5 2.29657 10.5 3.125Z",stroke:"currentColor",strokeWidth:"1",fill:"none"}),n.jsx("path",{d:"M15 19C15 20.6569 13.6569 22 12 22C10.3431 22 9 20.6569 9 19",stroke:"currentColor",strokeWidth:"1",strokeLinecap:"round",strokeLinejoin:"round",fill:"none"})]})}function io(){return n.jsxs("svg",{viewBox:"0 0 24 24",fill:"none",children:[n.jsx("path",{d:"M4.4094 11.4516C4.62188 7.41446 7.95728 4.25 12 4.25C16.0427 4.25 19.3781 7.41446 19.5906 11.4516C19.5997 11.6241 19.6064 11.7893 19.6129 11.9485C19.6351 12.49 19.6544 12.9615 19.7525 13.4133C19.8698 13.9531 20.0867 14.3775 20.5279 14.7084C21.2972 15.2854 21.75 16.191 21.75 17.1527C21.75 18.534 20.6628 19.75 19.2 19.75H4.8C3.33719 19.75 2.25 18.534 2.25 17.1527C2.25 16.191 2.70278 15.2854 3.47213 14.7084C3.91329 14.3775 4.13025 13.9531 4.24749 13.4133C4.34561 12.9615 4.3649 12.49 4.38705 11.9485V11.9485L4.38705 11.9485C4.39356 11.7893 4.40032 11.6241 4.4094 11.4516Z",fill:"#141B34"}),n.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.5286 1.37434C10.9737 1.08296 11.517 1 12 1C12.483 1 13.0263 1.08296 13.4714 1.37434C13.9652 1.69759 14.25 2.22083 14.25 2.875C14.25 3.47116 14.017 4.09375 13.6626 4.57057C13.3138 5.03989 12.7415 5.5 12 5.5C11.2585 5.5 10.6862 5.03989 10.3374 4.57057C9.98299 4.09375 9.75 3.47116 9.75 2.875C9.75 2.22083 10.0348 1.69759 10.5286 1.37434Z",fill:"#141B34"}),n.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9 18C9.55228 18 10 18.4477 10 19C10 20.1046 10.8954 21 12 21C13.1046 21 14 20.1046 14 19C14 18.4477 14.4477 18 15 18C15.5523 18 16 18.4477 16 19C16 21.2091 14.2091 23 12 23C9.79086 23 8 21.2091 8 19C8 18.4477 8.44772 18 9 18Z",fill:"#141B34"})]})}function oo(){return n.jsx("svg",{viewBox:"0 0 24 24",fill:"none",children:n.jsx("path",{d:"M8.85746 12.5061C6.36901 10.6456 4.59564 8.59915 3.62734 7.44867C3.3276 7.09253 3.22938 6.8319 3.17033 6.3728C2.96811 4.8008 2.86701 4.0148 3.32795 3.5074C3.7889 3 4.60404 3 6.23433 3H17.7657C19.396 3 20.2111 3 20.672 3.5074C21.133 4.0148 21.0319 4.8008 20.8297 6.37281C20.7706 6.83191 20.6724 7.09254 20.3726 7.44867C19.403 8.60062 17.6261 10.6507 15.1326 12.5135C14.907 12.6821 14.7583 12.9567 14.7307 13.2614C14.4837 15.992 14.2559 17.4876 14.1141 18.2442C13.8853 19.4657 12.1532 20.2006 11.226 20.8563C10.6741 21.2466 10.0043 20.782 9.93278 20.1778C9.79643 19.0261 9.53961 16.6864 9.25927 13.2614C9.23409 12.9539 9.08486 12.6761 8.85746 12.5061Z",stroke:"currentColor",strokeWidth:"1",strokeLinecap:"round",strokeLinejoin:"round",fill:"none"})})}const ro={n:"_n_euuvm_1"};let ze={},Pe=[];const so=(e,t)=>{switch(t.type){case"open":return{...e,open:t.open};case"view":return{...e,view:e.view===t.view?null:t.view};case"add":return{...e,news:[...e.news,t.data],active:!0};case"news":return{...e,news:t.data,active:t.data.length!==0};case"hide":let a=e.news.filter(o=>o.id!==t.id);return{...e,news:a,active:a.length!==0};case"size":return{...e,size:t.size};case"take":let i={[t.list]:t.take};i={...e.take,...i},e.active=!1;for(let o in i)i[o]!=="999"&&(e.active=!0);return ze.get(i,e.active),{...e,take:i,active:e.active};case"exit":return e;default:throw new Error}};function lo(e){ze.fn({action:"add",data:e})}function _o(e){ze.fn({action:"add",data:e})}function co(e){ze.fn({action:"new",data:e})}function uo(e){ze.fn=e}function fo(){const[e,t]=b.useReducer(so,{open:!1,active:!1,news:[],take:{}});Ze.useListener("bell",async i=>{}),uo(async i=>{switch(i.action){case"add":Pe.push(i.data);break}}),b.useEffect(()=>{(async()=>{let i=await Ze.Send({type:"module",module:"M00",query:"x0054",array:["M01","M02"]});for(let o in i)switch(o){case"news":t({type:"news",data:i.news});break;case"M01":i[o].forEach(r=>{Pe.push({module:"M01",type:1,id:r.id,datetime:new Date(r.tDate).getTime(),txt:r.p01})});break;case"M02":i[o].forEach(r=>{Pe.push({module:"M02",type:117,id:r.id,datetime:new Date(r.tDate).getTime(),txt:r.p01})});break}})(),setInterval(()=>{Pe.forEach((i,o)=>{t({type:"add",data:{module:i.module,type:i.type,id:i.id,datetime:i.datetime,txt:i.title}}),i.datetime<new Date().getTime()&&Pe.splice(o,1)})},6e4)},[]);let a=async i=>{t({type:"hide",id:i.id})};return n.jsxs(n.Fragment,{children:[n.jsx("div",{className:ro.n,onClick:()=>{t({type:"open",open:!0})},children:e.active?n.jsx(io,{}):n.jsx(ao,{})}),e.open?n.jsxs(n.Fragment,{children:[n.jsx("div",{className:"notify-o",onClick:()=>{t({type:"open",open:!1})}}),n.jsxs("div",{className:"notify-m",children:[n.jsx("div",{className:"notify-l",children:e.news.map((i,o)=>n.jsx(mo,{data:i,dispatch:t},o))}),n.jsx("div",{className:"notify-b",onClick:a,children:"История"})]})]}):""]})}const mo=({data:e,dispatch:t})=>{let a=async i=>{t({type:"hide",id:i.id}),await Ze.Send({type:"module",module:"M00",query:"x0055",data:{id:i.id,type:i.type,db:i.db}})};return n.jsxs("div",{className:"notify-i",children:[n.jsx("div",{className:"--icon","data-icon":e.type}),n.jsxs("div",{className:"--body",children:[n.jsx("div",{className:"--name",children:e.type}),n.jsx("div",{className:"--text",children:e.txt})]}),n.jsx("div",{className:"--hide","data-icon":"F038",onClick:()=>a(e),children:" "})]})},po="KGZ1bmN0aW9uKCl7InVzZSBzdHJpY3QiO2xldCBhPVtdLHM9bnVsbDtvbmNvbm5lY3Q9ZnVuY3Rpb24obCl7dmFyIHQ9bC5zb3VyY2U7YS5wdXNoKHQpO2NvbnN0IG49ZT0+e3MhPT1udWxsJiZzLnJlYWR5U3RhdGU9PT0xP3Muc2VuZChKU09OLnN0cmluZ2lmeShlKSk6dC5wb3N0TWVzc2FnZSh7dHlwZToibm9TZW5kIn0pfTtsZXQgcj1lPT57aWYocyE9PW51bGwmJnMucmVhZHlTdGF0ZT09PTEpcmV0dXJuIHQucG9zdE1lc3NhZ2Uoe3R5cGU6InRydWUifSk7ZS5say5hZGRyZXNzPT09ImxvY2FsaG9zdCI/cz1uZXcgV2ViU29ja2V0KGB3czovL2xvY2FsaG9zdDoke2UubGsuc29ja2V0KzF9YCk6cz1uZXcgV2ViU29ja2V0KCJ3c3M6Ly8iK2UubGsuYWRkcmVzcysiOiIrKGUubGsuc29ja2V0KzEpKSxzLm9uZXJyb3I9KCk9PnQucG9zdE1lc3NhZ2Uoe3R5cGU6ImVycm9yIn0pLHMub25vcGVuPSgpPT57bih7dHlwZToiY29ubmVjdCIsdWtleTplLnVrZXl9KX0scy5vbm1lc3NhZ2U9bz0+e2xldCBjPUpTT04ucGFyc2Uoby5kYXRhKTthLmZvckVhY2goZD0+e2QucG9zdE1lc3NhZ2UoYyl9KX0scy5vbmNsb3NlPSgpPT50LnBvc3RNZXNzYWdlKHt0eXBlOiJjbG9zZWQifSl9O3Qub25tZXNzYWdlPWZ1bmN0aW9uKGUpe3N3aXRjaChlLmRhdGEudHlwZSl7Y2FzZSJsZW5ndGgiOnJldHVybiB0LnBvc3RNZXNzYWdlKGEubGVuZ3RoKTtjYXNlImFsbCI6cmV0dXJuIGEuZm9yRWFjaChvPT5vLnBvc3RNZXNzYWdlKHthbGw6YS5sZW5ndGh9KSk7Y2FzZSJzZW5kIjpyZXR1cm4gbihlLmRhdGEuanNvbik7Y2FzZSJjb25uZWN0IjpyZXR1cm4gcihlLmRhdGEpO2RlZmF1bHQ6dC5wb3N0TWVzc2FnZSh7dHlwZToiZGVmYXVsdCIsZGF0YTplLmRhdGEuanNvbn0pfX19fSkoKTsK";function ho(e){return new SharedWorker("data:text/javascript;base64,"+po,{name:e==null?void 0:e.name})}function xo(e){let t={},a={};e.data.forEach(o=>{t[o.id]={s:o.v,n:o.a},a[o.id]=o});let i={...he(),901:t};Pt(a),Te(i)}let ae={},H={},Ke=["filter","online","users","company","select","setting","info","job"];function go(){const[e,t]=b.useState(!1),[a,i]=b.useState(!1);function o(r){const l=new ho;ae.laodData=d=>{let c=Ke.indexOf(d);c>=0&&Ke.splice(c,1),Ke.length===0&&t(!0)},ae.send=d=>{l.port.postMessage({type:"send",json:d})},l.port.onmessage=d=>{let c=d.data;c.type==="error"&&i(!0),c.type==="true"&&t(!0),c.type==="closed"&&l.port.postMessage({type:"connect",ukey:r,lk:tt()}),Ke.length!==0&&ae.laodData(c.type),H[c.type]&&H[c.type](c)},l.port.postMessage({type:"connect",ukey:r,lk:tt()})}return[o,e,a]}H.module=e=>{ae[e.listen]!==void 0&&(ae[e.listen](e),delete ae[e.listen])},H.bell=co,H.company=xo,H.info=e=>{let t={};t.db=e.db,t.id=e.data.id,t.job=e.data.job,t.login=e.data.login,t.name=e.data.p02,t.patronymic=e.data.p03,t.surname=e.data.p01,t.email=e.data.email,t.admin=e.data.menu.includes("99"),Rt(t),Ft(e.data.menu)},H.version=async e=>{Ge.version.Server(e.data)},H.online=async e=>{},H.offline=async e=>{},H.chat=e=>{switch(e.data.action){case"new_message":le.getModule();break;case"view_message":le.getModule();break;case"write_message":le.getModule();break}},H.users=e=>{let t={};e.data.forEach(i=>{let o=i.p01+" "+i.p02+" "+i.p03,r=i.p01+" "+i.p02.substring(0,1)+"."+i.p03.substring(0,1)+".",l=i.p01.substring(0,1)+""+i.p02.substring(0,1)+i.p03.substring(0,1);t[i.id]={id:i.id,admin:i.m.includes("99"),ava:JSON.parse(i.a),job:i.j,login:"",online:{time:i.o,status:0},sts:i.s,nameFull:o,name:r,number:l}});let a={...he(),user:t};Te(a)},H.api=e=>{let t={};e.data.forEach(a=>{t[a.api]={key:a.key,p01:a.p01,p02:a.p02}})},H.delete=()=>{Q()},H.select=e=>{let t={...he()};e.data.forEach(a=>{t[a.n]=JSON.parse(a.s)}),Te(t)},H.job=e=>{let t={...he()},a={};Object.keys(e.data).forEach(i=>{a[i]={s:1,n:e.data[i]}}),t[1]=a,Te(t)},H.setting=e=>{ua(e.data)},H.app=()=>{};const bo=(e,t)=>{ae[e]=t},vo=(e,t)=>{ae[e](t)};function ko(e){let t="_"+String(Math.random()).substring(2,7);return new Promise(a=>{ae[t]=i=>{i.error!==void 0?a({error:i.error}):a(i.data),delete ae[t]},e={...e,listen:t},e.type="modules",ae.send(e)})}const Ze={useConnect:go,useListener:bo,setListener:vo,Send:ko};class yo{constructor(t="el",a="db"){It(this,"storeName");It(this,"_dbp");this.storeName=a,this._dbp=new Promise((i,o)=>{const r=indexedDB.open(t,1);r.onerror=()=>o(r.error),r.onsuccess=()=>i(r.result),r.onupgradeneeded=()=>{r.result.createObjectStore(a)}})}_withIDBStore(t,a){return this._dbp.then(i=>new Promise((o,r)=>{const l=i.transaction(this.storeName,t);l.oncomplete=()=>o(),l.onabort=l.onerror=()=>r(l.error),a(l.objectStore(this.storeName))}))}}let xt,L={};const je=()=>(xt||(xt=new yo),xt),me=(e,t,a=je())=>a._withIDBStore("readwrite",i=>{L[e]=t,i.put(D.enCode(t),e)}),re=(e,t=je())=>L[e]===void 0?new Promise((a,i)=>{let o;t._withIDBStore("readonly",r=>{o=r.get(e)}).then(()=>{if(o.result!==void 0){let r=D.deCode(o.result);L[e]=r,a(r)}else a({})})}):L[e],wo=(e,t=je())=>t._withIDBStore("readwrite",a=>{a.delete(e)}),gt=(e=je())=>e._withIDBStore("readwrite",t=>{t.clear()}),Co={id:async(e,t,a)=>{let i=await re(t);if(a!==void 0)a({type:"load",base:i});else return i[e]},get:re,set:me,add:async(e,t,a,i)=>{let o,r;r=await re(a),r[e.id]=e,await me(a,r),o!==null&&(o=await re(t),o[e.id]=e.eDate,await me(t,o)),i!==void 0&&i({type:"load",page:o,base:r})},del:wo,upd:(e,t,a,i=je())=>{if(L[e]===void 0)return new Promise((o,r)=>{let l;i._withIDBStore("readonly",d=>{l=d.get(e)}).then(()=>{if(l.result!==void 0){let d=D.deCode(l.result);L[e]=d,L[e][t.id]={...L[e][t.id],...t.data},i.put(D.enCode(L[e]),e),o({})}else o({})})});if(L[e][t.id]!==void 0)return L[e][t.id]={...L[e][t.id],...t.data},a!==void 0&&L[a]!==void 0?L[a][t.id]!==void 0&&(L[a][t.id]=t.data.eDate):L[a]=[],delete L[e][t.id].$_item,delete L[e][t.id].$_send,i._withIDBStore("readwrite",o=>{o.put(D.enCode(L[e]),e),a!==void 0&&o.put(D.enCode(L[a]),a)})},key:(e=je())=>{const t=[];return e._withIDBStore("readonly",a=>{(a.openKeyCursor||a.openCursor).call(a).onsuccess=function(){this.result&&(t.push(this.result.key),this.result.continue())}}).then(()=>t)},load:e=>L[e],split:(e,t,a=[],i={})=>{let o=a.length!==0,r=[],l=i.sort,d=Object.keys(i).length!==0,c=Object.keys(i),_=Object.keys(e),u=[],f=m=>{let h="";if(a.forEach(v=>{h+=t[m][v]}),d){let v={};c.forEach(x=>{v[x]=t[m][x]});for(let x in l)t[m][l[x]]===void 0&&(gt(),location.reload()),x==="s1"&&(v[x]=new Date(t[m][l[x]]).getTime()),x==="s2"&&(v[x]=t[m][l[x]]),x==="s3"&&(v[x]=t[m][l[x]].replace(/[^a-zа-яё]/gi,"").substring(0,1));r.push({id:m,text:h,...v})}else r.push({id:m,text:h})},g=m=>{};return _.forEach(m=>{u.push(t[m])}),u.forEach(m=>{m===void 0?(gt(),location.reload()):(o&&f(m.id),d&&g(m.id))}),{list:u,search:r,filter:i}},clear:gt,updAll:async(e,t,a,i)=>{let o=await re(t),r=await re(a);for(let l in e)r[l]=e[l],o[l]=e[l].eDate;await me(t,o),await me(a,r),i!==void 0&&i({type:"load",page:o,base:r})},delAll:async(e,t,a,i)=>{let o=await re(t),r=await re(a);e.forEach(l=>delete o[l]),await me(t,o),i!==void 0&&i({type:"load",page:o,base:r})},delList:async(e,t,a)=>{let i=await re(t);e.forEach(o=>delete i[o]),await me(t,i)},addList:async(e,t,a)=>{let i=await re(t);e.forEach(o=>i[o.id]=o.eDate),await me(t,i)}},jo={setSetting:fa,getSetting:ma},So={s:"_s_18bde_1",loadingB:"_loadingB_18bde_1",ul:"_ul_18bde_31"};function Bo({children:e}){return n.jsx("ul",{className:J.ul,children:e})}function Eo(e,t){switch(t.type){case"load":return{...e,load:t.load,wait:!1,item:1,data:t.data,list:t.data[1],size:Object.keys(t.data).length};case"update":let a=Object.keys(e.data).length,i=e.item+1;return i=a<i?1:i,e.item===i?e:{...e,wait:e.size===i,item:i,list:[...e.list,...e.data[i]]};case"clear":return{load:!1,list:[],data:{},item:1,wait:!1,size:0};default:throw new Error}}function To({list:e,load:t,className:a,...i}){const o=b.useRef(null),[r,l]=b.useReducer(Eo,{load:!1,list:[],data:{},item:1,wait:!1,size:0});b.useEffect(()=>{o.current.scrollTop=0,e!==null&&l({type:"load",load:!0,data:e})},[t]);let d=()=>{o.current.scrollHeight-o.current.scrollTop-300<=o.current.clientHeight&&!r.wait&&l({type:"update"})};return n.jsx("div",{className:[So.s,a].join(" "),ref:o,onScroll:d,children:n.jsx(Bo,{"el-empty":"Данные не найдены",children:r.load&&r.list!==void 0?r.list.map(c=>n.jsx(i.item,{data:c},c.id)):n.jsxs("div",{"data-load":"load",children:[n.jsx("i",{}),n.jsx("i",{}),n.jsx("i",{})]})})})}const Io=({label:e,onValue:t,value:a,name:i,item:o})=>{const[r,l]=b.useState(!!a);b.useEffect(()=>{l(!!a)},[a]);let d=()=>{let c=parseInt(r)===0?1:0;l(c),t({value:c,name:i,key:o,item:o})};return n.jsx("div",{role:"switch",onClick:d,"aria-checked":`${r?"true":"false"}`})},Se={};function Mo(e){const[t,a]=b.useState({}),i=b.useRef(e);return Se.u=o=>{i.current={...i.current,[o.name]:o.value}},Se.r=()=>{a(Date.now())},[i.current]}function No(e){Se.u(e),e.reload&&Se.r()}function Do(){Se.r&&Se.r()}const $o={Color:en,Date:rt,Code:Qt,Check:dn,Switch:Ht,Button:Yt,Message:Vt,Generator:Jt,Captcha:Xt,Modal:lt,Money:dt,Month:nn,Notes:an,Number:_t,Password:on,Phone:ut,Search:rn,Select:ft,Set:ht,Textarea:sn,Time:ln,Users:pt,String:mt,Form:ht,runReload:Do,useData:Mo,setValue:No,Palette:Io,Toogle:_n,Group:cn,Options:un},wn={spinner:"_spinner_1ul0m_1",l:"_l_1ul0m_75",loadingB:"_loadingB_1ul0m_1"};function Fo(){return n.jsx("div",{className:wn.spinner,children:n.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 483 484",children:n.jsx("path",{d:"M264,492a22.2,22.2,0,0,0,22-22V411a22.2,22.2,0,0,0-22-22H236a22.2,22.2,0,0,0-22,22v59a22.2,22.2,0,0,0,22,22Zm74-134a23.9,23.9,0,0,0-6,16,20.35,20.35,0,0,0,6,15l42,42q7,7,16,7,10,0,16-7l20-20a20.35,20.35,0,0,0,6-15,23.9,23.9,0,0,0-6-16l-42-42q-7-7-16-7-8,0-15,7ZM163,389a18.94,18.94,0,0,0,7-15q0-9-7-16l-20-20q-7-7-16-7-8,0-15,7L70,380q-7,7-7,16a18.94,18.94,0,0,0,7,15l20,20q7,7,16,7a18.94,18.94,0,0,0,15-7ZM112,237a22.2,22.2,0,0,0-22-22H31a21.17,21.17,0,0,0-15.5,6.5A21.17,21.17,0,0,0,9,237v28a21.17,21.17,0,0,0,6.5,15.5A21.17,21.17,0,0,0,31,287H90a22.2,22.2,0,0,0,22-22Zm358,50a22.2,22.2,0,0,0,22-22V237a22.2,22.2,0,0,0-22-22H411a22.2,22.2,0,0,0-22,22v28a22.2,22.2,0,0,0,22,22ZM163,142q7-7,7-15.5T163,111L121,69q-7-7-15-7-7,0-16,7L70,89q-7,7-7,16a18.94,18.94,0,0,0,7,15l42,42a18.94,18.94,0,0,0,15,7q10,0,16-7Zm269-22a20.35,20.35,0,0,0,6-15,23.9,23.9,0,0,0-6-16L412,69q-7-7-16-7-7,0-16,7l-42,42q-7,8-7,16t7,15l21,20a18.94,18.94,0,0,0,15,7q10,0,16-7Zm-168-9a22.06,22.06,0,0,0,15.5-6q6.5-6,6.5-16V30a21.17,21.17,0,0,0-6.5-15.5A21.17,21.17,0,0,0,264,8H236a21.17,21.17,0,0,0-15.5,6.5A21.17,21.17,0,0,0,214,30V89q0,10,6.5,16a22.06,22.06,0,0,0,15.5,6Z",transform:"translate(-9 -8)"})})})}function zo(){return n.jsxs("div",{className:wn.l,children:[n.jsx("i",{}),n.jsx("i",{}),n.jsx("i",{})]})}const Po={Spinner:Fo,Inline:zo},Cn={s:"_s_t9swc_1"};let bt;function Ro({className:e,placeholder:t}){let a=l=>{bt(l.target.textContent)},i=l=>{l.key==="Enter"&&l.preventDefault()},o=l=>{l.preventDefault(),navigator.clipboard.readText().then(d=>{window.document.execCommand("insertText",!1,d)}).catch(d=>{})};const r={};return t&&(r.placeholder=t),r.className=e?[Cn.s,e].join(" "):Cn.s,n.jsx("div",{onPaste:o,onInput:a,onKeyDown:i,contentEditable:"true",...r,suppressContentEditableWarning:!0})}function Lo(e,t,a){let i=[],o=1,r=0,l={},d=50;return l[o]=[],e.forEach(c=>{c.text.toLowerCase().indexOf(t)>-1&&i.push(c.id)}),i.forEach(c=>{r++,r<=d||(o++,r=1,l[o]=[]),l[o].push(a[c])}),l}function Ao(e){bt=e}function Oo(e){bt=e}const Go={Field:Ro,Run:Lo,Get:Ao,useValue:Oo},Wo={f:"_f_q3r0i_1"};let ee={};function Ko(e,t){switch(t.type){case"open":return{...e,open:t.open};case"view":return{...e,view:e.view===t.view?null:t.view};case"data":let a={};return Object.keys(t.data).forEach(o=>{o!=="sort"&&(a[o]=t.data[o],e.take[o]="999")}),{...e,data:a,take:e.take};case"size":return{...e,size:t.size};case"take":let i={[t.list]:t.take};i={...e.take,...i},e.active=!1;for(let o in i)i[o]!=="999"&&(e.active=!0);return ee.get(i,e.active),{...e,take:i,active:e.active};case"exit":for(let o in e.take)e.take[o]="999";return ee.get&&ee.get([],!1),{...e,size:0,active:!1,take:e.take,open:!1};default:throw new Error}}function Zo(){const[e,t]=b.useReducer(Ko,{open:!1,view:null,data:{},take:{},size:0,active:!1});return ee.set=a=>{t({type:"data",data:a})},ee.count=a=>{t({type:"size",size:a})},ee.reset=()=>{t({type:"exit"})},n.jsxs(n.Fragment,{children:[n.jsxs("div",{className:Wo.f,onClick:()=>{t({type:"open",open:!0})},children:[n.jsx(oo,{}),e.active&&n.jsxs("i",{children:[e.size,"1"]})]}),e.open?n.jsxs(n.Fragment,{children:[n.jsx("div",{className:"filter o",onClick:()=>{t({type:"open",open:!1})}}),n.jsxs("div",{className:"filter m",children:[n.jsx("div",{className:"filter l",children:Object.keys(e.data).map(a=>n.jsx(Vo,{data:a,dispatch:t,state:e},a))}),n.jsx("div",{className:"filter b",onClick:()=>{t({type:"exit"})},children:"Убрать фильтер"})]})]}):n.jsx(n.Fragment,{})]})}function Uo(e){ee.get=e}function qo(e){ee.set!==void 0&&ee.set(e)}function Ho(e){ee.reset!==void 0&&ee.reset(e)}function Yo(e,t,a,i){let o=[],r=1,l=0,d={},c=50;return d[r]=[],i===!0&&(Object.keys(t).forEach(_=>{Number.parseInt(t[_])!==999&&(e=e.filter(u=>Number.parseInt(u[_])===Number.parseInt(t[_])))}),jn(e.length)),e.forEach(_=>{o.push(_.id)}),o.forEach(_=>{l++,l<=c||(r++,l=1,d[r]=[]),d[r].push(a[_])}),d}function jn(e){ee.count(e)}function Vo({data:e,state:t,dispatch:a}){let i=()=>{a({type:"view",view:e})},o=()=>{a({type:"take",list:e,take:"999"})};return n.jsxs(n.Fragment,{children:[n.jsxs("div",{className:"filter s",children:[n.jsxs("div",{onClick:i,children:[" ",t.data[e].name," "]}),t.take[e]!=="999"?n.jsx("div",{onClick:o,className:"filter x","data-icon":"F038"}):""]}),n.jsx("div",{className:"filter u","set-active":(t.view===e)+"",children:Object.keys(t.data[e].list).map((r,l)=>n.jsx(Jo,{data:t.data[e].list[r],head:e,type:r,dispatch:a,state:t},l))})]})}function Jo({data:e,head:t,state:a,dispatch:i,type:o}){if(o!=="999"&&e.count===void 0)return"";const r=()=>{i({type:"take",list:t,take:o})};return n.jsxs("div",{className:"filter a",onClick:r,"set-active":(a.take[t]===o)+"",children:[e.name,n.jsx("div",{className:"filter e",children:e.count})]})}const Xo={Button:Zo,useValue:Uo,Set:qo,Run:Yo,Count:jn,Reset:Ho},Qo={Bell:fo,Send:_o,Add:lo};function er({active:e,onActive:t,id:a,name:i}){const[o,r]=b.useState(!!e);b.useEffect(()=>{r(!!e)},[e]);let l=()=>{let d=parseInt(o)===0?1:0;r(d),t&&t({value:d,name:i,id:a})};return n.jsx("div",{role:"switch",onClick:l,"aria-checked":`${o?"true":"false"}`})}const tr={sort:"_sort_1yrvt_1"};let Ue={};function nr(e,t){switch(t.type){case"active":let a="<";return e.active===t.data&&(a=e.sort==="<"?">":"<"),Ue.get({active:t.data,sort:a},!1),zt({active:t.data,sort:a}),{...e,active:t.data,sort:a};default:throw new Error}}function ar(){const[e,t]=b.useReducer(nr,nt()===void 0?{active:1,sort:"<"}:nt());return n.jsxs("div",{className:tr.sort,children:[n.jsx("i",{"data-color":e.active===1?"_506290":"_b5b9cc","data-icon":e.active===1?e.sort==="<"?"F073":"F072":"F071",onClick:()=>t({type:"active",data:1})}),n.jsx("i",{"data-color":e.active===2?"_506290":"_b5b9cc","data-icon":e.active===2?e.sort==="<"?"F066":"F067":"F074",onClick:()=>t({type:"active",data:2})}),n.jsx("i",{"data-color":e.active===3?"_506290":"_b5b9cc","data-icon":e.active===3?e.sort==="<"?"F068":"F069":"F070",onClick:()=>t({type:"active",data:3})})]})}function ir(e){Ue.get=e}function or(e){Ue.set(e)}function rr(e,t,a){let i=1,o=0,r={},l=50;r[i]=[];let d={},c="s1a";switch(d.s1a=(_,u)=>u.s1-_.s1,d.s1d=(_,u)=>_.s1-u.s1,d.s2a=(_,u)=>_.s2-u.s2,d.s2d=(_,u)=>u.s2-_.s2,d.s3a=(_,u)=>_.s3.localeCompare(u.s3),d.s3d=(_,u)=>u.s3.localeCompare(_.s3),a.active){case 1:c=a.sort===">"?"s1d":"s1a";break;case 2:c=a.sort===">"?"s2d":"s2a";break;case 3:c=a.sort===">"?"s3d":"s3a";break}return t.sort(d[c]).forEach(_=>{o++,o<=l||(i++,o=1,r[i]=[]),r[i].push(e[_.id])}),{data:r}}function sr(e){Ue.count(e)}const lr={Init:ar,useValue:ir,Set:or,Run:rr,Count:sr};S.Action=pn,S.Alert=Ji,S.Api=Ga,S.Button=qt,S.Component=Vi,S.DataBase=Co,S.Events=$e,S.Filter=Xo,S.Form=$o,S.Format=be,S.Icon=no,S.Init=Ai,S.Input=fn,S.Loading=Po,S.Modal=st,S.Notice=Fe,S.Notifications=Qo,S.Router=le,S.Scrolling=To,S.Search=Go,S.Setting=Yi,S.Sistym=Ge,S.Socket=Ze,S.Store=se,S.Switch=er,S.Tabs=mn,S.Telegram=B,S.Triage=lr,S.User=jo,Object.defineProperty(S,Symbol.toStringTag,{value:"Module"})});
|