aptechka 0.14.0 → 0.15.0

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.
Files changed (83) hide show
  1. package/lib/{Animation-De9aUv3b.cjs → Animation-DI864E0i.cjs} +1 -1
  2. package/lib/{Animation-NAGXiFv5.js → Animation-w6BLTCum.js} +1 -1
  3. package/lib/{Damped-DbJKrUIf.js → Damped-DEHDEq-b.js} +1 -1
  4. package/lib/{Damped-DYJ6Z0xo.cjs → Damped-ipnDc0iX.cjs} +1 -1
  5. package/lib/Store-CDb6RMce.cjs +1 -0
  6. package/lib/Store-OTdcl6SX.js +134 -0
  7. package/lib/{Tweened-BkkD9s4n.cjs → Tweened-B1TfANfR.cjs} +1 -1
  8. package/lib/{Tweened-DOSHLCZa.js → Tweened-C52xXDLY.js} +1 -1
  9. package/lib/{Viewport-Cv4TRGiv.cjs → Viewport-BDPsnAF4.cjs} +1 -1
  10. package/lib/{Viewport-B55BvLsV.js → Viewport-taEXS8Uv.js} +1 -1
  11. package/lib/animation/index.cjs +1 -1
  12. package/lib/animation/index.js +3 -3
  13. package/lib/attribute/index.cjs +1 -1
  14. package/lib/attribute/index.js +1 -1
  15. package/lib/canvas/index.cjs +1 -7
  16. package/lib/canvas/index.js +49 -48
  17. package/lib/class-linked-status/index.cjs +1 -1
  18. package/lib/class-linked-status/index.js +1 -1
  19. package/lib/controls/index.cjs +1 -1
  20. package/lib/controls/index.js +2 -2
  21. package/lib/css-property/index.cjs +1 -1
  22. package/lib/css-property/index.js +1 -1
  23. package/lib/dev/index.cjs +1 -1
  24. package/lib/dev/index.js +1 -1
  25. package/lib/device/index.cjs +1 -1
  26. package/lib/device/index.js +1 -1
  27. package/lib/element-constructor/index.cjs +1 -1
  28. package/lib/element-constructor/index.js +845 -130
  29. package/lib/en3/index.cjs +8 -1
  30. package/lib/en3/index.js +372 -4
  31. package/lib/image/index.cjs +1 -1
  32. package/lib/image/index.js +1 -1
  33. package/lib/jss-CjccJC-K.js +21 -0
  34. package/lib/jss-GJLvaNfT.cjs +1 -0
  35. package/lib/ladder/index.cjs +1 -1
  36. package/lib/ladder/index.js +1 -1
  37. package/lib/media/index.cjs +1 -1
  38. package/lib/media/index.js +1 -1
  39. package/lib/need_redo_tweaker/index.cjs +4 -4
  40. package/lib/need_redo_tweaker/index.js +415 -421
  41. package/lib/pointer/index.cjs +1 -1
  42. package/lib/pointer/index.js +2 -2
  43. package/lib/popover/index.cjs +1 -1
  44. package/lib/popover/index.js +15 -21
  45. package/lib/scroll/index.cjs +1 -1
  46. package/lib/scroll/index.js +576 -608
  47. package/lib/sequence/index.cjs +1 -1
  48. package/lib/sequence/index.js +1 -1
  49. package/lib/source/index.cjs +2 -2
  50. package/lib/source/index.js +154 -62
  51. package/lib/store/index.cjs +1 -1
  52. package/lib/store/index.js +71 -37
  53. package/lib/utils/index.cjs +1 -1
  54. package/lib/utils/index.js +59 -56
  55. package/lib/video/index.cjs +1 -1
  56. package/lib/video/index.js +1 -1
  57. package/package.json +1 -26
  58. package/lib/Composed-C_4slJQ6.cjs +0 -1
  59. package/lib/Composed-CfWa-69I.js +0 -31
  60. package/lib/Derived-BIBU-y7Z.cjs +0 -1
  61. package/lib/Derived-Vo_RsJfi.js +0 -23
  62. package/lib/SourceManager-B6wZpXUZ.js +0 -104
  63. package/lib/SourceManager-CfHcGLUa.cjs +0 -1
  64. package/lib/Store-C46i0nvr.js +0 -137
  65. package/lib/Store-npaZHvX4.cjs +0 -1
  66. package/lib/createStylesheet-C68ja-RS.js +0 -8
  67. package/lib/createStylesheet-Csfmh-MH.cjs +0 -1
  68. package/lib/en3/helpers/index.cjs +0 -1
  69. package/lib/en3/helpers/index.js +0 -1870
  70. package/lib/en3/libs/index.cjs +0 -1
  71. package/lib/en3/libs/index.js +0 -200
  72. package/lib/en3/loaders/index.cjs +0 -1
  73. package/lib/en3/loaders/index.js +0 -1742
  74. package/lib/en3/misc/index.cjs +0 -10
  75. package/lib/en3/misc/index.js +0 -110
  76. package/lib/en3/utils/index.cjs +0 -1
  77. package/lib/en3/utils/index.js +0 -20
  78. package/lib/en3-C1fLmsjs.cjs +0 -8
  79. package/lib/en3-sK9Z-fp2.js +0 -344
  80. package/lib/tags-6_ETuR75.cjs +0 -1
  81. package/lib/tags-zft1DGBz.js +0 -833
  82. package/lib/traverseMaterials-BlZbRhgW.js +0 -29
  83. package/lib/traverseMaterials-CD_3_56D.cjs +0 -1
@@ -1,23 +1,21 @@
1
- var Xe = (a) => {
1
+ var We = (a) => {
2
2
  throw TypeError(a);
3
3
  };
4
- var Ve = (a, r, t) => r.has(a) || Xe("Cannot " + t);
5
- var e = (a, r, t) => (Ve(a, r, "read from private field"), t ? t.call(a) : r.get(a)), i = (a, r, t) => r.has(a) ? Xe("Cannot add the same private member more than once") : r instanceof WeakSet ? r.add(a) : r.set(a, t), o = (a, r, t, s) => (Ve(a, r, "write to private field"), s ? s.call(a, t) : r.set(a, t), t), d = (a, r, t) => (Ve(a, r, "access private method"), t);
6
- import { i as Ce } from "../browser-0zX67oeU.js";
7
- import { s as R, a as O, S as Ue } from "../Store-C46i0nvr.js";
8
- import { d as _e, a as yt, c as kt } from "../file-BEr-o55N.js";
9
- import { d as St } from "../function-C10DGppn.js";
10
- import { s as et } from "../gestures-D2Fdra_G.js";
4
+ var Pe = (a, n, t) => n.has(a) || We("Cannot " + t);
5
+ var e = (a, n, t) => (Pe(a, n, "read from private field"), t ? t.call(a) : n.get(a)), i = (a, n, t) => n.has(a) ? We("Cannot add the same private member more than once") : n instanceof WeakSet ? n.add(a) : n.set(a, t), o = (a, n, t, s) => (Pe(a, n, "write to private field"), s ? s.call(a, t) : n.set(a, t), t), c = (a, n, t) => (Pe(a, n, "access private method"), t);
6
+ import { i as Ee } from "../browser-0zX67oeU.js";
7
+ import { s as L, a as _, S as qe } from "../Store-OTdcl6SX.js";
8
+ import { d as Xe, a as ft, c as wt } from "../file-BEr-o55N.js";
9
+ import { d as vt } from "../function-C10DGppn.js";
10
+ import { s as Ue } from "../gestures-D2Fdra_G.js";
11
11
  import "../ticker/index.js";
12
- import { s as xt, e as u, l as tt, c as He, a as te, i as ze, f as Et, d as m, b as Z } from "../tags-zft1DGBz.js";
13
- import { c as w } from "../createStylesheet-C68ja-RS.js";
14
- import { a as Ct } from "../Viewport-B55BvLsV.js";
15
- import { createTheme as zt } from "../element-constructor/index.js";
16
- import { c as Tt } from "../math-BOBiC4TN.js";
17
- import { n as Ge, t as Lt } from "../polyfills-X6KXuHg-.js";
18
- import { elementResizer as Qe } from "../element-resizer/index.js";
19
- import { g as Rt } from "../style-j2TwriJ_.js";
20
- const l = zt(
12
+ import { createTheme as bt, style as yt, createStylesheet as w, element as u, label as Ge, span as $e, slot as te, input as Ce, a as kt, div as g, button as O } from "../element-constructor/index.js";
13
+ import { a as St } from "../Viewport-taEXS8Uv.js";
14
+ import { c as xt } from "../math-BOBiC4TN.js";
15
+ import { n as Je, t as Et } from "../polyfills-X6KXuHg-.js";
16
+ import { elementResizer as Ye } from "../element-resizer/index.js";
17
+ import { g as Ct } from "../style-j2TwriJ_.js";
18
+ const h = bt(
21
19
  {
22
20
  colorMain: "#1c1c1c",
23
21
  colorMainAux: "#282828",
@@ -28,13 +26,13 @@ const l = zt(
28
26
  },
29
27
  { prefix: "aptechka-" }
30
28
  );
31
- if (Ce) {
32
- const a = xt({
33
- ":root": l.style
29
+ if (Ee) {
30
+ const a = yt({
31
+ ":root": h.style
34
32
  }).node;
35
33
  a.setAttribute("data-permanent", ""), document.head.appendChild(a);
36
34
  }
37
- const st = '<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 24 24"><path fill-rule="evenodd" d="M20.536 3.464C19.07 2 16.714 2 12 2C7.286 2 4.929 2 3.464 3.464C2 4.93 2 7.286 2 12c0 4.714 0 7.071 1.464 8.535C4.93 22 7.286 22 12 22c4.714 0 7.071 0 8.535-1.465C22 19.072 22 16.714 22 12s0-7.071-1.465-8.536M16.75 12a.75.75 0 0 1-.75.75H9.81l1.72 1.72a.75.75 0 1 1-1.06 1.06l-3-3a.75.75 0 0 1 0-1.06l3-3a.75.75 0 1 1 1.06 1.06l-1.72 1.72H16a.75.75 0 0 1 .75.75" clip-rule="evenodd"/></svg>', it = '<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 24 24"><path d="M15.24 2h-3.894c-1.764 0-3.162 0-4.255.148c-1.126.152-2.037.472-2.755 1.193c-.719.721-1.038 1.636-1.189 2.766C3 7.205 3 8.608 3 10.379v5.838c0 1.508.92 2.8 2.227 3.342c-.067-.91-.067-2.185-.067-3.247v-5.01c0-1.281 0-2.386.118-3.27c.127-.948.413-1.856 1.147-2.593c.734-.737 1.639-1.024 2.583-1.152c.88-.118 1.98-.118 3.257-.118h3.07c1.276 0 2.374 0 3.255.118A3.601 3.601 0 0 0 15.24 2Z"/><path d="M6.6 11.397c0-2.726 0-4.089.844-4.936c.843-.847 2.2-.847 4.916-.847h2.88c2.715 0 4.073 0 4.917.847c.843.847.843 2.21.843 4.936v4.82c0 2.726 0 4.089-.843 4.936c-.844.847-2.202.847-4.917.847h-2.88c-2.715 0-4.073 0-4.916-.847c-.844-.847-.844-2.21-.844-4.936v-4.82Z"/></svg>', Mt = '<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 24 24"><path fill-rule="evenodd" d="M2 12c0-4.714 0-7.071 1.464-8.536C4.93 2 7.286 2 12 2c4.714 0 7.071 0 8.535 1.464C22 4.93 22 7.286 22 12c0 4.714 0 7.071-1.465 8.535C19.072 22 16.714 22 12 22s-7.071 0-8.536-1.465C2 19.072 2 16.714 2 12Zm10-5.75a.75.75 0 0 1 .75.75v5.19l1.72-1.72a.75.75 0 1 1 1.06 1.06l-3 3a.75.75 0 0 1-1.06 0l-3-3a.75.75 0 1 1 1.06-1.06l1.72 1.72V7a.75.75 0 0 1 .75-.75Zm-4 10a.75.75 0 0 0 0 1.5h8a.75.75 0 0 0 0-1.5H8Z" clip-rule="evenodd"/></svg>', Ft = '<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 24 24"><path fill-rule="evenodd" d="M2 12c0-4.714 0-7.071 1.464-8.536C4.93 2 7.286 2 12 2c4.714 0 7.071 0 8.535 1.464C22 4.93 22 7.286 22 12c0 4.714 0 7.071-1.465 8.535C19.072 22 16.714 22 12 22s-7.071 0-8.536-1.465C2 19.072 2 16.714 2 12Zm10 5.75a.75.75 0 0 0 .75-.75v-5.19l1.72 1.72a.75.75 0 1 0 1.06-1.06l-3-3a.75.75 0 0 0-1.06 0l-3 3a.75.75 0 1 0 1.06 1.06l1.72-1.72V17c0 .414.336.75.75.75Zm-4-10a.75.75 0 0 1 0-1.5h8a.75.75 0 0 1 0 1.5H8Z" clip-rule="evenodd"/></svg>', nt = `<svg
35
+ const Qe = '<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 24 24"><path fill-rule="evenodd" d="M20.536 3.464C19.07 2 16.714 2 12 2C7.286 2 4.929 2 3.464 3.464C2 4.93 2 7.286 2 12c0 4.714 0 7.071 1.464 8.535C4.93 22 7.286 22 12 22c4.714 0 7.071 0 8.535-1.465C22 19.072 22 16.714 22 12s0-7.071-1.465-8.536M16.75 12a.75.75 0 0 1-.75.75H9.81l1.72 1.72a.75.75 0 1 1-1.06 1.06l-3-3a.75.75 0 0 1 0-1.06l3-3a.75.75 0 1 1 1.06 1.06l-1.72 1.72H16a.75.75 0 0 1 .75.75" clip-rule="evenodd"/></svg>', et = '<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 24 24"><path d="M15.24 2h-3.894c-1.764 0-3.162 0-4.255.148c-1.126.152-2.037.472-2.755 1.193c-.719.721-1.038 1.636-1.189 2.766C3 7.205 3 8.608 3 10.379v5.838c0 1.508.92 2.8 2.227 3.342c-.067-.91-.067-2.185-.067-3.247v-5.01c0-1.281 0-2.386.118-3.27c.127-.948.413-1.856 1.147-2.593c.734-.737 1.639-1.024 2.583-1.152c.88-.118 1.98-.118 3.257-.118h3.07c1.276 0 2.374 0 3.255.118A3.601 3.601 0 0 0 15.24 2Z"/><path d="M6.6 11.397c0-2.726 0-4.089.844-4.936c.843-.847 2.2-.847 4.916-.847h2.88c2.715 0 4.073 0 4.917.847c.843.847.843 2.21.843 4.936v4.82c0 2.726 0 4.089-.843 4.936c-.844.847-2.202.847-4.917.847h-2.88c-2.715 0-4.073 0-4.916-.847c-.844-.847-.844-2.21-.844-4.936v-4.82Z"/></svg>', zt = '<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 24 24"><path fill-rule="evenodd" d="M2 12c0-4.714 0-7.071 1.464-8.536C4.93 2 7.286 2 12 2c4.714 0 7.071 0 8.535 1.464C22 4.93 22 7.286 22 12c0 4.714 0 7.071-1.465 8.535C19.072 22 16.714 22 12 22s-7.071 0-8.536-1.465C2 19.072 2 16.714 2 12Zm10-5.75a.75.75 0 0 1 .75.75v5.19l1.72-1.72a.75.75 0 1 1 1.06 1.06l-3 3a.75.75 0 0 1-1.06 0l-3-3a.75.75 0 1 1 1.06-1.06l1.72 1.72V7a.75.75 0 0 1 .75-.75Zm-4 10a.75.75 0 0 0 0 1.5h8a.75.75 0 0 0 0-1.5H8Z" clip-rule="evenodd"/></svg>', Tt = '<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 24 24"><path fill-rule="evenodd" d="M2 12c0-4.714 0-7.071 1.464-8.536C4.93 2 7.286 2 12 2c4.714 0 7.071 0 8.535 1.464C22 4.93 22 7.286 22 12c0 4.714 0 7.071-1.465 8.535C19.072 22 16.714 22 12 22s-7.071 0-8.536-1.465C2 19.072 2 16.714 2 12Zm10 5.75a.75.75 0 0 0 .75-.75v-5.19l1.72 1.72a.75.75 0 1 0 1.06-1.06l-3-3a.75.75 0 0 0-1.06 0l-3 3a.75.75 0 1 0 1.06 1.06l1.72-1.72V17c0 .414.336.75.75.75Zm-4-10a.75.75 0 0 1 0-1.5h8a.75.75 0 0 1 0 1.5H8Z" clip-rule="evenodd"/></svg>', tt = `<svg
38
36
  xmlns="http://www.w3.org/2000/svg"
39
37
  width="32"
40
38
  height="32"
@@ -43,57 +41,57 @@ const st = '<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewB
43
41
  <path d="m12.37 15.835l6.43-6.63C19.201 8.79 18.958 8 18.43 8H5.57c-.528 0-.771.79-.37 1.205l6.43 6.63c.213.22.527.22.74 0Z" />
44
42
  </svg>
45
43
  `;
46
- var P, b, C;
47
- class It {
44
+ var A, y, C;
45
+ class Lt {
48
46
  constructor() {
49
- i(this, P);
50
- i(this, b);
47
+ i(this, A);
48
+ i(this, y);
51
49
  i(this, C);
52
- this.scrollValue = 0, o(this, P, ""), o(this, b, []), o(this, C, {}), o(this, P, R.name + "-tweaker");
50
+ this.scrollValue = 0, o(this, A, ""), o(this, y, []), o(this, C, {}), o(this, A, L.name + "-tweaker");
53
51
  }
54
- openPanel(r) {
55
- e(this, b).includes(r) || e(this, b).push(r);
52
+ openPanel(n) {
53
+ e(this, y).includes(n) || e(this, y).push(n);
56
54
  }
57
- closePanel(r) {
58
- o(this, b, e(this, b).filter((t) => t !== r));
55
+ closePanel(n) {
56
+ o(this, y, e(this, y).filter((t) => t !== n));
59
57
  }
60
- isPanelOpened(r) {
61
- return e(this, b).includes(r);
58
+ isPanelOpened(n) {
59
+ return e(this, y).includes(n);
62
60
  }
63
- changedSizes(r) {
64
- return e(this, C)[r];
61
+ changedSizes(n) {
62
+ return e(this, C)[n];
65
63
  }
66
- changeSize(r, t) {
67
- t ? e(this, C)[r] = t : delete e(this, C)[r];
64
+ changeSize(n, t) {
65
+ t ? e(this, C)[n] = t : delete e(this, C)[n];
68
66
  }
69
67
  save() {
70
- const r = {
71
- openedPanels: e(this, b),
68
+ const n = {
69
+ openedPanels: e(this, y),
72
70
  changedSizes: e(this, C),
73
71
  scrollValue: this.scrollValue
74
72
  };
75
- localStorage.setItem(e(this, P), JSON.stringify(r)), R.saveState();
73
+ localStorage.setItem(e(this, A), JSON.stringify(n)), L.saveState();
76
74
  }
77
75
  load() {
78
- R.loadState();
79
- const r = localStorage.getItem(e(this, P));
80
- if (r)
76
+ L.loadState();
77
+ const n = localStorage.getItem(e(this, A));
78
+ if (n)
81
79
  try {
82
- const t = JSON.parse(r);
83
- t.openedPanels && o(this, b, t.openedPanels), t.changedSizes && o(this, C, t.changedSizes), t.scrollValue && (this.scrollValue = t.scrollValue);
80
+ const t = JSON.parse(n);
81
+ t.openedPanels && o(this, y, t.openedPanels), t.changedSizes && o(this, C, t.changedSizes), t.scrollValue && (this.scrollValue = t.scrollValue);
84
82
  } catch (t) {
85
83
  console.error(t);
86
84
  }
87
85
  }
88
86
  }
89
- P = new WeakMap(), b = new WeakMap(), C = new WeakMap();
90
- const v = new It(), At = '<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 256 256"><path d="m243.33 90.91l-128.41 128.4a16 16 0 0 1-22.63 0l-71.62-72a16 16 0 0 1 0-22.61l24-24a16 16 0 0 1 22.57-.06l36.64 35.27l.11.11l92.73-91.37a16 16 0 0 1 22.58 0l24 23.56a16 16 0 0 1 .03 22.7Z"/></svg>', Pt = w({
87
+ A = new WeakMap(), y = new WeakMap(), C = new WeakMap();
88
+ const v = new Lt(), Rt = '<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 256 256"><path d="m243.33 90.91l-128.41 128.4a16 16 0 0 1-22.63 0l-71.62-72a16 16 0 0 1 0-22.61l24-24a16 16 0 0 1 22.57-.06l36.64 35.27l.11.11l92.73-91.37a16 16 0 0 1 22.58 0l24 23.56a16 16 0 0 1 .03 22.7Z"/></svg>', Mt = w({
91
89
  ":host": {
92
90
  position: "relative",
93
91
  display: "inline-block",
94
92
  width: "30px",
95
93
  height: "30px",
96
- borderRadius: l.borderRadiusSmall.var,
94
+ borderRadius: h.borderRadiusSmall.var,
97
95
  overflow: "hidden"
98
96
  },
99
97
  "label, .fake": {
@@ -116,12 +114,12 @@ const v = new It(), At = '<svg xmlns="http://www.w3.org/2000/svg" width="32" hei
116
114
  display: "flex",
117
115
  alignItems: "center",
118
116
  justifyContent: "center",
119
- backgroundColor: l.colorMainAux.var
117
+ backgroundColor: h.colorMainAux.var
120
118
  },
121
119
  ".default svg": {
122
120
  width: "60%",
123
121
  height: "60%",
124
- fill: l.colorFont.var,
122
+ fill: h.colorFont.var,
125
123
  opacity: 0,
126
124
  transition: "var(--duration-short)"
127
125
  },
@@ -129,35 +127,35 @@ const v = new It(), At = '<svg xmlns="http://www.w3.org/2000/svg" width="32" hei
129
127
  opacity: 1
130
128
  }
131
129
  });
132
- var M, K, $, ne;
133
- const We = class We extends HTMLElement {
130
+ var R, Z, P, ie;
131
+ const Ke = class Ke extends HTMLElement {
134
132
  constructor() {
135
133
  super();
136
- i(this, $);
137
- i(this, M, null);
138
- i(this, K);
139
- this.attachShadow({ mode: "open" }).adoptedStyleSheets.push(Pt), o(this, K, this.attachInternals()), u(this, {
140
- children: tt({
134
+ i(this, P);
135
+ i(this, R, null);
136
+ i(this, Z);
137
+ this.attachShadow({ mode: "open" }).adoptedStyleSheets.push(Mt), o(this, Z, this.attachInternals()), u(this, {
138
+ children: Ge({
141
139
  children: [
142
- He({
140
+ $e({
143
141
  class: "fake",
144
142
  children: te({
145
143
  children: [
146
- He({
144
+ $e({
147
145
  class: "default",
148
- children: [At]
146
+ children: [Rt]
149
147
  })
150
148
  ]
151
149
  })
152
150
  }),
153
- ze({
151
+ Ce({
154
152
  ref: (s) => {
155
- o(this, M, s), s.required = this.hasAttribute("required"), s.value = this.getAttribute("value") || "", s.checked = this.hasAttribute("checked"), s.name = this.getAttribute("name") || "", d(this, $, ne).call(this);
153
+ o(this, R, s), s.required = this.hasAttribute("required"), s.value = this.getAttribute("value") || "", s.checked = this.hasAttribute("checked"), s.name = this.getAttribute("name") || "", c(this, P, ie).call(this);
156
154
  },
157
155
  class: "real",
158
156
  type: "checkbox",
159
157
  onChange: () => {
160
- d(this, $, ne).call(this), this.dispatchEvent(
158
+ c(this, P, ie).call(this), this.dispatchEvent(
161
159
  new Event("change", {
162
160
  composed: !0
163
161
  })
@@ -169,47 +167,47 @@ const We = class We extends HTMLElement {
169
167
  });
170
168
  }
171
169
  get checked() {
172
- return e(this, M).checked;
170
+ return e(this, R).checked;
173
171
  }
174
172
  set checked(t) {
175
- e(this, M).checked = t, d(this, $, ne).call(this);
173
+ e(this, R).checked = t, c(this, P, ie).call(this);
176
174
  }
177
175
  get value() {
178
- return e(this, M).value;
176
+ return e(this, R).value;
179
177
  }
180
178
  set value(t) {
181
- e(this, M).value = t, d(this, $, ne).call(this);
179
+ e(this, R).value = t, c(this, P, ie).call(this);
182
180
  }
183
181
  };
184
- M = new WeakMap(), K = new WeakMap(), $ = new WeakSet(), ne = function() {
185
- this.checked ? e(this, K).setFormValue(this.value) : e(this, K).setFormValue(null), this.classList.toggle("checked", this.checked);
186
- }, We.formAssociated = !0;
187
- let Ne = We;
188
- customElements.get("e-checkbox") || customElements.define("e-checkbox", Ne);
189
- var F;
182
+ R = new WeakMap(), Z = new WeakMap(), P = new WeakSet(), ie = function() {
183
+ this.checked ? e(this, Z).setFormValue(this.value) : e(this, Z).setFormValue(null), this.classList.toggle("checked", this.checked);
184
+ }, Ke.formAssociated = !0;
185
+ let Ve = Ke;
186
+ customElements.get("e-checkbox") || customElements.define("e-checkbox", Ve);
187
+ var M;
190
188
  class se extends HTMLElement {
191
189
  constructor(...t) {
192
190
  super();
193
- i(this, F);
194
- o(this, F, t);
191
+ i(this, M);
192
+ o(this, M, t);
195
193
  }
196
194
  addStore(t) {
197
- e(this, F).push(t);
195
+ e(this, M).push(t);
198
196
  }
199
197
  get firstStore() {
200
- return e(this, F)[0];
198
+ return e(this, M)[0];
201
199
  }
202
200
  get stores() {
203
- return e(this, F);
201
+ return e(this, M);
204
202
  }
205
203
  updateStores(t) {
206
- e(this, F).forEach((s) => {
204
+ e(this, M).forEach((s) => {
207
205
  s.current = t;
208
206
  });
209
207
  }
210
208
  }
211
- F = new WeakMap();
212
- const $t = w({
209
+ M = new WeakMap();
210
+ const Ft = w({
213
211
  ":host": {
214
212
  width: "100%",
215
213
  display: "inline-flex",
@@ -219,20 +217,20 @@ const $t = w({
219
217
  "--size": "calc(var(--height-input) * 0.8)",
220
218
  width: "var(--size)",
221
219
  height: "var(--size)",
222
- borderRadius: l.borderRadiusSmall.var
220
+ borderRadius: h.borderRadiusSmall.var
223
221
  }
224
222
  });
225
- class rt extends se {
226
- constructor(...r) {
227
- super(...r), this.attachShadow({ mode: "open" }).adoptedStyleSheets.push($t), u(this, {
223
+ class st extends se {
224
+ constructor(...n) {
225
+ super(...n), this.attachShadow({ mode: "open" }).adoptedStyleSheets.push(Ft), u(this, {
228
226
  children: [
229
227
  u("e-checkbox", {
230
228
  onChange: (s) => {
231
229
  this.updateStores(s.currentTarget.checked);
232
230
  },
233
231
  ref: (s) => {
234
- this.firstStore.subscribe((n) => {
235
- s.checked = n.current;
232
+ this.firstStore.subscribe((r) => {
233
+ s.checked = r.current;
236
234
  });
237
235
  }
238
236
  })
@@ -242,9 +240,9 @@ class rt extends se {
242
240
  }
243
241
  customElements.get("e-tweaker-boolean-manager") || customElements.define(
244
242
  "e-tweaker-boolean-manager",
245
- rt
243
+ st
246
244
  );
247
- const Vt = w({
245
+ const It = w({
248
246
  ":host": {
249
247
  width: "100%",
250
248
  display: "inline-flex",
@@ -255,7 +253,7 @@ const Vt = w({
255
253
  height: "var(--height-input)",
256
254
  padding: "0",
257
255
  background: "none",
258
- borderRadius: l.borderRadius.var,
256
+ borderRadius: h.borderRadius.var,
259
257
  border: "none",
260
258
  blockSize: "unset"
261
259
  },
@@ -263,15 +261,15 @@ const Vt = w({
263
261
  boxSizing: "border-box",
264
262
  padding: "0px",
265
263
  border: "none",
266
- borderRadius: l.borderRadius.var,
264
+ borderRadius: h.borderRadius.var,
267
265
  height: "calc(var(--height-input) * 0.93)"
268
266
  }
269
267
  });
270
- class ot extends se {
271
- constructor(...r) {
272
- super(...r), this.attachShadow({ mode: "open" }).adoptedStyleSheets.push(Vt), u(this, {
268
+ class it extends se {
269
+ constructor(...n) {
270
+ super(...n), this.attachShadow({ mode: "open" }).adoptedStyleSheets.push(It), u(this, {
273
271
  children: [
274
- ze({
272
+ Ce({
275
273
  type: "color",
276
274
  value: this.firstStore,
277
275
  onInput: (s) => {
@@ -282,29 +280,29 @@ class ot extends se {
282
280
  });
283
281
  }
284
282
  }
285
- customElements.get("e-tweaker-color-manager") || customElements.define("e-tweaker-color-manager", ot);
286
- const Ht = w({
283
+ customElements.get("e-tweaker-color-manager") || customElements.define("e-tweaker-color-manager", it);
284
+ const At = w({
287
285
  a: {
288
286
  color: "inherit",
289
287
  fontSize: "var(--font-size-small)"
290
288
  }
291
289
  });
292
- class at extends se {
293
- constructor(...r) {
294
- var s, n;
295
- super(...r), this.attachShadow({ mode: "open" }).adoptedStyleSheets.push(Ht), u(this, {
290
+ class nt extends se {
291
+ constructor(...n) {
292
+ var s;
293
+ super(...n), this.attachShadow({ mode: "open" }).adoptedStyleSheets.push(At), u(this, {
296
294
  children: [
297
- Et({
295
+ kt({
298
296
  href: this.firstStore,
299
- target: (n = (s = this.firstStore.passport) == null ? void 0 : s.manager) != null && n.sameWindow ? "_self" : "_blank",
297
+ target: (s = this.firstStore.__manager) != null && s.sameWindow ? "_self" : "_blank",
300
298
  children: this.firstStore
301
299
  })
302
300
  ]
303
301
  });
304
302
  }
305
303
  }
306
- customElements.get("e-tweaker-link-manager") || customElements.define("e-tweaker-link-manager", at);
307
- const Nt = w({
304
+ customElements.get("e-tweaker-link-manager") || customElements.define("e-tweaker-link-manager", nt);
305
+ const Pt = w({
308
306
  ":host": {
309
307
  width: "100%",
310
308
  display: "flex",
@@ -329,7 +327,7 @@ const Nt = w({
329
327
  margin: "0",
330
328
  padding: "0 var(--gap-small)",
331
329
  backgroundColor: "rgba(255, 255, 255, 0.1)",
332
- borderRadius: l.borderRadius.var
330
+ borderRadius: h.borderRadius.var
333
331
  },
334
332
  ".drag": {
335
333
  position: "relative",
@@ -345,12 +343,12 @@ const Nt = w({
345
343
  width: "100%",
346
344
  zIndex: "-1",
347
345
  height: "1px",
348
- borderBottom: `1px solid ${l.colorFont.var}`,
346
+ borderBottom: `1px solid ${h.colorFont.var}`,
349
347
  transform: "translateY(-50%)",
350
348
  opacity: "0.3"
351
349
  },
352
350
  ":host(.infinite) .drag::before": {
353
- borderBottom: `1px dashed ${l.colorFont.var}`
351
+ borderBottom: `1px dashed ${h.colorFont.var}`
354
352
  },
355
353
  ".drag-knob": {
356
354
  "--size": "calc(var(--height-input) * 0.4)",
@@ -360,101 +358,95 @@ const Nt = w({
360
358
  ".drag-knob-inner": {
361
359
  width: "100%",
362
360
  height: "100%",
363
- backgroundColor: l.colorFont.var,
364
- borderRadius: l.borderRadiusSmall.var,
361
+ backgroundColor: h.colorFont.var,
362
+ borderRadius: h.borderRadiusSmall.var,
365
363
  transition: "opacity var(--duration-short)"
366
364
  },
367
365
  ":host(.infinite) .grabbing .drag-knob-inner": {
368
366
  opacity: 0.3
369
367
  }
370
368
  });
371
- var V, B, j, z, I, re, oe, E, H, ae, le, p, D, De, Oe, Le, he;
372
- class lt extends se {
369
+ var $, K, B, z, F, ne, re, E, V, oe, ae, p, D, He, Ne, ze, le;
370
+ class rt extends se {
373
371
  constructor(...t) {
374
- var n, h, c, g, x, A, ie, Je;
372
+ var r, l, d, m;
375
373
  super(...t);
376
374
  i(this, p);
377
- i(this, V, []);
378
- i(this, B, []);
379
- i(this, j);
375
+ i(this, $, []);
376
+ i(this, K, []);
377
+ i(this, B);
380
378
  i(this, z);
381
- i(this, I);
379
+ i(this, F);
380
+ i(this, ne);
382
381
  i(this, re);
383
- i(this, oe);
384
382
  i(this, E);
385
- i(this, H, !1);
386
- i(this, ae, (t) => {
387
- const s = d(this, p, D).call(this, t);
388
- return s.map((n, h) => {
389
- const c = typeof n == "string" ? parseFloat(n) || e(this, z) : n, g = Tt(c, e(this, z), e(this, I)), x = Lt(g, e(this, j));
390
- s[h] = x;
391
- }), e(this, oe) === "number" ? s[0] : s;
383
+ i(this, V, !1);
384
+ i(this, oe, (t) => {
385
+ const s = c(this, p, D).call(this, t);
386
+ return s.map((r, l) => {
387
+ const d = typeof r == "string" ? parseFloat(r) || e(this, z) : r, m = xt(d, e(this, z), e(this, F)), N = Et(m, e(this, B));
388
+ s[l] = N;
389
+ }), e(this, re) === "number" ? s[0] : s;
392
390
  });
393
- i(this, le, () => {
394
- d(this, p, D).call(this).map((t, s) => {
395
- const n = e(this, V)[s];
396
- n && (n.value = (t || 0).toString());
397
- }), d(this, p, De).call(this);
391
+ i(this, ae, () => {
392
+ c(this, p, D).call(this).map((t, s) => {
393
+ const r = e(this, $)[s];
394
+ r && (r.value = (t || 0).toString());
395
+ }), c(this, p, He).call(this);
398
396
  });
399
- i(this, he, () => {
400
- d(this, p, De).call(this);
397
+ i(this, le, () => {
398
+ c(this, p, He).call(this);
401
399
  });
402
- this.attachShadow({ mode: "open" }).adoptedStyleSheets.push(Nt), o(this, z, Ge(
403
- (h = (n = this.firstStore.passport) == null ? void 0 : n.manager) == null ? void 0 : h.min,
404
- -1 / 0
405
- )), o(this, I, Ge(
406
- (g = (c = this.firstStore.passport) == null ? void 0 : c.manager) == null ? void 0 : g.max,
407
- 1 / 0
408
- )), o(this, j, ((A = (x = this.firstStore.passport) == null ? void 0 : x.manager) == null ? void 0 : A.step) || 0.01), o(this, re, ((Je = (ie = this.firstStore.passport) == null ? void 0 : ie.manager) == null ? void 0 : Je.ease) || 1), o(this, oe, Array.isArray(this.firstStore.current) ? "array" : "number"), o(this, E, isFinite(e(this, I)) && isFinite(e(this, z))), u(this, {
400
+ this.attachShadow({ mode: "open" }).adoptedStyleSheets.push(Pt), o(this, z, Je((r = this.firstStore.__manager) == null ? void 0 : r.min, -1 / 0)), o(this, F, Je((l = this.firstStore.__manager) == null ? void 0 : l.max, 1 / 0)), o(this, B, ((d = this.firstStore.__manager) == null ? void 0 : d.step) || 0.01), o(this, ne, ((m = this.firstStore.__manager) == null ? void 0 : m.ease) || 1), o(this, re, Array.isArray(this.firstStore.current) ? "array" : "number"), o(this, E, isFinite(e(this, F)) && isFinite(e(this, z))), u(this, {
409
401
  class: e(this, E) ? "" : "infinite",
410
- children: d(this, p, D).call(this).map((pt, Te) => m({
402
+ children: c(this, p, D).call(this).map((N, I) => g({
411
403
  class: "inputs-wrapper",
412
404
  children: [
413
- ze({
405
+ Ce({
414
406
  type: "number",
415
- step: e(this, j),
407
+ step: e(this, B),
416
408
  min: e(this, z),
417
- max: e(this, I),
418
- ref: (T) => e(this, V).push(T),
419
- value: pt,
409
+ max: e(this, F),
410
+ ref: (b) => e(this, $).push(b),
411
+ value: N,
420
412
  onChange: () => {
421
413
  this.updateStores(
422
- e(this, V).map((T) => parseFloat(T.value))
414
+ e(this, $).map((b) => parseFloat(b.value))
423
415
  );
424
416
  }
425
417
  }),
426
- m({
418
+ g({
427
419
  class: "drag",
428
420
  children: [
429
- m({
421
+ g({
430
422
  class: "drag-knob",
431
- ref: (T) => e(this, B).push(T),
432
- onPointerdown: (T) => {
433
- T.preventDefault(), o(this, H, !0);
434
- const Ae = d(this, p, D).call(this), gt = Ae[Te], L = e(this, B)[Te], mt = e(this, V)[Te];
435
- if (L && mt) {
436
- const Pe = L.parentElement, ft = d(this, p, Oe).call(this);
437
- Pe.classList.add("grabbing"), et(
438
- ($e) => {
439
- const Ye = $e.x - T.x, wt = e(this, E) ? Pe.offsetWidth / (ft || 1) : 1, vt = gt + Ye / wt * e(this, re);
440
- if (Ae[Te] = vt, !e(this, E)) {
441
- const bt = d(this, p, Le).call(this, L, 0);
442
- L.style.transform = `translateX(${bt + Ye}px)`;
423
+ ref: (b) => e(this, K).push(b),
424
+ onPointerdown: (b) => {
425
+ b.preventDefault(), o(this, V, !0);
426
+ const Fe = c(this, p, D).call(this), ct = Fe[I], T = e(this, K)[I], dt = e(this, $)[I];
427
+ if (T && dt) {
428
+ const Ie = T.parentElement, ut = c(this, p, Ne).call(this);
429
+ Ie.classList.add("grabbing"), Ue(
430
+ (Ae) => {
431
+ const je = Ae.x - b.x, pt = e(this, E) ? Ie.offsetWidth / (ut || 1) : 1, gt = ct + je / pt * e(this, ne);
432
+ if (Fe[I] = gt, !e(this, E)) {
433
+ const mt = c(this, p, ze).call(this, T, 0);
434
+ T.style.transform = `translateX(${mt + je}px)`;
443
435
  }
444
- this.updateStores([...Ae]);
436
+ this.updateStores([...Fe]);
445
437
  },
446
438
  () => {
447
- if (o(this, H, !1), !e(this, E)) {
448
- const $e = d(this, p, Le).call(this, L, 0);
449
- L.style.transition = "transform 0.1s", L.style.transform = `translateX(${$e}px)`, Pe.classList.remove("grabbing"), setTimeout(() => {
450
- L.style.transition = "";
439
+ if (o(this, V, !1), !e(this, E)) {
440
+ const Ae = c(this, p, ze).call(this, T, 0);
441
+ T.style.transition = "transform 0.1s", T.style.transform = `translateX(${Ae}px)`, Ie.classList.remove("grabbing"), setTimeout(() => {
442
+ T.style.transition = "";
451
443
  }, 100);
452
444
  }
453
445
  }
454
446
  );
455
447
  }
456
448
  },
457
- children: m({
449
+ children: g({
458
450
  class: "drag-knob-inner"
459
451
  })
460
452
  })
@@ -465,30 +457,30 @@ class lt extends se {
465
457
  });
466
458
  }
467
459
  connectedCallback() {
468
- this.firstStore.addMiddleware(e(this, ae)), this.firstStore.subscribe(e(this, le)), Qe.subscribe(this, e(this, he));
460
+ this.firstStore.addMiddleware(e(this, oe)), this.firstStore.subscribe(e(this, ae)), Ye.subscribe(this, e(this, le));
469
461
  }
470
462
  disconnectedCallback() {
471
- this.firstStore.removeMiddleware(e(this, ae)), this.firstStore.unsubscribe(e(this, le)), Qe.unsubscribe(e(this, he));
463
+ this.firstStore.removeMiddleware(e(this, oe)), this.firstStore.unsubscribe(e(this, ae)), Ye.unsubscribe(e(this, le));
472
464
  }
473
465
  }
474
- V = new WeakMap(), B = new WeakMap(), j = new WeakMap(), z = new WeakMap(), I = new WeakMap(), re = new WeakMap(), oe = new WeakMap(), E = new WeakMap(), H = new WeakMap(), ae = new WeakMap(), le = new WeakMap(), p = new WeakSet(), D = function(t = this.firstStore.current) {
466
+ $ = new WeakMap(), K = new WeakMap(), B = new WeakMap(), z = new WeakMap(), F = new WeakMap(), ne = new WeakMap(), re = new WeakMap(), E = new WeakMap(), V = new WeakMap(), oe = new WeakMap(), ae = new WeakMap(), p = new WeakSet(), D = function(t = this.firstStore.current) {
475
467
  return Array.isArray(t) ? t : [t];
476
- }, De = function() {
477
- d(this, p, D).call(this).map((t, s) => {
478
- const n = e(this, B)[s];
479
- if (n && (!e(this, H) || e(this, H) && e(this, E))) {
480
- const h = d(this, p, Le).call(this, n, t);
481
- n.style.transform = `translateX(${h}px)`;
468
+ }, He = function() {
469
+ c(this, p, D).call(this).map((t, s) => {
470
+ const r = e(this, K)[s];
471
+ if (r && (!e(this, V) || e(this, V) && e(this, E))) {
472
+ const l = c(this, p, ze).call(this, r, t);
473
+ r.style.transform = `translateX(${l}px)`;
482
474
  }
483
475
  });
484
- }, Oe = function() {
485
- return e(this, E) ? e(this, I) - e(this, z) : 0;
486
- }, Le = function(t, s) {
487
- const n = t.parentElement, h = d(this, p, Oe).call(this), c = h ? s / h : 0.5;
488
- return (n.offsetWidth - t.offsetWidth) * c;
489
- }, he = new WeakMap();
490
- customElements.get("e-tweaker-number-manager") || customElements.define("e-tweaker-number-manager", lt);
491
- const Dt = w({
476
+ }, Ne = function() {
477
+ return e(this, E) ? e(this, F) - e(this, z) : 0;
478
+ }, ze = function(t, s) {
479
+ const r = t.parentElement, l = c(this, p, Ne).call(this), d = l ? s / l : 0.5;
480
+ return (r.offsetWidth - t.offsetWidth) * d;
481
+ }, le = new WeakMap();
482
+ customElements.get("e-tweaker-number-manager") || customElements.define("e-tweaker-number-manager", rt);
483
+ const $t = w({
492
484
  ":host": {
493
485
  position: "relative"
494
486
  },
@@ -523,109 +515,109 @@ const Dt = w({
523
515
  paddingTop: "var(--gap, 0px)"
524
516
  }
525
517
  });
526
- var W, q, y, N, J, Y, Me, ce, Ke;
527
- const qe = class qe extends HTMLElement {
518
+ var j, W, k, H, q, J, Le, he, _e;
519
+ const Be = class Be extends HTMLElement {
528
520
  constructor() {
529
521
  super();
530
- i(this, ce);
531
- i(this, W, null);
532
- i(this, q, "");
533
- i(this, y, null);
534
- i(this, N, !1);
535
- i(this, J);
536
- i(this, Y, null);
537
- i(this, Me, () => {
538
- _e(this);
522
+ i(this, he);
523
+ i(this, j, null);
524
+ i(this, W, "");
525
+ i(this, k, null);
526
+ i(this, H, !1);
527
+ i(this, q);
528
+ i(this, J, null);
529
+ i(this, Le, () => {
530
+ Xe(this);
539
531
  });
540
- Ce && (this.attachShadow({ mode: "open" }).adoptedStyleSheets.push(Dt), o(this, W, this.attachInternals()), o(this, Y, new ResizeObserver(e(this, Me))), u(this, {
532
+ Ee && (this.attachShadow({ mode: "open" }).adoptedStyleSheets.push($t), o(this, j, this.attachInternals()), o(this, J, new ResizeObserver(e(this, Le))), u(this, {
541
533
  children: [
542
- Z({
534
+ O({
543
535
  class: "head",
544
536
  children: te({ name: "head" }),
545
537
  onClick: () => {
546
538
  this.opened ? this.close() : this.open();
547
539
  }
548
540
  }),
549
- m({
541
+ g({
550
542
  class: "body",
551
543
  style: {
552
544
  height: "0px"
553
545
  },
554
- children: m({
546
+ children: g({
555
547
  class: "body-inner",
556
548
  children: te()
557
549
  }),
558
550
  ref: (s) => {
559
- o(this, y, s);
551
+ o(this, k, s);
560
552
  }
561
553
  })
562
554
  ]
563
555
  }));
564
556
  }
565
557
  get value() {
566
- return e(this, q);
558
+ return e(this, W);
567
559
  }
568
560
  set value(t) {
569
- o(this, q, t), this.dispatchEvent(
561
+ o(this, W, t), this.dispatchEvent(
570
562
  new Event("change", {
571
563
  bubbles: !0,
572
564
  composed: !0
573
565
  })
574
- ), e(this, W).setFormValue(e(this, q));
566
+ ), e(this, j).setFormValue(e(this, W));
575
567
  }
576
568
  get internals() {
577
- return e(this, W);
569
+ return e(this, j);
578
570
  }
579
571
  get opened() {
580
- return e(this, N);
572
+ return e(this, H);
581
573
  }
582
574
  open() {
583
- clearTimeout(e(this, J)), o(this, N, !0), e(this, y).style.display = "grid", this.classList.add("triggered"), setTimeout(() => {
584
- this.classList.add("opened"), e(this, y).style.height = e(this, y).scrollHeight + "px", d(this, ce, Ke).call(this);
575
+ clearTimeout(e(this, q)), o(this, H, !0), e(this, k).style.display = "grid", this.classList.add("triggered"), setTimeout(() => {
576
+ this.classList.add("opened"), e(this, k).style.height = e(this, k).scrollHeight + "px", c(this, he, _e).call(this);
585
577
  }, 0);
586
578
  }
587
579
  close() {
588
- o(this, N, !1), e(this, y).style.height = "0px", this.classList.remove("opened"), d(this, ce, Ke).call(this), o(this, J, setTimeout(() => {
589
- this.classList.remove("triggered"), e(this, y).style.display = "none";
590
- }, Rt(e(this, y))));
580
+ o(this, H, !1), e(this, k).style.height = "0px", this.classList.remove("opened"), c(this, he, _e).call(this), o(this, q, setTimeout(() => {
581
+ this.classList.remove("triggered"), e(this, k).style.display = "none";
582
+ }, Ct(e(this, k))));
591
583
  }
592
584
  connectedCallback() {
593
- e(this, Y).observe(e(this, y));
585
+ e(this, J).observe(e(this, k));
594
586
  }
595
587
  disconnectedCallback() {
596
- clearTimeout(e(this, J)), e(this, Y).disconnect();
588
+ clearTimeout(e(this, q)), e(this, J).disconnect();
597
589
  }
598
590
  };
599
- W = new WeakMap(), q = new WeakMap(), y = new WeakMap(), N = new WeakMap(), J = new WeakMap(), Y = new WeakMap(), Me = new WeakMap(), ce = new WeakSet(), Ke = function() {
600
- yt(this), this.dispatchEvent(
591
+ j = new WeakMap(), W = new WeakMap(), k = new WeakMap(), H = new WeakMap(), q = new WeakMap(), J = new WeakMap(), Le = new WeakMap(), he = new WeakSet(), _e = function() {
592
+ ft(this), this.dispatchEvent(
601
593
  new CustomEvent("selectToggle", {
602
594
  bubbles: !0,
603
595
  composed: !0,
604
596
  detail: {
605
- opened: e(this, N)
597
+ opened: e(this, H)
606
598
  }
607
599
  })
608
600
  );
609
- }, qe.formAssociated = !0;
610
- let Ze = qe;
611
- customElements.get("e-select") || customElements.define("e-select", Ze);
612
- var de;
613
- class ht extends HTMLElement {
601
+ }, Be.formAssociated = !0;
602
+ let De = Be;
603
+ customElements.get("e-select") || customElements.define("e-select", De);
604
+ var ce;
605
+ class ot extends HTMLElement {
614
606
  constructor() {
615
607
  super(...arguments);
616
- i(this, de, null);
608
+ i(this, ce, null);
617
609
  }
618
610
  get selectElement() {
619
- return e(this, de);
611
+ return e(this, ce);
620
612
  }
621
613
  connectedCallback() {
622
- var s, n;
623
- const t = (n = (s = this.assignedSlot) == null ? void 0 : s.getRootNode()) == null ? void 0 : n.host;
624
- t ? o(this, de, t) : console.log(this, "e-select not found");
614
+ var s, r;
615
+ const t = (r = (s = this.assignedSlot) == null ? void 0 : s.getRootNode()) == null ? void 0 : r.host;
616
+ t ? o(this, ce, t) : console.log(this, "e-select not found");
625
617
  }
626
618
  }
627
- de = new WeakMap();
628
- const Ot = w({
619
+ ce = new WeakMap();
620
+ const Vt = w({
629
621
  ":host": {
630
622
  width: "100%",
631
623
  height: "40px",
@@ -633,21 +625,21 @@ const Ot = w({
633
625
  alignItems: "center"
634
626
  }
635
627
  });
636
- var X, ue, Be;
637
- class Zt extends ht {
628
+ var Y, de, Oe;
629
+ class Ht extends ot {
638
630
  constructor() {
639
631
  super();
640
- i(this, ue);
641
- i(this, X, () => {
632
+ i(this, de);
633
+ i(this, Y, () => {
642
634
  this.selectElement.value === this.value ? this.style.display = "none" : this.style.display = "";
643
635
  });
644
- Ce && (this.attachShadow({ mode: "open" }).adoptedStyleSheets.push(Ot), u(this, {
636
+ Ee && (this.attachShadow({ mode: "open" }).adoptedStyleSheets.push(Vt), u(this, {
645
637
  tabindex: 0,
646
638
  onClick: () => {
647
- d(this, ue, Be).call(this);
639
+ c(this, de, Oe).call(this);
648
640
  },
649
641
  onKeydown: (s) => {
650
- s.code === "Space" && d(this, ue, Be).call(this);
642
+ s.code === "Space" && c(this, de, Oe).call(this);
651
643
  },
652
644
  children: te()
653
645
  }));
@@ -656,19 +648,19 @@ class Zt extends ht {
656
648
  return (this.hasAttribute("value") ? this.getAttribute("value") : this.innerText) || "";
657
649
  }
658
650
  connectedCallback() {
659
- super.connectedCallback(), this.hasAttribute("default") && (this.selectElement.value || (this.selectElement.value = this.value)), this.selectElement.addEventListener("change", e(this, X)), setTimeout(() => {
660
- e(this, X).call(this);
651
+ super.connectedCallback(), this.hasAttribute("default") && (this.selectElement.value || (this.selectElement.value = this.value)), this.selectElement.addEventListener("change", e(this, Y)), setTimeout(() => {
652
+ e(this, Y).call(this);
661
653
  });
662
654
  }
663
655
  disconnectedCallback() {
664
- this.selectElement.removeEventListener("change", e(this, X));
656
+ this.selectElement.removeEventListener("change", e(this, Y));
665
657
  }
666
658
  }
667
- X = new WeakMap(), ue = new WeakSet(), Be = function() {
659
+ Y = new WeakMap(), de = new WeakSet(), Oe = function() {
668
660
  this.selectElement.value = this.value, this.selectElement.close();
669
661
  };
670
- customElements.get("e-select-option") || customElements.define("e-select-option", Zt);
671
- const Kt = w({
662
+ customElements.get("e-select-option") || customElements.define("e-select-option", Ht);
663
+ const Nt = w({
672
664
  ":host": {
673
665
  width: "100%",
674
666
  height: "40px",
@@ -680,7 +672,7 @@ const Kt = w({
680
672
  flexShrink: "0",
681
673
  width: "var(--arrow-size, 1em)",
682
674
  height: "var(--arrow-size, 1em)",
683
- fill: `var(--arrow-color, ${l.colorMain.var})`,
675
+ fill: `var(--arrow-color, ${h.colorMain.var})`,
684
676
  transitionProperty: "transform",
685
677
  transitionDuration: "var(--duration, var(--duration-short))"
686
678
  },
@@ -688,44 +680,44 @@ const Kt = w({
688
680
  transform: "scaleY(-1)"
689
681
  }
690
682
  });
691
- var pe, U, ge;
692
- class Bt extends ht {
683
+ var ue, X, pe;
684
+ class Dt extends ot {
693
685
  constructor() {
694
686
  super();
695
- i(this, pe, null);
696
- i(this, U, () => {
687
+ i(this, ue, null);
688
+ i(this, X, () => {
697
689
  const s = this.selectElement.shadowRoot.querySelector(
698
690
  ".body slot"
699
- ).assignedElements().find((n) => n.value === this.selectElement.value);
700
- s && (e(this, pe).innerHTML = s.innerHTML);
691
+ ).assignedElements().find((r) => r.value === this.selectElement.value);
692
+ s && (e(this, ue).innerHTML = s.innerHTML);
701
693
  });
702
- i(this, ge, () => {
694
+ i(this, pe, () => {
703
695
  this.classList.toggle("opened", this.selectElement.opened);
704
696
  });
705
- Ce && (this.attachShadow({ mode: "open" }).adoptedStyleSheets.push(Kt), u(this, {
697
+ Ee && (this.attachShadow({ mode: "open" }).adoptedStyleSheets.push(Nt), u(this, {
706
698
  children: [
707
699
  te(),
708
700
  te({
709
701
  name: "arrow",
710
- children: u(nt, { class: "default-arrow" })
702
+ children: u(tt, { class: "default-arrow" })
711
703
  })
712
704
  ]
713
705
  }), this.slot = "head");
714
706
  }
715
707
  connectedCallback() {
716
- super.connectedCallback(), o(this, pe, this.querySelector("[data-value-holder]") || this), this.selectElement.addEventListener("change", e(this, U)), e(this, U).call(this), this.selectElement.addEventListener("selectToggle", e(this, ge));
708
+ super.connectedCallback(), o(this, ue, this.querySelector("[data-value-holder]") || this), this.selectElement.addEventListener("change", e(this, X)), e(this, X).call(this), this.selectElement.addEventListener("selectToggle", e(this, pe));
717
709
  }
718
710
  disconnectedCallback() {
719
- this.selectElement.removeEventListener("change", e(this, U)), this.selectElement.removeEventListener("selectToggle", e(this, ge));
711
+ this.selectElement.removeEventListener("change", e(this, X)), this.selectElement.removeEventListener("selectToggle", e(this, pe));
720
712
  }
721
713
  }
722
- pe = new WeakMap(), U = new WeakMap(), ge = new WeakMap();
723
- customElements.get("e-select-head") || customElements.define("e-select-head", Bt);
724
- const jt = w({
714
+ ue = new WeakMap(), X = new WeakMap(), pe = new WeakMap();
715
+ customElements.get("e-select-head") || customElements.define("e-select-head", Dt);
716
+ const _t = w({
725
717
  "e-select": {
726
718
  display: "block",
727
719
  width: "100%",
728
- "--arrow-color": l.colorFont.var
720
+ "--arrow-color": h.colorFont.var
729
721
  },
730
722
  "e-select-head": {
731
723
  width: "100%",
@@ -742,12 +734,12 @@ const jt = w({
742
734
  fontSize: "var(--font-size-small)"
743
735
  },
744
736
  "e-select-option:hover": {
745
- color: l.colorActive.var
737
+ color: h.colorActive.var
746
738
  },
747
739
  svg: {
748
740
  width: "16px",
749
741
  height: "16px",
750
- fill: l.colorFont.var,
742
+ fill: h.colorFont.var,
751
743
  transitionProperty: "transform",
752
744
  transitionDuration: "var(--duration-short)"
753
745
  },
@@ -755,29 +747,30 @@ const jt = w({
755
747
  transform: "scaleY(-1)"
756
748
  }
757
749
  });
758
- class ct extends se {
759
- constructor(...r) {
760
- var n, h;
761
- super(...r), this.attachShadow({ mode: "open" }).adoptedStyleSheets.push(jt);
762
- const s = ((h = (n = this.firstStore.passport) == null ? void 0 : n.manager) == null ? void 0 : h.variants) || [];
750
+ class at extends se {
751
+ constructor(...n) {
752
+ var r;
753
+ super(...n), this.attachShadow({ mode: "open" }).adoptedStyleSheets.push(_t);
754
+ const s = ((r = this.firstStore.__manager) == null ? void 0 : r.variants) || [];
763
755
  u(this, {
764
756
  children: u("e-select", {
765
757
  value: this.firstStore,
766
- onChange: (c) => {
767
- this.updateStores(c.currentTarget.value);
758
+ onChange: (l) => {
759
+ this.updateStores(l.currentTarget.value);
768
760
  },
769
761
  lightChildren: [
770
762
  u("e-select-head", {
771
763
  lightChildren: [
772
- He({
764
+ $e({
773
765
  "data-value-holder": ""
774
766
  })
775
767
  ]
776
768
  }),
769
+ // @ts-ignore
777
770
  ...s.map(
778
- (c, g) => u("e-select-option", {
779
- lightChildren: c,
780
- default: g === 0 ? !0 : null
771
+ (l, d) => u("e-select-option", {
772
+ lightChildren: l,
773
+ default: d === 0 ? !0 : null
781
774
  })
782
775
  )
783
776
  ]
@@ -785,8 +778,8 @@ class ct extends se {
785
778
  });
786
779
  }
787
780
  }
788
- customElements.get("e-tweaker-select-manager") || customElements.define("e-tweaker-select-manager", ct);
789
- const Wt = w({
781
+ customElements.get("e-tweaker-select-manager") || customElements.define("e-tweaker-select-manager", at);
782
+ const Ot = w({
790
783
  ":host": {
791
784
  width: "100%",
792
785
  display: "flex",
@@ -805,14 +798,14 @@ const Wt = w({
805
798
  margin: "0",
806
799
  padding: "0 var(--gap-small)",
807
800
  backgroundColor: "rgba(255, 255, 255, 0.1)",
808
- borderRadius: l.borderRadius.var
801
+ borderRadius: h.borderRadius.var
809
802
  }
810
803
  });
811
- class dt extends se {
812
- constructor(...r) {
813
- super(...r), this.attachShadow({ mode: "open" }).adoptedStyleSheets.push(Wt), u(this, {
804
+ class lt extends se {
805
+ constructor(...n) {
806
+ super(...n), this.attachShadow({ mode: "open" }).adoptedStyleSheets.push(Ot), u(this, {
814
807
  children: [
815
- ze({
808
+ Ce({
816
809
  class: "text-input",
817
810
  type: "string",
818
811
  value: this.firstStore,
@@ -826,21 +819,21 @@ class dt extends se {
826
819
  });
827
820
  }
828
821
  }
829
- customElements.get("e-tweaker-string-manager") || customElements.define("e-tweaker-string-manager", dt);
830
- const qt = {
831
- boolean: rt,
832
- color: ot,
833
- link: at,
834
- number: lt,
835
- select: ct,
836
- string: dt
837
- }, Jt = w({
822
+ customElements.get("e-tweaker-string-manager") || customElements.define("e-tweaker-string-manager", lt);
823
+ const Zt = {
824
+ boolean: st,
825
+ color: it,
826
+ link: nt,
827
+ number: rt,
828
+ select: at,
829
+ string: lt
830
+ }, Kt = w({
838
831
  ":host": {
839
832
  display: "grid",
840
833
  gridAutoFlow: "column",
841
834
  gridTemplateColumns: "0.5fr 1fr",
842
835
  alignItems: "center",
843
- color: l.colorFont.var,
836
+ color: h.colorFont.var,
844
837
  gap: "var(--gap-medium)"
845
838
  },
846
839
  ":host(.disabled)": {
@@ -863,7 +856,7 @@ const qt = {
863
856
  margin: "0",
864
857
  border: "none",
865
858
  background: "none",
866
- fill: l.colorFont.var,
859
+ fill: h.colorFont.var,
867
860
  transitionDuration: "var(--duration-short)",
868
861
  transitionProperty: "fill, opacity",
869
862
  opacity: "0"
@@ -872,64 +865,66 @@ const qt = {
872
865
  opacity: "1"
873
866
  },
874
867
  ".head-button:hover": {
875
- fill: l.colorActive.var
868
+ fill: h.colorActive.var
876
869
  },
877
870
  ".head-button svg": {
878
871
  width: "100%",
879
872
  height: "100%"
880
873
  }
881
874
  });
882
- var k, G, Q, _, ee, me, fe;
883
- class je extends HTMLElement {
875
+ var S, U, G, Q, ee, ge, me;
876
+ class Ze extends HTMLElement {
884
877
  constructor(t) {
885
- var h, c, g, x;
878
+ var l, d;
886
879
  super();
887
- i(this, k, []);
880
+ i(this, S, []);
881
+ i(this, U);
888
882
  i(this, G);
889
- i(this, Q);
890
- i(this, _, !1);
883
+ i(this, Q, !1);
891
884
  i(this, ee);
892
- i(this, me, () => {
893
- O.current.find((t) => e(this, k).includes(t)) || this.remove();
885
+ i(this, ge, () => {
886
+ _.current.find((t) => e(this, S).includes(t)) || this.remove();
894
887
  });
895
- i(this, fe, (t) => {
896
- e(this, _) && ((t.metaKey || t.ctrlKey) && t.code === "KeyC" ? navigator.clipboard.writeText(e(this, k)[0].current) : (t.metaKey || t.ctrlKey) && t.code === "KeyR" && (e(this, k).forEach((s) => {
888
+ i(this, me, (t) => {
889
+ e(this, Q) && ((t.metaKey || t.ctrlKey) && t.code === "KeyC" ? navigator.clipboard.writeText(e(this, S)[0].current) : (t.metaKey || t.ctrlKey) && t.code === "KeyR" && (e(this, S).forEach((s) => {
897
890
  s.reset();
898
891
  }), t.preventDefault()));
899
892
  });
900
- o(this, k, [t.store]), o(this, G, t.store.passport.name), o(this, Q, e(this, G).split(".").slice(-1).toString());
901
- const s = ((c = (h = t.store.passport) == null ? void 0 : h.manager) == null ? void 0 : c.type) || "string";
902
- o(this, ee, new qt[s](e(this, k)[0])), this.attachShadow({ mode: "open" }).adoptedStyleSheets.push(Jt), u(this, {
893
+ o(this, S, [t.store]), o(this, U, t.store.name), o(this, G, e(this, U).split(".").slice(-1).toString());
894
+ const s = ((l = t.store.__manager) == null ? void 0 : l.type) || "string";
895
+ o(this, ee, new Zt[s](
896
+ e(this, S)[0]
897
+ )), this.attachShadow({ mode: "open" }).adoptedStyleSheets.push(Kt), u(this, {
903
898
  class: {
904
- disabled: ((x = (g = t.store.passport) == null ? void 0 : g.manager) == null ? void 0 : x.disabled) || !1
899
+ disabled: ((d = t.store.__manager) == null ? void 0 : d.disabled) || !1
905
900
  },
906
901
  onPointerleave: () => {
907
- o(this, _, !1);
902
+ o(this, Q, !1);
908
903
  },
909
904
  onPointerenter: () => {
910
- o(this, _, !0);
905
+ o(this, Q, !0);
911
906
  },
912
907
  children: [
913
- m({
908
+ g({
914
909
  class: "head",
915
910
  children: [
916
- m({ class: "name", children: e(this, Q) + ":" }),
917
- m({
911
+ g({ class: "name", children: e(this, G) + ":" }),
912
+ g({
918
913
  class: "head-buttons",
919
914
  children: [
920
- Z({
915
+ O({
921
916
  class: "head-button",
922
- children: it,
917
+ children: et,
923
918
  onClick: () => {
924
- navigator.clipboard.writeText(e(this, k)[0].current);
919
+ navigator.clipboard.writeText(e(this, S)[0].current);
925
920
  }
926
921
  }),
927
- Z({
922
+ O({
928
923
  class: "head-button",
929
- children: st,
924
+ children: Qe,
930
925
  onClick: () => {
931
- e(this, k).forEach((A) => {
932
- A.reset();
926
+ e(this, S).forEach((m) => {
927
+ m.reset();
933
928
  });
934
929
  }
935
930
  })
@@ -942,31 +937,31 @@ class je extends HTMLElement {
942
937
  });
943
938
  }
944
939
  get key() {
945
- return e(this, G);
940
+ return e(this, U);
946
941
  }
947
942
  get name() {
948
- return e(this, Q);
943
+ return e(this, G);
949
944
  }
950
945
  get stores() {
951
- return e(this, k);
946
+ return e(this, S);
952
947
  }
953
948
  addStore(t) {
954
949
  e(this, ee).addStore(t);
955
950
  }
956
951
  connectedCallback() {
957
- O.subscribe(e(this, me)), addEventListener("keydown", e(this, fe)), _e(this);
952
+ _.subscribe(e(this, ge)), addEventListener("keydown", e(this, me)), Xe(this);
958
953
  }
959
954
  disconnectedCallback() {
960
- O.unsubscribe(e(this, me)), removeEventListener("keydown", e(this, fe));
955
+ _.unsubscribe(e(this, ge)), removeEventListener("keydown", e(this, me));
961
956
  }
962
957
  }
963
- k = new WeakMap(), G = new WeakMap(), Q = new WeakMap(), _ = new WeakMap(), ee = new WeakMap(), me = new WeakMap(), fe = new WeakMap();
964
- customElements.get("e-tweaker-field") || customElements.define("e-tweaker-field", je);
965
- const Yt = w({
958
+ S = new WeakMap(), U = new WeakMap(), G = new WeakMap(), Q = new WeakMap(), ee = new WeakMap(), ge = new WeakMap(), me = new WeakMap();
959
+ customElements.get("e-tweaker-field") || customElements.define("e-tweaker-field", Ze);
960
+ const Bt = w({
966
961
  ".wrapper": {
967
962
  boxSizing: "border-box",
968
963
  backgroundColor: "rgba(255, 255, 255, 0.1)",
969
- borderRadius: l.borderRadius.var
964
+ borderRadius: h.borderRadius.var
970
965
  },
971
966
  ".head": {
972
967
  boxSizing: "border-box",
@@ -977,12 +972,12 @@ const Yt = w({
977
972
  display: "flex",
978
973
  alignItems: "center",
979
974
  justifyContent: "space-between",
980
- backgroundColor: l.colorMainAux.var,
981
- borderRadius: l.borderRadius.var
975
+ backgroundColor: h.colorMainAux.var,
976
+ borderRadius: h.borderRadius.var
982
977
  },
983
978
  ".name": {
984
979
  fontSize: "var(--font-size-large)",
985
- color: l.colorFont.var
980
+ color: h.colorFont.var
986
981
  },
987
982
  ".body": {
988
983
  display: "none",
@@ -1010,63 +1005,63 @@ const Yt = w({
1010
1005
  ".arrow": {
1011
1006
  width: "20px",
1012
1007
  height: "20px",
1013
- fill: l.colorFont.var,
1008
+ fill: h.colorFont.var,
1014
1009
  transition: "transform var(--duration-short)"
1015
1010
  },
1016
1011
  ".opened .arrow": {
1017
1012
  transform: "scaleY(-1)"
1018
1013
  }
1019
1014
  });
1020
- var S, we, f, ve, be, ye, ke, Fe;
1021
- const Ie = class Ie extends HTMLElement {
1015
+ var x, fe, f, we, ve, be, ye, Re;
1016
+ const Me = class Me extends HTMLElement {
1022
1017
  constructor(t) {
1023
1018
  super();
1024
- i(this, S);
1025
- i(this, we, new Ue(null));
1026
- i(this, f, new Ue([]));
1027
- i(this, ve);
1019
+ i(this, x);
1020
+ i(this, fe, new qe(null));
1021
+ i(this, f, new qe([]));
1022
+ i(this, we);
1023
+ i(this, ve, null);
1028
1024
  i(this, be, null);
1029
1025
  i(this, ye, null);
1030
- i(this, ke, null);
1031
- i(this, Fe, (t) => {
1032
- let s = [], n = [];
1033
- t.forEach((h) => {
1034
- s = [...s, ...h.removedNodes], n = [...n, ...h.addedNodes];
1026
+ i(this, Re, (t) => {
1027
+ let s = [], r = [];
1028
+ t.forEach((l) => {
1029
+ s = [...s, ...l.removedNodes], r = [...r, ...l.addedNodes];
1035
1030
  }), e(this, f).current = e(this, f).current.filter(
1036
- (h) => !s.includes(h)
1037
- ), e(this, S) && !e(this, f).current.length && !n.length && this.remove();
1031
+ (l) => !s.includes(l)
1032
+ ), e(this, x) && !e(this, f).current.length && !r.length && this.remove();
1038
1033
  });
1039
- this.attachShadow({ mode: "open" }).adoptedStyleSheets.push(Yt), o(this, S, t.key), o(this, ve, new MutationObserver(e(this, Fe))), u(this, {
1034
+ this.attachShadow({ mode: "open" }).adoptedStyleSheets.push(Bt), o(this, x, t.key), o(this, we, new MutationObserver(e(this, Re))), u(this, {
1040
1035
  children: [
1041
- m({
1036
+ g({
1042
1037
  class: "wrapper",
1043
1038
  children: [
1044
- m({
1039
+ g({
1045
1040
  class: "head",
1046
- onClick: (n) => {
1047
- this.classList.toggle("opened"), this.classList.contains("opened") ? v.openPanel(e(this, S)) : v.closePanel(e(this, S));
1041
+ onClick: (r) => {
1042
+ this.classList.toggle("opened"), this.classList.contains("opened") ? v.openPanel(e(this, x)) : v.closePanel(e(this, x));
1048
1043
  },
1049
1044
  children: [
1050
- e(this, S) ? m({
1045
+ e(this, x) ? g({
1051
1046
  class: "name",
1052
- children: [e(this, S).split(".").slice(-1).toString()]
1047
+ children: [e(this, x).split(".").slice(-1).toString()]
1053
1048
  }) : null,
1054
- e(this, we),
1055
- u(nt, {
1049
+ e(this, fe),
1050
+ u(tt, {
1056
1051
  class: "arrow"
1057
1052
  })
1058
1053
  ]
1059
1054
  }),
1060
- m({
1055
+ g({
1061
1056
  class: "body",
1062
- ref: (n) => {
1063
- o(this, be, n);
1057
+ ref: (r) => {
1058
+ o(this, ve, r);
1064
1059
  },
1065
- children: m({
1060
+ children: g({
1066
1061
  class: "body-content",
1067
1062
  children: e(this, f),
1068
- ref: (n) => {
1069
- o(this, ye, n), o(this, ke, n.firstElementChild);
1063
+ ref: (r) => {
1064
+ o(this, be, r), o(this, ye, r.firstElementChild);
1070
1065
  }
1071
1066
  })
1072
1067
  })
@@ -1076,37 +1071,37 @@ const Ie = class Ie extends HTMLElement {
1076
1071
  }), t != null && t.storeBox && this.handleStore(t.storeBox);
1077
1072
  }
1078
1073
  get key() {
1079
- return e(this, S);
1074
+ return e(this, x);
1080
1075
  }
1081
1076
  get head() {
1082
- return e(this, we);
1077
+ return e(this, fe);
1083
1078
  }
1084
1079
  get content() {
1085
1080
  return e(this, f);
1086
1081
  }
1087
1082
  get bodyElement() {
1088
- return e(this, be);
1083
+ return e(this, ve);
1089
1084
  }
1090
1085
  get contentElement() {
1091
- return e(this, ye);
1086
+ return e(this, be);
1092
1087
  }
1093
1088
  connectedCallback() {
1094
- v.isPanelOpened(e(this, S)) && this.classList.add("opened"), setTimeout(() => {
1089
+ v.isPanelOpened(e(this, x)) && this.classList.add("opened"), setTimeout(() => {
1095
1090
  this.classList.add("transition-allowed");
1096
- }), e(this, ve).observe(e(this, ke), {
1091
+ }), e(this, we).observe(e(this, ye), {
1097
1092
  childList: !0
1098
1093
  });
1099
1094
  }
1100
1095
  handleStore(t) {
1101
1096
  if (t.remainingFolders.length) {
1102
- const n = t.store.passport.name.split("."), h = n.slice(0, n.length - t.remainingFolders.length).join("."), c = e(this, f).current.find((g) => g.key === h);
1103
- c instanceof Ie ? c.handleStore({
1097
+ const r = t.store.name.split("."), l = r.slice(0, r.length - t.remainingFolders.length).join("."), d = e(this, f).current.find((m) => m.key === l);
1098
+ d instanceof Me ? d.handleStore({
1104
1099
  store: t.store,
1105
1100
  remainingFolders: t.remainingFolders.slice(1)
1106
1101
  }) : e(this, f).current = [
1107
1102
  ...e(this, f).current,
1108
- new Ie({
1109
- key: h,
1103
+ new Me({
1104
+ key: l,
1110
1105
  storeBox: {
1111
1106
  store: t.store,
1112
1107
  remainingFolders: t.remainingFolders.slice(1)
@@ -1115,21 +1110,21 @@ const Ie = class Ie extends HTMLElement {
1115
1110
  ];
1116
1111
  } else {
1117
1112
  const s = e(this, f).current.find(
1118
- (n) => n.key === t.store.passport.name
1113
+ (r) => r.key === t.store.name
1119
1114
  );
1120
- s instanceof je ? s.addStore(t.store) : e(this, f).current = [
1115
+ s instanceof Ze ? s.addStore(t.store) : e(this, f).current = [
1121
1116
  ...e(this, f).current,
1122
- new je({
1117
+ new Ze({
1123
1118
  store: t.store
1124
1119
  })
1125
1120
  ];
1126
1121
  }
1127
1122
  }
1128
1123
  };
1129
- S = new WeakMap(), we = new WeakMap(), f = new WeakMap(), ve = new WeakMap(), be = new WeakMap(), ye = new WeakMap(), ke = new WeakMap(), Fe = new WeakMap();
1130
- let Re = Ie;
1131
- customElements.get("e-tweaker-folder") || customElements.define("e-tweaker-folder", Re);
1132
- const Xt = w({
1124
+ x = new WeakMap(), fe = new WeakMap(), f = new WeakMap(), we = new WeakMap(), ve = new WeakMap(), be = new WeakMap(), ye = new WeakMap(), Re = new WeakMap();
1125
+ let Te = Me;
1126
+ customElements.get("e-tweaker-folder") || customElements.define("e-tweaker-folder", Te);
1127
+ const jt = w({
1133
1128
  ":host": {
1134
1129
  "--tweaker-width": "550px",
1135
1130
  "--tweaker-offset": "20px",
@@ -1148,8 +1143,8 @@ const Xt = w({
1148
1143
  top: "var(--tweaker-offset)",
1149
1144
  right: "var(--tweaker-offset)",
1150
1145
  width: "var(--tweaker-width)",
1151
- backgroundColor: l.colorMain.var,
1152
- borderRadius: l.borderRadius.var,
1146
+ backgroundColor: h.colorMain.var,
1147
+ borderRadius: h.borderRadius.var,
1153
1148
  transition: "opacity 0.1s",
1154
1149
  zIndex: "100",
1155
1150
  opacity: "0.1"
@@ -1178,12 +1173,12 @@ const Xt = w({
1178
1173
  margin: "0",
1179
1174
  background: "none",
1180
1175
  border: "none",
1181
- fill: l.colorFont.var,
1176
+ fill: h.colorFont.var,
1182
1177
  transitionProperty: "fill",
1183
1178
  transitionDuration: "var(--duration-short)"
1184
1179
  },
1185
1180
  ".tweaker-button:hover": {
1186
- fill: l.colorActive.var
1181
+ fill: h.colorActive.var
1187
1182
  },
1188
1183
  ".tweaker-button svg": {
1189
1184
  width: "100%",
@@ -1204,7 +1199,7 @@ const Xt = w({
1204
1199
  ":host .body-content::-webkit-scrollbar": {
1205
1200
  display: "none"
1206
1201
  },
1207
- [`@media ${Ct["<=mobile"]}`]: {
1202
+ [`@media ${St["<=mobile"]}`]: {
1208
1203
  ":host": {
1209
1204
  position: "absolute",
1210
1205
  top: "0",
@@ -1221,81 +1216,80 @@ const Xt = w({
1221
1216
  }
1222
1217
  }
1223
1218
  });
1224
- var Se, xe, Ee;
1225
- class ut extends Re {
1219
+ var ke, Se, xe;
1220
+ class ht extends Te {
1226
1221
  constructor() {
1227
1222
  super({
1228
1223
  key: ""
1229
1224
  });
1230
- i(this, Se, !1);
1231
- i(this, xe, () => {
1225
+ i(this, ke, !1);
1226
+ i(this, Se, () => {
1232
1227
  v.save();
1233
1228
  });
1234
- i(this, Ee, St(() => {
1235
- O.current.forEach((t) => {
1236
- var s;
1237
- if (t.passport && !((s = t.passport.manager) != null && s.invisible)) {
1238
- const n = t.passport.name.split(".");
1229
+ i(this, xe, vt(() => {
1230
+ _.current.forEach((t) => {
1231
+ if (t.name) {
1232
+ const s = t.name.split(".");
1239
1233
  this.handleStore({
1240
1234
  store: t,
1241
- remainingFolders: n.length > 1 ? n.slice(0, -1) : []
1235
+ remainingFolders: s.length > 1 ? s.slice(0, -1) : []
1242
1236
  });
1243
1237
  }
1244
- }), e(this, Se) || (o(this, Se, !0), this.contentElement.scroll({
1238
+ }), e(this, ke) || (o(this, ke, !0), this.contentElement.scroll({
1245
1239
  top: v.scrollValue
1246
1240
  }), this.contentElement.addEventListener("scroll", () => {
1247
1241
  v.scrollValue = this.contentElement.scrollTop;
1248
1242
  }));
1249
1243
  }, 10));
1250
- v.load(), this.shadowRoot.adoptedStyleSheets.push(Xt), this.head.current = [
1251
- m({
1244
+ v.load(), this.shadowRoot.adoptedStyleSheets.push(jt), this.head.current = [
1245
+ g({
1252
1246
  class: "tweaker-buttons",
1253
1247
  onClick: (t) => {
1254
1248
  t.stopPropagation();
1255
1249
  },
1256
1250
  children: [
1257
- Z({
1251
+ O({
1258
1252
  class: "tweaker-button",
1259
- children: st,
1253
+ children: Qe,
1260
1254
  onClick: () => {
1261
- R.resetState();
1255
+ L.resetState();
1262
1256
  }
1263
1257
  }),
1264
- Z({
1258
+ O({
1265
1259
  class: ["tweaker-button"],
1266
- children: [it],
1260
+ children: [et],
1267
1261
  onClick: () => {
1268
1262
  navigator.clipboard.writeText(
1269
- JSON.stringify(R.getState())
1263
+ JSON.stringify(L.getState())
1270
1264
  );
1271
1265
  }
1272
1266
  }),
1273
- Z({
1267
+ O({
1274
1268
  class: "tweaker-button",
1275
- children: Mt,
1269
+ children: zt,
1276
1270
  onClick: () => {
1277
- kt(R.name, R.getState());
1271
+ wt(L.name, L.getState());
1278
1272
  }
1279
1273
  }),
1280
- tt({
1274
+ Ge({
1281
1275
  class: "tweaker-button",
1282
1276
  children: [
1283
- Ft,
1284
- ze({
1277
+ Tt,
1278
+ Ce({
1285
1279
  type: "file",
1286
1280
  style: {
1287
1281
  display: "none"
1288
1282
  },
1289
1283
  onChange: (t) => {
1290
- var h;
1291
- const n = (h = t.currentTarget.files) == null ? void 0 : h[0];
1292
- if (n) {
1293
- const c = new FileReader();
1294
- c.onload = (g) => {
1295
- var A, ie;
1296
- const x = (ie = (A = g.target) == null ? void 0 : A.result) == null ? void 0 : ie.toString();
1297
- x && R.loadState(x);
1298
- }, c.readAsText(n);
1284
+ var l;
1285
+ const r = (l = t.currentTarget.files) == null ? void 0 : l[0];
1286
+ if (r) {
1287
+ const d = new FileReader();
1288
+ d.onload = (m) => {
1289
+ var I, b;
1290
+ const N = (b = (I = m.target) == null ? void 0 : I.result) == null ? void 0 : b.toString();
1291
+ N && L.loadState(N);
1292
+ }, d.readAsText(r);
1299
1293
  }
1300
1294
  }
1301
1295
  })
@@ -1305,20 +1299,20 @@ class ut extends Re {
1305
1299
  })
1306
1300
  ], u(this.bodyElement, {
1307
1301
  children: [
1308
- m({
1302
+ g({
1309
1303
  class: "resize",
1310
1304
  onPointerdown: (t) => {
1311
1305
  t.preventDefault();
1312
- const s = this.getBoundingClientRect(), n = this.contentElement.scrollTop;
1313
- et(
1314
- (h) => {
1315
- const c = t.x - h.x, g = Math.max(400, s.width + c);
1316
- this.style.width = g + "px", v.changeSize("tweaker", g);
1306
+ const s = this.getBoundingClientRect(), r = this.contentElement.scrollTop;
1307
+ Ue(
1308
+ (l) => {
1309
+ const d = t.x - l.x, m = Math.max(400, s.width + d);
1310
+ this.style.width = m + "px", v.changeSize("tweaker", m);
1317
1311
  },
1318
1312
  () => {
1319
1313
  setTimeout(() => {
1320
1314
  this.contentElement.scroll({
1321
- top: n
1315
+ top: r
1322
1316
  });
1323
1317
  }, 10);
1324
1318
  }
@@ -1332,12 +1326,12 @@ class ut extends Re {
1332
1326
  });
1333
1327
  }
1334
1328
  connectedCallback() {
1335
- super.connectedCallback(), window.addEventListener("beforeunload", e(this, xe)), O.subscribe(e(this, Ee)), v.changedSizes("tweaker") && (this.style.width = v.changedSizes("tweaker") + "px");
1329
+ super.connectedCallback(), window.addEventListener("beforeunload", e(this, Se)), _.subscribe(e(this, xe)), v.changedSizes("tweaker") && (this.style.width = v.changedSizes("tweaker") + "px");
1336
1330
  }
1337
1331
  disconnectedCallback() {
1338
- window.removeEventListener("beforeunload", e(this, xe)), v.save(), O.unsubscribe(e(this, Ee));
1332
+ window.removeEventListener("beforeunload", e(this, Se)), v.save(), _.unsubscribe(e(this, xe));
1339
1333
  }
1340
1334
  }
1341
- Se = new WeakMap(), xe = new WeakMap(), Ee = new WeakMap();
1342
- customElements.get("e-tweaker") || customElements.define("e-tweaker", ut);
1343
- Ce && document.body.appendChild(new ut());
1335
+ ke = new WeakMap(), Se = new WeakMap(), xe = new WeakMap();
1336
+ customElements.get("e-tweaker") || customElements.define("e-tweaker", ht);
1337
+ Ee && document.body.appendChild(new ht());