aptechka 0.42.5 → 0.42.6

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.
@@ -1 +1 @@
1
- "use strict";var V=h=>{throw TypeError(h)};var F=(h,n,e)=>n.has(h)||V("Cannot "+e);var t=(h,n,e)=>(F(h,n,"read from private field"),e?e.call(h):n.get(h)),s=(h,n,e)=>n.has(h)?V("Cannot add the same private member more than once"):n instanceof WeakSet?n.add(h):n.set(h,e),i=(h,n,e,r)=>(F(h,n,"write to private field"),r?r.call(h,e):n.set(h,e),e),k=(h,n,e)=>(F(h,n,"access private method"),e);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const G=require("../notifier/index.cjs"),m=require("../browser-CpzFX2xg.cjs"),Q=require("../dom-JBOkFLTh.cjs"),q=require("../ticker/index.cjs");require("../Store-C2J4Q87x.cjs");const J=require("../easings-GegIwET5.cjs"),Z=require("../Tweened-Dn6CMA-p.cjs"),$=require("../gestures-DHLrn6Q8.cjs"),_=require("../polyfills-BANSrI_m.cjs"),p=require("../order/index.cjs");var R;class Y{constructor(){s(this,R,new G.Notifier)}get changeEvent(){return t(this,R)}}R=new WeakMap;var b,c,u,H;class ee extends Y{constructor(e){super();s(this,b,null);s(this,c,null);s(this,u,"offsetHeight");s(this,H,e=>{const r=e.shiftKey?-1:1;let a;e.code==="Space"?a=r*t(this,c)[t(this,u)]*.4:e.code==="ArrowLeft"?a=-1*t(this,c)[t(this,u)]*.2:e.code==="ArrowRight"?a=1*t(this,c)[t(this,u)]*.2:e.code==="ArrowUp"?a=-1*t(this,c)[t(this,u)]*.2:e.code==="ArrowDown"?a=1*t(this,c)[t(this,u)]*.2:e.code==="PageUp"?a=-1*t(this,c)[t(this,u)]:e.code==="PageDown"?a=1*t(this,c)[t(this,u)]:e.code==="Home"?a=0:e.code==="End"&&(a=t(this,u)==="offsetWidth"?t(this,c).scrollWidth:t(this,c).scrollHeight),a&&(e.stopPropagation(),this.changeEvent.notify("keyboard",a))});m.isBrowser&&(i(this,b,e!=null&&e.element&&Q.getElement(e.element)||window),i(this,c,t(this,b)instanceof HTMLElement?t(this,b):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,b).addEventListener("keydown",t(this,H))}disconnect(){m.isBrowser&&t(this,b).removeEventListener("keydown",t(this,H))}}b=new WeakMap,c=new WeakMap,u=new WeakMap,H=new WeakMap;var g,x,P,z,d,T,f,w,O,U,C,W,B;class te extends Y{constructor(e){super();s(this,w);s(this,g);s(this,x);s(this,P);s(this,z);s(this,d);s(this,T);s(this,f);s(this,C);s(this,W);s(this,B);this.direction=1,i(this,d,new Z.Tweened(0,{easing:J.easeInQuad})),i(this,f,!1),i(this,C,r=>{t(this,d).current!==1&&this.changeEvent.notify("autoplay",r.timeBetweenFrames*t(this,g)*this.direction*(1-t(this,d).current))}),i(this,W,()=>{t(this,d).current!==1&&this.changeEvent.notify("autoplay",Math.sign(t(this,g))*this.direction*(1-t(this,d).current))}),i(this,B,()=>{t(this,x)&&(document.hidden?t(this,d).set(1,{equalize:!0}):t(this,d).set(0,{equalize:!0}))}),i(this,g,(e==null?void 0:e.speed)||1),i(this,x,(e==null?void 0:e.interval)||!1),i(this,P,e)}set interval(e){i(this,x,e),t(this,f)&&k(this,w,O).call(this)}set speed(e){i(this,g,e),t(this,f)&&k(this,w,O).call(this)}connect(){t(this,f)||(i(this,f,!0),k(this,w,O).call(this))}disconnect(){t(this,f)&&(i(this,f,!1),k(this,w,U).call(this))}pauseAndContinue(e,r){t(this,f)&&e&&(clearTimeout(t(this,T)),t(this,d).set(1,{duration:Math.min(e,1e3),equalize:r}),i(this,T,setTimeout(()=>{t(this,d).set(0,{duration:Math.min(e,5e3),equalize:r})},e)))}}g=new WeakMap,x=new WeakMap,P=new WeakMap,z=new WeakMap,d=new WeakMap,T=new WeakMap,f=new WeakMap,w=new WeakSet,O=function(){k(this,w,U).call(this),t(this,x)?i(this,z,setInterval(t(this,W),Math.abs(t(this,g)))):q.ticker.subscribe(t(this,C),t(this,P)),document.addEventListener("visibilitychange",t(this,B))},U=function(){clearInterval(t(this,z)),q.ticker.unsubscribe(t(this,C)),clearTimeout(t(this,T)),t(this,d).close(),document.removeEventListener("visibilitychange",t(this,B))},C=new WeakMap,W=new WeakMap,B=new WeakMap;var A,v,D,X;class ie extends Y{constructor(e){super();s(this,A,null);s(this,v);s(this,D);s(this,X,e=>{let r=0;if(!(this.axis==="x"&&Math.abs(e.deltaY)>Math.abs(e.deltaX)*1||this.axis==="y"&&Math.abs(e.deltaX)>Math.abs(e.deltaY)*1))if(e.preventDefault(),r=(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 a=Date.now();if(a-t(this,D)>40&&(r=100*Math.sign(r)),i(this,D,a),Math.abs(r)<100||t(this,v))return;this.changeEvent.notify("wheel",r),i(this,v,setTimeout(()=>{i(this,v,void 0)},80))}else this.changeEvent.notify("wheel",r)});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,D,Date.now()),m.isBrowser&&i(this,A,e!=null&&e.element&&Q.getElement(e.element)||window)}connect(){m.isBrowser&&t(this,A).addEventListener("wheel",t(this,X),{passive:!1})}disconnect(){m.isBrowser&&(t(this,A).removeEventListener("wheel",t(this,X)),clearTimeout(t(this,v)))}}A=new WeakMap,v=new WeakMap,D=new WeakMap,X=new WeakMap;var M,o,l,I,y;const E=class E extends Y{constructor(e){super();s(this,o);s(this,l);s(this,I);s(this,y);this.inertion=1,i(this,o,null),i(this,l,0),i(this,I,r=>{if(r.composedPath().find(L=>L instanceof HTMLElement&&L.hasAttribute("drag-dead-zone")))return;this.swipe||q.ticker.unsubscribe(t(this,y));let a=r,S=!1;i(this,l,0),document.documentElement.classList.add("grabbing");let K=0,N=0;$.setupDrag(L=>{t(E,M)&&t(E,M)!==t(this,o)||(K=a.x-L.x,N=a.y-L.y,this.axis==="x"?i(this,l,K):i(this,l,N),a=L,S=this.axis==="x"&&Math.abs(K)>Math.abs(N)||this.axis==="y"&&Math.abs(N)>Math.abs(K),S&&(i(E,M,t(this,o)),this.changeEvent.notify("drag",t(this,l))))},()=>{i(E,M,null),S&&!this.swipe&&this.inertion?(i(this,l,t(this,l)*this.inertion),q.ticker.subscribe(t(this,y),{order:p.TICK_ORDER.CONTROLS-1})):this.swipe&&this.changeEvent.notify("drag-end",t(this,l)),document.documentElement.classList.remove("grabbing")})}),i(this,y,()=>{Math.floor(Math.abs(t(this,l)))||q.ticker.unsubscribe(t(this,y)),i(this,l,t(this,l)*.95),i(this,l,_.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,m.isBrowser&&i(this,o,e!=null&&e.element&&Q.getElement(e.element)||document.documentElement)}connect(){m.isBrowser&&t(this,o).addEventListener("pointerdown",t(this,I))}disconnect(){m.isBrowser&&(t(this,o).removeEventListener("pointerdown",t(this,I)),q.ticker.unsubscribe(t(this,y)))}};M=new WeakMap,o=new WeakMap,l=new WeakMap,I=new WeakMap,y=new WeakMap,s(E,M,null);let j=E;exports.AutoplayControls=te;exports.Controls=Y;exports.DragControls=j;exports.KeyboardControls=ee;exports.WheelControls=ie;
1
+ "use strict";var V=h=>{throw TypeError(h)};var F=(h,n,e)=>n.has(h)||V("Cannot "+e);var t=(h,n,e)=>(F(h,n,"read from private field"),e?e.call(h):n.get(h)),s=(h,n,e)=>n.has(h)?V("Cannot add the same private member more than once"):n instanceof WeakSet?n.add(h):n.set(h,e),i=(h,n,e,r)=>(F(h,n,"write to private field"),r?r.call(h,e):n.set(h,e),e),k=(h,n,e)=>(F(h,n,"access private method"),e);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const G=require("../notifier/index.cjs"),o=require("../browser-CpzFX2xg.cjs"),Q=require("../dom-JBOkFLTh.cjs"),q=require("../ticker/index.cjs");require("../Store-C2J4Q87x.cjs");const J=require("../easings-GegIwET5.cjs"),Z=require("../Tweened-Dn6CMA-p.cjs"),$=require("../gestures-DHLrn6Q8.cjs"),_=require("../polyfills-BANSrI_m.cjs"),p=require("../order/index.cjs");var R;class Y{constructor(){s(this,R,new G.Notifier)}get changeEvent(){return t(this,R)}}R=new WeakMap;var g,c,u,H;class ee extends Y{constructor(e){super();s(this,g,null);s(this,c,null);s(this,u,"offsetHeight");s(this,H,e=>{const r=e.shiftKey?-1:1;let a;e.code==="Space"?a=r*t(this,c)[t(this,u)]*.4:e.code==="ArrowLeft"?a=-1*t(this,c)[t(this,u)]*.2:e.code==="ArrowRight"?a=1*t(this,c)[t(this,u)]*.2:e.code==="ArrowUp"?a=-1*t(this,c)[t(this,u)]*.2:e.code==="ArrowDown"?a=1*t(this,c)[t(this,u)]*.2:e.code==="PageUp"?a=-1*t(this,c)[t(this,u)]:e.code==="PageDown"?a=1*t(this,c)[t(this,u)]:e.code==="Home"?a=0:e.code==="End"&&(a=t(this,u)==="offsetWidth"?t(this,c).scrollWidth:t(this,c).scrollHeight),a&&(e.stopPropagation(),this.changeEvent.notify("keyboard",a))});o.isBrowser&&(i(this,g,e!=null&&e.element&&Q.getElement(e.element)||window),i(this,c,t(this,g)instanceof HTMLElement?t(this,g):document.documentElement),this.dimension=e==null?void 0:e.dimension)}set dimension(e){i(this,u,e==="width"?"offsetWidth":"offsetHeight")}connect(){o.isBrowser&&t(this,g).addEventListener("keydown",t(this,H))}disconnect(){o.isBrowser&&t(this,g).removeEventListener("keydown",t(this,H))}}g=new WeakMap,c=new WeakMap,u=new WeakMap,H=new WeakMap;var b,x,P,z,d,T,f,w,O,U,C,W,B;class te extends Y{constructor(e){super();s(this,w);s(this,b);s(this,x);s(this,P);s(this,z);s(this,d);s(this,T);s(this,f);s(this,C);s(this,W);s(this,B);this.direction=1,i(this,d,new Z.Tweened(0,{easing:J.easeInQuad})),i(this,f,!1),i(this,C,r=>{t(this,d).current!==1&&this.changeEvent.notify("autoplay",r.timeBetweenFrames*t(this,b)*this.direction*(1-t(this,d).current))}),i(this,W,()=>{t(this,d).current!==1&&this.changeEvent.notify("autoplay",Math.sign(t(this,b))*this.direction*(1-t(this,d).current))}),i(this,B,()=>{t(this,x)&&(document.hidden?t(this,d).set(1,{equalize:!0}):t(this,d).set(0,{equalize:!0}))}),i(this,b,(e==null?void 0:e.speed)||1),i(this,x,(e==null?void 0:e.interval)||!1),i(this,P,e)}set interval(e){i(this,x,e),t(this,f)&&k(this,w,O).call(this)}set speed(e){i(this,b,e),t(this,f)&&k(this,w,O).call(this)}connect(){t(this,f)||(i(this,f,!0),k(this,w,O).call(this))}disconnect(){t(this,f)&&(i(this,f,!1),k(this,w,U).call(this))}pauseAndContinue(e,r){t(this,f)&&e&&(clearTimeout(t(this,T)),t(this,d).set(1,{duration:Math.min(e,1e3),equalize:r}),i(this,T,setTimeout(()=>{t(this,d).set(0,{duration:Math.min(e,5e3),equalize:r})},e)))}}b=new WeakMap,x=new WeakMap,P=new WeakMap,z=new WeakMap,d=new WeakMap,T=new WeakMap,f=new WeakMap,w=new WeakSet,O=function(){k(this,w,U).call(this),t(this,x)?i(this,z,setInterval(t(this,W),Math.abs(t(this,b)))):q.ticker.subscribe(t(this,C),t(this,P)),document.addEventListener("visibilitychange",t(this,B))},U=function(){clearInterval(t(this,z)),q.ticker.unsubscribe(t(this,C)),clearTimeout(t(this,T)),t(this,d).close(),document.removeEventListener("visibilitychange",t(this,B))},C=new WeakMap,W=new WeakMap,B=new WeakMap;var A,v,D,X;class ie extends Y{constructor(e){super();s(this,A,null);s(this,v);s(this,D);s(this,X,e=>{let r=0;if(!(this.axis==="x"&&Math.abs(e.deltaY)>Math.abs(e.deltaX)*1||this.axis==="y"&&Math.abs(e.deltaX)>Math.abs(e.deltaY)*1))if(e.preventDefault(),r=(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 a=Date.now();if(a-t(this,D)>40&&(r=100*Math.sign(r)),i(this,D,a),Math.abs(r)<100||t(this,v))return;this.changeEvent.notify("wheel",r),i(this,v,setTimeout(()=>{i(this,v,void 0)},80))}else this.changeEvent.notify("wheel",r)});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,D,Date.now()),o.isBrowser&&i(this,A,e!=null&&e.element&&Q.getElement(e.element)||window)}connect(){o.isBrowser&&t(this,A).addEventListener("wheel",t(this,X),{passive:!1})}disconnect(){o.isBrowser&&(t(this,A).removeEventListener("wheel",t(this,X)),clearTimeout(t(this,v)))}}A=new WeakMap,v=new WeakMap,D=new WeakMap,X=new WeakMap;var L,m,l,I,y;const E=class E extends Y{constructor(e){super();s(this,m);s(this,l);s(this,I);s(this,y);this.inertion=1,i(this,m,null),i(this,l,0),i(this,I,r=>{if(r.composedPath().find(M=>M instanceof HTMLElement&&M.hasAttribute("drag-dead-zone")))return;this.swipe||q.ticker.unsubscribe(t(this,y));let a=r,S=!1;i(this,l,0),document.documentElement.classList.add("grabbing");let K=0,N=0;$.setupDrag(M=>{t(E,L)&&t(E,L)!==t(this,m)||(K=a.x-M.x,N=a.y-M.y,this.axis==="x"?i(this,l,K):i(this,l,N),a=M,S=this.axis==="x"&&Math.abs(K)>Math.abs(N)||this.axis==="y"&&Math.abs(N)>Math.abs(K),S&&(document.documentElement.classList.add("dragging"),i(E,L,t(this,m)),this.changeEvent.notify("drag",t(this,l))))},()=>{i(E,L,null),S&&!this.swipe&&this.inertion?(i(this,l,t(this,l)*this.inertion),q.ticker.subscribe(t(this,y),{order:p.TICK_ORDER.CONTROLS-1})):this.swipe&&this.changeEvent.notify("drag-end",t(this,l)),document.documentElement.classList.remove("grabbing"),document.documentElement.classList.remove("dragging")})}),i(this,y,()=>{Math.floor(Math.abs(t(this,l)))||q.ticker.unsubscribe(t(this,y)),i(this,l,t(this,l)*.95),i(this,l,_.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,o.isBrowser&&i(this,m,e!=null&&e.element&&Q.getElement(e.element)||document.documentElement)}connect(){o.isBrowser&&t(this,m).addEventListener("pointerdown",t(this,I))}disconnect(){o.isBrowser&&(t(this,m).removeEventListener("pointerdown",t(this,I)),q.ticker.unsubscribe(t(this,y)))}};L=new WeakMap,m=new WeakMap,l=new WeakMap,I=new WeakMap,y=new WeakMap,s(E,L,null);let j=E;exports.AutoplayControls=te;exports.Controls=Y;exports.DragControls=j;exports.KeyboardControls=ee;exports.WheelControls=ie;
@@ -23,80 +23,80 @@ class B {
23
23
  }
24
24
  }
25
25
  O = new WeakMap();
26
- var w, d, f, P;
27
- class fe extends B {
26
+ var g, d, m, P;
27
+ class me extends B {
28
28
  constructor(e) {
29
29
  super();
30
- s(this, w, null);
30
+ s(this, g, null);
31
31
  s(this, d, null);
32
- s(this, f, "offsetHeight");
32
+ s(this, m, "offsetHeight");
33
33
  s(this, P, (e) => {
34
34
  const a = e.shiftKey ? -1 : 1;
35
35
  let r;
36
- e.code === "Space" ? r = a * t(this, d)[t(this, f)] * 0.4 : e.code === "ArrowLeft" ? r = -1 * t(this, d)[t(this, f)] * 0.2 : e.code === "ArrowRight" ? r = 1 * t(this, d)[t(this, f)] * 0.2 : e.code === "ArrowUp" ? r = -1 * t(this, d)[t(this, f)] * 0.2 : e.code === "ArrowDown" ? r = 1 * t(this, d)[t(this, f)] * 0.2 : e.code === "PageUp" ? r = -1 * t(this, d)[t(this, f)] : e.code === "PageDown" ? r = 1 * t(this, d)[t(this, f)] : e.code === "Home" ? r = 0 : e.code === "End" && (r = t(this, f) === "offsetWidth" ? t(this, d).scrollWidth : t(this, d).scrollHeight), r && (e.stopPropagation(), this.changeEvent.notify("keyboard", r));
36
+ e.code === "Space" ? r = a * t(this, d)[t(this, m)] * 0.4 : e.code === "ArrowLeft" ? r = -1 * t(this, d)[t(this, m)] * 0.2 : e.code === "ArrowRight" ? r = 1 * t(this, d)[t(this, m)] * 0.2 : e.code === "ArrowUp" ? r = -1 * t(this, d)[t(this, m)] * 0.2 : e.code === "ArrowDown" ? r = 1 * t(this, d)[t(this, m)] * 0.2 : e.code === "PageUp" ? r = -1 * t(this, d)[t(this, m)] : e.code === "PageDown" ? r = 1 * t(this, d)[t(this, m)] : e.code === "Home" ? r = 0 : e.code === "End" && (r = t(this, m) === "offsetWidth" ? t(this, d).scrollWidth : t(this, d).scrollHeight), r && (e.stopPropagation(), this.changeEvent.notify("keyboard", r));
37
37
  });
38
- o && (i(this, w, e != null && e.element && Q(e.element) || window), i(this, d, t(this, w) instanceof HTMLElement ? t(this, w) : document.documentElement), this.dimension = e == null ? void 0 : e.dimension);
38
+ o && (i(this, g, e != null && e.element && Q(e.element) || window), i(this, d, t(this, g) instanceof HTMLElement ? t(this, g) : document.documentElement), this.dimension = e == null ? void 0 : e.dimension);
39
39
  }
40
40
  set dimension(e) {
41
- i(this, f, e === "width" ? "offsetWidth" : "offsetHeight");
41
+ i(this, m, e === "width" ? "offsetWidth" : "offsetHeight");
42
42
  }
43
43
  connect() {
44
- o && t(this, w).addEventListener(
44
+ o && t(this, g).addEventListener(
45
45
  "keydown",
46
46
  t(this, P)
47
47
  );
48
48
  }
49
49
  disconnect() {
50
- o && t(this, w).removeEventListener(
50
+ o && t(this, g).removeEventListener(
51
51
  "keydown",
52
52
  t(this, P)
53
53
  );
54
54
  }
55
55
  }
56
- w = new WeakMap(), d = new WeakMap(), f = new WeakMap(), P = new WeakMap();
57
- var g, x, X, Y, c, C, u, b, K, U, A, q, I;
58
- class ue extends B {
56
+ g = new WeakMap(), d = new WeakMap(), m = new WeakMap(), P = new WeakMap();
57
+ var w, v, X, Y, c, C, f, b, K, U, A, q, I;
58
+ class fe extends B {
59
59
  constructor(e) {
60
60
  super();
61
61
  s(this, b);
62
- s(this, g);
63
- s(this, x);
62
+ s(this, w);
63
+ s(this, v);
64
64
  s(this, X);
65
65
  s(this, Y);
66
66
  s(this, c);
67
67
  s(this, C);
68
- s(this, u);
68
+ s(this, f);
69
69
  s(this, A);
70
70
  s(this, q);
71
71
  s(this, I);
72
- this.direction = 1, i(this, c, new Z(0, { easing: J })), i(this, u, !1), i(this, A, (a) => {
72
+ this.direction = 1, i(this, c, new Z(0, { easing: J })), i(this, f, !1), i(this, A, (a) => {
73
73
  t(this, c).current !== 1 && this.changeEvent.notify(
74
74
  "autoplay",
75
- a.timeBetweenFrames * t(this, g) * this.direction * (1 - t(this, c).current)
75
+ a.timeBetweenFrames * t(this, w) * this.direction * (1 - t(this, c).current)
76
76
  );
77
77
  }), i(this, q, () => {
78
78
  t(this, c).current !== 1 && this.changeEvent.notify(
79
79
  "autoplay",
80
- Math.sign(t(this, g)) * this.direction * (1 - t(this, c).current)
80
+ Math.sign(t(this, w)) * this.direction * (1 - t(this, c).current)
81
81
  );
82
82
  }), i(this, I, () => {
83
- t(this, x) && (document.hidden ? t(this, c).set(1, { equalize: !0 }) : t(this, c).set(0, { equalize: !0 }));
84
- }), i(this, g, (e == null ? void 0 : e.speed) || 1), i(this, x, (e == null ? void 0 : e.interval) || !1), i(this, X, e);
83
+ t(this, v) && (document.hidden ? t(this, c).set(1, { equalize: !0 }) : t(this, c).set(0, { equalize: !0 }));
84
+ }), i(this, w, (e == null ? void 0 : e.speed) || 1), i(this, v, (e == null ? void 0 : e.interval) || !1), i(this, X, e);
85
85
  }
86
86
  set interval(e) {
87
- i(this, x, e), t(this, u) && T(this, b, K).call(this);
87
+ i(this, v, e), t(this, f) && T(this, b, K).call(this);
88
88
  }
89
89
  set speed(e) {
90
- i(this, g, e), t(this, u) && T(this, b, K).call(this);
90
+ i(this, w, e), t(this, f) && T(this, b, K).call(this);
91
91
  }
92
92
  connect() {
93
- t(this, u) || (i(this, u, !0), T(this, b, K).call(this));
93
+ t(this, f) || (i(this, f, !0), T(this, b, K).call(this));
94
94
  }
95
95
  disconnect() {
96
- t(this, u) && (i(this, u, !1), T(this, b, U).call(this));
96
+ t(this, f) && (i(this, f, !1), T(this, b, U).call(this));
97
97
  }
98
98
  pauseAndContinue(e, a) {
99
- t(this, u) && e && (clearTimeout(t(this, C)), t(this, c).set(1, {
99
+ t(this, f) && e && (clearTimeout(t(this, C)), t(this, c).set(1, {
100
100
  duration: Math.min(e, 1e3),
101
101
  equalize: a
102
102
  }), i(this, C, setTimeout(() => {
@@ -107,10 +107,10 @@ class ue extends B {
107
107
  }, e)));
108
108
  }
109
109
  }
110
- g = new WeakMap(), x = new WeakMap(), X = new WeakMap(), Y = new WeakMap(), c = new WeakMap(), C = new WeakMap(), u = new WeakMap(), b = new WeakSet(), K = function() {
111
- T(this, b, U).call(this), t(this, x) ? i(this, Y, setInterval(
110
+ w = new WeakMap(), v = new WeakMap(), X = new WeakMap(), Y = new WeakMap(), c = new WeakMap(), C = new WeakMap(), f = new WeakMap(), b = new WeakSet(), K = function() {
111
+ T(this, b, U).call(this), t(this, v) ? i(this, Y, setInterval(
112
112
  t(this, q),
113
- Math.abs(t(this, g))
113
+ Math.abs(t(this, w))
114
114
  )) : k.subscribe(t(this, A), t(this, X)), document.addEventListener(
115
115
  "visibilitychange",
116
116
  t(this, I)
@@ -121,22 +121,22 @@ g = new WeakMap(), x = new WeakMap(), X = new WeakMap(), Y = new WeakMap(), c =
121
121
  t(this, I)
122
122
  );
123
123
  }, A = new WeakMap(), q = new WeakMap(), I = new WeakMap();
124
- var D, v, H, N;
125
- class me extends B {
124
+ var D, x, H, N;
125
+ class ue extends B {
126
126
  constructor(e) {
127
127
  super();
128
128
  s(this, D, null);
129
- s(this, v);
129
+ s(this, x);
130
130
  s(this, H);
131
131
  s(this, N, (e) => {
132
132
  let a = 0;
133
133
  if (!(this.axis === "x" && Math.abs(e.deltaY) > Math.abs(e.deltaX) * 1 || this.axis === "y" && Math.abs(e.deltaX) > Math.abs(e.deltaY) * 1))
134
134
  if (e.preventDefault(), 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) {
135
135
  const r = Date.now();
136
- if (r - t(this, H) > 40 && (a = 100 * Math.sign(a)), i(this, H, r), Math.abs(a) < 100 || t(this, v))
136
+ if (r - t(this, H) > 40 && (a = 100 * Math.sign(a)), i(this, H, r), Math.abs(a) < 100 || t(this, x))
137
137
  return;
138
- this.changeEvent.notify("wheel", a), i(this, v, setTimeout(() => {
139
- i(this, v, void 0);
138
+ this.changeEvent.notify("wheel", a), i(this, x, setTimeout(() => {
139
+ i(this, x, void 0);
140
140
  }, 80));
141
141
  } else
142
142
  this.changeEvent.notify("wheel", a);
@@ -156,57 +156,57 @@ class me extends B {
156
156
  o && (t(this, D).removeEventListener(
157
157
  "wheel",
158
158
  t(this, N)
159
- ), clearTimeout(t(this, v)));
159
+ ), clearTimeout(t(this, x)));
160
160
  }
161
161
  }
162
- D = new WeakMap(), v = new WeakMap(), H = new WeakMap(), N = new WeakMap();
163
- var M, m, l, z, y;
164
- const E = class E extends B {
162
+ D = new WeakMap(), x = new WeakMap(), H = new WeakMap(), N = new WeakMap();
163
+ var L, u, l, z, E;
164
+ const y = class y extends B {
165
165
  constructor(e) {
166
166
  super();
167
- s(this, m);
167
+ s(this, u);
168
168
  s(this, l);
169
169
  s(this, z);
170
- s(this, y);
171
- this.inertion = 1, i(this, m, null), i(this, l, 0), i(this, z, (a) => {
170
+ s(this, E);
171
+ this.inertion = 1, i(this, u, null), i(this, l, 0), i(this, z, (a) => {
172
172
  if (a.composedPath().find(
173
- (L) => L instanceof HTMLElement && L.hasAttribute("drag-dead-zone")
173
+ (M) => M instanceof HTMLElement && M.hasAttribute("drag-dead-zone")
174
174
  ))
175
175
  return;
176
- this.swipe || k.unsubscribe(t(this, y));
176
+ this.swipe || k.unsubscribe(t(this, E));
177
177
  let r = a, F = !1;
178
178
  i(this, l, 0), document.documentElement.classList.add("grabbing");
179
179
  let R = 0, W = 0;
180
180
  $(
181
- (L) => {
182
- t(E, M) && t(E, M) !== t(this, m) || (R = r.x - L.x, W = r.y - L.y, this.axis === "x" ? i(this, l, R) : i(this, l, W), r = L, F = this.axis === "x" && Math.abs(R) > Math.abs(W) || this.axis === "y" && Math.abs(W) > Math.abs(R), F && (i(E, M, t(this, m)), this.changeEvent.notify("drag", t(this, l))));
181
+ (M) => {
182
+ t(y, L) && t(y, L) !== t(this, u) || (R = r.x - M.x, W = r.y - M.y, this.axis === "x" ? i(this, l, R) : i(this, l, W), r = M, F = this.axis === "x" && Math.abs(R) > Math.abs(W) || this.axis === "y" && Math.abs(W) > Math.abs(R), F && (document.documentElement.classList.add("dragging"), i(y, L, t(this, u)), this.changeEvent.notify("drag", t(this, l))));
183
183
  },
184
184
  () => {
185
- i(E, M, null), F && !this.swipe && this.inertion ? (i(this, l, t(this, l) * this.inertion), k.subscribe(t(this, y), {
185
+ i(y, L, null), F && !this.swipe && this.inertion ? (i(this, l, t(this, l) * this.inertion), k.subscribe(t(this, E), {
186
186
  order: _.CONTROLS - 1
187
- })) : this.swipe && this.changeEvent.notify("drag-end", t(this, l)), document.documentElement.classList.remove("grabbing");
187
+ })) : this.swipe && this.changeEvent.notify("drag-end", t(this, l)), document.documentElement.classList.remove("grabbing"), document.documentElement.classList.remove("dragging");
188
188
  }
189
189
  );
190
- }), i(this, y, () => {
191
- Math.floor(Math.abs(t(this, l))) || k.unsubscribe(t(this, y)), i(this, l, t(this, l) * 0.95), i(this, l, p(t(this, l), 3)), this.changeEvent.notify("drag", t(this, l));
192
- }), this.axis = (e == null ? void 0 : e.axis) || "y", this.swipe = (e == null ? void 0 : e.swipe) || !1, o && i(this, m, e != null && e.element && Q(e.element) || document.documentElement);
190
+ }), i(this, E, () => {
191
+ Math.floor(Math.abs(t(this, l))) || k.unsubscribe(t(this, E)), i(this, l, t(this, l) * 0.95), i(this, l, p(t(this, l), 3)), this.changeEvent.notify("drag", t(this, l));
192
+ }), this.axis = (e == null ? void 0 : e.axis) || "y", this.swipe = (e == null ? void 0 : e.swipe) || !1, o && i(this, u, e != null && e.element && Q(e.element) || document.documentElement);
193
193
  }
194
194
  connect() {
195
- o && t(this, m).addEventListener("pointerdown", t(this, z));
195
+ o && t(this, u).addEventListener("pointerdown", t(this, z));
196
196
  }
197
197
  disconnect() {
198
- o && (t(this, m).removeEventListener(
198
+ o && (t(this, u).removeEventListener(
199
199
  "pointerdown",
200
200
  t(this, z)
201
- ), k.unsubscribe(t(this, y)));
201
+ ), k.unsubscribe(t(this, E)));
202
202
  }
203
203
  };
204
- M = new WeakMap(), m = new WeakMap(), l = new WeakMap(), z = new WeakMap(), y = new WeakMap(), s(E, M, null);
205
- let j = E;
204
+ L = new WeakMap(), u = new WeakMap(), l = new WeakMap(), z = new WeakMap(), E = new WeakMap(), s(y, L, null);
205
+ let j = y;
206
206
  export {
207
- ue as AutoplayControls,
207
+ fe as AutoplayControls,
208
208
  B as Controls,
209
209
  j as DragControls,
210
- fe as KeyboardControls,
211
- me as WheelControls
210
+ me as KeyboardControls,
211
+ ue as WheelControls
212
212
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "aptechka",
3
- "version": "0.42.5",
3
+ "version": "0.42.6",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/denisavitski/aptechka.git"