aptechka 0.8.1 → 0.8.3

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 (92) hide show
  1. package/lib/{Animation-DBfrekcV.cjs → Animation-BInSRYNr.cjs} +1 -1
  2. package/lib/Animation-uimN7sdT.js +110 -0
  3. package/lib/{Composed-CgnR5oah.js → Composed-Fa7owymK.js} +1 -1
  4. package/lib/{Composed-CIXY_HwN.cjs → Composed-Iihn8fT4.cjs} +1 -1
  5. package/lib/{Damped-DmcKRSST.cjs → Damped-Da3EnNN4.cjs} +1 -1
  6. package/lib/{Damped-vepIw9Ku.js → Damped-yrNXlkDE.js} +2 -2
  7. package/lib/{Derived-Xb4EzLLO.cjs → Derived-D9VrDuf9.cjs} +1 -1
  8. package/lib/{Derived-B4CxuebG.js → Derived-DIWinC7Y.js} +1 -1
  9. package/lib/{SourceManager-U3KHUnNl.js → SourceManager--L_rA28b.js} +1 -1
  10. package/lib/{SourceManager-Ce49-NQe.cjs → SourceManager-D6D2LVKf.cjs} +1 -1
  11. package/lib/{Store-CIs_NjhF.cjs → Store-Cr3VaD9G.cjs} +1 -1
  12. package/lib/{Store-Dqcu1DnE.js → Store-Qr3SNOSf.js} +8 -8
  13. package/lib/{Tweened-DPi9pZ8Q.js → Tweened-CjgvoOwL.js} +1 -1
  14. package/lib/{Tweened-5Bj7ht3x.cjs → Tweened-DksN-Rz6.cjs} +1 -1
  15. package/lib/{Viewport-CIBlSU2t.cjs → Viewport-BBYt1Ivy.cjs} +1 -1
  16. package/lib/{Viewport-4ZTWxLo_.js → Viewport-Cgtq2I_K.js} +1 -1
  17. package/lib/accordion/index.js +3 -3
  18. package/lib/animation/index.cjs +1 -1
  19. package/lib/animation/index.js +3 -3
  20. package/lib/attribute/index.cjs +1 -1
  21. package/lib/attribute/index.js +12 -12
  22. package/lib/canvas/index.cjs +1 -1
  23. package/lib/canvas/index.js +3 -3
  24. package/lib/checkbox/index.cjs +1 -1
  25. package/lib/checkbox/index.js +3 -3
  26. package/lib/class-linked-status/index.cjs +1 -1
  27. package/lib/class-linked-status/index.js +1 -1
  28. package/lib/controls/index.cjs +1 -1
  29. package/lib/controls/index.js +3 -3
  30. package/lib/{createStylesheet-BX1RVTfW.cjs → createStylesheet-BsMSWX0q.cjs} +1 -1
  31. package/lib/{createStylesheet-CgWN4UhW.js → createStylesheet-BxKITIVV.js} +1 -1
  32. package/lib/css-property/index.cjs +1 -1
  33. package/lib/css-property/index.js +3 -3
  34. package/lib/dev/index.cjs +1 -1
  35. package/lib/dev/index.js +1 -1
  36. package/lib/device/index.cjs +1 -1
  37. package/lib/device/index.js +1 -1
  38. package/lib/{dom-0S_WDL4g.js → dom-P5QbAASX.js} +2 -2
  39. package/lib/element-constructor/index.cjs +1 -1
  40. package/lib/element-constructor/index.js +2 -2
  41. package/lib/element-resizer/index.js +5 -5
  42. package/lib/en3/helpers/index.cjs +1 -1
  43. package/lib/en3/helpers/index.js +4 -4
  44. package/lib/en3/index.js +1 -1
  45. package/lib/en3/loaders/index.js +1 -1
  46. package/lib/en3/misc/index.cjs +1 -1
  47. package/lib/en3/misc/index.js +2 -2
  48. package/lib/en3/utils/index.js +2 -2
  49. package/lib/{en3-sDqjL5Mg.js → en3-THFHEReu.js} +1 -1
  50. package/lib/{events-C_coq1Mk.js → events-CJTUMSLU.js} +2 -2
  51. package/lib/image/index.cjs +1 -1
  52. package/lib/image/index.js +1 -1
  53. package/lib/{index-DfSyc2GT.cjs → index-CzpP1Tg6.cjs} +1 -1
  54. package/lib/{index-C2xWAQFq.js → index-Dwd_62sm.js} +5 -5
  55. package/lib/intersector/index.js +5 -5
  56. package/lib/ladder/index.cjs +1 -1
  57. package/lib/ladder/index.js +1 -1
  58. package/lib/layout-box/index.js +18 -18
  59. package/lib/media/index.cjs +1 -1
  60. package/lib/media/index.js +1 -1
  61. package/lib/modal/index.cjs +1 -1
  62. package/lib/modal/index.js +3 -3
  63. package/lib/pointer/index.cjs +1 -1
  64. package/lib/pointer/index.js +12 -12
  65. package/lib/popover/index.cjs +1 -1
  66. package/lib/popover/index.js +3 -3
  67. package/lib/scroll/index.cjs +1 -1
  68. package/lib/scroll/index.js +8 -8
  69. package/lib/scroll-entries/index.js +13 -13
  70. package/lib/select/index.cjs +1 -1
  71. package/lib/select/index.js +1 -1
  72. package/lib/sequence/index.cjs +1 -1
  73. package/lib/sequence/index.js +1 -1
  74. package/lib/source/index.cjs +1 -1
  75. package/lib/source/index.js +2 -2
  76. package/lib/store/Store.d.ts +2 -2
  77. package/lib/store/index.cjs +1 -1
  78. package/lib/store/index.js +4 -4
  79. package/lib/{style-CklEF62D.js → style-j2TwriJ_.js} +2 -2
  80. package/lib/{tags-yvEoM921.cjs → tags-CAfasCGV.cjs} +1 -1
  81. package/lib/{tags-C-6uXIAT.js → tags-D9lNDPX8.js} +1 -1
  82. package/lib/theme/index.cjs +1 -1
  83. package/lib/theme/index.js +2 -2
  84. package/lib/ticker/index.js +1 -1
  85. package/lib/{traverseMaterials-M-N1989i.js → traverseMaterials-BKSwwNmo.js} +1 -1
  86. package/lib/tweaker/index.cjs +1 -1
  87. package/lib/tweaker/index.js +38 -30
  88. package/lib/utils/index.js +3 -3
  89. package/lib/video/index.cjs +1 -1
  90. package/lib/video/index.js +1 -1
  91. package/package.json +1 -1
  92. package/lib/Animation-CwgyQH5y.js +0 -110
@@ -1 +1 @@
1
- "use strict";var S=(i,s,t)=>{if(!s.has(i))throw TypeError("Cannot "+t)};var e=(i,s,t)=>(S(i,s,"read from private field"),t?t.call(i):s.get(i)),a=(i,s,t)=>{if(s.has(i))throw TypeError("Cannot add the same private member more than once");s instanceof WeakSet?s.add(i):s.set(i,t)},h=(i,s,t,n)=>(S(i,s,"write to private field"),n?n.call(i,t):s.set(i,t),t);var C=(i,s,t)=>(S(i,s,"access private method"),t);const M=require("./Store-CIs_NjhF.cjs"),z=require("./math-GDWEqu7y.cjs"),m=require("./polyfills-CM4SCDTt.cjs"),I=require("./ticker/index.cjs"),N=require("./order/index.cjs");var d,f,A,c,b,r,u,l,g,F,q,P,x;class O extends M.Store{constructor(t,n){super(t||0,n);a(this,q);a(this,d,void 0);a(this,f,N.TICK_ORDER.ANIMATION);a(this,A,void 0);a(this,c,new M.Store(!1));a(this,b,0);a(this,r,0);a(this,u,-1/0);a(this,l,1/0);a(this,g,0);a(this,F,null);a(this,x,t=>{this.handleAnimationFrame(t)});h(this,r,this.current)}get direction(){return e(this,b)}get target(){return e(this,r)}get min(){return e(this,u)}set min(t){h(this,u,t),this.set(e(this,r),{equalize:!0})}get max(){return e(this,l)}set max(t){h(this,l,t),this.set(e(this,r),{equalize:!0})}get from(){return e(this,g)}get isRunning(){return e(this,c)}get delta(){return Math.abs(e(this,r)-e(this,g))}get deltaProgress(){return this.delta?m.preciseNumber(Math.abs(this.current-e(this,g))/this.delta,6):0}get distance(){return Math.abs(e(this,l)-e(this,u))}get distanceProgress(){return this.distance?m.preciseNumber(Math.abs(this.current-e(this,u))/this.distance,6):0}set(t,n){(e(this,r)!==t||n!=null&&n.restart)&&(h(this,F,t),this.updateOptions(n),h(this,F,null),e(this,r)!==this.current&&this.start())}shift(t,n){this.set(e(this,r)+t,n)}reset(){super.reset(),this.set(this.initial,{equalize:!0})}close(){super.close(),this.reset(),this.unlistenAnimationFrame()}listenAnimationFrame(){e(this,c).current||(e(this,c).current=!0,I.ticker.subscribe(e(this,x),{maxFPS:e(this,d),order:e(this,f),culling:e(this,A)}))}unlistenAnimationFrame(){e(this,c).current&&(e(this,c).current=!1,I.ticker.unsubscribe(e(this,x)))}updateOptions(t){h(this,d,m.nullishCoalescing(t==null?void 0:t.maxFPS,e(this,d))),h(this,f,m.nullishCoalescing(t==null?void 0:t.order,e(this,f))),h(this,A,m.nullishCoalescing(t==null?void 0:t.culling,e(this,A))),h(this,u,m.nullishCoalescing(t==null?void 0:t.min,e(this,u))),h(this,l,m.nullishCoalescing(t==null?void 0:t.max,e(this,l))),C(this,q,P).call(this,e(this,F)||e(this,r)),t!=null&&t.equalize&&(this.unlistenAnimationFrame(),this.current=e(this,r)),t!=null&&t.restart&&(this.unlistenAnimationFrame(),this.current=this.initial)}start(){this.listenAnimationFrame()}}d=new WeakMap,f=new WeakMap,A=new WeakMap,c=new WeakMap,b=new WeakMap,r=new WeakMap,u=new WeakMap,l=new WeakMap,g=new WeakMap,F=new WeakMap,q=new WeakSet,P=function(t){h(this,b,Math.sign(t-e(this,r))),h(this,r,z.clamp(t,e(this,u),e(this,l))),h(this,g,this.current)},x=new WeakMap;exports.Animation=O;
1
+ "use strict";var S=(i,s,t)=>{if(!s.has(i))throw TypeError("Cannot "+t)};var e=(i,s,t)=>(S(i,s,"read from private field"),t?t.call(i):s.get(i)),a=(i,s,t)=>{if(s.has(i))throw TypeError("Cannot add the same private member more than once");s instanceof WeakSet?s.add(i):s.set(i,t)},h=(i,s,t,n)=>(S(i,s,"write to private field"),n?n.call(i,t):s.set(i,t),t);var C=(i,s,t)=>(S(i,s,"access private method"),t);const M=require("./Store-Cr3VaD9G.cjs"),y=require("./math-GDWEqu7y.cjs"),m=require("./polyfills-CM4SCDTt.cjs"),I=require("./ticker/index.cjs"),z=require("./order/index.cjs");var f,b,A,c,F,r,u,l,g,d,q,P,x;class N extends M.Store{constructor(t,n){super(t||0,n);a(this,q);a(this,f,void 0);a(this,b,z.TICK_ORDER.ANIMATION);a(this,A,void 0);a(this,c,new M.Store(!1));a(this,F,0);a(this,r,0);a(this,u,-1/0);a(this,l,1/0);a(this,g,0);a(this,d,null);a(this,x,t=>{this.handleAnimationFrame(t)});h(this,r,this.current)}get direction(){return e(this,F)}get target(){return e(this,r)}get min(){return e(this,u)}set min(t){h(this,u,t),this.set(e(this,r),{equalize:!0})}get max(){return e(this,l)}set max(t){h(this,l,t),this.set(e(this,r),{equalize:!0})}get from(){return e(this,g)}get isRunning(){return e(this,c)}get delta(){return Math.abs(e(this,r)-e(this,g))}get deltaProgress(){return this.delta?m.preciseNumber(Math.abs(this.current-e(this,g))/this.delta,6):0}get distance(){return Math.abs(e(this,l)-e(this,u))}get distanceProgress(){return this.distance?m.preciseNumber(Math.abs(this.current-e(this,u))/this.distance,6):0}set(t,n){(e(this,r)!==t||n!=null&&n.restart)&&(h(this,d,t),this.updateOptions(n),h(this,d,null),e(this,r)!==this.current&&this.start())}shift(t,n){this.set(e(this,r)+t,n)}reset(){super.reset(),this.set(this.initial,{equalize:!0})}close(){super.close(),this.reset(),this.unlistenAnimationFrame()}listenAnimationFrame(){e(this,c).current||(e(this,c).current=!0,I.ticker.subscribe(e(this,x),{maxFPS:e(this,f),order:e(this,b),culling:e(this,A)}))}unlistenAnimationFrame(){e(this,c).current&&(e(this,c).current=!1,I.ticker.unsubscribe(e(this,x)))}updateOptions(t){h(this,f,m.nullishCoalescing(t==null?void 0:t.maxFPS,e(this,f))),h(this,b,m.nullishCoalescing(t==null?void 0:t.order,e(this,b))),h(this,A,m.nullishCoalescing(t==null?void 0:t.culling,e(this,A))),h(this,u,m.nullishCoalescing(t==null?void 0:t.min,e(this,u))),h(this,l,m.nullishCoalescing(t==null?void 0:t.max,e(this,l))),C(this,q,P).call(this,typeof e(this,d)=="number"?e(this,d):e(this,r)),t!=null&&t.equalize&&(this.unlistenAnimationFrame(),this.current=e(this,r)),t!=null&&t.restart&&(this.unlistenAnimationFrame(),this.current=this.initial)}start(){this.listenAnimationFrame()}}f=new WeakMap,b=new WeakMap,A=new WeakMap,c=new WeakMap,F=new WeakMap,r=new WeakMap,u=new WeakMap,l=new WeakMap,g=new WeakMap,d=new WeakMap,q=new WeakSet,P=function(t){h(this,F,Math.sign(t-e(this,r))),h(this,r,y.clamp(t,e(this,u),e(this,l))),h(this,g,this.current)},x=new WeakMap;exports.Animation=N;
@@ -0,0 +1,110 @@
1
+ var S = (i, r, t) => {
2
+ if (!r.has(i))
3
+ throw TypeError("Cannot " + t);
4
+ };
5
+ var e = (i, r, t) => (S(i, r, "read from private field"), t ? t.call(i) : r.get(i)), a = (i, r, t) => {
6
+ if (r.has(i))
7
+ throw TypeError("Cannot add the same private member more than once");
8
+ r instanceof WeakSet ? r.add(i) : r.set(i, t);
9
+ }, h = (i, r, t, u) => (S(i, r, "write to private field"), u ? u.call(i, t) : r.set(i, t), t);
10
+ var I = (i, r, t) => (S(i, r, "access private method"), t);
11
+ import { S as P } from "./Store-Qr3SNOSf.js";
12
+ import { c as R } from "./math-BOBiC4TN.js";
13
+ import { p as q, n as F } from "./polyfills-X6KXuHg-.js";
14
+ import { ticker as z } from "./ticker/index.js";
15
+ import { TICK_ORDER as y } from "./order/index.js";
16
+ var f, d, A, l, b, s, n, m, c, g, M, O, x;
17
+ class E extends P {
18
+ constructor(t, u) {
19
+ super(t || 0, u);
20
+ a(this, M);
21
+ a(this, f, void 0);
22
+ a(this, d, y.ANIMATION);
23
+ a(this, A, void 0);
24
+ a(this, l, new P(!1));
25
+ a(this, b, 0);
26
+ a(this, s, 0);
27
+ a(this, n, -1 / 0);
28
+ a(this, m, 1 / 0);
29
+ a(this, c, 0);
30
+ a(this, g, null);
31
+ a(this, x, (t) => {
32
+ this.handleAnimationFrame(t);
33
+ });
34
+ h(this, s, this.current);
35
+ }
36
+ get direction() {
37
+ return e(this, b);
38
+ }
39
+ get target() {
40
+ return e(this, s);
41
+ }
42
+ get min() {
43
+ return e(this, n);
44
+ }
45
+ set min(t) {
46
+ h(this, n, t), this.set(e(this, s), {
47
+ equalize: !0
48
+ });
49
+ }
50
+ get max() {
51
+ return e(this, m);
52
+ }
53
+ set max(t) {
54
+ h(this, m, t), this.set(e(this, s), {
55
+ equalize: !0
56
+ });
57
+ }
58
+ get from() {
59
+ return e(this, c);
60
+ }
61
+ get isRunning() {
62
+ return e(this, l);
63
+ }
64
+ get delta() {
65
+ return Math.abs(e(this, s) - e(this, c));
66
+ }
67
+ get deltaProgress() {
68
+ return this.delta ? q(Math.abs(this.current - e(this, c)) / this.delta, 6) : 0;
69
+ }
70
+ get distance() {
71
+ return Math.abs(e(this, m) - e(this, n));
72
+ }
73
+ get distanceProgress() {
74
+ return this.distance ? q(Math.abs(this.current - e(this, n)) / this.distance, 6) : 0;
75
+ }
76
+ set(t, u) {
77
+ (e(this, s) !== t || u != null && u.restart) && (h(this, g, t), this.updateOptions(u), h(this, g, null), e(this, s) !== this.current && this.start());
78
+ }
79
+ shift(t, u) {
80
+ this.set(e(this, s) + t, u);
81
+ }
82
+ reset() {
83
+ super.reset(), this.set(this.initial, { equalize: !0 });
84
+ }
85
+ close() {
86
+ super.close(), this.reset(), this.unlistenAnimationFrame();
87
+ }
88
+ listenAnimationFrame() {
89
+ e(this, l).current || (e(this, l).current = !0, z.subscribe(e(this, x), {
90
+ maxFPS: e(this, f),
91
+ order: e(this, d),
92
+ culling: e(this, A)
93
+ }));
94
+ }
95
+ unlistenAnimationFrame() {
96
+ e(this, l).current && (e(this, l).current = !1, z.unsubscribe(e(this, x)));
97
+ }
98
+ updateOptions(t) {
99
+ h(this, f, F(t == null ? void 0 : t.maxFPS, e(this, f))), h(this, d, F(t == null ? void 0 : t.order, e(this, d))), h(this, A, F(t == null ? void 0 : t.culling, e(this, A))), h(this, n, F(t == null ? void 0 : t.min, e(this, n))), h(this, m, F(t == null ? void 0 : t.max, e(this, m))), I(this, M, O).call(this, typeof e(this, g) == "number" ? e(this, g) : e(this, s)), t != null && t.equalize && (this.unlistenAnimationFrame(), this.current = e(this, s)), t != null && t.restart && (this.unlistenAnimationFrame(), this.current = this.initial);
100
+ }
101
+ start() {
102
+ this.listenAnimationFrame();
103
+ }
104
+ }
105
+ f = new WeakMap(), d = new WeakMap(), A = new WeakMap(), l = new WeakMap(), b = new WeakMap(), s = new WeakMap(), n = new WeakMap(), m = new WeakMap(), c = new WeakMap(), g = new WeakMap(), M = new WeakSet(), O = function(t) {
106
+ h(this, b, Math.sign(t - e(this, s))), h(this, s, R(t, e(this, n), e(this, m))), h(this, c, this.current);
107
+ }, x = new WeakMap();
108
+ export {
109
+ E as A
110
+ };
@@ -8,7 +8,7 @@ var t = (s, r, o) => (n(s, r, "read from private field"), o ? o.call(s) : r.get(
8
8
  r instanceof WeakSet ? r.add(s) : r.set(s, o);
9
9
  };
10
10
  import { d as h } from "./function-C10DGppn.js";
11
- import { S as b } from "./Store-Dqcu1DnE.js";
11
+ import { S as b } from "./Store-Qr3SNOSf.js";
12
12
  var e;
13
13
  class f extends b {
14
14
  constructor(o, u, p) {
@@ -1 +1 @@
1
- "use strict";var p=(s,e,r)=>{if(!e.has(s))throw TypeError("Cannot "+r)};var c=(s,e,r)=>(p(s,e,"read from private field"),r?r.call(s):e.get(s)),t=(s,e,r)=>{if(e.has(s))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(s):e.set(s,r)};const b=require("./function-MthRj-GJ.cjs"),d=require("./Store-CIs_NjhF.cjs");var o;class l extends d.Store{constructor(r,u,n){super(null,n);t(this,o,[]);const i=b.debounce(()=>{this.current=u()},0);r.forEach(h=>{c(this,o).push(h.subscribe(()=>{i()}))})}close(){super.close(),c(this,o).forEach(r=>r())}}o=new WeakMap;exports.Composed=l;
1
+ "use strict";var p=(s,e,r)=>{if(!e.has(s))throw TypeError("Cannot "+r)};var c=(s,e,r)=>(p(s,e,"read from private field"),r?r.call(s):e.get(s)),t=(s,e,r)=>{if(e.has(s))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(s):e.set(s,r)};const b=require("./function-MthRj-GJ.cjs"),d=require("./Store-Cr3VaD9G.cjs");var o;class l extends d.Store{constructor(r,u,n){super(null,n);t(this,o,[]);const i=b.debounce(()=>{this.current=u()},0);r.forEach(h=>{c(this,o).push(h.subscribe(()=>{i()}))})}close(){super.close(),c(this,o).forEach(r=>r())}}o=new WeakMap;exports.Composed=l;
@@ -1 +1 @@
1
- "use strict";var F=Object.defineProperty,b=Object.defineProperties;var y=Object.getOwnPropertyDescriptors;var l=Object.getOwnPropertySymbols;var C=Object.prototype.hasOwnProperty,O=Object.prototype.propertyIsEnumerable;var d=(e,t,s)=>t in e?F(e,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):e[t]=s,g=(e,t)=>{for(var s in t||(t={}))C.call(t,s)&&d(e,s,t[s]);if(l)for(var s of l(t))O.call(t,s)&&d(e,s,t[s]);return e},f=(e,t)=>b(e,y(t));var p=(e,t,s)=>{if(!t.has(e))throw TypeError("Cannot "+s)};var a=(e,t,s)=>(p(e,t,"read from private field"),s?s.call(e):t.get(e)),u=(e,t,s)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,s)},n=(e,t,s,r)=>(p(e,t,"write to private field"),r?r.call(e,s):t.set(e,s),s);const v=require("./math-GDWEqu7y.cjs"),c=require("./polyfills-CM4SCDTt.cjs"),w=require("./Animation-DBfrekcV.cjs");var i,h;class B extends w.Animation{constructor(s,r){super(s,r);u(this,i,void 0);u(this,h,void 0);this.damping=20,this.stiffness=0,this.mass=0,n(this,i,0),n(this,h,0),this.updateOptions(f(g({},r),{equalize:!0}))}get velocity(){return a(this,i)}get speed(){return a(this,h)}updateOptions(s){this.damping=c.nullishCoalescing(s==null?void 0:s.damping,this.damping),this.mass=c.nullishCoalescing(s==null?void 0:s.mass,this.mass),this.stiffness=c.nullishCoalescing(s==null?void 0:s.stiffness,this.stiffness),super.updateOptions(s)}handleAnimationFrame(s){c.preciseNumber(this.current,4)===c.preciseNumber(this.target,4)&&(this.unlistenAnimationFrame(),this.current=this.target);const r=this.current,q=Math.abs(r-this.target);n(this,h,q/s.timeBetweenFrames);const m=s.timeBetweenFrames/1e3;if(this.mass||this.stiffness){const A=(this.target-this.current)*this.stiffness-a(this,i)*this.damping;n(this,i,a(this,i)+A/this.mass*m),this.current+=a(this,i)*m}else this.current=v.damp(this.current,this.target,this.damping,m)}}i=new WeakMap,h=new WeakMap;exports.Damped=B;
1
+ "use strict";var F=Object.defineProperty,b=Object.defineProperties;var y=Object.getOwnPropertyDescriptors;var l=Object.getOwnPropertySymbols;var C=Object.prototype.hasOwnProperty,O=Object.prototype.propertyIsEnumerable;var d=(e,t,s)=>t in e?F(e,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):e[t]=s,g=(e,t)=>{for(var s in t||(t={}))C.call(t,s)&&d(e,s,t[s]);if(l)for(var s of l(t))O.call(t,s)&&d(e,s,t[s]);return e},f=(e,t)=>b(e,y(t));var p=(e,t,s)=>{if(!t.has(e))throw TypeError("Cannot "+s)};var a=(e,t,s)=>(p(e,t,"read from private field"),s?s.call(e):t.get(e)),u=(e,t,s)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,s)},n=(e,t,s,r)=>(p(e,t,"write to private field"),r?r.call(e,s):t.set(e,s),s);const v=require("./math-GDWEqu7y.cjs"),c=require("./polyfills-CM4SCDTt.cjs"),w=require("./Animation-BInSRYNr.cjs");var i,h;class B extends w.Animation{constructor(s,r){super(s,r);u(this,i,void 0);u(this,h,void 0);this.damping=20,this.stiffness=0,this.mass=0,n(this,i,0),n(this,h,0),this.updateOptions(f(g({},r),{equalize:!0}))}get velocity(){return a(this,i)}get speed(){return a(this,h)}updateOptions(s){this.damping=c.nullishCoalescing(s==null?void 0:s.damping,this.damping),this.mass=c.nullishCoalescing(s==null?void 0:s.mass,this.mass),this.stiffness=c.nullishCoalescing(s==null?void 0:s.stiffness,this.stiffness),super.updateOptions(s)}handleAnimationFrame(s){c.preciseNumber(this.current,6)===c.preciseNumber(this.target,6)&&(this.unlistenAnimationFrame(),this.current=this.target);const r=this.current,q=Math.abs(r-this.target);n(this,h,q/s.timeBetweenFrames);const m=s.timeBetweenFrames/1e3;if(this.mass||this.stiffness){const A=(this.target-this.current)*this.stiffness-a(this,i)*this.damping;n(this,i,a(this,i)+A/this.mass*m),this.current+=a(this,i)*m}else this.current=v.damp(this.current,this.target,this.damping,m)}}i=new WeakMap,h=new WeakMap;exports.Damped=B;
@@ -21,7 +21,7 @@ var a = (e, s, t) => (p(e, s, "read from private field"), t ? t.call(e) : s.get(
21
21
  }, m = (e, s, t, r) => (p(e, s, "write to private field"), r ? r.call(e, t) : s.set(e, t), t);
22
22
  import { d as B } from "./math-BOBiC4TN.js";
23
23
  import { n as u, p as A } from "./polyfills-X6KXuHg-.js";
24
- import { A as D } from "./Animation-CwgyQH5y.js";
24
+ import { A as D } from "./Animation-uimN7sdT.js";
25
25
  var i, h;
26
26
  class N extends D {
27
27
  constructor(t, r) {
@@ -40,7 +40,7 @@ class N extends D {
40
40
  this.damping = u(t == null ? void 0 : t.damping, this.damping), this.mass = u(t == null ? void 0 : t.mass, this.mass), this.stiffness = u(t == null ? void 0 : t.stiffness, this.stiffness), super.updateOptions(t);
41
41
  }
42
42
  handleAnimationFrame(t) {
43
- A(this.current, 4) === A(this.target, 4) && (this.unlistenAnimationFrame(), this.current = this.target);
43
+ A(this.current, 6) === A(this.target, 6) && (this.unlistenAnimationFrame(), this.current = this.target);
44
44
  const r = this.current, F = Math.abs(r - this.target);
45
45
  m(this, h, F / t.timeBetweenFrames);
46
46
  const n = t.timeBetweenFrames / 1e3;
@@ -1 +1 @@
1
- "use strict";var u=(e,r,s)=>{if(!r.has(e))throw TypeError("Cannot "+s)};var i=(e,r,s)=>(u(e,r,"read from private field"),s?s.call(e):r.get(e)),n=(e,r,s)=>{if(r.has(e))throw TypeError("Cannot add the same private member more than once");r instanceof WeakSet?r.add(e):r.set(e,s)},o=(e,r,s,c)=>(u(e,r,"write to private field"),c?c.call(e,s):r.set(e,s),s);const d=require("./Store-CIs_NjhF.cjs");var t;class h extends d.Store{constructor(s,c,l){super(null,l);n(this,t,void 0);o(this,t,s.subscribe(b=>{this.current=c(b.current)}))}close(){super.close(),i(this,t).call(this)}}t=new WeakMap;exports.Derived=h;
1
+ "use strict";var u=(e,r,s)=>{if(!r.has(e))throw TypeError("Cannot "+s)};var i=(e,r,s)=>(u(e,r,"read from private field"),s?s.call(e):r.get(e)),n=(e,r,s)=>{if(r.has(e))throw TypeError("Cannot add the same private member more than once");r instanceof WeakSet?r.add(e):r.set(e,s)},o=(e,r,s,c)=>(u(e,r,"write to private field"),c?c.call(e,s):r.set(e,s),s);const d=require("./Store-Cr3VaD9G.cjs");var t;class h extends d.Store{constructor(s,c,l){super(null,l);n(this,t,void 0);o(this,t,s.subscribe(b=>{this.current=c(b.current)}))}close(){super.close(),i(this,t).call(this)}}t=new WeakMap;exports.Derived=h;
@@ -7,7 +7,7 @@ var o = (s, r, e) => (u(s, r, "read from private field"), e ? e.call(s) : r.get(
7
7
  throw TypeError("Cannot add the same private member more than once");
8
8
  r instanceof WeakSet ? r.add(s) : r.set(s, e);
9
9
  }, n = (s, r, e, c) => (u(s, r, "write to private field"), c ? c.call(s, e) : r.set(s, e), e);
10
- import { S as p } from "./Store-Dqcu1DnE.js";
10
+ import { S as p } from "./Store-Qr3SNOSf.js";
11
11
  var t;
12
12
  class d extends p {
13
13
  constructor(e, c, l) {
@@ -9,7 +9,7 @@ var r = (a, e, t) => ($(a, e, "read from private field"), t ? t.call(a) : e.get(
9
9
  }, i = (a, e, t, n) => ($(a, e, "write to private field"), n ? n.call(a, t) : e.set(a, t), t);
10
10
  import { RESIZE_ORDER as A } from "./order/index.js";
11
11
  import { windowResizer as k } from "./window-resizer/index.js";
12
- import { S as B } from "./Store-Dqcu1DnE.js";
12
+ import { S as B } from "./Store-Qr3SNOSf.js";
13
13
  var y, g, q, u, c, d, w;
14
14
  class T {
15
15
  constructor(e) {
@@ -1 +1 @@
1
- "use strict";var b=(c,e,t)=>{if(!e.has(c))throw TypeError("Cannot "+t)};var r=(c,e,t)=>(b(c,e,"read from private field"),t?t.call(c):e.get(c)),o=(c,e,t)=>{if(e.has(c))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(c):e.set(c,t)},i=(c,e,t,n)=>(b(c,e,"write to private field"),n?n.call(c,t):e.set(c,t),t);const B=require("./order/index.cjs"),k=require("./window-resizer/index.cjs"),T=require("./Store-CIs_NjhF.cjs");var y,g,q,m,a,d,w;class z{constructor(e){o(this,y,void 0);o(this,g,void 0);o(this,q,void 0);o(this,m,void 0);o(this,a,void 0);o(this,d,void 0);o(this,w,void 0);i(this,y,e);const t=e.indexOf("?");t>=0&&(e=e.slice(0,t));const n=e.split(".");i(this,g,n[0]);const x=/\d+x/g,h=n.find(u=>u.match(x));i(this,q,h?parseInt(h):1);const f=/\d+max/g,M=/\d+min/g,s=/\d+mar/g,l=/\d+mir/g,S=n.find(u=>u.match(f)),I=n.find(u=>u.match(M)),V=n.find(u=>u.match(s)),$=n.find(u=>u.match(l));V?(i(this,a,parseInt(V)),i(this,d,"max"),i(this,m,`(max-aspect-ratio: ${r(this,a)})`)):$?(i(this,a,parseInt($)),i(this,d,"max"),i(this,m,`(min-aspect-ratio: ${r(this,a)})`)):S?(i(this,a,parseInt(S)),i(this,d,"max"),i(this,m,`(max-width: ${r(this,a)}px)`)):I?(i(this,a,parseInt(I)),i(this,m,`(min-width: ${r(this,a)}px)`),i(this,d,"min")):(i(this,a,0),i(this,m,`(min-width: ${r(this,a)}px)`),i(this,d,"min")),i(this,w,"."+n[n.length-1])}get url(){return r(this,y)}get name(){return r(this,g)}get density(){return r(this,q)}get query(){return r(this,m)}get extension(){return r(this,w)}get queryType(){return r(this,d)}get queryValue(){return r(this,a)}}y=new WeakMap,g=new WeakMap,q=new WeakMap,m=new WeakMap,a=new WeakMap,d=new WeakMap,w=new WeakMap;var p;class A{constructor(e){o(this,p,void 0);i(this,p,new Map);const t=typeof e=="string"?e.trim().split(",").map(s=>s.trim()).filter(s=>!!s):e,n=[];t.forEach(s=>{const l=new z(s);n.push([l.query,l])});const x=n.filter(s=>s[1].queryType.includes("max")).sort((s,l)=>l[1].queryValue-s[1].queryValue),h=n.filter(s=>s[1].queryType.includes("min")&&s[1].queryValue!==0).sort((s,l)=>s[1].queryValue-l[1].queryValue),f=n.filter(s=>s[0]==="(min-width: 0px)");(f?[...f,...x,...h]:[...x,...h]).forEach(s=>{r(this,p).has(s[0])||r(this,p).set(s[0],[]),r(this,p).get(s[0]).push(s[1])})}get mediaBuckets(){return r(this,p)}}p=new WeakMap;var R,E;class _ extends T.Store{constructor(t){super(void 0);o(this,R,void 0);o(this,E,()=>{let t;r(this,R).mediaBuckets.forEach((h,f)=>{matchMedia(f).matches&&(t=h)});let n,x=0;t==null||t.forEach(h=>{h.density>x&&h.density<=Math.max(devicePixelRatio,1)&&(x=h.density,n=h)}),t!=null&&t.length&&!n&&(n=t[0]),this.current=n});i(this,R,new A(t.srcset))}close(){super.close(),this.disconnect()}connect(){k.windowResizer.subscribe(r(this,E),B.RESIZE_ORDER.SOURCE_MANAGER)}disconnect(){k.windowResizer.unsubscribe(r(this,E))}}R=new WeakMap,E=new WeakMap;exports.Source=z;exports.SourceManager=_;exports.SourceSet=A;
1
+ "use strict";var b=(c,e,t)=>{if(!e.has(c))throw TypeError("Cannot "+t)};var r=(c,e,t)=>(b(c,e,"read from private field"),t?t.call(c):e.get(c)),o=(c,e,t)=>{if(e.has(c))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(c):e.set(c,t)},i=(c,e,t,n)=>(b(c,e,"write to private field"),n?n.call(c,t):e.set(c,t),t);const B=require("./order/index.cjs"),k=require("./window-resizer/index.cjs"),T=require("./Store-Cr3VaD9G.cjs");var y,g,q,m,a,d,w;class z{constructor(e){o(this,y,void 0);o(this,g,void 0);o(this,q,void 0);o(this,m,void 0);o(this,a,void 0);o(this,d,void 0);o(this,w,void 0);i(this,y,e);const t=e.indexOf("?");t>=0&&(e=e.slice(0,t));const n=e.split(".");i(this,g,n[0]);const x=/\d+x/g,h=n.find(u=>u.match(x));i(this,q,h?parseInt(h):1);const f=/\d+max/g,M=/\d+min/g,s=/\d+mar/g,l=/\d+mir/g,S=n.find(u=>u.match(f)),I=n.find(u=>u.match(M)),V=n.find(u=>u.match(s)),$=n.find(u=>u.match(l));V?(i(this,a,parseInt(V)),i(this,d,"max"),i(this,m,`(max-aspect-ratio: ${r(this,a)})`)):$?(i(this,a,parseInt($)),i(this,d,"max"),i(this,m,`(min-aspect-ratio: ${r(this,a)})`)):S?(i(this,a,parseInt(S)),i(this,d,"max"),i(this,m,`(max-width: ${r(this,a)}px)`)):I?(i(this,a,parseInt(I)),i(this,m,`(min-width: ${r(this,a)}px)`),i(this,d,"min")):(i(this,a,0),i(this,m,`(min-width: ${r(this,a)}px)`),i(this,d,"min")),i(this,w,"."+n[n.length-1])}get url(){return r(this,y)}get name(){return r(this,g)}get density(){return r(this,q)}get query(){return r(this,m)}get extension(){return r(this,w)}get queryType(){return r(this,d)}get queryValue(){return r(this,a)}}y=new WeakMap,g=new WeakMap,q=new WeakMap,m=new WeakMap,a=new WeakMap,d=new WeakMap,w=new WeakMap;var p;class A{constructor(e){o(this,p,void 0);i(this,p,new Map);const t=typeof e=="string"?e.trim().split(",").map(s=>s.trim()).filter(s=>!!s):e,n=[];t.forEach(s=>{const l=new z(s);n.push([l.query,l])});const x=n.filter(s=>s[1].queryType.includes("max")).sort((s,l)=>l[1].queryValue-s[1].queryValue),h=n.filter(s=>s[1].queryType.includes("min")&&s[1].queryValue!==0).sort((s,l)=>s[1].queryValue-l[1].queryValue),f=n.filter(s=>s[0]==="(min-width: 0px)");(f?[...f,...x,...h]:[...x,...h]).forEach(s=>{r(this,p).has(s[0])||r(this,p).set(s[0],[]),r(this,p).get(s[0]).push(s[1])})}get mediaBuckets(){return r(this,p)}}p=new WeakMap;var R,E;class _ extends T.Store{constructor(t){super(void 0);o(this,R,void 0);o(this,E,()=>{let t;r(this,R).mediaBuckets.forEach((h,f)=>{matchMedia(f).matches&&(t=h)});let n,x=0;t==null||t.forEach(h=>{h.density>x&&h.density<=Math.max(devicePixelRatio,1)&&(x=h.density,n=h)}),t!=null&&t.length&&!n&&(n=t[0]),this.current=n});i(this,R,new A(t.srcset))}close(){super.close(),this.disconnect()}connect(){k.windowResizer.subscribe(r(this,E),B.RESIZE_ORDER.SOURCE_MANAGER)}disconnect(){k.windowResizer.unsubscribe(r(this,E))}}R=new WeakMap,E=new WeakMap;exports.Source=z;exports.SourceManager=_;exports.SourceSet=A;
@@ -1 +1 @@
1
- "use strict";var N=(i,t,e)=>{if(!t.has(i))throw TypeError("Cannot "+e)};var r=(i,t,e)=>(N(i,t,"read from private field"),e?e.call(i):t.get(i)),s=(i,t,e)=>{if(t.has(i))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(i):t.set(i,e)},a=(i,t,e,c)=>(N(i,t,"write to private field"),c?c.call(i,e):t.set(i,e),e);var p=(i,t,e)=>(N(i,t,"access private method"),e);const q=require("./browser-CpzFX2xg.cjs");var f,d,S;class z{constructor(){s(this,f,null);s(this,d,"");s(this,S,"");q.isBrowser&&(a(this,d,document.documentElement.getAttribute("data-project")||"unnamed"),a(this,S,r(this,d)?r(this,d)+"-store-registry":"store-registry"))}get projectName(){return r(this,d)}get localStoreRegistryName(){return r(this,S)}get loadedState(){return r(this,f)}saveState(){const t=this.getState(),e=JSON.stringify(t);localStorage.setItem(r(this,S),e)}loadState(t=localStorage.getItem(r(this,S))){t&&(typeof t=="string"?a(this,f,JSON.parse(t)):a(this,f,t),l.current.forEach(e=>{e.passport&&this.updateStore(e)}))}resetState(){l.current.forEach(t=>{t.passport&&t.reset()}),this.saveState()}updateStore(t){var c,v;if(!Array.isArray((c=r(this,f))==null?void 0:c.stores))return t;const e=t.passport;if(e){const A=(v=r(this,f))==null?void 0:v.stores.find(j=>j.name===e.name);A&&(t.current=A.value)}return t}getState(){const t={stores:[]};return l.current.forEach(e=>{e.passport&&(t.stores.find(c=>c.name===e.passport.name)||t.stores.push({value:e.current,name:e.passport.name}))}),t}}f=new WeakMap,d=new WeakMap,S=new WeakMap;const k=new z;var g,h,m,n,o,u,y,b,w,E;class C{constructor(t,e){s(this,w);s(this,g,void 0);s(this,h,void 0);s(this,m,void 0);s(this,n,new Set);s(this,o,void 0);s(this,u,void 0);s(this,y,void 0);s(this,b,void 0);a(this,g,e==null?void 0:e.passport),a(this,h,{initial:t,previous:t,current:t}),a(this,m,(e==null?void 0:e.equalityCheck)||((c,v)=>c===v)),e!=null&&e.validate&&this.addMiddleware(e.validate),a(this,y,(e==null?void 0:e.notifyAndClose)||!1),a(this,b,(e==null?void 0:e.invisible)||!1),a(this,o,(e==null?void 0:e.skipSubscribeNotification)||!1),r(this,g)&&k.updateStore(this)}get passport(){return r(this,g)}get initial(){return r(this,h).initial}get previous(){return r(this,h).previous}get current(){return r(this,h).current}set current(t){if(!r(this,m).call(this,r(this,h).current,t)){if(r(this,h).previous=r(this,h).current,r(this,u))for(const e of r(this,u))t=e(t);r(this,h).current=t,p(this,w,E).call(this),r(this,y)&&this.close()}}get subscribers(){return r(this,n)}addMiddleware(t){r(this,u)||a(this,u,new Set),r(this,u).add(t)}removeMiddleware(t){var e,c;(e=r(this,u))==null||e.delete(t),(c=r(this,u))!=null&&c.size||a(this,u,void 0)}subscribe(t){return!r(this,b)&&!r(this,n).size&&M(this),r(this,n).add(t),r(this,o)||t(r(this,h)),()=>{this.unsubscribe(t)}}unsubscribe(t){r(this,n).delete(t),r(this,n).size||R(this)}reset(){this.current=Array.isArray(this.initial)?[...this.initial]:this.initial}close(){r(this,n).clear(),R(this)}}g=new WeakMap,h=new WeakMap,m=new WeakMap,n=new WeakMap,o=new WeakMap,u=new WeakMap,y=new WeakMap,b=new WeakMap,w=new WeakSet,E=function(){for(const t of r(this,n))t(r(this,h))};const l=new C([],{invisible:!0});function M(i){l.current.includes(i)||(l.current=[...l.current,i])}function R(i){l.current.includes(i)&&(l.current=l.current.filter(t=>t!==i))}exports.Store=C;exports.activeStores=l;exports.storeRegistry=k;
1
+ "use strict";var N=(i,t,e)=>{if(!t.has(i))throw TypeError("Cannot "+e)};var r=(i,t,e)=>(N(i,t,"read from private field"),e?e.call(i):t.get(i)),s=(i,t,e)=>{if(t.has(i))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(i):t.set(i,e)},a=(i,t,e,c)=>(N(i,t,"write to private field"),c?c.call(i,e):t.set(i,e),e);var p=(i,t,e)=>(N(i,t,"access private method"),e);const q=require("./browser-CpzFX2xg.cjs");var f,d,S;class z{constructor(){s(this,f,null);s(this,d,"");s(this,S,"");q.isBrowser&&(a(this,d,document.documentElement.getAttribute("data-project")||"unnamed"),a(this,S,r(this,d)?r(this,d)+"-store-registry":"store-registry"))}get projectName(){return r(this,d)}get localStoreRegistryName(){return r(this,S)}get loadedState(){return r(this,f)}saveState(){const t=this.getState(),e=JSON.stringify(t);localStorage.setItem(r(this,S),e)}loadState(t=localStorage.getItem(r(this,S))){t&&(typeof t=="string"?a(this,f,JSON.parse(t)):a(this,f,t),l.current.forEach(e=>{e.passport&&this.updateStore(e)}))}resetState(){l.current.forEach(t=>{t.passport&&t.reset()}),this.saveState()}updateStore(t){var c,v;if(!Array.isArray((c=r(this,f))==null?void 0:c.stores))return t;const e=t.passport;if(e){const A=(v=r(this,f))==null?void 0:v.stores.find(j=>j.name===e.name);A&&(t.current=A.value)}return t}getState(){const t={stores:[]};return l.current.forEach(e=>{e.passport&&(t.stores.find(c=>c.name===e.passport.name)||t.stores.push({value:e.current,name:e.passport.name}))}),t}}f=new WeakMap,d=new WeakMap,S=new WeakMap;const k=new z;var g,h,m,n,o,u,y,b,w,E;class C{constructor(t,e){s(this,w);s(this,g,void 0);s(this,h,void 0);s(this,m,void 0);s(this,n,new Set);s(this,o,void 0);s(this,u,void 0);s(this,y,void 0);s(this,b,void 0);a(this,g,e==null?void 0:e.passport),a(this,h,{initial:t,previous:void 0,current:t}),a(this,m,(e==null?void 0:e.equalityCheck)||((c,v)=>c===v)),e!=null&&e.validate&&this.addMiddleware(e.validate),a(this,y,(e==null?void 0:e.notifyAndClose)||!1),a(this,b,(e==null?void 0:e.invisible)||!1),a(this,o,(e==null?void 0:e.skipSubscribeNotification)||!1),r(this,g)&&k.updateStore(this)}get passport(){return r(this,g)}get initial(){return r(this,h).initial}get previous(){return r(this,h).previous}get current(){return r(this,h).current}set current(t){if(!r(this,m).call(this,r(this,h).current,t)){if(r(this,h).previous=r(this,h).current,r(this,u))for(const e of r(this,u))t=e(t);r(this,h).current=t,p(this,w,E).call(this),r(this,y)&&this.close()}}get subscribers(){return r(this,n)}addMiddleware(t){r(this,u)||a(this,u,new Set),r(this,u).add(t)}removeMiddleware(t){var e,c;(e=r(this,u))==null||e.delete(t),(c=r(this,u))!=null&&c.size||a(this,u,void 0)}subscribe(t){return!r(this,b)&&!r(this,n).size&&M(this),r(this,n).add(t),r(this,o)||t(r(this,h)),()=>{this.unsubscribe(t)}}unsubscribe(t){r(this,n).delete(t),r(this,n).size||R(this)}reset(){this.current=Array.isArray(this.initial)?[...this.initial]:this.initial}close(){r(this,n).clear(),R(this)}}g=new WeakMap,h=new WeakMap,m=new WeakMap,n=new WeakMap,o=new WeakMap,u=new WeakMap,y=new WeakMap,b=new WeakMap,w=new WeakSet,E=function(){for(const t of r(this,n))t(r(this,h))};const l=new C([],{invisible:!0});function M(i){l.current.includes(i)||(l.current=[...l.current,i])}function R(i){l.current.includes(i)&&(l.current=l.current.filter(t=>t!==i))}exports.Store=C;exports.activeStores=l;exports.storeRegistry=k;
@@ -69,7 +69,7 @@ class j {
69
69
  }
70
70
  f = new WeakMap(), d = new WeakMap(), S = new WeakMap();
71
71
  const z = new j();
72
- var g, h, m, n, y, u, b, o, w, C;
72
+ var g, h, m, n, o, u, y, b, w, C;
73
73
  class M {
74
74
  constructor(t, e) {
75
75
  s(this, w);
@@ -77,15 +77,15 @@ class M {
77
77
  s(this, h, void 0);
78
78
  s(this, m, void 0);
79
79
  s(this, n, /* @__PURE__ */ new Set());
80
- s(this, y, void 0);
80
+ s(this, o, void 0);
81
81
  s(this, u, void 0);
82
+ s(this, y, void 0);
82
83
  s(this, b, void 0);
83
- s(this, o, void 0);
84
84
  a(this, g, e == null ? void 0 : e.passport), a(this, h, {
85
85
  initial: t,
86
- previous: t,
86
+ previous: void 0,
87
87
  current: t
88
- }), a(this, m, (e == null ? void 0 : e.equalityCheck) || ((c, v) => c === v)), e != null && e.validate && this.addMiddleware(e.validate), a(this, b, (e == null ? void 0 : e.notifyAndClose) || !1), a(this, o, (e == null ? void 0 : e.invisible) || !1), a(this, y, (e == null ? void 0 : e.skipSubscribeNotification) || !1), r(this, g) && z.updateStore(this);
88
+ }), a(this, m, (e == null ? void 0 : e.equalityCheck) || ((c, v) => c === v)), e != null && e.validate && this.addMiddleware(e.validate), a(this, y, (e == null ? void 0 : e.notifyAndClose) || !1), a(this, b, (e == null ? void 0 : e.invisible) || !1), a(this, o, (e == null ? void 0 : e.skipSubscribeNotification) || !1), r(this, g) && z.updateStore(this);
89
89
  }
90
90
  get passport() {
91
91
  return r(this, g);
@@ -104,7 +104,7 @@ class M {
104
104
  if (r(this, h).previous = r(this, h).current, r(this, u))
105
105
  for (const e of r(this, u))
106
106
  t = e(t);
107
- r(this, h).current = t, A(this, w, C).call(this), r(this, b) && this.close();
107
+ r(this, h).current = t, A(this, w, C).call(this), r(this, y) && this.close();
108
108
  }
109
109
  }
110
110
  get subscribers() {
@@ -118,7 +118,7 @@ class M {
118
118
  (e = r(this, u)) == null || e.delete(t), (c = r(this, u)) != null && c.size || a(this, u, void 0);
119
119
  }
120
120
  subscribe(t) {
121
- return !r(this, o) && !r(this, n).size && q(this), r(this, n).add(t), r(this, y) || t(r(this, h)), () => {
121
+ return !r(this, b) && !r(this, n).size && q(this), r(this, n).add(t), r(this, o) || t(r(this, h)), () => {
122
122
  this.unsubscribe(t);
123
123
  };
124
124
  }
@@ -132,7 +132,7 @@ class M {
132
132
  r(this, n).clear(), k(this);
133
133
  }
134
134
  }
135
- g = new WeakMap(), h = new WeakMap(), m = new WeakMap(), n = new WeakMap(), y = new WeakMap(), u = new WeakMap(), b = new WeakMap(), o = new WeakMap(), w = new WeakSet(), C = function() {
135
+ g = new WeakMap(), h = new WeakMap(), m = new WeakMap(), n = new WeakMap(), o = new WeakMap(), u = new WeakMap(), y = new WeakMap(), b = new WeakMap(), w = new WeakSet(), C = function() {
136
136
  for (const t of r(this, n))
137
137
  t(r(this, h));
138
138
  };
@@ -22,7 +22,7 @@ var n = (i, e, t) => (f(i, e, "read from private field"), t ? t.call(i) : e.get(
22
22
  import { l as x } from "./easings-BKi40vHz.js";
23
23
  import { c as S } from "./math-BOBiC4TN.js";
24
24
  import { n as p, p as T } from "./polyfills-X6KXuHg-.js";
25
- import { A as q } from "./Animation-CwgyQH5y.js";
25
+ import { A as q } from "./Animation-uimN7sdT.js";
26
26
  var s, r;
27
27
  class j extends q {
28
28
  constructor(t, a) {
@@ -1 +1 @@
1
- "use strict";var f=Object.defineProperty,F=Object.defineProperties;var o=Object.getOwnPropertyDescriptors;var c=Object.getOwnPropertySymbols;var O=Object.prototype.hasOwnProperty,b=Object.prototype.propertyIsEnumerable;var m=(t,i,e)=>i in t?f(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},g=(t,i)=>F(t,o(i));var A=(t,i,e)=>{if(!i.has(t))throw TypeError("Cannot "+e)};var a=(t,i,e)=>(A(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)},h=(t,i,e,s)=>(A(t,i,"write to private field"),s?s.call(t,e):i.set(t,e),e);const p=require("./easings-DsS5-Kqc.cjs"),w=require("./math-GDWEqu7y.cjs"),l=require("./polyfills-CM4SCDTt.cjs"),C=require("./Animation-DBfrekcV.cjs");var n,r;class S extends C.Animation{constructor(e,s){super(e||0,s);u(this,n,p.linear);u(this,r,1e3);this.updateOptions(g(d({},s),{equalize:!0}))}updateOptions(e){super.updateOptions(e),h(this,n,l.nullishCoalescing(e==null?void 0:e.easing,a(this,n))),h(this,r,l.nullishCoalescing(e==null?void 0:e.duration,a(this,r)))}handleAnimationFrame(e){const s=e.timeElapsedSinceSubscription/1e3/(a(this,r)/1e3),q=a(this,n).call(this,w.clamp(s,0,1));this.current=l.preciseNumber(this.from+(this.target-this.from)*q,6),s>1&&this.unlistenAnimationFrame()}start(){this.unlistenAnimationFrame(),this.listenAnimationFrame()}}n=new WeakMap,r=new WeakMap;exports.Tweened=S;
1
+ "use strict";var f=Object.defineProperty,F=Object.defineProperties;var o=Object.getOwnPropertyDescriptors;var c=Object.getOwnPropertySymbols;var O=Object.prototype.hasOwnProperty,b=Object.prototype.propertyIsEnumerable;var m=(t,i,e)=>i in t?f(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},g=(t,i)=>F(t,o(i));var A=(t,i,e)=>{if(!i.has(t))throw TypeError("Cannot "+e)};var a=(t,i,e)=>(A(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)},h=(t,i,e,s)=>(A(t,i,"write to private field"),s?s.call(t,e):i.set(t,e),e);const p=require("./easings-DsS5-Kqc.cjs"),w=require("./math-GDWEqu7y.cjs"),l=require("./polyfills-CM4SCDTt.cjs"),C=require("./Animation-BInSRYNr.cjs");var n,r;class S extends C.Animation{constructor(e,s){super(e||0,s);u(this,n,p.linear);u(this,r,1e3);this.updateOptions(g(d({},s),{equalize:!0}))}updateOptions(e){super.updateOptions(e),h(this,n,l.nullishCoalescing(e==null?void 0:e.easing,a(this,n))),h(this,r,l.nullishCoalescing(e==null?void 0:e.duration,a(this,r)))}handleAnimationFrame(e){const s=e.timeElapsedSinceSubscription/1e3/(a(this,r)/1e3),q=a(this,n).call(this,w.clamp(s,0,1));this.current=l.preciseNumber(this.from+(this.target-this.from)*q,6),s>1&&this.unlistenAnimationFrame()}start(){this.unlistenAnimationFrame(),this.listenAnimationFrame()}}n=new WeakMap,r=new WeakMap;exports.Tweened=S;
@@ -1 +1 @@
1
- "use strict";var W=(e,s,o)=>{if(!s.has(e))throw TypeError("Cannot "+o)};var i=(e,s,o)=>(W(e,s,"read from private field"),o?o.call(e):s.get(e)),n=(e,s,o)=>{if(s.has(e))throw TypeError("Cannot add the same private member more than once");s instanceof WeakSet?s.add(e):s.set(e,o)},t=(e,s,o,v)=>(W(e,s,"write to private field"),v?v.call(e,o):s.set(e,o),o);const k=require("./order/index.cjs"),z=require("./window-resizer/index.cjs"),A=require("./browser-CpzFX2xg.cjs"),T=require("detect-gpu"),q=require("./Store-CIs_NjhF.cjs");var r,l,m,c,g,u,w,x,d;class I{constructor(){n(this,r,void 0);n(this,l,void 0);n(this,m,void 0);n(this,c,void 0);n(this,g,void 0);n(this,u,void 0);n(this,w,void 0);n(this,x,void 0);n(this,d,void 0);var s,o;if(t(this,r,"unknown"),t(this,l,"unknown"),t(this,m,0),t(this,c,null),t(this,g,!1),t(this,u,!1),t(this,w,!1),t(this,x,!1),t(this,d,!1),this.resize=()=>{t(this,g,/Mobi|Android/i.test(navigator.userAgent)),t(this,u,"ontouchstart"in window||navigator.maxTouchPoints>0),setTimeout(()=>{t(this,u,"ontouchstart"in window||navigator.maxTouchPoints>0)},0)},A.isBrowser){t(this,c,T.getGPUTier()),i(this,c).then(a=>{t(this,l,a.gpu||"unknown"),t(this,m,a.tier)}),this.resize(),z.windowResizer.subscribe(this.resize,k.RESIZE_ORDER.DEVICE);{const a=document.createElement("canvas"),P=a.getContext("webgl")||a.getContext("experimental-webgl");t(this,w,P&&P instanceof WebGLRenderingContext||!1)}{const a=document.createElement("canvas");a.getContext("2d")&&t(this,x,a.toDataURL("image/webp").indexOf("data:image/webp")==0)}const v=window.navigator.userAgent,E=((o=(s=window.navigator)==null?void 0:s.userAgentData)==null?void 0:o.platform)||window.navigator.platform,C=["Macintosh","MacIntel","MacPPC","Mac68K","macOS"],O=["Win32","Win64","Windows","WinCE"],R=["iPhone","iPad","iPod"];C.includes(E)?(t(this,r,"macOS"),t(this,d,!0)):R.includes(E)?(t(this,r,"iOS"),t(this,d,!0)):O.includes(E)?t(this,r,"Windows"):/Android/.test(v)?t(this,r,"Android"):/Linux/.test(E)?t(this,r,"Linux"):t(this,r,"unknown")}}get OS(){return i(this,r)}get gpu(){return i(this,l)}get gpuTier(){return i(this,m)}get gpuDetection(){return i(this,c)}get isMobile(){return i(this,g)}get isTouch(){return i(this,u)}get isWebgl(){return i(this,w)}get isWebp(){return i(this,x)}get isApple(){return i(this,d)}}r=new WeakMap,l=new WeakMap,m=new WeakMap,c=new WeakMap,g=new WeakMap,u=new WeakMap,w=new WeakMap,x=new WeakMap,d=new WeakMap;const M=new I;var D=(e=>(e.mobile="600px",e.tablet="1024px",e.notebook="1280px",e.desktop="1281px",e))(D||{}),S=(e=>(e["<=mobile"]="(max-width: 600px)",e[">=mobile"]="(min-width: 601px)",e["<=tablet"]="(max-width: 1024px)",e[">=tablet"]="(min-width: 1025px)",e["<=notebook"]="(max-width: 1280px)",e[">=notebook"]="(min-width: 1281px)",e["<=desktop"]="(max-width: 1280px)",e[">=desktop"]="(min-width: 1281px)",e))(S||{}),p,b,f,h;class L{constructor(){n(this,p,void 0);n(this,b,void 0);n(this,f,void 0);n(this,h,void 0);t(this,p,0),t(this,b,0),t(this,f,0),t(this,h,new q.Store(void 0)),this.resize=()=>{t(this,p,document.documentElement.clientWidth),t(this,b,innerHeight),t(this,f,devicePixelRatio),matchMedia("(max-width: 600px)").matches?i(this,h).current="mobile":matchMedia("(max-width: 1024px)").matches?i(this,h).current="tablet":matchMedia("(max-width: 1280px)").matches?i(this,h).current="notebook":matchMedia("(min-width: 1281px)").matches&&(i(this,h).current="desktop")},A.isBrowser&&(this.resize(),z.windowResizer.subscribe(this.resize,k.RESIZE_ORDER.DEVICE))}get width(){return i(this,p)}get height(){return i(this,b)}get type(){return i(this,h)}get pixelRatio(){return i(this,f)}}p=new WeakMap,b=new WeakMap,f=new WeakMap,h=new WeakMap;const _=new L;exports.ViewportBreakpoints=D;exports.ViewportMediaRules=S;exports.device=M;exports.viewport=_;
1
+ "use strict";var W=(e,s,o)=>{if(!s.has(e))throw TypeError("Cannot "+o)};var i=(e,s,o)=>(W(e,s,"read from private field"),o?o.call(e):s.get(e)),n=(e,s,o)=>{if(s.has(e))throw TypeError("Cannot add the same private member more than once");s instanceof WeakSet?s.add(e):s.set(e,o)},t=(e,s,o,v)=>(W(e,s,"write to private field"),v?v.call(e,o):s.set(e,o),o);const k=require("./order/index.cjs"),z=require("./window-resizer/index.cjs"),A=require("./browser-CpzFX2xg.cjs"),T=require("detect-gpu"),q=require("./Store-Cr3VaD9G.cjs");var r,l,m,c,g,u,w,x,d;class I{constructor(){n(this,r,void 0);n(this,l,void 0);n(this,m,void 0);n(this,c,void 0);n(this,g,void 0);n(this,u,void 0);n(this,w,void 0);n(this,x,void 0);n(this,d,void 0);var s,o;if(t(this,r,"unknown"),t(this,l,"unknown"),t(this,m,0),t(this,c,null),t(this,g,!1),t(this,u,!1),t(this,w,!1),t(this,x,!1),t(this,d,!1),this.resize=()=>{t(this,g,/Mobi|Android/i.test(navigator.userAgent)),t(this,u,"ontouchstart"in window||navigator.maxTouchPoints>0),setTimeout(()=>{t(this,u,"ontouchstart"in window||navigator.maxTouchPoints>0)},0)},A.isBrowser){t(this,c,T.getGPUTier()),i(this,c).then(a=>{t(this,l,a.gpu||"unknown"),t(this,m,a.tier)}),this.resize(),z.windowResizer.subscribe(this.resize,k.RESIZE_ORDER.DEVICE);{const a=document.createElement("canvas"),P=a.getContext("webgl")||a.getContext("experimental-webgl");t(this,w,P&&P instanceof WebGLRenderingContext||!1)}{const a=document.createElement("canvas");a.getContext("2d")&&t(this,x,a.toDataURL("image/webp").indexOf("data:image/webp")==0)}const v=window.navigator.userAgent,E=((o=(s=window.navigator)==null?void 0:s.userAgentData)==null?void 0:o.platform)||window.navigator.platform,C=["Macintosh","MacIntel","MacPPC","Mac68K","macOS"],O=["Win32","Win64","Windows","WinCE"],R=["iPhone","iPad","iPod"];C.includes(E)?(t(this,r,"macOS"),t(this,d,!0)):R.includes(E)?(t(this,r,"iOS"),t(this,d,!0)):O.includes(E)?t(this,r,"Windows"):/Android/.test(v)?t(this,r,"Android"):/Linux/.test(E)?t(this,r,"Linux"):t(this,r,"unknown")}}get OS(){return i(this,r)}get gpu(){return i(this,l)}get gpuTier(){return i(this,m)}get gpuDetection(){return i(this,c)}get isMobile(){return i(this,g)}get isTouch(){return i(this,u)}get isWebgl(){return i(this,w)}get isWebp(){return i(this,x)}get isApple(){return i(this,d)}}r=new WeakMap,l=new WeakMap,m=new WeakMap,c=new WeakMap,g=new WeakMap,u=new WeakMap,w=new WeakMap,x=new WeakMap,d=new WeakMap;const M=new I;var D=(e=>(e.mobile="600px",e.tablet="1024px",e.notebook="1280px",e.desktop="1281px",e))(D||{}),S=(e=>(e["<=mobile"]="(max-width: 600px)",e[">=mobile"]="(min-width: 601px)",e["<=tablet"]="(max-width: 1024px)",e[">=tablet"]="(min-width: 1025px)",e["<=notebook"]="(max-width: 1280px)",e[">=notebook"]="(min-width: 1281px)",e["<=desktop"]="(max-width: 1280px)",e[">=desktop"]="(min-width: 1281px)",e))(S||{}),p,b,f,h;class L{constructor(){n(this,p,void 0);n(this,b,void 0);n(this,f,void 0);n(this,h,void 0);t(this,p,0),t(this,b,0),t(this,f,0),t(this,h,new q.Store(void 0)),this.resize=()=>{t(this,p,document.documentElement.clientWidth),t(this,b,innerHeight),t(this,f,devicePixelRatio),matchMedia("(max-width: 600px)").matches?i(this,h).current="mobile":matchMedia("(max-width: 1024px)").matches?i(this,h).current="tablet":matchMedia("(max-width: 1280px)").matches?i(this,h).current="notebook":matchMedia("(min-width: 1281px)").matches&&(i(this,h).current="desktop")},A.isBrowser&&(this.resize(),z.windowResizer.subscribe(this.resize,k.RESIZE_ORDER.DEVICE))}get width(){return i(this,p)}get height(){return i(this,b)}get type(){return i(this,h)}get pixelRatio(){return i(this,f)}}p=new WeakMap,b=new WeakMap,f=new WeakMap,h=new WeakMap;const _=new L;exports.ViewportBreakpoints=D;exports.ViewportMediaRules=S;exports.device=M;exports.viewport=_;
@@ -11,7 +11,7 @@ import { RESIZE_ORDER as k } from "./order/index.js";
11
11
  import { windowResizer as A } from "./window-resizer/index.js";
12
12
  import { i as C } from "./browser-0zX67oeU.js";
13
13
  import { getGPUTier as z } from "detect-gpu";
14
- import { S as O } from "./Store-Dqcu1DnE.js";
14
+ import { S as O } from "./Store-Qr3SNOSf.js";
15
15
  var h, d, l, c, g, m, p, x, u;
16
16
  class I {
17
17
  constructor() {
@@ -11,9 +11,9 @@ var n = (i, t, s) => (D(i, t, "access private method"), s);
11
11
  import { CustomElement as V, define as X } from "../custom-element/index.js";
12
12
  import { Attribute as F } from "../attribute/index.js";
13
13
  import { i as Y } from "../browser-0zX67oeU.js";
14
- import { a as Z } from "../dom-0S_WDL4g.js";
15
- import { a as j, d as ee } from "../events-C_coq1Mk.js";
16
- import { a as te } from "../style-CklEF62D.js";
14
+ import { g as Z } from "../dom-P5QbAASX.js";
15
+ import { d as j, a as ee } from "../events-CJTUMSLU.js";
16
+ import { g as te } from "../style-j2TwriJ_.js";
17
17
  var ie = Object.defineProperty, se = Object.getOwnPropertyDescriptor, re = (i, t, s, o) => {
18
18
  for (var E = o > 1 ? void 0 : o ? se(t, s) : t, R = i.length - 1, P; R >= 0; R--)
19
19
  (P = i[R]) && (E = (o ? P(t, s, E) : P(E)) || E);
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../Animation-DBfrekcV.cjs"),n=require("../Damped-DmcKRSST.cjs"),i=require("../Tweened-5Bj7ht3x.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-BInSRYNr.cjs"),n=require("../Damped-Da3EnNN4.cjs"),i=require("../Tweened-DksN-Rz6.cjs");exports.Animation=e.Animation;exports.Damped=n.Damped;exports.Tweened=i.Tweened;
@@ -1,6 +1,6 @@
1
- import { A as r } from "../Animation-CwgyQH5y.js";
2
- import { D as m } from "../Damped-vepIw9Ku.js";
3
- import { T as t } from "../Tweened-DPi9pZ8Q.js";
1
+ import { A as r } from "../Animation-uimN7sdT.js";
2
+ import { D as m } from "../Damped-yrNXlkDE.js";
3
+ import { T as t } from "../Tweened-CjgvoOwL.js";
4
4
  export {
5
5
  r as Animation,
6
6
  m as Damped,
@@ -1 +1 @@
1
- "use strict";var v=(t,s,e)=>{if(!s.has(t))throw TypeError("Cannot "+e)};var r=(t,s,e)=>(v(t,s,"read from private field"),e?e.call(t):s.get(t)),c=(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,a)=>(v(t,s,"write to private field"),a?a.call(t,e):s.set(t,e),e);var d=(t,s,e)=>(v(t,s,"access private method"),e);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const A=require("../Store-CIs_NjhF.cjs"),S=require("../attributes-Bf2svn4j.cjs"),q=require("../browser-CpzFX2xg.cjs"),p=require("../dom-JBOkFLTh.cjs");var i,u,n,b,o,m;class w extends A.Store{constructor(e,a,y,l){super(y,l);c(this,o);c(this,i,null);c(this,u,void 0);c(this,n,null);c(this,b,!1);h(this,u,a),q.isBrowser&&(h(this,i,p.getElement(e)),h(this,n,new MutationObserver(f=>{f.forEach(g=>{g.type==="attributes"&&g.attributeName===r(this,u)&&d(this,o,m).call(this)})})),l!=null&&l.sync&&this.subscribe(f=>{r(this,i).setAttribute(r(this,u),f.current.toString())}))}subscribe(e){return this.subscribers.size||this.observe(),super.subscribe(e)}unsubscribe(e){super.unsubscribe(e),this.subscribers.size||this.unobserve()}observe(){r(this,b)||(h(this,b,!0),r(this,n).observe(r(this,i),{attributes:!0}),d(this,o,m).call(this))}unobserve(){r(this,b)&&(h(this,b,!1),r(this,n).disconnect())}close(){super.close(),this.unobserve()}}i=new WeakMap,u=new WeakMap,n=new WeakMap,b=new WeakMap,o=new WeakSet,m=function(){const e=r(this,i).getAttribute(r(this,u));e!=null&&(this.current=S.parseAttributeValue(e))};exports.Attribute=w;
1
+ "use strict";var v=(t,s,e)=>{if(!s.has(t))throw TypeError("Cannot "+e)};var r=(t,s,e)=>(v(t,s,"read from private field"),e?e.call(t):s.get(t)),c=(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,a)=>(v(t,s,"write to private field"),a?a.call(t,e):s.set(t,e),e);var d=(t,s,e)=>(v(t,s,"access private method"),e);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const A=require("../Store-Cr3VaD9G.cjs"),S=require("../attributes-Bf2svn4j.cjs"),q=require("../browser-CpzFX2xg.cjs"),p=require("../dom-JBOkFLTh.cjs");var i,u,n,b,o,m;class w extends A.Store{constructor(e,a,y,l){super(y,l);c(this,o);c(this,i,null);c(this,u,void 0);c(this,n,null);c(this,b,!1);h(this,u,a),q.isBrowser&&(h(this,i,p.getElement(e)),h(this,n,new MutationObserver(f=>{f.forEach(g=>{g.type==="attributes"&&g.attributeName===r(this,u)&&d(this,o,m).call(this)})})),l!=null&&l.sync&&this.subscribe(f=>{r(this,i).setAttribute(r(this,u),f.current.toString())}))}subscribe(e){return this.subscribers.size||this.observe(),super.subscribe(e)}unsubscribe(e){super.unsubscribe(e),this.subscribers.size||this.unobserve()}observe(){r(this,b)||(h(this,b,!0),r(this,n).observe(r(this,i),{attributes:!0}),d(this,o,m).call(this))}unobserve(){r(this,b)&&(h(this,b,!1),r(this,n).disconnect())}close(){super.close(),this.unobserve()}}i=new WeakMap,u=new WeakMap,n=new WeakMap,b=new WeakMap,o=new WeakSet,m=function(){const e=r(this,i).getAttribute(r(this,u));e!=null&&(this.current=S.parseAttributeValue(e))};exports.Attribute=w;
@@ -6,22 +6,22 @@ var r = (t, e, s) => (m(t, e, "read from private field"), s ? s.call(t) : e.get(
6
6
  if (e.has(t))
7
7
  throw TypeError("Cannot add the same private member more than once");
8
8
  e instanceof WeakSet ? e.add(t) : e.set(t, s);
9
- }, c = (t, e, s, o) => (m(t, e, "write to private field"), o ? o.call(t, s) : e.set(t, s), s);
9
+ }, a = (t, e, s, o) => (m(t, e, "write to private field"), o ? o.call(t, s) : e.set(t, s), s);
10
10
  var v = (t, e, s) => (m(t, e, "access private method"), s);
11
- import { S as A } from "../Store-Dqcu1DnE.js";
11
+ import { S as g } from "../Store-Qr3SNOSf.js";
12
12
  import { p as y } from "../attributes-69we3byR.js";
13
13
  import { i as S } from "../browser-0zX67oeU.js";
14
- import { g as w } from "../dom-0S_WDL4g.js";
15
- var i, u, a, b, n, p;
16
- class M extends A {
17
- constructor(s, o, g, f) {
18
- super(g, f);
14
+ import { a as w } from "../dom-P5QbAASX.js";
15
+ var i, u, c, b, n, p;
16
+ class M extends g {
17
+ constructor(s, o, A, f) {
18
+ super(A, f);
19
19
  h(this, n);
20
20
  h(this, i, null);
21
21
  h(this, u, void 0);
22
- h(this, a, null);
22
+ h(this, c, null);
23
23
  h(this, b, !1);
24
- c(this, u, o), S && (c(this, i, w(s)), c(this, a, new MutationObserver((l) => {
24
+ a(this, u, o), S && (a(this, i, w(s)), a(this, c, new MutationObserver((l) => {
25
25
  l.forEach((d) => {
26
26
  d.type === "attributes" && d.attributeName === r(this, u) && v(this, n, p).call(this);
27
27
  });
@@ -36,18 +36,18 @@ class M extends A {
36
36
  super.unsubscribe(s), this.subscribers.size || this.unobserve();
37
37
  }
38
38
  observe() {
39
- r(this, b) || (c(this, b, !0), r(this, a).observe(r(this, i), {
39
+ r(this, b) || (a(this, b, !0), r(this, c).observe(r(this, i), {
40
40
  attributes: !0
41
41
  }), v(this, n, p).call(this));
42
42
  }
43
43
  unobserve() {
44
- r(this, b) && (c(this, b, !1), r(this, a).disconnect());
44
+ r(this, b) && (a(this, b, !1), r(this, c).disconnect());
45
45
  }
46
46
  close() {
47
47
  super.close(), this.unobserve();
48
48
  }
49
49
  }
50
- i = new WeakMap(), u = new WeakMap(), a = new WeakMap(), b = new WeakMap(), n = new WeakSet(), p = function() {
50
+ i = new WeakMap(), u = new WeakMap(), c = new WeakMap(), b = new WeakMap(), n = new WeakSet(), p = function() {
51
51
  const s = r(this, i).getAttribute(r(this, u));
52
52
  s != null && (this.current = y(s));
53
53
  };
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const F=require("../css-property/index.cjs"),q=require("../custom-element/index.cjs");require("../Store-CIs_NjhF.cjs");const B=require("../math-GDWEqu7y.cjs"),M=require("../tags-yvEoM921.cjs"),T=require("../createStylesheet-BX1RVTfW.cjs"),P=require("../element-resizer/index.cjs"),g=require("../ticker/index.cjs");var A=Object.defineProperty,D=Object.getOwnPropertyDescriptor,L=(i,e,s,u)=>{for(var a=u>1?void 0:u?D(e,s):e,E=i.length-1,R;E>=0;E--)(R=i[E])&&(a=(u?R(e,s,a):R(a))||a);return u&&a&&A(e,s,a),a},y=(i,e,s)=>{if(!e.has(i))throw TypeError("Cannot "+s)},t=(i,e,s)=>(y(i,e,"read from private field"),s?s.call(i):e.get(i)),n=(i,e,s)=>{if(e.has(i))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(i):e.set(i,s)},r=(i,e,s,u)=>(y(i,e,"write to private field"),e.set(i,s),s),o=(i,e,s)=>(y(i,e,"access private method"),s),c,h,d,l,p,v,m,w,f,S,C,z,k,_,x,W,b,O;const G=T.createStylesheet({":host, canvas":{display:"block",width:"100%",height:"100%"}});exports.CanvasElement=class extends q.CustomElement{constructor(){super(),n(this,f),n(this,C),n(this,x),n(this,b),n(this,c,new F.CSSProperty(this,"--fps",0)),n(this,h,null),n(this,d,null),n(this,l,0),n(this,p,0),n(this,v,1),n(this,m,0),n(this,w,1),n(this,k,e=>{r(this,v,B.clamp(devicePixelRatio,1,2)),r(this,l,e.contentRect.width),r(this,p,e.contentRect.height),t(this,h).width=t(this,l)*this.pixelRatio,t(this,h).height=t(this,p)*this.pixelRatio,this.context.scale(this.pixelRatio,this.pixelRatio),o(this,b,O).call(this),o(this,x,W).call(this)}),n(this,_,e=>{r(this,m,e.timestamp),r(this,w,e.timeBetweenFrames),o(this,x,W).call(this)}),this.openShadow(G),M.element(this,{children:M.canvas({ref:e=>{r(this,h,e),r(this,d,e.getContext("2d"))}})}),t(this,c).subscribe(e=>{typeof e.previous!="undefined"&&e.current!==e.previous&&o(this,f,S).call(this)})}get fpsCSSProperty(){return t(this,c)}get canvasElement(){return t(this,h)}get context(){return t(this,d)}get pixelRatio(){return t(this,v)}get width(){return t(this,l)}get height(){return t(this,p)}get detail(){return{width:t(this,l),height:t(this,p),element:this,canvasElement:t(this,h),pixelRatio:t(this,v),context:t(this,d),timestamp:t(this,m),timeBetweenFrames:t(this,w)}}connectedCallback(){t(this,c).observe(),P.elementResizer.subscribe(this,t(this,k)),o(this,f,S).call(this)}disconnectedCallback(){t(this,c).unobserve(),P.elementResizer.unsubscribe(t(this,k)),o(this,C,z).call(this)}};c=new WeakMap;h=new WeakMap;d=new WeakMap;l=new WeakMap;p=new WeakMap;v=new WeakMap;m=new WeakMap;w=new WeakMap;f=new WeakSet;S=function(){g.ticker.unsubscribe(t(this,_)),this.hasAttribute("static")||g.ticker.subscribe(t(this,_),{culling:this,maxFPS:t(this,c).current})};C=new WeakSet;z=function(){g.ticker.unsubscribe(t(this,_))};k=new WeakMap;_=new WeakMap;x=new WeakSet;W=function(){this.dispatchEvent(new CustomEvent("canvasRender",{composed:!0,detail:this.detail}))};b=new WeakSet;O=function(){this.dispatchEvent(new CustomEvent("canvasResize",{composed:!0,detail:this.detail}))};exports.CanvasElement=L([q.define("e-canvas")],exports.CanvasElement);
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const F=require("../css-property/index.cjs"),q=require("../custom-element/index.cjs");require("../Store-Cr3VaD9G.cjs");const B=require("../math-GDWEqu7y.cjs"),M=require("../tags-CAfasCGV.cjs"),T=require("../createStylesheet-BsMSWX0q.cjs"),P=require("../element-resizer/index.cjs"),g=require("../ticker/index.cjs");var A=Object.defineProperty,D=Object.getOwnPropertyDescriptor,L=(i,e,s,u)=>{for(var a=u>1?void 0:u?D(e,s):e,E=i.length-1,R;E>=0;E--)(R=i[E])&&(a=(u?R(e,s,a):R(a))||a);return u&&a&&A(e,s,a),a},y=(i,e,s)=>{if(!e.has(i))throw TypeError("Cannot "+s)},t=(i,e,s)=>(y(i,e,"read from private field"),s?s.call(i):e.get(i)),n=(i,e,s)=>{if(e.has(i))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(i):e.set(i,s)},r=(i,e,s,u)=>(y(i,e,"write to private field"),e.set(i,s),s),o=(i,e,s)=>(y(i,e,"access private method"),s),c,h,d,l,p,v,m,w,f,S,C,z,k,_,x,W,b,O;const G=T.createStylesheet({":host, canvas":{display:"block",width:"100%",height:"100%"}});exports.CanvasElement=class extends q.CustomElement{constructor(){super(),n(this,f),n(this,C),n(this,x),n(this,b),n(this,c,new F.CSSProperty(this,"--fps",0)),n(this,h,null),n(this,d,null),n(this,l,0),n(this,p,0),n(this,v,1),n(this,m,0),n(this,w,1),n(this,k,e=>{r(this,v,B.clamp(devicePixelRatio,1,2)),r(this,l,e.contentRect.width),r(this,p,e.contentRect.height),t(this,h).width=t(this,l)*this.pixelRatio,t(this,h).height=t(this,p)*this.pixelRatio,this.context.scale(this.pixelRatio,this.pixelRatio),o(this,b,O).call(this),o(this,x,W).call(this)}),n(this,_,e=>{r(this,m,e.timestamp),r(this,w,e.timeBetweenFrames),o(this,x,W).call(this)}),this.openShadow(G),M.element(this,{children:M.canvas({ref:e=>{r(this,h,e),r(this,d,e.getContext("2d"))}})}),t(this,c).subscribe(e=>{typeof e.previous!="undefined"&&e.current!==e.previous&&o(this,f,S).call(this)})}get fpsCSSProperty(){return t(this,c)}get canvasElement(){return t(this,h)}get context(){return t(this,d)}get pixelRatio(){return t(this,v)}get width(){return t(this,l)}get height(){return t(this,p)}get detail(){return{width:t(this,l),height:t(this,p),element:this,canvasElement:t(this,h),pixelRatio:t(this,v),context:t(this,d),timestamp:t(this,m),timeBetweenFrames:t(this,w)}}connectedCallback(){t(this,c).observe(),P.elementResizer.subscribe(this,t(this,k)),o(this,f,S).call(this)}disconnectedCallback(){t(this,c).unobserve(),P.elementResizer.unsubscribe(t(this,k)),o(this,C,z).call(this)}};c=new WeakMap;h=new WeakMap;d=new WeakMap;l=new WeakMap;p=new WeakMap;v=new WeakMap;m=new WeakMap;w=new WeakMap;f=new WeakSet;S=function(){g.ticker.unsubscribe(t(this,_)),this.hasAttribute("static")||g.ticker.subscribe(t(this,_),{culling:this,maxFPS:t(this,c).current})};C=new WeakSet;z=function(){g.ticker.unsubscribe(t(this,_))};k=new WeakMap;_=new WeakMap;x=new WeakSet;W=function(){this.dispatchEvent(new CustomEvent("canvasRender",{composed:!0,detail:this.detail}))};b=new WeakSet;O=function(){this.dispatchEvent(new CustomEvent("canvasResize",{composed:!0,detail:this.detail}))};exports.CanvasElement=L([q.define("e-canvas")],exports.CanvasElement);
@@ -1,9 +1,9 @@
1
1
  import { CSSProperty as O } from "../css-property/index.js";
2
2
  import { CustomElement as B, define as A } from "../custom-element/index.js";
3
- import "../Store-Dqcu1DnE.js";
3
+ import "../Store-Qr3SNOSf.js";
4
4
  import { c as D } from "../math-BOBiC4TN.js";
5
- import { e as L, q as T } from "../tags-C-6uXIAT.js";
6
- import { c as q } from "../createStylesheet-CgWN4UhW.js";
5
+ import { e as L, q as T } from "../tags-D9lNDPX8.js";
6
+ import { c as q } from "../createStylesheet-BxKITIVV.js";
7
7
  import { elementResizer as y } from "../element-resizer/index.js";
8
8
  import { ticker as E } from "../ticker/index.js";
9
9
  var G = Object.defineProperty, H = Object.getOwnPropertyDescriptor, I = (t, i, s, d) => {
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const m=require("../custom-element/index.cjs");require("../Store-CIs_NjhF.cjs");const r=require("../tags-yvEoM921.cjs"),_=require("../createStylesheet-BX1RVTfW.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,c)=>{for(var i=c>1?void 0:c?b(e,a):e,u=t.length-1,p;u>=0;u--)(p=t[u])&&(i=(c?p(e,a,i):p(i))||i);return c&&i&&x(e,a,i),i},k=(t,e,a)=>{if(!e.has(t))throw TypeError("Cannot "+a)},l=(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,c)=>(k(t,e,"write to private field"),e.set(t,a),a),d=(t,e,a)=>(k(t,e,"access private method"),a),s,o,h,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,h),f(this,s,null),f(this,o,void 0),this.openShadow(C),g(this,o,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")||"",d(this,h,n).call(this)},class:"real",type:"checkbox",onChange:()=>{d(this,h,n).call(this),this.dispatchEvent(new Event("change",{composed:!0}))}})]})})}get checked(){return l(this,s).checked}set checked(e){l(this,s).checked=e,d(this,h,n).call(this)}get value(){return l(this,s).value}set value(e){l(this,s).value=e,d(this,h,n).call(this)}};s=new WeakMap;o=new WeakMap;h=new WeakSet;n=function(){this.checked?l(this,o).setFormValue(this.value):l(this,o).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-Cr3VaD9G.cjs");const r=require("../tags-CAfasCGV.cjs"),_=require("../createStylesheet-BsMSWX0q.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,c)=>{for(var i=c>1?void 0:c?b(e,a):e,u=t.length-1,p;u>=0;u--)(p=t[u])&&(i=(c?p(e,a,i):p(i))||i);return c&&i&&x(e,a,i),i},k=(t,e,a)=>{if(!e.has(t))throw TypeError("Cannot "+a)},l=(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,c)=>(k(t,e,"write to private field"),e.set(t,a),a),d=(t,e,a)=>(k(t,e,"access private method"),a),s,o,h,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,h),f(this,s,null),f(this,o,void 0),this.openShadow(C),g(this,o,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")||"",d(this,h,n).call(this)},class:"real",type:"checkbox",onChange:()=>{d(this,h,n).call(this),this.dispatchEvent(new Event("change",{composed:!0}))}})]})})}get checked(){return l(this,s).checked}set checked(e){l(this,s).checked=e,d(this,h,n).call(this)}get value(){return l(this,s).value}set value(e){l(this,s).value=e,d(this,h,n).call(this)}};s=new WeakMap;o=new WeakMap;h=new WeakSet;n=function(){this.checked?l(this,o).setFormValue(this.value):l(this,o).setFormValue(null),this.classList.toggle("checked",this.checked)};exports.CheckboxElement.formAssociated=!0;exports.CheckboxElement=y([m.define("e-checkbox")],exports.CheckboxElement);
@@ -1,7 +1,7 @@
1
1
  import { CustomElement as w, define as _ } from "../custom-element/index.js";
2
- import "../Store-Dqcu1DnE.js";
3
- import { e as x, a3 as y, aB as g, ay as b, a0 as C } from "../tags-C-6uXIAT.js";
4
- import { c as A } from "../createStylesheet-CgWN4UhW.js";
2
+ import "../Store-Qr3SNOSf.js";
3
+ import { e as x, a3 as y, aB as g, ay as b, a0 as C } from "../tags-D9lNDPX8.js";
4
+ import { c as A } from "../createStylesheet-BxKITIVV.js";
5
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
7
  var S = Object.defineProperty, F = Object.getOwnPropertyDescriptor, M = (e, t, a, l) => {
@@ -1 +1 @@
1
- "use strict";var S=Object.defineProperty,m=Object.defineProperties;var f=Object.getOwnPropertyDescriptors;var u=Object.getOwnPropertySymbols;var L=Object.prototype.hasOwnProperty,T=Object.prototype.propertyIsEnumerable;var a=(s,e,t)=>e in s?S(s,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):s[e]=t,c=(s,e)=>{for(var t in e||(e={}))L.call(e,t)&&a(s,t,e[t]);if(u)for(var t of u(e))T.call(e,t)&&a(s,t,e[t]);return s},l=(s,e)=>m(s,f(e));var o=(s,e,t)=>{if(!e.has(s))throw TypeError("Cannot "+t)};var n=(s,e,t)=>(o(s,e,"read from private field"),t?t.call(s):e.get(s)),h=(s,e,t)=>{if(e.has(s))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(s):e.set(s,t)},d=(s,e,t,r)=>(o(s,e,"write to private field"),r?r.call(s,t):e.set(s,t),t);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const g=require("../Store-CIs_NjhF.cjs"),b=require("../string-DhgS_iFl.cjs");var i;class p extends g.Store{constructor(t,r){super(r);h(this,i,void 0);d(this,i,t)}isTrue(t){return this.current[t]===!0}isFalse(t){return this.current[t]===!1}reset(){super.reset();for(const t in this.initial)this.set(t,this.initial[t])}set(t,r=!0){this.current=l(c({},this.current),{[t]:r}),r?n(this,i).classList.add(b.camelToKebab(t)):n(this,i).classList.remove(b.camelToKebab(t))}}i=new WeakMap;exports.ClassLinkedStatus=p;
1
+ "use strict";var S=Object.defineProperty,m=Object.defineProperties;var f=Object.getOwnPropertyDescriptors;var u=Object.getOwnPropertySymbols;var L=Object.prototype.hasOwnProperty,T=Object.prototype.propertyIsEnumerable;var a=(s,e,t)=>e in s?S(s,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):s[e]=t,c=(s,e)=>{for(var t in e||(e={}))L.call(e,t)&&a(s,t,e[t]);if(u)for(var t of u(e))T.call(e,t)&&a(s,t,e[t]);return s},l=(s,e)=>m(s,f(e));var o=(s,e,t)=>{if(!e.has(s))throw TypeError("Cannot "+t)};var n=(s,e,t)=>(o(s,e,"read from private field"),t?t.call(s):e.get(s)),h=(s,e,t)=>{if(e.has(s))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(s):e.set(s,t)},d=(s,e,t,r)=>(o(s,e,"write to private field"),r?r.call(s,t):e.set(s,t),t);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const g=require("../Store-Cr3VaD9G.cjs"),b=require("../string-DhgS_iFl.cjs");var i;class p extends g.Store{constructor(t,r){super(r);h(this,i,void 0);d(this,i,t)}isTrue(t){return this.current[t]===!0}isFalse(t){return this.current[t]===!1}reset(){super.reset();for(const t in this.initial)this.set(t,this.initial[t])}set(t,r=!0){this.current=l(c({},this.current),{[t]:r}),r?n(this,i).classList.add(b.camelToKebab(t)):n(this,i).classList.remove(b.camelToKebab(t))}}i=new WeakMap;exports.ClassLinkedStatus=p;
@@ -19,7 +19,7 @@ var n = (e, t, s) => (h(e, t, "read from private field"), s ? s.call(e) : t.get(
19
19
  throw TypeError("Cannot add the same private member more than once");
20
20
  t instanceof WeakSet ? t.add(e) : t.set(e, s);
21
21
  }, m = (e, t, s, r) => (h(e, t, "write to private field"), r ? r.call(e, s) : t.set(e, s), s);
22
- import { S as x } from "../Store-Dqcu1DnE.js";
22
+ import { S as x } from "../Store-Qr3SNOSf.js";
23
23
  import { c as f } from "../string-f0Dnk0L1.js";
24
24
  var i;
25
25
  class K extends x {
@@ -1 +1 @@
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-CIs_NjhF.cjs");const G=require("../easings-DsS5-Kqc.cjs"),J=require("../Tweened-5Bj7ht3x.cjs"),Z=require("../gestures-DHLrn6Q8.cjs"),$=require("../polyfills-CM4SCDTt.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;
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-Cr3VaD9G.cjs");const G=require("../easings-DsS5-Kqc.cjs"),J=require("../Tweened-DksN-Rz6.cjs"),Z=require("../gestures-DHLrn6Q8.cjs"),$=require("../polyfills-CM4SCDTt.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;
@@ -10,11 +10,11 @@ var t = (a, n, e) => (S(a, n, "read from private field"), e ? e.call(a) : n.get(
10
10
  var L = (a, n, e) => (S(a, n, "access private method"), e);
11
11
  import { Notifier as j } from "../notifier/index.js";
12
12
  import { i as m } from "../browser-0zX67oeU.js";
13
- import { g as Q } from "../dom-0S_WDL4g.js";
13
+ import { a as Q } from "../dom-P5QbAASX.js";
14
14
  import { ticker as M } from "../ticker/index.js";
15
- import "../Store-Dqcu1DnE.js";
15
+ import "../Store-Qr3SNOSf.js";
16
16
  import { e as G } from "../easings-BKi40vHz.js";
17
- import { T as J } from "../Tweened-DPi9pZ8Q.js";
17
+ import { T as J } from "../Tweened-CjgvoOwL.js";
18
18
  import { s as Z } from "../gestures-D2Fdra_G.js";
19
19
  import { p as $ } from "../polyfills-X6KXuHg-.js";
20
20
  import { TICK_ORDER as p } from "../order/index.js";
@@ -1 +1 @@
1
- "use strict";const n=require("./tags-yvEoM921.cjs");function r(t){const e=new CSSStyleSheet;return e.replaceSync(n.style(t).node.innerHTML),e}exports.createStylesheet=r;
1
+ "use strict";const n=require("./tags-CAfasCGV.cjs");function r(t){const e=new CSSStyleSheet;return e.replaceSync(n.style(t).node.innerHTML),e}exports.createStylesheet=r;
@@ -1,4 +1,4 @@
1
- import { aD as n } from "./tags-C-6uXIAT.js";
1
+ import { aD as n } from "./tags-D9lNDPX8.js";
2
2
  function c(t) {
3
3
  const e = new CSSStyleSheet();
4
4
  return e.replaceSync(n(t).node.innerHTML), e;