aptechka 0.5.40 → 0.5.42

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 (43) hide show
  1. package/lib/Animation-DDHjrbtL.cjs +1 -0
  2. package/lib/{Animation-AkD1vhRW.js → Animation-Dq_05jlR.js} +16 -16
  3. package/lib/{Damped-CH96byE8.js → Damped-P4MkCGoY.js} +4 -5
  4. package/lib/Damped-l0mnlhar.cjs +1 -0
  5. package/lib/{Tweened-DzckT3pw.js → Tweened-CwDC2zl8.js} +9 -10
  6. package/lib/Tweened-DIt9j9B-.cjs +1 -0
  7. package/lib/animation/index.cjs +1 -1
  8. package/lib/animation/index.js +3 -3
  9. package/lib/checkbox/index.cjs +1 -1
  10. package/lib/checkbox/index.js +29 -29
  11. package/lib/controls/index.cjs +1 -1
  12. package/lib/controls/index.js +125 -114
  13. package/lib/en3/index.cjs +1 -1
  14. package/lib/en3/index.js +1 -1
  15. package/lib/{index-BAHHdcp3.js → index-BtsOv9u0.js} +85 -85
  16. package/lib/index-Buf76Qoq.cjs +9 -0
  17. package/lib/modal/index.cjs +1 -1
  18. package/lib/modal/index.js +30 -30
  19. package/lib/pointer/index.cjs +1 -1
  20. package/lib/pointer/index.js +1 -1
  21. package/lib/polyfills-BA-CL_HF.js +27 -0
  22. package/lib/polyfills-DHs2SNbz.cjs +1 -0
  23. package/lib/scroll/ScrollElement.d.ts +16 -5
  24. package/lib/scroll/index.cjs +1 -1
  25. package/lib/scroll/index.js +538 -494
  26. package/lib/select/index.cjs +1 -1
  27. package/lib/select/index.js +1 -1
  28. package/lib/theme/index.cjs +1 -1
  29. package/lib/theme/index.d.ts +9 -84
  30. package/lib/theme/index.js +12 -27
  31. package/lib/tweaker/index.cjs +6 -6
  32. package/lib/tweaker/index.js +207 -199
  33. package/lib/utils/index.cjs +1 -1
  34. package/lib/utils/index.js +26 -27
  35. package/package.json +1 -1
  36. package/lib/Animation-BIRIzLIL.cjs +0 -1
  37. package/lib/Damped-3daHRLIW.cjs +0 -1
  38. package/lib/Tweened-Bv9mgPvl.cjs +0 -1
  39. package/lib/index-D2XtQX56.cjs +0 -9
  40. package/lib/number-Bo5RdrA1.js +0 -23
  41. package/lib/number-yVpzMdbQ.cjs +0 -1
  42. package/lib/polyfills-CrcS4RcO.cjs +0 -1
  43. package/lib/polyfills-DJUYczFm.js +0 -6
@@ -0,0 +1 @@
1
+ "use strict";var W=Object.defineProperty,X=Object.defineProperties;var Y=Object.getOwnPropertyDescriptors;var V=Object.getOwnPropertySymbols;var Z=Object.prototype.hasOwnProperty,$=Object.prototype.propertyIsEnumerable;var K=(e,s,t)=>s in e?W(e,s,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[s]=t,j=(e,s)=>{for(var t in s||(s={}))Z.call(s,t)&&K(e,t,s[t]);if(V)for(var t of V(s))$.call(s,t)&&K(e,t,s[t]);return e},G=(e,s)=>X(e,Y(s));var _=(e,s,t)=>{if(!s.has(e))throw TypeError("Cannot "+t)};var i=(e,s,t)=>(_(e,s,"read from private field"),t?t.call(e):s.get(e)),r=(e,s,t)=>{if(s.has(e))throw TypeError("Cannot add the same private member more than once");s instanceof WeakSet?s.add(e):s.set(e,t)},n=(e,s,t,h)=>(_(e,s,"write to private field"),h?h.call(e,t):s.set(e,t),t);var x=(e,s,t)=>(_(e,s,"access private method"),t);const L=require("./Store-C-1ruEIm.cjs"),v=require("./math-GDWEqu7y.cjs"),o=require("./polyfills-DHs2SNbz.cjs"),H=require("./ticker/index.cjs"),tt=require("./order/index.cjs");var u,m,k,y,b,q,S,w,R,J,T,Q,O,B,z,U,P;class it{constructor(s,t,h,N,E){r(this,R);r(this,T);r(this,O);r(this,z);r(this,u,void 0);r(this,m,void 0);r(this,k,void 0);r(this,y,void 0);r(this,b,!1);r(this,q,!1);r(this,S,!1);r(this,w,void 0);r(this,P,s=>{!i(this,S)&&i(this,u).initial!==i(this,u).current&&n(this,S,!0),i(this,S)&&(s.direction>0&&s.progress>=i(this,k).current?x(this,R,J).call(this):s.direction<0&&s.progress<=i(this,k).current&&x(this,T,Q).call(this))});n(this,u,s),n(this,m,t),n(this,k,new L.Store(h,{passport:t.passport?{name:t.passport+"-start",manager:{type:"number"}}:void 0})),n(this,y,new L.Store(N,{passport:t.passport?{name:t.passport+"-set",manager:{type:"number"}}:void 0})),n(this,w,E),i(this,u).subscribe(i(this,P)),i(this,u).linked.add(this)}get targetAnimation(){return i(this,m)}get triggerAnimation(){return i(this,u)}destroy(){i(this,y).close(),i(this,k).close(),i(this,u).unsubscribe(i(this,P)),i(this,u).linked.delete(this)}}u=new WeakMap,m=new WeakMap,k=new WeakMap,y=new WeakMap,b=new WeakMap,q=new WeakMap,S=new WeakMap,w=new WeakMap,R=new WeakSet,J=function(){i(this,b)||(n(this,q,!1),n(this,b,!0),x(this,O,B).call(this,i(this,y).current))},T=new WeakSet,Q=function(){i(this,b)&&!i(this,q)&&(n(this,b,!1),n(this,q,!0),x(this,O,B).call(this,i(this,m).initial))},O=new WeakSet,B=function(s){x(this,z,U).call(this),i(this,m).updateOptions(i(this,w)),i(this,m).set(s)},z=new WeakSet,U=function(){var s;(s=i(this,w))!=null&&s.once&&this.destroy()},P=new WeakMap;var C,D,M,g,A,d,p,a,c,l,f,F,I;class st extends L.Store{constructor(t,h){super(t||0,h);r(this,C,void 0);r(this,D,tt.TICK_ORDER.ANIMATION);r(this,M,void 0);r(this,g,new L.Store(!1));r(this,A,new Set);r(this,d,null);r(this,p,0);r(this,a,0);r(this,c,-1/0);r(this,l,1/0);r(this,f,0);r(this,F,1);r(this,I,t=>{this.handleAnimationFrame(t)});n(this,a,this.current)}get linked(){return i(this,A)}get animationLink(){return i(this,d)}get direction(){return i(this,p)}get target(){return i(this,a)}get min(){return i(this,c)}set min(t){n(this,c,t),this.set(i(this,a),{equalize:!0})}get max(){return i(this,l)}set max(t){n(this,l,t),this.set(i(this,a),{equalize:!0})}get from(){return i(this,f)}get to(){return i(this,F)}get isRunning(){return i(this,g)}get currentDistance(){return Math.abs(i(this,F)-i(this,f))}get distance(){return Math.abs(i(this,l)-i(this,c))}get currentProgress(){return this.currentDistance?o.preciseNumber(Math.abs(this.current-i(this,f))/this.currentDistance,6):0}get progress(){return this.distance?o.preciseNumber(Math.abs(this.current-i(this,c))/this.distance,6):0}get entry(){return G(j({},super.entry),{from:i(this,f),to:i(this,F),currentDistance:this.currentDistance,distance:this.distance,direction:this.direction,currentProgress:this.currentProgress,progress:this.progress})}setTarget(t){n(this,p,Math.sign(t-i(this,a))),n(this,a,v.clamp(t,i(this,c),i(this,l))),n(this,f,this.current),n(this,F,t)}set(t,h){i(this,a)!==t&&(this.setTarget(t),h&&this.updateOptions(h),i(this,a)!==this.current&&this.start())}shift(t,h){this.set(i(this,a)+t,h)}reset(){this.set(this.initial,{equalize:!0}),super.reset(),i(this,A).forEach(t=>{t.targetAnimation.reset()})}close(){super.close(),this.unlistenAnimationFrame(),this.unlink(),i(this,A).clear()}listenAnimationFrame(){i(this,g).current||(i(this,g).current=!0,H.ticker.subscribe(i(this,I),{maxFPS:i(this,C),order:i(this,D),culling:i(this,M)}))}unlistenAnimationFrame(){i(this,g).current&&(i(this,g).current=!1,H.ticker.unsubscribe(i(this,I)),i(this,A).forEach(t=>{t.targetAnimation.unlistenAnimationFrame()}))}updateOptions(t){n(this,C,o.nullishCoalescing(t==null?void 0:t.maxFPS,i(this,C))),n(this,D,o.nullishCoalescing(t==null?void 0:t.order,i(this,D))),n(this,M,o.nullishCoalescing(t==null?void 0:t.culling,i(this,M))),n(this,c,o.nullishCoalescing(t==null?void 0:t.min,i(this,c))),n(this,l,o.nullishCoalescing(t==null?void 0:t.max,i(this,l))),t!=null&&t.equalize&&(this.unlistenAnimationFrame(),this.current=i(this,a))}linkTo(t,h,N,E){this.unlink(),n(this,d,new it(t,this,h,N,E))}unlink(){i(this,d)&&(i(this,d).destroy(),n(this,d,null))}start(){this.listenAnimationFrame()}}C=new WeakMap,D=new WeakMap,M=new WeakMap,g=new WeakMap,A=new WeakMap,d=new WeakMap,p=new WeakMap,a=new WeakMap,c=new WeakMap,l=new WeakMap,f=new WeakMap,F=new WeakMap,I=new WeakMap;exports.Animation=st;
@@ -22,8 +22,7 @@ var i = (e, s, t) => (C(e, s, "read from private field"), t ? t.call(e) : s.get(
22
22
  var F = (e, s, t) => (C(e, s, "access private method"), t);
23
23
  import { S as T } from "./Store-BQXXikps.js";
24
24
  import { c as tt } from "./math-BOBiC4TN.js";
25
- import { p as H } from "./number-Bo5RdrA1.js";
26
- import { n as P } from "./polyfills-DJUYczFm.js";
25
+ import { p as H, n as P } from "./polyfills-BA-CL_HF.js";
27
26
  import { ticker as J } from "./ticker/index.js";
28
27
  import { TICK_ORDER as it } from "./order/index.js";
29
28
  var u, l, o, p, b, x, y, w, q, Q, z, U, S, V, E, W, I;
@@ -80,8 +79,8 @@ u = new WeakMap(), l = new WeakMap(), o = new WeakMap(), p = new WeakMap(), b =
80
79
  var s;
81
80
  (s = i(this, w)) != null && s.once && this.destroy();
82
81
  }, I = new WeakMap();
83
- var D, M, O, g, k, f, L, a, c, m, d, A, R;
84
- class mt extends T {
82
+ var D, M, O, g, k, d, L, a, c, m, f, A, R;
83
+ class ct extends T {
85
84
  constructor(t, n) {
86
85
  super(t || 0, n);
87
86
  r(this, D, void 0);
@@ -89,22 +88,23 @@ class mt extends T {
89
88
  r(this, O, void 0);
90
89
  r(this, g, new T(!1));
91
90
  r(this, k, /* @__PURE__ */ new Set());
92
- r(this, f, null);
91
+ r(this, d, null);
93
92
  r(this, L, 0);
94
93
  r(this, a, 0);
95
94
  r(this, c, -1 / 0);
96
95
  r(this, m, 1 / 0);
97
- r(this, d, 0);
96
+ r(this, f, 0);
98
97
  r(this, A, 1);
99
98
  r(this, R, (t) => {
100
99
  this.handleAnimationFrame(t);
101
100
  });
101
+ h(this, a, this.current);
102
102
  }
103
103
  get linked() {
104
104
  return i(this, k);
105
105
  }
106
106
  get animationLink() {
107
- return i(this, f);
107
+ return i(this, d);
108
108
  }
109
109
  get direction() {
110
110
  return i(this, L);
@@ -129,7 +129,7 @@ class mt extends T {
129
129
  });
130
130
  }
131
131
  get from() {
132
- return i(this, d);
132
+ return i(this, f);
133
133
  }
134
134
  get to() {
135
135
  return i(this, A);
@@ -138,14 +138,14 @@ class mt extends T {
138
138
  return i(this, g);
139
139
  }
140
140
  get currentDistance() {
141
- return Math.abs(i(this, A) - i(this, d));
141
+ return Math.abs(i(this, A) - i(this, f));
142
142
  }
143
143
  get distance() {
144
144
  return Math.abs(i(this, m) - i(this, c));
145
145
  }
146
146
  get currentProgress() {
147
147
  return this.currentDistance ? H(
148
- Math.abs(this.current - i(this, d)) / this.currentDistance,
148
+ Math.abs(this.current - i(this, f)) / this.currentDistance,
149
149
  6
150
150
  ) : 0;
151
151
  }
@@ -154,7 +154,7 @@ class mt extends T {
154
154
  }
155
155
  get entry() {
156
156
  return G(j({}, super.entry), {
157
- from: i(this, d),
157
+ from: i(this, f),
158
158
  to: i(this, A),
159
159
  currentDistance: this.currentDistance,
160
160
  distance: this.distance,
@@ -164,7 +164,7 @@ class mt extends T {
164
164
  });
165
165
  }
166
166
  setTarget(t) {
167
- h(this, L, Math.sign(t - i(this, a))), h(this, a, tt(t, i(this, c), i(this, m))), h(this, d, this.current), h(this, A, t);
167
+ h(this, L, Math.sign(t - i(this, a))), h(this, a, tt(t, i(this, c), i(this, m))), h(this, f, this.current), h(this, A, t);
168
168
  }
169
169
  set(t, n) {
170
170
  i(this, a) !== t && (this.setTarget(t), n && this.updateOptions(n), i(this, a) !== this.current && this.start());
@@ -196,7 +196,7 @@ class mt extends T {
196
196
  h(this, D, P(t == null ? void 0 : t.maxFPS, i(this, D))), h(this, M, P(t == null ? void 0 : t.order, i(this, M))), h(this, O, P(t == null ? void 0 : t.culling, i(this, O))), h(this, c, P(t == null ? void 0 : t.min, i(this, c))), h(this, m, P(t == null ? void 0 : t.max, i(this, m))), t != null && t.equalize && (this.unlistenAnimationFrame(), this.current = i(this, a));
197
197
  }
198
198
  linkTo(t, n, N, B) {
199
- this.unlink(), h(this, f, new st(
199
+ this.unlink(), h(this, d, new st(
200
200
  t,
201
201
  this,
202
202
  n,
@@ -205,13 +205,13 @@ class mt extends T {
205
205
  ));
206
206
  }
207
207
  unlink() {
208
- i(this, f) && (i(this, f).destroy(), h(this, f, null));
208
+ i(this, d) && (i(this, d).destroy(), h(this, d, null));
209
209
  }
210
210
  start() {
211
211
  this.listenAnimationFrame();
212
212
  }
213
213
  }
214
- D = new WeakMap(), M = new WeakMap(), O = new WeakMap(), g = new WeakMap(), k = new WeakMap(), f = new WeakMap(), L = new WeakMap(), a = new WeakMap(), c = new WeakMap(), m = new WeakMap(), d = new WeakMap(), A = new WeakMap(), R = new WeakMap();
214
+ D = new WeakMap(), M = new WeakMap(), O = new WeakMap(), g = new WeakMap(), k = new WeakMap(), d = new WeakMap(), L = new WeakMap(), a = new WeakMap(), c = new WeakMap(), m = new WeakMap(), f = new WeakMap(), A = new WeakMap(), R = new WeakMap();
215
215
  export {
216
- mt as A
216
+ ct as A
217
217
  };
@@ -20,11 +20,10 @@ var r = (e, s, t) => (p(e, s, "read from private field"), t ? t.call(e) : s.get(
20
20
  s instanceof WeakSet ? s.add(e) : s.set(e, t);
21
21
  }, n = (e, s, t, a) => (p(e, s, "write to private field"), a ? a.call(e, t) : s.set(e, t), t);
22
22
  import { d as B } from "./math-BOBiC4TN.js";
23
- import { p as y } from "./number-Bo5RdrA1.js";
24
- import { n as f } from "./polyfills-DJUYczFm.js";
25
- import { A as D } from "./Animation-AkD1vhRW.js";
23
+ import { n as f, p as y } from "./polyfills-BA-CL_HF.js";
24
+ import { A as D } from "./Animation-Dq_05jlR.js";
26
25
  var i, h;
27
- class T extends D {
26
+ class N extends D {
28
27
  constructor(t, a) {
29
28
  super(t, a);
30
29
  d(this, i, void 0);
@@ -63,5 +62,5 @@ class T extends D {
63
62
  }
64
63
  i = new WeakMap(), h = new WeakMap();
65
64
  export {
66
- T as D
65
+ N as D
67
66
  };
@@ -0,0 +1 @@
1
+ "use strict";var A=Object.defineProperty,F=Object.defineProperties;var b=Object.getOwnPropertyDescriptors;var g=Object.getOwnPropertySymbols;var v=Object.prototype.hasOwnProperty,C=Object.prototype.propertyIsEnumerable;var f=(e,s,t)=>s in e?A(e,s,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[s]=t,m=(e,s)=>{for(var t in s||(s={}))v.call(s,t)&&f(e,t,s[t]);if(g)for(var t of g(s))C.call(s,t)&&f(e,t,s[t]);return e},l=(e,s)=>F(e,b(s));var p=(e,s,t)=>{if(!s.has(e))throw TypeError("Cannot "+t)};var r=(e,s,t)=>(p(e,s,"read from private field"),t?t.call(e):s.get(e)),d=(e,s,t)=>{if(s.has(e))throw TypeError("Cannot add the same private member more than once");s instanceof WeakSet?s.add(e):s.set(e,t)},n=(e,s,t,a)=>(p(e,s,"write to private field"),a?a.call(e,t):s.set(e,t),t);const O=require("./math-GDWEqu7y.cjs"),u=require("./polyfills-DHs2SNbz.cjs"),w=require("./Animation-DDHjrbtL.cjs");var i,h;class B extends w.Animation{constructor(t,a){super(t,a);d(this,i,void 0);d(this,h,void 0);this.damping=20,this.stiffness=0,this.mass=0,n(this,i,0),n(this,h,0),this.updateOptions(l(m({},a),{equalize:!0}))}get velocity(){return r(this,i)}get speed(){return r(this,h)}get entry(){return l(m({},super.entry),{velocity:r(this,i),speed:r(this,h)})}updateOptions(t){this.damping=u.nullishCoalescing(t==null?void 0:t.damping,this.damping),this.mass=u.nullishCoalescing(t==null?void 0:t.mass,this.mass),this.stiffness=u.nullishCoalescing(t==null?void 0:t.stiffness,this.stiffness),super.updateOptions(t)}updateManually(t){this.setTarget(t),this.current=this.target}handleAnimationFrame(t){u.preciseNumber(this.current,4)===u.preciseNumber(this.target,4)&&(this.unlistenAnimationFrame(),this.current=this.target);const a=this.current,y=Math.abs(a-this.target);n(this,h,y/t.timeBetweenFrames);const c=t.timeBetweenFrames/1e3;if(this.mass||this.stiffness){const q=(this.target-this.current)*this.stiffness-r(this,i)*this.damping;n(this,i,r(this,i)+q/this.mass*c),this.current+=r(this,i)*c}else this.current=O.damp(this.current,this.target,this.damping,c)}}i=new WeakMap,h=new WeakMap;exports.Damped=B;
@@ -14,29 +14,28 @@ var f = (i, e, t) => {
14
14
  if (!e.has(i))
15
15
  throw TypeError("Cannot " + t);
16
16
  };
17
- var m = (i, e, t) => (f(i, e, "read from private field"), t ? t.call(i) : e.get(i)), n = (i, e, t) => {
17
+ var n = (i, e, t) => (f(i, e, "read from private field"), t ? t.call(i) : e.get(i)), m = (i, e, t) => {
18
18
  if (e.has(i))
19
19
  throw TypeError("Cannot add the same private member more than once");
20
20
  e instanceof WeakSet ? e.add(i) : e.set(i, t);
21
21
  }, u = (i, e, t, a) => (f(i, e, "write to private field"), a ? a.call(i, t) : e.set(i, t), t);
22
22
  import { l as y } from "./easings-BKi40vHz.js";
23
23
  import { c as M } from "./math-BOBiC4TN.js";
24
- import { p as S } from "./number-Bo5RdrA1.js";
25
- import { n as A } from "./polyfills-DJUYczFm.js";
26
- import { A as T } from "./Animation-AkD1vhRW.js";
24
+ import { n as A, p as S } from "./polyfills-BA-CL_HF.js";
25
+ import { A as T } from "./Animation-Dq_05jlR.js";
27
26
  var r, s;
28
- class j extends T {
27
+ class N extends T {
29
28
  constructor(t, a) {
30
29
  super(t || 0, a);
31
- n(this, r, y);
32
- n(this, s, 1e3);
30
+ m(this, r, y);
31
+ m(this, s, 1e3);
33
32
  this.updateOptions(d(c({}, a), { equalize: !0 }));
34
33
  }
35
34
  updateOptions(t) {
36
- super.updateOptions(t), u(this, r, A(t == null ? void 0 : t.easing, m(this, r))), u(this, s, A(t == null ? void 0 : t.duration, m(this, s))), t != null && t.restart && (this.current = this.initial);
35
+ super.updateOptions(t), u(this, r, A(t == null ? void 0 : t.easing, n(this, r))), u(this, s, A(t == null ? void 0 : t.duration, n(this, s))), t != null && t.restart && (this.current = this.initial);
37
36
  }
38
37
  updateManually(t) {
39
- const a = t / 1e3 / (m(this, s) / 1e3), p = m(this, r).call(this, M(a, 0, 1));
38
+ const a = t / 1e3 / (n(this, s) / 1e3), p = n(this, r).call(this, M(a, 0, 1));
40
39
  return this.current = S(this.from + (this.to - this.from) * p, 6), a;
41
40
  }
42
41
  handleAnimationFrame(t) {
@@ -48,5 +47,5 @@ class j extends T {
48
47
  }
49
48
  r = new WeakMap(), s = new WeakMap();
50
49
  export {
51
- j as T
50
+ N as T
52
51
  };
@@ -0,0 +1 @@
1
+ "use strict";var q=Object.defineProperty,F=Object.defineProperties;var y=Object.getOwnPropertyDescriptors;var c=Object.getOwnPropertySymbols;var O=Object.prototype.hasOwnProperty,b=Object.prototype.propertyIsEnumerable;var m=(t,i,e)=>i in t?q(t,i,{enumerable:!0,configurable:!0,writable:!0,value:e}):t[i]=e,d=(t,i)=>{for(var e in i||(i={}))O.call(i,e)&&m(t,e,i[e]);if(c)for(var e of c(i))b.call(i,e)&&m(t,e,i[e]);return t},A=(t,i)=>F(t,y(i));var f=(t,i,e)=>{if(!i.has(t))throw TypeError("Cannot "+e)};var n=(t,i,e)=>(f(t,i,"read from private field"),e?e.call(t):i.get(t)),u=(t,i,e)=>{if(i.has(t))throw TypeError("Cannot add the same private member more than once");i instanceof WeakSet?i.add(t):i.set(t,e)},l=(t,i,e,a)=>(f(t,i,"write to private field"),a?a.call(t,e):i.set(t,e),e);const w=require("./easings-DsS5-Kqc.cjs"),C=require("./math-GDWEqu7y.cjs"),h=require("./polyfills-DHs2SNbz.cjs"),M=require("./Animation-DDHjrbtL.cjs");var r,s;class S extends M.Animation{constructor(e,a){super(e||0,a);u(this,r,w.linear);u(this,s,1e3);this.updateOptions(A(d({},a),{equalize:!0}))}updateOptions(e){super.updateOptions(e),l(this,r,h.nullishCoalescing(e==null?void 0:e.easing,n(this,r))),l(this,s,h.nullishCoalescing(e==null?void 0:e.duration,n(this,s))),e!=null&&e.restart&&(this.current=this.initial)}updateManually(e){const a=e/1e3/(n(this,s)/1e3),g=n(this,r).call(this,C.clamp(a,0,1));return this.current=h.preciseNumber(this.from+(this.to-this.from)*g,6),a}handleAnimationFrame(e){this.updateManually(e.timeElapsedSinceSubscription)>1&&this.unlistenAnimationFrame()}start(){this.unlistenAnimationFrame(),this.listenAnimationFrame()}}r=new WeakMap,s=new WeakMap;exports.Tweened=S;
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../Animation-BIRIzLIL.cjs"),n=require("../Damped-3daHRLIW.cjs"),i=require("../Tweened-Bv9mgPvl.cjs");exports.Animation=e.Animation;exports.Damped=n.Damped;exports.Tweened=i.Tweened;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../Animation-DDHjrbtL.cjs"),n=require("../Damped-l0mnlhar.cjs"),i=require("../Tweened-DIt9j9B-.cjs");exports.Animation=e.Animation;exports.Damped=n.Damped;exports.Tweened=i.Tweened;
@@ -1,6 +1,6 @@
1
- import { A as r } from "../Animation-AkD1vhRW.js";
2
- import { D as m } from "../Damped-CH96byE8.js";
3
- import { T as t } from "../Tweened-DzckT3pw.js";
1
+ import { A as r } from "../Animation-Dq_05jlR.js";
2
+ import { D as m } from "../Damped-P4MkCGoY.js";
3
+ import { T as t } from "../Tweened-CwDC2zl8.js";
4
4
  export {
5
5
  r as Animation,
6
6
  m as Damped,
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const m=require("../custom-element/index.cjs");require("../Store-C-1ruEIm.cjs");const r=require("../tags-Djb6mb1o.cjs"),_=require("../createStylesheet-CqHU9_qv.cjs"),l=require("../theme/index.cjs"),w='<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 256 256"><path d="m243.33 90.91l-128.41 128.4a16 16 0 0 1-22.63 0l-71.62-72a16 16 0 0 1 0-22.61l24-24a16 16 0 0 1 22.57-.06l36.64 35.27l.11.11l92.73-91.37a16 16 0 0 1 22.58 0l24 23.56a16 16 0 0 1 .03 22.7Z"/></svg>';var x=Object.defineProperty,b=Object.getOwnPropertyDescriptor,y=(t,e,a,i)=>{for(var h=i>1?void 0:i?b(e,a):e,p=t.length-1,v;p>=0;p--)(v=t[p])&&(h=(i?v(e,a,h):v(h))||h);return i&&h&&x(e,a,h),h},k=(t,e,a)=>{if(!e.has(t))throw TypeError("Cannot "+a)},n=(t,e,a)=>(k(t,e,"read from private field"),a?a.call(t):e.get(t)),f=(t,e,a)=>{if(e.has(t))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(t):e.set(t,a)},g=(t,e,a,i)=>(k(t,e,"write to private field"),i?i.call(t,a):e.set(t,a),a),u=(t,e,a)=>(k(t,e,"access private method"),a),s,d,c,o;const C=_.createStylesheet({":host":{position:"relative",display:"inline-block",width:l.aptechkaTheme.heightInput.var,height:l.aptechkaTheme.heightInput.var,borderRadius:l.aptechkaTheme.borderRadiusSmall.var,overflow:"hidden"},"label, .fake":{display:"block"},"label, .fake, .default":{width:"100%",height:"100%"},".real":{position:"absolute",top:"0",left:"0",width:"0px",height:"0px",visibility:"hidden",margin:"0"},".default":{display:"flex",alignItems:"center",justifyContent:"center",backgroundColor:l.aptechkaTheme.colorDarkAux.var},".default svg":{width:"60%",height:"60%",fill:l.aptechkaTheme.colorLight.var,opacity:0,transition:l.aptechkaTheme.durationShort.var},":host(.checked) .default svg":{opacity:1}});exports.CheckboxElement=class extends m.CustomElement{constructor(){super(),f(this,c),f(this,s,null),f(this,d,void 0),this.openShadow(C),g(this,d,this.attachInternals()),r.element(this,{children:r.label({children:[r.span({class:"fake",children:r.slot({children:[r.span({class:"default",children:[w]})]})}),r.input({ref:e=>{g(this,s,e),e.required=this.hasAttribute("required"),e.value=this.getAttribute("value")||"",e.checked=this.hasAttribute("checked"),e.name=this.getAttribute("name")||"",u(this,c,o).call(this)},class:"real",type:"checkbox",onChange:()=>{u(this,c,o).call(this),this.dispatchEvent(new Event("change",{composed:!0}))}})]})})}get checked(){return n(this,s).checked}set checked(e){n(this,s).checked=e,u(this,c,o).call(this)}get value(){return n(this,s).value}set value(e){n(this,s).value=e,u(this,c,o).call(this)}};s=new WeakMap;d=new WeakMap;c=new WeakSet;o=function(){this.checked?n(this,d).setFormValue(this.value):n(this,d).setFormValue(null),this.classList.toggle("checked",this.checked)};exports.CheckboxElement.formAssociated=!0;exports.CheckboxElement=y([m.define("e-checkbox")],exports.CheckboxElement);
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const m=require("../custom-element/index.cjs");require("../Store-C-1ruEIm.cjs");const h=require("../tags-Djb6mb1o.cjs"),_=require("../createStylesheet-CqHU9_qv.cjs"),v=require("../theme/index.cjs"),w='<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 256 256"><path d="m243.33 90.91l-128.41 128.4a16 16 0 0 1-22.63 0l-71.62-72a16 16 0 0 1 0-22.61l24-24a16 16 0 0 1 22.57-.06l36.64 35.27l.11.11l92.73-91.37a16 16 0 0 1 22.58 0l24 23.56a16 16 0 0 1 .03 22.7Z"/></svg>';var x=Object.defineProperty,b=Object.getOwnPropertyDescriptor,y=(t,e,a,i)=>{for(var s=i>1?void 0:i?b(e,a):e,u=t.length-1,p;u>=0;u--)(p=t[u])&&(s=(i?p(e,a,s):p(s))||s);return i&&s&&x(e,a,s),s},k=(t,e,a)=>{if(!e.has(t))throw TypeError("Cannot "+a)},c=(t,e,a)=>(k(t,e,"read from private field"),a?a.call(t):e.get(t)),f=(t,e,a)=>{if(e.has(t))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(t):e.set(t,a)},g=(t,e,a,i)=>(k(t,e,"write to private field"),i?i.call(t,a):e.set(t,a),a),d=(t,e,a)=>(k(t,e,"access private method"),a),r,o,l,n;const C=_.createStylesheet({":host":{position:"relative",display:"inline-block",width:"30px",height:"30px",borderRadius:v.aptechkaTheme.borderRadiusSmall.var,overflow:"hidden"},"label, .fake":{display:"block"},"label, .fake, .default":{width:"100%",height:"100%"},".real":{position:"absolute",top:"0",left:"0",width:"0px",height:"0px",visibility:"hidden",margin:"0"},".default":{display:"flex",alignItems:"center",justifyContent:"center",backgroundColor:v.aptechkaTheme.colorMainAux.var},".default svg":{width:"60%",height:"60%",fill:v.aptechkaTheme.colorFont.var,opacity:0,transition:"var(--duration-short)"},":host(.checked) .default svg":{opacity:1}});exports.CheckboxElement=class extends m.CustomElement{constructor(){super(),f(this,l),f(this,r,null),f(this,o,void 0),this.openShadow(C),g(this,o,this.attachInternals()),h.element(this,{children:h.label({children:[h.span({class:"fake",children:h.slot({children:[h.span({class:"default",children:[w]})]})}),h.input({ref:e=>{g(this,r,e),e.required=this.hasAttribute("required"),e.value=this.getAttribute("value")||"",e.checked=this.hasAttribute("checked"),e.name=this.getAttribute("name")||"",d(this,l,n).call(this)},class:"real",type:"checkbox",onChange:()=>{d(this,l,n).call(this),this.dispatchEvent(new Event("change",{composed:!0}))}})]})})}get checked(){return c(this,r).checked}set checked(e){c(this,r).checked=e,d(this,l,n).call(this)}get value(){return c(this,r).value}set value(e){c(this,r).value=e,d(this,l,n).call(this)}};r=new WeakMap;o=new WeakMap;l=new WeakSet;n=function(){this.checked?c(this,o).setFormValue(this.value):c(this,o).setFormValue(null),this.classList.toggle("checked",this.checked)};exports.CheckboxElement.formAssociated=!0;exports.CheckboxElement=y([m.define("e-checkbox")],exports.CheckboxElement);
@@ -1,28 +1,28 @@
1
1
  import { CustomElement as w, define as _ } from "../custom-element/index.js";
2
2
  import "../Store-BQXXikps.js";
3
- import { e as y, a3 as x, aB as m, ay as b, a0 as C } from "../tags-CMPg9ETZ.js";
3
+ import { e as x, a3 as y, aB as g, ay as b, a0 as C } from "../tags-CMPg9ETZ.js";
4
4
  import { c as A } from "../createStylesheet-DBCEbDjI.js";
5
- import { aptechkaTheme as h } from "../theme/index.js";
5
+ import { aptechkaTheme as u } from "../theme/index.js";
6
6
  const E = '<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 256 256"><path d="m243.33 90.91l-128.41 128.4a16 16 0 0 1-22.63 0l-71.62-72a16 16 0 0 1 0-22.61l24-24a16 16 0 0 1 22.57-.06l36.64 35.27l.11.11l92.73-91.37a16 16 0 0 1 22.58 0l24 23.56a16 16 0 0 1 .03 22.7Z"/></svg>';
7
- var S = Object.defineProperty, I = Object.getOwnPropertyDescriptor, F = (e, t, a, i) => {
8
- for (var s = i > 1 ? void 0 : i ? I(t, a) : t, p = e.length - 1, u; p >= 0; p--)
9
- (u = e[p]) && (s = (i ? u(t, a, s) : u(s)) || s);
7
+ var S = Object.defineProperty, F = Object.getOwnPropertyDescriptor, M = (e, t, a, i) => {
8
+ for (var s = i > 1 ? void 0 : i ? F(t, a) : t, d = e.length - 1, p; d >= 0; d--)
9
+ (p = e[d]) && (s = (i ? p(t, a, s) : p(s)) || s);
10
10
  return i && s && S(t, a, s), s;
11
- }, g = (e, t, a) => {
11
+ }, m = (e, t, a) => {
12
12
  if (!t.has(e))
13
13
  throw TypeError("Cannot " + a);
14
- }, c = (e, t, a) => (g(e, t, "read from private field"), a ? a.call(e) : t.get(e)), v = (e, t, a) => {
14
+ }, l = (e, t, a) => (m(e, t, "read from private field"), a ? a.call(e) : t.get(e)), v = (e, t, a) => {
15
15
  if (t.has(e))
16
16
  throw TypeError("Cannot add the same private member more than once");
17
17
  t instanceof WeakSet ? t.add(e) : t.set(e, a);
18
- }, k = (e, t, a, i) => (g(e, t, "write to private field"), i ? i.call(e, a) : t.set(e, a), a), d = (e, t, a) => (g(e, t, "access private method"), a), r, o, l, n;
18
+ }, k = (e, t, a, i) => (m(e, t, "write to private field"), i ? i.call(e, a) : t.set(e, a), a), o = (e, t, a) => (m(e, t, "access private method"), a), r, n, h, c;
19
19
  const O = A({
20
20
  ":host": {
21
21
  position: "relative",
22
22
  display: "inline-block",
23
- width: h.heightInput.var,
24
- height: h.heightInput.var,
25
- borderRadius: h.borderRadiusSmall.var,
23
+ width: "30px",
24
+ height: "30px",
25
+ borderRadius: u.borderRadiusSmall.var,
26
26
  overflow: "hidden"
27
27
  },
28
28
  "label, .fake": {
@@ -45,14 +45,14 @@ const O = A({
45
45
  display: "flex",
46
46
  alignItems: "center",
47
47
  justifyContent: "center",
48
- backgroundColor: h.colorDarkAux.var
48
+ backgroundColor: u.colorMainAux.var
49
49
  },
50
50
  ".default svg": {
51
51
  width: "60%",
52
52
  height: "60%",
53
- fill: h.colorLight.var,
53
+ fill: u.colorFont.var,
54
54
  opacity: 0,
55
- transition: h.durationShort.var
55
+ transition: "var(--duration-short)"
56
56
  },
57
57
  ":host(.checked) .default svg": {
58
58
  opacity: 1
@@ -60,14 +60,14 @@ const O = A({
60
60
  });
61
61
  let f = class extends w {
62
62
  constructor() {
63
- super(), v(this, l), v(this, r, null), v(this, o, void 0), this.openShadow(O), k(this, o, this.attachInternals()), y(this, {
64
- children: x({
63
+ super(), v(this, h), v(this, r, null), v(this, n, void 0), this.openShadow(O), k(this, n, this.attachInternals()), x(this, {
64
+ children: y({
65
65
  children: [
66
- m({
66
+ g({
67
67
  class: "fake",
68
68
  children: b({
69
69
  children: [
70
- m({
70
+ g({
71
71
  class: "default",
72
72
  children: [E]
73
73
  })
@@ -76,12 +76,12 @@ let f = class extends w {
76
76
  }),
77
77
  C({
78
78
  ref: (e) => {
79
- k(this, r, e), e.required = this.hasAttribute("required"), e.value = this.getAttribute("value") || "", e.checked = this.hasAttribute("checked"), e.name = this.getAttribute("name") || "", d(this, l, n).call(this);
79
+ k(this, r, e), e.required = this.hasAttribute("required"), e.value = this.getAttribute("value") || "", e.checked = this.hasAttribute("checked"), e.name = this.getAttribute("name") || "", o(this, h, c).call(this);
80
80
  },
81
81
  class: "real",
82
82
  type: "checkbox",
83
83
  onChange: () => {
84
- d(this, l, n).call(this), this.dispatchEvent(
84
+ o(this, h, c).call(this), this.dispatchEvent(
85
85
  new Event("change", {
86
86
  composed: !0
87
87
  })
@@ -93,26 +93,26 @@ let f = class extends w {
93
93
  });
94
94
  }
95
95
  get checked() {
96
- return c(this, r).checked;
96
+ return l(this, r).checked;
97
97
  }
98
98
  set checked(e) {
99
- c(this, r).checked = e, d(this, l, n).call(this);
99
+ l(this, r).checked = e, o(this, h, c).call(this);
100
100
  }
101
101
  get value() {
102
- return c(this, r).value;
102
+ return l(this, r).value;
103
103
  }
104
104
  set value(e) {
105
- c(this, r).value = e, d(this, l, n).call(this);
105
+ l(this, r).value = e, o(this, h, c).call(this);
106
106
  }
107
107
  };
108
108
  r = /* @__PURE__ */ new WeakMap();
109
- o = /* @__PURE__ */ new WeakMap();
110
- l = /* @__PURE__ */ new WeakSet();
111
- n = function() {
112
- this.checked ? c(this, o).setFormValue(this.value) : c(this, o).setFormValue(null), this.classList.toggle("checked", this.checked);
109
+ n = /* @__PURE__ */ new WeakMap();
110
+ h = /* @__PURE__ */ new WeakSet();
111
+ c = function() {
112
+ this.checked ? l(this, n).setFormValue(this.value) : l(this, n).setFormValue(null), this.classList.toggle("checked", this.checked);
113
113
  };
114
114
  f.formAssociated = !0;
115
- f = F([
115
+ f = M([
116
116
  _("e-checkbox")
117
117
  ], f);
118
118
  export {
@@ -1 +1 @@
1
- "use strict";var O=(r,a,e)=>{if(!a.has(r))throw TypeError("Cannot "+e)};var t=(r,a,e)=>(O(r,a,"read from private field"),e?e.call(r):a.get(r)),s=(r,a,e)=>{if(a.has(r))throw TypeError("Cannot add the same private member more than once");a instanceof WeakSet?a.add(r):a.set(r,e)},i=(r,a,e,n)=>(O(r,a,"write to private field"),n?n.call(r,e):a.set(r,e),e);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const F=require("../notifier/index.cjs"),f=require("../browser-CpzFX2xg.cjs"),S=require("../dom-JBOkFLTh.cjs"),v=require("../ticker/index.cjs"),N=require("../gestures-DHLrn6Q8.cjs"),U=require("../number-yVpzMdbQ.cjs"),j=require("../order/index.cjs");var X;class W{constructor(){s(this,X,new F.Notifier)}get changeEvent(){return t(this,X)}}X=new WeakMap;var m,c,d,I;class z extends W{constructor(e){super();s(this,m,null);s(this,c,null);s(this,d,"offsetHeight");s(this,I,e=>{const n=e.shiftKey?-1:1;let h;e.code==="Space"?h=n*t(this,c)[t(this,d)]*.4:e.code==="ArrowLeft"?h=-1*t(this,c)[t(this,d)]*.2:e.code==="ArrowRight"?h=1*t(this,c)[t(this,d)]*.2:e.code==="ArrowUp"?h=-1*t(this,c)[t(this,d)]*.2:e.code==="ArrowDown"?h=1*t(this,c)[t(this,d)]*.2:e.code==="PageUp"?h=-1*t(this,c)[t(this,d)]:e.code==="PageDown"?h=1*t(this,c)[t(this,d)]:e.code==="Home"?h=0:e.code==="End"&&(h=t(this,d)==="offsetWidth"?t(this,c).scrollWidth:t(this,c).scrollHeight),h&&(e.stopPropagation(),this.changeEvent.notify("keyboard",h))});f.isBrowser&&(i(this,m,e!=null&&e.element&&S.getElement(e.element)||window),i(this,c,t(this,m)instanceof HTMLElement?t(this,m):document.documentElement),this.dimension=e==null?void 0:e.dimension)}set dimension(e){i(this,d,e==="width"?"offsetWidth":"offsetHeight")}connect(){f.isBrowser&&t(this,m).addEventListener("keydown",t(this,I))}disconnect(){f.isBrowser&&t(this,m).removeEventListener("keydown",t(this,I))}}m=new WeakMap,c=new WeakMap,d=new WeakMap,I=new WeakMap;var o,g,T,q,u,L,M,D,k;class V extends W{constructor(e){super();s(this,o,void 0);s(this,g,void 0);s(this,T,void 0);s(this,q,void 0);s(this,u,void 0);s(this,L,void 0);s(this,M,void 0);s(this,D,void 0);s(this,k,void 0);this.direction=1,i(this,u,!1),i(this,M,n=>{t(this,u)||this.changeEvent.notify("autoplay",n.timeBetweenFrames*t(this,o)*this.direction)}),i(this,D,()=>{t(this,u)||this.changeEvent.notify("autoplay",Math.sign(t(this,o))*this.direction)}),i(this,k,()=>{t(this,g)&&(document.hidden?i(this,u,!0):i(this,u,!1))}),i(this,o,(e==null?void 0:e.speed)||1),i(this,g,(e==null?void 0:e.interval)||!1),i(this,T,e)}set interval(e){i(this,g,e),this.connect()}set speed(e){i(this,o,e),this.connect()}connect(){this.disconnect(),t(this,g)?i(this,q,setInterval(t(this,D),Math.abs(t(this,o)))):v.ticker.subscribe(t(this,M),t(this,T)),document.addEventListener("visibilitychange",t(this,k))}disconnect(){clearInterval(t(this,q)),v.ticker.unsubscribe(t(this,M)),clearInterval(t(this,L)),i(this,u,!1),document.removeEventListener("visibilitychange",t(this,k))}pauseAndContinue(e){e&&!t(this,u)&&(clearInterval(t(this,L)),i(this,u,!0),i(this,L,setTimeout(()=>{i(this,u,!1)},3e3)))}}o=new WeakMap,g=new WeakMap,T=new WeakMap,q=new WeakMap,u=new WeakMap,L=new WeakMap,M=new WeakMap,D=new WeakMap,k=new WeakMap;var C,y,B,H;class G extends W{constructor(e){super();s(this,C,null);s(this,y,void 0);s(this,B,void 0);s(this,H,e=>{let n=0;if(e.preventDefault(),!(this.axis==="x"&&Math.abs(e.deltaY)>Math.abs(e.deltaX)*.5||this.axis==="y"&&Math.abs(e.deltaX)>Math.abs(e.deltaY)*.5))if(n=(this.axis==="max"?Math.abs(e.deltaX)>Math.abs(e.deltaY)?e.deltaX:e.deltaY:this.axis==="x"?e.deltaX:e.deltaY)*this.speed,e.stopPropagation(),this.debounce){const h=Date.now();if(h-t(this,B)>40&&(n=100*Math.sign(n)),i(this,B,h),Math.abs(n)<100||t(this,y))return;this.changeEvent.notify("wheel",n),i(this,y,setTimeout(()=>{i(this,y,void 0)},80))}else this.changeEvent.notify("wheel",n)});this.axis=(e==null?void 0:e.axis)||"y",this.speed=(e==null?void 0:e.speed)||1,this.debounce=(e==null?void 0:e.debounce)||!1,i(this,B,Date.now()),f.isBrowser&&i(this,C,e!=null&&e.element&&S.getElement(e.element)||window)}connect(){f.isBrowser&&t(this,C).addEventListener("wheel",t(this,H),{passive:!1})}disconnect(){f.isBrowser&&(t(this,C).removeEventListener("wheel",t(this,H)),clearTimeout(t(this,y)))}}C=new WeakMap,y=new WeakMap,B=new WeakMap,H=new WeakMap;var E,w,A,l,P,x;const b=class b extends W{constructor(e){super();s(this,w,null);s(this,A,!1);s(this,l,0);s(this,P,e=>{if(e.composedPath().find(h=>h instanceof HTMLElement&&h.hasAttribute("drag-dead-zone")))return;this.swipe||v.ticker.unsubscribe(t(this,x));let n=e;i(this,l,0),document.documentElement.classList.add("grabbing"),N.setupDrag(h=>{if(t(this,A)||t(b,E)&&t(b,E)!==t(this,w))return;this.swipe&&i(this,A,!0);const Y=n.x-h.x,K=n.y-h.y;this.axis==="x"?i(this,l,Y):i(this,l,K),n=h,(this.axis==="x"&&Math.abs(Y)>Math.abs(K)||this.axis==="y"&&Math.abs(K)>Math.abs(Y))&&(i(b,E,t(this,w)),this.changeEvent.notify("drag",t(this,l)))},()=>{i(b,E,null),this.swipe||(i(this,l,t(this,l)*3),v.ticker.subscribe(t(this,x),{order:j.TICK_ORDER.SCROLL-1})),document.documentElement.classList.remove("grabbing"),i(this,A,!1)})});s(this,x,()=>{Math.floor(t(this,l))||v.ticker.unsubscribe(t(this,x)),i(this,l,t(this,l)*.95),i(this,l,U.preciseNumber(t(this,l),3)),this.changeEvent.notify("drag",t(this,l))});this.axis=(e==null?void 0:e.axis)||"y",this.swipe=(e==null?void 0:e.swipe)||!1,f.isBrowser&&i(this,w,e!=null&&e.element&&S.getElement(e.element)||document.documentElement)}connect(){f.isBrowser&&t(this,w).addEventListener("pointerdown",t(this,P))}disconnect(){f.isBrowser&&(t(this,w).removeEventListener("pointerdown",t(this,P)),v.ticker.unsubscribe(t(this,x)))}};E=new WeakMap,w=new WeakMap,A=new WeakMap,l=new WeakMap,P=new WeakMap,x=new WeakMap,s(b,E,null);let R=b;exports.AutoplayControls=V;exports.Controls=W;exports.DragControls=R;exports.KeyboardControls=z;exports.WheelControls=G;
1
+ "use strict";var N=(r,n,e)=>{if(!n.has(r))throw TypeError("Cannot "+e)};var t=(r,n,e)=>(N(r,n,"read from private field"),e?e.call(r):n.get(r)),s=(r,n,e)=>{if(n.has(r))throw TypeError("Cannot add the same private member more than once");n instanceof WeakSet?n.add(r):n.set(r,e)},i=(r,n,e,a)=>(N(r,n,"write to private field"),a?a.call(r,e):n.set(r,e),e);var L=(r,n,e)=>(N(r,n,"access private method"),e);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const V=require("../notifier/index.cjs"),m=require("../browser-CpzFX2xg.cjs"),Q=require("../dom-JBOkFLTh.cjs"),M=require("../ticker/index.cjs");require("../Store-C-1ruEIm.cjs");const G=require("../easings-DsS5-Kqc.cjs"),J=require("../Tweened-DIt9j9B-.cjs"),Z=require("../gestures-DHLrn6Q8.cjs"),$=require("../polyfills-DHs2SNbz.cjs"),_=require("../order/index.cjs");var z;class R{constructor(){s(this,z,new V.Notifier)}get changeEvent(){return t(this,z)}}z=new WeakMap;var o,d,u,D;class p extends R{constructor(e){super();s(this,o,null);s(this,d,null);s(this,u,"offsetHeight");s(this,D,e=>{const a=e.shiftKey?-1:1;let h;e.code==="Space"?h=a*t(this,d)[t(this,u)]*.4:e.code==="ArrowLeft"?h=-1*t(this,d)[t(this,u)]*.2:e.code==="ArrowRight"?h=1*t(this,d)[t(this,u)]*.2:e.code==="ArrowUp"?h=-1*t(this,d)[t(this,u)]*.2:e.code==="ArrowDown"?h=1*t(this,d)[t(this,u)]*.2:e.code==="PageUp"?h=-1*t(this,d)[t(this,u)]:e.code==="PageDown"?h=1*t(this,d)[t(this,u)]:e.code==="Home"?h=0:e.code==="End"&&(h=t(this,u)==="offsetWidth"?t(this,d).scrollWidth:t(this,d).scrollHeight),h&&(e.stopPropagation(),this.changeEvent.notify("keyboard",h))});m.isBrowser&&(i(this,o,e!=null&&e.element&&Q.getElement(e.element)||window),i(this,d,t(this,o)instanceof HTMLElement?t(this,o):document.documentElement),this.dimension=e==null?void 0:e.dimension)}set dimension(e){i(this,u,e==="width"?"offsetWidth":"offsetHeight")}connect(){m.isBrowser&&t(this,o).addEventListener("keydown",t(this,D))}disconnect(){m.isBrowser&&t(this,o).removeEventListener("keydown",t(this,D))}}o=new WeakMap,d=new WeakMap,u=new WeakMap,D=new WeakMap;var w,y,H,P,l,k,f,C,S,W,U,q,X,B;class ee extends R{constructor(e){super();s(this,C);s(this,W);s(this,w,void 0);s(this,y,void 0);s(this,H,void 0);s(this,P,void 0);s(this,l,void 0);s(this,k,void 0);s(this,f,void 0);s(this,q,void 0);s(this,X,void 0);s(this,B,void 0);this.direction=1,i(this,l,new J.Tweened(0,{easing:G.easeInQuad})),i(this,f,!1),i(this,q,a=>{t(this,l).current!==1&&this.changeEvent.notify("autoplay",a.timeBetweenFrames*t(this,w)*this.direction*(1-t(this,l).current))}),i(this,X,()=>{t(this,l).current!==1&&this.changeEvent.notify("autoplay",Math.sign(t(this,w))*this.direction*(1-t(this,l).current))}),i(this,B,()=>{t(this,y)&&(document.hidden?t(this,l).set(1,{equalize:!0}):t(this,l).set(0,{equalize:!0}))}),i(this,w,(e==null?void 0:e.speed)||1),i(this,y,(e==null?void 0:e.interval)||!1),i(this,H,e)}set interval(e){i(this,y,e),t(this,f)&&L(this,C,S).call(this)}set speed(e){i(this,w,e),t(this,f)&&L(this,C,S).call(this)}connect(){t(this,f)||(i(this,f,!0),L(this,C,S).call(this))}disconnect(){t(this,f)&&(i(this,f,!1),L(this,W,U).call(this))}pauseAndContinue(e){e&&!t(this,l).target&&(clearInterval(t(this,k)),t(this,l).set(1,{duration:Math.min(e,1e3)}),i(this,k,setTimeout(()=>{t(this,l).set(0,{duration:Math.min(e,5e3)})},e)))}}w=new WeakMap,y=new WeakMap,H=new WeakMap,P=new WeakMap,l=new WeakMap,k=new WeakMap,f=new WeakMap,C=new WeakSet,S=function(){L(this,W,U).call(this),t(this,y)?i(this,P,setInterval(t(this,X),Math.abs(t(this,w)))):M.ticker.subscribe(t(this,q),t(this,H)),document.addEventListener("visibilitychange",t(this,B))},W=new WeakSet,U=function(){clearInterval(t(this,P)),M.ticker.unsubscribe(t(this,q)),clearInterval(t(this,k)),t(this,l).close(),document.removeEventListener("visibilitychange",t(this,B))},q=new WeakMap,X=new WeakMap,B=new WeakMap;var T,E,I,Y;class te extends R{constructor(e){super();s(this,T,null);s(this,E,void 0);s(this,I,void 0);s(this,Y,e=>{let a=0;if(e.preventDefault(),!(this.axis==="x"&&Math.abs(e.deltaY)>Math.abs(e.deltaX)*.5||this.axis==="y"&&Math.abs(e.deltaX)>Math.abs(e.deltaY)*.5))if(a=(this.axis==="max"?Math.abs(e.deltaX)>Math.abs(e.deltaY)?e.deltaX:e.deltaY:this.axis==="x"?e.deltaX:e.deltaY)*this.speed,e.stopPropagation(),this.debounce){const h=Date.now();if(h-t(this,I)>40&&(a=100*Math.sign(a)),i(this,I,h),Math.abs(a)<100||t(this,E))return;this.changeEvent.notify("wheel",a),i(this,E,setTimeout(()=>{i(this,E,void 0)},80))}else this.changeEvent.notify("wheel",a)});this.axis=(e==null?void 0:e.axis)||"y",this.speed=(e==null?void 0:e.speed)||1,this.debounce=(e==null?void 0:e.debounce)||!1,i(this,I,Date.now()),m.isBrowser&&i(this,T,e!=null&&e.element&&Q.getElement(e.element)||window)}connect(){m.isBrowser&&t(this,T).addEventListener("wheel",t(this,Y),{passive:!1})}disconnect(){m.isBrowser&&(t(this,T).removeEventListener("wheel",t(this,Y)),clearTimeout(t(this,E)))}}T=new WeakMap,E=new WeakMap,I=new WeakMap,Y=new WeakMap;var x,b,A,c,K,v;const g=class g extends R{constructor(e){super();s(this,b,null);s(this,A,!1);s(this,c,0);s(this,K,e=>{if(e.composedPath().find(h=>h instanceof HTMLElement&&h.hasAttribute("drag-dead-zone")))return;this.swipe||M.ticker.unsubscribe(t(this,v));let a=e;i(this,c,0),document.documentElement.classList.add("grabbing"),Z.setupDrag(h=>{if(t(this,A)||t(g,x)&&t(g,x)!==t(this,b))return;this.swipe&&i(this,A,!0);const O=a.x-h.x,F=a.y-h.y;this.axis==="x"?i(this,c,O):i(this,c,F),a=h,(this.axis==="x"&&Math.abs(O)>Math.abs(F)||this.axis==="y"&&Math.abs(F)>Math.abs(O))&&(i(g,x,t(this,b)),this.changeEvent.notify("drag",t(this,c)))},()=>{i(g,x,null),this.swipe||(i(this,c,t(this,c)*3),M.ticker.subscribe(t(this,v),{order:_.TICK_ORDER.SCROLL-1})),document.documentElement.classList.remove("grabbing"),i(this,A,!1)})});s(this,v,()=>{Math.floor(t(this,c))||M.ticker.unsubscribe(t(this,v)),i(this,c,t(this,c)*.95),i(this,c,$.preciseNumber(t(this,c),3)),this.changeEvent.notify("drag",t(this,c))});this.axis=(e==null?void 0:e.axis)||"y",this.swipe=(e==null?void 0:e.swipe)||!1,m.isBrowser&&i(this,b,e!=null&&e.element&&Q.getElement(e.element)||document.documentElement)}connect(){m.isBrowser&&t(this,b).addEventListener("pointerdown",t(this,K))}disconnect(){m.isBrowser&&(t(this,b).removeEventListener("pointerdown",t(this,K)),M.ticker.unsubscribe(t(this,v)))}};x=new WeakMap,b=new WeakMap,A=new WeakMap,c=new WeakMap,K=new WeakMap,v=new WeakMap,s(g,x,null);let j=g;exports.AutoplayControls=ee;exports.Controls=R;exports.DragControls=j;exports.KeyboardControls=p;exports.WheelControls=te;