aptechka 0.44.0 → 0.44.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/Animation-D1lL_XhF.cjs +1 -0
- package/lib/Animation-Je56LXXj.js +106 -0
- package/lib/{Damped-DxylD27S.js → Damped-BMmEn7PH.js} +4 -3
- package/lib/Damped-BbJjFOLH.cjs +1 -0
- package/lib/{Store-Cm3LPXlx.js → Store-D2xCXENW.js} +1 -1
- package/lib/Store-DRp_K37w.cjs +1 -0
- package/lib/{Tweened-p5hYr6lL.js → Tweened-BNCj14Jz.js} +4 -3
- package/lib/Tweened-Dk1UNPSH.cjs +1 -0
- package/lib/accordion/index.cjs +1 -1
- package/lib/accordion/index.js +2 -2
- package/lib/animation/index.cjs +1 -1
- package/lib/animation/index.js +3 -3
- package/lib/attribute/index.cjs +1 -1
- package/lib/attribute/index.js +2 -2
- package/lib/canvas/index.cjs +1 -1
- package/lib/canvas/index.js +11 -11
- package/lib/class-linked-status/index.cjs +1 -1
- package/lib/class-linked-status/index.js +12 -11
- package/lib/controls/index.cjs +1 -1
- package/lib/controls/index.js +3 -3
- package/lib/css-property/index.cjs +1 -1
- package/lib/css-property/index.js +7 -6
- package/lib/custom-scrollbar/index.cjs +1 -1
- package/lib/custom-scrollbar/index.js +13 -12
- package/lib/dev/index.cjs +1 -1
- package/lib/dev/index.js +7 -6
- package/lib/device/index.cjs +1 -1
- package/lib/device/index.js +2 -2
- package/lib/element-resizer/index.cjs +1 -1
- package/lib/element-resizer/index.js +1 -1
- package/lib/en3/index.cjs +1 -1
- package/lib/en3/index.js +9 -8
- package/lib/iframe/index.cjs +1 -1
- package/lib/iframe/index.js +6 -5
- package/lib/image/index.cjs +1 -1
- package/lib/image/index.js +5 -4
- package/lib/index-Cqw2NKev.cjs +1 -0
- package/lib/index-euf5anj6.js +64 -0
- package/lib/intersector/index.cjs +1 -1
- package/lib/intersector/index.js +4 -61
- package/lib/{jss-CjccJC-K.js → jss-BQSxj7Ls.js} +1 -1
- package/lib/jss-B_mh4mIw.cjs +1 -0
- package/lib/ladder/index.cjs +1 -1
- package/lib/ladder/index.js +35 -34
- package/lib/layout-box/index.cjs +1 -1
- package/lib/layout-box/index.js +1 -1
- package/lib/loading/index.cjs +1 -1
- package/lib/loading/index.js +10 -9
- package/lib/masonry-layout/index.cjs +1 -1
- package/lib/masonry-layout/index.js +17 -16
- package/lib/media/index.cjs +1 -1
- package/lib/media/index.js +7 -6
- package/lib/morph/MorphAnnouncer.d.ts +0 -1
- package/lib/morph/index.cjs +1 -1
- package/lib/morph/index.js +57 -57
- package/lib/need_redo_tweaker/index.cjs +3 -3
- package/lib/need_redo_tweaker/index.js +260 -260
- package/lib/pointer/index.cjs +1 -1
- package/lib/pointer/index.js +34 -33
- package/lib/popover/index.cjs +1 -1
- package/lib/popover/index.js +25 -25
- package/lib/router/index.cjs +1 -1
- package/lib/router/index.js +3 -3
- package/lib/scroll/index.cjs +1 -1
- package/lib/scroll/index.js +278 -278
- package/lib/scroll-segment/index.cjs +1 -1
- package/lib/scroll-segment/index.js +57 -56
- package/lib/sequence/index.cjs +1 -1
- package/lib/sequence/index.js +6 -6
- package/lib/size-element/index.cjs +1 -1
- package/lib/size-element/index.js +12 -11
- package/lib/slicer/SlicerElement.d.ts +2 -2
- package/lib/slicer/index.cjs +2 -2
- package/lib/slicer/index.js +10 -9
- package/lib/source/index.cjs +2 -2
- package/lib/source/index.js +2 -2
- package/lib/store/index.cjs +1 -1
- package/lib/store/index.js +13 -12
- package/lib/ticker/index.cjs +1 -1
- package/lib/ticker/index.js +1 -1
- package/lib/url-CLvdjbII.cjs +1 -0
- package/lib/{url-D0bFvcuq.js → url-CfcHdBT6.js} +1 -1
- package/lib/utils/index.cjs +1 -1
- package/lib/utils/index.d.ts +1 -0
- package/lib/utils/index.js +163 -148
- package/lib/utils/timeouts.d.ts +5 -0
- package/lib/utils/url.d.ts +5 -1
- package/lib/video/index.cjs +1 -1
- package/lib/video/index.js +7 -6
- package/lib/window-resizer/index.cjs +1 -1
- package/lib/window-resizer/index.js +1 -1
- package/lib/youtube/index.cjs +1 -1
- package/lib/youtube/index.js +13 -12
- package/package.json +1 -1
- package/lib/Animation-CMiBKrwE.cjs +0 -1
- package/lib/Animation-DPRlQfW2.js +0 -105
- package/lib/Damped-CHZ314Rn.cjs +0 -1
- package/lib/Store-C2J4Q87x.cjs +0 -1
- package/lib/Tweened-Dn6CMA-p.cjs +0 -1
- package/lib/browser-0zX67oeU.js +0 -4
- package/lib/browser-CpzFX2xg.cjs +0 -1
- package/lib/jss-GJLvaNfT.cjs +0 -1
- package/lib/url-Bn9ZrvT3.cjs +0 -1
package/lib/video/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var
|
|
1
|
+
"use strict";var d=e=>{throw TypeError(e)};var h=(e,s,t)=>s.has(e)||d("Cannot "+t);var r=(e,s,t)=>(h(e,s,"read from private field"),t?t.call(e):s.get(e)),u=(e,s,t)=>s.has(e)?d("Cannot add the same private member more than once"):s instanceof WeakSet?s.add(e):s.set(e,t),c=(e,s,t,l)=>(h(e,s,"write to private field"),l?l.call(e,t):s.set(e,t),t);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const E=require("../source/index.cjs");require("../window-resizer/index.cjs");require("../Store-DRp_K37w.cjs");const b=require("../index-Cqw2NKev.cjs"),p=require("../events-KVanG9sR.cjs"),o=require("../ticker/index.cjs");var i,n,a;class m extends E.SourceElement{constructor(){super(...arguments);u(this,i,0);u(this,n,!1);u(this,a,()=>{this.classList.add(`state-${this.consumerElement.readyState}`);const t=this.consumerElement.readyState/4;t>r(this,i)&&c(this,i,t),p.dispatchEvent(this,"videoReadyStateChange",{detail:{readyState:this.consumerElement.readyState,progress:r(this,i)}}),this.consumerElement.readyState===4&&(o.ticker.unsubscribe(r(this,a)),r(this,n)&&this.sourceManager.current&&this.consumerElement.play())})}connectedCallback(){super.connectedCallback(),this.addEventListener("sourceCapture",()=>{c(this,n,!1),this.hasAttribute("capture-autoplay")&&(this.sourceManager.current?this.consumerElement.play():c(this,n,!0)),o.ticker.subscribe(r(this,a))}),this.addEventListener("sourceRelease",()=>{this.hasAttribute("capture-autoplay")&&(this.consumerElement.pause(),this.hasAttribute("replay")&&(this.consumerElement.currentTime=0)),this.hasAttribute("reload-source")&&this.classList.remove("state-0","state-1","state-2","state-3","state-4")})}disconnectedCallback(){super.disconnectedCallback(),o.ticker.unsubscribe(r(this,a)),c(this,i,0)}createConsumer(){return document.createElement("video")}consumeSource(t){this.consumerElement.src=t||""}}i=new WeakMap,n=new WeakMap,a=new WeakMap;b.isBrowser&&!customElements.get("e-video")&&customElements.define("e-video",m);exports.VideoElement=m;
|
package/lib/video/index.js
CHANGED
|
@@ -5,11 +5,12 @@ var l = (e, s, t) => s.has(e) || h("Cannot " + t);
|
|
|
5
5
|
var r = (e, s, t) => (l(e, s, "read from private field"), t ? t.call(e) : s.get(e)), o = (e, s, t) => s.has(e) ? h("Cannot add the same private member more than once") : s instanceof WeakSet ? s.add(e) : s.set(e, t), c = (e, s, t, m) => (l(e, s, "write to private field"), m ? m.call(e, t) : s.set(e, t), t);
|
|
6
6
|
import { SourceElement as d } from "../source/index.js";
|
|
7
7
|
import "../window-resizer/index.js";
|
|
8
|
-
import "../Store-
|
|
9
|
-
import {
|
|
8
|
+
import "../Store-D2xCXENW.js";
|
|
9
|
+
import { i as p } from "../index-euf5anj6.js";
|
|
10
|
+
import { d as E } from "../events-CsVF98U6.js";
|
|
10
11
|
import { ticker as u } from "../ticker/index.js";
|
|
11
12
|
var i, a, n;
|
|
12
|
-
class
|
|
13
|
+
class f extends d {
|
|
13
14
|
constructor() {
|
|
14
15
|
super(...arguments);
|
|
15
16
|
o(this, i, 0);
|
|
@@ -17,7 +18,7 @@ class E extends d {
|
|
|
17
18
|
o(this, n, () => {
|
|
18
19
|
this.classList.add(`state-${this.consumerElement.readyState}`);
|
|
19
20
|
const t = this.consumerElement.readyState / 4;
|
|
20
|
-
t > r(this, i) && c(this, i, t),
|
|
21
|
+
t > r(this, i) && c(this, i, t), E(this, "videoReadyStateChange", {
|
|
21
22
|
detail: {
|
|
22
23
|
readyState: this.consumerElement.readyState,
|
|
23
24
|
progress: r(this, i)
|
|
@@ -49,7 +50,7 @@ class E extends d {
|
|
|
49
50
|
}
|
|
50
51
|
}
|
|
51
52
|
i = new WeakMap(), a = new WeakMap(), n = new WeakMap();
|
|
52
|
-
customElements.get("e-video")
|
|
53
|
+
p && !customElements.get("e-video") && customElements.define("e-video", f);
|
|
53
54
|
export {
|
|
54
|
-
|
|
55
|
+
f as VideoElement
|
|
55
56
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var
|
|
1
|
+
"use strict";var f=e=>{throw TypeError(e)};var w=(e,i,s)=>i.has(e)||f("Cannot "+s);var t=(e,i,s)=>(w(e,i,"read from private field"),s?s.call(e):i.get(e)),u=(e,i,s)=>i.has(e)?f("Cannot add the same private member more than once"):i instanceof WeakSet?i.add(e):i.set(e,s),c=(e,i,s,o)=>(w(e,i,"write to private field"),o?o.call(e,s):i.set(e,s),s);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const b=require("../notifier/index.cjs"),l=require("../index-Cqw2NKev.cjs"),R=require("../function-MthRj-GJ.cjs");var r,n,d;class h extends b.Notifier{constructor(){super();u(this,r,!1);u(this,n,()=>{t(this,r)||(c(this,r,!0),t(this,d).call(this))});u(this,d,R.debounce(()=>{this.notify(),c(this,r,!1)},0));l.isBrowser&&(window.addEventListener("resize",t(this,n)),t(this,n).call(this))}subscribe(s,o){const z=super.subscribe(s,o);return t(this,r)||s(),z}}r=new WeakMap,n=new WeakMap,d=new WeakMap;const a=new h;exports.WindowResizer=h;exports.windowResizer=a;
|
|
@@ -4,7 +4,7 @@ var h = (s) => {
|
|
|
4
4
|
var c = (s, e, i) => e.has(s) || h("Cannot " + i);
|
|
5
5
|
var t = (s, e, i) => (c(s, e, "read from private field"), i ? i.call(s) : e.get(s)), u = (s, e, i) => e.has(s) ? h("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(s) : e.set(s, i), f = (s, e, i, n) => (c(s, e, "write to private field"), n ? n.call(s, i) : e.set(s, i), i);
|
|
6
6
|
import { Notifier as m } from "../notifier/index.js";
|
|
7
|
-
import { i as p } from "../
|
|
7
|
+
import { i as p } from "../index-euf5anj6.js";
|
|
8
8
|
import { d as z } from "../function-C10DGppn.js";
|
|
9
9
|
var r, o, d;
|
|
10
10
|
class b extends m {
|
package/lib/youtube/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var v=s=>{throw TypeError(s)};var E=(s,r,t)=>r.has(s)||v("Cannot "+t);var e=(s,r,t)=>(E(s,r,"read from private field"),t?t.call(s):r.get(s)),o=(s,r,t)=>r.has(s)?v("Cannot add the same private member more than once"):r instanceof WeakSet?r.add(s):r.set(s,t),u=(s,r,t,a)=>(E(s,r,"write to private field"),a?a.call(s,t):r.set(s,t),t),
|
|
1
|
+
"use strict";var v=s=>{throw TypeError(s)};var E=(s,r,t)=>r.has(s)||v("Cannot "+t);var e=(s,r,t)=>(E(s,r,"read from private field"),t?t.call(s):r.get(s)),o=(s,r,t)=>r.has(s)?v("Cannot add the same private member more than once"):r instanceof WeakSet?r.add(s):r.set(s,t),u=(s,r,t,a)=>(E(s,r,"write to private field"),a?a.call(s,t):r.set(s,t),t),w=(s,r,t)=>(E(s,r,"access private method"),t);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const A=require("../source/index.cjs");require("../window-resizer/index.cjs");require("../Store-DRp_K37w.cjs");const L=require("../index-Cqw2NKev.cjs"),T=require("../events-KVanG9sR.cjs"),_=require("../string-DhgS_iFl.cjs");var i,c,n,y,l,f,b,R,p,I;const d=class d extends A.SourceElement{constructor(){super();o(this,p);o(this,i);o(this,c);o(this,n,!1);o(this,y,!1);o(this,l,()=>{u(this,n,e(this,n)||this.hasAttribute("autoplay")&&!this.hasAttribute("capture-autoplay")),u(this,i,new window.YT.Player(e(this,c),{playerVars:{mute:this.hasAttribute("muted")?1:0,controls:this.hasAttribute("controls")?1:0},events:{onReady:e(this,f),onError:e(this,b),onStateChange:e(this,R)}}))});o(this,f,()=>{u(this,y,!0),w(this,p,I).call(this)});o(this,b,t=>{var a,h;console.error("YouTube: Ошибка при загрузке видео:",this.currentURL,t),(h=(a=this.consumerElement).onerror)==null||h.call(a,new Event("error"))});o(this,R,()=>{});u(this,c,"yt-"+_.generateId(10)),d.__apiReady||(window.onYouTubeIframeAPIReady=()=>{d.__apiReady=!0,T.dispatchEvent(window,"youTubeIframeAPIReady")}),this.addEventListener("sourceCapture",()=>{this.hasAttribute("capture-autoplay")&&(e(this,y)?e(this,i).playVideo():u(this,n,!0))}),this.addEventListener("sourceRelease",()=>{e(this,i)&&this.hasAttribute("capture-autoplay")&&(e(this,i).pauseVideo(),this.hasAttribute("replay")&&e(this,i).seekTo(0))})}static __onYouTubeIframeAPIReady(){this.__apiReady=!0}createConsumer(){const t=document.createElement("div");return t.id=e(this,c),t}consumeSource(t){var a;if(t){if(!document.getElementById("youtube-script")){const h=document.createElement("script");h.id,h.src="https://www.youtube.com/iframe_api";const g=document.getElementsByTagName("script")[0];(a=g.parentNode)==null||a.insertBefore(h,g)}e(this,i)?w(this,p,I).call(this):d.__apiReady?e(this,l).call(this):addEventListener("youTubeIframeAPIReady",e(this,l))}else e(this,i)&&e(this,i).stopVideo()}disconnectedCallback(){super.disconnectedCallback(),e(this,i)&&e(this,i).destroy(),removeEventListener("youTubeIframeAPIReady",e(this,l))}};i=new WeakMap,c=new WeakMap,n=new WeakMap,y=new WeakMap,l=new WeakMap,f=new WeakMap,b=new WeakMap,R=new WeakMap,p=new WeakSet,I=function(){var t,a;this.currentURL&&(this.currentURL.startsWith("http")?e(this,i).loadVideoByUrl(this.currentURL):e(this,i).loadVideoById(this.currentURL)),e(this,n)?e(this,i).playVideo():e(this,i).stopVideo(),u(this,n,!1),(a=(t=this.consumerElement).onload)==null||a.call(t,new Event("load"))},d.__apiReady=!1;let m=d;L.isBrowser&&!customElements.get("e-youtube")&&customElements.define("e-youtube",m);exports.YouTubeElement=m;
|
package/lib/youtube/index.js
CHANGED
|
@@ -5,10 +5,11 @@ var b = (s, r, t) => r.has(s) || L("Cannot " + t);
|
|
|
5
5
|
var e = (s, r, t) => (b(s, r, "read from private field"), t ? t.call(s) : r.get(s)), o = (s, r, t) => r.has(s) ? L("Cannot add the same private member more than once") : r instanceof WeakSet ? r.add(s) : r.set(s, t), u = (s, r, t, a) => (b(s, r, "write to private field"), a ? a.call(s, t) : r.set(s, t), t), E = (s, r, t) => (b(s, r, "access private method"), t);
|
|
6
6
|
import { SourceElement as g } from "../source/index.js";
|
|
7
7
|
import "../window-resizer/index.js";
|
|
8
|
-
import "../Store-
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
|
|
8
|
+
import "../Store-D2xCXENW.js";
|
|
9
|
+
import { i as v } from "../index-euf5anj6.js";
|
|
10
|
+
import { d as T } from "../events-CsVF98U6.js";
|
|
11
|
+
import { g as V } from "../string-f0Dnk0L1.js";
|
|
12
|
+
var i, c, n, p, l, m, f, R, y, I;
|
|
12
13
|
const d = class d extends g {
|
|
13
14
|
constructor() {
|
|
14
15
|
super();
|
|
@@ -31,7 +32,7 @@ const d = class d extends g {
|
|
|
31
32
|
}));
|
|
32
33
|
});
|
|
33
34
|
o(this, m, () => {
|
|
34
|
-
u(this, p, !0), E(this, y,
|
|
35
|
+
u(this, p, !0), E(this, y, I).call(this);
|
|
35
36
|
});
|
|
36
37
|
o(this, f, (t) => {
|
|
37
38
|
var a, h;
|
|
@@ -39,8 +40,8 @@ const d = class d extends g {
|
|
|
39
40
|
});
|
|
40
41
|
o(this, R, () => {
|
|
41
42
|
});
|
|
42
|
-
u(this, c, "yt-" +
|
|
43
|
-
d.__apiReady = !0,
|
|
43
|
+
u(this, c, "yt-" + V(10)), d.__apiReady || (window.onYouTubeIframeAPIReady = () => {
|
|
44
|
+
d.__apiReady = !0, T(window, "youTubeIframeAPIReady");
|
|
44
45
|
}), this.addEventListener("sourceCapture", () => {
|
|
45
46
|
this.hasAttribute("capture-autoplay") && (e(this, p) ? e(this, i).playVideo() : u(this, n, !0));
|
|
46
47
|
}), this.addEventListener("sourceRelease", () => {
|
|
@@ -63,19 +64,19 @@ const d = class d extends g {
|
|
|
63
64
|
const A = document.getElementsByTagName("script")[0];
|
|
64
65
|
(a = A.parentNode) == null || a.insertBefore(h, A);
|
|
65
66
|
}
|
|
66
|
-
e(this, i) ? E(this, y,
|
|
67
|
+
e(this, i) ? E(this, y, I).call(this) : d.__apiReady ? e(this, l).call(this) : addEventListener("youTubeIframeAPIReady", e(this, l));
|
|
67
68
|
} else e(this, i) && e(this, i).stopVideo();
|
|
68
69
|
}
|
|
69
70
|
disconnectedCallback() {
|
|
70
71
|
super.disconnectedCallback(), e(this, i) && e(this, i).destroy(), removeEventListener("youTubeIframeAPIReady", e(this, l));
|
|
71
72
|
}
|
|
72
73
|
};
|
|
73
|
-
i = new WeakMap(), c = new WeakMap(), n = new WeakMap(), p = new WeakMap(), l = new WeakMap(), m = new WeakMap(), f = new WeakMap(), R = new WeakMap(), y = new WeakSet(),
|
|
74
|
+
i = new WeakMap(), c = new WeakMap(), n = new WeakMap(), p = new WeakMap(), l = new WeakMap(), m = new WeakMap(), f = new WeakMap(), R = new WeakMap(), y = new WeakSet(), I = function() {
|
|
74
75
|
var t, a;
|
|
75
76
|
this.currentURL && (this.currentURL.startsWith("http") ? e(this, i).loadVideoByUrl(this.currentURL) : e(this, i).loadVideoById(this.currentURL)), e(this, n) ? e(this, i).playVideo() : e(this, i).stopVideo(), u(this, n, !1), (a = (t = this.consumerElement).onload) == null || a.call(t, new Event("load"));
|
|
76
77
|
}, d.__apiReady = !1;
|
|
77
|
-
let
|
|
78
|
-
customElements.get("e-youtube")
|
|
78
|
+
let w = d;
|
|
79
|
+
v && !customElements.get("e-youtube") && customElements.define("e-youtube", w);
|
|
79
80
|
export {
|
|
80
|
-
|
|
81
|
+
w as YouTubeElement
|
|
81
82
|
};
|
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";var C=i=>{throw TypeError(i)};var S=(i,s,t)=>s.has(i)||C("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)=>s.has(i)?C("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),M=(i,s,t)=>(S(i,s,"access private method"),t);const I=require("./Store-C2J4Q87x.cjs"),z=require("./math-GDWEqu7y.cjs"),m=require("./polyfills-BANSrI_m.cjs"),P=require("./ticker/index.cjs"),N=require("./order/index.cjs");var f,b,A,c,F,r,u,l,g,d,q,y,x;class O extends I.Store{constructor(t,n){super(t||0,n);a(this,q);a(this,f);a(this,b,N.TICK_ORDER.ANIMATION);a(this,A);a(this,c,new I.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,P.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,P.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))),M(this,q,y).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,y=function(t){h(this,F,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,105 +0,0 @@
|
|
|
1
|
-
var I = (i) => {
|
|
2
|
-
throw TypeError(i);
|
|
3
|
-
};
|
|
4
|
-
var S = (i, r, t) => r.has(i) || I("Cannot " + t);
|
|
5
|
-
var e = (i, r, t) => (S(i, r, "read from private field"), t ? t.call(i) : r.get(i)), a = (i, r, t) => r.has(i) ? I("Cannot add the same private member more than once") : r instanceof WeakSet ? r.add(i) : r.set(i, t), h = (i, r, t, u) => (S(i, r, "write to private field"), u ? u.call(i, t) : r.set(i, t), t), P = (i, r, t) => (S(i, r, "access private method"), t);
|
|
6
|
-
import { S as q } from "./Store-Cm3LPXlx.js";
|
|
7
|
-
import { c as y } from "./math-BOBiC4TN.js";
|
|
8
|
-
import { p as z, n as F } from "./polyfills-CxfUK5OU.js";
|
|
9
|
-
import { ticker as O } from "./ticker/index.js";
|
|
10
|
-
import { TICK_ORDER as N } from "./order/index.js";
|
|
11
|
-
var f, d, A, l, b, s, n, m, c, g, M, R, x;
|
|
12
|
-
class K extends q {
|
|
13
|
-
constructor(t, u) {
|
|
14
|
-
super(t || 0, u);
|
|
15
|
-
a(this, M);
|
|
16
|
-
a(this, f);
|
|
17
|
-
a(this, d, N.ANIMATION);
|
|
18
|
-
a(this, A);
|
|
19
|
-
a(this, l, new q(!1));
|
|
20
|
-
a(this, b, 0);
|
|
21
|
-
a(this, s, 0);
|
|
22
|
-
a(this, n, -1 / 0);
|
|
23
|
-
a(this, m, 1 / 0);
|
|
24
|
-
a(this, c, 0);
|
|
25
|
-
a(this, g, null);
|
|
26
|
-
a(this, x, (t) => {
|
|
27
|
-
this.handleAnimationFrame(t);
|
|
28
|
-
});
|
|
29
|
-
h(this, s, this.current);
|
|
30
|
-
}
|
|
31
|
-
get direction() {
|
|
32
|
-
return e(this, b);
|
|
33
|
-
}
|
|
34
|
-
get target() {
|
|
35
|
-
return e(this, s);
|
|
36
|
-
}
|
|
37
|
-
get min() {
|
|
38
|
-
return e(this, n);
|
|
39
|
-
}
|
|
40
|
-
set min(t) {
|
|
41
|
-
h(this, n, t), this.set(e(this, s), {
|
|
42
|
-
equalize: !0
|
|
43
|
-
});
|
|
44
|
-
}
|
|
45
|
-
get max() {
|
|
46
|
-
return e(this, m);
|
|
47
|
-
}
|
|
48
|
-
set max(t) {
|
|
49
|
-
h(this, m, t), this.set(e(this, s), {
|
|
50
|
-
equalize: !0
|
|
51
|
-
});
|
|
52
|
-
}
|
|
53
|
-
get from() {
|
|
54
|
-
return e(this, c);
|
|
55
|
-
}
|
|
56
|
-
get isRunning() {
|
|
57
|
-
return e(this, l);
|
|
58
|
-
}
|
|
59
|
-
get delta() {
|
|
60
|
-
return Math.abs(e(this, s) - e(this, c));
|
|
61
|
-
}
|
|
62
|
-
get deltaProgress() {
|
|
63
|
-
return this.delta ? z(Math.abs(this.current - e(this, c)) / this.delta, 6) : 0;
|
|
64
|
-
}
|
|
65
|
-
get distance() {
|
|
66
|
-
return Math.abs(e(this, m) - e(this, n));
|
|
67
|
-
}
|
|
68
|
-
get distanceProgress() {
|
|
69
|
-
return this.distance ? z(Math.abs(this.current - e(this, n)) / this.distance, 6) : 0;
|
|
70
|
-
}
|
|
71
|
-
set(t, u) {
|
|
72
|
-
(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());
|
|
73
|
-
}
|
|
74
|
-
shift(t, u) {
|
|
75
|
-
this.set(e(this, s) + t, u);
|
|
76
|
-
}
|
|
77
|
-
reset() {
|
|
78
|
-
super.reset(), this.set(this.initial, { equalize: !0 });
|
|
79
|
-
}
|
|
80
|
-
close() {
|
|
81
|
-
super.close(), this.reset(), this.unlistenAnimationFrame();
|
|
82
|
-
}
|
|
83
|
-
listenAnimationFrame() {
|
|
84
|
-
e(this, l).current || (e(this, l).current = !0, O.subscribe(e(this, x), {
|
|
85
|
-
maxFPS: e(this, f),
|
|
86
|
-
order: e(this, d),
|
|
87
|
-
culling: e(this, A)
|
|
88
|
-
}));
|
|
89
|
-
}
|
|
90
|
-
unlistenAnimationFrame() {
|
|
91
|
-
e(this, l).current && (e(this, l).current = !1, O.unsubscribe(e(this, x)));
|
|
92
|
-
}
|
|
93
|
-
updateOptions(t) {
|
|
94
|
-
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))), P(this, M, R).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);
|
|
95
|
-
}
|
|
96
|
-
start() {
|
|
97
|
-
this.listenAnimationFrame();
|
|
98
|
-
}
|
|
99
|
-
}
|
|
100
|
-
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(), R = function(t) {
|
|
101
|
-
h(this, b, Math.sign(t - e(this, s))), h(this, s, y(t, e(this, n), e(this, m))), h(this, c, this.current);
|
|
102
|
-
}, x = new WeakMap();
|
|
103
|
-
export {
|
|
104
|
-
K as A
|
|
105
|
-
};
|
package/lib/Damped-CHZ314Rn.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";var b=Object.defineProperty,y=Object.defineProperties;var C=Object.getOwnPropertyDescriptors;var l=Object.getOwnPropertySymbols;var O=Object.prototype.hasOwnProperty,v=Object.prototype.propertyIsEnumerable;var g=t=>{throw TypeError(t)};var d=(t,e,s)=>e in t?b(t,e,{enumerable:!0,configurable:!0,writable:!0,value:s}):t[e]=s,f=(t,e)=>{for(var s in e||(e={}))O.call(e,s)&&d(t,s,e[s]);if(l)for(var s of l(e))v.call(e,s)&&d(t,s,e[s]);return t},p=(t,e)=>y(t,C(e));var q=(t,e,s)=>e.has(t)||g("Cannot "+s);var a=(t,e,s)=>(q(t,e,"read from private field"),s?s.call(t):e.get(t)),u=(t,e,s)=>e.has(t)?g("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,s),n=(t,e,s,r)=>(q(t,e,"write to private field"),r?r.call(t,s):e.set(t,s),s);const w=require("./math-GDWEqu7y.cjs"),c=require("./polyfills-BANSrI_m.cjs"),B=require("./Animation-CMiBKrwE.cjs");var i,h;class D extends B.Animation{constructor(s,r){super(s,r);u(this,i);u(this,h);this.damping=20,this.stiffness=0,this.mass=0,n(this,i,0),n(this,h,0),this.updateOptions(p(f({},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,A=Math.abs(r-this.target);n(this,h,A/s.timeBetweenFrames);const m=s.timeBetweenFrames/1e3;if(this.mass||this.stiffness){const F=(this.target-this.current)*this.stiffness-a(this,i)*this.damping;n(this,i,a(this,i)+F/this.mass*m),this.current+=a(this,i)*m}else this.current=w.damp(this.current,this.target,this.damping,m)}}i=new WeakMap,h=new WeakMap;exports.Damped=D;
|
package/lib/Store-C2J4Q87x.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";var A=r=>{throw TypeError(r)};var w=(r,e,t)=>e.has(r)||A("Cannot "+t);var i=(r,e,t)=>(w(r,e,"read from private field"),t?t.call(r):e.get(r)),c=(r,e,t)=>e.has(r)?A("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(r):e.set(r,t),h=(r,e,t,a)=>(w(r,e,"write to private field"),a?a.call(r,t):e.set(r,t),t),k=(r,e,t)=>(w(r,e,"access private method"),t);const E=require("./browser-CpzFX2xg.cjs");var f;class M{constructor(){c(this,f);this.storage=null,this.name="store-registry",h(this,f,null),E.isBrowser&&(this.storage=localStorage)}get loadedState(){return i(this,f)}saveState(){const e=this.getState(),t=JSON.stringify(e);localStorage.setItem(this.name,t)}loadState(e=localStorage.getItem(this.name)){e&&(typeof e=="string"?h(this,f,JSON.parse(e)):h(this,f,e),l.current.forEach(t=>{t.name&&this.updateStore(t)}))}resetState(){l.current.forEach(e=>{e.name&&e.reset()}),this.saveState()}updateStore(e){var t,a;if(!Array.isArray((t=i(this,f))==null?void 0:t.stores))return e;if(e.name){const v=(a=i(this,f))==null?void 0:a.stores.find(z=>z.name===e.name);v&&(e.current=v.value)}return e}getState(){const e={stores:[]};return l.current.forEach(t=>{t.name&&(e.stores.find(a=>a.name===t.name)||e.stores.push({value:t.current,name:t.name}))}),e}}f=new WeakMap;const N=new M;var d,s,S,u,m,n,g,b,y,q;class _{constructor(e,t){c(this,y);c(this,d);c(this,s);c(this,S);c(this,u,new Set);c(this,m);c(this,n);c(this,g);c(this,b);h(this,d,t==null?void 0:t.name),this.__manager=t==null?void 0:t.__manager,h(this,s,{initial:e,previous:void 0,current:e}),h(this,S,(t==null?void 0:t.equalityCheck)||((a,v)=>a===v)),t!=null&&t.validate&&this.addMiddleware(t.validate),h(this,g,(t==null?void 0:t.notifyAndClose)||!1),h(this,b,(t==null?void 0:t.invisible)||!1),h(this,m,(t==null?void 0:t.skipSubscribeNotification)||!1),i(this,d)&&N.updateStore(this)}get name(){return i(this,d)}get initial(){return i(this,s).initial}get previous(){return i(this,s).previous}get current(){return i(this,s).current}set current(e){if(!i(this,S).call(this,i(this,s).current,e)){if(i(this,s).previous=i(this,s).current,i(this,n))for(const t of i(this,n))e=t(e);i(this,s).current=e,k(this,y,q).call(this),i(this,g)&&this.close()}}get subscribers(){return i(this,u)}addMiddleware(e){i(this,n)||h(this,n,new Set),i(this,n).add(e)}removeMiddleware(e){var t,a;(t=i(this,n))==null||t.delete(e),(a=i(this,n))!=null&&a.size||h(this,n,void 0)}subscribe(e){return!i(this,b)&&!i(this,u).size&&R(this),i(this,u).add(e),i(this,m)||e(i(this,s)),()=>{this.unsubscribe(e)}}unsubscribe(e){i(this,u).delete(e),i(this,u).size||C(this)}reset(){this.current=Array.isArray(this.initial)?[...this.initial]:this.initial}close(){i(this,u).clear(),i(this,s).previous=void 0,i(this,s).current=i(this,s).initial,C(this)}}d=new WeakMap,s=new WeakMap,S=new WeakMap,u=new WeakMap,m=new WeakMap,n=new WeakMap,g=new WeakMap,b=new WeakMap,y=new WeakSet,q=function(){for(const e of i(this,u))e(i(this,s))};const l=new _([],{invisible:!0});function R(r){l.current.includes(r)||(l.current=[...l.current,r])}function C(r){l.current.includes(r)&&(l.current=l.current.filter(e=>e!==r))}exports.Store=_;exports.activeStores=l;exports.storeRegistry=N;
|
package/lib/Tweened-Dn6CMA-p.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";var y=Object.defineProperty,O=Object.defineProperties;var b=Object.getOwnPropertyDescriptors;var h=Object.getOwnPropertySymbols;var w=Object.prototype.hasOwnProperty,S=Object.prototype.propertyIsEnumerable;var d=i=>{throw TypeError(i)};var m=(i,a,e)=>a in i?y(i,a,{enumerable:!0,configurable:!0,writable:!0,value:e}):i[a]=e,g=(i,a)=>{for(var e in a||(a={}))w.call(a,e)&&m(i,e,a[e]);if(h)for(var e of h(a))S.call(a,e)&&m(i,e,a[e]);return i},f=(i,a)=>O(i,b(a));var A=(i,a,e)=>a.has(i)||d("Cannot "+e);var s=(i,a,e)=>(A(i,a,"read from private field"),e?e.call(i):a.get(i)),l=(i,a,e)=>a.has(i)?d("Cannot add the same private member more than once"):a instanceof WeakSet?a.add(i):a.set(i,e),c=(i,a,e,r)=>(A(i,a,"write to private field"),r?r.call(i,e):a.set(i,e),e);const u=require("./easings-GegIwET5.cjs"),T=require("./math-GDWEqu7y.cjs"),q=require("./polyfills-BANSrI_m.cjs"),x=require("./Animation-CMiBKrwE.cjs");var n,t;class z extends x.Animation{constructor(e,r){super(e||0,r);l(this,n,u.linear);l(this,t,1e3);this.updateOptions(f(g({},r),{equalize:!0}))}updateOptions(e){super.updateOptions(e),c(this,n,typeof(e==null?void 0:e.easing)=="function"?e.easing:typeof(e==null?void 0:e.easing)=="string"&&u.easings[e.easing]||u.linear),c(this,t,(e==null?void 0:e.duration)===!1?0:q.nullishCoalescing(e==null?void 0:e.duration,s(this,t)))}handleAnimationFrame(e){const r=e.timeElapsedSinceSubscription/1e3/(s(this,t)/1e3)||0,F=s(this,n).call(this,T.clamp(r,0,1));this.current=q.preciseNumber(this.from+(this.target-this.from)*F,6),r>1&&this.unlistenAnimationFrame()}start(){this.unlistenAnimationFrame(),this.listenAnimationFrame()}}n=new WeakMap,t=new WeakMap;exports.Tweened=z;
|
package/lib/browser-0zX67oeU.js
DELETED
package/lib/browser-CpzFX2xg.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const e=typeof window!="undefined"&&typeof window.document!="undefined";exports.isBrowser=e;
|
package/lib/jss-GJLvaNfT.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const o=require("./browser-CpzFX2xg.cjs"),c=require("./string-DhgS_iFl.cjs");function s(t){let e="";for(const r in t){const n=t[r];typeof n=="object"?(e+=`${r} {`,e+=s(n),e+="}"):e+=`${c.camelToKebab(r)}: ${n};`}return e}function l(t){if(o.isBrowser){const e=new CSSStyleSheet;return e.replaceSync(s(t)),e}return null}exports.createStylesheet=l;exports.styleToString=s;
|
package/lib/url-Bn9ZrvT3.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";var P=Object.defineProperty,S=Object.defineProperties;var W=Object.getOwnPropertyDescriptors;var n=Object.getOwnPropertySymbols;var u=Object.prototype.hasOwnProperty,p=Object.prototype.propertyIsEnumerable;var c=(t,s,a)=>s in t?P(t,s,{enumerable:!0,configurable:!0,writable:!0,value:a}):t[s]=a,i=(t,s)=>{for(var a in s||(s={}))u.call(s,a)&&c(t,a,s[a]);if(n)for(var a of n(s))p.call(s,a)&&c(t,a,s[a]);return t},o=(t,s)=>S(t,W(s));function y(t,s="",a=!1){s=s.endsWith("/")?s.slice(0,-1):s,t=t.replace(s,""),t.startsWith("/")&&(t=t.slice(1));const h=t.split("#"),e=h[0].split("?");let r=e[0].startsWith("/")?e[0]:"/"+e[0];a?r=!r.endsWith("/")&&r!=="/"?r+"/":r:r=r.endsWith("/")&&r!=="/"?r.slice(0,-1):r;const f=s+r,m=e==null?void 0:e[1],l=h==null?void 0:h[1];return{leaf:r,pathname:f,parameters:m,hash:l}}function d(t="/"){return t.endsWith("/")||(t+="/"),t.startsWith("/")||(t+="/"),t}function g(t){const s=(t==null?void 0:t.searchParameters)||location.search,a=t.hash?t.hash.startsWith("#")?t.hash:"#"+t.hash:"",h=s?s.startsWith("?")?s:"?"+s:"",e=`${t.pathname}${a}${h}`,r=o(i({},t.state),{path:e});t.action==="push"?history.pushState(r,"",e):t.action==="replace"&&history.replaceState(r,"",e)}function $(t){const s=new URLSearchParams(t),a={};for(const[h,e]of s)a[h]=e;return a}function w(t,s){const a=new URL(location.href),h=(s==null?void 0:s.toString())||"";a.searchParams.set(t,h),history.replaceState(history.state,"",a.href)}exports.changeHistory=g;exports.normalizeBase=d;exports.parseSearchParameters=$;exports.splitPath=y;exports.updateSearchParameter=w;
|