aptechka 0.3.1 → 0.4.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 (141) hide show
  1. package/lib/{Damped-BvkThM-2.cjs → Damped-B0eRyTcV.cjs} +1 -1
  2. package/lib/{Damped-DEHDBwBz.js → Damped-Do9H-LKf.js} +1 -1
  3. package/lib/{Derived-Bc88XJ8J.js → Derived-Dbjm-dob.js} +1 -1
  4. package/lib/{Derived-SjPdLJiZ.cjs → Derived-vGokdC4b.cjs} +1 -1
  5. package/lib/{SourceManager-CI6NfLzW.cjs → SourceManager-CzcqsC3z.cjs} +1 -1
  6. package/lib/{SourceManager-BoP9RAJr.js → SourceManager-noBYGNeX.js} +1 -1
  7. package/lib/{Store-JOKrNVEr.js → Store-DdDuj5hz.js} +42 -41
  8. package/lib/Store-Dis8QUAR.cjs +1 -0
  9. package/lib/{Viewport-COsaberc.cjs → Viewport-CRLSlcoi.cjs} +1 -1
  10. package/lib/{Viewport-CXY5xcGJ.js → Viewport-VSV_isot.js} +1 -1
  11. package/lib/{WheelControls-BJdZsEkS.js → WheelControls-BqO_fTyY.js} +1 -1
  12. package/lib/{WheelControls-CctFwJwY.cjs → WheelControls-fiz52vcl.cjs} +1 -1
  13. package/lib/abstract-elements/index.cjs +1 -1
  14. package/lib/abstract-elements/index.js +2 -2
  15. package/lib/animation/index.cjs +1 -1
  16. package/lib/animation/index.js +2 -2
  17. package/lib/attribute/index.cjs +1 -1
  18. package/lib/attribute/index.d.ts +2 -0
  19. package/lib/attribute/index.js +36 -30
  20. package/lib/canvas/index.cjs +1 -1
  21. package/lib/canvas/index.js +3 -3
  22. package/lib/controls/index.cjs +1 -1
  23. package/lib/controls/index.js +2 -2
  24. package/lib/{createStylesheet-De-6zF24.cjs → createStylesheet-B4vLzvah.cjs} +1 -1
  25. package/lib/{createStylesheet-CYZlwj0H.js → createStylesheet-CR-XQRVT.js} +1 -1
  26. package/lib/device/index.cjs +1 -1
  27. package/lib/device/index.js +1 -1
  28. package/lib/dom-0S_WDL4g.js +42 -0
  29. package/lib/dom-JBOkFLTh.cjs +1 -0
  30. package/lib/element-constructor/ElementConstructor.d.ts +2 -0
  31. package/lib/element-constructor/index.cjs +1 -1
  32. package/lib/element-constructor/index.js +113 -114
  33. package/lib/element-resizer/index.cjs +1 -1
  34. package/lib/element-resizer/index.js +1 -1
  35. package/lib/en3/core/en3.d.ts +2 -1
  36. package/lib/en3/index.cjs +1 -1
  37. package/lib/en3/index.js +6 -6
  38. package/lib/image/index.cjs +1 -1
  39. package/lib/image/index.js +1 -1
  40. package/lib/{index-8MIh-Dcx.js → index-D-FPaxdJ.js} +3 -3
  41. package/lib/{index-CHamNqUl.cjs → index-MKoD8NCT.cjs} +1 -1
  42. package/lib/intersector/index.cjs +1 -1
  43. package/lib/intersector/index.js +1 -1
  44. package/lib/ladder/index.cjs +1 -1
  45. package/lib/ladder/index.js +1 -1
  46. package/lib/layout-box/index.cjs +1 -1
  47. package/lib/layout-box/index.js +1 -1
  48. package/lib/media/index.cjs +1 -1
  49. package/lib/media/index.js +1 -1
  50. package/lib/modal/index.cjs +1 -1
  51. package/lib/modal/index.js +3 -3
  52. package/lib/popover/index.cjs +1 -1
  53. package/lib/popover/index.js +54 -52
  54. package/lib/resized/index.cjs +1 -1
  55. package/lib/resized/index.js +1 -1
  56. package/lib/router/index.cjs +1 -1
  57. package/lib/router/index.js +93 -98
  58. package/lib/scroll/ScrollElement.d.ts +0 -22
  59. package/lib/scroll/index.cjs +1 -1
  60. package/lib/scroll/index.js +159 -183
  61. package/lib/scroll-entries/index.cjs +1 -1
  62. package/lib/scroll-entries/index.js +16 -17
  63. package/lib/select/index.cjs +1 -1
  64. package/lib/select/index.js +1 -1
  65. package/lib/source/index.cjs +1 -1
  66. package/lib/source/index.js +2 -2
  67. package/lib/store/Store.d.ts +1 -0
  68. package/lib/store/index.cjs +1 -1
  69. package/lib/store/index.js +119 -48
  70. package/lib/studio/index.cjs +1 -1
  71. package/lib/studio/index.js +17 -17
  72. package/lib/tags-D3-tO-m6.cjs +1 -0
  73. package/lib/tags-D9nd9mMM.js +846 -0
  74. package/lib/theme/index.cjs +1 -1
  75. package/lib/theme/index.js +2 -2
  76. package/lib/utils/dom.d.ts +1 -0
  77. package/lib/utils/index.cjs +1 -1
  78. package/lib/utils/index.d.ts +1 -1
  79. package/lib/utils/index.js +68 -67
  80. package/lib/video/index.cjs +1 -1
  81. package/lib/video/index.js +1 -1
  82. package/package.json +1 -65
  83. package/lib/ComponentElement-CIl1lnep.cjs +0 -1
  84. package/lib/ComponentElement-CzGRgBvs.js +0 -76
  85. package/lib/Composed-ClTo1f0b.js +0 -79
  86. package/lib/Composed-Mdr4ZFbI.cjs +0 -1
  87. package/lib/ElementConstructor-C_HDpVEZ.cjs +0 -1
  88. package/lib/ElementConstructor-ChgHpqb6.js +0 -326
  89. package/lib/Store-D0_rDIsE.cjs +0 -1
  90. package/lib/animation/hooks/index.cjs +0 -1
  91. package/lib/animation/hooks/index.d.ts +0 -9
  92. package/lib/animation/hooks/index.js +0 -32
  93. package/lib/attribute/hooks/index.d.ts +0 -3
  94. package/lib/controls/hooks/index.d.ts +0 -1
  95. package/lib/createStore-BSUQyZjo.js +0 -15
  96. package/lib/createStore-D61G4jpF.cjs +0 -1
  97. package/lib/dom-BY7JhTx5.js +0 -24
  98. package/lib/dom-qY2LdCVL.cjs +0 -1
  99. package/lib/element-resizer/hooks/index.cjs +0 -1
  100. package/lib/element-resizer/hooks/index.d.ts +0 -5
  101. package/lib/element-resizer/hooks/index.js +0 -12
  102. package/lib/instantiate-CXUQ7AmI.js +0 -72
  103. package/lib/instantiate-D63dC3Vr.cjs +0 -1
  104. package/lib/intersector/hooks/index.cjs +0 -1
  105. package/lib/intersector/hooks/index.d.ts +0 -5
  106. package/lib/intersector/hooks/index.js +0 -12
  107. package/lib/jsx/ComponentElement.d.ts +0 -26
  108. package/lib/jsx/h.d.ts +0 -4
  109. package/lib/jsx/hooks/attachInternals.d.ts +0 -1
  110. package/lib/jsx/hooks/attachShadow.d.ts +0 -1
  111. package/lib/jsx/hooks/attachStylesheet.d.ts +0 -3
  112. package/lib/jsx/hooks/createContext.d.ts +0 -2
  113. package/lib/jsx/hooks/createStore.d.ts +0 -4
  114. package/lib/jsx/hooks/index.cjs +0 -1
  115. package/lib/jsx/hooks/index.d.ts +0 -8
  116. package/lib/jsx/hooks/index.js +0 -73
  117. package/lib/jsx/hooks/onConnect.d.ts +0 -3
  118. package/lib/jsx/hooks/onDisconnect.d.ts +0 -3
  119. package/lib/jsx/hooks/withCurrentComponent.d.ts +0 -3
  120. package/lib/jsx/index.cjs +0 -1
  121. package/lib/jsx/index.d.ts +0 -5
  122. package/lib/jsx/index.js +0 -27
  123. package/lib/jsx/instantiate.d.ts +0 -1
  124. package/lib/jsx/register.d.ts +0 -1
  125. package/lib/jsx/render.d.ts +0 -1
  126. package/lib/jsx/type.d.ts +0 -186
  127. package/lib/onConnect-CNMynOhK.js +0 -9
  128. package/lib/onConnect-DyAwFqQQ.cjs +0 -1
  129. package/lib/store/hooks/index.cjs +0 -1
  130. package/lib/store/hooks/index.d.ts +0 -7
  131. package/lib/store/hooks/index.js +0 -26
  132. package/lib/tags-DSmoyoPZ.js +0 -485
  133. package/lib/tags-Di21YbUL.cjs +0 -1
  134. package/lib/ticker/hooks/index.cjs +0 -1
  135. package/lib/ticker/hooks/index.d.ts +0 -6
  136. package/lib/ticker/hooks/index.js +0 -23
  137. package/lib/window-resizer/hooks/index.cjs +0 -1
  138. package/lib/window-resizer/hooks/index.d.ts +0 -3
  139. package/lib/window-resizer/hooks/index.js +0 -9
  140. package/lib/withCurrentComponent-BDsFmjJ9.cjs +0 -1
  141. package/lib/withCurrentComponent-DIBND_yO.js +0 -7
@@ -2,16 +2,17 @@ var o = (r, t, e) => {
2
2
  if (!t.has(r))
3
3
  throw TypeError("Cannot " + e);
4
4
  };
5
- var s = (r, t, e) => (o(r, t, "read from private field"), e ? e.call(r) : t.get(r)), l = (r, t, e) => {
5
+ var s = (r, t, e) => (o(r, t, "read from private field"), e ? e.call(r) : t.get(r)), h = (r, t, e) => {
6
6
  if (t.has(r))
7
7
  throw TypeError("Cannot add the same private member more than once");
8
8
  t instanceof WeakSet ? t.add(r) : t.set(r, e);
9
9
  };
10
+ import { a as u } from "../dom-0S_WDL4g.js";
10
11
  var a, n;
11
- class u {
12
+ class g {
12
13
  constructor() {
13
- l(this, a, /* @__PURE__ */ new Set());
14
- l(this, n, /* @__PURE__ */ new WeakMap());
14
+ h(this, a, /* @__PURE__ */ new Set());
15
+ h(this, n, /* @__PURE__ */ new WeakMap());
15
16
  }
16
17
  register(t) {
17
18
  s(this, n).set(t, {
@@ -22,9 +23,9 @@ class u {
22
23
  unregister(t) {
23
24
  s(this, n).delete(t), s(this, a).delete(t);
24
25
  }
25
- update(t, e, h) {
26
- const i = s(this, n).get(t);
27
- i.axis = e, i.value = h;
26
+ update(t, e, i) {
27
+ const l = s(this, n).get(t);
28
+ l.axis = e, l.value = i;
28
29
  }
29
30
  hasEntry(t) {
30
31
  return s(this, n).has(t);
@@ -37,22 +38,20 @@ class u {
37
38
  for (; e && !this.hasEntry(e); )
38
39
  e = e.parentElement;
39
40
  if (e && e !== t) {
40
- const h = this.getEntry(e);
41
- return h || this.getClosest(e);
41
+ const i = this.getEntry(e);
42
+ return i || this.getClosest(e);
42
43
  }
43
44
  return null;
44
45
  }
45
46
  getAll(t) {
46
- const e = Array.from(s(this, a)).filter(
47
- (i) => i !== t && i.contains(t)
48
- ), h = [];
49
- return e.forEach((i) => {
50
- s(this, n).has(i) && h.push(s(this, n).get(i));
51
- }), h;
47
+ const e = u(t).filter((l) => s(this, a).has(l)), i = [];
48
+ return e.forEach((l) => {
49
+ s(this, n).has(l) && i.push(s(this, n).get(l));
50
+ }), i;
52
51
  }
53
52
  }
54
53
  a = new WeakMap(), n = new WeakMap();
55
- const g = new u();
54
+ const p = new g();
56
55
  export {
57
- g as scrollEntries
56
+ p as scrollEntries
58
57
  };
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../index-CHamNqUl.cjs");Object.defineProperty(exports,"SelectElement",{enumerable:!0,get:()=>e.SelectElement});Object.defineProperty(exports,"SelectHeadElement",{enumerable:!0,get:()=>e.SelectHeadElement});Object.defineProperty(exports,"SelectOptionElement",{enumerable:!0,get:()=>e.SelectOptionElement});exports.SelectUserElement=e.SelectUserElement;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../index-MKoD8NCT.cjs");Object.defineProperty(exports,"SelectElement",{enumerable:!0,get:()=>e.SelectElement});Object.defineProperty(exports,"SelectHeadElement",{enumerable:!0,get:()=>e.SelectHeadElement});Object.defineProperty(exports,"SelectOptionElement",{enumerable:!0,get:()=>e.SelectOptionElement});exports.SelectUserElement=e.SelectUserElement;
@@ -1,4 +1,4 @@
1
- import { S as l, d as a, c, b as m } from "../index-8MIh-Dcx.js";
1
+ import { S as l, d as a, c, b as m } from "../index-D-FPaxdJ.js";
2
2
  export {
3
3
  l as SelectElement,
4
4
  a as SelectHeadElement,
@@ -1,4 +1,4 @@
1
- "use strict";var v=(i,r,t)=>{if(!r.has(i))throw TypeError("Cannot "+t)};var e=(i,r,t)=>(v(i,r,"read from private field"),t?t.call(i):r.get(i)),n=(i,r,t)=>{if(r.has(i))throw TypeError("Cannot add the same private member more than once");r instanceof WeakSet?r.add(i):r.set(i,t)},l=(i,r,t,a)=>(v(i,r,"write to private field"),a?a.call(i,t):r.set(i,t),t);var E=(i,r,t)=>(v(i,r,"access private method"),t);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const L=require("../SourceManager-CI6NfLzW.cjs"),C=require("../custom-element/index.cjs"),A=require("../intersector/index.cjs"),y=require("../loading/index.cjs"),M=require("../notifier/index.cjs");let N=0;var o,s,h,m,c,u,f,g,b,x,p;class k extends C.CustomElement{constructor(){super();n(this,b);n(this,o,null);n(this,s,null);n(this,h,!1);n(this,m,!1);n(this,c,!1);n(this,u,void 0);n(this,f,new M.Notifier);n(this,g,new M.Notifier);n(this,p,t=>{e(this,c)&&!e(this,m)&&t.isIntersecting&&(e(this,o).current&&e(this,o).current!==e(this,o).previous&&E(this,b,x).call(this,e(this,o).current),l(this,m,!0)),t.isIntersecting?e(this,f).notify():e(this,g).notify()});l(this,u,`source-consumer-${++N}`)}get consumerElement(){return e(this,s)}get captureEvent(){return e(this,f)}get releaseEvent(){return e(this,g)}connectedCallback(){const t=this.getAttribute("srcset");t&&(l(this,s,this.createConsumer()),e(this,s).style.cssText=`
1
+ "use strict";var v=(i,r,t)=>{if(!r.has(i))throw TypeError("Cannot "+t)};var e=(i,r,t)=>(v(i,r,"read from private field"),t?t.call(i):r.get(i)),n=(i,r,t)=>{if(r.has(i))throw TypeError("Cannot add the same private member more than once");r instanceof WeakSet?r.add(i):r.set(i,t)},l=(i,r,t,a)=>(v(i,r,"write to private field"),a?a.call(i,t):r.set(i,t),t);var E=(i,r,t)=>(v(i,r,"access private method"),t);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const L=require("../SourceManager-CzcqsC3z.cjs"),C=require("../custom-element/index.cjs"),A=require("../intersector/index.cjs"),y=require("../loading/index.cjs"),M=require("../notifier/index.cjs");let N=0;var o,s,h,m,c,u,f,g,b,x,p;class k extends C.CustomElement{constructor(){super();n(this,b);n(this,o,null);n(this,s,null);n(this,h,!1);n(this,m,!1);n(this,c,!1);n(this,u,void 0);n(this,f,new M.Notifier);n(this,g,new M.Notifier);n(this,p,t=>{e(this,c)&&!e(this,m)&&t.isIntersecting&&(e(this,o).current&&e(this,o).current!==e(this,o).previous&&E(this,b,x).call(this,e(this,o).current),l(this,m,!0)),t.isIntersecting?e(this,f).notify():e(this,g).notify()});l(this,u,`source-consumer-${++N}`)}get consumerElement(){return e(this,s)}get captureEvent(){return e(this,f)}get releaseEvent(){return e(this,g)}connectedCallback(){const t=this.getAttribute("srcset");t&&(l(this,s,this.createConsumer()),e(this,s).style.cssText=`
2
2
  display: block;
3
3
  width: 100%;
4
4
  height: 100%;
@@ -8,8 +8,8 @@ var t = (i, r, s) => (v(i, r, "read from private field"), s ? s.call(i) : r.get(
8
8
  r instanceof WeakSet ? r.add(i) : r.set(i, s);
9
9
  }, l = (i, r, s, h) => (v(i, r, "write to private field"), h ? h.call(i, s) : r.set(i, s), s);
10
10
  var E = (i, r, s) => (v(i, r, "access private method"), s);
11
- import { S as k } from "../SourceManager-BoP9RAJr.js";
12
- import { a as W, b as $ } from "../SourceManager-BoP9RAJr.js";
11
+ import { S as k } from "../SourceManager-noBYGNeX.js";
12
+ import { a as W, b as $ } from "../SourceManager-noBYGNeX.js";
13
13
  import { CustomElement as w } from "../custom-element/index.js";
14
14
  import { intersector as A } from "../intersector/index.js";
15
15
  import { loading as S } from "../loading/index.js";
@@ -58,6 +58,7 @@ export interface StoreOptions<StoreType, StoreManager extends StoreManagerType =
58
58
  passport?: StorePassport<StoreManager>;
59
59
  validate?: StoreMiddleware<StoreType>;
60
60
  skipSubscribeNotification?: boolean;
61
+ notifyAndClose?: boolean;
61
62
  }
62
63
  export declare class Store<StoreType = unknown, StoreManager extends StoreManagerType = StoreManagerType, Entry extends StoreEntry<StoreType> = StoreEntry<StoreType>> {
63
64
  #private;
@@ -1 +1 @@
1
- "use strict";var g=(e,r,t)=>{if(!r.has(e))throw TypeError("Cannot "+t)};var u=(e,r,t)=>(g(e,r,"read from private field"),t?t.call(e):r.get(e)),l=(e,r,t)=>{if(r.has(e))throw TypeError("Cannot add the same private member more than once");r instanceof WeakSet?r.add(e):r.set(e,t)},v=(e,r,t,s)=>(g(e,r,"write to private field"),s?s.call(e,t):r.set(e,t),t);var S=(e,r,t,s)=>({set _(o){v(e,r,o,t)},get _(){return u(e,r,s)}});var y=(e,r,t)=>new Promise((s,o)=>{var R=i=>{try{p(t.next(i))}catch(m){o(m)}},C=i=>{try{p(t.throw(i))}catch(m){o(m)}},p=i=>i.done?s(i.value):Promise.resolve(i.value).then(R,C);p((t=t.apply(e,r)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const h=require("../Store-D0_rDIsE.cjs"),A=require("../Derived-SjPdLJiZ.cjs"),d=require("../Composed-Mdr4ZFbI.cjs");var c,a,n;class D extends d.Resource{constructor(t,s,o=100){super(t,s,{manualControl:!0,skipSubscribeNotification:!0});l(this,c,void 0);l(this,a,void 0);l(this,n,0);v(this,a,o)}get step(){return u(this,n)}startAccumulating(){v(this,c,setInterval(()=>y(this,null,function*(){++S(this,n)._,this.refetch()}),u(this,a)))}stopAccumulating(){clearInterval(u(this,c))}close(){super.close(),this.stopAccumulating()}}c=new WeakMap,a=new WeakMap,n=new WeakMap;exports.Store=h.Store;exports.activeStores=h.activeStores;exports.storeRegistry=h.storeRegistry;exports.Derived=A.Derived;exports.Composed=d.Composed;exports.DerivedArray=d.DerivedArray;exports.Resource=d.Resource;exports.CumulativeResource=D;
1
+ "use strict";var A=(t,s,e)=>{if(!s.has(t))throw TypeError("Cannot "+e)};var r=(t,s,e)=>(A(t,s,"read from private field"),e?e.call(t):s.get(t)),o=(t,s,e)=>{if(s.has(t))throw TypeError("Cannot add the same private member more than once");s instanceof WeakSet?s.add(t):s.set(t,e)},h=(t,s,e,c)=>(A(t,s,"write to private field"),c?c.call(t,e):s.set(t,e),e);var D=(t,s,e,c)=>({set _(i){h(t,s,i,e)},get _(){return r(t,s,c)}});var I=(t,s,e)=>new Promise((c,i)=>{var l=u=>{try{n(e.next(u))}catch(b){i(b)}},d=u=>{try{n(e.throw(u))}catch(b){i(b)}},n=u=>u.done?c(u.value):Promise.resolve(u.value).then(l,d);n((e=e.apply(t,s)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const p=require("../Store-Dis8QUAR.cjs"),q=require("../Derived-vGokdC4b.cjs"),M=require("../function-MthRj-GJ.cjs");var v,a;class P extends p.Store{constructor(e,c,i){super(null,i);o(this,v,void 0);o(this,a,new Map);h(this,v,e.subscribe(l=>{const d=[];l.current.forEach((n,u)=>{var b;if((b=l.previous)!=null&&b.includes(n)&&r(this,a).has(n))d.push(r(this,a).get(n));else{const C=c(n,u);r(this,a).set(n,C),d.push(C)}}),r(this,a).forEach((n,u)=>{l.current.includes(u)||r(this,a).delete(u)}),this.current=d}))}close(){super.close(),r(this,v).call(this)}}v=new WeakMap,a=new WeakMap;var S,f,g;class E extends p.Store{constructor(e,c,i){super(e,i);o(this,S,void 0);o(this,f,void 0);o(this,g,0);h(this,f,new p.Store(!1)),h(this,S,c),i!=null&&i.manualControl||this.refetch()}get isPending(){return r(this,f)}refetch(){r(this,f).current=!0,h(this,g,r(this,g)+1);const e=r(this,g);r(this,S).call(this).then(c=>{e===r(this,g)&&(r(this,f).current=!1,this.current=c)})}}S=new WeakMap,f=new WeakMap,g=new WeakMap;var m,y,R;class k extends E{constructor(e,c,i=100){super(e,c,{manualControl:!0,skipSubscribeNotification:!0});o(this,m,void 0);o(this,y,void 0);o(this,R,0);h(this,y,i)}get step(){return r(this,R)}startAccumulating(){h(this,m,setInterval(()=>I(this,null,function*(){++D(this,R)._,this.refetch()}),r(this,y)))}stopAccumulating(){clearInterval(r(this,m))}close(){super.close(),this.stopAccumulating()}}m=new WeakMap,y=new WeakMap,R=new WeakMap;var x;class w extends p.Store{constructor(e,c,i){super(null,i);o(this,x,[]);const l=M.debounce(()=>{this.current=c()},0);e.forEach(d=>{r(this,x).push(d.subscribe(()=>{l()}))})}close(){super.close(),r(this,x).forEach(e=>e())}}x=new WeakMap;exports.Store=p.Store;exports.activeStores=p.activeStores;exports.storeRegistry=p.storeRegistry;exports.Derived=q.Derived;exports.Composed=w;exports.CumulativeResource=k;exports.DerivedArray=P;exports.Resource=E;
@@ -1,75 +1,146 @@
1
- var v = (t, s, e) => {
2
- if (!s.has(t))
3
- throw TypeError("Cannot " + e);
1
+ var E = (e, t, s) => {
2
+ if (!t.has(e))
3
+ throw TypeError("Cannot " + s);
4
4
  };
5
- var i = (t, s, e) => (v(t, s, "read from private field"), e ? e.call(t) : s.get(t)), n = (t, s, e) => {
6
- if (s.has(t))
5
+ var r = (e, t, s) => (E(e, t, "read from private field"), s ? s.call(e) : t.get(e)), h = (e, t, s) => {
6
+ if (t.has(e))
7
7
  throw TypeError("Cannot add the same private member more than once");
8
- s instanceof WeakSet ? s.add(t) : s.set(t, e);
9
- }, p = (t, s, e, r) => (v(t, s, "write to private field"), r ? r.call(t, e) : s.set(t, e), e);
10
- var f = (t, s, e, r) => ({
11
- set _(a) {
12
- p(t, s, a, e);
8
+ t instanceof WeakSet ? t.add(e) : t.set(e, s);
9
+ }, a = (e, t, s, c) => (E(e, t, "write to private field"), c ? c.call(e, s) : t.set(e, s), s);
10
+ var R = (e, t, s, c) => ({
11
+ set _(i) {
12
+ a(e, t, i, s);
13
13
  },
14
14
  get _() {
15
- return i(t, s, r);
15
+ return r(e, t, c);
16
16
  }
17
17
  });
18
- var d = (t, s, e) => new Promise((r, a) => {
19
- var g = (o) => {
18
+ var S = (e, t, s) => new Promise((c, i) => {
19
+ var l = (u) => {
20
20
  try {
21
- m(e.next(o));
22
- } catch (h) {
23
- a(h);
21
+ n(s.next(u));
22
+ } catch (d) {
23
+ i(d);
24
24
  }
25
- }, x = (o) => {
25
+ }, f = (u) => {
26
26
  try {
27
- m(e.throw(o));
28
- } catch (h) {
29
- a(h);
27
+ n(s.throw(u));
28
+ } catch (d) {
29
+ i(d);
30
30
  }
31
- }, m = (o) => o.done ? r(o.value) : Promise.resolve(o.value).then(g, x);
32
- m((e = e.apply(t, s)).next());
31
+ }, n = (u) => u.done ? c(u.value) : Promise.resolve(u.value).then(l, f);
32
+ n((s = s.apply(e, t)).next());
33
33
  });
34
- import { S as I, a as b, s as k } from "../Store-JOKrNVEr.js";
35
- import { D as j } from "../Derived-Bc88XJ8J.js";
36
- import { R as A } from "../Composed-ClTo1f0b.js";
37
- import { C as w, D as z } from "../Composed-ClTo1f0b.js";
38
- var c, u, l;
39
- class R extends A {
40
- constructor(e, r, a = 100) {
41
- super(e, r, {
34
+ import { S as A } from "../Store-DdDuj5hz.js";
35
+ import { a as F, s as G } from "../Store-DdDuj5hz.js";
36
+ import { D as J } from "../Derived-Dbjm-dob.js";
37
+ import { d as D } from "../function-C10DGppn.js";
38
+ var b, o;
39
+ class N extends A {
40
+ constructor(s, c, i) {
41
+ super(null, i);
42
+ h(this, b, void 0);
43
+ h(this, o, /* @__PURE__ */ new Map());
44
+ a(this, b, s.subscribe((l) => {
45
+ const f = [];
46
+ l.current.forEach((n, u) => {
47
+ var d;
48
+ if ((d = l.previous) != null && d.includes(n) && r(this, o).has(n))
49
+ f.push(r(this, o).get(n));
50
+ else {
51
+ const C = c(n, u);
52
+ r(this, o).set(n, C), f.push(C);
53
+ }
54
+ }), r(this, o).forEach((n, u) => {
55
+ l.current.includes(u) || r(this, o).delete(u);
56
+ }), this.current = f;
57
+ }));
58
+ }
59
+ close() {
60
+ super.close(), r(this, b).call(this);
61
+ }
62
+ }
63
+ b = new WeakMap(), o = new WeakMap();
64
+ var g, p, m;
65
+ class k extends A {
66
+ constructor(s, c, i) {
67
+ super(s, i);
68
+ h(this, g, void 0);
69
+ h(this, p, void 0);
70
+ h(this, m, 0);
71
+ a(this, p, new A(!1)), a(this, g, c), i != null && i.manualControl || this.refetch();
72
+ }
73
+ get isPending() {
74
+ return r(this, p);
75
+ }
76
+ /**
77
+ * Calls fetcher again and sets isPending to true.
78
+ */
79
+ refetch() {
80
+ r(this, p).current = !0, a(this, m, r(this, m) + 1);
81
+ const s = r(this, m);
82
+ r(this, g).call(this).then((c) => {
83
+ s === r(this, m) && (r(this, p).current = !1, this.current = c);
84
+ });
85
+ }
86
+ }
87
+ g = new WeakMap(), p = new WeakMap(), m = new WeakMap();
88
+ var x, v, I;
89
+ class j extends k {
90
+ constructor(s, c, i = 100) {
91
+ super(s, c, {
42
92
  manualControl: !0,
43
93
  skipSubscribeNotification: !0
44
94
  });
45
- n(this, c, void 0);
46
- n(this, u, void 0);
47
- n(this, l, 0);
48
- p(this, u, a);
95
+ h(this, x, void 0);
96
+ h(this, v, void 0);
97
+ h(this, I, 0);
98
+ a(this, v, i);
49
99
  }
50
100
  get step() {
51
- return i(this, l);
101
+ return r(this, I);
52
102
  }
53
103
  startAccumulating() {
54
- p(this, c, setInterval(() => d(this, null, function* () {
55
- ++f(this, l)._, this.refetch();
56
- }), i(this, u)));
104
+ a(this, x, setInterval(() => S(this, null, function* () {
105
+ ++R(this, I)._, this.refetch();
106
+ }), r(this, v)));
57
107
  }
58
108
  stopAccumulating() {
59
- clearInterval(i(this, c));
109
+ clearInterval(r(this, x));
60
110
  }
61
111
  close() {
62
112
  super.close(), this.stopAccumulating();
63
113
  }
64
114
  }
65
- c = new WeakMap(), u = new WeakMap(), l = new WeakMap();
115
+ x = new WeakMap(), v = new WeakMap(), I = new WeakMap();
116
+ var y;
117
+ class q extends A {
118
+ constructor(s, c, i) {
119
+ super(null, i);
120
+ h(this, y, []);
121
+ const l = D(() => {
122
+ this.current = c();
123
+ }, 0);
124
+ s.forEach((f) => {
125
+ r(this, y).push(
126
+ f.subscribe(() => {
127
+ l();
128
+ })
129
+ );
130
+ });
131
+ }
132
+ close() {
133
+ super.close(), r(this, y).forEach((s) => s());
134
+ }
135
+ }
136
+ y = new WeakMap();
66
137
  export {
67
- w as Composed,
68
- R as CumulativeResource,
69
- j as Derived,
70
- z as DerivedArray,
71
- A as Resource,
72
- I as Store,
73
- b as activeStores,
74
- k as storeRegistry
138
+ q as Composed,
139
+ j as CumulativeResource,
140
+ J as Derived,
141
+ N as DerivedArray,
142
+ k as Resource,
143
+ A as Store,
144
+ F as activeStores,
145
+ G as storeRegistry
75
146
  };
@@ -1,4 +1,4 @@
1
- "use strict";var he=(t,e,r)=>{if(!e.has(t))throw TypeError("Cannot "+r)};var v=(t,e,r)=>(he(t,e,"read from private field"),r?r.call(t):e.get(t)),z=(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)},$=(t,e,r,n)=>(he(t,e,"write to private field"),n?n.call(t,r):e.set(t,r),r);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const we=require("../browser-CpzFX2xg.cjs"),p=require("../custom-element/index.cjs"),d=require("../Store-D0_rDIsE.cjs"),h=require("../tags-Di21YbUL.cjs"),m=require("../createStylesheet-De-6zF24.cjs"),me=require("../file-EevnUtRj.cjs"),ke=require("../function-MthRj-GJ.cjs"),_e=require("../Viewport-COsaberc.cjs"),be=require("../accordion/index.cjs"),Se=require("../index-CHamNqUl.cjs"),ye=require("../events-Crwi8fz6.cjs"),s=require("../theme/index.cjs"),Te=require("../math-GDWEqu7y.cjs"),de='<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>',pe='<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>',Ce='<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>',xe='<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 x,w;class $e{constructor(){z(this,x,"");z(this,w,[]);$(this,x,d.storeRegistry.projectName+"-studio")}openPanel(e){v(this,w).includes(e)||v(this,w).push(e)}closePanel(e){$(this,w,v(this,w).filter(r=>r!==e))}isPanelOpened(e){return v(this,w).includes(e)}save(){const e={openedPanels:v(this,w)};localStorage.setItem(v(this,x),JSON.stringify(e)),d.storeRegistry.saveState()}load(){d.storeRegistry.loadState();const e=localStorage.getItem(v(this,x));if(e)try{const r=JSON.parse(e);r.openedPanels&&$(this,w,r.openedPanels)}catch(r){console.error(r)}}}x=new WeakMap,w=new WeakMap;const C=new $e;var b;class F extends p.CustomElement{constructor(...r){super();z(this,b,void 0);$(this,b,r)}addStore(r){v(this,b).push(r)}get firstStore(){return v(this,b)[0]}get stores(){return v(this,b)}updateStores(r){v(this,b).forEach(n=>{n.current=r})}}b=new WeakMap;var Pe=Object.defineProperty,Oe=Object.getOwnPropertyDescriptor,Ee=(t,e,r,n)=>{for(var a=n>1?void 0:n?Oe(e,r):e,o=t.length-1,i;o>=0;o--)(i=t[o])&&(a=(n?i(e,r,a):i(a))||a);return n&&a&&Pe(e,r,a),a};const Me=m.createStylesheet({":host":{width:"100%",display:"inline-flex",height:"max-content"},input:{padding:"0",margin:"0",width:`calc(${s.aptechkaTheme.heightInput.var} * 0.5)`,height:`calc(${s.aptechkaTheme.heightInput.var} * 0.5)`,borderRadius:s.aptechkaTheme.borderRadius.var,overflow:"hidden",accentColor:s.aptechkaTheme.colorLight.var}});let te=class extends F{constructor(...t){super(...t),this.openShadow(Me),h.element(this,{children:[h.input({type:"checkbox",onChange:e=>{this.updateStores(e.currentTarget.checked)},ref:e=>{this.firstStore.subscribe(r=>{e.checked=r.current})}})]})}};te=Ee([p.define("e-tweaker-boolean-manager")],te);var Re=Object.defineProperty,De=Object.getOwnPropertyDescriptor,We=(t,e,r,n)=>{for(var a=n>1?void 0:n?De(e,r):e,o=t.length-1,i;o>=0;o--)(i=t[o])&&(a=(n?i(e,r,a):i(a))||a);return n&&a&&Re(e,r,a),a};const Le=m.createStylesheet({":host":{width:"100%",display:"inline-flex",height:"max-content"},input:{width:"100%",height:s.aptechkaTheme.heightInput.var,padding:"0",background:"none",borderRadius:s.aptechkaTheme.borderRadius.var,border:"none",blockSize:"unset"},"input::-webkit-color-swatch, input::-webkit-color-swatch-wrapper":{boxSizing:"border-box",padding:"0px",border:"none",borderRadius:s.aptechkaTheme.borderRadius.var,height:`calc(${s.aptechkaTheme.heightInput.var} * 0.93)`}});let re=class extends F{constructor(...t){super(...t),this.openShadow(Le),h.element(this,{children:[h.input({type:"color",value:this.firstStore,onInput:e=>{this.updateStores(e.currentTarget.value)}})]})}};re=We([p.define("e-tweaker-color-manager")],re);var Ie=Object.defineProperty,Fe=Object.getOwnPropertyDescriptor,Ae=(t,e,r,n)=>{for(var a=n>1?void 0:n?Fe(e,r):e,o=t.length-1,i;o>=0;o--)(i=t[o])&&(a=(n?i(e,r,a):i(a))||a);return n&&a&&Ie(e,r,a),a};const ze=m.createStylesheet({a:{color:"inherit"}});let ae=class extends F{constructor(...t){var e,r;super(...t),this.openShadow(ze),h.element(this,{children:[h.a({href:this.firstStore,target:(r=(e=this.firstStore.passport)==null?void 0:e.manager)!=null&&r.sameWindow?"_self":"_blank",children:this.firstStore})]})}};ae=Ae([p.define("e-tweaker-link-manager")],ae);var Ne=Object.defineProperty,qe=Object.getOwnPropertyDescriptor,He=(t,e,r,n)=>{for(var a=n>1?void 0:n?qe(e,r):e,o=t.length-1,i;o>=0;o--)(i=t[o])&&(a=(n?i(e,r,a):i(a))||a);return n&&a&&Ne(e,r,a),a},Ze=(t,e,r)=>{if(!e.has(t))throw TypeError("Cannot "+r)},X=(t,e,r)=>(Ze(t,e,"read from private field"),r?r.call(t):e.get(t)),Ge=(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)},P;const Ke=m.createStylesheet({":host":{width:"100%",display:"flex",alignItems:"center"},input:{boxSizing:"border-box",outline:"none",fontVariantNumeric:"tabular-nums",fontFamily:"inherit",color:"inherit",border:"none",fontSize:s.aptechkaTheme.fontSizeSmall.var},".text-input":{height:s.aptechkaTheme.heightInput.var,width:"100%",margin:"0",padding:`0 ${s.aptechkaTheme.gapSmall.var}`,backgroundColor:"rgba(255, 255, 255, 0.1)",borderRadius:s.aptechkaTheme.borderRadius.var}});let B=class extends F{constructor(...t){super(...t),Ge(this,P,new d.Store([])),this.openShadow(Ke),h.element(this,{children:[h.input({class:"text-input",type:"string",value:this.firstStore,onChange:e=>{this.updateStores(e.currentTarget.value)}}),X(this,P)]})}appendContent(t){X(this,P).current=[...X(this,P).current,t]}};P=new WeakMap;B=He([p.define("e-tweaker-string-manager")],B);var Ve=Object.defineProperty,Je=Object.getOwnPropertyDescriptor,Ye=(t,e,r,n)=>{for(var a=n>1?void 0:n?Je(e,r):e,o=t.length-1,i;o>=0;o--)(i=t[o])&&(a=(n?i(e,r,a):i(a))||a);return n&&a&&Ve(e,r,a),a},ue=(t,e,r)=>{if(!e.has(t))throw TypeError("Cannot "+r)},_=(t,e,r)=>(ue(t,e,"read from private field"),r?r.call(t):e.get(t)),N=(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)},j=(t,e,r,n)=>(ue(t,e,"write to private field"),n?n.call(t,r):e.set(t,r),r),O,E,M,q;let Q=class extends B{constructor(...t){var e,r,n,a,o,i;super(...t),N(this,O,void 0),N(this,E,void 0),N(this,M,void 0),N(this,q,k=>{const A=typeof k=="string"?parseFloat(k)||this.min:k,fe=Te.clamp(A,_(this,E),_(this,M));return this.toFixed(fe)}),j(this,E,((r=(e=this.firstStore.passport)==null?void 0:e.manager)==null?void 0:r.min)||0),j(this,M,((a=(n=this.firstStore.passport)==null?void 0:n.manager)==null?void 0:a.max)||1),j(this,O,((i=(o=this.firstStore.passport)==null?void 0:o.manager)==null?void 0:i.step)||.01)}get min(){return _(this,E)}get max(){return _(this,M)}get step(){return _(this,O)}toFixed(t){var r;const e=((r=_(this,O).toString().split(".")[1])==null?void 0:r.length)||0;return e?+t.toFixed(e):Math.ceil(t)}connectedCallback(){this.firstStore.addMiddleware(_(this,q))}disconnectedCallback(){this.firstStore.removeMiddleware(_(this,q))}};O=new WeakMap;E=new WeakMap;M=new WeakMap;q=new WeakMap;Q=Ye([p.define("e-tweaker-number-manager")],Q);var Be=Object.defineProperty,Qe=Object.getOwnPropertyDescriptor,Ue=(t,e,r,n)=>{for(var a=n>1?void 0:n?Qe(e,r):e,o=t.length-1,i;o>=0;o--)(i=t[o])&&(a=(n?i(e,r,a):i(a))||a);return n&&a&&Be(e,r,a),a};const Xe=m.createStylesheet({":host":{width:"100%"},".text-input":{width:"60px",marginRight:s.aptechkaTheme.gapLarge.var,textAlign:"center"},".range-input":{boxSizing:"border-box","-webkit-appearance":"none",height:"8px",width:"100%",margin:"0",padding:"0",backgroundColor:"rgba(255, 255, 255, 0.1)",borderRadius:s.aptechkaTheme.borderRadius.var},".range-input::-webkit-slider-thumb":{"-webkit-appearance":"none",height:`calc(${s.aptechkaTheme.heightInput.var} * 0.7)`,width:s.aptechkaTheme.borderRadius.var,borderRadius:s.aptechkaTheme.borderRadius.var,backgroundColor:s.aptechkaTheme.colorLight.var,transitionProperty:"background-color",transitionDuration:s.aptechkaTheme.durationShort.var},".range-input:focus::-webkit-slider-thumb":{backgroundColor:s.aptechkaTheme.colorActive.var},".range-input::-webkit-slider-runnable-track":{"-webkit-appearance":"none","box-shadow":"none",border:"none",background:"transparent"}});let ne=class extends Q{constructor(...t){super(...t),this.addStylesheet(Xe),this.appendContent(h.input({class:"range-input",type:"range",min:this.min,max:this.max,step:this.step,value:this.firstStore,onInput:e=>{this.updateStores(parseFloat(e.currentTarget.value))}}))}};ne=Ue([p.define("e-tweaker-range-manager")],ne);var je=Object.defineProperty,et=Object.getOwnPropertyDescriptor,tt=(t,e,r,n)=>{for(var a=n>1?void 0:n?et(e,r):e,o=t.length-1,i;o>=0;o--)(i=t[o])&&(a=(n?i(e,r,a):i(a))||a);return n&&a&&je(e,r,a),a};const rt=m.createStylesheet({"e-select":{width:"100%","--arrow-color":s.aptechkaTheme.colorLight.var},"e-select-head":{width:"100%",display:"flex",alignItems:"center",justifyContent:"space-between"},"e-select-option":{transitionDuration:s.aptechkaTheme.durationShort.var,transitionProperty:"color"},"e-select-option:hover":{color:s.aptechkaTheme.colorActive.var},svg:{width:"16px",height:"16px",fill:s.aptechkaTheme.colorLight.var,transitionProperty:"transform",transitionDuration:s.aptechkaTheme.durationShort.var},".opened svg":{transform:"scaleY(-1)"}});let ie=class extends F{constructor(...t){var r,n;super(...t),this.openShadow(rt);const e=((n=(r=this.firstStore.passport)==null?void 0:r.manager)==null?void 0:n.variants)||[];h.element(this,{children:h.element("e-select",{value:this.firstStore,onChange:a=>{this.updateStores(a.currentTarget.value)},lightChildren:[h.element("e-select-head",{lightChildren:[h.span({"data-value-holder":""})]}),...e.map((a,o)=>h.element("e-select-option",{lightChildren:a,default:o===0?!0:null}))]})})}};ie=tt([p.define("e-tweaker-select-manager")],ie);const at={boolean:te,color:re,link:ae,number:Q,range:ne,select:ie,string:B};var nt=Object.defineProperty,it=Object.getOwnPropertyDescriptor,st=(t,e,r,n)=>{for(var a=n>1?void 0:n?it(e,r):e,o=t.length-1,i;o>=0;o--)(i=t[o])&&(a=(n?i(e,r,a):i(a))||a);return n&&a&&nt(e,r,a),a},ve=(t,e,r)=>{if(!e.has(t))throw TypeError("Cannot "+r)},l=(t,e,r)=>(ve(t,e,"read from private field"),r?r.call(t):e.get(t)),S=(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)},y=(t,e,r,n)=>(ve(t,e,"write to private field"),n?n.call(t,r):e.set(t,r),r),g,R,D,W,L,H,Z;const ot=m.createStylesheet({":host":{display:"grid",gridAutoFlow:"column",gridTemplateColumns:"0.4fr 1fr",alignItems:"center",color:s.aptechkaTheme.colorLight.var,gap:s.aptechkaTheme.gapMedium.var},":host(.disabled)":{pointerEvents:"none",opacity:.5},".head":{fontSize:s.aptechkaTheme.fontSizeMedium.var,display:"flex",alignItems:"center",gap:s.aptechkaTheme.gapExtraSmall.var},".head-buttons":{display:"flex"},".head-button":{width:"14px",height:"14px",padding:"0",margin:"0",border:"none",background:"none",fill:s.aptechkaTheme.colorLight.var,transitionDuration:s.aptechkaTheme.durationShort.var,transitionProperty:"fill, opacity",opacity:"0"},":host(:hover) .head-button":{opacity:"1"},".head-button:hover":{fill:s.aptechkaTheme.colorActive.var},".head-button svg":{width:"100%",height:"100%"}});let U=class extends p.CustomElement{constructor(t){var r,n,a,o;super(),S(this,g,[]),S(this,R,void 0),S(this,D,void 0),S(this,W,!1),S(this,L,void 0),S(this,H,()=>{d.activeStores.current.find(i=>l(this,g).includes(i))||this.remove()}),S(this,Z,i=>{l(this,W)&&((i.metaKey||i.ctrlKey)&&i.code==="KeyC"?navigator.clipboard.writeText(l(this,g)[0].current):(i.metaKey||i.ctrlKey)&&i.code==="KeyR"&&(l(this,g).forEach(k=>{k.reset()}),i.preventDefault()))}),y(this,g,[t.store]),y(this,R,t.store.passport.name),y(this,D,l(this,R).split(".").slice(-1).toString());const e=((n=(r=t.store.passport)==null?void 0:r.manager)==null?void 0:n.type)||"string";y(this,L,new at[e](l(this,g)[0])),this.openShadow(ot),h.element(this,{class:{disabled:((o=(a=t.store.passport)==null?void 0:a.manager)==null?void 0:o.disabled)||!1},onPointerleave:()=>{y(this,W,!1)},onPointerenter:()=>{y(this,W,!0)},children:[h.div({class:"head",children:[h.div({class:"name",children:l(this,D)+":"}),h.div({class:"head-buttons",children:[h.button({class:"head-button",children:pe,onClick:()=>{navigator.clipboard.writeText(l(this,g)[0].current)}}),h.button({class:"head-button",children:de,onClick:()=>{l(this,g).forEach(i=>{i.reset()})}})]})]}),l(this,L)]})}get key(){return l(this,R)}get name(){return l(this,D)}get stores(){return l(this,g)}addStore(t){l(this,L).addStore(t)}connectedCallback(){d.activeStores.subscribe(l(this,H)),addEventListener("keydown",l(this,Z)),ye.dispatchSizeChangeEvent(this)}disconnectedCallback(){d.activeStores.unsubscribe(l(this,H)),removeEventListener("keydown",l(this,Z))}};g=new WeakMap;R=new WeakMap;D=new WeakMap;W=new WeakMap;L=new WeakMap;H=new WeakMap;Z=new WeakMap;U=st([p.define("e-tweaker-field")],U);var ht=Object.defineProperty,ct=Object.getOwnPropertyDescriptor,lt=(t,e,r,n)=>{for(var a=n>1?void 0:n?ct(e,r):e,o=t.length-1,i;o>=0;o--)(i=t[o])&&(a=(n?i(e,r,a):i(a))||a);return n&&a&&ht(e,r,a),a},ge=(t,e,r)=>{if(!e.has(t))throw TypeError("Cannot "+r)},c=(t,e,r)=>(ge(t,e,"read from private field"),r?r.call(t):e.get(t)),T=(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)},ee=(t,e,r,n)=>(ge(t,e,"write to private field"),n?n.call(t,r):e.set(t,r),r),f,G,u,K,V,se;const dt=m.createStylesheet({".wrapper":{boxSizing:"border-box",backgroundColor:"rgba(255, 255, 255, 0.1)",borderRadius:s.aptechkaTheme.borderRadius.var},".head":{boxSizing:"border-box",width:"100%",height:s.aptechkaTheme.tweakerFolderHeight.var,paddingLeft:s.aptechkaTheme.gapMedium.var,paddingRight:s.aptechkaTheme.gapMedium.var,display:"flex",alignItems:"center",justifyContent:"space-between",backgroundColor:s.aptechkaTheme.colorDarkAux.var,borderRadius:s.aptechkaTheme.borderRadius.var},".name":{fontSize:s.aptechkaTheme.fontSizeLarge.var,color:s.aptechkaTheme.colorLight.var},".body":{transitionProperty:"height",transitionDuration:s.aptechkaTheme.durationShort.var,overflow:"hidden",height:"0px"},".body-content":{boxSizing:"border-box",padding:s.aptechkaTheme.gapLarge.var,display:"grid",gap:s.aptechkaTheme.gapMedium.var},".arrow":{width:"20px",height:"20px",fill:s.aptechkaTheme.colorLight.var,transition:`transform ${s.aptechkaTheme.durationShort.var}`},".opened .arrow":{transform:"scaleY(-1)"}});let I=class extends be.AccordionElement{constructor(t){super(),T(this,f,void 0),T(this,G,new d.Store(null)),T(this,u,new d.Store([])),T(this,K,void 0),T(this,V,null),T(this,se,e=>{let r=[],n=[];e.forEach(a=>{r=[...r,...a.removedNodes],n=[...n,...a.addedNodes]}),c(this,u).current=c(this,u).current.filter(a=>!r.includes(a)),c(this,f)&&!c(this,u).current.length&&!n.length&&this.remove()}),this.openShadow(dt),ee(this,f,t.key),ee(this,K,new MutationObserver(c(this,se))),h.element(this,{onAccordionItemToggle:e=>{e.stopPropagation(),e.detail.opened?C.openPanel(c(this,f)):C.closePanel(c(this,f))},children:[h.div({class:"wrapper",children:[h.div({class:"head",children:[c(this,f)?h.div({class:"name",children:[c(this,f).split(".").slice(-1).toString()]}):null,c(this,G),h.element(Se.arrowIcon,{class:"arrow"})]}),h.div({class:"body",children:h.div({class:"body-content",children:c(this,u),ref:e=>ee(this,V,e.firstElementChild)})})]})]}),t!=null&&t.storeBox&&this.handleStore(t.storeBox)}get key(){return c(this,f)}get head(){return c(this,G)}get content(){return c(this,u)}connectedCallback(){super.connectedCallback(),setTimeout(()=>{C.isPanelOpened(c(this,f))&&this.openAll({skipTransition:!0})},50),c(this,K).observe(c(this,V),{childList:!0})}handleStore(t){if(t.remainingFolders.length){const r=t.store.passport.name.split("."),n=r.slice(0,r.length-t.remainingFolders.length).join("."),a=c(this,u).current.find(o=>o.key===n);a instanceof I?a.handleStore({store:t.store,remainingFolders:t.remainingFolders.slice(1)}):c(this,u).current=[...c(this,u).current,new I({key:n,storeBox:{store:t.store,remainingFolders:t.remainingFolders.slice(1)}})]}else{const e=c(this,u).current.find(r=>r.key===t.store.passport.name);e instanceof U?e.addStore(t.store):c(this,u).current=[...c(this,u).current,new U({store:t.store})]}}};f=new WeakMap;G=new WeakMap;u=new WeakMap;K=new WeakMap;V=new WeakMap;se=new WeakMap;I=lt([p.define("e-tweaker-folder")],I);var pt=Object.defineProperty,ut=Object.getOwnPropertyDescriptor,vt=(t,e,r,n)=>{for(var a=n>1?void 0:n?ut(e,r):e,o=t.length-1,i;o>=0;o--)(i=t[o])&&(a=(n?i(e,r,a):i(a))||a);return n&&a&&pt(e,r,a),a},gt=(t,e,r)=>{if(!e.has(t))throw TypeError("Cannot "+r)},ce=(t,e,r)=>(gt(t,e,"read from private field"),r?r.call(t):e.get(t)),ft=(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)},J;const wt=m.createStylesheet({":host":{position:"absolute",top:s.aptechkaTheme.tweakerOffset.var,right:s.aptechkaTheme.tweakerOffset.var,width:s.aptechkaTheme.tweakerWidth.var,backgroundColor:s.aptechkaTheme.colorDark.var,borderRadius:s.aptechkaTheme.borderRadius.var,transition:"opacity 0.2s",zIndex:"100",opacity:"0.1"},":host(:hover)":{opacity:"1 !important"},".tweaker-buttons":{display:"flex",alignItems:"center",gap:s.aptechkaTheme.gapExtraSmall.var},".tweaker-button":{width:"18px",height:"18px",padding:"0",margin:"0",background:"none",border:"none",fill:s.aptechkaTheme.colorLight.var,transitionProperty:"fill",transitionDuration:s.aptechkaTheme.durationShort.var},".tweaker-button:hover":{fill:s.aptechkaTheme.colorActive.var},".tweaker-button svg":{width:"100%",height:"100%"},":host .body-content":{maxHeight:`calc(
1
+ "use strict";var he=(t,e,r)=>{if(!e.has(t))throw TypeError("Cannot "+r)};var v=(t,e,r)=>(he(t,e,"read from private field"),r?r.call(t):e.get(t)),z=(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)},$=(t,e,r,n)=>(he(t,e,"write to private field"),n?n.call(t,r):e.set(t,r),r);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const we=require("../browser-CpzFX2xg.cjs"),p=require("../custom-element/index.cjs"),d=require("../Store-Dis8QUAR.cjs"),h=require("../tags-D3-tO-m6.cjs"),m=require("../createStylesheet-B4vLzvah.cjs"),me=require("../file-EevnUtRj.cjs"),ke=require("../function-MthRj-GJ.cjs"),_e=require("../Viewport-CRLSlcoi.cjs"),be=require("../accordion/index.cjs"),Se=require("../index-MKoD8NCT.cjs"),ye=require("../events-Crwi8fz6.cjs"),s=require("../theme/index.cjs"),Te=require("../math-GDWEqu7y.cjs"),de='<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>',pe='<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>',Ce='<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>',xe='<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 x,w;class $e{constructor(){z(this,x,"");z(this,w,[]);$(this,x,d.storeRegistry.projectName+"-studio")}openPanel(e){v(this,w).includes(e)||v(this,w).push(e)}closePanel(e){$(this,w,v(this,w).filter(r=>r!==e))}isPanelOpened(e){return v(this,w).includes(e)}save(){const e={openedPanels:v(this,w)};localStorage.setItem(v(this,x),JSON.stringify(e)),d.storeRegistry.saveState()}load(){d.storeRegistry.loadState();const e=localStorage.getItem(v(this,x));if(e)try{const r=JSON.parse(e);r.openedPanels&&$(this,w,r.openedPanels)}catch(r){console.error(r)}}}x=new WeakMap,w=new WeakMap;const C=new $e;var b;class F extends p.CustomElement{constructor(...r){super();z(this,b,void 0);$(this,b,r)}addStore(r){v(this,b).push(r)}get firstStore(){return v(this,b)[0]}get stores(){return v(this,b)}updateStores(r){v(this,b).forEach(n=>{n.current=r})}}b=new WeakMap;var Pe=Object.defineProperty,Oe=Object.getOwnPropertyDescriptor,Ee=(t,e,r,n)=>{for(var a=n>1?void 0:n?Oe(e,r):e,o=t.length-1,i;o>=0;o--)(i=t[o])&&(a=(n?i(e,r,a):i(a))||a);return n&&a&&Pe(e,r,a),a};const Me=m.createStylesheet({":host":{width:"100%",display:"inline-flex",height:"max-content"},input:{padding:"0",margin:"0",width:`calc(${s.aptechkaTheme.heightInput.var} * 0.5)`,height:`calc(${s.aptechkaTheme.heightInput.var} * 0.5)`,borderRadius:s.aptechkaTheme.borderRadius.var,overflow:"hidden",accentColor:s.aptechkaTheme.colorLight.var}});let te=class extends F{constructor(...t){super(...t),this.openShadow(Me),h.element(this,{children:[h.input({type:"checkbox",onChange:e=>{this.updateStores(e.currentTarget.checked)},ref:e=>{this.firstStore.subscribe(r=>{e.checked=r.current})}})]})}};te=Ee([p.define("e-tweaker-boolean-manager")],te);var Re=Object.defineProperty,De=Object.getOwnPropertyDescriptor,We=(t,e,r,n)=>{for(var a=n>1?void 0:n?De(e,r):e,o=t.length-1,i;o>=0;o--)(i=t[o])&&(a=(n?i(e,r,a):i(a))||a);return n&&a&&Re(e,r,a),a};const Le=m.createStylesheet({":host":{width:"100%",display:"inline-flex",height:"max-content"},input:{width:"100%",height:s.aptechkaTheme.heightInput.var,padding:"0",background:"none",borderRadius:s.aptechkaTheme.borderRadius.var,border:"none",blockSize:"unset"},"input::-webkit-color-swatch, input::-webkit-color-swatch-wrapper":{boxSizing:"border-box",padding:"0px",border:"none",borderRadius:s.aptechkaTheme.borderRadius.var,height:`calc(${s.aptechkaTheme.heightInput.var} * 0.93)`}});let re=class extends F{constructor(...t){super(...t),this.openShadow(Le),h.element(this,{children:[h.input({type:"color",value:this.firstStore,onInput:e=>{this.updateStores(e.currentTarget.value)}})]})}};re=We([p.define("e-tweaker-color-manager")],re);var Ie=Object.defineProperty,Fe=Object.getOwnPropertyDescriptor,Ae=(t,e,r,n)=>{for(var a=n>1?void 0:n?Fe(e,r):e,o=t.length-1,i;o>=0;o--)(i=t[o])&&(a=(n?i(e,r,a):i(a))||a);return n&&a&&Ie(e,r,a),a};const ze=m.createStylesheet({a:{color:"inherit"}});let ae=class extends F{constructor(...t){var e,r;super(...t),this.openShadow(ze),h.element(this,{children:[h.a({href:this.firstStore,target:(r=(e=this.firstStore.passport)==null?void 0:e.manager)!=null&&r.sameWindow?"_self":"_blank",children:this.firstStore})]})}};ae=Ae([p.define("e-tweaker-link-manager")],ae);var Ne=Object.defineProperty,qe=Object.getOwnPropertyDescriptor,He=(t,e,r,n)=>{for(var a=n>1?void 0:n?qe(e,r):e,o=t.length-1,i;o>=0;o--)(i=t[o])&&(a=(n?i(e,r,a):i(a))||a);return n&&a&&Ne(e,r,a),a},Ze=(t,e,r)=>{if(!e.has(t))throw TypeError("Cannot "+r)},X=(t,e,r)=>(Ze(t,e,"read from private field"),r?r.call(t):e.get(t)),Ge=(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)},P;const Ke=m.createStylesheet({":host":{width:"100%",display:"flex",alignItems:"center"},input:{boxSizing:"border-box",outline:"none",fontVariantNumeric:"tabular-nums",fontFamily:"inherit",color:"inherit",border:"none",fontSize:s.aptechkaTheme.fontSizeSmall.var},".text-input":{height:s.aptechkaTheme.heightInput.var,width:"100%",margin:"0",padding:`0 ${s.aptechkaTheme.gapSmall.var}`,backgroundColor:"rgba(255, 255, 255, 0.1)",borderRadius:s.aptechkaTheme.borderRadius.var}});let B=class extends F{constructor(...t){super(...t),Ge(this,P,new d.Store([])),this.openShadow(Ke),h.element(this,{children:[h.input({class:"text-input",type:"string",value:this.firstStore,onChange:e=>{this.updateStores(e.currentTarget.value)}}),X(this,P)]})}appendContent(t){X(this,P).current=[...X(this,P).current,t]}};P=new WeakMap;B=He([p.define("e-tweaker-string-manager")],B);var Ve=Object.defineProperty,Je=Object.getOwnPropertyDescriptor,Ye=(t,e,r,n)=>{for(var a=n>1?void 0:n?Je(e,r):e,o=t.length-1,i;o>=0;o--)(i=t[o])&&(a=(n?i(e,r,a):i(a))||a);return n&&a&&Ve(e,r,a),a},ue=(t,e,r)=>{if(!e.has(t))throw TypeError("Cannot "+r)},_=(t,e,r)=>(ue(t,e,"read from private field"),r?r.call(t):e.get(t)),N=(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)},j=(t,e,r,n)=>(ue(t,e,"write to private field"),n?n.call(t,r):e.set(t,r),r),O,E,M,q;let Q=class extends B{constructor(...t){var e,r,n,a,o,i;super(...t),N(this,O,void 0),N(this,E,void 0),N(this,M,void 0),N(this,q,k=>{const A=typeof k=="string"?parseFloat(k)||this.min:k,fe=Te.clamp(A,_(this,E),_(this,M));return this.toFixed(fe)}),j(this,E,((r=(e=this.firstStore.passport)==null?void 0:e.manager)==null?void 0:r.min)||0),j(this,M,((a=(n=this.firstStore.passport)==null?void 0:n.manager)==null?void 0:a.max)||1),j(this,O,((i=(o=this.firstStore.passport)==null?void 0:o.manager)==null?void 0:i.step)||.01)}get min(){return _(this,E)}get max(){return _(this,M)}get step(){return _(this,O)}toFixed(t){var r;const e=((r=_(this,O).toString().split(".")[1])==null?void 0:r.length)||0;return e?+t.toFixed(e):Math.ceil(t)}connectedCallback(){this.firstStore.addMiddleware(_(this,q))}disconnectedCallback(){this.firstStore.removeMiddleware(_(this,q))}};O=new WeakMap;E=new WeakMap;M=new WeakMap;q=new WeakMap;Q=Ye([p.define("e-tweaker-number-manager")],Q);var Be=Object.defineProperty,Qe=Object.getOwnPropertyDescriptor,Ue=(t,e,r,n)=>{for(var a=n>1?void 0:n?Qe(e,r):e,o=t.length-1,i;o>=0;o--)(i=t[o])&&(a=(n?i(e,r,a):i(a))||a);return n&&a&&Be(e,r,a),a};const Xe=m.createStylesheet({":host":{width:"100%"},".text-input":{width:"60px",marginRight:s.aptechkaTheme.gapLarge.var,textAlign:"center"},".range-input":{boxSizing:"border-box","-webkit-appearance":"none",height:"8px",width:"100%",margin:"0",padding:"0",backgroundColor:"rgba(255, 255, 255, 0.1)",borderRadius:s.aptechkaTheme.borderRadius.var},".range-input::-webkit-slider-thumb":{"-webkit-appearance":"none",height:`calc(${s.aptechkaTheme.heightInput.var} * 0.7)`,width:s.aptechkaTheme.borderRadius.var,borderRadius:s.aptechkaTheme.borderRadius.var,backgroundColor:s.aptechkaTheme.colorLight.var,transitionProperty:"background-color",transitionDuration:s.aptechkaTheme.durationShort.var},".range-input:focus::-webkit-slider-thumb":{backgroundColor:s.aptechkaTheme.colorActive.var},".range-input::-webkit-slider-runnable-track":{"-webkit-appearance":"none","box-shadow":"none",border:"none",background:"transparent"}});let ne=class extends Q{constructor(...t){super(...t),this.addStylesheet(Xe),this.appendContent(h.input({class:"range-input",type:"range",min:this.min,max:this.max,step:this.step,value:this.firstStore,onInput:e=>{this.updateStores(parseFloat(e.currentTarget.value))}}))}};ne=Ue([p.define("e-tweaker-range-manager")],ne);var je=Object.defineProperty,et=Object.getOwnPropertyDescriptor,tt=(t,e,r,n)=>{for(var a=n>1?void 0:n?et(e,r):e,o=t.length-1,i;o>=0;o--)(i=t[o])&&(a=(n?i(e,r,a):i(a))||a);return n&&a&&je(e,r,a),a};const rt=m.createStylesheet({"e-select":{width:"100%","--arrow-color":s.aptechkaTheme.colorLight.var},"e-select-head":{width:"100%",display:"flex",alignItems:"center",justifyContent:"space-between"},"e-select-option":{transitionDuration:s.aptechkaTheme.durationShort.var,transitionProperty:"color"},"e-select-option:hover":{color:s.aptechkaTheme.colorActive.var},svg:{width:"16px",height:"16px",fill:s.aptechkaTheme.colorLight.var,transitionProperty:"transform",transitionDuration:s.aptechkaTheme.durationShort.var},".opened svg":{transform:"scaleY(-1)"}});let ie=class extends F{constructor(...t){var r,n;super(...t),this.openShadow(rt);const e=((n=(r=this.firstStore.passport)==null?void 0:r.manager)==null?void 0:n.variants)||[];h.element(this,{children:h.element("e-select",{value:this.firstStore,onChange:a=>{this.updateStores(a.currentTarget.value)},lightChildren:[h.element("e-select-head",{lightChildren:[h.span({"data-value-holder":""})]}),...e.map((a,o)=>h.element("e-select-option",{lightChildren:a,default:o===0?!0:null}))]})})}};ie=tt([p.define("e-tweaker-select-manager")],ie);const at={boolean:te,color:re,link:ae,number:Q,range:ne,select:ie,string:B};var nt=Object.defineProperty,it=Object.getOwnPropertyDescriptor,st=(t,e,r,n)=>{for(var a=n>1?void 0:n?it(e,r):e,o=t.length-1,i;o>=0;o--)(i=t[o])&&(a=(n?i(e,r,a):i(a))||a);return n&&a&&nt(e,r,a),a},ve=(t,e,r)=>{if(!e.has(t))throw TypeError("Cannot "+r)},l=(t,e,r)=>(ve(t,e,"read from private field"),r?r.call(t):e.get(t)),S=(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)},y=(t,e,r,n)=>(ve(t,e,"write to private field"),n?n.call(t,r):e.set(t,r),r),g,R,D,W,L,H,Z;const ot=m.createStylesheet({":host":{display:"grid",gridAutoFlow:"column",gridTemplateColumns:"0.4fr 1fr",alignItems:"center",color:s.aptechkaTheme.colorLight.var,gap:s.aptechkaTheme.gapMedium.var},":host(.disabled)":{pointerEvents:"none",opacity:.5},".head":{fontSize:s.aptechkaTheme.fontSizeMedium.var,display:"flex",alignItems:"center",gap:s.aptechkaTheme.gapExtraSmall.var},".head-buttons":{display:"flex"},".head-button":{width:"14px",height:"14px",padding:"0",margin:"0",border:"none",background:"none",fill:s.aptechkaTheme.colorLight.var,transitionDuration:s.aptechkaTheme.durationShort.var,transitionProperty:"fill, opacity",opacity:"0"},":host(:hover) .head-button":{opacity:"1"},".head-button:hover":{fill:s.aptechkaTheme.colorActive.var},".head-button svg":{width:"100%",height:"100%"}});let U=class extends p.CustomElement{constructor(t){var r,n,a,o;super(),S(this,g,[]),S(this,R,void 0),S(this,D,void 0),S(this,W,!1),S(this,L,void 0),S(this,H,()=>{d.activeStores.current.find(i=>l(this,g).includes(i))||this.remove()}),S(this,Z,i=>{l(this,W)&&((i.metaKey||i.ctrlKey)&&i.code==="KeyC"?navigator.clipboard.writeText(l(this,g)[0].current):(i.metaKey||i.ctrlKey)&&i.code==="KeyR"&&(l(this,g).forEach(k=>{k.reset()}),i.preventDefault()))}),y(this,g,[t.store]),y(this,R,t.store.passport.name),y(this,D,l(this,R).split(".").slice(-1).toString());const e=((n=(r=t.store.passport)==null?void 0:r.manager)==null?void 0:n.type)||"string";y(this,L,new at[e](l(this,g)[0])),this.openShadow(ot),h.element(this,{class:{disabled:((o=(a=t.store.passport)==null?void 0:a.manager)==null?void 0:o.disabled)||!1},onPointerleave:()=>{y(this,W,!1)},onPointerenter:()=>{y(this,W,!0)},children:[h.div({class:"head",children:[h.div({class:"name",children:l(this,D)+":"}),h.div({class:"head-buttons",children:[h.button({class:"head-button",children:pe,onClick:()=>{navigator.clipboard.writeText(l(this,g)[0].current)}}),h.button({class:"head-button",children:de,onClick:()=>{l(this,g).forEach(i=>{i.reset()})}})]})]}),l(this,L)]})}get key(){return l(this,R)}get name(){return l(this,D)}get stores(){return l(this,g)}addStore(t){l(this,L).addStore(t)}connectedCallback(){d.activeStores.subscribe(l(this,H)),addEventListener("keydown",l(this,Z)),ye.dispatchSizeChangeEvent(this)}disconnectedCallback(){d.activeStores.unsubscribe(l(this,H)),removeEventListener("keydown",l(this,Z))}};g=new WeakMap;R=new WeakMap;D=new WeakMap;W=new WeakMap;L=new WeakMap;H=new WeakMap;Z=new WeakMap;U=st([p.define("e-tweaker-field")],U);var ht=Object.defineProperty,ct=Object.getOwnPropertyDescriptor,lt=(t,e,r,n)=>{for(var a=n>1?void 0:n?ct(e,r):e,o=t.length-1,i;o>=0;o--)(i=t[o])&&(a=(n?i(e,r,a):i(a))||a);return n&&a&&ht(e,r,a),a},ge=(t,e,r)=>{if(!e.has(t))throw TypeError("Cannot "+r)},c=(t,e,r)=>(ge(t,e,"read from private field"),r?r.call(t):e.get(t)),T=(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)},ee=(t,e,r,n)=>(ge(t,e,"write to private field"),n?n.call(t,r):e.set(t,r),r),f,G,u,K,V,se;const dt=m.createStylesheet({".wrapper":{boxSizing:"border-box",backgroundColor:"rgba(255, 255, 255, 0.1)",borderRadius:s.aptechkaTheme.borderRadius.var},".head":{boxSizing:"border-box",width:"100%",height:s.aptechkaTheme.tweakerFolderHeight.var,paddingLeft:s.aptechkaTheme.gapMedium.var,paddingRight:s.aptechkaTheme.gapMedium.var,display:"flex",alignItems:"center",justifyContent:"space-between",backgroundColor:s.aptechkaTheme.colorDarkAux.var,borderRadius:s.aptechkaTheme.borderRadius.var},".name":{fontSize:s.aptechkaTheme.fontSizeLarge.var,color:s.aptechkaTheme.colorLight.var},".body":{transitionProperty:"height",transitionDuration:s.aptechkaTheme.durationShort.var,overflow:"hidden",height:"0px"},".body-content":{boxSizing:"border-box",padding:s.aptechkaTheme.gapLarge.var,display:"grid",gap:s.aptechkaTheme.gapMedium.var},".arrow":{width:"20px",height:"20px",fill:s.aptechkaTheme.colorLight.var,transition:`transform ${s.aptechkaTheme.durationShort.var}`},".opened .arrow":{transform:"scaleY(-1)"}});let I=class extends be.AccordionElement{constructor(t){super(),T(this,f,void 0),T(this,G,new d.Store(null)),T(this,u,new d.Store([])),T(this,K,void 0),T(this,V,null),T(this,se,e=>{let r=[],n=[];e.forEach(a=>{r=[...r,...a.removedNodes],n=[...n,...a.addedNodes]}),c(this,u).current=c(this,u).current.filter(a=>!r.includes(a)),c(this,f)&&!c(this,u).current.length&&!n.length&&this.remove()}),this.openShadow(dt),ee(this,f,t.key),ee(this,K,new MutationObserver(c(this,se))),h.element(this,{onAccordionItemToggle:e=>{e.stopPropagation(),e.detail.opened?C.openPanel(c(this,f)):C.closePanel(c(this,f))},children:[h.div({class:"wrapper",children:[h.div({class:"head",children:[c(this,f)?h.div({class:"name",children:[c(this,f).split(".").slice(-1).toString()]}):null,c(this,G),h.element(Se.arrowIcon,{class:"arrow"})]}),h.div({class:"body",children:h.div({class:"body-content",children:c(this,u),ref:e=>ee(this,V,e.firstElementChild)})})]})]}),t!=null&&t.storeBox&&this.handleStore(t.storeBox)}get key(){return c(this,f)}get head(){return c(this,G)}get content(){return c(this,u)}connectedCallback(){super.connectedCallback(),setTimeout(()=>{C.isPanelOpened(c(this,f))&&this.openAll({skipTransition:!0})},50),c(this,K).observe(c(this,V),{childList:!0})}handleStore(t){if(t.remainingFolders.length){const r=t.store.passport.name.split("."),n=r.slice(0,r.length-t.remainingFolders.length).join("."),a=c(this,u).current.find(o=>o.key===n);a instanceof I?a.handleStore({store:t.store,remainingFolders:t.remainingFolders.slice(1)}):c(this,u).current=[...c(this,u).current,new I({key:n,storeBox:{store:t.store,remainingFolders:t.remainingFolders.slice(1)}})]}else{const e=c(this,u).current.find(r=>r.key===t.store.passport.name);e instanceof U?e.addStore(t.store):c(this,u).current=[...c(this,u).current,new U({store:t.store})]}}};f=new WeakMap;G=new WeakMap;u=new WeakMap;K=new WeakMap;V=new WeakMap;se=new WeakMap;I=lt([p.define("e-tweaker-folder")],I);var pt=Object.defineProperty,ut=Object.getOwnPropertyDescriptor,vt=(t,e,r,n)=>{for(var a=n>1?void 0:n?ut(e,r):e,o=t.length-1,i;o>=0;o--)(i=t[o])&&(a=(n?i(e,r,a):i(a))||a);return n&&a&&pt(e,r,a),a},gt=(t,e,r)=>{if(!e.has(t))throw TypeError("Cannot "+r)},ce=(t,e,r)=>(gt(t,e,"read from private field"),r?r.call(t):e.get(t)),ft=(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)},J;const wt=m.createStylesheet({":host":{position:"absolute",top:s.aptechkaTheme.tweakerOffset.var,right:s.aptechkaTheme.tweakerOffset.var,width:s.aptechkaTheme.tweakerWidth.var,backgroundColor:s.aptechkaTheme.colorDark.var,borderRadius:s.aptechkaTheme.borderRadius.var,transition:"opacity 0.2s",zIndex:"100",opacity:"0.1"},":host(:hover)":{opacity:"1 !important"},".tweaker-buttons":{display:"flex",alignItems:"center",gap:s.aptechkaTheme.gapExtraSmall.var},".tweaker-button":{width:"18px",height:"18px",padding:"0",margin:"0",background:"none",border:"none",fill:s.aptechkaTheme.colorLight.var,transitionProperty:"fill",transitionDuration:s.aptechkaTheme.durationShort.var},".tweaker-button:hover":{fill:s.aptechkaTheme.colorActive.var},".tweaker-button svg":{width:"100%",height:"100%"},":host .body-content":{maxHeight:`calc(
2
2
  100dvh -
3
3
  (
4
4
  ${s.aptechkaTheme.tweakerOffset.var} * 2 +
@@ -9,14 +9,14 @@ var d = (t, e, r) => (ge(t, e, "read from private field"), r ? r.call(t) : e.get
9
9
  }, M = (t, e, r, n) => (ge(t, e, "write to private field"), n ? n.call(t, r) : e.set(t, r), r);
10
10
  import { i as ke } from "../browser-0zX67oeU.js";
11
11
  import { CustomElement as ve, define as u } from "../custom-element/index.js";
12
- import { s as S, S as se, a as $ } from "../Store-JOKrNVEr.js";
13
- import { e as p, $ as N, a as xe, aA as $e, D as m, p as A, a2 as Pe } from "../tags-DSmoyoPZ.js";
14
- import { c as w } from "../createStylesheet-CYZlwj0H.js";
12
+ import { s as S, S as se, a as $ } from "../Store-DdDuj5hz.js";
13
+ import { e as p, a0 as N, a as xe, aB as $e, D as m, p as A, a3 as Pe } from "../tags-D9nd9mMM.js";
14
+ import { c as w } from "../createStylesheet-CR-XQRVT.js";
15
15
  import { c as Oe } from "../file-lxi_oXJf.js";
16
16
  import { d as Me } from "../function-C10DGppn.js";
17
- import { a as Ee } from "../Viewport-CXY5xcGJ.js";
17
+ import { a as Ee } from "../Viewport-VSV_isot.js";
18
18
  import { AccordionElement as Te } from "../accordion/index.js";
19
- import { a as De } from "../index-8MIh-Dcx.js";
19
+ import { a as De } from "../index-D-FPaxdJ.js";
20
20
  import { d as Re } from "../events-_C2CztxR.js";
21
21
  import { aptechkaTheme as i } from "../theme/index.js";
22
22
  import { c as We } from "../math-BOBiC4TN.js";
@@ -169,12 +169,12 @@ let oe = class extends H {
169
169
  oe = Ke([
170
170
  u("e-tweaker-color-manager")
171
171
  ], oe);
172
- var Ve = Object.defineProperty, Ye = Object.getOwnPropertyDescriptor, qe = (t, e, r, n) => {
172
+ var Ve = Object.defineProperty, Ye = Object.getOwnPropertyDescriptor, Be = (t, e, r, n) => {
173
173
  for (var a = n > 1 ? void 0 : n ? Ye(e, r) : e, o = t.length - 1, s; o >= 0; o--)
174
174
  (s = t[o]) && (a = (n ? s(e, r, a) : s(a)) || a);
175
175
  return n && a && Ve(e, r, a), a;
176
176
  };
177
- const Be = w({
177
+ const qe = w({
178
178
  a: {
179
179
  color: "inherit"
180
180
  }
@@ -182,7 +182,7 @@ const Be = w({
182
182
  let le = class extends H {
183
183
  constructor(...t) {
184
184
  var e, r;
185
- super(...t), this.openShadow(Be), p(this, {
185
+ super(...t), this.openShadow(qe), p(this, {
186
186
  children: [
187
187
  xe({
188
188
  href: this.firstStore,
@@ -193,7 +193,7 @@ let le = class extends H {
193
193
  });
194
194
  }
195
195
  };
196
- le = qe([
196
+ le = Be([
197
197
  u("e-tweaker-link-manager")
198
198
  ], le);
199
199
  var Qe = Object.defineProperty, Ue = Object.getOwnPropertyDescriptor, Xe = (t, e, r, n) => {
@@ -597,7 +597,7 @@ var mt = Object.defineProperty, _t = Object.getOwnPropertyDescriptor, bt = (t, e
597
597
  if (e.has(t))
598
598
  throw TypeError("Cannot add the same private member more than once");
599
599
  e instanceof WeakSet ? e.add(t) : e.set(t, r);
600
- }, ne = (t, e, r, n) => (ye(t, e, "write to private field"), n ? n.call(t, r) : e.set(t, r), r), g, q, c, B, Q, de;
600
+ }, ne = (t, e, r, n) => (ye(t, e, "write to private field"), n ? n.call(t, r) : e.set(t, r), r), g, B, c, q, Q, de;
601
601
  const St = w({
602
602
  ".wrapper": {
603
603
  boxSizing: "border-box",
@@ -644,14 +644,14 @@ const St = w({
644
644
  });
645
645
  let z = class extends Te {
646
646
  constructor(t) {
647
- super(), x(this, g, void 0), x(this, q, new se(null)), x(this, c, new se([])), x(this, B, void 0), x(this, Q, null), x(this, de, (e) => {
647
+ super(), x(this, g, void 0), x(this, B, new se(null)), x(this, c, new se([])), x(this, q, void 0), x(this, Q, null), x(this, de, (e) => {
648
648
  let r = [], n = [];
649
649
  e.forEach((a) => {
650
650
  r = [...r, ...a.removedNodes], n = [...n, ...a.addedNodes];
651
651
  }), l(this, c).current = l(this, c).current.filter(
652
652
  (a) => !r.includes(a)
653
653
  ), l(this, g) && !l(this, c).current.length && !n.length && this.remove();
654
- }), this.openShadow(St), ne(this, g, t.key), ne(this, B, new MutationObserver(l(this, de))), p(this, {
654
+ }), this.openShadow(St), ne(this, g, t.key), ne(this, q, new MutationObserver(l(this, de))), p(this, {
655
655
  onAccordionItemToggle: (e) => {
656
656
  e.stopPropagation(), e.detail.opened ? P.openPanel(l(this, g)) : P.closePanel(l(this, g));
657
657
  },
@@ -666,7 +666,7 @@ let z = class extends Te {
666
666
  class: "name",
667
667
  children: [l(this, g).split(".").slice(-1).toString()]
668
668
  }) : null,
669
- l(this, q),
669
+ l(this, B),
670
670
  p(De, {
671
671
  class: "arrow"
672
672
  })
@@ -689,7 +689,7 @@ let z = class extends Te {
689
689
  return l(this, g);
690
690
  }
691
691
  get head() {
692
- return l(this, q);
692
+ return l(this, B);
693
693
  }
694
694
  get content() {
695
695
  return l(this, c);
@@ -697,7 +697,7 @@ let z = class extends Te {
697
697
  connectedCallback() {
698
698
  super.connectedCallback(), setTimeout(() => {
699
699
  P.isPanelOpened(l(this, g)) && this.openAll({ skipTransition: !0 });
700
- }, 50), l(this, B).observe(l(this, Q), {
700
+ }, 50), l(this, q).observe(l(this, Q), {
701
701
  childList: !0
702
702
  });
703
703
  }
@@ -731,9 +731,9 @@ let z = class extends Te {
731
731
  }
732
732
  };
733
733
  g = /* @__PURE__ */ new WeakMap();
734
- q = /* @__PURE__ */ new WeakMap();
735
- c = /* @__PURE__ */ new WeakMap();
736
734
  B = /* @__PURE__ */ new WeakMap();
735
+ c = /* @__PURE__ */ new WeakMap();
736
+ q = /* @__PURE__ */ new WeakMap();
737
737
  Q = /* @__PURE__ */ new WeakMap();
738
738
  de = /* @__PURE__ */ new WeakMap();
739
739
  z = bt([
@@ -0,0 +1 @@
1
+ "use strict";var Te=Object.defineProperty,Le=Object.defineProperties;var qe=Object.getOwnPropertyDescriptors;var de=Object.getOwnPropertySymbols;var xe=Object.prototype.hasOwnProperty,Ae=Object.prototype.propertyIsEnumerable;var he=(e,t,r)=>t in e?Te(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,_=(e,t)=>{for(var r in t||(t={}))xe.call(t,r)&&he(e,r,t[r]);if(de)for(var r of de(t))Ae.call(t,r)&&he(e,r,t[r]);return e},me=(e,t)=>Le(e,qe(t));var O=(e,t,r)=>{if(!t.has(e))throw TypeError("Cannot "+r)};var o=(e,t,r)=>(O(e,t,"read from private field"),r?r.call(e):t.get(e)),a=(e,t,r)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,r)},g=(e,t,r,i)=>(O(e,t,"write to private field"),i?i.call(e,r):t.set(e,r),r);var c=(e,t,r)=>(O(e,t,"access private method"),r);const y=require("./Store-Dis8QUAR.cjs"),Me=require("./browser-CpzFX2xg.cjs"),we=require("./object-BZELAoVj.cjs"),j=require("./string-vBu90jhV.cjs"),De=require("./connector/index.cjs"),Fe=new Set(["animate","animateMotion","animateTransform","circle","clipPath","defs","desc","ellipse","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","filter","foreignObject","g","image","line","linearGradient","listener","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialGradient","rect","set","solidColor","stop","svg","switch","symbol","text","textPath","title","tspan","view"]);var u,b,l,N,h,m,R,pe,$,be,B,ge,k,ee,T,te,G,ye,V,Ee,W,Se,z,Ce,L,ne,q,re,I,ve,x,ie,A,oe,J,Ne,M,se,v,P,D,ue,F,ce,H,ae,K,U;const Y=class Y{constructor(...t){a(this,R);a(this,$);a(this,B);a(this,k);a(this,T);a(this,G);a(this,V);a(this,W);a(this,z);a(this,L);a(this,q);a(this,I);a(this,x);a(this,A);a(this,J);a(this,M);a(this,v);a(this,D);a(this,F);a(this,H);a(this,u,void 0);a(this,b,new Set);a(this,l,new Set);a(this,N,void 0);a(this,h,void 0);a(this,m,void 0);a(this,K,()=>{o(this,b).forEach(t=>{t()}),o(this,b).clear()});a(this,U,t=>{o(this,l).forEach(r=>{r(t)}),o(this,l).clear(),c(this,A,oe).call(this)});const r=t[0],i=t[1];g(this,u,c(this,R,pe).call(this,r,i==null?void 0:i.forceSvg)),c(this,B,ge).call(this,i)}get node(){return o(this,u)}set node(t){var r;c(this,A,oe).call(this),g(this,u,t),(r=o(this,N))==null||r.call(this),o(this,u)instanceof Element&&g(this,h,[...o(this,u).querySelectorAll("store-root")]),c(this,x,ie).call(this),c(this,k,ee).call(this)}};u=new WeakMap,b=new WeakMap,l=new WeakMap,N=new WeakMap,h=new WeakMap,m=new WeakMap,R=new WeakSet,pe=function(t,r){let i=null;if(t instanceof Node)i=t;else if(typeof t=="string")if(!t.includes("<")&&t.includes("-"))i=new(customElements.get(t));else if(t.includes("<")){const s=document.createElement("div");s.innerHTML=t,i=s.firstElementChild}else Fe.has(t)||r?i=document.createElementNS("http://www.w3.org/2000/svg",t):i=document.createElement(t);else i=document.createElement("div");return i},$=new WeakSet,be=function(t){return t instanceof HTMLElement||t instanceof SVGElement},B=new WeakSet,ge=function(t){if(!t)return;const r=c(this,$,be).call(this,o(this,u)),i=t.ref;delete t.ref,t!=null&&t.onConnect&&(o(this,b).add(t.onConnect),delete t.onConnect),t!=null&&t.onDisconnect&&(o(this,l).add(t.onDisconnect),delete t.onDisconnect);let s,f;for(const d in t){const w=t[d];d==="class"&&r?c(this,T,te).call(this,w):d==="style"&&r?c(this,W,Se).call(this,w):d==="lightChildren"?c(this,v,P).call(this,o(this,u),w):d==="children"?c(this,v,P).call(this,o(this,u)instanceof Element?o(this,u).shadowRoot||o(this,u):o(this,u),w):d.startsWith("on")?(f||(f={}),f[d]=w):(s||(s={}),s[d]=w)}c(this,J,Ne).call(this,s),c(this,I,ve).call(this,f),i&&(typeof i=="function"?i(o(this,u)):i.current=o(this,u)),c(this,k,ee).call(this)},k=new WeakSet,ee=function(){if(Me.isBrowser&&(o(this,l).size||o(this,b).size)){const t=o(this,u)instanceof DocumentFragment?o(this,u).firstChild:o(this,u);g(this,N,De.connector.subscribe(t,{connectCallback:o(this,K),disconnectCallback:o(this,U),unsubscribeAfterDisconnect:!0,maxWaitSec:20}))}},T=new WeakSet,te=function(t){if(t){if(typeof t=="string")o(this,u).classList.add(t);else if(Array.isArray(t))t.forEach(r=>{c(this,T,te).call(this,r)});else if(typeof t=="object")if(t instanceof y.Store)c(this,G,ye).call(this,t);else for(const r in t){const i=t[r];i instanceof y.Store?c(this,V,Ee).call(this,r,i):i?o(this,u).classList.add(r):o(this,u).classList.remove(r)}}else return},G=new WeakSet,ye=function(t){o(this,l).add(t.subscribe(({current:r,previous:i})=>{i&&[i].flat().forEach(s=>{s&&o(this,u).classList.remove(s)}),r&&[r].flat().forEach(s=>{s&&o(this,u).classList.add(s)})}))},V=new WeakSet,Ee=function(t,r){o(this,l).add(r.subscribe(({current:i})=>{i?o(this,u).classList.add(t):o(this,u).classList.remove(t)}))},W=new WeakSet,Se=function(t){if(!t)return;o(this,u).tagName==="style"||o(this,u).tagName==="STYLE"?c(this,L,ne).call(this,t):c(this,z,Ce).call(this,t)},z=new WeakSet,Ce=function(t){for(const r in t){const i=r,s=t[i];s instanceof y.Store?o(this,l).add(s.subscribe(({current:f})=>{c(this,q,re).call(this,i,f)})):c(this,q,re).call(this,i,s)}},L=new WeakSet,ne=function(t){for(const r in t){const i=t[r];if(typeof i=="object"&&!(i instanceof y.Store))o(this,u).appendChild(document.createTextNode(`${r} {`)),c(this,L,ne).call(this,i),o(this,u).appendChild(document.createTextNode("}"));else if(i instanceof y.Store){const s=document.createTextNode("");o(this,l).add(i.subscribe(f=>{f.current?s.nodeValue=`${j.camelToKebab(r)}: ${f.current};`:s.nodeValue=""})),o(this,u).appendChild(s)}else o(this,u).appendChild(document.createTextNode(`${j.camelToKebab(r)}: ${i};`))}},q=new WeakSet,re=function(t,r){t.includes("--")?r?o(this,u).style.setProperty(t,r):o(this,u).style.removeProperty(t):r?o(this,u).style[t]=r:o(this,u).style[t]=""},I=new WeakSet,ve=function(t){if(t){o(this,m)||g(this,m,[]);for(const r in t){const i=r,s=j.uncapitalize(i.split("on").slice(1).join("on")),f=t[i];typeof f=="object"?o(this,m).push({name:s,callback:f.callback,options:f.options}):typeof f=="function"&&o(this,m).push({name:s,callback:f})}c(this,x,ie).call(this)}},x=new WeakSet,ie=function(){var t;(t=o(this,m))==null||t.forEach(r=>{o(this,u).addEventListener(r.name,r.callback,r.options)})},A=new WeakSet,oe=function(){var t;(t=o(this,m))==null||t.forEach(r=>{o(this,u).removeEventListener(r.name,r.callback,r.options)})},J=new WeakSet,Ne=function(t){for(const r in t){const i=t[r];i instanceof y.Store?o(this,l).add(i.subscribe(({current:s})=>{c(this,M,se).call(this,r,s)})):c(this,M,se).call(this,r,i)}},M=new WeakSet,se=function(t,r){var s,f;const i=o(this,u);t in i&&!((f=(s=i.constructor)==null?void 0:s.observedAttributes)!=null&&f.includes(t))?r!=null&&(i[t]=r.toString()):r!=null&&i.setAttribute(t,r.toString())},v=new WeakSet,P=function(t,r){r&&(r=[r].flat(),r.forEach(i=>{if(i instanceof y.Store){const s=document.createElement("div");s.style.display="contents",t.appendChild(s),o(this,h)||g(this,h,[]);const f=o(this,h).length;s.setAttribute("store-root",""),o(this,h).push(s),o(this,l).add(i.subscribe(({current:d,previous:w})=>{const E=o(this,h)[f];E.dispatchEvent(new CustomEvent("beforeChildrenChange",{bubbles:!0,composed:!0}));const Q=Array.from(E.childNodes),fe=[d].flat(),ke=[w].flat(),le=[],X=[];ke.forEach((p,S)=>{!fe.includes(p)&&Q[S]?le.push(Q[S]):X.push(p)}),fe.forEach((p,S)=>{if(X[S]){if(p!==X[S]){const C=c(this,F,ce).call(this,p),Z=Q[S];C instanceof Node?Z.isEqualNode(C)||E.replaceChild(C,Z):E.removeChild(Z)}}else{const C=c(this,F,ce).call(this,p);C instanceof Node&&s.appendChild(C)}}),le.forEach(p=>{E.removeChild(p)}),E.dispatchEvent(new CustomEvent("afterChildrenChange",{bubbles:!0,composed:!0}))}))}else if(i instanceof Y)c(this,D,ue).call(this,t,i.node);else if(i instanceof Function)c(this,v,P).call(this,t,we.isESClass(i)?new i:i());else{const s=c(this,H,ae).call(this,i);s instanceof Node&&c(this,D,ue).call(this,t,s)}}))},D=new WeakSet,ue=function(t,r){!(t instanceof ShadowRoot)&&r instanceof HTMLElement&&r.tagName==="STYLE"?(o(this,b).add(()=>{[...document.head.querySelectorAll("style")].find(s=>s.outerHTML===r.outerHTML)||document.head.appendChild(r)}),o(this,l).add(()=>{r.remove()})):t.appendChild(r)},F=new WeakSet,ce=function(t){return t instanceof Y?t.node:typeof t=="function"?we.isESClass(t)?new t:t():c(this,H,ae).call(this,t)},H=new WeakSet,ae=function(t){if(t instanceof Node)return t;if(t!=null){const r=String(t);if(r.trim().startsWith("<")&&r.trim().endsWith(">")){const i=document.createElement("div");return i.innerHTML=r,i.firstElementChild}else return document.createTextNode(r)}else return},K=new WeakMap,U=new WeakMap;let n=Y;function He(...e){return new n(...e)}function Pe(e){return new n("a",e)}function Re(e){return new n("abbr",e)}function $e(e){return new n("address",e)}function Be(e){return new n("area",e)}function Ge(e){return new n("article",e)}function Ve(e){return new n("aside",e)}function We(e){return new n("audio",e)}function ze(e){return new n("b",e)}function Ie(e){return new n("base",e)}function Je(e){return new n("bdi",e)}function Ke(e){return new n("bdo",e)}function Ue(e){return new n("blockquote",e)}function Ye(e){return new n("body",e)}function Qe(e){return new n("br",e)}function Xe(e){return new n("button",e)}function Ze(e){return new n("canvas",e)}function _e(e){return new n("caption",e)}function Oe(e){return new n("cite",e)}function je(e){return new n("code",e)}function et(e){return new n("col",e)}function tt(e){return new n("colgroup",e)}function nt(e){return new n("data",e)}function rt(e){return new n("datalist",e)}function it(e){return new n("dd",e)}function ot(e){return new n("del",e)}function st(e){return new n("details",e)}function ut(e){return new n("dfn",e)}function ct(e){return new n("dialog",e)}function at(e){return new n("div",e)}function ft(e){return new n("dl",e)}function lt(e){return new n("dt",e)}function dt(e){return new n("em",e)}function ht(e){return new n("embed",e)}function mt(e){return new n("fieldset",e)}function wt(e){return new n("figcaption",e)}function pt(e){return new n("figure",e)}function bt(e){return new n("footer",e)}function gt(e){return new n("form",e)}function yt(e){return new n("h1",e)}function Et(e){return new n("h2",e)}function St(e){return new n("h3",e)}function Ct(e){return new n("h4",e)}function vt(e){return new n("h5",e)}function Nt(e){return new n("h6",e)}function kt(e){return new n("head",e)}function Tt(e){return new n("header",e)}function Lt(e){return new n("hgroup",e)}function qt(e){return new n("hr",e)}function xt(e){return new n("html",e)}function At(e){return new n("i",e)}function Mt(e){return new n("iframe",e)}function Dt(e){return new n("img",e)}function Ft(e){return new n("input",e)}function Ht(e){return new n("ins",e)}function Pt(e){return new n("kbd",e)}function Rt(e){return new n("label",e)}function $t(e){return new n("legend",e)}function Bt(e){return new n("li",e)}function Gt(e){return new n("link",e)}function Vt(e){return new n("main",e)}function Wt(e){return new n("map",e)}function zt(e){return new n("mark",e)}function It(e){return new n("menu",e)}function Jt(e){return new n("meta",e)}function Kt(e){return new n("meter",e)}function Ut(e){return new n("nav",e)}function Yt(e){return new n("noscript",e)}function Qt(e){return new n("object",e)}function Xt(e){return new n("ol",e)}function Zt(e){return new n("optgroup",e)}function _t(e){return new n("option",e)}function Ot(e){return new n("output",e)}function jt(e){return new n("p",e)}function en(e){return new n("picture",e)}function tn(e){return new n("pre",e)}function nn(e){return new n("progress",e)}function rn(e){return new n("q",e)}function on(e){return new n("rp",e)}function sn(e){return new n("rt",e)}function un(e){return new n("ruby",e)}function cn(e){return new n("s",e)}function an(e){return new n("samp",e)}function fn(e){return new n("script",e)}function ln(e){return new n("search",e)}function dn(e){return new n("section",e)}function hn(e){return new n("select",e)}function mn(e){return new n("slot",e)}function wn(e){return new n("small",e)}function pn(e){return new n("source",e)}function bn(e){return new n("span",e)}function gn(e){return new n("strong",e)}function yn(e){return new n("style",{style:e})}function En(e){return new n("sub",e)}function Sn(e){return new n("summary",e)}function Cn(e){return new n("sup",e)}function vn(e){return new n("table",e)}function Nn(e){return new n("tbody",e)}function kn(e){return new n("td",e)}function Tn(e){return new n("template",e)}function Ln(e){return new n("textarea",e)}function qn(e){return new n("tfoot",e)}function xn(e){return new n("th",e)}function An(e){return new n("thead",e)}function Mn(e){return new n("time",e)}function Dn(e){return new n("title",e)}function Fn(e){return new n("tr",e)}function Hn(e){return new n("track",e)}function Pn(e){return new n("u",e)}function Rn(e){return new n("ul",e)}function $n(e){return new n("var",e)}function Bn(e){return new n("video",e)}function Gn(e){return new n("wbr",e)}function Vn(e){return new n(document.createDocumentFragment(),e)}function Wn(e){return new n(document.createTextNode(""),e)}function zn(e){return new n("div",me(_({},e),{style:_({display:"contents"},e==null?void 0:e.style)}))}exports.ElementConstructor=n;exports.a=Pe;exports.abbr=Re;exports.address=$e;exports.area=Be;exports.article=Ge;exports.aside=Ve;exports.audio=We;exports.b=ze;exports.base=Ie;exports.bdi=Je;exports.bdo=Ke;exports.blockquote=Ue;exports.body=Ye;exports.br=Qe;exports.button=Xe;exports.canvas=Ze;exports.caption=_e;exports.cite=Oe;exports.code=je;exports.col=et;exports.colgroup=tt;exports.contents=zn;exports.data=nt;exports.datalist=rt;exports.dd=it;exports.del=ot;exports.details=st;exports.dfn=ut;exports.dialog=ct;exports.div=at;exports.dl=ft;exports.dt=lt;exports.element=He;exports.em=dt;exports.embed=ht;exports.empty=Wn;exports.fieldset=mt;exports.figcaption=wt;exports.figure=pt;exports.footer=bt;exports.form=gt;exports.fragment=Vn;exports.h1=yt;exports.h2=Et;exports.h3=St;exports.h4=Ct;exports.h5=vt;exports.h6=Nt;exports.head=kt;exports.header=Tt;exports.hgroup=Lt;exports.hr=qt;exports.html=xt;exports.htmlVar=$n;exports.i=At;exports.iframe=Mt;exports.img=Dt;exports.input=Ft;exports.ins=Ht;exports.kbd=Pt;exports.label=Rt;exports.legend=$t;exports.li=Bt;exports.link=Gt;exports.main=Vt;exports.map=Wt;exports.mark=zt;exports.menu=It;exports.meta=Jt;exports.meter=Kt;exports.nav=Ut;exports.noscript=Yt;exports.object=Qt;exports.ol=Xt;exports.optgroup=Zt;exports.option=_t;exports.output=Ot;exports.p=jt;exports.picture=en;exports.pre=tn;exports.progress=nn;exports.q=rn;exports.rp=on;exports.rt=sn;exports.ruby=un;exports.s=cn;exports.samp=an;exports.script=fn;exports.search=ln;exports.section=dn;exports.select=hn;exports.slot=mn;exports.small=wn;exports.source=pn;exports.span=bn;exports.strong=gn;exports.style=yn;exports.sub=En;exports.summary=Sn;exports.sup=Cn;exports.table=vn;exports.tbody=Nn;exports.td=kn;exports.template=Tn;exports.textarea=Ln;exports.tfoot=qn;exports.th=xn;exports.thead=An;exports.time=Mn;exports.title=Dn;exports.tr=Fn;exports.track=Hn;exports.u=Pn;exports.ul=Rn;exports.video=Bn;exports.wbr=Gn;