elcrm 0.9.129 → 0.9.131

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.es.js CHANGED
@@ -50,25 +50,25 @@ function ar() {
50
50
  function g(d) {
51
51
  if (d === null || typeof d != "object")
52
52
  return null;
53
- var k = v && d[v] || d[p];
54
- return typeof k == "function" ? k : null;
53
+ var y = v && d[v] || d[p];
54
+ return typeof y == "function" ? y : null;
55
55
  }
56
- var y = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
57
- function j(d) {
56
+ var j = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
57
+ function k(d) {
58
58
  {
59
- for (var k = arguments.length, D = new Array(k > 1 ? k - 1 : 0), F = 1; F < k; F++)
59
+ for (var y = arguments.length, D = new Array(y > 1 ? y - 1 : 0), F = 1; F < y; F++)
60
60
  D[F - 1] = arguments[F];
61
- T("error", d, D);
61
+ N("error", d, D);
62
62
  }
63
63
  }
64
- function T(d, k, D) {
64
+ function N(d, y, D) {
65
65
  {
66
- var F = y.ReactDebugCurrentFrame, Z = F.getStackAddendum();
67
- Z !== "" && (k += "%s", D = D.concat([Z]));
66
+ var F = j.ReactDebugCurrentFrame, Z = F.getStackAddendum();
67
+ Z !== "" && (y += "%s", D = D.concat([Z]));
68
68
  var K = D.map(function(G) {
69
69
  return String(G);
70
70
  });
71
- K.unshift("Warning: " + k), Function.prototype.apply.call(console[d], console, K);
71
+ K.unshift("Warning: " + y), Function.prototype.apply.call(console[d], console, K);
72
72
  }
73
73
  }
74
74
  var L = !1, $ = !1, R = !1, I = !1, E = !1, P;
@@ -80,11 +80,11 @@ function ar() {
80
80
  // with.
81
81
  d.$$typeof === P || d.getModuleId !== void 0));
82
82
  }
83
- function b(d, k, D) {
83
+ function b(d, y, D) {
84
84
  var F = d.displayName;
85
85
  if (F)
86
86
  return F;
87
- var Z = k.displayName || k.name || "";
87
+ var Z = y.displayName || y.name || "";
88
88
  return Z !== "" ? D + "(" + Z + ")" : D;
89
89
  }
90
90
  function S(d) {
@@ -93,7 +93,7 @@ function ar() {
93
93
  function C(d) {
94
94
  if (d == null)
95
95
  return null;
96
- if (typeof d.tag == "number" && j("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof d == "function")
96
+ if (typeof d.tag == "number" && k("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof d == "function")
97
97
  return d.displayName || d.name || null;
98
98
  if (typeof d == "string")
99
99
  return d;
@@ -114,8 +114,8 @@ function ar() {
114
114
  if (typeof d == "object")
115
115
  switch (d.$$typeof) {
116
116
  case l:
117
- var k = d;
118
- return S(k) + ".Consumer";
117
+ var y = d;
118
+ return S(y) + ".Consumer";
119
119
  case o:
120
120
  var D = d;
121
121
  return S(D._context) + ".Provider";
@@ -135,7 +135,7 @@ function ar() {
135
135
  }
136
136
  return null;
137
137
  }
138
- var N = Object.assign, W = 0, ee, oe, ve, Ie, Pe, Qe, Vt;
138
+ var T = Object.assign, W = 0, ee, oe, ve, Ie, Pe, Qe, Vt;
139
139
  function Xt() {
140
140
  }
141
141
  Xt.__reactDisabledLog = !0;
@@ -171,34 +171,34 @@ function ar() {
171
171
  writable: !0
172
172
  };
173
173
  Object.defineProperties(console, {
174
- log: N({}, d, {
174
+ log: T({}, d, {
175
175
  value: ee
176
176
  }),
177
- info: N({}, d, {
177
+ info: T({}, d, {
178
178
  value: oe
179
179
  }),
180
- warn: N({}, d, {
180
+ warn: T({}, d, {
181
181
  value: ve
182
182
  }),
183
- error: N({}, d, {
183
+ error: T({}, d, {
184
184
  value: Ie
185
185
  }),
186
- group: N({}, d, {
186
+ group: T({}, d, {
187
187
  value: Pe
188
188
  }),
189
- groupCollapsed: N({}, d, {
189
+ groupCollapsed: T({}, d, {
190
190
  value: Qe
191
191
  }),
192
- groupEnd: N({}, d, {
192
+ groupEnd: T({}, d, {
193
193
  value: Vt
194
194
  })
195
195
  });
196
196
  }
197
- W < 0 && j("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
197
+ W < 0 && k("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
198
198
  }
199
199
  }
200
- var ft = y.ReactCurrentDispatcher, mt;
201
- function et(d, k, D) {
200
+ var ft = j.ReactCurrentDispatcher, mt;
201
+ function et(d, y, D) {
202
202
  {
203
203
  if (mt === void 0)
204
204
  try {
@@ -216,7 +216,7 @@ function ar() {
216
216
  var Sa = typeof WeakMap == "function" ? WeakMap : Map;
217
217
  tt = new Sa();
218
218
  }
219
- function Qt(d, k) {
219
+ function Qt(d, y) {
220
220
  if (!d || ht)
221
221
  return "";
222
222
  {
@@ -231,7 +231,7 @@ function ar() {
231
231
  var K;
232
232
  K = ft.current, ft.current = null, ba();
233
233
  try {
234
- if (k) {
234
+ if (y) {
235
235
  var G = function() {
236
236
  throw Error();
237
237
  };
@@ -266,18 +266,18 @@ function ar() {
266
266
  if (re && F && typeof re.stack == "string") {
267
267
  for (var U = re.stack.split(`
268
268
  `), ne = F.stack.split(`
269
- `), V = U.length - 1, Q = ne.length - 1; V >= 1 && Q >= 0 && U[V] !== ne[Q]; )
269
+ `), J = U.length - 1, Q = ne.length - 1; J >= 1 && Q >= 0 && U[J] !== ne[Q]; )
270
270
  Q--;
271
- for (; V >= 1 && Q >= 0; V--, Q--)
272
- if (U[V] !== ne[Q]) {
273
- if (V !== 1 || Q !== 1)
271
+ for (; J >= 1 && Q >= 0; J--, Q--)
272
+ if (U[J] !== ne[Q]) {
273
+ if (J !== 1 || Q !== 1)
274
274
  do
275
- if (V--, Q--, Q < 0 || U[V] !== ne[Q]) {
275
+ if (J--, Q--, Q < 0 || U[J] !== ne[Q]) {
276
276
  var ce = `
277
- ` + U[V].replace(" at new ", " at ");
277
+ ` + U[J].replace(" at new ", " at ");
278
278
  return d.displayName && ce.includes("<anonymous>") && (ce = ce.replace("<anonymous>", d.displayName)), typeof d == "function" && tt.set(d, ce), ce;
279
279
  }
280
- while (V >= 1 && Q >= 0);
280
+ while (J >= 1 && Q >= 0);
281
281
  break;
282
282
  }
283
283
  }
@@ -287,14 +287,14 @@ function ar() {
287
287
  var Ne = d ? d.displayName || d.name : "", Ee = Ne ? et(Ne) : "";
288
288
  return typeof d == "function" && tt.set(d, Ee), Ee;
289
289
  }
290
- function Ea(d, k, D) {
290
+ function Ea(d, y, D) {
291
291
  return Qt(d, !1);
292
292
  }
293
293
  function Da(d) {
294
- var k = d.prototype;
295
- return !!(k && k.isReactComponent);
294
+ var y = d.prototype;
295
+ return !!(y && y.isReactComponent);
296
296
  }
297
- function nt(d, k, D) {
297
+ function nt(d, y, D) {
298
298
  if (d == null)
299
299
  return "";
300
300
  if (typeof d == "function")
@@ -312,26 +312,26 @@ function ar() {
312
312
  case c:
313
313
  return Ea(d.render);
314
314
  case x:
315
- return nt(d.type, k, D);
315
+ return nt(d.type, y, D);
316
316
  case f: {
317
317
  var F = d, Z = F._payload, K = F._init;
318
318
  try {
319
- return nt(K(Z), k, D);
319
+ return nt(K(Z), y, D);
320
320
  } catch {
321
321
  }
322
322
  }
323
323
  }
324
324
  return "";
325
325
  }
326
- var Oe = Object.prototype.hasOwnProperty, en = {}, tn = y.ReactDebugCurrentFrame;
326
+ var Oe = Object.prototype.hasOwnProperty, en = {}, tn = j.ReactDebugCurrentFrame;
327
327
  function at(d) {
328
328
  if (d) {
329
- var k = d._owner, D = nt(d.type, d._source, k ? k.type : null);
329
+ var y = d._owner, D = nt(d.type, d._source, y ? y.type : null);
330
330
  tn.setExtraStackFrame(D);
331
331
  } else
332
332
  tn.setExtraStackFrame(null);
333
333
  }
334
- function Ra(d, k, D, F, Z) {
334
+ function Ra(d, y, D, F, Z) {
335
335
  {
336
336
  var K = Function.call.bind(Oe);
337
337
  for (var G in d)
@@ -342,11 +342,11 @@ function ar() {
342
342
  var ne = Error((F || "React class") + ": " + D + " type `" + G + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof d[G] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
343
343
  throw ne.name = "Invariant Violation", ne;
344
344
  }
345
- U = d[G](k, G, F, D, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
346
- } catch (V) {
347
- U = V;
345
+ U = d[G](y, G, F, D, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
346
+ } catch (J) {
347
+ U = J;
348
348
  }
349
- U && !(U instanceof Error) && (at(Z), j("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", F || "React class", D, G, typeof U), at(null)), U instanceof Error && !(U.message in en) && (en[U.message] = !0, at(Z), j("Failed %s type: %s", D, U.message), at(null));
349
+ U && !(U instanceof Error) && (at(Z), k("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", F || "React class", D, G, typeof U), at(null)), U instanceof Error && !(U.message in en) && (en[U.message] = !0, at(Z), k("Failed %s type: %s", D, U.message), at(null));
350
350
  }
351
351
  }
352
352
  }
@@ -356,7 +356,7 @@ function ar() {
356
356
  }
357
357
  function Ta(d) {
358
358
  {
359
- var k = typeof Symbol == "function" && Symbol.toStringTag, D = k && d[Symbol.toStringTag] || d.constructor.name || "Object";
359
+ var y = typeof Symbol == "function" && Symbol.toStringTag, D = y && d[Symbol.toStringTag] || d.constructor.name || "Object";
360
360
  return D;
361
361
  }
362
362
  }
@@ -372,9 +372,9 @@ function ar() {
372
372
  }
373
373
  function an(d) {
374
374
  if (Na(d))
375
- return j("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Ta(d)), nn(d);
375
+ return k("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Ta(d)), nn(d);
376
376
  }
377
- var Ae = y.ReactCurrentOwner, Ma = {
377
+ var Ae = j.ReactCurrentOwner, Ma = {
378
378
  key: !0,
379
379
  ref: !0,
380
380
  __self: !0,
@@ -383,30 +383,30 @@ function ar() {
383
383
  gt = {};
384
384
  function La(d) {
385
385
  if (Oe.call(d, "ref")) {
386
- var k = Object.getOwnPropertyDescriptor(d, "ref").get;
387
- if (k && k.isReactWarning)
386
+ var y = Object.getOwnPropertyDescriptor(d, "ref").get;
387
+ if (y && y.isReactWarning)
388
388
  return !1;
389
389
  }
390
390
  return d.ref !== void 0;
391
391
  }
392
392
  function $a(d) {
393
393
  if (Oe.call(d, "key")) {
394
- var k = Object.getOwnPropertyDescriptor(d, "key").get;
395
- if (k && k.isReactWarning)
394
+ var y = Object.getOwnPropertyDescriptor(d, "key").get;
395
+ if (y && y.isReactWarning)
396
396
  return !1;
397
397
  }
398
398
  return d.key !== void 0;
399
399
  }
400
- function Ba(d, k) {
401
- if (typeof d.ref == "string" && Ae.current && k && Ae.current.stateNode !== k) {
400
+ function Ba(d, y) {
401
+ if (typeof d.ref == "string" && Ae.current && y && Ae.current.stateNode !== y) {
402
402
  var D = C(Ae.current.type);
403
- gt[D] || (j('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', C(Ae.current.type), d.ref), gt[D] = !0);
403
+ gt[D] || (k('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', C(Ae.current.type), d.ref), gt[D] = !0);
404
404
  }
405
405
  }
406
- function Fa(d, k) {
406
+ function Fa(d, y) {
407
407
  {
408
408
  var D = function() {
409
- rn || (rn = !0, j("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", k));
409
+ rn || (rn = !0, k("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", y));
410
410
  };
411
411
  D.isReactWarning = !0, Object.defineProperty(d, "key", {
412
412
  get: D,
@@ -414,10 +414,10 @@ function ar() {
414
414
  });
415
415
  }
416
416
  }
417
- function Pa(d, k) {
417
+ function Pa(d, y) {
418
418
  {
419
419
  var D = function() {
420
- sn || (sn = !0, j("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", k));
420
+ sn || (sn = !0, k("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", y));
421
421
  };
422
422
  D.isReactWarning = !0, Object.defineProperty(d, "ref", {
423
423
  get: D,
@@ -425,13 +425,13 @@ function ar() {
425
425
  });
426
426
  }
427
427
  }
428
- var Oa = function(d, k, D, F, Z, K, G) {
428
+ var Oa = function(d, y, D, F, Z, K, G) {
429
429
  var U = {
430
430
  // This tag allows us to uniquely identify this as a React Element
431
431
  $$typeof: t,
432
432
  // Built-in properties that belong on the element
433
433
  type: d,
434
- key: k,
434
+ key: y,
435
435
  ref: D,
436
436
  props: G,
437
437
  // Record the component responsible for creating this element.
@@ -454,16 +454,16 @@ function ar() {
454
454
  value: Z
455
455
  }), Object.freeze && (Object.freeze(U.props), Object.freeze(U)), U;
456
456
  };
457
- function Aa(d, k, D, F, Z) {
457
+ function Aa(d, y, D, F, Z) {
458
458
  {
459
459
  var K, G = {}, U = null, ne = null;
460
- D !== void 0 && (an(D), U = "" + D), $a(k) && (an(k.key), U = "" + k.key), La(k) && (ne = k.ref, Ba(k, Z));
461
- for (K in k)
462
- Oe.call(k, K) && !Ma.hasOwnProperty(K) && (G[K] = k[K]);
460
+ D !== void 0 && (an(D), U = "" + D), $a(y) && (an(y.key), U = "" + y.key), La(y) && (ne = y.ref, Ba(y, Z));
461
+ for (K in y)
462
+ Oe.call(y, K) && !Ma.hasOwnProperty(K) && (G[K] = y[K]);
463
463
  if (d && d.defaultProps) {
464
- var V = d.defaultProps;
465
- for (K in V)
466
- G[K] === void 0 && (G[K] = V[K]);
464
+ var J = d.defaultProps;
465
+ for (K in J)
466
+ G[K] === void 0 && (G[K] = J[K]);
467
467
  }
468
468
  if (U || ne) {
469
469
  var Q = typeof d == "function" ? d.displayName || d.name || "Unknown" : d;
@@ -472,10 +472,10 @@ function ar() {
472
472
  return Oa(d, U, ne, Z, F, Ae.current, G);
473
473
  }
474
474
  }
475
- var xt = y.ReactCurrentOwner, on = y.ReactDebugCurrentFrame;
475
+ var xt = j.ReactCurrentOwner, on = j.ReactDebugCurrentFrame;
476
476
  function Te(d) {
477
477
  if (d) {
478
- var k = d._owner, D = nt(d.type, d._source, k ? k.type : null);
478
+ var y = d._owner, D = nt(d.type, d._source, y ? y.type : null);
479
479
  on.setExtraStackFrame(D);
480
480
  } else
481
481
  on.setExtraStackFrame(null);
@@ -503,37 +503,37 @@ Check the render method of \`` + d + "`.";
503
503
  var cn = {};
504
504
  function Ga(d) {
505
505
  {
506
- var k = ln();
507
- if (!k) {
506
+ var y = ln();
507
+ if (!y) {
508
508
  var D = typeof d == "string" ? d : d.displayName || d.name;
509
- D && (k = `
509
+ D && (y = `
510
510
 
511
511
  Check the top-level render call using <` + D + ">.");
512
512
  }
513
- return k;
513
+ return y;
514
514
  }
515
515
  }
516
- function dn(d, k) {
516
+ function dn(d, y) {
517
517
  {
518
518
  if (!d._store || d._store.validated || d.key != null)
519
519
  return;
520
520
  d._store.validated = !0;
521
- var D = Ga(k);
521
+ var D = Ga(y);
522
522
  if (cn[D])
523
523
  return;
524
524
  cn[D] = !0;
525
525
  var F = "";
526
- d && d._owner && d._owner !== xt.current && (F = " It was passed a child from " + C(d._owner.type) + "."), Te(d), j('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', D, F), Te(null);
526
+ d && d._owner && d._owner !== xt.current && (F = " It was passed a child from " + C(d._owner.type) + "."), Te(d), k('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', D, F), Te(null);
527
527
  }
528
528
  }
529
- function _n(d, k) {
529
+ function _n(d, y) {
530
530
  {
531
531
  if (typeof d != "object")
532
532
  return;
533
533
  if (pt(d))
534
534
  for (var D = 0; D < d.length; D++) {
535
535
  var F = d[D];
536
- Ct(F) && dn(F, k);
536
+ Ct(F) && dn(F, y);
537
537
  }
538
538
  else if (Ct(d))
539
539
  d._store && (d._store.validated = !0);
@@ -541,49 +541,49 @@ Check the top-level render call using <` + D + ">.");
541
541
  var Z = g(d);
542
542
  if (typeof Z == "function" && Z !== d.entries)
543
543
  for (var K = Z.call(d), G; !(G = K.next()).done; )
544
- Ct(G.value) && dn(G.value, k);
544
+ Ct(G.value) && dn(G.value, y);
545
545
  }
546
546
  }
547
547
  }
548
548
  function Za(d) {
549
549
  {
550
- var k = d.type;
551
- if (k == null || typeof k == "string")
550
+ var y = d.type;
551
+ if (y == null || typeof y == "string")
552
552
  return;
553
553
  var D;
554
- if (typeof k == "function")
555
- D = k.propTypes;
556
- else if (typeof k == "object" && (k.$$typeof === c || // Note: Memo only checks outer props here.
554
+ if (typeof y == "function")
555
+ D = y.propTypes;
556
+ else if (typeof y == "object" && (y.$$typeof === c || // Note: Memo only checks outer props here.
557
557
  // Inner props are checked in the reconciler.
558
- k.$$typeof === x))
559
- D = k.propTypes;
558
+ y.$$typeof === x))
559
+ D = y.propTypes;
560
560
  else
561
561
  return;
562
562
  if (D) {
563
- var F = C(k);
563
+ var F = C(y);
564
564
  Ra(D, d.props, "prop", F, d);
565
- } else if (k.PropTypes !== void 0 && !vt) {
565
+ } else if (y.PropTypes !== void 0 && !vt) {
566
566
  vt = !0;
567
- var Z = C(k);
568
- j("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", Z || "Unknown");
567
+ var Z = C(y);
568
+ k("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", Z || "Unknown");
569
569
  }
570
- typeof k.getDefaultProps == "function" && !k.getDefaultProps.isReactClassApproved && j("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
570
+ typeof y.getDefaultProps == "function" && !y.getDefaultProps.isReactClassApproved && k("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
571
571
  }
572
572
  }
573
573
  function za(d) {
574
574
  {
575
- for (var k = Object.keys(d.props), D = 0; D < k.length; D++) {
576
- var F = k[D];
575
+ for (var y = Object.keys(d.props), D = 0; D < y.length; D++) {
576
+ var F = y[D];
577
577
  if (F !== "children" && F !== "key") {
578
- Te(d), j("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", F), Te(null);
578
+ Te(d), k("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", F), Te(null);
579
579
  break;
580
580
  }
581
581
  }
582
- d.ref !== null && (Te(d), j("Invalid attribute `ref` supplied to `React.Fragment`."), Te(null));
582
+ d.ref !== null && (Te(d), k("Invalid attribute `ref` supplied to `React.Fragment`."), Te(null));
583
583
  }
584
584
  }
585
585
  var un = {};
586
- function fn(d, k, D, F, Z, K) {
586
+ function fn(d, y, D, F, Z, K) {
587
587
  {
588
588
  var G = B(d);
589
589
  if (!G) {
@@ -591,14 +591,14 @@ Check the top-level render call using <` + D + ">.");
591
591
  (d === void 0 || typeof d == "object" && d !== null && Object.keys(d).length === 0) && (U += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
592
592
  var ne = Ua();
593
593
  ne ? U += ne : U += ln();
594
- var V;
595
- d === null ? V = "null" : pt(d) ? V = "array" : d !== void 0 && d.$$typeof === t ? (V = "<" + (C(d.type) || "Unknown") + " />", U = " Did you accidentally export a JSX literal instead of a component?") : V = typeof d, j("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", V, U);
594
+ var J;
595
+ d === null ? J = "null" : pt(d) ? J = "array" : d !== void 0 && d.$$typeof === t ? (J = "<" + (C(d.type) || "Unknown") + " />", U = " Did you accidentally export a JSX literal instead of a component?") : J = typeof d, k("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", J, U);
596
596
  }
597
- var Q = Aa(d, k, D, Z, K);
597
+ var Q = Aa(d, y, D, Z, K);
598
598
  if (Q == null)
599
599
  return Q;
600
600
  if (G) {
601
- var ce = k.children;
601
+ var ce = y.children;
602
602
  if (ce !== void 0)
603
603
  if (F)
604
604
  if (pt(ce)) {
@@ -606,17 +606,17 @@ Check the top-level render call using <` + D + ">.");
606
606
  _n(ce[Ne], d);
607
607
  Object.freeze && Object.freeze(ce);
608
608
  } else
609
- j("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
609
+ k("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
610
610
  else
611
611
  _n(ce, d);
612
612
  }
613
- if (Oe.call(k, "key")) {
614
- var Ee = C(d), re = Object.keys(k).filter(function(Ja) {
613
+ if (Oe.call(y, "key")) {
614
+ var Ee = C(d), re = Object.keys(y).filter(function(Ja) {
615
615
  return Ja !== "key";
616
616
  }), jt = re.length > 0 ? "{key: someKey, " + re.join(": ..., ") + ": ...}" : "{key: someKey}";
617
617
  if (!un[Ee + jt]) {
618
618
  var qa = re.length > 0 ? "{" + re.join(": ..., ") + ": ...}" : "{}";
619
- j(`A props object containing a "key" prop is being spread into JSX:
619
+ k(`A props object containing a "key" prop is being spread into JSX:
620
620
  let props = %s;
621
621
  <%s {...props} />
622
622
  React keys must be passed directly to JSX without using spread:
@@ -627,11 +627,11 @@ React keys must be passed directly to JSX without using spread:
627
627
  return d === r ? za(Q) : Za(Q), Q;
628
628
  }
629
629
  }
630
- function Wa(d, k, D) {
631
- return fn(d, k, D, !0);
630
+ function Wa(d, y, D) {
631
+ return fn(d, y, D, !0);
632
632
  }
633
- function Ka(d, k, D) {
634
- return fn(d, k, D, !1);
633
+ function Ka(d, y, D) {
634
+ return fn(d, y, D, !1);
635
635
  }
636
636
  var Ha = Ka, Ya = Wa;
637
637
  Ge.Fragment = r, Ge.jsx = Ha, Ge.jsxs = Ya;
@@ -1071,7 +1071,7 @@ function Zn() {
1071
1071
  function os(e) {
1072
1072
  return Zn() === e;
1073
1073
  }
1074
- const J = {
1074
+ const X = {
1075
1075
  setSSID: yr,
1076
1076
  getSSID: br,
1077
1077
  getPORT: St,
@@ -1195,7 +1195,7 @@ const Be = {
1195
1195
  };
1196
1196
  let Cs = "api", js = "elcrm", ks = "online", $e = !1;
1197
1197
  function ys() {
1198
- let e = J.getPORT(), t = "", n = "";
1198
+ let e = X.getPORT(), t = "", n = "";
1199
1199
  return e.address === "localhost" ? (t = `http://localhost:${e.socket}/documents`, n = `http://localhost:${e.socket}/files`) : (t = "https://" + e.address + "/documents", n = "https://" + e.address + "/files"), {
1200
1200
  documents: t,
1201
1201
  files: n
@@ -1211,13 +1211,13 @@ function ws(e) {
1211
1211
  function Ss(e) {
1212
1212
  $e = e;
1213
1213
  }
1214
- function Ve(e, t = {}, n = $e ? J.getSSID() : J.getAUTH()) {
1214
+ function Ve(e, t = {}, n = $e ? X.getSSID() : X.getAUTH()) {
1215
1215
  return new Promise((r) => {
1216
1216
  const s = new Wn();
1217
1217
  s.onmessage = (i) => {
1218
1218
  var o, l, c;
1219
- if ($e && ((o = i.data) != null && o.ssid) && J.setSSID(i.data.ssid), ((l = i.data) == null ? void 0 : l.status) === "logaut" || ((c = i.data) == null ? void 0 : c.status) === "logout")
1220
- return J.Logaut();
1219
+ if ($e && ((o = i.data) != null && o.ssid) && X.setSSID(i.data.ssid), ((l = i.data) == null ? void 0 : l.status) === "logaut" || ((c = i.data) == null ? void 0 : c.status) === "logout")
1220
+ return X.Logaut();
1221
1221
  r(i.data), s.terminate();
1222
1222
  }, s.postMessage({
1223
1223
  link: e,
@@ -1227,7 +1227,7 @@ function Ve(e, t = {}, n = $e ? J.getSSID() : J.getAUTH()) {
1227
1227
  });
1228
1228
  });
1229
1229
  }
1230
- async function Es(e, t = {}, n = $e ? J.getSSID() : J.getAUTH()) {
1230
+ async function Es(e, t = {}, n = $e ? X.getSSID() : X.getAUTH()) {
1231
1231
  try {
1232
1232
  return await (await Ve(Be.Host() || `https://${Je}/` + e, {
1233
1233
  method: "POST",
@@ -1240,7 +1240,7 @@ async function Es(e, t = {}, n = $e ? J.getSSID() : J.getAUTH()) {
1240
1240
  return { status: "error", message: r };
1241
1241
  }
1242
1242
  }
1243
- function Ds(e, t = {}, n = $e ? J.getSSID() : J.getAUTH()) {
1243
+ function Ds(e, t = {}, n = $e ? X.getSSID() : X.getAUTH()) {
1244
1244
  return new Promise((r) => {
1245
1245
  const s = new Wn();
1246
1246
  s.onmessage = (i) => {
@@ -1253,11 +1253,11 @@ function Ds(e, t = {}, n = $e ? J.getSSID() : J.getAUTH()) {
1253
1253
  });
1254
1254
  });
1255
1255
  }
1256
- function Rs(e, t = {}, n = $e ? J.getSSID() : J.getAUTH()) {
1256
+ function Rs(e, t = {}, n = $e ? X.getSSID() : X.getAUTH()) {
1257
1257
  const [r, s] = m.useState({ status: "load" }), i = async (o) => {
1258
1258
  let l = await Ve(e, o, n);
1259
1259
  if (l.status === "logaut" || l.status === "logout")
1260
- return J.Logaut();
1260
+ return X.Logaut();
1261
1261
  s(l);
1262
1262
  };
1263
1263
  return m.useEffect(() => {
@@ -1266,7 +1266,7 @@ function Rs(e, t = {}, n = $e ? J.getSSID() : J.getAUTH()) {
1266
1266
  }
1267
1267
  let Hn = {
1268
1268
  "Content-type": "application/json;charset=utf-8",
1269
- ssid: J.getAUTH() || ""
1269
+ ssid: X.getAUTH() || ""
1270
1270
  };
1271
1271
  async function Is(e, t, n = {}) {
1272
1272
  try {
@@ -1349,16 +1349,16 @@ function $s(e) {
1349
1349
  };
1350
1350
  }
1351
1351
  const Bs = (e) => {
1352
- function t(T, L) {
1352
+ function t(N, L) {
1353
1353
  var $, I, R;
1354
- T = T ?? "", L = L ?? 1;
1355
- for (var $ = [], R = 0, I = T.length; R < I; )
1356
- $.push(T.slice(R, R += L));
1354
+ N = N ?? "", L = L ?? 1;
1355
+ for (var $ = [], R = 0, I = N.length; R < I; )
1356
+ $.push(N.slice(R, R += L));
1357
1357
  return $;
1358
1358
  }
1359
- function n(T, L) {
1359
+ function n(N, L) {
1360
1360
  var $ = [2, 0, 1, 1, 1, 2];
1361
- return L[T > 4 && T < 20 ? 2 : $[Math.min(T, 5)]];
1361
+ return L[N > 4 && N < 20 ? 2 : $[Math.min(N, 5)]];
1362
1362
  }
1363
1363
  var r = {
1364
1364
  null: "ноль",
@@ -1433,14 +1433,14 @@ const Bs = (e) => {
1433
1433
  var g = [];
1434
1434
  if (c > 0) {
1435
1435
  x = t(c, 3);
1436
- for (var y = -1; y < x.length; y++)
1437
- if (_ = x[y], _ > 0 && (f = t(_, 1), s = parseInt(f[0]), i = parseInt(f[1]), o = parseInt(f[2]), g.push(r.a100[s - 1]), h = y + 1 == 3 ? "a2" : "a1", i > 1 ? g.push(
1436
+ for (var j = -1; j < x.length; j++)
1437
+ if (_ = x[j], _ > 0 && (f = t(_, 1), s = parseInt(f[0]), i = parseInt(f[1]), o = parseInt(f[2]), g.push(r.a100[s - 1]), h = j + 1 == 3 ? "a2" : "a1", i > 1 ? g.push(
1438
1438
  r.a20[i - 2] + (o > 0 ? " " + r[h][o - 1] : "")
1439
1439
  ) : g.push(
1440
1440
  i > 0 ? r.a10[o] : r[h][o - 1]
1441
- ), x.length > y + 1)) {
1442
- var j = r["u" + (y + 1)];
1443
- g.push(n(_, j));
1441
+ ), x.length > j + 1)) {
1442
+ var k = r["u" + (j + 1)];
1443
+ g.push(n(_, k));
1444
1444
  }
1445
1445
  } else
1446
1446
  g.push(r.null);
@@ -2451,9 +2451,9 @@ const mo = "_btn_294gf_1", ho = "_confirm_294gf_15", po = "_cancel_294gf_20", go
2451
2451
  awaitText: f = "Ожидайте"
2452
2452
  }) => {
2453
2453
  let [h, v] = m.useState(!1);
2454
- const p = (y) => {
2454
+ const p = (j) => {
2455
2455
  if (e) return e();
2456
- h || (t ? (v(!0), t(v)) : y.preventDefault());
2456
+ h || (t ? (v(!0), t(v)) : j.preventDefault());
2457
2457
  };
2458
2458
  let g = {};
2459
2459
  return (o || h) && (g.disabled = !0), /* @__PURE__ */ a.jsx(
@@ -2899,7 +2899,7 @@ const Wo = ({ children: e, className: t, title: n }) => /* @__PURE__ */ a.jsxs("
2899
2899
  let i = await (await fetch(Dt.url().files + "/yandex/data/" + e.id, {
2900
2900
  headers: {
2901
2901
  "Content-type": "application/json;charset=utf-8",
2902
- SSID: J.getSSID() || ""
2902
+ SSID: X.getSSID() || ""
2903
2903
  }
2904
2904
  })).blob();
2905
2905
  if (i.size !== 2) {
@@ -2912,7 +2912,7 @@ const Wo = ({ children: e, className: t, title: n }) => /* @__PURE__ */ a.jsxs("
2912
2912
  (await (await fetch(Dt.url().files + "/yandex/delete/" + e.id, {
2913
2913
  headers: {
2914
2914
  "Content-type": "application/json;charset=utf-8",
2915
- SSID: J.getSSID() || ""
2915
+ SSID: X.getSSID() || ""
2916
2916
  }
2917
2917
  })).json()).status === "success" && (t({ type: "delete", id: e.id }), Ce.Send({ type: "success", text: "Файл успешно удалён" }));
2918
2918
  };
@@ -3183,7 +3183,7 @@ function sl(e, t) {
3183
3183
  function il({ id: e, type: t }) {
3184
3184
  const [n, r] = m.useState({}), [s, i] = m.useState(t);
3185
3185
  m.useEffect(() => {
3186
- r(J.getSelect("user")[e]);
3186
+ r(X.getSelect("user")[e]);
3187
3187
  }, []), Y.useListener((c) => {
3188
3188
  switch (c.type) {
3189
3189
  case "state":
@@ -3664,7 +3664,7 @@ function tc({ items: e, list: t, icons: n, isSetting: r = !0 }) {
3664
3664
  Jl.Send(
3665
3665
  { title: "Выйти", text: "Вы уверене что хотиет выйти" },
3666
3666
  () => {
3667
- J.Logaut();
3667
+ X.Logaut();
3668
3668
  }
3669
3669
  );
3670
3670
  };
@@ -3864,21 +3864,21 @@ class mc {
3864
3864
  );
3865
3865
  }
3866
3866
  }
3867
- let yt, X = {};
3867
+ let yt, V = {};
3868
3868
  const Fe = () => (yt || (yt = new mc()), yt), Se = (e, t, n = Fe()) => n._withIDBStore("readwrite", (r) => {
3869
- X[e] = t, r.put(A.enCode(t), e);
3870
- }), xe = (e, t = Fe()) => X[e] === void 0 ? new Promise((n, r) => {
3869
+ V[e] = t, r.put(A.enCode(t), e);
3870
+ }), xe = (e, t = Fe()) => V[e] === void 0 ? new Promise((n, r) => {
3871
3871
  let s;
3872
3872
  t._withIDBStore("readonly", (i) => {
3873
3873
  s = i.get(e);
3874
3874
  }).then(() => {
3875
3875
  if (s.result !== void 0) {
3876
3876
  let i = A.deCode(s.result);
3877
- X[e] = i, n(i);
3877
+ V[e] = i, n(i);
3878
3878
  } else
3879
3879
  n({});
3880
3880
  });
3881
- }) : X[e], hc = (e, t = Fe()) => t._withIDBStore("readwrite", (n) => {
3881
+ }) : V[e], hc = (e, t = Fe()) => t._withIDBStore("readwrite", (n) => {
3882
3882
  n.delete(e);
3883
3883
  }), Ft = (e = Fe()) => e._withIDBStore("readwrite", (t) => {
3884
3884
  t.clear();
@@ -3912,7 +3912,7 @@ const Fe = () => (yt || (yt = new mc()), yt), Se = (e, t, n = Fe()) => n._withID
3912
3912
  h === void 0 ? (Ft(), location.reload()) : (s && x(h.id), l && f(h.id));
3913
3913
  }), { list: u, search: i, filter: r };
3914
3914
  }, xc = (e, t, n, r = Fe()) => {
3915
- if (X[e] === void 0)
3915
+ if (V[e] === void 0)
3916
3916
  return new Promise((s, i) => {
3917
3917
  let o;
3918
3918
  r._withIDBStore("readonly", (l) => {
@@ -3920,17 +3920,17 @@ const Fe = () => (yt || (yt = new mc()), yt), Se = (e, t, n = Fe()) => n._withID
3920
3920
  }).then(() => {
3921
3921
  if (o.result !== void 0) {
3922
3922
  let l = A.deCode(o.result);
3923
- X[e] = l, X[e][t.id] = {
3924
- ...X[e][t.id],
3923
+ V[e] = l, V[e][t.id] = {
3924
+ ...V[e][t.id],
3925
3925
  ...t.data
3926
- }, r.put(A.enCode(X[e]), e), s({});
3926
+ }, r.put(A.enCode(V[e]), e), s({});
3927
3927
  } else
3928
3928
  s({});
3929
3929
  });
3930
3930
  });
3931
- if (X[e][t.id] !== void 0)
3932
- return X[e][t.id] = { ...X[e][t.id], ...t.data }, n !== void 0 && X[n] !== void 0 ? X[n][t.id] !== void 0 && (X[n][t.id] = t.data.eDate) : X[n] = [], delete X[e][t.id].$_item, delete X[e][t.id].$_send, r._withIDBStore("readwrite", (s) => {
3933
- s.put(A.enCode(X[e]), e), n !== void 0 && s.put(A.enCode(X[n]), n);
3931
+ if (V[e][t.id] !== void 0)
3932
+ return V[e][t.id] = { ...V[e][t.id], ...t.data }, n !== void 0 && V[n] !== void 0 ? V[n][t.id] !== void 0 && (V[n][t.id] = t.data.eDate) : V[n] = [], delete V[e][t.id].$_item, delete V[e][t.id].$_send, r._withIDBStore("readwrite", (s) => {
3933
+ s.put(A.enCode(V[e]), e), n !== void 0 && s.put(A.enCode(V[n]), n);
3934
3934
  });
3935
3935
  }, vc = async (e, t, n, r) => {
3936
3936
  let s, i;
@@ -3955,7 +3955,7 @@ const Fe = () => (yt || (yt = new mc()), yt), Se = (e, t, n = Fe()) => n._withID
3955
3955
  n({ type: "load", base: r });
3956
3956
  else
3957
3957
  return r[e];
3958
- }, wc = (e) => X[e], qd = {
3958
+ }, wc = (e) => V[e], qd = {
3959
3959
  id: bc,
3960
3960
  get: xe,
3961
3961
  set: Se,
@@ -4095,7 +4095,7 @@ z.Focus = (e) => {
4095
4095
  z.Blur = (e) => {
4096
4096
  e.target.scrollLeft = 0, e.target.querySelector("br") !== null && e.target.querySelector("br").remove();
4097
4097
  };
4098
- z.ContentEditable = J.isBrowser("Firefox") ? "true" : "plaintext-only";
4098
+ z.ContentEditable = X.isBrowser("Firefox") ? "true" : "plaintext-only";
4099
4099
  function He({
4100
4100
  id: e,
4101
4101
  value: t,
@@ -4114,20 +4114,20 @@ function He({
4114
4114
  view: v,
4115
4115
  onBlur: p,
4116
4116
  onSave: g,
4117
- className: y = "",
4118
- isCopy: j = !0,
4119
- isReload: T = !1
4117
+ className: j = "",
4118
+ isCopy: k = !0,
4119
+ isReload: N = !1
4120
4120
  }) {
4121
4121
  let L = !!(l && (t === "" || t === void 0)), $ = (S) => {
4122
4122
  n && n({
4123
4123
  value: S.target.textContent.trim(),
4124
4124
  name: r,
4125
- reload: T
4125
+ reload: N
4126
4126
  });
4127
4127
  }, R = (S) => {
4128
4128
  h && S.target.textContent.trim().length >= h && S.key !== "Backspace" && S.preventDefault(), S.key === "Enter" && S.preventDefault();
4129
4129
  }, I = (S) => {
4130
- j && (S.preventDefault(), navigator.clipboard.writeText(S.target.textContent.trim()).then(
4130
+ k && (S.preventDefault(), navigator.clipboard.writeText(S.target.textContent.trim()).then(
4131
4131
  function() {
4132
4132
  Ce.Copy("Данные в буфер обмене");
4133
4133
  },
@@ -4137,9 +4137,9 @@ function He({
4137
4137
  }, E = (S) => {
4138
4138
  S.preventDefault(), navigator.clipboard.readText().then((C) => {
4139
4139
  if (h) {
4140
- let N = S.target.textContent.length;
4141
- if (N >= h) return;
4142
- h -= N, C = C.slice(0, h);
4140
+ let T = S.target.textContent.length;
4141
+ if (T >= h) return;
4142
+ h -= T, C = C.slice(0, h);
4143
4143
  }
4144
4144
  window.document.execCommand(
4145
4145
  "insertText",
@@ -4151,7 +4151,7 @@ function He({
4151
4151
  };
4152
4152
  if (!(c && _) && !f || !(c && _) && L) return "";
4153
4153
  const P = {};
4154
- P.field = "input", y && (P.className = y);
4154
+ P.field = "input", j && (P.className = j);
4155
4155
  const B = {};
4156
4156
  s && (B.placeholder = s), c && _ && (B.edit = "");
4157
4157
  const b = (S) => {
@@ -4217,28 +4217,28 @@ function ra({
4217
4217
  u.current.value.length > 0 ? u.current.send && (n(!0), u.current.send = !1, u.current.timerId = setTimeout(() => {
4218
4218
  u.current.send = !0;
4219
4219
  }, 3e3)) : n(!1);
4220
- }, f = (j) => {
4221
- u.current.value = j.target.textContent, x();
4222
- }, h = (j) => {
4223
- j.keyCode === 16 && (u.current.shift = !0), j.keyCode === 13 && !u.current.shift && (j.preventDefault(), u.current.value.length !== 0 && (j.target.textContent = "", r && r(u.current.value), t && t(u.current.value), u.current.value = "", n(!1)));
4224
- }, v = (j) => {
4225
- j.keyCode === 16 && (u.current.shift = !1);
4226
- }, p = (j) => {
4227
- j.preventDefault(), navigator.clipboard.readText().then((T) => {
4220
+ }, f = (k) => {
4221
+ u.current.value = k.target.textContent, x();
4222
+ }, h = (k) => {
4223
+ k.keyCode === 16 && (u.current.shift = !0), k.keyCode === 13 && !u.current.shift && (k.preventDefault(), u.current.value.length !== 0 && (k.target.textContent = "", r && r(u.current.value), t && t(u.current.value), u.current.value = "", n(!1)));
4224
+ }, v = (k) => {
4225
+ k.keyCode === 16 && (u.current.shift = !1);
4226
+ }, p = (k) => {
4227
+ k.preventDefault(), navigator.clipboard.readText().then((N) => {
4228
4228
  if (o) {
4229
- let L = j.target.textContent.length;
4229
+ let L = k.target.textContent.length;
4230
4230
  if (L >= o) return;
4231
- o -= L, T = T.slice(0, o);
4231
+ o -= L, N = N.slice(0, o);
4232
4232
  }
4233
- window.document.execCommand("insertText", !1, T);
4234
- }).catch((T) => {
4233
+ window.document.execCommand("insertText", !1, N);
4234
+ }).catch((N) => {
4235
4235
  });
4236
4236
  }, g = () => {
4237
4237
  n(!1);
4238
- }, y = {
4238
+ }, j = {
4239
4239
  spellCheck: "true"
4240
4240
  };
4241
- return _ && (y.placeholder = _), l && c && (y.contentEditable = z.ContentEditable), /* @__PURE__ */ a.jsx("dl", { "data-form": "message", children: /* @__PURE__ */ a.jsx(
4241
+ return _ && (j.placeholder = _), l && c && (j.contentEditable = z.ContentEditable), /* @__PURE__ */ a.jsx("dl", { "data-form": "message", children: /* @__PURE__ */ a.jsx(
4242
4242
  "dd",
4243
4243
  {
4244
4244
  onPaste: p,
@@ -4246,7 +4246,7 @@ function ra({
4246
4246
  onKeyUp: v,
4247
4247
  onKeyDown: h,
4248
4248
  onBlur: g,
4249
- ...y,
4249
+ ...j,
4250
4250
  suppressContentEditableWarning: !0,
4251
4251
  children: e
4252
4252
  }
@@ -4350,8 +4350,8 @@ function oa({
4350
4350
  }, _ = (p) => {
4351
4351
  if (p.preventDefault(), !r) return;
4352
4352
  p.target.textContent = p.target.textContent.slice(-1).replace(/[^+\d]/g, "");
4353
- let g = window.getSelection(), y = p.target.textContent.length;
4354
- if (c[p.target.id] = p.target.textContent, c.code = c.n1 + "" + c.n2 + c.n3 + c.n4 + c.n5 + c.n6, g.collapse(p.target.firstChild, 1), y === 0) {
4353
+ let g = window.getSelection(), j = p.target.textContent.length;
4354
+ if (c[p.target.id] = p.target.textContent, c.code = c.n1 + "" + c.n2 + c.n3 + c.n4 + c.n5 + c.n6, g.collapse(p.target.firstChild, 1), j === 0) {
4355
4355
  p.target.blur(), p.target.focus();
4356
4356
  return;
4357
4357
  }
@@ -4379,8 +4379,8 @@ function oa({
4379
4379
  code: ""
4380
4380
  };
4381
4381
  for (let g = 1; g <= 6; g++) {
4382
- let y = document.getElementById("n" + g);
4383
- y && (y.textContent = "");
4382
+ let j = document.getElementById("n" + g);
4383
+ j && (j.textContent = "");
4384
4384
  }
4385
4385
  }
4386
4386
  }
@@ -4388,10 +4388,10 @@ function oa({
4388
4388
  p.target.textContent = "";
4389
4389
  }, h = (p) => {
4390
4390
  p.preventDefault(), navigator.clipboard.readText().then((g) => {
4391
- let y = g.split("");
4392
- for (let j = 1; j <= y.length; j++) {
4393
- let T = document.getElementById("n" + j);
4394
- T && (T.textContent = y[j - 1]);
4391
+ let j = g.split("");
4392
+ for (let k = 1; k <= j.length; k++) {
4393
+ let N = document.getElementById("n" + k);
4394
+ N && (N.textContent = j[k - 1]);
4395
4395
  }
4396
4396
  }).catch((g) => {
4397
4397
  });
@@ -4496,8 +4496,8 @@ function la({
4496
4496
  className: g = ""
4497
4497
  }) {
4498
4498
  _ = _ !== void 0 ? _ : !0, u = u !== void 0 ? u : !0;
4499
- let [y, j] = m.useState(t), T = ($) => {
4500
- j($), n == null || n({ value: $, name: r }), p == null || p({ value: $, name: r });
4499
+ let [j, k] = m.useState(t), N = ($) => {
4500
+ k($), n == null || n({ value: $, name: r }), p == null || p({ value: $, name: r });
4501
4501
  };
4502
4502
  const L = {};
4503
4503
  return L.field = "color", g && (L.className = g), /* @__PURE__ */ a.jsx(a.Fragment, { children: h === "icon" ? /* @__PURE__ */ a.jsx(
@@ -4510,8 +4510,8 @@ function la({
4510
4510
  /* @__PURE__ */ a.jsx("dd", { children: c > 0 && Array.from(Array(c).keys()).map(($) => /* @__PURE__ */ a.jsx(
4511
4511
  "s",
4512
4512
  {
4513
- active: (Number($) === Number(y)) + "",
4514
- onClick: () => T($),
4513
+ active: (Number($) === Number(j)) + "",
4514
+ onClick: () => N($),
4515
4515
  style: {
4516
4516
  backgroundColor: `var(--color-${$})`
4517
4517
  }
@@ -4551,7 +4551,7 @@ function Zt({
4551
4551
  }, [x]);
4552
4552
  let g = (L) => {
4553
4553
  v(L), _ == null || _({ value: L, name: u });
4554
- }, y = (L) => {
4554
+ }, j = (L) => {
4555
4555
  const $ = L.target.getBoundingClientRect(), R = $.left, I = $.bottom, E = $.top;
4556
4556
  pe.setListener(
4557
4557
  "form",
@@ -4569,24 +4569,24 @@ function Zt({
4569
4569
  )
4570
4570
  );
4571
4571
  };
4572
- const j = {};
4573
- j.field = "input", s && (j.className = s);
4574
- const T = {};
4575
- return i && (T.placeholder = i), p ? /* @__PURE__ */ a.jsx(a.Fragment, {}) : /* @__PURE__ */ a.jsx(a.Fragment, { children: c === "icon" ? /* @__PURE__ */ a.jsx(
4572
+ const k = {};
4573
+ k.field = "input", s && (k.className = s);
4574
+ const N = {};
4575
+ return i && (N.placeholder = i), p ? /* @__PURE__ */ a.jsx(a.Fragment, {}) : /* @__PURE__ */ a.jsx(a.Fragment, { children: c === "icon" ? /* @__PURE__ */ a.jsx(
4576
4576
  "i",
4577
4577
  {
4578
4578
  "data-icon": "F043",
4579
4579
  className: "pointer",
4580
4580
  "data-color": "_b5b9cc :506290",
4581
- onClick: y
4581
+ onClick: j
4582
4582
  }
4583
- ) : /* @__PURE__ */ a.jsxs("dl", { ...j, children: [
4583
+ ) : /* @__PURE__ */ a.jsxs("dl", { ...k, children: [
4584
4584
  e && /* @__PURE__ */ a.jsx("dt", { children: e }),
4585
4585
  /* @__PURE__ */ a.jsxs(
4586
4586
  "dd",
4587
4587
  {
4588
- onClick: y,
4589
- ...T,
4588
+ onClick: j,
4589
+ ...N,
4590
4590
  "data-edit": (n && r) + "",
4591
4591
  children: [
4592
4592
  H.Date(h, "dd.mm.yyyy"),
@@ -4607,14 +4607,14 @@ const Pc = ({ date: e, onValue: t, position: n, max: r, min: s, className: i })
4607
4607
  d: parseInt(_.getDate()),
4608
4608
  m: parseInt(_.getMonth()) + 1
4609
4609
  }, [f, h] = m.useState({ y: x.y, m: x.m }), v = (C) => {
4610
- let N = C.getDay();
4611
- return N === 0 && (N = 7), N - 1;
4612
- }, p = ["пн", "вт", "ср", "чт", "пт", "сб", "вс"], g = f.m - 1, y = new Date(f.y, g), j = [];
4613
- for (let C = 0; C < v(y); C++)
4614
- j.push(0);
4615
- for (; y.getMonth() === g; )
4616
- j.push(y.getDate()), y.setDate(y.getDate() + 1);
4617
- let T = () => {
4610
+ let T = C.getDay();
4611
+ return T === 0 && (T = 7), T - 1;
4612
+ }, p = ["пн", "вт", "ср", "чт", "пт", "сб", "вс"], g = f.m - 1, j = new Date(f.y, g), k = [];
4613
+ for (let C = 0; C < v(j); C++)
4614
+ k.push(0);
4615
+ for (; j.getMonth() === g; )
4616
+ k.push(j.getDate()), j.setDate(j.getDate() + 1);
4617
+ let N = () => {
4618
4618
  l(!1);
4619
4619
  }, L = () => {
4620
4620
  I(f.m + 1, f.y);
@@ -4623,21 +4623,21 @@ const Pc = ({ date: e, onValue: t, position: n, max: r, min: s, className: i })
4623
4623
  }, R = (C) => {
4624
4624
  t(
4625
4625
  f.y + "-" + H.Number(2, f.m) + "-" + H.Number(2, C)
4626
- ), T();
4627
- }, I = (C, N) => {
4628
- N = C > 12 ? N + 1 : C < 1 ? N - 1 : N, C = C > 12 ? 1 : C < 1 ? 12 : C, h({ y: N, m: C });
4626
+ ), N();
4627
+ }, I = (C, T) => {
4628
+ T = C > 12 ? T + 1 : C < 1 ? T - 1 : T, C = C > 12 ? 1 : C < 1 ? 12 : C, h({ y: T, m: C });
4629
4629
  };
4630
4630
  const E = (C) => u.y === f.y && u.m === f.m && u.d === C ? { "data-active": "true" } : {}, P = (C) => x.y === f.y && x.m === f.m && x.d === C ? { "data-current": "true" } : {}, B = (C) => {
4631
- let N = !0;
4631
+ let T = !0;
4632
4632
  if (r) {
4633
4633
  let W = r.getTime(), ee = new Date(f.y, f.m - 1, C).getTime();
4634
- W < ee && (N = !1);
4634
+ W < ee && (T = !1);
4635
4635
  }
4636
4636
  if (s) {
4637
4637
  let W = s.getTime(), ee = new Date(f.y, f.m - 1, C).getTime();
4638
- W > ee && (N = !1);
4638
+ W > ee && (T = !1);
4639
4639
  }
4640
- return N;
4640
+ return T;
4641
4641
  };
4642
4642
  let b = window.innerHeight - n.y < 320 ? n.y - 312 : n.b, S = window.innerWidth - n.x < 265 ? n.x - 235 : n.x;
4643
4643
  return /* @__PURE__ */ a.jsx(a.Fragment, { children: o ? /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
@@ -4645,7 +4645,7 @@ const Pc = ({ date: e, onValue: t, position: n, max: r, min: s, className: i })
4645
4645
  "div",
4646
4646
  {
4647
4647
  className: fe.o,
4648
- onClick: () => T()
4648
+ onClick: () => N()
4649
4649
  },
4650
4650
  (/* @__PURE__ */ new Date()).getTime()
4651
4651
  ),
@@ -4688,8 +4688,8 @@ const Pc = ({ date: e, onValue: t, position: n, max: r, min: s, className: i })
4688
4688
  ) })
4689
4689
  ] }),
4690
4690
  /* @__PURE__ */ a.jsxs("div", { "grid-calendar": "", children: [
4691
- p.map((C, N) => /* @__PURE__ */ a.jsx("p", { children: C }, "v" + N)),
4692
- j.map((C, N) => /* @__PURE__ */ a.jsx("span", { children: C !== 0 && B(C) ? /* @__PURE__ */ a.jsx(
4691
+ p.map((C, T) => /* @__PURE__ */ a.jsx("p", { children: C }, "v" + T)),
4692
+ k.map((C, T) => /* @__PURE__ */ a.jsx("span", { children: C !== 0 && B(C) ? /* @__PURE__ */ a.jsx(
4693
4693
  "b",
4694
4694
  {
4695
4695
  ...E(C),
@@ -4697,7 +4697,7 @@ const Pc = ({ date: e, onValue: t, position: n, max: r, min: s, className: i })
4697
4697
  onClick: () => R(C),
4698
4698
  children: C
4699
4699
  }
4700
- ) : /* @__PURE__ */ a.jsx("p", { ...E(C), ...P(C), children: C !== 0 ? C : "" }) }, N))
4700
+ ) : /* @__PURE__ */ a.jsx("p", { ...E(C), ...P(C), children: C !== 0 ? C : "" }) }, T))
4701
4701
  ] })
4702
4702
  ]
4703
4703
  }
@@ -4722,12 +4722,12 @@ function zt({
4722
4722
  options: v,
4723
4723
  className: p
4724
4724
  }) {
4725
- let [g, y] = m.useState(e), j = ($) => {
4725
+ let [g, j] = m.useState(e), k = ($) => {
4726
4726
  if (!(l && _) || !f) return;
4727
4727
  let R = f.split(".");
4728
4728
  _t.Open(R[0], R[1], {
4729
4729
  callback: (I) => {
4730
- t && t({ value: I, name: n }), y(I);
4730
+ t && t({ value: I, name: n }), j(I);
4731
4731
  },
4732
4732
  onValue: t,
4733
4733
  options: v,
@@ -4735,16 +4735,16 @@ function zt({
4735
4735
  value: e
4736
4736
  });
4737
4737
  };
4738
- const T = {};
4739
- T.field = "input", p && (T.className = p);
4738
+ const N = {};
4739
+ N.field = "input", p && (N.className = p);
4740
4740
  const L = {};
4741
- return r && (L.placeholder = r), o ? /* @__PURE__ */ a.jsx(a.Fragment, {}) : /* @__PURE__ */ a.jsxs("dl", { ...T, children: [
4741
+ return r && (L.placeholder = r), o ? /* @__PURE__ */ a.jsx(a.Fragment, {}) : /* @__PURE__ */ a.jsxs("dl", { ...N, children: [
4742
4742
  s && /* @__PURE__ */ a.jsx("dt", { children: s }),
4743
4743
  /* @__PURE__ */ a.jsx(
4744
4744
  "dd",
4745
4745
  {
4746
4746
  ...L,
4747
- onClick: j,
4747
+ onClick: k,
4748
4748
  edit: (l && _) + "",
4749
4749
  "data-after": u,
4750
4750
  children: g
@@ -4772,23 +4772,23 @@ function Wt({
4772
4772
  onSave: p,
4773
4773
  className: g = ""
4774
4774
  }) {
4775
- let y = !!(o && (e === "" || e === void 0));
4775
+ let j = !!(o && (e === "" || e === void 0));
4776
4776
  e = H.isNumeric(e) ? Number(e) / x : 0;
4777
- let j = (b) => v === "multi" ? b.replace(/[^+\d.+-]/g, "") : b.replace(/[^+\d.]/g, ""), T = (b, S) => {
4778
- let C = document.createRange(), N = window.getSelection();
4779
- C.setStart(S.childNodes[0], b), C.collapse(!0), N.removeAllRanges(), N.addRange(C), S.focus();
4777
+ let k = (b) => v === "multi" ? b.replace(/[^+\d.+-]/g, "") : b.replace(/[^+\d.]/g, ""), N = (b, S) => {
4778
+ let C = document.createRange(), T = window.getSelection();
4779
+ C.setStart(S.childNodes[0], b), C.collapse(!0), T.removeAllRanges(), T.addRange(C), S.focus();
4780
4780
  }, L = (b) => {
4781
4781
  t == null || t({
4782
- value: j(b.target.textContent) * x,
4782
+ value: k(b.target.textContent) * x,
4783
4783
  name: n
4784
- }), b.target.textContent = j(b.target.textContent), b.target.textContent.length > 0 && T(b.target.textContent.length, b.target);
4784
+ }), b.target.textContent = k(b.target.textContent), b.target.textContent.length > 0 && N(b.target.textContent.length, b.target);
4785
4785
  }, $ = (b) => {
4786
- z.Blur(b), b.target.textContent === "" && (b.target.textContent = 0), p == null || p({ value: j(b.target.textContent) * x, name: n }), t == null || t({
4787
- value: j(b.target.textContent) * x,
4786
+ z.Blur(b), b.target.textContent === "" && (b.target.textContent = 0), p == null || p({ value: k(b.target.textContent) * x, name: n }), t == null || t({
4787
+ value: k(b.target.textContent) * x,
4788
4788
  name: n
4789
4789
  }), b.target.textContent = H.Money(b.target.textContent);
4790
4790
  }, R = (b) => {
4791
- b.target.textContent = j(b.target.textContent);
4791
+ b.target.textContent = k(b.target.textContent);
4792
4792
  }, I = (b) => {
4793
4793
  b.key === "Enter" && b.preventDefault();
4794
4794
  }, E = (b) => {
@@ -4797,7 +4797,7 @@ function Wt({
4797
4797
  }).catch((S) => {
4798
4798
  });
4799
4799
  };
4800
- if (!(l && c) && !u || !(l && c) && y) return "";
4800
+ if (!(l && c) && !u || !(l && c) && j) return "";
4801
4801
  const P = {};
4802
4802
  P.field = "input", g && (P.className = g);
4803
4803
  const B = {};
@@ -4842,13 +4842,13 @@ function ca({
4842
4842
  f(g), t && t({ value: g, name: n });
4843
4843
  }, v = (g) => {
4844
4844
  if (!i || !o) return;
4845
- const y = g.target.getBoundingClientRect(), j = y.left, T = y.top;
4845
+ const j = g.target.getBoundingClientRect(), k = j.left, N = j.top;
4846
4846
  pe.setListener(
4847
4847
  "form",
4848
4848
  /* @__PURE__ */ a.jsx(
4849
4849
  Oc,
4850
4850
  {
4851
- position: { x: j, y: T },
4851
+ position: { x: k, y: N },
4852
4852
  onValue: h,
4853
4853
  date: x
4854
4854
  },
@@ -4883,9 +4883,9 @@ const Oc = (e) => {
4883
4883
  c(l + 1);
4884
4884
  }, x = () => {
4885
4885
  c(l - 1);
4886
- }, f = (y) => {
4887
- e.onValue(l + "-" + H.Number(2, y)), _();
4888
- }, h = (y) => i.y === o.y && i.m === y ? "_FFEB3B" : "", v = Array(12).fill("").map((y, j) => j + 1), p = window.innerHeight - e.position.y + 33 < 320 ? e.position.y - 312 : e.position.y + 33, g = window.innerWidth - e.position.x < 265 ? e.position.x - 235 : e.position.x;
4886
+ }, f = (j) => {
4887
+ e.onValue(l + "-" + H.Number(2, j)), _();
4888
+ }, h = (j) => i.y === o.y && i.m === j ? "_FFEB3B" : "", v = Array(12).fill("").map((j, k) => k + 1), p = window.innerHeight - e.position.y + 33 < 320 ? e.position.y - 312 : e.position.y + 33, g = window.innerWidth - e.position.x < 265 ? e.position.x - 235 : e.position.x;
4889
4889
  return /* @__PURE__ */ a.jsx(a.Fragment, { children: t ? /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
4890
4890
  /* @__PURE__ */ a.jsx(
4891
4891
  "div",
@@ -4926,16 +4926,16 @@ const Oc = (e) => {
4926
4926
  }
4927
4927
  ) })
4928
4928
  ] }),
4929
- /* @__PURE__ */ a.jsx("div", { "grid-month": "", children: v.map((y, j) => /* @__PURE__ */ a.jsx(
4929
+ /* @__PURE__ */ a.jsx("div", { "grid-month": "", children: v.map((j, k) => /* @__PURE__ */ a.jsx(
4930
4930
  "span",
4931
4931
  {
4932
4932
  onClick: () => {
4933
- f(y);
4933
+ f(j);
4934
4934
  },
4935
- color: h(y),
4936
- children: /* @__PURE__ */ a.jsx("b", { children: H.Month(y).abc })
4935
+ color: h(j),
4936
+ children: /* @__PURE__ */ a.jsx("b", { children: H.Month(j).abc })
4937
4937
  },
4938
- j
4938
+ k
4939
4939
  )) })
4940
4940
  ]
4941
4941
  }
@@ -4960,16 +4960,16 @@ function da({
4960
4960
  onBlur: v,
4961
4961
  onSave: p,
4962
4962
  className: g = "",
4963
- isCopy: y = !0
4963
+ isCopy: j = !0
4964
4964
  }) {
4965
- let [j, T] = m.useState(!1);
4966
- j = c ? !0 : j;
4965
+ let [k, N] = m.useState(!1);
4966
+ k = c ? !0 : k;
4967
4967
  let L = (b) => {
4968
4968
  n == null || n({ value: b.target.innerText, name: r });
4969
4969
  }, $ = (b) => {
4970
4970
  f && b.target.textContent.trim().length >= f && b.key !== "Backspace" && b.preventDefault(), b.key === "Enter" && b.preventDefault();
4971
4971
  }, R = (b) => {
4972
- y && (b.preventDefault(), navigator.clipboard.writeText(b.target.textContent.trim()).then(
4972
+ j && (b.preventDefault(), navigator.clipboard.writeText(b.target.textContent.trim()).then(
4973
4973
  function() {
4974
4974
  Ce.Copy("Данные в буфер обмене");
4975
4975
  },
@@ -4996,7 +4996,7 @@ function da({
4996
4996
  const E = {};
4997
4997
  E.field = "notes", g && (E.className = g);
4998
4998
  const P = {};
4999
- s && (P.placeholder = s), c && _ && (P.edit = ""), j && (P.open = "");
4999
+ s && (P.placeholder = s), c && _ && (P.edit = ""), k && (P.open = "");
5000
5000
  const B = (b) => {
5001
5001
  z.Blur(b), p == null || p({ value: b.target.textContent.trim(), name: r });
5002
5002
  };
@@ -5040,15 +5040,15 @@ function Kt({
5040
5040
  view: g
5041
5041
  }) {
5042
5042
  s = s !== void 0 ? s : !0, n = n !== void 0 ? n : !0, c = !!(c && (_ === "" || _ === void 0)) && !(s && n), u = u !== void 0 ? u : "", r = r !== void 0 ? r : 99;
5043
- let j = !1, T = (B) => {
5043
+ let k = !1, N = (B) => {
5044
5044
  e == null || e({ value: B.target.textContent, name: h });
5045
5045
  }, L = (B) => {
5046
- if (!(j && B.which === 86)) {
5047
- if (B.which === 17 || B.which === 91) return j = !0;
5046
+ if (!(k && B.which === 86)) {
5047
+ if (B.which === 17 || B.which === 91) return k = !0;
5048
5048
  B.key !== "Backspace" && (B.target.textContent.length === r && B.preventDefault(), B.key === "Enter" && B.preventDefault(), isNaN(B.key) && B.preventDefault());
5049
5049
  }
5050
5050
  }, $ = (B) => {
5051
- if (B.which === 17 || B.which === 91) return j = !1;
5051
+ if (B.which === 17 || B.which === 91) return k = !1;
5052
5052
  }, R = (B) => {
5053
5053
  B.preventDefault(), navigator.clipboard.readText().then((b) => {
5054
5054
  if (b = b.replace(/(?!^\+|\d)./g, ""), f) {
@@ -5073,7 +5073,7 @@ function Kt({
5073
5073
  {
5074
5074
  ...P,
5075
5075
  onPaste: R,
5076
- onInput: T,
5076
+ onInput: N,
5077
5077
  onBlur: I,
5078
5078
  onKeyDown: L,
5079
5079
  onKeyUp: $,
@@ -5103,14 +5103,14 @@ function _a({
5103
5103
  eyes: v = [],
5104
5104
  after: p = ""
5105
5105
  }) {
5106
- const [g, y] = m.useState(f);
5107
- let j = (E) => {
5106
+ const [g, j] = m.useState(f);
5107
+ let k = (E) => {
5108
5108
  t && t({
5109
5109
  value: E.target.textContent,
5110
5110
  name: r,
5111
5111
  reload: u
5112
5112
  });
5113
- }, T = (E) => {
5113
+ }, N = (E) => {
5114
5114
  E.key === "Enter" && E.preventDefault();
5115
5115
  }, L = (E) => {
5116
5116
  E.preventDefault(), navigator.clipboard.readText().then((P) => {
@@ -5138,8 +5138,8 @@ function _a({
5138
5138
  "dd",
5139
5139
  {
5140
5140
  onPaste: L,
5141
- onInput: j,
5142
- onKeyDown: T,
5141
+ onInput: k,
5142
+ onKeyDown: N,
5143
5143
  onBlur: $,
5144
5144
  contentEditable: c && _ ? z.ContentEditable : "false",
5145
5145
  ...I,
@@ -5147,7 +5147,7 @@ function _a({
5147
5147
  children: e
5148
5148
  }
5149
5149
  ),
5150
- v[0] && /* @__PURE__ */ a.jsx("i", { onClick: () => y(!g), children: g ? v[1] : v[0] }),
5150
+ v[0] && /* @__PURE__ */ a.jsx("i", { onClick: () => j(!g), children: g ? v[1] : v[0] }),
5151
5151
  p,
5152
5152
  l ? /* @__PURE__ */ a.jsx("em", { children: l }) : ""
5153
5153
  ] });
@@ -6551,31 +6551,31 @@ function Ht({
6551
6551
  className: h = ""
6552
6552
  }) {
6553
6553
  c = c !== void 0 ? c : !0, _ = _ !== void 0 ? _ : !0, l = !!(l && (e === "" || e === void 0)) && !(c && _), m.useRef(null);
6554
- let p = "+_(___) ___-__-__", g = !0, y = 0, j = (S, C) => {
6555
- let N = document.createRange(), W = window.getSelection();
6556
- N.setStart(C.childNodes[0], S), N.collapse(!0), W.removeAllRanges(), W.addRange(N), C.focus();
6557
- }, T = (S) => {
6554
+ let p = "+_(___) ___-__-__", g = !0, j = 0, k = (S, C) => {
6555
+ let T = document.createRange(), W = window.getSelection();
6556
+ T.setStart(C.childNodes[0], S), T.collapse(!0), W.removeAllRanges(), W.addRange(T), C.focus();
6557
+ }, N = (S) => {
6558
6558
  S.preventDefault(), navigator.clipboard.readText().then((C) => {
6559
6559
  window.document.execCommand("insertText", !1, C);
6560
6560
  }).catch((C) => {
6561
6561
  });
6562
6562
  }, L = (S) => {
6563
- let C = 0, N = "", W = S.replace(/\D/g, "");
6563
+ let C = 0, T = "", W = S.replace(/\D/g, "");
6564
6564
  W === "" && (g = !0);
6565
6565
  let ee = W.split(""), oe = "";
6566
6566
  ee.forEach((Pe) => {
6567
- g && (oe += Pe, bt[oe] !== void 0 && g ? (g = !1, p = bt[oe].mask.replace(new RegExp("[0-9]", "g"), "_"), N = bt[oe].code) : (g && (y = ("" + oe).length, p = `+${oe}_(___) ___-__-__`.replace(
6567
+ g && (oe += Pe, bt[oe] !== void 0 && g ? (g = !1, p = bt[oe].mask.replace(new RegExp("[0-9]", "g"), "_"), T = bt[oe].code) : (g && (j = ("" + oe).length, p = `+${oe}_(___) ___-__-__`.replace(
6568
6568
  new RegExp("[0-9]", "g"),
6569
6569
  "_"
6570
- ), N = ""), y > ("" + oe).length && (g = !0, p = `+${oe}_(___) ___-__-__`.replace(
6570
+ ), T = ""), j > ("" + oe).length && (g = !0, p = `+${oe}_(___) ___-__-__`.replace(
6571
6571
  new RegExp("[0-9]", "g"),
6572
6572
  "_"
6573
- ), N = "")));
6573
+ ), T = "")));
6574
6574
  });
6575
6575
  let ve = p.replace(/\D/g, "");
6576
6576
  return ve.length >= W.length && (W = ve), { q: p.replace(/[_\d]/g, function() {
6577
6577
  return W.charAt(C++) || "_";
6578
- }), i: C, v: W, f: N };
6578
+ }), i: C, v: W, f: T };
6579
6579
  }, $ = (S) => {
6580
6580
  S.preventDefault(), navigator.clipboard.writeText(S.target.textContent.replace(/\D/g, "")).then(
6581
6581
  function() {
@@ -6586,7 +6586,7 @@ function Ht({
6586
6586
  );
6587
6587
  }, R = L(e), I = (S) => {
6588
6588
  let C = L(S.target.textContent);
6589
- S.target.textContent = C.q, C.i = C.q.lastIndexOf(C.v.substr(-1)), C.i < C.q.length && C.q !== p ? C.i++ : C.i = C.q.indexOf("_"), j(C.i, S.target), t && t({ value: C.q.replace(/\D/g, ""), name: r });
6589
+ S.target.textContent = C.q, C.i = C.q.lastIndexOf(C.v.substr(-1)), C.i < C.q.length && C.q !== p ? C.i++ : C.i = C.q.indexOf("_"), k(C.i, S.target), t && t({ value: C.q.replace(/\D/g, ""), name: r });
6590
6590
  }, E = (S) => {
6591
6591
  S.key === "Enter" && S.preventDefault();
6592
6592
  };
@@ -6604,7 +6604,7 @@ function Ht({
6604
6604
  "dd",
6605
6605
  {
6606
6606
  ...b,
6607
- onPaste: T,
6607
+ onPaste: N,
6608
6608
  onInput: I,
6609
6609
  onKeyDown: E,
6610
6610
  onContextMenu: $,
@@ -6628,52 +6628,50 @@ const ua = ({
6628
6628
  }) => {
6629
6629
  let c = 0, _ = m.useRef({
6630
6630
  textContent: o
6631
- });
6632
- const u = () => {
6633
- J.isBrowser("Chrome") || (_.current.textContent.trim().length > 0 ? _.current.nextElementSibling.style.display = "block!important" : (_.current.textContent = "", _.current.nextElementSibling.style.display = "none!important"));
6634
- };
6635
- let x = () => {
6636
- u(), clearTimeout(c), c = setTimeout(
6631
+ }), u = () => {
6632
+ _.current.target.textContent.trim().length === 0 && (_.current.target.textContent = ""), clearTimeout(c), c = setTimeout(
6637
6633
  () => {
6638
6634
  var j;
6639
6635
  return l((j = _.current) == null ? void 0 : j.textContent);
6640
6636
  },
6641
6637
  n
6642
6638
  );
6643
- }, f = () => {
6644
- _.current && (_.current.textContent = ""), l(""), u();
6645
- }, h = (j) => {
6639
+ }, x = () => {
6640
+ _.current && (_.current.textContent = ""), l("");
6641
+ }, f = (j) => {
6646
6642
  j.key === "Enter" && j.preventDefault();
6647
- }, v = (j) => {
6648
- j.preventDefault(), navigator.clipboard.readText().then((T) => {
6649
- window.document.execCommand("insertText", !1, T);
6650
- }).catch((T) => {
6643
+ }, h = (j) => {
6644
+ j.preventDefault(), navigator.clipboard.readText().then((k) => {
6645
+ window.document.execCommand("insertText", !1, k);
6646
+ }).catch((k) => {
6651
6647
  });
6652
- }, p = () => {
6653
- _.current.textContent = _.current.textContent.trim(), u();
6648
+ }, v = () => {
6649
+ _.current.textContent = _.current.textContent.trim();
6654
6650
  };
6651
+ const p = {};
6652
+ p.field = "search", e && (p.className = e);
6655
6653
  const g = {};
6656
- g.field = "search", e && (g.className = e);
6657
- const y = {};
6658
- return r && (y.placeholder = r), /* @__PURE__ */ a.jsxs("dl", { ...g, children: [
6654
+ return r && (g.placeholder = r), /* @__PURE__ */ a.jsxs("dl", { ...p, children: [
6659
6655
  t && /* @__PURE__ */ a.jsx("dt", { children: t }),
6660
6656
  /* @__PURE__ */ a.jsx(
6661
6657
  "dd",
6662
6658
  {
6663
6659
  ref: _,
6664
- onPaste: v,
6665
- onInput: x,
6666
- onKeyDown: h,
6667
- onBlur: p,
6660
+ onPaste: h,
6661
+ onInput: u,
6662
+ onKeyDown: f,
6663
+ onBlur: v,
6668
6664
  contentEditable: s && i ? z.ContentEditable : "false",
6669
- ...y,
6665
+ ...g,
6670
6666
  suppressContentEditableWarning: !0,
6671
6667
  children: o
6672
6668
  }
6673
6669
  ),
6674
- /* @__PURE__ */ a.jsx("s", { onClick: f, children: /* @__PURE__ */ a.jsxs(
6670
+ /* @__PURE__ */ a.jsxs(
6675
6671
  "svg",
6676
6672
  {
6673
+ "action-delete": !0,
6674
+ onClick: x,
6677
6675
  fill: "none",
6678
6676
  stroke: "currentColor",
6679
6677
  strokeLinecap: "round",
@@ -6686,7 +6684,7 @@ const ua = ({
6686
6684
  /* @__PURE__ */ a.jsx("path", { d: "m17.25 6.75-10.5 10.5" })
6687
6685
  ]
6688
6686
  }
6689
- ) })
6687
+ )
6690
6688
  ] });
6691
6689
  };
6692
6690
  function Yt({
@@ -6707,12 +6705,12 @@ function Yt({
6707
6705
  isReload: v = !1
6708
6706
  }) {
6709
6707
  var P, B;
6710
- const p = m.useRef(), [g, y] = m.useState(i), [j, T] = m.useState(l);
6708
+ const p = m.useRef(), [g, j] = m.useState(i), [k, N] = m.useState(l);
6711
6709
  m.useEffect(() => {
6712
- y(i), T(l);
6713
- }, [i, l]), s = !!(s && (i === "" || ((P = j[i]) == null ? void 0 : P.n) === void 0)) && !(n && r);
6710
+ j(i), N(l);
6711
+ }, [i, l]), s = !!(s && (i === "" || ((P = k[i]) == null ? void 0 : P.n) === void 0)) && !(n && r);
6714
6712
  let $ = (b) => {
6715
- y(b), o && o({ value: b, name: u, reload: v });
6713
+ j(b), o && o({ value: b, name: u, reload: v });
6716
6714
  }, R = (b) => {
6717
6715
  if (Object.keys(l).length === 0 || !(n && r)) return;
6718
6716
  const S = b.target.getBoundingClientRect();
@@ -6725,7 +6723,7 @@ function Yt({
6725
6723
  onValue: $,
6726
6724
  view: f,
6727
6725
  className: _,
6728
- options: j,
6726
+ options: k,
6729
6727
  order: h
6730
6728
  },
6731
6729
  (/* @__PURE__ */ new Date()).getTime()
@@ -6734,8 +6732,8 @@ function Yt({
6734
6732
  }, I = { field: "select", className: _ }, E = { onClick: R };
6735
6733
  return c && (E.placeholder = c), x && (E.after = x), n && r && (E.edit = ""), s ? "" : /* @__PURE__ */ a.jsxs("dl", { ...I, children: [
6736
6734
  e && /* @__PURE__ */ a.jsx("dt", { children: e }),
6737
- /* @__PURE__ */ a.jsx("dd", { ...E, ref: p, children: (B = j[g]) == null ? void 0 : B.n }),
6738
- Object.keys(j).length !== 0 && /* @__PURE__ */ a.jsx("s", { children: /* @__PURE__ */ a.jsx(
6735
+ /* @__PURE__ */ a.jsx("dd", { ...E, ref: p, children: (B = k[g]) == null ? void 0 : B.n }),
6736
+ Object.keys(k).length !== 0 && /* @__PURE__ */ a.jsx("s", { children: /* @__PURE__ */ a.jsx(
6739
6737
  "svg",
6740
6738
  {
6741
6739
  fill: "none",
@@ -6929,7 +6927,7 @@ function Pt({
6929
6927
  }
6930
6928
  );
6931
6929
  case "Select":
6932
- return v && (g = J.getSelect(parseInt(v)) ? J.getSelect(parseInt(v)) : { 0: { s: "1", n: "не известно" } }), /* @__PURE__ */ a.jsx(
6930
+ return v && (g = X.getSelect(parseInt(v)) ? X.getSelect(parseInt(v)) : { 0: { s: "1", n: "не известно" } }), /* @__PURE__ */ a.jsx(
6933
6931
  Yt,
6934
6932
  {
6935
6933
  title: i,
@@ -6947,7 +6945,7 @@ function Pt({
6947
6945
  }
6948
6946
  );
6949
6947
  case "Users":
6950
- return J.getSelect("user"), /* @__PURE__ */ a.jsx(
6948
+ return X.getSelect("user"), /* @__PURE__ */ a.jsx(
6951
6949
  qt,
6952
6950
  {
6953
6951
  title: i,
@@ -7073,11 +7071,11 @@ function fa({
7073
7071
  }) {
7074
7072
  let g = !!(o && (e === "" || e === void 0));
7075
7073
  if (!(l && c) && !u || !(l && c) && g) return "";
7076
- let y = (R) => {
7074
+ let j = (R) => {
7077
7075
  t && t({ value: R.target.innerText, name: n });
7078
- }, j = (R) => {
7076
+ }, k = (R) => {
7079
7077
  v && v({ value: R.target.innerText, name: n });
7080
- }, T = (R) => {
7078
+ }, N = (R) => {
7081
7079
  R.preventDefault(), navigator.clipboard.readText().then((I) => {
7082
7080
  if (h) {
7083
7081
  let E = R.target.textContent.length;
@@ -7096,9 +7094,9 @@ function fa({
7096
7094
  /* @__PURE__ */ a.jsx(
7097
7095
  "dd",
7098
7096
  {
7099
- onPaste: T,
7100
- onBlur: j,
7101
- onInput: y,
7097
+ onPaste: N,
7098
+ onBlur: k,
7099
+ onInput: j,
7102
7100
  contentEditable: l && c ? z.ContentEditable : "false",
7103
7101
  ...$,
7104
7102
  suppressContentEditableWarning: !0,
@@ -7125,11 +7123,11 @@ function ma({
7125
7123
  onSave: h,
7126
7124
  className: v = ""
7127
7125
  }) {
7128
- let p = !!(o && (e === "" || e === void 0)), g = H.Date(e === void 0 ? /* @__PURE__ */ new Date() : e, "HH:MM"), y = m.useRef(null);
7126
+ let p = !!(o && (e === "" || e === void 0)), g = H.Date(e === void 0 ? /* @__PURE__ */ new Date() : e, "HH:MM"), j = m.useRef(null);
7129
7127
  if (!(l && c) && !u || !(l && c) && p) return "";
7130
- let j = (I) => {
7131
- y.current.textContent = I, t && t({ value: I, name: n });
7132
- }, T = (I) => {
7128
+ let k = (I) => {
7129
+ j.current.textContent = I, t && t({ value: I, name: n });
7130
+ }, N = (I) => {
7133
7131
  h && h({ value: I, name: n });
7134
7132
  }, L = (I) => {
7135
7133
  const E = I.target.getBoundingClientRect(), P = E.left, B = E.top;
@@ -7139,8 +7137,8 @@ function ma({
7139
7137
  Zc,
7140
7138
  {
7141
7139
  positions: { x: P, y: B },
7142
- onSave: T,
7143
- onValue: j,
7140
+ onSave: N,
7141
+ onValue: k,
7144
7142
  date: g
7145
7143
  },
7146
7144
  (/* @__PURE__ */ new Date()).getTime()
@@ -7158,7 +7156,7 @@ function ma({
7158
7156
  }
7159
7157
  ) : /* @__PURE__ */ a.jsxs("dl", { ...$, children: [
7160
7158
  s ? /* @__PURE__ */ a.jsx("dt", { children: s }) : "",
7161
- /* @__PURE__ */ a.jsx("dd", { onClick: L, ref: y, ...R, children: g }),
7159
+ /* @__PURE__ */ a.jsx("dd", { onClick: L, ref: j, ...R, children: g }),
7162
7160
  i ? /* @__PURE__ */ a.jsx("em", { children: i }) : ""
7163
7161
  ] }) });
7164
7162
  }
@@ -7231,15 +7229,15 @@ const Zc = ({ positions: e, onSave: t, onValue: n, date: r }) => {
7231
7229
  }
7232
7230
  }
7233
7231
  n(i.h + ":" + i.m);
7234
- }, [y, j] = m.useState(!0), T = () => {
7235
- j(!1), t(i.h + ":" + i.m);
7232
+ }, [j, k] = m.useState(!0), N = () => {
7233
+ k(!1), t(i.h + ":" + i.m);
7236
7234
  }, L = window.innerHeight - e.y + 33 < 320 ? e.y - 312 : e.y + 33, $ = window.innerWidth - e.x < 265 ? e.x - 235 : e.x;
7237
- return /* @__PURE__ */ a.jsx(a.Fragment, { children: y ? /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
7235
+ return /* @__PURE__ */ a.jsx(a.Fragment, { children: j ? /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
7238
7236
  /* @__PURE__ */ a.jsx(
7239
7237
  "div",
7240
7238
  {
7241
7239
  className: fe.o,
7242
- onClick: () => T()
7240
+ onClick: () => N()
7243
7241
  },
7244
7242
  (/* @__PURE__ */ new Date()).getTime()
7245
7243
  ),
@@ -7375,18 +7373,18 @@ function ga({
7375
7373
  className: v = "",
7376
7374
  separator: p = ","
7377
7375
  }) {
7378
- const [g, y] = m.useState(
7376
+ const [g, j] = m.useState(
7379
7377
  e !== void 0 ? e.split(p) : []
7380
7378
  );
7381
7379
  m.useEffect(() => {
7382
- y(e !== void 0 ? e !== void 0 ? e.split(p) : [] : []);
7380
+ j(e !== void 0 ? e !== void 0 ? e.split(p) : [] : []);
7383
7381
  }, [e]);
7384
- let j = () => {
7382
+ let k = () => {
7385
7383
  if (f !== 0 && g.length >= f)
7386
7384
  return Ce.Error("Слишком много");
7387
- y([...g, ""]);
7388
- }, T = (b) => {
7389
- g.splice(b, 1), g.length === 0 && g.push(""), y([...g]), h !== void 0 && h({ value: g.join(p), name: n });
7385
+ j([...g, ""]);
7386
+ }, N = (b) => {
7387
+ g.splice(b, 1), g.length === 0 && g.push(""), j([...g]), h !== void 0 && h({ value: g.join(p), name: n });
7390
7388
  }, L = !!(o && (e === "" || e === void 0)), $ = (b) => {
7391
7389
  };
7392
7390
  if (!(l && c) && !u || !(l && c) && L) return "";
@@ -7400,7 +7398,7 @@ function ga({
7400
7398
  }, P = (b) => {
7401
7399
  b.key === "Enter" && b.preventDefault();
7402
7400
  };
7403
- const B = ({ data: b }) => f !== 0 && b.length >= f ? "" : /* @__PURE__ */ a.jsx("i", { onClick: j, children: /* @__PURE__ */ a.jsxs(
7401
+ const B = ({ data: b }) => f !== 0 && b.length >= f ? "" : /* @__PURE__ */ a.jsx("i", { onClick: k, children: /* @__PURE__ */ a.jsxs(
7404
7402
  "svg",
7405
7403
  {
7406
7404
  xmlns: "http://www.w3.org/2000/svg",
@@ -7441,7 +7439,7 @@ function ga({
7441
7439
  "i",
7442
7440
  {
7443
7441
  onClick: () => {
7444
- T(S);
7442
+ N(S);
7445
7443
  },
7446
7444
  children: /* @__PURE__ */ a.jsxs(
7447
7445
  "svg",
@@ -7484,25 +7482,25 @@ function xa({
7484
7482
  options: v,
7485
7483
  className: p
7486
7484
  }) {
7487
- const [g, y] = m.useState(Wc(e)), j = ($) => {
7485
+ const [g, j] = m.useState(Wc(e)), k = ($) => {
7488
7486
  if (!(l && _) || !f) return;
7489
7487
  let R = f.split(".");
7490
7488
  _t.Open(R[0], R[1], {
7491
7489
  callback: (I) => {
7492
- t && t({ value: I, name: n }), y(I);
7490
+ t && t({ value: I, name: n }), j(I);
7493
7491
  },
7494
7492
  onValue: t,
7495
7493
  options: v,
7496
7494
  name: n,
7497
7495
  value: g
7498
7496
  });
7499
- }, T = {};
7500
- T.field = "group", p && (T.className = p);
7497
+ }, N = {};
7498
+ N.field = "group", p && (N.className = p);
7501
7499
  const L = {};
7502
- return r && (L.placeholder = r), o ? /* @__PURE__ */ a.jsx(a.Fragment, {}) : /* @__PURE__ */ a.jsxs("dl", { ...T, children: [
7500
+ return r && (L.placeholder = r), o ? /* @__PURE__ */ a.jsx(a.Fragment, {}) : /* @__PURE__ */ a.jsxs("dl", { ...N, children: [
7503
7501
  /* @__PURE__ */ a.jsxs("dt", { children: [
7504
7502
  s,
7505
- /* @__PURE__ */ a.jsx("i", { onClick: j, children: /* @__PURE__ */ a.jsxs(
7503
+ /* @__PURE__ */ a.jsx("i", { onClick: k, children: /* @__PURE__ */ a.jsxs(
7506
7504
  "svg",
7507
7505
  {
7508
7506
  width: "20",
@@ -7555,9 +7553,9 @@ function Sn({
7555
7553
  onSave: p,
7556
7554
  className: g = ""
7557
7555
  }) {
7558
- const y = m.useId();
7559
- let j = !!(l && (e === "" || e === void 0)), [T, L] = m.useState(i);
7560
- if (!(c && _) && !x || !(c && _) && j) return "";
7556
+ const j = m.useId();
7557
+ let k = !!(l && (e === "" || e === void 0)), [N, L] = m.useState(i);
7558
+ if (!(c && _) && !x || !(c && _) && k) return "";
7561
7559
  const $ = async (I) => {
7562
7560
  if (f) {
7563
7561
  let E = Hc(I, f, e || "default");
@@ -7574,7 +7572,7 @@ function Sn({
7574
7572
  /* @__PURE__ */ a.jsx(
7575
7573
  "input",
7576
7574
  {
7577
- id: y,
7575
+ id: j,
7578
7576
  type: "file",
7579
7577
  multiple: !0,
7580
7578
  onChange: (I) => {
@@ -7582,8 +7580,8 @@ function Sn({
7582
7580
  }
7583
7581
  }
7584
7582
  ),
7585
- /* @__PURE__ */ a.jsx("label", { htmlFor: y }),
7586
- /* @__PURE__ */ a.jsx("img", { src: T })
7583
+ /* @__PURE__ */ a.jsx("label", { htmlFor: j }),
7584
+ /* @__PURE__ */ a.jsx("img", { src: N })
7587
7585
  ] }),
7588
7586
  o && /* @__PURE__ */ a.jsx("em", { children: o })
7589
7587
  ] });
@@ -7723,36 +7721,36 @@ function Qc({
7723
7721
  className: v = ""
7724
7722
  }) {
7725
7723
  _ = _ !== void 0 ? _ : !0, u = u !== void 0 ? u : !0, c = !!(c && (e === "" || e === void 0)) && !(_ && u), m.useRef(null);
7726
- let g = s, y = !0, j = 0, T = (C, N) => {
7724
+ let g = s, j = !0, k = 0, N = (C, T) => {
7727
7725
  let W = document.createRange(), ee = window.getSelection();
7728
- W.setStart(N.childNodes[0], C), W.collapse(!0), ee.removeAllRanges(), ee.addRange(W), N.focus();
7726
+ W.setStart(T.childNodes[0], C), W.collapse(!0), ee.removeAllRanges(), ee.addRange(W), T.focus();
7729
7727
  }, L = (C) => {
7730
- C.preventDefault(), navigator.clipboard.readText().then((N) => {
7731
- window.document.execCommand("insertText", !1, N);
7732
- }).catch((N) => {
7728
+ C.preventDefault(), navigator.clipboard.readText().then((T) => {
7729
+ window.document.execCommand("insertText", !1, T);
7730
+ }).catch((T) => {
7733
7731
  });
7734
7732
  }, $ = (C) => {
7735
- let N = 0, W = "", ee = C.replace(/\D/g, "");
7736
- ee === "" && (y = !0);
7733
+ let T = 0, W = "", ee = C.replace(/\D/g, "");
7734
+ ee === "" && (j = !0);
7737
7735
  let oe = ee.split(""), ve = "";
7738
7736
  oe.forEach((Qe) => {
7739
- y && (ve += Qe, y && (j = ("" + ve).length, g = s.replace(new RegExp("[0-9]", "g"), "_"), W = ""), j > ("" + ve).length && (y = !0, g = s.replace(new RegExp("[0-9]", "g"), "_"), W = ""));
7737
+ j && (ve += Qe, j && (k = ("" + ve).length, g = s.replace(new RegExp("[0-9]", "g"), "_"), W = ""), k > ("" + ve).length && (j = !0, g = s.replace(new RegExp("[0-9]", "g"), "_"), W = ""));
7740
7738
  });
7741
7739
  let Ie = g.replace(/\D/g, "");
7742
7740
  return Ie.length >= ee.length && (ee = Ie), { q: g.replace(/[_\d]/g, function() {
7743
- return ee.charAt(N++) || "_";
7744
- }), i: N, v: ee, f: W };
7741
+ return ee.charAt(T++) || "_";
7742
+ }), i: T, v: ee, f: W };
7745
7743
  }, R = (C) => {
7746
7744
  C.preventDefault(), navigator.clipboard.writeText(C.target.textContent.replace(/\D/g, "")).then(
7747
7745
  function() {
7748
7746
  Ce.Copy("Данные в буфер обмене");
7749
7747
  },
7750
- function(N) {
7748
+ function(T) {
7751
7749
  }
7752
7750
  );
7753
7751
  }, I = $(e), E = (C) => {
7754
- let N = $(C.target.textContent);
7755
- C.target.textContent = N.q, N.i = N.q.lastIndexOf(N.v.substr(-1)), N.i < N.q.length && N.q !== g ? N.i++ : N.i = N.q.indexOf("_"), T(N.i, C.target), t && t({ value: N.q.replace(/\D/g, ""), name: r });
7752
+ let T = $(C.target.textContent);
7753
+ C.target.textContent = T.q, T.i = T.q.lastIndexOf(T.v.substr(-1)), T.i < T.q.length && T.q !== g ? T.i++ : T.i = T.q.indexOf("_"), N(T.i, C.target), t && t({ value: T.q.replace(/\D/g, ""), name: r });
7756
7754
  }, P = (C) => {
7757
7755
  C.key === "Enter" && C.preventDefault();
7758
7756
  };
@@ -8367,7 +8365,7 @@ export {
8367
8365
  Ud as Setting,
8368
8366
  Be as Sistym,
8369
8367
  ke as Socket,
8370
- J as Store,
8368
+ X as Store,
8371
8369
  __ as Switch,
8372
8370
  Ad as Tabs,
8373
8371
  c_ as Test,