aptechka 0.8.3 → 0.9.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 (166) hide show
  1. package/lib/{Animation-BInSRYNr.cjs → Animation-BCA-DBje.cjs} +1 -1
  2. package/lib/{Animation-uimN7sdT.js → Animation-DrSYnbgb.js} +1 -1
  3. package/lib/{Composed-Iihn8fT4.cjs → Composed-7Fe7TW_T.cjs} +1 -1
  4. package/lib/{Composed-Fa7owymK.js → Composed-pnupzTOv.js} +1 -1
  5. package/lib/{Damped-yrNXlkDE.js → Damped-C2FuK_3K.js} +1 -1
  6. package/lib/{Damped-Da3EnNN4.cjs → Damped-CSEZ0qwp.cjs} +1 -1
  7. package/lib/{Derived-DIWinC7Y.js → Derived-CFnbeEgJ.js} +1 -1
  8. package/lib/{Derived-D9VrDuf9.cjs → Derived-Dko3EP7m.cjs} +1 -1
  9. package/lib/ElementConstructor-9S0f1yAH.cjs +1 -0
  10. package/lib/ElementConstructor-CZKbNIQK.js +366 -0
  11. package/lib/Resource-BhF6Tj1p.js +49 -0
  12. package/lib/Resource-WCQEgLpB.cjs +1 -0
  13. package/lib/{SourceManager--L_rA28b.js → SourceManager-CmhlHGx7.js} +1 -1
  14. package/lib/{SourceManager-D6D2LVKf.cjs → SourceManager-DYnGpBi1.cjs} +1 -1
  15. package/lib/{Store-Qr3SNOSf.js → Store-Dsft7GtM.js} +1 -1
  16. package/lib/{Store-Cr3VaD9G.cjs → Store-kzJycezD.cjs} +1 -1
  17. package/lib/{Tweened-CjgvoOwL.js → Tweened-BrD2cPSC.js} +1 -1
  18. package/lib/{Tweened-DksN-Rz6.cjs → Tweened-D6dAu8Zi.cjs} +1 -1
  19. package/lib/{Viewport-BBYt1Ivy.cjs → Viewport-DRNfjjDY.cjs} +1 -1
  20. package/lib/{Viewport-Cgtq2I_K.js → Viewport-Ud7nellV.js} +1 -1
  21. package/lib/_createStore-Cf1MyeHa.cjs +1 -0
  22. package/lib/_createStore-Ck9bHolX.js +12 -0
  23. package/lib/accordion/AccordionElement.d.ts +1 -2
  24. package/lib/accordion/index.cjs +1 -1
  25. package/lib/accordion/index.js +110 -122
  26. package/lib/animation/index.cjs +1 -1
  27. package/lib/animation/index.js +3 -3
  28. package/lib/attribute/index.cjs +1 -1
  29. package/lib/attribute/index.js +1 -1
  30. package/lib/canvas/index.cjs +1 -1
  31. package/lib/canvas/index.d.ts +1 -2
  32. package/lib/canvas/index.js +69 -75
  33. package/lib/checkbox/index.cjs +1 -1
  34. package/lib/checkbox/index.d.ts +1 -3
  35. package/lib/checkbox/index.js +42 -46
  36. package/lib/class-linked-status/index.cjs +1 -1
  37. package/lib/class-linked-status/index.js +1 -1
  38. package/lib/controls/index.cjs +1 -1
  39. package/lib/controls/index.js +2 -2
  40. package/lib/counter/index.d.ts +1 -3
  41. package/lib/{createStylesheet-BxKITIVV.js → createStylesheet-C2gpLy4r.js} +1 -1
  42. package/lib/{createStylesheet-BsMSWX0q.cjs → createStylesheet-Di9WRypw.cjs} +1 -1
  43. package/lib/css-property/index.cjs +1 -1
  44. package/lib/css-property/index.js +1 -1
  45. package/lib/dev/index.cjs +1 -1
  46. package/lib/dev/index.js +1 -1
  47. package/lib/device/index.cjs +1 -1
  48. package/lib/device/index.js +1 -1
  49. package/lib/element-constructor/index.cjs +1 -1
  50. package/lib/element-constructor/index.js +114 -113
  51. package/lib/en3/helpers/index.cjs +1 -1
  52. package/lib/en3/helpers/index.js +2 -2
  53. package/lib/en3/misc/index.cjs +1 -1
  54. package/lib/en3/misc/index.js +2 -2
  55. package/lib/en3/objects/fluid/En3FluidElement.d.ts +1 -2
  56. package/lib/globals-DMjysUXI.js +8 -0
  57. package/lib/globals-bYKki-b9.cjs +1 -0
  58. package/lib/image/index.cjs +1 -1
  59. package/lib/image/index.js +8 -16
  60. package/lib/index-BtB-3MG7.js +265 -0
  61. package/lib/index-DQo2-dnB.cjs +9 -0
  62. package/lib/instantiate-BPZZn8jK.js +134 -0
  63. package/lib/instantiate-BWM-ipPW.cjs +1 -0
  64. package/lib/jsx/ComponentElement.d.ts +18 -0
  65. package/lib/jsx/globals.d.ts +13 -0
  66. package/lib/jsx/h.d.ts +6 -0
  67. package/lib/jsx/hooks/basic/_createStore.d.ts +4 -0
  68. package/lib/jsx/hooks/basic/attachInternals.d.ts +1 -0
  69. package/lib/jsx/hooks/basic/attachShadow.d.ts +1 -0
  70. package/lib/jsx/hooks/basic/attachStylesheet.d.ts +3 -0
  71. package/lib/jsx/hooks/basic/createContext.d.ts +2 -0
  72. package/lib/jsx/hooks/basic/onConnect.d.ts +3 -0
  73. package/lib/jsx/hooks/basic/onDisconnect.d.ts +3 -0
  74. package/lib/jsx/hooks/onAnimationFrame.cjs +1 -0
  75. package/lib/jsx/hooks/onAnimationFrame.d.ts +6 -0
  76. package/lib/jsx/hooks/onAnimationFrame.js +22 -0
  77. package/lib/jsx/hooks/onElementResize.cjs +1 -0
  78. package/lib/jsx/hooks/onElementResize.d.ts +5 -0
  79. package/lib/jsx/hooks/onElementResize.js +11 -0
  80. package/lib/jsx/hooks/onIntersection.cjs +1 -0
  81. package/lib/jsx/hooks/onIntersection.d.ts +5 -0
  82. package/lib/jsx/hooks/onIntersection.js +11 -0
  83. package/lib/jsx/hooks/onWindowResize.cjs +1 -0
  84. package/lib/jsx/hooks/onWindowResize.d.ts +3 -0
  85. package/lib/jsx/hooks/onWindowResize.js +8 -0
  86. package/lib/jsx/hooks/store/createComposed.d.ts +3 -0
  87. package/lib/jsx/hooks/store/createDerived.d.ts +3 -0
  88. package/lib/jsx/hooks/store/createDerivedArray.d.ts +3 -0
  89. package/lib/jsx/hooks/store/createResource.d.ts +3 -0
  90. package/lib/jsx/hooks/store/createStore.d.ts +3 -0
  91. package/lib/jsx/hooks/store/index.cjs +1 -0
  92. package/lib/jsx/hooks/store/index.d.ts +5 -0
  93. package/lib/jsx/hooks/store/index.js +27 -0
  94. package/lib/jsx/hooks/watchAttribute.cjs +1 -0
  95. package/lib/jsx/hooks/watchAttribute.d.ts +6 -0
  96. package/lib/jsx/hooks/watchAttribute.js +17 -0
  97. package/lib/jsx/hooks/watchCSSProperty.cjs +1 -0
  98. package/lib/jsx/hooks/watchCSSProperty.d.ts +7 -0
  99. package/lib/jsx/hooks/watchCSSProperty.js +17 -0
  100. package/lib/jsx/index.cjs +1 -0
  101. package/lib/jsx/index.d.ts +13 -0
  102. package/lib/jsx/index.js +91 -0
  103. package/lib/jsx/instantiate.d.ts +5 -0
  104. package/lib/jsx/register.d.ts +1 -0
  105. package/lib/jsx/render.d.ts +6 -0
  106. package/lib/jsx/type.d.ts +192 -0
  107. package/lib/ladder/index.cjs +1 -1
  108. package/lib/ladder/index.js +1 -1
  109. package/lib/media/index.cjs +1 -1
  110. package/lib/media/index.js +1 -1
  111. package/lib/modal/index.cjs +1 -1
  112. package/lib/modal/index.js +33 -36
  113. package/lib/morph/index.cjs +1 -1
  114. package/lib/morph/index.js +33 -33
  115. package/lib/onConnect-DGP866cj.cjs +1 -0
  116. package/lib/onConnect-y5DrxJ9P.js +7 -0
  117. package/lib/pointer/PointerElement.d.ts +1 -2
  118. package/lib/pointer/index.cjs +1 -1
  119. package/lib/pointer/index.js +106 -118
  120. package/lib/popover/PopoverButtonElement.d.ts +1 -2
  121. package/lib/popover/PopoverElement.d.ts +1 -2
  122. package/lib/popover/index.cjs +1 -1
  123. package/lib/popover/index.js +109 -125
  124. package/lib/router/index.cjs +1 -1
  125. package/lib/router/index.js +76 -73
  126. package/lib/scroll/ScrollElement.d.ts +1 -2
  127. package/lib/scroll/ScrollUserElement.d.ts +1 -2
  128. package/lib/scroll/index.cjs +1 -1
  129. package/lib/scroll/index.js +674 -753
  130. package/lib/select/SelectElement.d.ts +1 -3
  131. package/lib/select/SelectUserElement.d.ts +1 -2
  132. package/lib/select/index.cjs +1 -1
  133. package/lib/select/index.js +1 -1
  134. package/lib/sequence/index.cjs +1 -1
  135. package/lib/sequence/index.js +105 -108
  136. package/lib/slicer/SlicerElement.d.ts +1 -2
  137. package/lib/slicer/index.cjs +5 -5
  138. package/lib/slicer/index.js +88 -106
  139. package/lib/source/SourceElement.d.ts +1 -2
  140. package/lib/source/index.cjs +2 -2
  141. package/lib/source/index.js +20 -21
  142. package/lib/store/Derived.d.ts +3 -3
  143. package/lib/store/DerivedArray.d.ts +8 -0
  144. package/lib/store/Keyed.d.ts +13 -0
  145. package/lib/store/index.cjs +1 -1
  146. package/lib/store/index.d.ts +2 -0
  147. package/lib/store/index.js +32 -32
  148. package/lib/tags-BBOGIzDK.cjs +1 -0
  149. package/lib/tags-CefGDQtF.js +485 -0
  150. package/lib/theme/index.cjs +1 -1
  151. package/lib/theme/index.js +2 -2
  152. package/lib/tweaker/TweakerFieldElement.d.ts +1 -2
  153. package/lib/tweaker/TweakerFolderElement.d.ts +1 -2
  154. package/lib/tweaker/TweakerStoreManagerElement.d.ts +1 -2
  155. package/lib/tweaker/index.cjs +3 -3
  156. package/lib/tweaker/index.js +392 -472
  157. package/lib/video/index.cjs +1 -1
  158. package/lib/video/index.js +26 -30
  159. package/package.json +65 -9
  160. package/lib/custom-element/index.cjs +0 -1
  161. package/lib/custom-element/index.d.ts +0 -8
  162. package/lib/custom-element/index.js +0 -30
  163. package/lib/index-CzpP1Tg6.cjs +0 -9
  164. package/lib/index-Dwd_62sm.js +0 -301
  165. package/lib/tags-CAfasCGV.cjs +0 -1
  166. package/lib/tags-D9lNDPX8.js +0 -848
@@ -0,0 +1,485 @@
1
+ var s = Object.defineProperty, c = Object.defineProperties;
2
+ var f = Object.getOwnPropertyDescriptors;
3
+ var a = Object.getOwnPropertySymbols;
4
+ var w = Object.prototype.hasOwnProperty, d = Object.prototype.propertyIsEnumerable;
5
+ var o = (n, e, r) => e in n ? s(n, e, { enumerable: !0, configurable: !0, writable: !0, value: r }) : n[e] = r, u = (n, e) => {
6
+ for (var r in e || (e = {}))
7
+ w.call(e, r) && o(n, r, e[r]);
8
+ if (a)
9
+ for (var r of a(e))
10
+ d.call(e, r) && o(n, r, e[r]);
11
+ return n;
12
+ }, i = (n, e) => c(n, f(e));
13
+ import { E as t } from "./ElementConstructor-CZKbNIQK.js";
14
+ function p(...n) {
15
+ return new t(...n);
16
+ }
17
+ function b(n) {
18
+ return new t("a", n);
19
+ }
20
+ function h(n) {
21
+ return new t("abbr", n);
22
+ }
23
+ function g(n) {
24
+ return new t("address", n);
25
+ }
26
+ function y(n) {
27
+ return new t("area", n);
28
+ }
29
+ function k(n) {
30
+ return new t("article", n);
31
+ }
32
+ function v(n) {
33
+ return new t("aside", n);
34
+ }
35
+ function q(n) {
36
+ return new t("audio", n);
37
+ }
38
+ function x(n) {
39
+ return new t("b", n);
40
+ }
41
+ function E(n) {
42
+ return new t("base", n);
43
+ }
44
+ function C(n) {
45
+ return new t("bdi", n);
46
+ }
47
+ function D(n) {
48
+ return new t("bdo", n);
49
+ }
50
+ function F(n) {
51
+ return new t("blockquote", n);
52
+ }
53
+ function N(n) {
54
+ return new t("body", n);
55
+ }
56
+ function T(n) {
57
+ return new t("br", n);
58
+ }
59
+ function V(n) {
60
+ return new t("button", n);
61
+ }
62
+ function z(n) {
63
+ return new t("canvas", n);
64
+ }
65
+ function A(n) {
66
+ return new t("caption", n);
67
+ }
68
+ function B(n) {
69
+ return new t("cite", n);
70
+ }
71
+ function G(n) {
72
+ return new t("code", n);
73
+ }
74
+ function H(n) {
75
+ return new t("col", n);
76
+ }
77
+ function I(n) {
78
+ return new t("colgroup", n);
79
+ }
80
+ function J(n) {
81
+ return new t("data", n);
82
+ }
83
+ function K(n) {
84
+ return new t("datalist", n);
85
+ }
86
+ function L(n) {
87
+ return new t("dd", n);
88
+ }
89
+ function M(n) {
90
+ return new t("del", n);
91
+ }
92
+ function O(n) {
93
+ return new t("details", n);
94
+ }
95
+ function P(n) {
96
+ return new t("dfn", n);
97
+ }
98
+ function Q(n) {
99
+ return new t("dialog", n);
100
+ }
101
+ function R(n) {
102
+ return new t("div", n);
103
+ }
104
+ function S(n) {
105
+ return new t("dl", n);
106
+ }
107
+ function U(n) {
108
+ return new t("dt", n);
109
+ }
110
+ function W(n) {
111
+ return new t("em", n);
112
+ }
113
+ function X(n) {
114
+ return new t("embed", n);
115
+ }
116
+ function Y(n) {
117
+ return new t("fieldset", n);
118
+ }
119
+ function Z(n) {
120
+ return new t("figcaption", n);
121
+ }
122
+ function _(n) {
123
+ return new t("figure", n);
124
+ }
125
+ function $(n) {
126
+ return new t("footer", n);
127
+ }
128
+ function j(n) {
129
+ return new t("form", n);
130
+ }
131
+ function nn(n) {
132
+ return new t("h1", n);
133
+ }
134
+ function tn(n) {
135
+ return new t("h2", n);
136
+ }
137
+ function en(n) {
138
+ return new t("h3", n);
139
+ }
140
+ function rn(n) {
141
+ return new t("h4", n);
142
+ }
143
+ function un(n) {
144
+ return new t("h5", n);
145
+ }
146
+ function an(n) {
147
+ return new t("h6", n);
148
+ }
149
+ function on(n) {
150
+ return new t("head", n);
151
+ }
152
+ function sn(n) {
153
+ return new t("header", n);
154
+ }
155
+ function cn(n) {
156
+ return new t("hgroup", n);
157
+ }
158
+ function fn(n) {
159
+ return new t("hr", n);
160
+ }
161
+ function wn(n) {
162
+ return new t("html", n);
163
+ }
164
+ function dn(n) {
165
+ return new t("i", n);
166
+ }
167
+ function ln(n) {
168
+ return new t("iframe", n);
169
+ }
170
+ function mn(n) {
171
+ return new t("img", n);
172
+ }
173
+ function pn(n) {
174
+ return new t("input", n);
175
+ }
176
+ function bn(n) {
177
+ return new t("ins", n);
178
+ }
179
+ function hn(n) {
180
+ return new t("kbd", n);
181
+ }
182
+ function gn(n) {
183
+ return new t("label", n);
184
+ }
185
+ function yn(n) {
186
+ return new t("legend", n);
187
+ }
188
+ function kn(n) {
189
+ return new t("li", n);
190
+ }
191
+ function vn(n) {
192
+ return new t("link", n);
193
+ }
194
+ function qn(n) {
195
+ return new t("main", n);
196
+ }
197
+ function xn(n) {
198
+ return new t("map", n);
199
+ }
200
+ function En(n) {
201
+ return new t("mark", n);
202
+ }
203
+ function Cn(n) {
204
+ return new t("menu", n);
205
+ }
206
+ function Dn(n) {
207
+ return new t("meta", n);
208
+ }
209
+ function Fn(n) {
210
+ return new t("meter", n);
211
+ }
212
+ function Nn(n) {
213
+ return new t("nav", n);
214
+ }
215
+ function Tn(n) {
216
+ return new t("noscript", n);
217
+ }
218
+ function Vn(n) {
219
+ return new t("object", n);
220
+ }
221
+ function zn(n) {
222
+ return new t("ol", n);
223
+ }
224
+ function An(n) {
225
+ return new t("optgroup", n);
226
+ }
227
+ function Bn(n) {
228
+ return new t("option", n);
229
+ }
230
+ function Gn(n) {
231
+ return new t("output", n);
232
+ }
233
+ function Hn(n) {
234
+ return new t("p", n);
235
+ }
236
+ function In(n) {
237
+ return new t("picture", n);
238
+ }
239
+ function Jn(n) {
240
+ return new t("pre", n);
241
+ }
242
+ function Kn(n) {
243
+ return new t("progress", n);
244
+ }
245
+ function Ln(n) {
246
+ return new t("q", n);
247
+ }
248
+ function Mn(n) {
249
+ return new t("rp", n);
250
+ }
251
+ function On(n) {
252
+ return new t("rt", n);
253
+ }
254
+ function Pn(n) {
255
+ return new t("ruby", n);
256
+ }
257
+ function Qn(n) {
258
+ return new t("s", n);
259
+ }
260
+ function Rn(n) {
261
+ return new t("samp", n);
262
+ }
263
+ function Sn(n) {
264
+ return new t("script", n);
265
+ }
266
+ function Un(n) {
267
+ return new t("search", n);
268
+ }
269
+ function Wn(n) {
270
+ return new t("section", n);
271
+ }
272
+ function Xn(n) {
273
+ return new t("select", n);
274
+ }
275
+ function Yn(n) {
276
+ return new t("slot", n);
277
+ }
278
+ function Zn(n) {
279
+ return new t("small", n);
280
+ }
281
+ function _n(n) {
282
+ return new t("source", n);
283
+ }
284
+ function $n(n) {
285
+ return new t("span", n);
286
+ }
287
+ function jn(n) {
288
+ return new t("strong", n);
289
+ }
290
+ function nt(n) {
291
+ return new t("style", {
292
+ style: n
293
+ });
294
+ }
295
+ function tt(n) {
296
+ return new t("sub", n);
297
+ }
298
+ function et(n) {
299
+ return new t("summary", n);
300
+ }
301
+ function rt(n) {
302
+ return new t("sup", n);
303
+ }
304
+ function ut(n) {
305
+ return new t("table", n);
306
+ }
307
+ function at(n) {
308
+ return new t("tbody", n);
309
+ }
310
+ function ot(n) {
311
+ return new t("td", n);
312
+ }
313
+ function it(n) {
314
+ return new t("template", n);
315
+ }
316
+ function st(n) {
317
+ return new t("textarea", n);
318
+ }
319
+ function ct(n) {
320
+ return new t("tfoot", n);
321
+ }
322
+ function ft(n) {
323
+ return new t("th", n);
324
+ }
325
+ function wt(n) {
326
+ return new t("thead", n);
327
+ }
328
+ function dt(n) {
329
+ return new t("time", n);
330
+ }
331
+ function lt(n) {
332
+ return new t("title", n);
333
+ }
334
+ function mt(n) {
335
+ return new t("tr", n);
336
+ }
337
+ function pt(n) {
338
+ return new t("track", n);
339
+ }
340
+ function bt(n) {
341
+ return new t("u", n);
342
+ }
343
+ function ht(n) {
344
+ return new t("ul", n);
345
+ }
346
+ function gt(n) {
347
+ return new t("var", n);
348
+ }
349
+ function yt(n) {
350
+ return new t("video", n);
351
+ }
352
+ function kt(n) {
353
+ return new t("wbr", n);
354
+ }
355
+ function vt(n) {
356
+ return new t(document.createDocumentFragment(), n);
357
+ }
358
+ function qt(n) {
359
+ return new t(document.createTextNode(""), n);
360
+ }
361
+ function xt(n) {
362
+ return new t("div", i(u({}, n), {
363
+ style: u({
364
+ display: "contents"
365
+ }, n == null ? void 0 : n.style)
366
+ }));
367
+ }
368
+ export {
369
+ pn as $,
370
+ O as A,
371
+ P as B,
372
+ Q as C,
373
+ R as D,
374
+ S as E,
375
+ U as F,
376
+ W as G,
377
+ X as H,
378
+ Y as I,
379
+ Z as J,
380
+ _ as K,
381
+ $ as L,
382
+ j as M,
383
+ nn as N,
384
+ tn as O,
385
+ en as P,
386
+ rn as Q,
387
+ un as R,
388
+ an as S,
389
+ on as T,
390
+ sn as U,
391
+ cn as V,
392
+ fn as W,
393
+ wn as X,
394
+ dn as Y,
395
+ ln as Z,
396
+ mn as _,
397
+ b as a,
398
+ bn as a0,
399
+ hn as a1,
400
+ gn as a2,
401
+ yn as a3,
402
+ kn as a4,
403
+ vn as a5,
404
+ qn as a6,
405
+ xn as a7,
406
+ En as a8,
407
+ Cn as a9,
408
+ $n as aA,
409
+ jn as aB,
410
+ nt as aC,
411
+ tt as aD,
412
+ et as aE,
413
+ rt as aF,
414
+ ut as aG,
415
+ at as aH,
416
+ ot as aI,
417
+ it as aJ,
418
+ st as aK,
419
+ ct as aL,
420
+ ft as aM,
421
+ wt as aN,
422
+ dt as aO,
423
+ lt as aP,
424
+ mt as aQ,
425
+ pt as aR,
426
+ bt as aS,
427
+ ht as aT,
428
+ gt as aU,
429
+ yt as aV,
430
+ kt as aW,
431
+ vt as aX,
432
+ qt as aY,
433
+ xt as aZ,
434
+ Dn as aa,
435
+ Fn as ab,
436
+ Nn as ac,
437
+ Tn as ad,
438
+ Vn as ae,
439
+ zn as af,
440
+ An as ag,
441
+ Bn as ah,
442
+ Gn as ai,
443
+ Hn as aj,
444
+ In as ak,
445
+ Jn as al,
446
+ Kn as am,
447
+ Ln as an,
448
+ Mn as ao,
449
+ On as ap,
450
+ Pn as aq,
451
+ Qn as ar,
452
+ Rn as as,
453
+ Sn as at,
454
+ Un as au,
455
+ Wn as av,
456
+ Xn as aw,
457
+ Yn as ax,
458
+ Zn as ay,
459
+ _n as az,
460
+ h as b,
461
+ g as c,
462
+ y as d,
463
+ p as e,
464
+ k as f,
465
+ v as g,
466
+ q as h,
467
+ x as i,
468
+ E as j,
469
+ C as k,
470
+ D as l,
471
+ F as m,
472
+ N as n,
473
+ T as o,
474
+ V as p,
475
+ z as q,
476
+ A as r,
477
+ B as s,
478
+ G as t,
479
+ H as u,
480
+ I as v,
481
+ J as w,
482
+ K as x,
483
+ L as y,
484
+ M as z
485
+ };
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("../Store-Cr3VaD9G.cjs");const t=require("../browser-CpzFX2xg.cjs"),o=require("../tags-CAfasCGV.cjs"),a=require("../createTheme-Cfaw9UmV.cjs"),r=a.createTheme({colorMain:"#1c1c1c",colorMainAux:"#282828",colorFont:"#ffffff",colorActive:"#00E5B0",borderRadius:"12px",borderRadiusSmall:"4px"},{prefix:"aptechka-"});if(t.isBrowser){const e=o.style({":root":r.style}).node;e.setAttribute("data-permanent",""),document.head.appendChild(e)}exports.aptechkaTheme=r;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("../Store-kzJycezD.cjs");const t=require("../browser-CpzFX2xg.cjs"),o=require("../tags-BBOGIzDK.cjs"),a=require("../createTheme-Cfaw9UmV.cjs"),r=a.createTheme({colorMain:"#1c1c1c",colorMainAux:"#282828",colorFont:"#ffffff",colorActive:"#00E5B0",borderRadius:"12px",borderRadiusSmall:"4px"},{prefix:"aptechka-"});if(t.isBrowser){const e=o.style({":root":r.style}).node;e.setAttribute("data-permanent",""),document.head.appendChild(e)}exports.aptechkaTheme=r;
@@ -1,6 +1,6 @@
1
- import "../Store-Qr3SNOSf.js";
1
+ import "../Store-Dsft7GtM.js";
2
2
  import { i as e } from "../browser-0zX67oeU.js";
3
- import { aD as r } from "../tags-D9lNDPX8.js";
3
+ import { aC as r } from "../tags-CefGDQtF.js";
4
4
  import { c as t } from "../createTheme-CHnsCgAr.js";
5
5
  const a = t(
6
6
  {
@@ -1,11 +1,10 @@
1
1
  import { Store } from '../store';
2
- import { CustomElement } from '../custom-element';
3
2
  import { StoreManagerType } from '../store/Store';
4
3
 
5
4
  export interface TweakerFieldParameters {
6
5
  store: Store<any, StoreManagerType>;
7
6
  }
8
- export declare class TweakerFieldElement extends CustomElement {
7
+ export declare class TweakerFieldElement extends HTMLElement {
9
8
  #private;
10
9
  constructor(parameters: TweakerFieldParameters);
11
10
  get key(): string;
@@ -1,4 +1,3 @@
1
- import { CustomElement } from '../custom-element';
2
1
  import { Store } from '../store';
3
2
  import { TweakerFieldElement } from './TweakerFieldElement';
4
3
  import { StoreBox } from './TweakerElement';
@@ -7,7 +6,7 @@ export interface TweakerFolderParameters {
7
6
  key: string;
8
7
  storeBox?: StoreBox;
9
8
  }
10
- export declare class TweakerFolderElement extends CustomElement {
9
+ export declare class TweakerFolderElement extends HTMLElement {
11
10
  #private;
12
11
  constructor(parameters: TweakerFolderParameters);
13
12
  get key(): string;
@@ -1,7 +1,6 @@
1
- import { CustomElement } from '../custom-element';
2
1
  import { Store } from '../store';
3
2
 
4
- export declare class TweakerStoreManagerElement<S extends Store<any, any>> extends CustomElement {
3
+ export declare class TweakerStoreManagerElement<S extends Store<any, any>> extends HTMLElement {
5
4
  #private;
6
5
  constructor(...stores: Array<S>);
7
6
  addStore(store: S): void;
@@ -1,10 +1,10 @@
1
- "use strict";var Ve=(t,e,r)=>{if(!e.has(t))throw TypeError("Cannot "+r)};var p=(t,e,r)=>(Ve(t,e,"read from private field"),r?r.call(t):e.get(t)),j=(t,e,r)=>{if(e.has(t))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(t):e.set(t,r)},C=(t,e,r,i)=>(Ve(t,e,"write to private field"),i?i.call(t,r):e.set(t,r),r);const Qe=require("../browser-CpzFX2xg.cjs"),b=require("../custom-element/index.cjs"),g=require("../Store-Cr3VaD9G.cjs"),Ue=require("../file-EevnUtRj.cjs"),et=require("../function-MthRj-GJ.cjs"),Ne=require("../gestures-DHLrn6Q8.cjs"),o=require("../tags-CAfasCGV.cjs"),z=require("../createStylesheet-BsMSWX0q.cjs"),tt=require("../Viewport-BBYt1Ivy.cjs"),c=require("../theme/index.cjs"),rt=require("../index-CzpP1Tg6.cjs"),st=require("../events-BGwqaxVW.cjs");require("../checkbox/index.cjs");const it=require("../math-GDWEqu7y.cjs"),Pe=require("../polyfills-CM4SCDTt.cjs"),qe=require("../element-resizer/index.cjs"),Ke='<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>',Ze='<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>',at='<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>',nt='<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>';var L,_,T;class ot{constructor(){j(this,L,void 0);j(this,_,void 0);j(this,T,void 0);this.scrollValue=0,C(this,L,""),C(this,_,[]),C(this,T,{}),C(this,L,g.storeRegistry.projectName+"-studio")}openPanel(e){p(this,_).includes(e)||p(this,_).push(e)}closePanel(e){C(this,_,p(this,_).filter(r=>r!==e))}isPanelOpened(e){return p(this,_).includes(e)}changedSizes(e){return p(this,T)[e]}changeSize(e,r){r?p(this,T)[e]=r:delete p(this,T)[e]}save(){const e={openedPanels:p(this,_),changedSizes:p(this,T),scrollValue:this.scrollValue};localStorage.setItem(p(this,L),JSON.stringify(e)),g.storeRegistry.saveState()}load(){g.storeRegistry.loadState();const e=localStorage.getItem(p(this,L));if(e)try{const r=JSON.parse(e);r.openedPanels&&C(this,_,r.openedPanels),r.changedSizes&&C(this,T,r.changedSizes),r.scrollValue&&(this.scrollValue=r.scrollValue)}catch(r){console.error(r)}}}L=new WeakMap,_=new WeakMap,T=new WeakMap;const w=new ot;var O;class N extends b.CustomElement{constructor(...r){super();j(this,O,void 0);C(this,O,r)}addStore(r){p(this,O).push(r)}get firstStore(){return p(this,O)[0]}get stores(){return p(this,O)}updateStores(r){p(this,O).forEach(i=>{i.current=r})}}O=new WeakMap;var lt=Object.defineProperty,ht=Object.getOwnPropertyDescriptor,ct=(t,e,r,i)=>{for(var s=i>1?void 0:i?ht(e,r):e,n=t.length-1,a;n>=0;n--)(a=t[n])&&(s=(i?a(e,r,s):a(s))||s);return i&&s&&lt(e,r,s),s};const dt=z.createStylesheet({":host":{width:"100%",display:"inline-flex",height:"max-content"},"e-checkbox":{"--size":"calc(var(--height-input) * 0.8)",width:"var(--size)",height:"var(--size)",borderRadius:c.aptechkaTheme.borderRadiusSmall.var}});let ze=class extends N{constructor(...t){super(...t),this.openShadow(dt),o.element(this,{children:[o.element("e-checkbox",{onChange:e=>{this.updateStores(e.currentTarget.checked)},ref:e=>{this.firstStore.subscribe(r=>{e.checked=r.current})}})]})}};ze=ct([b.define("e-tweaker-boolean-manager")],ze);var pt=Object.defineProperty,ut=Object.getOwnPropertyDescriptor,gt=(t,e,r,i)=>{for(var s=i>1?void 0:i?ut(e,r):e,n=t.length-1,a;n>=0;n--)(a=t[n])&&(s=(i?a(e,r,s):a(s))||s);return i&&s&&pt(e,r,s),s};const vt=z.createStylesheet({":host":{width:"100%",display:"inline-flex",height:"max-content"},input:{width:"100%",height:"var(--height-input)",padding:"0",background:"none",borderRadius:c.aptechkaTheme.borderRadius.var,border:"none",blockSize:"unset"},"input::-webkit-color-swatch, input::-webkit-color-swatch-wrapper":{boxSizing:"border-box",padding:"0px",border:"none",borderRadius:c.aptechkaTheme.borderRadius.var,height:"calc(var(--height-input) * 0.93)"}});let Ee=class extends N{constructor(...t){super(...t),this.openShadow(vt),o.element(this,{children:[o.input({type:"color",value:this.firstStore,onInput:e=>{this.updateStores(e.currentTarget.value)}})]})}};Ee=gt([b.define("e-tweaker-color-manager")],Ee);var ft=Object.defineProperty,wt=Object.getOwnPropertyDescriptor,mt=(t,e,r,i)=>{for(var s=i>1?void 0:i?wt(e,r):e,n=t.length-1,a;n>=0;n--)(a=t[n])&&(s=(i?a(e,r,s):a(s))||s);return i&&s&&ft(e,r,s),s};const bt=z.createStylesheet({a:{color:"inherit",fontSize:"var(--font-size-small)"}});let Me=class extends N{constructor(...t){var e,r;super(...t),this.openShadow(bt),console.log(this.firstStore),o.element(this,{children:[o.a({href:this.firstStore,target:(r=(e=this.firstStore.passport)==null?void 0:e.manager)!=null&&r.sameWindow?"_self":"_blank",children:this.firstStore})]})}};Me=mt([b.define("e-tweaker-link-manager")],Me);var yt=Object.defineProperty,_t=Object.getOwnPropertyDescriptor,St=(t,e,r,i)=>{for(var s=i>1?void 0:i?_t(e,r):e,n=t.length-1,a;n>=0;n--)(a=t[n])&&(s=(i?a(e,r,s):a(s))||s);return i&&s&&yt(e,r,s),s},Le=(t,e,r)=>{if(!e.has(t))throw TypeError("Cannot "+r)},l=(t,e,r)=>(Le(t,e,"read from private field"),r?r.call(t):e.get(t)),u=(t,e,r)=>{if(e.has(t))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(t):e.set(t,r)},E=(t,e,r,i)=>(Le(t,e,"write to private field"),e.set(t,r),r),m=(t,e,r)=>(Le(t,e,"access private method"),r),A,ee,B,$,D,se,ie,P,q,ae,ne,F,V,oe,$e,be,Ie,te,ye,le;const kt=z.createStylesheet({":host":{width:"100%",display:"flex",alignItems:"center",gap:"var(--gap-small)"},".inputs-wrapper":{display:"grid",gap:"var(--gap-small)",width:"100%"},input:{boxSizing:"border-box",outline:"none",fontVariantNumeric:"tabular-nums",fontFamily:"inherit",color:"inherit",border:"none",fontSize:"var(--font-size-small)",width:"100%",height:"var(--height-input)",margin:"0",padding:"0 var(--gap-small)",backgroundColor:"rgba(255, 255, 255, 0.1)",borderRadius:c.aptechkaTheme.borderRadius.var},".drag":{position:"relative",width:"100%",height:"calc(var(--height-input) * 0.2)",display:"flex",alignItems:"center"},".drag::before":{content:'""',position:"absolute",left:"0",width:"100%",zIndex:"-1",height:"1px",borderBottom:`1px solid ${c.aptechkaTheme.colorFont.var}`,transform:"translateY(-50%)",opacity:"0.3"},":host(.infinite) .drag::before":{borderBottom:`1px dashed ${c.aptechkaTheme.colorFont.var}`},".drag-knob":{"--size":"calc(var(--height-input) * 0.4)",width:"var(--size)",height:"var(--size)"},".drag-knob-inner":{width:"100%",height:"100%",backgroundColor:c.aptechkaTheme.colorFont.var,borderRadius:c.aptechkaTheme.borderRadiusSmall.var,transition:"opacity var(--duration-short)"},":host(.infinite) .grabbing .drag-knob-inner":{opacity:.3}});let Oe=class extends N{constructor(...t){var e,r,i,s,n,a,W,K;super(...t),u(this,F),u(this,oe),u(this,be),u(this,te),u(this,A,[]),u(this,ee,[]),u(this,B,void 0),u(this,$,void 0),u(this,D,void 0),u(this,se,void 0),u(this,ie,void 0),u(this,P,void 0),u(this,q,!1),u(this,ae,Z=>{const y=m(this,F,V).call(this,Z);return y.map((v,H)=>{const Se=typeof v=="string"?parseFloat(v)||l(this,$):v,S=it.clamp(Se,l(this,$),l(this,D)),ke=Pe.toStep(S,l(this,B));y[H]=ke}),l(this,ie)==="number"?y[0]:y}),u(this,ne,()=>{m(this,F,V).call(this).map((Z,y)=>{const v=l(this,A)[y];v&&(v.value=(Z||0).toString())}),m(this,oe,$e).call(this)}),u(this,le,()=>{m(this,oe,$e).call(this)}),this.openShadow(kt),E(this,$,Pe.nullishCoalescing((r=(e=this.firstStore.passport)==null?void 0:e.manager)==null?void 0:r.min,-1/0)),E(this,D,Pe.nullishCoalescing((s=(i=this.firstStore.passport)==null?void 0:i.manager)==null?void 0:s.max,1/0)),E(this,B,((a=(n=this.firstStore.passport)==null?void 0:n.manager)==null?void 0:a.step)||.01),E(this,se,((K=(W=this.firstStore.passport)==null?void 0:W.manager)==null?void 0:K.ease)||1),E(this,ie,Array.isArray(this.firstStore.current)?"array":"number"),E(this,P,isFinite(l(this,D))&&isFinite(l(this,$))),o.element(this,{class:l(this,P)?"":"infinite",children:m(this,F,V).call(this).map((Z,y)=>o.div({class:"inputs-wrapper",children:[o.input({type:"number",step:l(this,B),min:l(this,$),max:l(this,D),ref:v=>l(this,A).push(v),value:Z,onChange:()=>{this.updateStores(l(this,A).map(v=>parseFloat(v.value)))}}),o.div({class:"drag",children:[o.div({class:"drag-knob",ref:v=>l(this,ee).push(v),onPointerdown:v=>{v.preventDefault(),E(this,q,!0);const H=m(this,F,V).call(this),Se=H[y],S=l(this,ee)[y],ke=l(this,A)[y];if(S&&ke){const xe=S.parentElement,Je=m(this,be,Ie).call(this);xe.classList.add("grabbing"),Ne.setupDrag(Ce=>{const Ae=Ce.x-v.x,Be=l(this,P)?xe.offsetWidth/(Je||1):1,Xe=Se+Ae/Be*l(this,se);if(H[y]=Xe,!l(this,P)){const Ye=m(this,te,ye).call(this,S,0);S.style.transform=`translateX(${Ye+Ae}px)`}this.updateStores([...H])},()=>{if(E(this,q,!1),!l(this,P)){const Ce=m(this,te,ye).call(this,S,0);S.style.transition="transform 0.1s",S.style.transform=`translateX(${Ce}px)`,xe.classList.remove("grabbing"),setTimeout(()=>{S.style.transition=""},100)}})}},children:o.div({class:"drag-knob-inner"})})]})]}))})}connectedCallback(){this.firstStore.addMiddleware(l(this,ae)),this.firstStore.subscribe(l(this,ne)),qe.elementResizer.subscribe(this,l(this,le))}disconnectedCallback(){this.firstStore.removeMiddleware(l(this,ae)),this.firstStore.unsubscribe(l(this,ne)),qe.elementResizer.unsubscribe(l(this,le))}};A=new WeakMap;ee=new WeakMap;B=new WeakMap;$=new WeakMap;D=new WeakMap;se=new WeakMap;ie=new WeakMap;P=new WeakMap;q=new WeakMap;ae=new WeakMap;ne=new WeakMap;F=new WeakSet;V=function(t=this.firstStore.current){return Array.isArray(t)?t:[t]};oe=new WeakSet;$e=function(){m(this,F,V).call(this).map((t,e)=>{const r=l(this,ee)[e];if(r&&(!l(this,q)||l(this,q)&&l(this,P))){const i=m(this,te,ye).call(this,r,t);r.style.transform=`translateX(${i}px)`}})};be=new WeakSet;Ie=function(){return l(this,P)?l(this,D)-l(this,$):0};te=new WeakSet;ye=function(t,e){const r=t.parentElement,i=m(this,be,Ie).call(this),s=i?e/i:.5;return(r.offsetWidth-t.offsetWidth)*s};le=new WeakMap;Oe=St([b.define("e-tweaker-number-manager")],Oe);var xt=Object.defineProperty,Ct=Object.getOwnPropertyDescriptor,Pt=(t,e,r,i)=>{for(var s=i>1?void 0:i?Ct(e,r):e,n=t.length-1,a;n>=0;n--)(a=t[n])&&(s=(i?a(e,r,s):a(s))||s);return i&&s&&xt(e,r,s),s};const Tt=z.createStylesheet({"e-select":{display:"block",width:"100%","--arrow-color":c.aptechkaTheme.colorFont.var},"e-select-head":{width:"100%",height:"var(--height-input)",display:"flex",alignItems:"center",justifyContent:"space-between",fontSize:"var(--font-size-small)"},"e-select-option":{height:"var(--height-input)",transitionDuration:"var(--duration-short)",transitionProperty:"color",fontSize:"var(--font-size-small)"},"e-select-option:hover":{color:c.aptechkaTheme.colorActive.var},svg:{width:"16px",height:"16px",fill:c.aptechkaTheme.colorFont.var,transitionProperty:"transform",transitionDuration:"var(--duration-short)"},".opened svg":{transform:"scaleY(-1)"}});let We=class extends N{constructor(...t){var r,i;super(...t),this.openShadow(Tt);const e=((i=(r=this.firstStore.passport)==null?void 0:r.manager)==null?void 0:i.variants)||[];o.element(this,{children:o.element("e-select",{value:this.firstStore,onChange:s=>{this.updateStores(s.currentTarget.value)},lightChildren:[o.element("e-select-head",{lightChildren:[o.span({"data-value-holder":""})]}),...e.map((s,n)=>o.element("e-select-option",{lightChildren:s,default:n===0?!0:null}))]})})}};We=Pt([b.define("e-tweaker-select-manager")],We);var zt=Object.defineProperty,Et=Object.getOwnPropertyDescriptor,Mt=(t,e,r,i)=>{for(var s=i>1?void 0:i?Et(e,r):e,n=t.length-1,a;n>=0;n--)(a=t[n])&&(s=(i?a(e,r,s):a(s))||s);return i&&s&&zt(e,r,s),s};const $t=z.createStylesheet({":host":{width:"100%",display:"flex",alignItems:"center"},input:{boxSizing:"border-box",outline:"none",fontVariantNumeric:"tabular-nums",fontFamily:"inherit",color:"inherit",border:"none",fontSize:"var(--font-size-small)",height:"var(--height-input)",width:"100%",margin:"0",padding:"0 var(--gap-small)",backgroundColor:"rgba(255, 255, 255, 0.1)",borderRadius:c.aptechkaTheme.borderRadius.var}});let Re=class extends N{constructor(...t){super(...t),this.openShadow($t),o.element(this,{children:[o.input({class:"text-input",type:"string",value:this.firstStore,onChange:e=>{this.updateStores(e.currentTarget.value)}})]})}};Re=Mt([b.define("e-tweaker-string-manager")],Re);const Ot={boolean:ze,color:Ee,link:Me,number:Oe,select:We,string:Re};var Wt=Object.defineProperty,Rt=Object.getOwnPropertyDescriptor,Dt=(t,e,r,i)=>{for(var s=i>1?void 0:i?Rt(e,r):e,n=t.length-1,a;n>=0;n--)(a=t[n])&&(s=(i?a(e,r,s):a(s))||s);return i&&s&&Wt(e,r,s),s},He=(t,e,r)=>{if(!e.has(t))throw TypeError("Cannot "+r)},d=(t,e,r)=>(He(t,e,"read from private field"),r?r.call(t):e.get(t)),R=(t,e,r)=>{if(e.has(t))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(t):e.set(t,r)},I=(t,e,r,i)=>(He(t,e,"write to private field"),e.set(t,r),r),k,X,Y,Q,U,he,ce;const Ft=z.createStylesheet({":host":{display:"grid",gridAutoFlow:"column",gridTemplateColumns:"0.5fr 1fr",alignItems:"center",color:c.aptechkaTheme.colorFont.var,gap:"var(--gap-medium)"},":host(.disabled)":{pointerEvents:"none",opacity:.5},".head":{fontSize:"var(--font-size-medium)",display:"flex",alignItems:"center",gap:"var(--gap-extra-small)"},".head-buttons":{display:"flex"},".head-button":{width:"14px",height:"14px",padding:"0",margin:"0",border:"none",background:"none",fill:c.aptechkaTheme.colorFont.var,transitionDuration:"var(--duration-short)",transitionProperty:"fill, opacity",opacity:"0"},":host(:hover) .head-button":{opacity:"1"},".head-button:hover":{fill:c.aptechkaTheme.colorActive.var},".head-button svg":{width:"100%",height:"100%"}});let _e=class extends b.CustomElement{constructor(t){var r,i,s,n;super(),R(this,k,[]),R(this,X,void 0),R(this,Y,void 0),R(this,Q,!1),R(this,U,void 0),R(this,he,()=>{g.activeStores.current.find(a=>d(this,k).includes(a))||this.remove()}),R(this,ce,a=>{d(this,Q)&&((a.metaKey||a.ctrlKey)&&a.code==="KeyC"?navigator.clipboard.writeText(d(this,k)[0].current):(a.metaKey||a.ctrlKey)&&a.code==="KeyR"&&(d(this,k).forEach(W=>{W.reset()}),a.preventDefault()))}),I(this,k,[t.store]),I(this,X,t.store.passport.name),I(this,Y,d(this,X).split(".").slice(-1).toString());const e=((i=(r=t.store.passport)==null?void 0:r.manager)==null?void 0:i.type)||"string";I(this,U,new Ot[e](d(this,k)[0])),this.openShadow(Ft),o.element(this,{class:{disabled:((n=(s=t.store.passport)==null?void 0:s.manager)==null?void 0:n.disabled)||!1},onPointerleave:()=>{I(this,Q,!1)},onPointerenter:()=>{I(this,Q,!0)},children:[o.div({class:"head",children:[o.div({class:"name",children:d(this,Y)+":"}),o.div({class:"head-buttons",children:[o.button({class:"head-button",children:Ze,onClick:()=>{navigator.clipboard.writeText(d(this,k)[0].current)}}),o.button({class:"head-button",children:Ke,onClick:()=>{d(this,k).forEach(a=>{a.reset()})}})]})]}),d(this,U)]})}get key(){return d(this,X)}get name(){return d(this,Y)}get stores(){return d(this,k)}addStore(t){d(this,U).addStore(t)}connectedCallback(){g.activeStores.subscribe(d(this,he)),addEventListener("keydown",d(this,ce)),st.dispatchSizeChangeEvent(this)}disconnectedCallback(){g.activeStores.unsubscribe(d(this,he)),removeEventListener("keydown",d(this,ce))}};k=new WeakMap;X=new WeakMap;Y=new WeakMap;Q=new WeakMap;U=new WeakMap;he=new WeakMap;ce=new WeakMap;_e=Dt([b.define("e-tweaker-field")],_e);var Lt=Object.defineProperty,It=Object.getOwnPropertyDescriptor,At=(t,e,r,i)=>{for(var s=i>1?void 0:i?It(e,r):e,n=t.length-1,a;n>=0;n--)(a=t[n])&&(s=(i?a(e,r,s):a(s))||s);return i&&s&&Lt(e,r,s),s},je=(t,e,r)=>{if(!e.has(t))throw TypeError("Cannot "+r)},h=(t,e,r)=>(je(t,e,"read from private field"),r?r.call(t):e.get(t)),M=(t,e,r)=>{if(e.has(t))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(t):e.set(t,r)},G=(t,e,r,i)=>(je(t,e,"write to private field"),e.set(t,r),r),x,de,f,pe,ue,ge,ve,De;const Vt=z.createStylesheet({".wrapper":{boxSizing:"border-box",backgroundColor:"rgba(255, 255, 255, 0.1)",borderRadius:c.aptechkaTheme.borderRadius.var},".head":{boxSizing:"border-box",width:"100%",height:"var(--tweaker-folder-height)",paddingLeft:"var(--gap-medium)",paddingRight:"var(--gap-medium)",display:"flex",alignItems:"center",justifyContent:"space-between",backgroundColor:c.aptechkaTheme.colorMainAux.var,borderRadius:c.aptechkaTheme.borderRadius.var},".name":{fontSize:"var(--font-size-large)",color:c.aptechkaTheme.colorFont.var},".body":{display:"none",overflow:"hidden","@supports (height: calc-size(auto))":{height:"0"}},":host(.transition-allowed) .body":{transition:"height var(--duration-short), display var(--duration-short) allow-discrete"},":host(.opened) .body":{height:"calc-size(auto)",display:"block","@starting-style":{height:"0"}},".body-content":{boxSizing:"border-box",padding:"var(--gap-large)",display:"grid",gap:"var(--gap-medium)"},".arrow":{width:"20px",height:"20px",fill:c.aptechkaTheme.colorFont.var,transition:"transform var(--duration-short)"},".opened .arrow":{transform:"scaleY(-1)"}});let re=class extends b.CustomElement{constructor(t){super(),M(this,x,void 0),M(this,de,new g.Store(null)),M(this,f,new g.Store([])),M(this,pe,void 0),M(this,ue,null),M(this,ge,null),M(this,ve,null),M(this,De,e=>{let r=[],i=[];e.forEach(s=>{r=[...r,...s.removedNodes],i=[...i,...s.addedNodes]}),h(this,f).current=h(this,f).current.filter(s=>!r.includes(s)),h(this,x)&&!h(this,f).current.length&&!i.length&&this.remove()}),this.openShadow(Vt),G(this,x,t.key),G(this,pe,new MutationObserver(h(this,De))),o.element(this,{children:[o.div({class:"wrapper",children:[o.div({class:"head",onClick:e=>{this.classList.toggle("opened"),this.classList.contains("opened")?w.openPanel(h(this,x)):w.closePanel(h(this,x))},children:[h(this,x)?o.div({class:"name",children:[h(this,x).split(".").slice(-1).toString()]}):null,h(this,de),o.element(rt.arrowIcon,{class:"arrow"})]}),o.div({class:"body",ref:e=>{G(this,ue,e)},children:o.div({class:"body-content",children:h(this,f),ref:e=>{G(this,ge,e),G(this,ve,e.firstElementChild)}})})]})]}),t!=null&&t.storeBox&&this.handleStore(t.storeBox)}get key(){return h(this,x)}get head(){return h(this,de)}get content(){return h(this,f)}get bodyElement(){return h(this,ue)}get contentElement(){return h(this,ge)}connectedCallback(){w.isPanelOpened(h(this,x))&&this.classList.add("opened"),setTimeout(()=>{this.classList.add("transition-allowed")}),h(this,pe).observe(h(this,ve),{childList:!0})}handleStore(t){if(t.remainingFolders.length){const r=t.store.passport.name.split("."),i=r.slice(0,r.length-t.remainingFolders.length).join("."),s=h(this,f).current.find(n=>n.key===i);s instanceof re?s.handleStore({store:t.store,remainingFolders:t.remainingFolders.slice(1)}):h(this,f).current=[...h(this,f).current,new re({key:i,storeBox:{store:t.store,remainingFolders:t.remainingFolders.slice(1)}})]}else{const e=h(this,f).current.find(r=>r.key===t.store.passport.name);e instanceof _e?e.addStore(t.store):h(this,f).current=[...h(this,f).current,new _e({store:t.store})]}}};x=new WeakMap;de=new WeakMap;f=new WeakMap;pe=new WeakMap;ue=new WeakMap;ge=new WeakMap;ve=new WeakMap;De=new WeakMap;re=At([b.define("e-tweaker-folder")],re);var qt=Object.defineProperty,Nt=Object.getOwnPropertyDescriptor,Kt=(t,e,r,i)=>{for(var s=i>1?void 0:i?Nt(e,r):e,n=t.length-1,a;n>=0;n--)(a=t[n])&&(s=(i?a(e,r,s):a(s))||s);return i&&s&&qt(e,r,s),s},Ge=(t,e,r)=>{if(!e.has(t))throw TypeError("Cannot "+r)},J=(t,e,r)=>(Ge(t,e,"read from private field"),e.get(t)),Te=(t,e,r)=>{if(e.has(t))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(t):e.set(t,r)},Zt=(t,e,r,i)=>(Ge(t,e,"write to private field"),e.set(t,r),r),fe,we,me;const Ht=z.createStylesheet({":host":{"--tweaker-width":"550px","--tweaker-offset":"20px","--tweaker-folder-height":"35px","--height-input":"25px","--gap-large":"12px","--gap-medium":"10px","--gap-small":"8px","--gap-extra-small":"4px","--font-size-large":"16px","--font-size-medium":"14px","--font-size-small":"12px","--duration-short":"0.2s",fontFamily:"sans-serif",position:"absolute",top:"var(--tweaker-offset)",right:"var(--tweaker-offset)",width:"var(--tweaker-width)",backgroundColor:c.aptechkaTheme.colorMain.var,borderRadius:c.aptechkaTheme.borderRadius.var,transition:"opacity 0.1s",zIndex:"100",opacity:"0.1"},":host(:hover)":{opacity:"1 !important"},".resize":{position:"absolute",left:"0",top:"0",width:"calc(var(--tweaker-width) * 0.025)",height:"100%",zIndex:"1",cursor:"ew-resize"},".tweaker-buttons":{display:"flex",alignItems:"center",gap:"var(--gap-extra-small)"},".tweaker-button":{width:"18px",height:"18px",padding:"0",margin:"0",background:"none",border:"none",fill:c.aptechkaTheme.colorFont.var,transitionProperty:"fill",transitionDuration:"var(--duration-short)"},".tweaker-button:hover":{fill:c.aptechkaTheme.colorActive.var},".tweaker-button svg":{width:"100%",height:"100%"},":host .body-content":{maxHeight:`calc(
1
+ "use strict";var me=(h,r,e)=>{if(!r.has(h))throw TypeError("Cannot "+e)};var t=(h,r,e)=>(me(h,r,"read from private field"),e?e.call(h):r.get(h)),a=(h,r,e)=>{if(r.has(h))throw TypeError("Cannot add the same private member more than once");r instanceof WeakSet?r.add(h):r.set(h,e)},o=(h,r,e,s)=>(me(h,r,"write to private field"),s?s.call(h,e):r.set(h,e),e);var m=(h,r,e)=>(me(h,r,"access private method"),e);const He=require("../browser-CpzFX2xg.cjs"),p=require("../Store-kzJycezD.cjs"),Ke=require("../file-EevnUtRj.cjs"),Oe=require("../function-MthRj-GJ.cjs"),xe=require("../gestures-DHLrn6Q8.cjs"),n=require("../tags-BBOGIzDK.cjs"),E=require("../createStylesheet-Di9WRypw.cjs"),Ze=require("../Viewport-DRNfjjDY.cjs"),c=require("../theme/index.cjs"),je=require("../index-DQo2-dnB.cjs"),Je=require("../events-BGwqaxVW.cjs");require("../checkbox/index.cjs");const We=require("../math-GDWEqu7y.cjs"),fe=require("../polyfills-CM4SCDTt.cjs"),Se=require("../element-resizer/index.cjs"),Ee='<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>',Ce='<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>',_e='<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>',Be='<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>';var L,w,S;class Xe{constructor(){a(this,L,void 0);a(this,w,void 0);a(this,S,void 0);this.scrollValue=0,o(this,L,""),o(this,w,[]),o(this,S,{}),o(this,L,p.storeRegistry.projectName+"-studio")}openPanel(r){t(this,w).includes(r)||t(this,w).push(r)}closePanel(r){o(this,w,t(this,w).filter(e=>e!==r))}isPanelOpened(r){return t(this,w).includes(r)}changedSizes(r){return t(this,S)[r]}changeSize(r,e){e?t(this,S)[r]=e:delete t(this,S)[r]}save(){const r={openedPanels:t(this,w),changedSizes:t(this,S),scrollValue:this.scrollValue};localStorage.setItem(t(this,L),JSON.stringify(r)),p.storeRegistry.saveState()}load(){p.storeRegistry.loadState();const r=localStorage.getItem(t(this,L));if(r)try{const e=JSON.parse(r);e.openedPanels&&o(this,w,e.openedPanels),e.changedSizes&&o(this,S,e.changedSizes),e.scrollValue&&(this.scrollValue=e.scrollValue)}catch(e){console.error(e)}}}L=new WeakMap,w=new WeakMap,S=new WeakMap;const f=new Xe;var T;class O extends HTMLElement{constructor(...e){super();a(this,T,void 0);o(this,T,e)}addStore(e){t(this,T).push(e)}get firstStore(){return t(this,T)[0]}get stores(){return t(this,T)}updateStores(e){t(this,T).forEach(s=>{s.current=e})}}T=new WeakMap;const Ye=E.createStylesheet({":host":{width:"100%",display:"inline-flex",height:"max-content"},"e-checkbox":{"--size":"calc(var(--height-input) * 0.8)",width:"var(--size)",height:"var(--size)",borderRadius:c.aptechkaTheme.borderRadiusSmall.var}});class ze extends O{constructor(...r){super(...r),this.attachShadow({mode:"open"}).adoptedStyleSheets.push(Ye),n.element(this,{children:[n.element("e-checkbox",{onChange:s=>{this.updateStores(s.currentTarget.checked)},ref:s=>{this.firstStore.subscribe(i=>{s.checked=i.current})}})]})}}customElements.get("e-tweaker-boolean-manager")||customElements.define("e-tweaker-boolean-manager",ze);const Ge=E.createStylesheet({":host":{width:"100%",display:"inline-flex",height:"max-content"},input:{width:"100%",height:"var(--height-input)",padding:"0",background:"none",borderRadius:c.aptechkaTheme.borderRadius.var,border:"none",blockSize:"unset"},"input::-webkit-color-swatch, input::-webkit-color-swatch-wrapper":{boxSizing:"border-box",padding:"0px",border:"none",borderRadius:c.aptechkaTheme.borderRadius.var,height:"calc(var(--height-input) * 0.93)"}});class Te extends O{constructor(...r){super(...r),this.attachShadow({mode:"open"}).adoptedStyleSheets.push(Ge),n.element(this,{children:[n.input({type:"color",value:this.firstStore,onInput:s=>{this.updateStores(s.currentTarget.value)}})]})}}customElements.get("e-tweaker-color-manager")||customElements.define("e-tweaker-color-manager",Te);const Qe=E.createStylesheet({a:{color:"inherit",fontSize:"var(--font-size-small)"}});class Re extends O{constructor(...r){var s,i;super(...r),this.attachShadow({mode:"open"}).adoptedStyleSheets.push(Qe),console.log(this.firstStore),n.element(this,{children:[n.a({href:this.firstStore,target:(i=(s=this.firstStore.passport)==null?void 0:s.manager)!=null&&i.sameWindow?"_self":"_blank",children:this.firstStore})]})}}customElements.get("e-tweaker-link-manager")||customElements.define("e-tweaker-link-manager",Re);const Ue=E.createStylesheet({":host":{width:"100%",display:"flex",alignItems:"center",gap:"var(--gap-small)"},".inputs-wrapper":{display:"grid",gap:"var(--gap-small)",width:"100%"},input:{boxSizing:"border-box",outline:"none",fontVariantNumeric:"tabular-nums",fontFamily:"inherit",color:"inherit",border:"none",fontSize:"var(--font-size-small)",width:"100%",height:"var(--height-input)",margin:"0",padding:"0 var(--gap-small)",backgroundColor:"rgba(255, 255, 255, 0.1)",borderRadius:c.aptechkaTheme.borderRadius.var},".drag":{position:"relative",width:"100%",height:"calc(var(--height-input) * 0.2)",display:"flex",alignItems:"center"},".drag::before":{content:'""',position:"absolute",left:"0",width:"100%",zIndex:"-1",height:"1px",borderBottom:`1px solid ${c.aptechkaTheme.colorFont.var}`,transform:"translateY(-50%)",opacity:"0.3"},":host(.infinite) .drag::before":{borderBottom:`1px dashed ${c.aptechkaTheme.colorFont.var}`},".drag-knob":{"--size":"calc(var(--height-input) * 0.4)",width:"var(--size)",height:"var(--size)"},".drag-knob-inner":{width:"100%",height:"100%",backgroundColor:c.aptechkaTheme.colorFont.var,borderRadius:c.aptechkaTheme.borderRadiusSmall.var,transition:"opacity var(--duration-short)"},":host(.infinite) .grabbing .drag-knob-inner":{opacity:.3}});var P,q,N,x,R,j,J,y,I,W,_,F,V,B,we,X,be,$,le,Y;class Fe extends O{constructor(...e){var i,l,d,u,k,M,Z,ke;super(...e);a(this,F);a(this,B);a(this,X);a(this,$);a(this,P,[]);a(this,q,[]);a(this,N,void 0);a(this,x,void 0);a(this,R,void 0);a(this,j,void 0);a(this,J,void 0);a(this,y,void 0);a(this,I,!1);a(this,W,e=>{const s=m(this,F,V).call(this,e);return s.map((i,l)=>{const d=typeof i=="string"?parseFloat(i)||t(this,x):i,u=We.clamp(d,t(this,x),t(this,R)),k=fe.toStep(u,t(this,N));s[l]=k}),t(this,J)==="number"?s[0]:s});a(this,_,()=>{m(this,F,V).call(this).map((e,s)=>{const i=t(this,P)[s];i&&(i.value=(e||0).toString())}),m(this,B,we).call(this)});a(this,Y,()=>{m(this,B,we).call(this)});this.attachShadow({mode:"open"}).adoptedStyleSheets.push(Ue),o(this,x,fe.nullishCoalescing((l=(i=this.firstStore.passport)==null?void 0:i.manager)==null?void 0:l.min,-1/0)),o(this,R,fe.nullishCoalescing((u=(d=this.firstStore.passport)==null?void 0:d.manager)==null?void 0:u.max,1/0)),o(this,N,((M=(k=this.firstStore.passport)==null?void 0:k.manager)==null?void 0:M.step)||.01),o(this,j,((ke=(Z=this.firstStore.passport)==null?void 0:Z.manager)==null?void 0:ke.ease)||1),o(this,J,Array.isArray(this.firstStore.current)?"array":"number"),o(this,y,isFinite(t(this,R))&&isFinite(t(this,x))),n.element(this,{class:t(this,y)?"":"infinite",children:m(this,F,V).call(this).map((Ie,oe)=>n.div({class:"inputs-wrapper",children:[n.input({type:"number",step:t(this,N),min:t(this,x),max:t(this,R),ref:C=>t(this,P).push(C),value:Ie,onChange:()=>{this.updateStores(t(this,P).map(C=>parseFloat(C.value)))}}),n.div({class:"drag",children:[n.div({class:"drag-knob",ref:C=>t(this,q).push(C),onPointerdown:C=>{C.preventDefault(),o(this,I,!0);const ue=m(this,F,V).call(this),Ve=ue[oe],z=t(this,q)[oe],qe=t(this,P)[oe];if(z&&qe){const pe=z.parentElement,Ne=m(this,X,be).call(this);pe.classList.add("grabbing"),xe.setupDrag(ge=>{const ye=ge.x-C.x,$e=t(this,y)?pe.offsetWidth/(Ne||1):1,Ae=Ve+ye/$e*t(this,j);if(ue[oe]=Ae,!t(this,y)){const De=m(this,$,le).call(this,z,0);z.style.transform=`translateX(${De+ye}px)`}this.updateStores([...ue])},()=>{if(o(this,I,!1),!t(this,y)){const ge=m(this,$,le).call(this,z,0);z.style.transition="transform 0.1s",z.style.transform=`translateX(${ge}px)`,pe.classList.remove("grabbing"),setTimeout(()=>{z.style.transition=""},100)}})}},children:n.div({class:"drag-knob-inner"})})]})]}))})}connectedCallback(){this.firstStore.addMiddleware(t(this,W)),this.firstStore.subscribe(t(this,_)),Se.elementResizer.subscribe(this,t(this,Y))}disconnectedCallback(){this.firstStore.removeMiddleware(t(this,W)),this.firstStore.unsubscribe(t(this,_)),Se.elementResizer.unsubscribe(t(this,Y))}}P=new WeakMap,q=new WeakMap,N=new WeakMap,x=new WeakMap,R=new WeakMap,j=new WeakMap,J=new WeakMap,y=new WeakMap,I=new WeakMap,W=new WeakMap,_=new WeakMap,F=new WeakSet,V=function(e=this.firstStore.current){return Array.isArray(e)?e:[e]},B=new WeakSet,we=function(){m(this,F,V).call(this).map((e,s)=>{const i=t(this,q)[s];if(i&&(!t(this,I)||t(this,I)&&t(this,y))){const l=m(this,$,le).call(this,i,e);i.style.transform=`translateX(${l}px)`}})},X=new WeakSet,be=function(){return t(this,y)?t(this,R)-t(this,x):0},$=new WeakSet,le=function(e,s){const i=e.parentElement,l=m(this,X,be).call(this),d=l?s/l:.5;return(i.offsetWidth-e.offsetWidth)*d},Y=new WeakMap;customElements.get("e-tweaker-number-manager")||customElements.define("e-tweaker-number-manager",Fe);const et=E.createStylesheet({"e-select":{display:"block",width:"100%","--arrow-color":c.aptechkaTheme.colorFont.var},"e-select-head":{width:"100%",height:"var(--height-input)",display:"flex",alignItems:"center",justifyContent:"space-between",fontSize:"var(--font-size-small)"},"e-select-option":{height:"var(--height-input)",transitionDuration:"var(--duration-short)",transitionProperty:"color",fontSize:"var(--font-size-small)"},"e-select-option:hover":{color:c.aptechkaTheme.colorActive.var},svg:{width:"16px",height:"16px",fill:c.aptechkaTheme.colorFont.var,transitionProperty:"transform",transitionDuration:"var(--duration-short)"},".opened svg":{transform:"scaleY(-1)"}});class Me extends O{constructor(...r){var i,l;super(...r),this.attachShadow({mode:"open"}).adoptedStyleSheets.push(et);const s=((l=(i=this.firstStore.passport)==null?void 0:i.manager)==null?void 0:l.variants)||[];n.element(this,{children:n.element("e-select",{value:this.firstStore,onChange:d=>{this.updateStores(d.currentTarget.value)},lightChildren:[n.element("e-select-head",{lightChildren:[n.span({"data-value-holder":""})]}),...s.map((d,u)=>n.element("e-select-option",{lightChildren:d,default:u===0?!0:null}))]})})}}customElements.get("e-tweaker-select-manager")||customElements.define("e-tweaker-select-manager",Me);const tt=E.createStylesheet({":host":{width:"100%",display:"flex",alignItems:"center"},input:{boxSizing:"border-box",outline:"none",fontVariantNumeric:"tabular-nums",fontFamily:"inherit",color:"inherit",border:"none",fontSize:"var(--font-size-small)",height:"var(--height-input)",width:"100%",margin:"0",padding:"0 var(--gap-small)",backgroundColor:"rgba(255, 255, 255, 0.1)",borderRadius:c.aptechkaTheme.borderRadius.var}});class Le extends O{constructor(...r){super(...r),this.attachShadow({mode:"open"}).adoptedStyleSheets.push(tt),n.element(this,{children:[n.input({class:"text-input",type:"string",value:this.firstStore,onChange:s=>{this.updateStores(s.currentTarget.value)}})]})}}customElements.get("e-tweaker-string-manager")||customElements.define("e-tweaker-string-manager",Le);const st={boolean:ze,color:Te,link:Re,number:Fe,select:Me,string:Le},it=E.createStylesheet({":host":{display:"grid",gridAutoFlow:"column",gridTemplateColumns:"0.5fr 1fr",alignItems:"center",color:c.aptechkaTheme.colorFont.var,gap:"var(--gap-medium)"},":host(.disabled)":{pointerEvents:"none",opacity:.5},".head":{fontSize:"var(--font-size-medium)",display:"flex",alignItems:"center",gap:"var(--gap-extra-small)"},".head-buttons":{display:"flex"},".head-button":{width:"14px",height:"14px",padding:"0",margin:"0",border:"none",background:"none",fill:c.aptechkaTheme.colorFont.var,transitionDuration:"var(--duration-short)",transitionProperty:"fill, opacity",opacity:"0"},":host(:hover) .head-button":{opacity:"1"},".head-button:hover":{fill:c.aptechkaTheme.colorActive.var},".head-button svg":{width:"100%",height:"100%"}});var b,A,D,H,K,G,Q;class ve extends HTMLElement{constructor(e){var l,d,u,k;super();a(this,b,[]);a(this,A,void 0);a(this,D,void 0);a(this,H,!1);a(this,K,void 0);a(this,G,()=>{p.activeStores.current.find(e=>t(this,b).includes(e))||this.remove()});a(this,Q,e=>{t(this,H)&&((e.metaKey||e.ctrlKey)&&e.code==="KeyC"?navigator.clipboard.writeText(t(this,b)[0].current):(e.metaKey||e.ctrlKey)&&e.code==="KeyR"&&(t(this,b).forEach(s=>{s.reset()}),e.preventDefault()))});o(this,b,[e.store]),o(this,A,e.store.passport.name),o(this,D,t(this,A).split(".").slice(-1).toString());const s=((d=(l=e.store.passport)==null?void 0:l.manager)==null?void 0:d.type)||"string";o(this,K,new st[s](t(this,b)[0])),this.attachShadow({mode:"open"}).adoptedStyleSheets.push(it),n.element(this,{class:{disabled:((k=(u=e.store.passport)==null?void 0:u.manager)==null?void 0:k.disabled)||!1},onPointerleave:()=>{o(this,H,!1)},onPointerenter:()=>{o(this,H,!0)},children:[n.div({class:"head",children:[n.div({class:"name",children:t(this,D)+":"}),n.div({class:"head-buttons",children:[n.button({class:"head-button",children:Ce,onClick:()=>{navigator.clipboard.writeText(t(this,b)[0].current)}}),n.button({class:"head-button",children:Ee,onClick:()=>{t(this,b).forEach(M=>{M.reset()})}})]})]}),t(this,K)]})}get key(){return t(this,A)}get name(){return t(this,D)}get stores(){return t(this,b)}addStore(e){t(this,K).addStore(e)}connectedCallback(){p.activeStores.subscribe(t(this,G)),addEventListener("keydown",t(this,Q)),Je.dispatchSizeChangeEvent(this)}disconnectedCallback(){p.activeStores.unsubscribe(t(this,G)),removeEventListener("keydown",t(this,Q))}}b=new WeakMap,A=new WeakMap,D=new WeakMap,H=new WeakMap,K=new WeakMap,G=new WeakMap,Q=new WeakMap;customElements.get("e-tweaker-field")||customElements.define("e-tweaker-field",ve);const rt=E.createStylesheet({".wrapper":{boxSizing:"border-box",backgroundColor:"rgba(255, 255, 255, 0.1)",borderRadius:c.aptechkaTheme.borderRadius.var},".head":{boxSizing:"border-box",width:"100%",height:"var(--tweaker-folder-height)",paddingLeft:"var(--gap-medium)",paddingRight:"var(--gap-medium)",display:"flex",alignItems:"center",justifyContent:"space-between",backgroundColor:c.aptechkaTheme.colorMainAux.var,borderRadius:c.aptechkaTheme.borderRadius.var},".name":{fontSize:"var(--font-size-large)",color:c.aptechkaTheme.colorFont.var},".body":{display:"none",overflow:"hidden","@supports (height: calc-size(auto))":{height:"0"}},":host(.transition-allowed) .body":{transition:"height var(--duration-short), display var(--duration-short) allow-discrete"},":host(.opened) .body":{height:"calc-size(auto)",display:"block","@starting-style":{height:"0"}},".body-content":{boxSizing:"border-box",padding:"var(--gap-large)",display:"grid",gap:"var(--gap-medium)"},".arrow":{width:"20px",height:"20px",fill:c.aptechkaTheme.colorFont.var,transition:"transform var(--duration-short)"},".opened .arrow":{transform:"scaleY(-1)"}});var v,U,g,ee,te,se,ie,ce;const de=class de extends HTMLElement{constructor(e){super();a(this,v,void 0);a(this,U,new p.Store(null));a(this,g,new p.Store([]));a(this,ee,void 0);a(this,te,null);a(this,se,null);a(this,ie,null);a(this,ce,e=>{let s=[],i=[];e.forEach(l=>{s=[...s,...l.removedNodes],i=[...i,...l.addedNodes]}),t(this,g).current=t(this,g).current.filter(l=>!s.includes(l)),t(this,v)&&!t(this,g).current.length&&!i.length&&this.remove()});this.attachShadow({mode:"open"}).adoptedStyleSheets.push(rt),o(this,v,e.key),o(this,ee,new MutationObserver(t(this,ce))),n.element(this,{children:[n.div({class:"wrapper",children:[n.div({class:"head",onClick:i=>{this.classList.toggle("opened"),this.classList.contains("opened")?f.openPanel(t(this,v)):f.closePanel(t(this,v))},children:[t(this,v)?n.div({class:"name",children:[t(this,v).split(".").slice(-1).toString()]}):null,t(this,U),n.element(je.arrowIcon,{class:"arrow"})]}),n.div({class:"body",ref:i=>{o(this,te,i)},children:n.div({class:"body-content",children:t(this,g),ref:i=>{o(this,se,i),o(this,ie,i.firstElementChild)}})})]})]}),e!=null&&e.storeBox&&this.handleStore(e.storeBox)}get key(){return t(this,v)}get head(){return t(this,U)}get content(){return t(this,g)}get bodyElement(){return t(this,te)}get contentElement(){return t(this,se)}connectedCallback(){f.isPanelOpened(t(this,v))&&this.classList.add("opened"),setTimeout(()=>{this.classList.add("transition-allowed")}),t(this,ee).observe(t(this,ie),{childList:!0})}handleStore(e){if(e.remainingFolders.length){const i=e.store.passport.name.split("."),l=i.slice(0,i.length-e.remainingFolders.length).join("."),d=t(this,g).current.find(u=>u.key===l);d instanceof de?d.handleStore({store:e.store,remainingFolders:e.remainingFolders.slice(1)}):t(this,g).current=[...t(this,g).current,new de({key:l,storeBox:{store:e.store,remainingFolders:e.remainingFolders.slice(1)}})]}else{const s=t(this,g).current.find(i=>i.key===e.store.passport.name);s instanceof ve?s.addStore(e.store):t(this,g).current=[...t(this,g).current,new ve({store:e.store})]}}};v=new WeakMap,U=new WeakMap,g=new WeakMap,ee=new WeakMap,te=new WeakMap,se=new WeakMap,ie=new WeakMap,ce=new WeakMap;let he=de;customElements.get("e-tweaker-folder")||customElements.define("e-tweaker-folder",he);const nt=E.createStylesheet({":host":{"--tweaker-width":"550px","--tweaker-offset":"20px","--tweaker-folder-height":"35px","--height-input":"25px","--gap-large":"12px","--gap-medium":"10px","--gap-small":"8px","--gap-extra-small":"4px","--font-size-large":"16px","--font-size-medium":"14px","--font-size-small":"12px","--duration-short":"0.2s",fontFamily:"sans-serif",position:"absolute",top:"var(--tweaker-offset)",right:"var(--tweaker-offset)",width:"var(--tweaker-width)",backgroundColor:c.aptechkaTheme.colorMain.var,borderRadius:c.aptechkaTheme.borderRadius.var,transition:"opacity 0.1s",zIndex:"100",opacity:"0.1"},":host(:hover)":{opacity:"1 !important"},".resize":{position:"absolute",left:"0",top:"0",width:"calc(var(--tweaker-width) * 0.025)",height:"100%",zIndex:"1",cursor:"ew-resize"},".tweaker-buttons":{display:"flex",alignItems:"center",gap:"var(--gap-extra-small)"},".tweaker-button":{width:"18px",height:"18px",padding:"0",margin:"0",background:"none",border:"none",fill:c.aptechkaTheme.colorFont.var,transitionProperty:"fill",transitionDuration:"var(--duration-short)"},".tweaker-button:hover":{fill:c.aptechkaTheme.colorActive.var},".tweaker-button svg":{width:"100%",height:"100%"},":host .body-content":{maxHeight:`calc(
2
2
  100dvh -
3
3
  (
4
4
  var(--tweaker-offset) * 2 +
5
5
  var(--tweaker-folder-height)
6
6
  )
7
- )`,overflow:"hidden auto","-ms-overflow-style":"none","scrollbar-width":"none"},":host .body-content::-webkit-scrollbar":{display:"none"},[`@media ${tt.ViewportMediaRules["<=mobile"]}`]:{":host":{position:"absolute",top:"0",right:"0",width:"100% !important",borderTopLeftRadius:"0",borderTopRightRadius:"0"},":host .body-content":{maxHeight:`calc(
7
+ )`,overflow:"hidden auto","-ms-overflow-style":"none","scrollbar-width":"none"},":host .body-content::-webkit-scrollbar":{display:"none"},[`@media ${Ze.ViewportMediaRules["<=mobile"]}`]:{":host":{position:"absolute",top:"0",right:"0",width:"100% !important",borderTopLeftRadius:"0",borderTopRightRadius:"0"},":host .body-content":{maxHeight:`calc(
8
8
  100dvh -
9
9
  var(--tweaker-folder-height)
10
- )`}}});let Fe=class extends re{constructor(){super({key:""}),Te(this,fe,!1),Te(this,we,()=>{w.save()}),Te(this,me,et.debounce(()=>{g.activeStores.current.forEach(t=>{var e;if(t.passport&&!((e=t.passport.manager)!=null&&e.invisible)){const r=t.passport.name.split(".");this.handleStore({store:t,remainingFolders:r.length>1?r.slice(0,-1):[]})}}),J(this,fe)||(Zt(this,fe,!0),this.contentElement.scroll({top:w.scrollValue}),this.contentElement.addEventListener("scroll",()=>{w.scrollValue=this.contentElement.scrollTop}))},10)),w.load(),this.addStylesheet(Ht),this.head.current=[o.div({class:"tweaker-buttons",onClick:t=>{t.stopPropagation()},children:[o.button({class:"tweaker-button",children:Ke,onClick:()=>{g.storeRegistry.resetState()}}),o.button({class:["tweaker-button"],children:[Ze],onClick:()=>{navigator.clipboard.writeText(JSON.stringify(g.storeRegistry.getState()))}}),o.button({class:"tweaker-button",children:at,onClick:()=>{Ue.createJSONAndSave(g.storeRegistry.projectName,g.storeRegistry.getState())}}),o.label({class:"tweaker-button",children:[nt,o.input({type:"file",style:{display:"none"},onChange:t=>{var i;const r=(i=t.currentTarget.files)==null?void 0:i[0];if(r){const s=new FileReader;s.onload=n=>{var W,K;const a=(K=(W=n.target)==null?void 0:W.result)==null?void 0:K.toString();a&&g.storeRegistry.loadState(a)},s.readAsText(r)}}})]})]})],o.element(this.bodyElement,{children:[o.div({class:"resize",onPointerdown:t=>{t.preventDefault();const e=this.getBoundingClientRect(),r=this.contentElement.scrollTop;Ne.setupDrag(i=>{const s=t.x-i.x,n=Math.max(400,e.width+s);this.style.width=n+"px",w.changeSize("tweaker",n)},()=>{setTimeout(()=>{this.contentElement.scroll({top:r})},10)})},onDblclick:()=>{this.style.width="",w.changeSize("tweaker",null)}})]})}connectedCallback(){super.connectedCallback(),window.addEventListener("beforeunload",J(this,we)),g.activeStores.subscribe(J(this,me)),w.changedSizes("tweaker")&&(this.style.width=w.changedSizes("tweaker")+"px")}disconnectedCallback(){window.removeEventListener("beforeunload",J(this,we)),w.save(),g.activeStores.unsubscribe(J(this,me))}};fe=new WeakMap;we=new WeakMap;me=new WeakMap;Fe=Kt([b.define("e-tweaker")],Fe);Qe.isBrowser&&document.body.appendChild(new Fe);
10
+ )`}}});var re,ne,ae;class Pe extends he{constructor(){super({key:""});a(this,re,!1);a(this,ne,()=>{f.save()});a(this,ae,Oe.debounce(()=>{p.activeStores.current.forEach(e=>{var s;if(e.passport&&!((s=e.passport.manager)!=null&&s.invisible)){const i=e.passport.name.split(".");this.handleStore({store:e,remainingFolders:i.length>1?i.slice(0,-1):[]})}}),t(this,re)||(o(this,re,!0),this.contentElement.scroll({top:f.scrollValue}),this.contentElement.addEventListener("scroll",()=>{f.scrollValue=this.contentElement.scrollTop}))},10));f.load(),this.shadowRoot.adoptedStyleSheets.push(nt),this.head.current=[n.div({class:"tweaker-buttons",onClick:e=>{e.stopPropagation()},children:[n.button({class:"tweaker-button",children:Ee,onClick:()=>{p.storeRegistry.resetState()}}),n.button({class:["tweaker-button"],children:[Ce],onClick:()=>{navigator.clipboard.writeText(JSON.stringify(p.storeRegistry.getState()))}}),n.button({class:"tweaker-button",children:_e,onClick:()=>{Ke.createJSONAndSave(p.storeRegistry.projectName,p.storeRegistry.getState())}}),n.label({class:"tweaker-button",children:[Be,n.input({type:"file",style:{display:"none"},onChange:e=>{var l;const i=(l=e.currentTarget.files)==null?void 0:l[0];if(i){const d=new FileReader;d.onload=u=>{var M,Z;const k=(Z=(M=u.target)==null?void 0:M.result)==null?void 0:Z.toString();k&&p.storeRegistry.loadState(k)},d.readAsText(i)}}})]})]})],n.element(this.bodyElement,{children:[n.div({class:"resize",onPointerdown:e=>{e.preventDefault();const s=this.getBoundingClientRect(),i=this.contentElement.scrollTop;xe.setupDrag(l=>{const d=e.x-l.x,u=Math.max(400,s.width+d);this.style.width=u+"px",f.changeSize("tweaker",u)},()=>{setTimeout(()=>{this.contentElement.scroll({top:i})},10)})},onDblclick:()=>{this.style.width="",f.changeSize("tweaker",null)}})]})}connectedCallback(){super.connectedCallback(),window.addEventListener("beforeunload",t(this,ne)),p.activeStores.subscribe(t(this,ae)),f.changedSizes("tweaker")&&(this.style.width=f.changedSizes("tweaker")+"px")}disconnectedCallback(){window.removeEventListener("beforeunload",t(this,ne)),f.save(),p.activeStores.unsubscribe(t(this,ae))}}re=new WeakMap,ne=new WeakMap,ae=new WeakMap;customElements.get("e-tweaker")||customElements.define("e-tweaker",Pe);He.isBrowser&&document.body.appendChild(new Pe);