aptechka 0.9.0 → 0.10.1

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 (126) hide show
  1. package/lib/{Animation-BCA-DBje.cjs → Animation-BInSRYNr.cjs} +1 -1
  2. package/lib/{Animation-DrSYnbgb.js → Animation-uimN7sdT.js} +1 -1
  3. package/lib/{Composed-pnupzTOv.js → Composed-Fa7owymK.js} +1 -1
  4. package/lib/{Composed-7Fe7TW_T.cjs → Composed-Iihn8fT4.cjs} +1 -1
  5. package/lib/{Damped-CSEZ0qwp.cjs → Damped-Da3EnNN4.cjs} +1 -1
  6. package/lib/{Damped-C2FuK_3K.js → Damped-yrNXlkDE.js} +1 -1
  7. package/lib/Derived-CNbsNMn_.cjs +1 -0
  8. package/lib/Derived-rInkx3e4.js +60 -0
  9. package/lib/ElementConstructor-OK-6OPjh.cjs +1 -0
  10. package/lib/{ElementConstructor-CZKbNIQK.js → ElementConstructor-rValMo8f.js} +94 -88
  11. package/lib/{SourceManager-CmhlHGx7.js → SourceManager--L_rA28b.js} +1 -1
  12. package/lib/{SourceManager-DYnGpBi1.cjs → SourceManager-D6D2LVKf.cjs} +1 -1
  13. package/lib/{Store-kzJycezD.cjs → Store-Cr3VaD9G.cjs} +1 -1
  14. package/lib/{Store-Dsft7GtM.js → Store-Qr3SNOSf.js} +1 -1
  15. package/lib/{Tweened-BrD2cPSC.js → Tweened-CjgvoOwL.js} +1 -1
  16. package/lib/{Tweened-D6dAu8Zi.cjs → Tweened-DksN-Rz6.cjs} +1 -1
  17. package/lib/{Viewport-DRNfjjDY.cjs → Viewport-BBYt1Ivy.cjs} +1 -1
  18. package/lib/{Viewport-Ud7nellV.js → Viewport-Cgtq2I_K.js} +1 -1
  19. package/lib/{_createStore-Cf1MyeHa.cjs → _createStore-C75y9luu.cjs} +1 -1
  20. package/lib/_createStore-D3qHYaSz.js +12 -0
  21. package/lib/animation/index.cjs +1 -1
  22. package/lib/animation/index.js +3 -3
  23. package/lib/attribute/index.cjs +1 -1
  24. package/lib/attribute/index.js +1 -1
  25. package/lib/canvas/index.cjs +1 -1
  26. package/lib/canvas/index.d.ts +3 -3
  27. package/lib/canvas/index.js +4 -4
  28. package/lib/checkbox/index.cjs +1 -1
  29. package/lib/checkbox/index.js +14 -13
  30. package/lib/class-linked-status/index.cjs +1 -1
  31. package/lib/class-linked-status/index.js +1 -1
  32. package/lib/connector/index.cjs +1 -1
  33. package/lib/connector/index.d.ts +2 -2
  34. package/lib/connector/index.js +39 -34
  35. package/lib/controls/index.cjs +1 -1
  36. package/lib/controls/index.js +2 -2
  37. package/lib/{createStylesheet-Di9WRypw.cjs → createStylesheet-9nksoWW0.cjs} +1 -1
  38. package/lib/{createStylesheet-C2gpLy4r.js → createStylesheet-BrFGJ8Q7.js} +1 -1
  39. package/lib/css-property/index.cjs +1 -1
  40. package/lib/css-property/index.js +1 -1
  41. package/lib/dev/index.cjs +1 -1
  42. package/lib/dev/index.js +1 -1
  43. package/lib/device/index.cjs +1 -1
  44. package/lib/device/index.js +1 -1
  45. package/lib/element-constructor/ElementConstructor.d.ts +9 -7
  46. package/lib/element-constructor/index.cjs +1 -1
  47. package/lib/element-constructor/index.js +3 -3
  48. package/lib/en3/helpers/index.cjs +1 -1
  49. package/lib/en3/helpers/index.js +2 -2
  50. package/lib/en3/misc/index.cjs +1 -1
  51. package/lib/en3/misc/index.js +2 -2
  52. package/lib/image/index.cjs +1 -1
  53. package/lib/image/index.js +1 -1
  54. package/lib/{index-BtB-3MG7.js → index-3R8YL-P3.js} +22 -21
  55. package/lib/index-CyQAdqFu.cjs +9 -0
  56. package/lib/{instantiate-BPZZn8jK.js → instantiate-D19vO5Ku.js} +27 -25
  57. package/lib/instantiate-DF1bIAXR.cjs +1 -0
  58. package/lib/jsx/hooks/animation/createDamped.d.ts +3 -0
  59. package/lib/jsx/hooks/animation/createTweened.d.ts +3 -0
  60. package/lib/jsx/hooks/animation/index.cjs +1 -0
  61. package/lib/jsx/hooks/animation/index.d.ts +2 -0
  62. package/lib/jsx/hooks/animation/index.js +15 -0
  63. package/lib/jsx/hooks/basic/createRef.d.ts +3 -0
  64. package/lib/jsx/hooks/basic/onStoreChange.d.ts +3 -0
  65. package/lib/jsx/hooks/store/createCached.d.ts +4 -0
  66. package/lib/jsx/hooks/store/createDerived.d.ts +3 -2
  67. package/lib/jsx/hooks/store/createDerivedArray.d.ts +2 -1
  68. package/lib/jsx/hooks/store/index.cjs +1 -1
  69. package/lib/jsx/hooks/store/index.d.ts +3 -2
  70. package/lib/jsx/hooks/store/index.js +36 -18
  71. package/lib/jsx/index.cjs +1 -1
  72. package/lib/jsx/index.d.ts +5 -3
  73. package/lib/jsx/index.js +73 -58
  74. package/lib/jsx/type.d.ts +16 -13
  75. package/lib/ladder/index.cjs +1 -1
  76. package/lib/ladder/index.js +1 -1
  77. package/lib/media/index.cjs +1 -1
  78. package/lib/media/index.js +1 -1
  79. package/lib/modal/index.cjs +1 -1
  80. package/lib/modal/index.js +4 -3
  81. package/lib/order/index.cjs +1 -1
  82. package/lib/order/index.d.ts +5 -4
  83. package/lib/order/index.js +1 -1
  84. package/lib/pointer/index.cjs +1 -1
  85. package/lib/pointer/index.js +2 -2
  86. package/lib/popover/index.cjs +1 -1
  87. package/lib/popover/index.js +3 -2
  88. package/lib/router/index.cjs +1 -1
  89. package/lib/router/index.js +1 -1
  90. package/lib/scroll/index.cjs +1 -1
  91. package/lib/scroll/index.js +7 -7
  92. package/lib/select/index.cjs +1 -1
  93. package/lib/select/index.js +1 -1
  94. package/lib/sequence/index.cjs +1 -1
  95. package/lib/sequence/index.js +1 -1
  96. package/lib/source/index.cjs +1 -1
  97. package/lib/source/index.js +2 -2
  98. package/lib/store/Cached.d.ts +18 -0
  99. package/lib/store/Derived.d.ts +6 -1
  100. package/lib/store/DerivedArray.d.ts +6 -1
  101. package/lib/store/index.cjs +1 -1
  102. package/lib/store/index.d.ts +3 -3
  103. package/lib/store/index.js +121 -32
  104. package/lib/{tags-BBOGIzDK.cjs → tags-BosXYPYv.cjs} +1 -1
  105. package/lib/{tags-CefGDQtF.js → tags-D0kLlFdQ.js} +1 -1
  106. package/lib/theme/index.cjs +1 -1
  107. package/lib/theme/index.js +3 -2
  108. package/lib/tweaker/index.cjs +2 -2
  109. package/lib/tweaker/index.js +6 -5
  110. package/lib/utils/bytes.d.ts +1 -0
  111. package/lib/utils/index.cjs +1 -1
  112. package/lib/utils/index.d.ts +2 -0
  113. package/lib/utils/index.js +135 -110
  114. package/lib/utils/promises.d.ts +1 -0
  115. package/lib/video/index.cjs +1 -1
  116. package/lib/video/index.js +1 -1
  117. package/package.json +9 -1
  118. package/lib/Derived-CFnbeEgJ.js +0 -27
  119. package/lib/Derived-Dko3EP7m.cjs +0 -1
  120. package/lib/ElementConstructor-9S0f1yAH.cjs +0 -1
  121. package/lib/Resource-BhF6Tj1p.js +0 -49
  122. package/lib/Resource-WCQEgLpB.cjs +0 -1
  123. package/lib/_createStore-Ck9bHolX.js +0 -12
  124. package/lib/index-DQo2-dnB.cjs +0 -9
  125. package/lib/instantiate-BWM-ipPW.cjs +0 -1
  126. package/lib/store/Keyed.d.ts +0 -13
@@ -1,42 +1,131 @@
1
- var l = (e, r, s) => {
2
- if (!r.has(e))
3
- throw TypeError("Cannot " + s);
1
+ var I = (s, r, e) => {
2
+ if (!r.has(s))
3
+ throw TypeError("Cannot " + e);
4
4
  };
5
- var o = (e, r, s) => (l(e, r, "read from private field"), s ? s.call(e) : r.get(e)), p = (e, r, s) => {
6
- if (r.has(e))
5
+ var t = (s, r, e) => (I(s, r, "read from private field"), e ? e.call(s) : r.get(s)), h = (s, r, e) => {
6
+ if (r.has(s))
7
7
  throw TypeError("Cannot add the same private member more than once");
8
- r instanceof WeakSet ? r.add(e) : r.set(e, s);
9
- }, n = (e, r, s, c) => (l(e, r, "write to private field"), c ? c.call(e, s) : r.set(e, s), s);
10
- import { S as m } from "../Store-Dsft7GtM.js";
11
- import { a as S, s as g } from "../Store-Dsft7GtM.js";
12
- import { D as C } from "../Derived-CFnbeEgJ.js";
13
- import { D as A, R as K } from "../Resource-BhF6Tj1p.js";
14
- import { C as j } from "../Composed-pnupzTOv.js";
15
- var a, t;
16
- class b extends m {
17
- constructor(s, c, h) {
18
- super(null, h);
19
- p(this, a, void 0);
20
- p(this, t, /* @__PURE__ */ new Map());
21
- n(this, a, s.subscribe((d) => {
22
- this.current = d.current.map((u, f, x) => {
23
- let i = o(this, t).get(u.key);
24
- return (!i || u.revalidate) && (i = c(u.value, f, x), o(this, t).set(u.key, i)), i;
8
+ r instanceof WeakSet ? r.add(s) : r.set(s, e);
9
+ }, d = (s, r, e, c) => (I(s, r, "write to private field"), c ? c.call(s, e) : r.set(s, e), e);
10
+ var S = (s, r, e) => new Promise((c, i) => {
11
+ var o = (n) => {
12
+ try {
13
+ l(e.next(n));
14
+ } catch (a) {
15
+ i(a);
16
+ }
17
+ }, u = (n) => {
18
+ try {
19
+ l(e.throw(n));
20
+ } catch (a) {
21
+ i(a);
22
+ }
23
+ }, l = (n) => n.done ? c(n.value) : Promise.resolve(n.value).then(o, u);
24
+ l((e = e.apply(s, r)).next());
25
+ });
26
+ import { S as x } from "../Store-Qr3SNOSf.js";
27
+ import { a as G, s as H } from "../Store-Qr3SNOSf.js";
28
+ import { A as K, D as L } from "../Derived-rInkx3e4.js";
29
+ import { C as O } from "../Composed-Fa7owymK.js";
30
+ var m;
31
+ class V extends x {
32
+ constructor(e, c, i) {
33
+ super(null, i);
34
+ h(this, m, void 0);
35
+ d(this, m, e.subscribe((o) => {
36
+ this.current = o.current.map((u, l, n) => c(u, l, n));
37
+ }));
38
+ }
39
+ close() {
40
+ super.close(), t(this, m).call(this);
41
+ }
42
+ }
43
+ m = new WeakMap();
44
+ var w;
45
+ class j extends x {
46
+ constructor(e, c, i) {
47
+ super(null, i);
48
+ h(this, w, void 0);
49
+ let o = 0;
50
+ d(this, w, e.subscribe((u) => S(this, null, function* () {
51
+ const l = ++o, n = u.current.map((f, k, P) => c(f, k, P)), a = yield Promise.all(n);
52
+ l === o && (this.current = a);
53
+ })));
54
+ }
55
+ close() {
56
+ super.close(), t(this, w).call(this);
57
+ }
58
+ }
59
+ w = new WeakMap();
60
+ var g, b;
61
+ class q extends x {
62
+ constructor(e, c, i) {
63
+ super(null, i);
64
+ h(this, g, void 0);
65
+ h(this, b, /* @__PURE__ */ new Map());
66
+ d(this, g, e.subscribe((o) => {
67
+ this.current = o.current.map((u, l, n) => {
68
+ let a = t(this, b).get(u.key);
69
+ return (a === void 0 || u.revalidate) && (a = c(u.value, l, n), t(this, b).set(u.key, a)), a;
25
70
  });
26
71
  }));
27
72
  }
28
73
  close() {
29
- super.close(), o(this, a).call(this), o(this, t).clear();
74
+ super.close(), t(this, g).call(this), t(this, b).clear();
75
+ }
76
+ }
77
+ g = new WeakMap(), b = new WeakMap();
78
+ var A, v;
79
+ class z extends x {
80
+ constructor(e, c, i) {
81
+ super(null, i);
82
+ h(this, A, void 0);
83
+ h(this, v, /* @__PURE__ */ new Map());
84
+ let o = 0;
85
+ d(this, A, e.subscribe((u) => S(this, null, function* () {
86
+ const l = ++o, n = u.current.map((f, k, P) => {
87
+ let D = t(this, v).get(f.key);
88
+ return (D === void 0 || f.revalidate) && (D = c(f.value, k, P), t(this, v).set(f.key, D)), D;
89
+ }), a = yield Promise.all(n);
90
+ l === o && (this.current = a);
91
+ })));
92
+ }
93
+ close() {
94
+ super.close(), t(this, A).call(this), t(this, v).clear();
95
+ }
96
+ }
97
+ A = new WeakMap(), v = new WeakMap();
98
+ var C, p, y;
99
+ class B extends x {
100
+ constructor(e, c, i) {
101
+ super(e, i);
102
+ h(this, C, void 0);
103
+ h(this, p, void 0);
104
+ h(this, y, 0);
105
+ d(this, p, new x(!1)), d(this, C, c), i != null && i.manualControl || this.refetch();
106
+ }
107
+ get isPending() {
108
+ return t(this, p);
109
+ }
110
+ refetch() {
111
+ t(this, p).current = !0, d(this, y, t(this, y) + 1);
112
+ const e = t(this, y);
113
+ t(this, C).call(this).then((c) => {
114
+ e === t(this, y) && (t(this, p).current = !1, this.current = c);
115
+ });
30
116
  }
31
117
  }
32
- a = new WeakMap(), t = new WeakMap();
118
+ C = new WeakMap(), p = new WeakMap(), y = new WeakMap();
33
119
  export {
34
- j as Composed,
35
- C as Derived,
36
- A as DerivedArray,
37
- b as Keyed,
38
- K as Resource,
39
- m as Store,
40
- S as activeStores,
41
- g as storeRegistry
120
+ z as AsyncCached,
121
+ K as AsyncDerived,
122
+ j as AsyncDerivedArray,
123
+ q as Cached,
124
+ O as Composed,
125
+ L as Derived,
126
+ V as DerivedArray,
127
+ B as Resource,
128
+ x as Store,
129
+ G as activeStores,
130
+ H as storeRegistry
42
131
  };
@@ -1 +1 @@
1
- "use strict";var s=Object.defineProperty,l=Object.defineProperties;var m=Object.getOwnPropertyDescriptors;var u=Object.getOwnPropertySymbols;var f=Object.prototype.hasOwnProperty,a=Object.prototype.propertyIsEnumerable;var c=(n,e,r)=>e in n?s(n,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):n[e]=r,o=(n,e)=>{for(var r in e||(e={}))f.call(e,r)&&c(n,r,e[r]);if(u)for(var r of u(e))a.call(e,r)&&c(n,r,e[r]);return n},i=(n,e)=>l(n,m(e));const t=require("./ElementConstructor-9S0f1yAH.cjs");function w(...n){return new t.ElementConstructor(...n)}function C(n){return new t.ElementConstructor("a",n)}function E(n){return new t.ElementConstructor("abbr",n)}function d(n){return new t.ElementConstructor("address",n)}function p(n){return new t.ElementConstructor("area",n)}function b(n){return new t.ElementConstructor("article",n)}function h(n){return new t.ElementConstructor("aside",n)}function g(n){return new t.ElementConstructor("audio",n)}function y(n){return new t.ElementConstructor("b",n)}function k(n){return new t.ElementConstructor("base",n)}function v(n){return new t.ElementConstructor("bdi",n)}function q(n){return new t.ElementConstructor("bdo",n)}function x(n){return new t.ElementConstructor("blockquote",n)}function V(n){return new t.ElementConstructor("body",n)}function D(n){return new t.ElementConstructor("br",n)}function F(n){return new t.ElementConstructor("button",n)}function N(n){return new t.ElementConstructor("canvas",n)}function T(n){return new t.ElementConstructor("caption",n)}function z(n){return new t.ElementConstructor("cite",n)}function A(n){return new t.ElementConstructor("code",n)}function B(n){return new t.ElementConstructor("col",n)}function G(n){return new t.ElementConstructor("colgroup",n)}function H(n){return new t.ElementConstructor("data",n)}function I(n){return new t.ElementConstructor("datalist",n)}function J(n){return new t.ElementConstructor("dd",n)}function K(n){return new t.ElementConstructor("del",n)}function L(n){return new t.ElementConstructor("details",n)}function M(n){return new t.ElementConstructor("dfn",n)}function O(n){return new t.ElementConstructor("dialog",n)}function P(n){return new t.ElementConstructor("div",n)}function Q(n){return new t.ElementConstructor("dl",n)}function R(n){return new t.ElementConstructor("dt",n)}function S(n){return new t.ElementConstructor("em",n)}function U(n){return new t.ElementConstructor("embed",n)}function W(n){return new t.ElementConstructor("fieldset",n)}function X(n){return new t.ElementConstructor("figcaption",n)}function Y(n){return new t.ElementConstructor("figure",n)}function Z(n){return new t.ElementConstructor("footer",n)}function _(n){return new t.ElementConstructor("form",n)}function $(n){return new t.ElementConstructor("h1",n)}function j(n){return new t.ElementConstructor("h2",n)}function nn(n){return new t.ElementConstructor("h3",n)}function tn(n){return new t.ElementConstructor("h4",n)}function en(n){return new t.ElementConstructor("h5",n)}function rn(n){return new t.ElementConstructor("h6",n)}function on(n){return new t.ElementConstructor("head",n)}function un(n){return new t.ElementConstructor("header",n)}function cn(n){return new t.ElementConstructor("hgroup",n)}function sn(n){return new t.ElementConstructor("hr",n)}function ln(n){return new t.ElementConstructor("html",n)}function mn(n){return new t.ElementConstructor("i",n)}function fn(n){return new t.ElementConstructor("iframe",n)}function an(n){return new t.ElementConstructor("img",n)}function wn(n){return new t.ElementConstructor("input",n)}function Cn(n){return new t.ElementConstructor("ins",n)}function En(n){return new t.ElementConstructor("kbd",n)}function dn(n){return new t.ElementConstructor("label",n)}function pn(n){return new t.ElementConstructor("legend",n)}function bn(n){return new t.ElementConstructor("li",n)}function hn(n){return new t.ElementConstructor("link",n)}function gn(n){return new t.ElementConstructor("main",n)}function yn(n){return new t.ElementConstructor("map",n)}function kn(n){return new t.ElementConstructor("mark",n)}function vn(n){return new t.ElementConstructor("menu",n)}function qn(n){return new t.ElementConstructor("meta",n)}function xn(n){return new t.ElementConstructor("meter",n)}function Vn(n){return new t.ElementConstructor("nav",n)}function Dn(n){return new t.ElementConstructor("noscript",n)}function Fn(n){return new t.ElementConstructor("object",n)}function Nn(n){return new t.ElementConstructor("ol",n)}function Tn(n){return new t.ElementConstructor("optgroup",n)}function zn(n){return new t.ElementConstructor("option",n)}function An(n){return new t.ElementConstructor("output",n)}function Bn(n){return new t.ElementConstructor("p",n)}function Gn(n){return new t.ElementConstructor("picture",n)}function Hn(n){return new t.ElementConstructor("pre",n)}function In(n){return new t.ElementConstructor("progress",n)}function Jn(n){return new t.ElementConstructor("q",n)}function Kn(n){return new t.ElementConstructor("rp",n)}function Ln(n){return new t.ElementConstructor("rt",n)}function Mn(n){return new t.ElementConstructor("ruby",n)}function On(n){return new t.ElementConstructor("s",n)}function Pn(n){return new t.ElementConstructor("samp",n)}function Qn(n){return new t.ElementConstructor("script",n)}function Rn(n){return new t.ElementConstructor("search",n)}function Sn(n){return new t.ElementConstructor("section",n)}function Un(n){return new t.ElementConstructor("select",n)}function Wn(n){return new t.ElementConstructor("slot",n)}function Xn(n){return new t.ElementConstructor("small",n)}function Yn(n){return new t.ElementConstructor("source",n)}function Zn(n){return new t.ElementConstructor("span",n)}function _n(n){return new t.ElementConstructor("strong",n)}function $n(n){return new t.ElementConstructor("style",{style:n})}function jn(n){return new t.ElementConstructor("sub",n)}function nt(n){return new t.ElementConstructor("summary",n)}function tt(n){return new t.ElementConstructor("sup",n)}function et(n){return new t.ElementConstructor("table",n)}function rt(n){return new t.ElementConstructor("tbody",n)}function ot(n){return new t.ElementConstructor("td",n)}function ut(n){return new t.ElementConstructor("template",n)}function ct(n){return new t.ElementConstructor("textarea",n)}function it(n){return new t.ElementConstructor("tfoot",n)}function st(n){return new t.ElementConstructor("th",n)}function lt(n){return new t.ElementConstructor("thead",n)}function mt(n){return new t.ElementConstructor("time",n)}function ft(n){return new t.ElementConstructor("title",n)}function at(n){return new t.ElementConstructor("tr",n)}function wt(n){return new t.ElementConstructor("track",n)}function Ct(n){return new t.ElementConstructor("u",n)}function Et(n){return new t.ElementConstructor("ul",n)}function dt(n){return new t.ElementConstructor("var",n)}function pt(n){return new t.ElementConstructor("video",n)}function bt(n){return new t.ElementConstructor("wbr",n)}function ht(n){return new t.ElementConstructor(document.createDocumentFragment(),n)}function gt(n){return new t.ElementConstructor(document.createTextNode(""),n)}function yt(n){return new t.ElementConstructor("div",i(o({},n),{style:o({display:"contents"},n==null?void 0:n.style)}))}exports.a=C;exports.abbr=E;exports.address=d;exports.area=p;exports.article=b;exports.aside=h;exports.audio=g;exports.b=y;exports.base=k;exports.bdi=v;exports.bdo=q;exports.blockquote=x;exports.body=V;exports.br=D;exports.button=F;exports.canvas=N;exports.caption=T;exports.cite=z;exports.code=A;exports.col=B;exports.colgroup=G;exports.contents=yt;exports.data=H;exports.datalist=I;exports.dd=J;exports.del=K;exports.details=L;exports.dfn=M;exports.dialog=O;exports.div=P;exports.dl=Q;exports.dt=R;exports.element=w;exports.em=S;exports.embed=U;exports.empty=gt;exports.fieldset=W;exports.figcaption=X;exports.figure=Y;exports.footer=Z;exports.form=_;exports.fragment=ht;exports.h1=$;exports.h2=j;exports.h3=nn;exports.h4=tn;exports.h5=en;exports.h6=rn;exports.head=on;exports.header=un;exports.hgroup=cn;exports.hr=sn;exports.html=ln;exports.htmlVar=dt;exports.i=mn;exports.iframe=fn;exports.img=an;exports.input=wn;exports.ins=Cn;exports.kbd=En;exports.label=dn;exports.legend=pn;exports.li=bn;exports.link=hn;exports.main=gn;exports.map=yn;exports.mark=kn;exports.menu=vn;exports.meta=qn;exports.meter=xn;exports.nav=Vn;exports.noscript=Dn;exports.object=Fn;exports.ol=Nn;exports.optgroup=Tn;exports.option=zn;exports.output=An;exports.p=Bn;exports.picture=Gn;exports.pre=Hn;exports.progress=In;exports.q=Jn;exports.rp=Kn;exports.rt=Ln;exports.ruby=Mn;exports.s=On;exports.samp=Pn;exports.script=Qn;exports.search=Rn;exports.section=Sn;exports.select=Un;exports.slot=Wn;exports.small=Xn;exports.source=Yn;exports.span=Zn;exports.strong=_n;exports.style=$n;exports.sub=jn;exports.summary=nt;exports.sup=tt;exports.table=et;exports.tbody=rt;exports.td=ot;exports.template=ut;exports.textarea=ct;exports.tfoot=it;exports.th=st;exports.thead=lt;exports.time=mt;exports.title=ft;exports.tr=at;exports.track=wt;exports.u=Ct;exports.ul=Et;exports.video=pt;exports.wbr=bt;
1
+ "use strict";var s=Object.defineProperty,l=Object.defineProperties;var m=Object.getOwnPropertyDescriptors;var u=Object.getOwnPropertySymbols;var f=Object.prototype.hasOwnProperty,a=Object.prototype.propertyIsEnumerable;var c=(n,e,r)=>e in n?s(n,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):n[e]=r,o=(n,e)=>{for(var r in e||(e={}))f.call(e,r)&&c(n,r,e[r]);if(u)for(var r of u(e))a.call(e,r)&&c(n,r,e[r]);return n},i=(n,e)=>l(n,m(e));const t=require("./ElementConstructor-OK-6OPjh.cjs");function w(...n){return new t.ElementConstructor(...n)}function C(n){return new t.ElementConstructor("a",n)}function E(n){return new t.ElementConstructor("abbr",n)}function d(n){return new t.ElementConstructor("address",n)}function p(n){return new t.ElementConstructor("area",n)}function b(n){return new t.ElementConstructor("article",n)}function h(n){return new t.ElementConstructor("aside",n)}function g(n){return new t.ElementConstructor("audio",n)}function y(n){return new t.ElementConstructor("b",n)}function k(n){return new t.ElementConstructor("base",n)}function v(n){return new t.ElementConstructor("bdi",n)}function q(n){return new t.ElementConstructor("bdo",n)}function x(n){return new t.ElementConstructor("blockquote",n)}function V(n){return new t.ElementConstructor("body",n)}function D(n){return new t.ElementConstructor("br",n)}function F(n){return new t.ElementConstructor("button",n)}function N(n){return new t.ElementConstructor("canvas",n)}function T(n){return new t.ElementConstructor("caption",n)}function z(n){return new t.ElementConstructor("cite",n)}function A(n){return new t.ElementConstructor("code",n)}function B(n){return new t.ElementConstructor("col",n)}function G(n){return new t.ElementConstructor("colgroup",n)}function H(n){return new t.ElementConstructor("data",n)}function I(n){return new t.ElementConstructor("datalist",n)}function J(n){return new t.ElementConstructor("dd",n)}function K(n){return new t.ElementConstructor("del",n)}function L(n){return new t.ElementConstructor("details",n)}function M(n){return new t.ElementConstructor("dfn",n)}function O(n){return new t.ElementConstructor("dialog",n)}function P(n){return new t.ElementConstructor("div",n)}function Q(n){return new t.ElementConstructor("dl",n)}function R(n){return new t.ElementConstructor("dt",n)}function S(n){return new t.ElementConstructor("em",n)}function U(n){return new t.ElementConstructor("embed",n)}function W(n){return new t.ElementConstructor("fieldset",n)}function X(n){return new t.ElementConstructor("figcaption",n)}function Y(n){return new t.ElementConstructor("figure",n)}function Z(n){return new t.ElementConstructor("footer",n)}function _(n){return new t.ElementConstructor("form",n)}function $(n){return new t.ElementConstructor("h1",n)}function j(n){return new t.ElementConstructor("h2",n)}function nn(n){return new t.ElementConstructor("h3",n)}function tn(n){return new t.ElementConstructor("h4",n)}function en(n){return new t.ElementConstructor("h5",n)}function rn(n){return new t.ElementConstructor("h6",n)}function on(n){return new t.ElementConstructor("head",n)}function un(n){return new t.ElementConstructor("header",n)}function cn(n){return new t.ElementConstructor("hgroup",n)}function sn(n){return new t.ElementConstructor("hr",n)}function ln(n){return new t.ElementConstructor("html",n)}function mn(n){return new t.ElementConstructor("i",n)}function fn(n){return new t.ElementConstructor("iframe",n)}function an(n){return new t.ElementConstructor("img",n)}function wn(n){return new t.ElementConstructor("input",n)}function Cn(n){return new t.ElementConstructor("ins",n)}function En(n){return new t.ElementConstructor("kbd",n)}function dn(n){return new t.ElementConstructor("label",n)}function pn(n){return new t.ElementConstructor("legend",n)}function bn(n){return new t.ElementConstructor("li",n)}function hn(n){return new t.ElementConstructor("link",n)}function gn(n){return new t.ElementConstructor("main",n)}function yn(n){return new t.ElementConstructor("map",n)}function kn(n){return new t.ElementConstructor("mark",n)}function vn(n){return new t.ElementConstructor("menu",n)}function qn(n){return new t.ElementConstructor("meta",n)}function xn(n){return new t.ElementConstructor("meter",n)}function Vn(n){return new t.ElementConstructor("nav",n)}function Dn(n){return new t.ElementConstructor("noscript",n)}function Fn(n){return new t.ElementConstructor("object",n)}function Nn(n){return new t.ElementConstructor("ol",n)}function Tn(n){return new t.ElementConstructor("optgroup",n)}function zn(n){return new t.ElementConstructor("option",n)}function An(n){return new t.ElementConstructor("output",n)}function Bn(n){return new t.ElementConstructor("p",n)}function Gn(n){return new t.ElementConstructor("picture",n)}function Hn(n){return new t.ElementConstructor("pre",n)}function In(n){return new t.ElementConstructor("progress",n)}function Jn(n){return new t.ElementConstructor("q",n)}function Kn(n){return new t.ElementConstructor("rp",n)}function Ln(n){return new t.ElementConstructor("rt",n)}function Mn(n){return new t.ElementConstructor("ruby",n)}function On(n){return new t.ElementConstructor("s",n)}function Pn(n){return new t.ElementConstructor("samp",n)}function Qn(n){return new t.ElementConstructor("script",n)}function Rn(n){return new t.ElementConstructor("search",n)}function Sn(n){return new t.ElementConstructor("section",n)}function Un(n){return new t.ElementConstructor("select",n)}function Wn(n){return new t.ElementConstructor("slot",n)}function Xn(n){return new t.ElementConstructor("small",n)}function Yn(n){return new t.ElementConstructor("source",n)}function Zn(n){return new t.ElementConstructor("span",n)}function _n(n){return new t.ElementConstructor("strong",n)}function $n(n){return new t.ElementConstructor("style",{style:n})}function jn(n){return new t.ElementConstructor("sub",n)}function nt(n){return new t.ElementConstructor("summary",n)}function tt(n){return new t.ElementConstructor("sup",n)}function et(n){return new t.ElementConstructor("table",n)}function rt(n){return new t.ElementConstructor("tbody",n)}function ot(n){return new t.ElementConstructor("td",n)}function ut(n){return new t.ElementConstructor("template",n)}function ct(n){return new t.ElementConstructor("textarea",n)}function it(n){return new t.ElementConstructor("tfoot",n)}function st(n){return new t.ElementConstructor("th",n)}function lt(n){return new t.ElementConstructor("thead",n)}function mt(n){return new t.ElementConstructor("time",n)}function ft(n){return new t.ElementConstructor("title",n)}function at(n){return new t.ElementConstructor("tr",n)}function wt(n){return new t.ElementConstructor("track",n)}function Ct(n){return new t.ElementConstructor("u",n)}function Et(n){return new t.ElementConstructor("ul",n)}function dt(n){return new t.ElementConstructor("var",n)}function pt(n){return new t.ElementConstructor("video",n)}function bt(n){return new t.ElementConstructor("wbr",n)}function ht(n){return new t.ElementConstructor(document.createDocumentFragment(),n)}function gt(n){return new t.ElementConstructor(document.createTextNode(""),n)}function yt(n){return new t.ElementConstructor("div",i(o({},n),{style:o({display:"contents"},n==null?void 0:n.style)}))}exports.a=C;exports.abbr=E;exports.address=d;exports.area=p;exports.article=b;exports.aside=h;exports.audio=g;exports.b=y;exports.base=k;exports.bdi=v;exports.bdo=q;exports.blockquote=x;exports.body=V;exports.br=D;exports.button=F;exports.canvas=N;exports.caption=T;exports.cite=z;exports.code=A;exports.col=B;exports.colgroup=G;exports.contents=yt;exports.data=H;exports.datalist=I;exports.dd=J;exports.del=K;exports.details=L;exports.dfn=M;exports.dialog=O;exports.div=P;exports.dl=Q;exports.dt=R;exports.element=w;exports.em=S;exports.embed=U;exports.empty=gt;exports.fieldset=W;exports.figcaption=X;exports.figure=Y;exports.footer=Z;exports.form=_;exports.fragment=ht;exports.h1=$;exports.h2=j;exports.h3=nn;exports.h4=tn;exports.h5=en;exports.h6=rn;exports.head=on;exports.header=un;exports.hgroup=cn;exports.hr=sn;exports.html=ln;exports.htmlVar=dt;exports.i=mn;exports.iframe=fn;exports.img=an;exports.input=wn;exports.ins=Cn;exports.kbd=En;exports.label=dn;exports.legend=pn;exports.li=bn;exports.link=hn;exports.main=gn;exports.map=yn;exports.mark=kn;exports.menu=vn;exports.meta=qn;exports.meter=xn;exports.nav=Vn;exports.noscript=Dn;exports.object=Fn;exports.ol=Nn;exports.optgroup=Tn;exports.option=zn;exports.output=An;exports.p=Bn;exports.picture=Gn;exports.pre=Hn;exports.progress=In;exports.q=Jn;exports.rp=Kn;exports.rt=Ln;exports.ruby=Mn;exports.s=On;exports.samp=Pn;exports.script=Qn;exports.search=Rn;exports.section=Sn;exports.select=Un;exports.slot=Wn;exports.small=Xn;exports.source=Yn;exports.span=Zn;exports.strong=_n;exports.style=$n;exports.sub=jn;exports.summary=nt;exports.sup=tt;exports.table=et;exports.tbody=rt;exports.td=ot;exports.template=ut;exports.textarea=ct;exports.tfoot=it;exports.th=st;exports.thead=lt;exports.time=mt;exports.title=ft;exports.tr=at;exports.track=wt;exports.u=Ct;exports.ul=Et;exports.video=pt;exports.wbr=bt;
@@ -10,7 +10,7 @@ var o = (n, e, r) => e in n ? s(n, e, { enumerable: !0, configurable: !0, writab
10
10
  d.call(e, r) && o(n, r, e[r]);
11
11
  return n;
12
12
  }, i = (n, e) => c(n, f(e));
13
- import { E as t } from "./ElementConstructor-CZKbNIQK.js";
13
+ import { E as t } from "./ElementConstructor-rValMo8f.js";
14
14
  function p(...n) {
15
15
  return new t(...n);
16
16
  }
@@ -1 +1 @@
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
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("../Store-Cr3VaD9G.cjs");const t=require("../browser-CpzFX2xg.cjs");require("../ticker/index.cjs");const o=require("../tags-BosXYPYv.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,7 @@
1
- import "../Store-Dsft7GtM.js";
1
+ import "../Store-Qr3SNOSf.js";
2
2
  import { i as e } from "../browser-0zX67oeU.js";
3
- import { aC as r } from "../tags-CefGDQtF.js";
3
+ import "../ticker/index.js";
4
+ import { aC as r } from "../tags-D0kLlFdQ.js";
4
5
  import { c as t } from "../createTheme-CHnsCgAr.js";
5
6
  const a = t(
6
7
  {
@@ -1,4 +1,4 @@
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(
1
+ "use strict";var me=(h,i,e)=>{if(!i.has(h))throw TypeError("Cannot "+e)};var t=(h,i,e)=>(me(h,i,"read from private field"),e?e.call(h):i.get(h)),a=(h,i,e)=>{if(i.has(h))throw TypeError("Cannot add the same private member more than once");i instanceof WeakSet?i.add(h):i.set(h,e)},o=(h,i,e,s)=>(me(h,i,"write to private field"),s?s.call(h,e):i.set(h,e),e);var m=(h,i,e)=>(me(h,i,"access private method"),e);const He=require("../browser-CpzFX2xg.cjs"),p=require("../Store-Cr3VaD9G.cjs"),Ke=require("../file-EevnUtRj.cjs"),Oe=require("../function-MthRj-GJ.cjs"),xe=require("../gestures-DHLrn6Q8.cjs");require("../ticker/index.cjs");const n=require("../tags-BosXYPYv.cjs"),E=require("../createStylesheet-9nksoWW0.cjs"),Ze=require("../Viewport-BBYt1Ivy.cjs"),c=require("../theme/index.cjs"),je=require("../index-CyQAdqFu.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(i){t(this,w).includes(i)||t(this,w).push(i)}closePanel(i){o(this,w,t(this,w).filter(e=>e!==i))}isPanelOpened(i){return t(this,w).includes(i)}changedSizes(i){return t(this,S)[i]}changeSize(i,e){e?t(this,S)[i]=e:delete t(this,S)[i]}save(){const i={openedPanels:t(this,w),changedSizes:t(this,S),scrollValue:this.scrollValue};localStorage.setItem(t(this,L),JSON.stringify(i)),p.storeRegistry.saveState()}load(){p.storeRegistry.loadState();const i=localStorage.getItem(t(this,L));if(i)try{const e=JSON.parse(i);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(...i){super(...i),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(r=>{s.checked=r.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(...i){super(...i),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(...i){var s,r;super(...i),this.attachShadow({mode:"open"}).adoptedStyleSheets.push(Qe),console.log(this.firstStore),n.element(this,{children:[n.a({href:this.firstStore,target:(r=(s=this.firstStore.passport)==null?void 0:s.manager)!=null&&r.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 r,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((r,l)=>{const d=typeof r=="string"?parseFloat(r)||t(this,x):r,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 r=t(this,P)[s];r&&(r.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=(r=this.firstStore.passport)==null?void 0:r.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 r=t(this,q)[s];if(r&&(!t(this,I)||t(this,I)&&t(this,y))){const l=m(this,$,le).call(this,r,e);r.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 r=e.parentElement,l=m(this,X,be).call(this),d=l?s/l:.5;return(r.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(...i){var r,l;super(...i),this.attachShadow({mode:"open"}).adoptedStyleSheets.push(et);const s=((l=(r=this.firstStore.passport)==null?void 0:r.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(...i){super(...i),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},rt=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(rt),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 it=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,re,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,re,null);a(this,ce,e=>{let s=[],r=[];e.forEach(l=>{s=[...s,...l.removedNodes],r=[...r,...l.addedNodes]}),t(this,g).current=t(this,g).current.filter(l=>!s.includes(l)),t(this,v)&&!t(this,g).current.length&&!r.length&&this.remove()});this.attachShadow({mode:"open"}).adoptedStyleSheets.push(it),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:r=>{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:r=>{o(this,te,r)},children:n.div({class:"body-content",children:t(this,g),ref:r=>{o(this,se,r),o(this,re,r.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,re),{childList:!0})}handleStore(e){if(e.remainingFolders.length){const r=e.store.passport.name.split("."),l=r.slice(0,r.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(r=>r.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,re=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 +
@@ -7,4 +7,4 @@
7
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
- )`}}});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);
10
+ )`}}});var ie,ne,ae;class Pe extends he{constructor(){super({key:""});a(this,ie,!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 r=e.passport.name.split(".");this.handleStore({store:e,remainingFolders:r.length>1?r.slice(0,-1):[]})}}),t(this,ie)||(o(this,ie,!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 r=(l=e.currentTarget.files)==null?void 0:l[0];if(r){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(r)}}})]})]})],n.element(this.bodyElement,{children:[n.div({class:"resize",onPointerdown:e=>{e.preventDefault();const s=this.getBoundingClientRect(),r=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:r})},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))}}ie=new WeakMap,ne=new WeakMap,ae=new WeakMap;customElements.get("e-tweaker")||customElements.define("e-tweaker",Pe);He.isBrowser&&document.body.appendChild(new Pe);
@@ -9,15 +9,16 @@ var t = (l, r, e) => (ve(l, r, "read from private field"), e ? e.call(l) : r.get
9
9
  }, n = (l, r, e, s) => (ve(l, r, "write to private field"), s ? s.call(l, e) : r.set(l, e), e);
10
10
  var m = (l, r, e) => (ve(l, r, "access private method"), e);
11
11
  import { i as We } from "../browser-0zX67oeU.js";
12
- import { s as R, a as N, S as Ce } from "../Store-Dsft7GtM.js";
12
+ import { s as R, a as N, S as Ce } from "../Store-Qr3SNOSf.js";
13
13
  import { c as Be } from "../file-lxi_oXJf.js";
14
14
  import { d as Xe } from "../function-C10DGppn.js";
15
15
  import { s as Te } from "../gestures-D2Fdra_G.js";
16
- import { e as g, $ as me, a as Ye, D as u, aA as qe, p as B, a2 as Ge } from "../tags-CefGDQtF.js";
17
- import { c as E } from "../createStylesheet-C2gpLy4r.js";
18
- import { a as Qe } from "../Viewport-Ud7nellV.js";
16
+ import "../ticker/index.js";
17
+ import { e as g, $ as me, a as Ye, D as u, aA as qe, p as B, a2 as Ge } from "../tags-D0kLlFdQ.js";
18
+ import { c as E } from "../createStylesheet-BrFGJ8Q7.js";
19
+ import { a as Qe } from "../Viewport-Cgtq2I_K.js";
19
20
  import { aptechkaTheme as h } from "../theme/index.js";
20
- import { a as Ue } from "../index-BtB-3MG7.js";
21
+ import { a as Ue } from "../index-3R8YL-P3.js";
21
22
  import { a as _e } from "../events-CJTUMSLU.js";
22
23
  import "../checkbox/index.js";
23
24
  import { c as et } from "../math-BOBiC4TN.js";
@@ -0,0 +1 @@
1
+ export declare function formatBytes(bytes: number, decimals?: number): string;
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const b=require("../attributes-Bf2svn4j.cjs"),S=require("../browser-CpzFX2xg.cjs"),l=require("../canvas-CU5Xjahf.cjs"),m=require("../coordinates-D8Np3cPD.cjs"),p=require("../dom-JBOkFLTh.cjs"),n=require("../easings-DsS5-Kqc.cjs"),h=require("../events-BGwqaxVW.cjs"),I=require("../file-EevnUtRj.cjs"),C=require("../function-MthRj-GJ.cjs"),v=require("../gestures-DHLrn6Q8.cjs"),f=require("../layout-8ryRAMGJ.cjs"),i=require("../math-GDWEqu7y.cjs"),d=require("../polyfills-CM4SCDTt.cjs"),o=require("../object-CCiXnER2.cjs"),r=require("../string-DhgS_iFl.cjs"),O=require("../style-At6aDoqG.cjs"),g=require("../url-C3dWnJQg.cjs");function y(t,e,...a){return[...t.slice(0,e),...a,...t.slice(e)]}function P(t,e){const a=t.length;e=e%a;const s=new Array(a);for(let u=0;u<a;u++){const c=(u+e)%a;s[c]=t[u]}return s}function T(t,e){return t.x<e.x+e.width&&t.x>e.x&&t.y<e.y+e.height&&t.y>e.y}function q(t,e){return Math.sqrt((t.x-e.x)**2+(t.y-e.y)**2)<e.radius}function E(t,e){const a=t.styleMap.get(e);if(a){const s=a.toString();return s.startsWith("var")?E(t,s.slice(4,-1)):s}}function x(...t){const e={};return Array.from(document.styleSheets).forEach(a=>{Array.from(a.cssRules).forEach(s=>{s instanceof CSSStyleRule&&s.selectorText===":root"&&t.forEach(u=>{const c=E(s,u);c&&(e[u]=c)})})}),t.forEach(a=>{e[a]||console.warn(`variable named ${a} not found`)}),e}function Q(t){const e=window.atob(t);return decodeURIComponent(window.escape(e))}function D(t){const e=window.unescape(encodeURIComponent(t));return window.btoa(e)}exports.parseAttribute=b.parseAttribute;exports.parseAttributeValue=b.parseAttributeValue;exports.isBrowser=S.isBrowser;exports.contain=l.contain;exports.cover=l.cover;exports.fixPosition=l.fixPosition;exports.measureText=l.measureText;exports.getPointerPosition=m.getPointerPosition;exports.normalize=m.normalize;exports.screenToCartesian=m.screenToCartesian;exports.findParentElement=p.findParentElement;exports.findScrollParentElement=p.findScrollParentElement;exports.getAllParentElements=p.getAllParentElements;exports.getElement=p.getElement;exports.easeInCubic=n.easeInCubic;exports.easeInExpo=n.easeInExpo;exports.easeInOutCubic=n.easeInOutCubic;exports.easeInOutExpo=n.easeInOutExpo;exports.easeInOutQuad=n.easeInOutQuad;exports.easeInOutQuart=n.easeInOutQuart;exports.easeInOutQuint=n.easeInOutQuint;exports.easeInQuad=n.easeInQuad;exports.easeInQuart=n.easeInQuart;exports.easeInQuint=n.easeInQuint;exports.easeOutCubic=n.easeOutCubic;exports.easeOutExpo=n.easeOutExpo;exports.easeOutQuad=n.easeOutQuad;exports.easeOutQuart=n.easeOutQuart;exports.easeOutQuint=n.easeOutQuint;exports.linear=n.linear;exports.dispatchBeforeSizeChangeEvent=h.dispatchBeforeSizeChangeEvent;exports.dispatchSizeChangeEvent=h.dispatchSizeChangeEvent;exports.createJSONAndSave=I.createJSONAndSave;exports.debounce=C.debounce;exports.throttle=C.throttle;exports.setupDrag=v.setupDrag;exports.getCumulativeOffsetLeft=f.getCumulativeOffsetLeft;exports.getCumulativeOffsetTop=f.getCumulativeOffsetTop;exports.getCumulativePosition=f.getCumulativePosition;exports.calculateDistance=i.calculateDistance;exports.calculateDistanceWithRadius=i.calculateDistanceWithRadius;exports.clamp=i.clamp;exports.damp=i.damp;exports.lerp=i.lerp;exports.mapRange=i.mapRange;exports.round=i.round;exports.smootherstep=i.smootherstep;exports.smoothstep=i.smoothstep;exports.step=i.step;exports.nullishCoalescing=d.nullishCoalescing;exports.preciseNumber=d.preciseNumber;exports.roundNumberTo=d.roundNumberTo;exports.toStep=d.toStep;exports.cloneDeep=o.cloneDeep;exports.compareObjects=o.compareObjects;exports.isESClass=o.isESClass;exports.isNullish=o.isNullish;exports.isObject=o.isObject;exports.mergeDeep=o.mergeDeep;exports.mixin=o.mixin;exports.omit=o.omit;exports.pick=o.pick;exports.camelToKebab=r.camelToKebab;exports.capitalize=r.capitalize;exports.generateId=r.generateId;exports.isUppercase=r.isUppercase;exports.kebabToCamel=r.kebabToCamel;exports.snakeToDotted=r.snakeToDotted;exports.toPascalCase=r.toPascalCase;exports.uncapitalize=r.uncapitalize;exports.getElementTransitionDurationMS=O.getElementTransitionDurationMS;exports.getElementTransitionDurationS=O.getElementTransitionDurationS;exports.changeHistory=g.changeHistory;exports.normalizeBase=g.normalizeBase;exports.splitPath=g.splitPath;exports.decode=D;exports.dotCircleCollision=q;exports.dotRectCollision=T;exports.encode=Q;exports.getRootVariables=x;exports.insert=y;exports.shiftArray=P;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const h=require("../attributes-Bf2svn4j.cjs"),S=require("../browser-CpzFX2xg.cjs"),l=require("../canvas-CU5Xjahf.cjs"),d=require("../coordinates-D8Np3cPD.cjs"),p=require("../dom-JBOkFLTh.cjs"),a=require("../easings-DsS5-Kqc.cjs"),b=require("../events-BGwqaxVW.cjs"),I=require("../file-EevnUtRj.cjs"),C=require("../function-MthRj-GJ.cjs"),y=require("../gestures-DHLrn6Q8.cjs"),f=require("../layout-8ryRAMGJ.cjs"),s=require("../math-GDWEqu7y.cjs"),m=require("../polyfills-CM4SCDTt.cjs"),r=require("../object-CCiXnER2.cjs"),u=require("../string-DhgS_iFl.cjs"),O=require("../style-At6aDoqG.cjs"),g=require("../url-C3dWnJQg.cjs");function P(t,e,...n){return[...t.slice(0,e),...n,...t.slice(e)]}function T(t,e){const n=t.length;e=e%n;const i=new Array(n);for(let o=0;o<n;o++){const c=(o+e)%n;i[c]=t[o]}return i}function v(t,e=2){if(!+t)return"0 Bytes";const n=1024,i=e<0?0:e,o=["Bytes","KiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"],c=Math.floor(Math.log(t)/Math.log(n));return`${parseFloat((t/Math.pow(n,c)).toFixed(i))} ${o[c]}`}function w(t,e){return t.x<e.x+e.width&&t.x>e.x&&t.y<e.y+e.height&&t.y>e.y}function x(t,e){return Math.sqrt((t.x-e.x)**2+(t.y-e.y)**2)<e.radius}function E(t,e){const n=t.styleMap.get(e);if(n){const i=n.toString();return i.startsWith("var")?E(t,i.slice(4,-1)):i}}function q(...t){const e={};return Array.from(document.styleSheets).forEach(n=>{Array.from(n.cssRules).forEach(i=>{i instanceof CSSStyleRule&&i.selectorText===":root"&&t.forEach(o=>{const c=E(i,o);c&&(e[o]=c)})})}),t.forEach(n=>{e[n]||console.warn(`variable named ${n} not found`)}),e}function B(t){const e=window.atob(t);return decodeURIComponent(window.escape(e))}function Q(t){const e=window.unescape(encodeURIComponent(t));return window.btoa(e)}function D(t){return new Promise(e=>{setTimeout(()=>{e()},t)})}exports.parseAttribute=h.parseAttribute;exports.parseAttributeValue=h.parseAttributeValue;exports.isBrowser=S.isBrowser;exports.contain=l.contain;exports.cover=l.cover;exports.fixPosition=l.fixPosition;exports.measureText=l.measureText;exports.getPointerPosition=d.getPointerPosition;exports.normalize=d.normalize;exports.screenToCartesian=d.screenToCartesian;exports.findParentElement=p.findParentElement;exports.findScrollParentElement=p.findScrollParentElement;exports.getAllParentElements=p.getAllParentElements;exports.getElement=p.getElement;exports.easeInCubic=a.easeInCubic;exports.easeInExpo=a.easeInExpo;exports.easeInOutCubic=a.easeInOutCubic;exports.easeInOutExpo=a.easeInOutExpo;exports.easeInOutQuad=a.easeInOutQuad;exports.easeInOutQuart=a.easeInOutQuart;exports.easeInOutQuint=a.easeInOutQuint;exports.easeInQuad=a.easeInQuad;exports.easeInQuart=a.easeInQuart;exports.easeInQuint=a.easeInQuint;exports.easeOutCubic=a.easeOutCubic;exports.easeOutExpo=a.easeOutExpo;exports.easeOutQuad=a.easeOutQuad;exports.easeOutQuart=a.easeOutQuart;exports.easeOutQuint=a.easeOutQuint;exports.linear=a.linear;exports.dispatchBeforeSizeChangeEvent=b.dispatchBeforeSizeChangeEvent;exports.dispatchSizeChangeEvent=b.dispatchSizeChangeEvent;exports.createJSONAndSave=I.createJSONAndSave;exports.debounce=C.debounce;exports.throttle=C.throttle;exports.setupDrag=y.setupDrag;exports.getCumulativeOffsetLeft=f.getCumulativeOffsetLeft;exports.getCumulativeOffsetTop=f.getCumulativeOffsetTop;exports.getCumulativePosition=f.getCumulativePosition;exports.calculateDistance=s.calculateDistance;exports.calculateDistanceWithRadius=s.calculateDistanceWithRadius;exports.clamp=s.clamp;exports.damp=s.damp;exports.lerp=s.lerp;exports.mapRange=s.mapRange;exports.round=s.round;exports.smootherstep=s.smootherstep;exports.smoothstep=s.smoothstep;exports.step=s.step;exports.nullishCoalescing=m.nullishCoalescing;exports.preciseNumber=m.preciseNumber;exports.roundNumberTo=m.roundNumberTo;exports.toStep=m.toStep;exports.cloneDeep=r.cloneDeep;exports.compareObjects=r.compareObjects;exports.isESClass=r.isESClass;exports.isNullish=r.isNullish;exports.isObject=r.isObject;exports.mergeDeep=r.mergeDeep;exports.mixin=r.mixin;exports.omit=r.omit;exports.pick=r.pick;exports.camelToKebab=u.camelToKebab;exports.capitalize=u.capitalize;exports.generateId=u.generateId;exports.isUppercase=u.isUppercase;exports.kebabToCamel=u.kebabToCamel;exports.snakeToDotted=u.snakeToDotted;exports.toPascalCase=u.toPascalCase;exports.uncapitalize=u.uncapitalize;exports.getElementTransitionDurationMS=O.getElementTransitionDurationMS;exports.getElementTransitionDurationS=O.getElementTransitionDurationS;exports.changeHistory=g.changeHistory;exports.normalizeBase=g.normalizeBase;exports.splitPath=g.splitPath;exports.decode=Q;exports.dotCircleCollision=x;exports.dotRectCollision=w;exports.encode=B;exports.formatBytes=v;exports.getRootVariables=q;exports.insert=P;exports.shiftArray=T;exports.wait=D;
@@ -1,6 +1,7 @@
1
1
  export * from './array';
2
2
  export * from './attributes';
3
3
  export * from './browser';
4
+ export * from './bytes';
4
5
  export * from './canvas';
5
6
  export * from './collisions';
6
7
  export * from './coordinates';
@@ -17,6 +18,7 @@ export * from './math';
17
18
  export * from './number';
18
19
  export * from './object';
19
20
  export * from './polyfills';
21
+ export * from './promises';
20
22
  export * from './string';
21
23
  export * from './style';
22
24
  export * from './ts-shape';