aptechka 0.5.25 → 0.5.27
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/Damped-DxwUBxOC.cjs +1 -0
- package/lib/{Damped-BJgyFENo.js → Damped-QZAoXO5Z.js} +31 -32
- package/lib/{Derived-BZtlW0bB.cjs → Derived-B-g8dYgh.cjs} +1 -1
- package/lib/{Derived-DH-ouLBq.js → Derived-kPJs5JC5.js} +1 -1
- package/lib/{SourceManager-DmXmmA6z.js → SourceManager-Q-PB-Rkh.js} +3 -4
- package/lib/SourceManager-vSlsMKUE.cjs +1 -0
- package/lib/{Store-Cd-E5W1z.js → Store-BQXXikps.js} +7 -8
- package/lib/Store-C-1ruEIm.cjs +1 -0
- package/lib/{Viewport-CCDNxaDg.js → Viewport-CFFhFKqX.js} +5 -6
- package/lib/Viewport-DMB0dO-s.cjs +1 -0
- package/lib/accordion/index.cjs +1 -1
- package/lib/accordion/index.js +8 -9
- package/lib/animation/index.cjs +1 -1
- package/lib/animation/index.js +13 -14
- package/lib/attribute/index.cjs +1 -1
- package/lib/attribute/index.js +15 -16
- package/lib/canvas/index.cjs +1 -1
- package/lib/canvas/index.js +3 -4
- package/lib/checkbox/index.cjs +1 -1
- package/lib/checkbox/index.js +3 -4
- package/lib/class-linked-status/index.cjs +1 -1
- package/lib/class-linked-status/index.js +28 -29
- package/lib/controls/index.cjs +1 -1
- package/lib/controls/index.js +52 -53
- package/lib/{createStylesheet-C8aQQ4hd.cjs → createStylesheet-CqHU9_qv.cjs} +1 -1
- package/lib/{createStylesheet-KMRQhSa-.js → createStylesheet-DBCEbDjI.js} +1 -1
- package/lib/createTheme-CHnsCgAr.js +15 -0
- package/lib/createTheme-Cfaw9UmV.cjs +1 -0
- package/lib/css-property/index.cjs +1 -1
- package/lib/css-property/index.js +9 -10
- package/lib/custom-element/index.cjs +1 -1
- package/lib/custom-element/index.js +15 -16
- package/lib/dev/index.cjs +1 -1
- package/lib/dev/index.js +6 -7
- package/lib/device/index.cjs +1 -1
- package/lib/device/index.js +1 -1
- package/lib/element-constructor/index.cjs +1 -1
- package/lib/element-constructor/index.js +3 -3
- package/lib/element-resizer/index.cjs +1 -1
- package/lib/element-resizer/index.js +22 -23
- package/lib/en3/index.cjs +1 -1
- package/lib/en3/index.js +20 -21
- package/lib/image/index.cjs +1 -1
- package/lib/image/index.js +7 -8
- package/lib/index-BAHHdcp3.js +301 -0
- package/lib/index-D2XtQX56.cjs +9 -0
- package/lib/intersector/index.cjs +1 -1
- package/lib/intersector/index.js +6 -7
- package/lib/ladder/index.cjs +1 -1
- package/lib/ladder/index.js +3 -4
- package/lib/layout-box/index.cjs +1 -1
- package/lib/layout-box/index.js +2 -3
- package/lib/loading/index.cjs +1 -1
- package/lib/loading/index.js +15 -16
- package/lib/media/index.cjs +1 -1
- package/lib/media/index.js +5 -6
- package/lib/modal/index.cjs +1 -1
- package/lib/modal/index.js +3 -4
- package/lib/morph/index.cjs +1 -1
- package/lib/morph/index.js +2 -3
- package/lib/pointer/index.cjs +1 -1
- package/lib/pointer/index.js +2 -3
- package/lib/popover/index.cjs +1 -1
- package/lib/popover/index.js +46 -54
- package/lib/resized/index.cjs +1 -1
- package/lib/resized/index.js +7 -8
- package/lib/router/index.cjs +1 -1
- package/lib/router/index.js +7 -8
- package/lib/scroll/index.cjs +1 -1
- package/lib/scroll/index.js +6 -7
- package/lib/select/index.cjs +1 -1
- package/lib/select/index.js +1 -1
- package/lib/sequence/index.cjs +1 -1
- package/lib/sequence/index.js +1 -2
- package/lib/slicer/index.cjs +2 -2
- package/lib/slicer/index.js +3 -4
- package/lib/source/index.cjs +1 -1
- package/lib/source/index.js +29 -30
- package/lib/store/index.cjs +1 -1
- package/lib/store/index.js +12 -13
- package/lib/svg-path-data/index.cjs +3 -0
- package/lib/{utils/svg.d.ts → svg-path-data/index.d.ts} +1 -1
- package/lib/{path-data-polyfill-DgeDWYeI.js → svg-path-data/index.js} +201 -162
- package/lib/{tags-BoPv9fDr.js → tags-CMPg9ETZ.js} +233 -234
- package/lib/tags-Djb6mb1o.cjs +1 -0
- package/lib/theme/index.cjs +1 -1
- package/lib/theme/index.js +3 -4
- package/lib/ticker/index.cjs +1 -1
- package/lib/ticker/index.js +12 -13
- package/lib/tweaker/index.cjs +1 -1
- package/lib/tweaker/index.js +5 -6
- package/lib/utils/index.cjs +1 -1
- package/lib/utils/index.d.ts +0 -1
- package/lib/utils/index.js +125 -163
- package/lib/video/index.cjs +1 -1
- package/lib/video/index.js +4 -5
- package/lib/window-resizer/index.cjs +1 -1
- package/lib/window-resizer/index.js +6 -7
- package/package.json +9 -1
- package/lib/Damped-CbWlWAbx.cjs +0 -1
- package/lib/SourceManager-BFSCX4Q8.cjs +0 -1
- package/lib/Store-BQGNOHlY.cjs +0 -1
- package/lib/Viewport-DhKPH5nw.cjs +0 -1
- package/lib/createTheme-BSreUYge.cjs +0 -1
- package/lib/createTheme-u3NsrEV6.js +0 -16
- package/lib/index-CSo_PnUP.js +0 -314
- package/lib/index-pPxbZLWQ.cjs +0 -9
- package/lib/path-data-polyfill-CXsOR7Oc.cjs +0 -3
- package/lib/tags-CueX-JLX.cjs +0 -1
package/lib/popover/index.js
CHANGED
|
@@ -1,15 +1,13 @@
|
|
|
1
|
-
import { Attribute as
|
|
1
|
+
import { Attribute as x } from "../attribute/index.js";
|
|
2
2
|
import { CustomElement as N, define as q } from "../custom-element/index.js";
|
|
3
|
-
import { S as H } from "../Store-
|
|
3
|
+
import { S as H } from "../Store-BQXXikps.js";
|
|
4
4
|
import { a as R } from "../style-CklEF62D.js";
|
|
5
|
-
import "../
|
|
6
|
-
import {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
var K = Object.defineProperty, Q = Object.getOwnPropertyDescriptor, V = (e, t, s, o) => {
|
|
10
|
-
for (var a = o > 1 ? void 0 : o ? Q(t, s) : t, d = e.length - 1, v; d >= 0; d--)
|
|
5
|
+
import { i as b } from "../browser-0zX67oeU.js";
|
|
6
|
+
import { e as K } from "../tags-CMPg9ETZ.js";
|
|
7
|
+
var U = Object.defineProperty, z = Object.getOwnPropertyDescriptor, F = (e, t, s, o) => {
|
|
8
|
+
for (var a = o > 1 ? void 0 : o ? z(t, s) : t, d = e.length - 1, v; d >= 0; d--)
|
|
11
9
|
(v = e[d]) && (a = (o ? v(t, s, a) : v(a)) || a);
|
|
12
|
-
return o && a &&
|
|
10
|
+
return o && a && U(t, s, a), a;
|
|
13
11
|
}, A = (e, t, s) => {
|
|
14
12
|
if (!t.has(e))
|
|
15
13
|
throw TypeError("Cannot " + s);
|
|
@@ -17,40 +15,40 @@ var K = Object.defineProperty, Q = Object.getOwnPropertyDescriptor, V = (e, t, s
|
|
|
17
15
|
if (t.has(e))
|
|
18
16
|
throw TypeError("Cannot add the same private member more than once");
|
|
19
17
|
t instanceof WeakSet ? t.add(e) : t.set(e, s);
|
|
20
|
-
}, O = (e, t, s, o) => (A(e, t, "write to private field"), o ? o.call(e, s) : t.set(e, s), s),
|
|
18
|
+
}, O = (e, t, s, o) => (A(e, t, "write to private field"), o ? o.call(e, s) : t.set(e, s), s), D = (e, t, s) => (A(e, t, "access private method"), s), S, c, E, l, _, g, $, B, u, m, L, y, C, P, w;
|
|
21
19
|
let h = class extends N {
|
|
22
20
|
constructor() {
|
|
23
|
-
super(...arguments), p(this, $), p(this, u), p(this, C), p(this,
|
|
21
|
+
super(...arguments), p(this, $), p(this, u), p(this, C), p(this, S, -1), p(this, c, new H(!1)), p(this, E, void 0), p(this, l, new x(this, "history", !1)), p(this, _, new x(this, "single", !1)), p(this, g, !1), this.open = (e = !0) => {
|
|
24
22
|
if (i(this, c).current)
|
|
25
23
|
return;
|
|
26
|
-
i(this, c).current = !0, i(this, _).current && (h.__opened.forEach((s) => s.close()), h.__opened = []), h.__opened.push(this), O(this,
|
|
24
|
+
i(this, c).current = !0, i(this, _).current && (h.__opened.forEach((s) => s.close()), h.__opened = []), h.__opened.push(this), O(this, S, h.__opened.length - 1), i(this, l).current && i(this, g) && history.pushState("", "", i(this, $, B)), clearTimeout(i(this, E)), this.classList.add("triggered"), this.style.display = "block", this.dispatchEvent(new CustomEvent("popoverTriggered"));
|
|
27
25
|
const t = () => {
|
|
28
|
-
addEventListener("click", i(this,
|
|
26
|
+
addEventListener("click", i(this, L)), addEventListener("keydown", i(this, y)), this.style.opacity = "1", this.classList.add("opened"), this.dispatchEvent(new CustomEvent("popoverOpened"));
|
|
29
27
|
};
|
|
30
28
|
e ? setTimeout(t) : t();
|
|
31
29
|
}, this.close = () => {
|
|
32
30
|
if (i(this, c).current) {
|
|
33
31
|
if (i(this, c).current = !1, h.__opened = h.__opened.filter((e) => e !== this), i(this, l).current) {
|
|
34
32
|
const e = new URL(location.href);
|
|
35
|
-
e.searchParams.delete(i(this, u,
|
|
33
|
+
e.searchParams.delete(i(this, u, m)), history.replaceState(null, "", e.href);
|
|
36
34
|
}
|
|
37
|
-
this.classList.remove("opened"), this.style.opacity = "0", this.dispatchEvent(new CustomEvent("popoverClosing")), removeEventListener("click", i(this,
|
|
35
|
+
this.classList.remove("opened"), this.style.opacity = "0", this.dispatchEvent(new CustomEvent("popoverClosing")), removeEventListener("click", i(this, L)), removeEventListener("keydown", i(this, y)), setTimeout(() => {
|
|
38
36
|
this.classList.remove("triggered"), this.style.display = "none", this.dispatchEvent(new CustomEvent("popoverClosed"));
|
|
39
37
|
}, R(this));
|
|
40
38
|
}
|
|
41
|
-
}, p(this,
|
|
42
|
-
|
|
39
|
+
}, p(this, L, (e) => {
|
|
40
|
+
D(this, C, P).call(this, () => {
|
|
43
41
|
const t = e.composedPath();
|
|
44
42
|
!t.find((s) => s === this) && !t.find(
|
|
45
43
|
(s) => s instanceof HTMLElement && s.closest("e-popover-button")
|
|
46
44
|
) && t[0] instanceof HTMLElement && !t[0].closest("[data-outside]") && this.close();
|
|
47
45
|
});
|
|
48
|
-
}), p(this,
|
|
49
|
-
|
|
46
|
+
}), p(this, y, (e) => {
|
|
47
|
+
D(this, C, P).call(this, () => {
|
|
50
48
|
e.code === "Escape" && this.close();
|
|
51
49
|
});
|
|
52
50
|
}), p(this, w, () => {
|
|
53
|
-
O(this,
|
|
51
|
+
O(this, g, !1), i(this, c).current && i(this, l).current && !location.search.includes(i(this, u, m)) ? this.close() : !i(this, c).current && i(this, l).current && location.search.includes(i(this, u, m)) && this.open(), O(this, g, !0);
|
|
54
52
|
});
|
|
55
53
|
}
|
|
56
54
|
get history() {
|
|
@@ -71,35 +69,35 @@ let h = class extends N {
|
|
|
71
69
|
i(this, l).unobserve(), i(this, _).unobserve(), h.__opened = h.__opened.filter((e) => e !== this), clearTimeout(i(this, E)), removeEventListener("popstate", i(this, w));
|
|
72
70
|
}
|
|
73
71
|
};
|
|
74
|
-
|
|
72
|
+
S = /* @__PURE__ */ new WeakMap();
|
|
75
73
|
c = /* @__PURE__ */ new WeakMap();
|
|
76
74
|
E = /* @__PURE__ */ new WeakMap();
|
|
77
75
|
l = /* @__PURE__ */ new WeakMap();
|
|
78
76
|
_ = /* @__PURE__ */ new WeakMap();
|
|
79
|
-
|
|
77
|
+
g = /* @__PURE__ */ new WeakMap();
|
|
80
78
|
$ = /* @__PURE__ */ new WeakSet();
|
|
81
79
|
B = function() {
|
|
82
|
-
return `${location.pathname}${location.search ? location.search + "&" : "?"}${i(this, u,
|
|
80
|
+
return `${location.pathname}${location.search ? location.search + "&" : "?"}${i(this, u, m)}`;
|
|
83
81
|
};
|
|
84
82
|
u = /* @__PURE__ */ new WeakSet();
|
|
85
|
-
|
|
83
|
+
m = function() {
|
|
86
84
|
return `modal-${this.id}`;
|
|
87
85
|
};
|
|
88
|
-
y = /* @__PURE__ */ new WeakMap();
|
|
89
86
|
L = /* @__PURE__ */ new WeakMap();
|
|
87
|
+
y = /* @__PURE__ */ new WeakMap();
|
|
90
88
|
C = /* @__PURE__ */ new WeakSet();
|
|
91
89
|
P = function(e) {
|
|
92
|
-
(h.__opened[i(this,
|
|
90
|
+
(h.__opened[i(this, S) - 1] || h.__opened.length === 1) && e();
|
|
93
91
|
};
|
|
94
92
|
w = /* @__PURE__ */ new WeakMap();
|
|
95
93
|
h.__opened = [];
|
|
96
|
-
h =
|
|
94
|
+
h = F([
|
|
97
95
|
q("e-popover")
|
|
98
96
|
], h);
|
|
99
|
-
var
|
|
100
|
-
for (var a = o > 1 ? void 0 : o ?
|
|
97
|
+
var J = Object.defineProperty, Q = Object.getOwnPropertyDescriptor, V = (e, t, s, o) => {
|
|
98
|
+
for (var a = o > 1 ? void 0 : o ? Q(t, s) : t, d = e.length - 1, v; d >= 0; d--)
|
|
101
99
|
(v = e[d]) && (a = (o ? v(t, s, a) : v(a)) || a);
|
|
102
|
-
return o && a &&
|
|
100
|
+
return o && a && J(t, s, a), a;
|
|
103
101
|
}, G = (e, t, s) => {
|
|
104
102
|
if (!t.has(e))
|
|
105
103
|
throw TypeError("Cannot " + s);
|
|
@@ -107,12 +105,7 @@ var X = Object.defineProperty, Y = Object.getOwnPropertyDescriptor, Z = (e, t, s
|
|
|
107
105
|
if (t.has(e))
|
|
108
106
|
throw TypeError("Cannot add the same private member more than once");
|
|
109
107
|
t instanceof WeakSet ? t.add(e) : t.set(e, s);
|
|
110
|
-
},
|
|
111
|
-
const ee = J({
|
|
112
|
-
button: {
|
|
113
|
-
all: "inherit"
|
|
114
|
-
}
|
|
115
|
-
});
|
|
108
|
+
}, X = (e, t, s, o) => (G(e, t, "write to private field"), o ? o.call(e, s) : t.set(e, s), s), n, k, W, M, T;
|
|
116
109
|
let I = class extends N {
|
|
117
110
|
constructor() {
|
|
118
111
|
super(), f(this, n, void 0), f(this, k, () => {
|
|
@@ -121,20 +114,19 @@ let I = class extends N {
|
|
|
121
114
|
this.classList.add("opened");
|
|
122
115
|
}), f(this, M, () => {
|
|
123
116
|
this.classList.remove("opened");
|
|
124
|
-
}), f(this,
|
|
117
|
+
}), f(this, T, () => {
|
|
125
118
|
this.classList.remove("triggered");
|
|
126
|
-
}),
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
]
|
|
119
|
+
}), b && K(this, {
|
|
120
|
+
tabindex: this.getAttribute("tabindex") || "0",
|
|
121
|
+
onClick: () => {
|
|
122
|
+
if (r(this, n)) {
|
|
123
|
+
const e = this.getAttribute("type") || "open";
|
|
124
|
+
e === "open" || e === "toggle" && !r(this, n).opened.current ? r(this, n).open() : (e === "close" || e === "toggle" && r(this, n).opened.current) && r(this, n).close();
|
|
125
|
+
}
|
|
126
|
+
},
|
|
127
|
+
onKeydown: (e) => {
|
|
128
|
+
e.code === "Space" && e.currentTarget.click();
|
|
129
|
+
}
|
|
138
130
|
});
|
|
139
131
|
}
|
|
140
132
|
get popoverElement() {
|
|
@@ -144,7 +136,7 @@ let I = class extends N {
|
|
|
144
136
|
const e = this.getAttribute("target");
|
|
145
137
|
if (e) {
|
|
146
138
|
const t = document.querySelector(`#${e}`) || this.getRootNode().querySelector(`#${e}`);
|
|
147
|
-
t ? (
|
|
139
|
+
t ? (X(this, n, t), r(this, n).addEventListener(
|
|
148
140
|
"popoverTriggered",
|
|
149
141
|
r(this, k)
|
|
150
142
|
), r(this, n).addEventListener(
|
|
@@ -155,7 +147,7 @@ let I = class extends N {
|
|
|
155
147
|
r(this, M)
|
|
156
148
|
), r(this, n).addEventListener(
|
|
157
149
|
"popoverClosed",
|
|
158
|
-
r(this,
|
|
150
|
+
r(this, T)
|
|
159
151
|
)) : console.warn(this, `target ${e} not found`);
|
|
160
152
|
}
|
|
161
153
|
}
|
|
@@ -171,7 +163,7 @@ let I = class extends N {
|
|
|
171
163
|
r(this, M)
|
|
172
164
|
), r(this, n).removeEventListener(
|
|
173
165
|
"popoverClosed",
|
|
174
|
-
r(this,
|
|
166
|
+
r(this, T)
|
|
175
167
|
));
|
|
176
168
|
}
|
|
177
169
|
};
|
|
@@ -179,8 +171,8 @@ n = /* @__PURE__ */ new WeakMap();
|
|
|
179
171
|
k = /* @__PURE__ */ new WeakMap();
|
|
180
172
|
W = /* @__PURE__ */ new WeakMap();
|
|
181
173
|
M = /* @__PURE__ */ new WeakMap();
|
|
182
|
-
|
|
183
|
-
I =
|
|
174
|
+
T = /* @__PURE__ */ new WeakMap();
|
|
175
|
+
I = V([
|
|
184
176
|
q("e-popover-button")
|
|
185
177
|
], I);
|
|
186
178
|
export {
|
package/lib/resized/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var l=(e,s,r)=>{if(!s.has(e))throw TypeError("Cannot "+r)};var c=(e,s,r)=>(l(e,s,"read from private field"),r?r.call(e):s.get(e)),n=(e,s,r)=>{if(s.has(e))throw TypeError("Cannot add the same private member more than once");s instanceof WeakSet?s.add(e):s.set(e,r)},d=(e,s,r,i)=>(l(e,s,"write to private field"),i?i.call(e,r):s.set(e,r),r);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const b=require("../element-resizer/index.cjs"),z=require("../Store-
|
|
1
|
+
"use strict";var l=(e,s,r)=>{if(!s.has(e))throw TypeError("Cannot "+r)};var c=(e,s,r)=>(l(e,s,"read from private field"),r?r.call(e):s.get(e)),n=(e,s,r)=>{if(s.has(e))throw TypeError("Cannot add the same private member more than once");s instanceof WeakSet?s.add(e):s.set(e,r)},d=(e,s,r,i)=>(l(e,s,"write to private field"),i?i.call(e,r):s.set(e,r),r);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const b=require("../element-resizer/index.cjs"),z=require("../Store-C-1ruEIm.cjs"),h=require("../window-resizer/index.cjs");var t,u;class a extends z.Store{constructor(r,i){super(r(),i);n(this,t,void 0);n(this,u,()=>{this.current=c(this,t).call(this)});d(this,t,r),(i==null?void 0:i.dispatcher)instanceof Element?b.elementResizer.subscribe(i.dispatcher,c(this,u)):h.windowResizer.subscribe(c(this,u))}close(){super.close(),h.windowResizer.unsubscribe(c(this,t)),b.elementResizer.unsubscribe(c(this,t))}}t=new WeakMap,u=new WeakMap;exports.Resized=a;
|
package/lib/resized/index.js
CHANGED
|
@@ -6,26 +6,25 @@ var c = (e, s, r) => (h(e, s, "read from private field"), r ? r.call(e) : s.get(
|
|
|
6
6
|
if (s.has(e))
|
|
7
7
|
throw TypeError("Cannot add the same private member more than once");
|
|
8
8
|
s instanceof WeakSet ? s.add(e) : s.set(e, r);
|
|
9
|
-
},
|
|
10
|
-
import { elementResizer as
|
|
11
|
-
import { S as d } from "../Store-
|
|
12
|
-
import "../path-data-polyfill-DgeDWYeI.js";
|
|
9
|
+
}, l = (e, s, r, i) => (h(e, s, "write to private field"), i ? i.call(e, r) : s.set(e, r), r);
|
|
10
|
+
import { elementResizer as m } from "../element-resizer/index.js";
|
|
11
|
+
import { S as d } from "../Store-BQXXikps.js";
|
|
13
12
|
import { windowResizer as a } from "../window-resizer/index.js";
|
|
14
13
|
var t, u;
|
|
15
|
-
class
|
|
14
|
+
class o extends d {
|
|
16
15
|
constructor(r, i) {
|
|
17
16
|
super(r(), i);
|
|
18
17
|
b(this, t, void 0);
|
|
19
18
|
b(this, u, () => {
|
|
20
19
|
this.current = c(this, t).call(this);
|
|
21
20
|
});
|
|
22
|
-
|
|
21
|
+
l(this, t, r), (i == null ? void 0 : i.dispatcher) instanceof Element ? m.subscribe(i.dispatcher, c(this, u)) : a.subscribe(c(this, u));
|
|
23
22
|
}
|
|
24
23
|
close() {
|
|
25
|
-
super.close(), a.unsubscribe(c(this, t)),
|
|
24
|
+
super.close(), a.unsubscribe(c(this, t)), m.unsubscribe(c(this, t));
|
|
26
25
|
}
|
|
27
26
|
}
|
|
28
27
|
t = new WeakMap(), u = new WeakMap();
|
|
29
28
|
export {
|
|
30
|
-
|
|
29
|
+
o as Resized
|
|
31
30
|
};
|
package/lib/router/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var X=(n,t)=>(t=Symbol[n])?t:Symbol.for("Symbol."+n);var z=(n,t,s)=>{if(!t.has(n))throw TypeError("Cannot "+s)};var e=(n,t,s)=>(z(n,t,"read from private field"),s?s.call(n):t.get(n)),r=(n,t,s)=>{if(t.has(n))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(n):t.set(n,s)},o=(n,t,s,i)=>(z(n,t,"write to private field"),i?i.call(n,s):t.set(n,s),s);var F=(n,t,s)=>(z(n,t,"access private method"),s);var B=(n,t,s)=>new Promise((i,u)=>{var h=f=>{try{d(s.next(f))}catch(T){u(T)}},a=f=>{try{d(s.throw(f))}catch(T){u(T)}},d=f=>f.done?i(f.value):Promise.resolve(f.value).then(h,a);d((s=s.apply(n,t)).next())});var G=(n,t,s)=>(t=n[X("asyncIterator")])?t.call(n):(n=n[X("iterator")](),t={},s=(i,u)=>(u=n[i])&&(t[i]=h=>new Promise((a,d,f)=>(h=u.call(n,h),f=h.done,Promise.resolve(h.value).then(T=>a({value:T,done:f}),d)))),s("next"),s("return"),t);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const tt=require("urlpattern-polyfill"),et=require("../notifier/index.cjs"),Z=require("../browser-CpzFX2xg.cjs"),st=require("../function-MthRj-GJ.cjs")
|
|
1
|
+
"use strict";var X=(n,t)=>(t=Symbol[n])?t:Symbol.for("Symbol."+n);var z=(n,t,s)=>{if(!t.has(n))throw TypeError("Cannot "+s)};var e=(n,t,s)=>(z(n,t,"read from private field"),s?s.call(n):t.get(n)),r=(n,t,s)=>{if(t.has(n))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(n):t.set(n,s)},o=(n,t,s,i)=>(z(n,t,"write to private field"),i?i.call(n,s):t.set(n,s),s);var F=(n,t,s)=>(z(n,t,"access private method"),s);var B=(n,t,s)=>new Promise((i,u)=>{var h=f=>{try{d(s.next(f))}catch(T){u(T)}},a=f=>{try{d(s.throw(f))}catch(T){u(T)}},d=f=>f.done?i(f.value):Promise.resolve(f.value).then(h,a);d((s=s.apply(n,t)).next())});var G=(n,t,s)=>(t=n[X("asyncIterator")])?t.call(n):(n=n[X("iterator")](),t={},s=(i,u)=>(u=n[i])&&(t[i]=h=>new Promise((a,d,f)=>(h=u.call(n,h),f=h.done,Promise.resolve(h.value).then(T=>a({value:T,done:f}),d)))),s("next"),s("return"),t);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const tt=require("urlpattern-polyfill"),et=require("../notifier/index.cjs"),Z=require("../browser-CpzFX2xg.cjs"),st=require("../function-MthRj-GJ.cjs"),it=require("../object-CCiXnER2.cjs");var b,O,R,m,l,v,S,p,P,y,I,_;class nt{constructor(t,s){r(this,I);r(this,b,void 0);r(this,O,void 0);r(this,R,void 0);r(this,m,void 0);r(this,l,void 0);r(this,v,void 0);r(this,S,void 0);r(this,p,null);r(this,P,[]);r(this,y,[]);o(this,b,t),o(this,O,s),o(this,R,new URLPattern({pathname:e(this,b)})),o(this,m,null),o(this,l,null),o(this,v,!1),o(this,S,null),Z.isBrowser&&o(this,p,new MutationObserver(i=>{i[0].addedNodes.forEach(h=>{e(this,m)?e(this,y).push(h):e(this,P).push(h)})}))}get pattern(){return e(this,b)}get urlPattern(){return e(this,R)}get isActive(){return e(this,v)}get element(){return e(this,l)}get nest(){return e(this,S)}testPathname(t){return this.urlPattern.test({pathname:t})}render(t,s){return B(this,null,function*(){var i,u;if(e(this,p).observe(document.head,{childList:!0,subtree:!0}),e(this,m))e(this,P).forEach(h=>{document.head.appendChild(h)});else{const h=yield e(this,O).call(this);if(o(this,y,[...e(this,P)]),typeof h.default=="function"&&(o(this,m,h.default),it.isESClass(h.default))){const a="e-"+((i=e(this,m))==null?void 0:i.name.toLowerCase());customElements.get(a)||customElements.define(a,h.default)}}if(yield F(this,I,_).call(this),e(this,m)){const h=e(this,R).exec({pathname:s}),a=(h==null?void 0:h.pathname.groups)||{},d=Object.fromEntries(new URLSearchParams(location.search)),f={pathnameParams:a,searchParams:d};o(this,l,new(e(this,m))(f)),t.appendChild(e(this,l)),o(this,S,e(this,l).querySelector("[data-nest]")||((u=e(this,l).shadowRoot)==null?void 0:u.querySelector("[data-nest]"))||e(this,l).shadowRoot||e(this,l)),o(this,v,!0)}e(this,p).disconnect()})}close(){var t;e(this,p).disconnect(),(t=e(this,l))==null||t.remove(),o(this,v,!1),e(this,y).forEach(s=>document.head.removeChild(s)),o(this,y,[])}getAnchorElements(){var s;let t=[];return e(this,l)&&(t=[...e(this,l).querySelectorAll("a")]),(s=e(this,l))!=null&&s.shadowRoot&&(t=[...t,...e(this,l).shadowRoot.querySelectorAll("a")]),t}}b=new WeakMap,O=new WeakMap,R=new WeakMap,m=new WeakMap,l=new WeakMap,v=new WeakMap,S=new WeakMap,p=new WeakMap,P=new WeakMap,y=new WeakMap,I=new WeakSet,_=function(){return B(this,null,function*(){const t=e(this,P).filter(a=>a instanceof HTMLElement?a.tagName==="STYLE"||a.tagName==="SCRIPT"||a.tagName==="LINK":!1);try{for(var s=G(t),i,u,h;i=!(u=yield s.next()).done;i=!1){const a=u.value;yield new Promise(d=>{a.onload=()=>{d()}})}}catch(u){h=[u]}finally{try{i&&(u=s.return)&&(yield u.call(s))}finally{if(h)throw h[0]}}})};var H,g,A,U,j;class rt{constructor(t,s){r(this,H,void 0);r(this,g,void 0);r(this,A,void 0);r(this,U,void 0);r(this,j,t=>{t.preventDefault(),e(this,H).navigate(e(this,A),e(this,U))});o(this,H,t),o(this,g,s),o(this,A,e(this,g).getAttribute("href")||"/"),o(this,U,e(this,g).getAttribute("data-history-action")||"push"),e(this,g).addEventListener("click",e(this,j)),location.pathname===e(this,A)&&e(this,g).classList.add("current")}destroy(){e(this,g).removeEventListener("click",e(this,j)),e(this,g).classList.remove("current")}}H=new WeakMap,g=new WeakMap,A=new WeakMap,U=new WeakMap,j=new WeakMap;globalThis.URLPattern=tt.URLPattern;var k,q,w,N,M,E,C,x,D,K,$,W;const Y=class Y{constructor(t){r(this,K);r(this,k,null);r(this,q,void 0);r(this,w,[]);r(this,N,null);r(this,M,[]);r(this,E,void 0);r(this,C,null);r(this,x,new et.Notifier);r(this,D,st.debounce(()=>{const t=s=>s.split("/").length;o(this,w,e(this,w).sort((s,i)=>t(s.pattern)-t(i.pattern))),this.navigate(location.pathname.replace(e(this,q),""))},0));r(this,W,t=>{t.state&&this.navigate(t.state,"none")});o(this,q,(t==null?void 0:t.base)||""),Y.active=this,Z.isBrowser&&(o(this,k,(t==null?void 0:t.rootElement)||document.body),addEventListener("popstate",e(this,W)))}get currentPathname(){return e(this,C)}get candidatePathname(){return e(this,E)}get routes(){return e(this,w)}navigationEvent(t){return e(this,x).subscribe(t)}defineRoute(t,s){const i=new nt(t,s);e(this,w).push(i),e(this,D).call(this)}navigate(t,s="push"){return B(this,null,function*(){var f,Q;if(e(this,E)===t||e(this,C)===t)return;Y.active=this,o(this,E,t);const i=e(this,w).filter(c=>c.isActive),u=e(this,w).filter(c=>!i.includes(c)&&c.testPathname(t)),h=i.filter(c=>!c.testPathname(t)),a=i.filter(c=>c.testPathname(t));let d=!0;if(this.preprocessor)try{yield new Promise((c,L)=>{var V;(V=this.preprocessor)==null||V.call(this,{pathname:t,resolve:c,reject:L})})}catch(c){c?console.error(c):console.log("Route change canceled"),d=!1}if(d&&e(this,E)===t){o(this,N,a[a.length-1]),h.forEach(L=>{L.close()}),o(this,C,t);try{for(var T=G(u),at,ct,lt;at=!(ct=yield T.next()).done;at=!1){const L=ct.value;yield L.render(((f=e(this,N))==null?void 0:f.nest)||e(this,k),t),o(this,N,L)}}catch(ct){lt=[ct]}finally{try{at&&(ct=T.return)&&(yield ct.call(T))}finally{if(lt)throw lt[0]}}const c=e(this,q)+t+location.search;s==="push"?history.pushState(c,"",c):s==="replace"&&history.replaceState(c,"",c),F(this,K,$).call(this),(Q=this.postprocessor)==null||Q.call(this,{pathname:t}),e(this,x).notify({pathname:t})}})}};k=new WeakMap,q=new WeakMap,w=new WeakMap,N=new WeakMap,M=new WeakMap,E=new WeakMap,C=new WeakMap,x=new WeakMap,D=new WeakMap,K=new WeakSet,$=function(){const t=e(this,w).filter(i=>i.isActive),s=Array.from(new Set([...e(this,k).querySelectorAll("a"),...t.map(i=>i.getAnchorElements()).flat()].filter(i=>{var u;return(u=i.getAttribute("href"))==null?void 0:u.startsWith("/")})));e(this,M).forEach(i=>{i.destroy()}),o(this,M,s.map(i=>new rt(this,i)))},W=new WeakMap;let J=Y;exports.Router=J;
|
package/lib/router/index.js
CHANGED
|
@@ -30,7 +30,6 @@ import { URLPattern as tt } from "urlpattern-polyfill";
|
|
|
30
30
|
import { Notifier as et } from "../notifier/index.js";
|
|
31
31
|
import { i as X } from "../browser-0zX67oeU.js";
|
|
32
32
|
import { d as st } from "../function-C10DGppn.js";
|
|
33
|
-
import "../path-data-polyfill-DgeDWYeI.js";
|
|
34
33
|
import { i as it } from "../object-D6MVWB4l.js";
|
|
35
34
|
var R, U, b, m, l, w, A, v, P, E, B, Z;
|
|
36
35
|
class nt {
|
|
@@ -215,18 +214,18 @@ const Y = class Y {
|
|
|
215
214
|
y.close();
|
|
216
215
|
}), o(this, q, t);
|
|
217
216
|
try {
|
|
218
|
-
for (var T = F(u), gt, pt
|
|
219
|
-
const y =
|
|
217
|
+
for (var T = F(u), mt, gt, pt; mt = !(gt = yield T.next()).done; mt = !1) {
|
|
218
|
+
const y = gt.value;
|
|
220
219
|
yield y.render(((f = e(this, C)) == null ? void 0 : f.nest) || e(this, k), t), o(this, C, y);
|
|
221
220
|
}
|
|
222
|
-
} catch (
|
|
223
|
-
|
|
221
|
+
} catch (gt) {
|
|
222
|
+
pt = [gt];
|
|
224
223
|
} finally {
|
|
225
224
|
try {
|
|
226
|
-
|
|
225
|
+
mt && (gt = T.return) && (yield gt.call(T));
|
|
227
226
|
} finally {
|
|
228
|
-
if (
|
|
229
|
-
throw
|
|
227
|
+
if (pt)
|
|
228
|
+
throw pt[0];
|
|
230
229
|
}
|
|
231
230
|
}
|
|
232
231
|
const c = e(this, N) + t + location.search;
|
package/lib/scroll/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var ms=(r,e,i)=>{if(!e.has(r))throw TypeError("Cannot "+i)};var o=(r,e,i)=>(ms(r,e,"read from private field"),i?i.call(r):e.get(r)),V=(r,e,i)=>{if(e.has(r))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(r):e.set(r,i)},F=(r,e,i,n)=>(ms(r,e,"write to private field"),n?n.call(r,i):e.set(r,i),i);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const Et=require("../Store-BQGNOHlY.cjs"),qs=require("../Derived-BZtlW0bB.cjs"),as=require("../browser-CpzFX2xg.cjs"),yt=require("../layout-8ryRAMGJ.cjs"),ls=require("../math-GDWEqu7y.cjs");require("../path-data-polyfill-CXsOR7Oc.cjs");require("../ticker/index.cjs");const Pe=require("../order/index.cjs"),ys=require("../Damped-CbWlWAbx.cjs"),xe=require("../controls/index.cjs"),_t=require("../custom-element/index.cjs"),ue=require("../window-resizer/index.cjs"),Gt=require("../scroll-entries/index.cjs"),I=require("../tags-CueX-JLX.cjs"),cs=require("../createStylesheet-C8aQQ4hd.cjs"),ws=require("../css-unit-parser/index.cjs"),u=require("../css-property/index.cjs"),Ts=require("../Viewport-DhKPH5nw.cjs"),Ge=require("../element-resizer/index.cjs"),Bs=require("../gestures-DHLrn6Q8.cjs"),bs=require("../theme/index.cjs"),Is=require("../dom-JBOkFLTh.cjs"),_s=require("../function-MthRj-GJ.cjs");var As=Object.defineProperty,Hs=Object.getOwnPropertyDescriptor,Gs=(r,e,i,n)=>{for(var h=n>1?void 0:n?Hs(e,i):e,c=r.length-1,S;c>=0;c--)(S=r[c])&&(h=(n?S(e,i,h):S(h))||h);return n&&h&&As(e,i,h),h},us=(r,e,i)=>{if(!e.has(r))throw TypeError("Cannot "+i)},t=(r,e,i)=>(us(r,e,"read from private field"),i?i.call(r):e.get(r)),a=(r,e,i)=>{if(e.has(r))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(r):e.set(r,i)},C=(r,e,i,n)=>(us(r,e,"write to private field"),n?n.call(r,i):e.set(r,i),i),v=(r,e,i)=>(us(r,e,"access private method"),i),d,Nt,R,it,rt,Y,nt,kt,Wt,Q,T,Kt,Zt,Jt,Qt,fe,lt,Xt,Mt,X,Rt,vt,Yt,jt,b,Ue,p,Le,ze,W,y,B,j,Bt,mt,$,P,de,xt,pe,Se,oe,_e,It,ae,Ne,ps,Ke,Ss,Ve,Qe,Oe,Xe,A,Ze,Ye,Ps,ve,$e,De,je,ct,qt,ts,Es,g,_,Ht,et,gt;class Us{constructor(e,i){V(this,g,void 0);V(this,_,void 0);V(this,Ht,0);V(this,et,0);V(this,gt,null);F(this,g,e),F(this,_,i),Gt.scrollEntries.register(o(this,g))}get size(){return o(this,Ht)}get position(){return o(this,et)}destroy(){Gt.scrollEntries.unregister(o(this,g)),o(this,g).style.transform="",this.mark(null)}setSize(e){e?(o(this,g).style.setProperty("--size",e+"px"),o(this,_).axisCSSProperty.current==="x"?(o(this,g).style.width=e+"px",o(this,g).style.height=""):(o(this,g).style.height=e+"px",o(this,g).style.width="")):(o(this,g).style.width="",o(this,g).style.height="",o(this,g).style.removeProperty("--size"))}resize(){F(this,Ht,o(this,_).vertical?o(this,g).offsetHeight:o(this,g).offsetWidth),F(this,et,o(this,_).vertical?yt.getCumulativeOffsetTop(o(this,g)):yt.getCumulativeOffsetLeft(o(this,g))),F(this,et,o(this,et)-o(this,_).contentPosition)}transform(){let e=0;const i=o(this,_).viewportSize*o(this,_).sectionDistanceScaleCSSProperty.current;o(this,_).infiniteCSSProperty.current&&o(this,_).overscroll&&o(this,et)+o(this,Ht)<o(this,_).currentScrollValue&&(e=o(this,_).distance*-1-o(this,_).gap),Gt.scrollEntries.update(o(this,g),o(this,_).axisCSSProperty.current,e);const n=o(this,_).currentScrollValue+e,h=o(this,et)-o(this,_).viewportSize-i,c=o(this,et)+o(this,Ht)+i,S=ls.clamp(n,h,c);o(this,_).vertical?o(this,g).style.transform=`translate3d(0px, ${S*-1}px, 0px)`:o(this,g).style.transform=`translate3d(${S*-1}px, 0px, 0px)`}mark(e){o(this,gt)!==e&&(o(this,gt)&&o(this,g).classList.remove(o(this,gt)),e&&o(this,g).classList.add(e),F(this,gt,e),o(this,g).dispatchEvent(new CustomEvent("sectionsChange",{composed:!0,detail:{mark:o(this,gt)}})))}}g=new WeakMap,_=new WeakMap,Ht=new WeakMap,et=new WeakMap,gt=new WeakMap;const Ns=cs.createStylesheet({":host":{position:"relative",width:"100%",height:"100%",display:"block",outline:"none"},':host([hibernated="true"])':{display:"contents"},".static":{position:"var(--static-position, absolute)",top:"var(--static-top, 0)",left:"var(--static-left, 0)",width:"var(--static-width, 100%)",height:"var(--static-height, 100%)"},".content":{position:"relative",display:"flex",width:"100%",height:"100%",gap:"var(--gap, 0px)",willChange:"var(--will-change, transform)"},':host([hibernated="true"]) .content':{display:"contents"},"::slotted(*)":{flexShrink:"0"}});exports.ScrollElement=class extends _t.CustomElement{constructor(){super(),a(this,oe),a(this,It),a(this,Ne),a(this,Ke),a(this,Ve),a(this,Oe),a(this,Ye),a(this,De),a(this,ct),a(this,ts),a(this,d,null),a(this,Nt,new u.CSSProperty(this,"--controls",!0)),a(this,R,new u.CSSProperty(this,"--axis","y")),a(this,it,new u.CSSProperty(this,"--direction",0)),a(this,rt,new u.CSSProperty(this,"--pages",0,{validate:e=>Math.max(0,e-1)})),a(this,Y,new u.CSSProperty(this,"--split",!1)),a(this,nt,new u.CSSProperty(this,"--sectional",!1)),a(this,kt,new u.CSSProperty(this,"--auto-size",!1)),a(this,Wt,new u.CSSProperty(this,"--wheel-max-delta",!1)),a(this,Q,new u.CSSProperty(this,"--sections-in-view",1)),a(this,T,new u.CSSProperty(this,"--infinite",!1)),a(this,Kt,new u.CSSProperty(this,"--damping",20)),a(this,Zt,new u.CSSProperty(this,"--mass",0)),a(this,Jt,new u.CSSProperty(this,"--stiffness",0)),a(this,Qt,new u.CSSProperty(this,"--mouse-drag",!1)),a(this,fe,new u.CSSProperty(this,"--section-distance-scale",.5)),a(this,lt,new u.CSSProperty(this,"--autoplay",0)),a(this,Xt,new u.CSSProperty(this,"--autoplay-pause-duration",0)),a(this,Mt,new u.CSSProperty(this,"--autoplay-user-direction",!1)),a(this,X,new u.CSSProperty(this,"--classes",0)),a(this,Rt,new u.CSSProperty(this,"--current-index-start-offset",0)),a(this,vt,new u.CSSProperty(this,"--current-index-end-offset",0)),a(this,Yt,new u.CSSProperty(this,"--disabled",!1)),a(this,jt,new u.CSSProperty(this,"--hibernated",!1)),a(this,b,null),a(this,Ue,null),a(this,p,[]),a(this,Le,0),a(this,ze,0),a(this,W,0),a(this,y,0),a(this,B,0),a(this,j,null),a(this,Bt,null),a(this,mt,null),a(this,$,null),a(this,P,new Et.Store(0)),a(this,de,0),a(this,xt,0),a(this,pe,!0),a(this,Se,!0),a(this,A,()=>{t(this,d).unlistenAnimationFrame();const e=this.currentScrollValue/t(this,y)||0,i=t(this,P).current;if(C(this,Le,this.vertical?yt.getCumulativeOffsetTop(this):yt.getCumulativeOffsetLeft(this)),C(this,ze,this.vertical?yt.getCumulativeOffsetTop(t(this,b)):yt.getCumulativeOffsetLeft(t(this,b))),C(this,W,this.vertical?this.offsetHeight:this.offsetWidth),this.vertical?C(this,B,ws.cssUnitParser.parse(getComputedStyle(t(this,b)).rowGap)):C(this,B,ws.cssUnitParser.parse(getComputedStyle(t(this,b)).columnGap)),t(this,kt).current&&t(this,p).length){const n=t(this,Q).current,h=(t(this,W)-t(this,B)*(n-1))/n;t(this,p).forEach(c=>{c.setSize(h)})}else t(this,p).forEach(n=>{n.setSize()});if(t(this,p).forEach(n=>{n.resize()}),t(this,rt).current){C(this,y,t(this,W)*t(this,rt).current);const n=t(this,y)+t(this,W);this.vertical?(t(this,b).style.width=n+"px",t(this,b).style.height="100%"):(t(this,b).style.height=n+"px",t(this,b).style.width="100%")}else this.vertical?(t(this,b).style.width="100%",t(this,b).style.height="max-content",C(this,y,t(this,b).offsetHeight-t(this,W))):(t(this,b).style.width="max-content",t(this,b).style.height="100%",C(this,y,t(this,b).offsetWidth-t(this,W)));if(!t(this,T).current){const n=getComputedStyle(this),h=this.vertical?parseFloat(n.paddingBlockStart)+parseFloat(n.paddingBlockEnd):parseFloat(n.paddingInlineStart)+parseFloat(n.paddingInlineEnd);C(this,y,t(this,y)+h),t(this,d).max=t(this,y)}if(t(this,T).current&&t(this,p).length){const n=t(this,p)[t(this,p).length-1],h=n.position+n.size-t(this,W),c=t(this,y)-h;C(this,xt,n.position+n.size+c)}else C(this,xt,t(this,y));if(t(this,nt).current&&t(this,p).length){const n=t(this,p)[i];t(this,d).set(n.position,{equalize:!0})}else t(this,d).set(e*t(this,y),{equalize:!0})}),a(this,Ze,()=>{const e=this.currentScrollValue;if(C(this,de,Math.max(0,e-t(this,y))),t(this,p).length){let i=0;for(let n=0;n<t(this,p).length;n++){const h=t(this,p)[n];h.transform(),this.targetScrollValue+h.size/2>=h.position&&(i=n)}t(this,P).current=i}else this.vertical?t(this,b).style.transform=`translate3d(0px, ${e*-1}px, 0px)`:t(this,b).style.transform=`translate3d(${e*-1}px, 0px, 0px)`;Gt.scrollEntries.update(this,t(this,R).current,e)}),a(this,ve,(e,i)=>{t(this,Nt).current&&(t(this,$).pauseAndContinue(t(this,Xt).current),t(this,Mt).current&&(t(this,$).direction=Math.sign(i)||1),t(this,$e).call(this,e,i))}),a(this,$e,(e,i)=>{if(t(this,it).current){if(t(this,it).current<0&&i>0)return;if(t(this,it).current>0&&i<0)return}if(!(e==="drag"&&!Ts.device.isMobile&&!t(this,Qt).current))if(t(this,nt).current){const n=Math.sign(i);t(this,p).length?this.shiftSections(n):t(this,d).shift(n*t(this,W))}else t(this,d).shift(i)}),as.isBrowser&&(C(this,d,new ys.Damped(0,{damping:.01,min:0,order:Pe.TICK_ORDER.SCROLL})),this.openShadow(Ns),I.element(this,{tabIndex:0,children:[I.div({class:"static",children:[I.slot({name:"static"})]}),I.div({class:"content",children:[I.slot({ref:e=>C(this,Ue,e)})],style:{flexDirection:new qs.Derived(t(this,R),e=>e==="x"?"row":"column")},ref:e=>C(this,b,e)})]}),C(this,j,new xe.WheelControls({element:t(this,b)})),t(this,j).changeEvent.subscribe(t(this,ve)),C(this,Bt,new xe.KeyboardControls({element:this})),t(this,Bt).changeEvent.subscribe(t(this,ve)),C(this,mt,new xe.DragControls({element:t(this,b)})),t(this,mt).changeEvent.subscribe(t(this,ve)),C(this,$,new xe.AutoplayControls),t(this,$).changeEvent.subscribe(t(this,$e)),t(this,R).subscribe(({current:e})=>{t(this,b).style.flexDirection=e==="x"?"row":"column",t(this,j).axis=t(this,Wt).current?"max":e,t(this,Bt).dimension=e==="x"?"width":"height",t(this,mt).axis=e,e==="x"?this.style.touchAction="pan-y":e==="y"&&(this.style.touchAction="pan-x"),this.isConnected&&t(this,A).call(this)}),t(this,Wt).subscribe(e=>{t(this,j).axis=e.current?"max":t(this,R).current}),t(this,rt).subscribe(()=>{this.isConnected&&t(this,A).call(this)}),t(this,Y).subscribe(({current:e})=>{this.isConnected&&(e?v(this,oe,_e).call(this):v(this,It,ae).call(this))}),t(this,nt).subscribe(e=>{t(this,j).debounce=e.current,t(this,mt).swipe=e.current,t(this,$).interval=e.current,this.isConnected&&(e.current&&!e.previous&&!t(this,p).length?v(this,oe,_e).call(this):!e.current&&e.previous&&t(this,p).length&&v(this,It,ae).call(this))}),t(this,kt).subscribe(e=>{this.isConnected&&(t(this,A).call(this),e.current&&!e.previous&&!t(this,p).length?v(this,oe,_e).call(this):!e.current&&e.previous&&t(this,p).length&&v(this,It,ae).call(this))}),t(this,Q).subscribe(e=>{this.isConnected&&(t(this,A).call(this),v(this,ct,qt).call(this))}),t(this,T).subscribe(e=>{e.current?(this.isConnected&&(t(this,p).length||(t(this,Y).current=!0)),t(this,p).length&&(t(this,d).max=1/0,t(this,d).min=-1/0)):(C(this,de,0),t(this,d).max=t(this,y),t(this,d).min=0)}),t(this,Kt).subscribe(e=>{t(this,d).damping=e.current}),t(this,Zt).subscribe(e=>{t(this,d).mass=e.current}),t(this,Jt).subscribe(e=>{t(this,d).stiffness=e.current}),t(this,Yt).subscribe(e=>{e.current&&!e.previous?v(this,Ne,ps).call(this):!e.current&&e.previous&&v(this,Ke,Ss).call(this)}),t(this,jt).subscribe(e=>{e.current&&!e.previous?v(this,Ve,Qe).call(this):!e.current&&e.previous&&v(this,Oe,Xe).call(this)}),t(this,lt).subscribe(e=>{t(this,$).speed=e.current,e.current&&!e.previous?t(this,$).connect():!e.current&&e.previous&&t(this,$).disconnect()}),t(this,Mt).subscribe(e=>{e.current||(t(this,$).direction=1)}),t(this,X).subscribe(e=>{this.isConnected&&v(this,ct,qt).call(this)}),t(this,Rt).subscribe(e=>{this.isConnected&&t(this,X).current&&v(this,ct,qt).call(this)}),t(this,vt).subscribe(e=>{this.isConnected&&t(this,X).current&&v(this,ct,qt).call(this)}),t(this,d).isRunning.subscribe(e=>{this.classList.toggle("active",e.current)}),t(this,P).subscribe(e=>{t(this,p).length&&v(this,ct,qt).call(this)}))}get damped(){return t(this,d)}get controlsCSSProperty(){return t(this,Nt)}get axisCSSProperty(){return t(this,R)}get directionCSSProperty(){return t(this,it)}get pagesCSSProperty(){return t(this,rt)}get splitCSSProperty(){return t(this,Y)}get sectionalCSSProperty(){return t(this,nt)}get autoSizeCSSProperty(){return t(this,kt)}get wheelMaxDeltaCSSProperty(){return t(this,Wt)}get sectionsInViewCSSProperty(){return t(this,Q)}get infiniteCSSProperty(){return t(this,T)}get dampingCSSProperty(){return t(this,Kt)}get massCSSProperty(){return t(this,Zt)}get stiffnessCSSProperty(){return t(this,Jt)}get mouseDragCSSProperty(){return t(this,Qt)}get sectionDistanceScaleCSSProperty(){return t(this,fe)}get autoplayCSSProperty(){return t(this,lt)}get autoplayPauseDurationCSSProperty(){return t(this,Xt)}get autoplayUserDirectionCSSProperty(){return t(this,Mt)}get classesCSSProperty(){return t(this,X)}get currentIndexStartOffsetCSSProperty(){return t(this,Rt)}get currentIndexEndOffsetCSSProperty(){return t(this,vt)}get disabledCSSProperty(){return t(this,Yt)}get hibernatedCSSProperty(){return t(this,jt)}get currentScrollValue(){return v(this,De,je).call(this,"current")}get targetScrollValue(){return v(this,De,je).call(this,"target")}get contentElement(){return t(this,b)}get sections(){return t(this,p)}get position(){return t(this,Le)}get contentPosition(){return t(this,ze)}get viewportSize(){return t(this,W)}get scrollSize(){return t(this,y)}get gap(){return t(this,B)}get counter(){return t(this,P)}get limit(){return t(this,p).length-t(this,Q).current}get distance(){return t(this,xt)}get infiniteDistance(){return t(this,T).current?t(this,xt)+t(this,B):t(this,xt)}get overscroll(){return t(this,de)}get vertical(){return t(this,R).current==="y"}get currentProgress(){return this.currentScrollValue/this.infiniteDistance||0}get targetProgress(){return this.targetScrollValue/this.infiniteDistance||0}get scrollWidth(){return t(this,R).current==="y"?0:t(this,d).distance}get scrollHeight(){return t(this,R).current==="x"?0:t(this,d).distance}onScroll(...e){return t(this,d).subscribe(...e)}offScroll(...e){t(this,d).unsubscribe(...e)}range(e,i,n=0){const h=e-n,c=h+i+n*2;return this.currentProgress<h?0:this.currentProgress>c?1:(this.currentProgress-h)/(c-h)}curve(e,i,n=0){return Math.sin(this.range(e,i,n)*Math.PI)}visible(e,i,n=0){const h=e-n,c=h+i+n*2;return this.currentProgress>=h&&this.currentProgress<=c}scrollToSection(e,i="smooth"){if(!t(this,p).length)return;const n=t(this,P).current;v(this,Ye,Ps).call(this,e);const h=t(this,p)[n],c=t(this,p)[t(this,P).current];if(h&&c){let S=0;const Me=v(this,ts,Es).call(this),Rs=Me?this.targetScrollValue-Me.position:0;t(this,T).current?t(this,P).current===0&&n===t(this,p).length-1?S=t(this,y)+t(this,W)-h.position+t(this,B):t(this,P).current===t(this,p).length-1&&n===0?S=c.position-(t(this,y)+t(this,W)+t(this,B)):S=c.position-h.position:S=c.position-h.position,t(this,d).shift(S-Rs,{equalize:i==="instant"})}}shiftSections(e,i="smooth"){t(this,p).length&&this.scrollToSection(t(this,P).current+e,i)}setPosition(e,i="smooth"){t(this,d).set(e,{equalize:i==="instant"})}connectedCallback(){t(this,Nt).observe(),t(this,R).observe(),t(this,it).observe(),t(this,rt).observe(),t(this,Y).observe(),t(this,nt).observe(),t(this,kt).observe(),t(this,Wt).observe(),t(this,Q).observe(),t(this,T).observe(),t(this,Kt).observe(),t(this,Zt).observe(),t(this,Jt).observe(),t(this,Qt).observe(),t(this,fe).observe(),t(this,lt).observe(),t(this,lt).observe(),t(this,Xt).observe(),t(this,Mt).observe(),t(this,X).observe(),t(this,Rt).observe(),t(this,vt).observe(),t(this,Yt).observe(),t(this,jt).observe(),v(this,Oe,Xe).call(this)}disconnectedCallback(){t(this,Nt).unobserve(),t(this,R).unobserve(),t(this,it).unobserve(),t(this,rt).unobserve(),t(this,Y).unobserve(),t(this,nt).unobserve(),t(this,kt).unobserve(),t(this,Wt).unobserve(),t(this,Q).unobserve(),t(this,T).unobserve(),t(this,Kt).unobserve(),t(this,Zt).unobserve(),t(this,Jt).unobserve(),t(this,Qt).unobserve(),t(this,fe).unobserve(),t(this,lt).unobserve(),t(this,Xt).unobserve(),t(this,Mt).unobserve(),t(this,X).unobserve(),t(this,Rt).unobserve(),t(this,vt).unobserve(),t(this,Yt).unobserve(),t(this,jt).unobserve(),v(this,Ve,Qe).call(this)}};d=new WeakMap;Nt=new WeakMap;R=new WeakMap;it=new WeakMap;rt=new WeakMap;Y=new WeakMap;nt=new WeakMap;kt=new WeakMap;Wt=new WeakMap;Q=new WeakMap;T=new WeakMap;Kt=new WeakMap;Zt=new WeakMap;Jt=new WeakMap;Qt=new WeakMap;fe=new WeakMap;lt=new WeakMap;Xt=new WeakMap;Mt=new WeakMap;X=new WeakMap;Rt=new WeakMap;vt=new WeakMap;Yt=new WeakMap;jt=new WeakMap;b=new WeakMap;Ue=new WeakMap;p=new WeakMap;Le=new WeakMap;ze=new WeakMap;W=new WeakMap;y=new WeakMap;B=new WeakMap;j=new WeakMap;Bt=new WeakMap;mt=new WeakMap;$=new WeakMap;P=new WeakMap;de=new WeakMap;xt=new WeakMap;pe=new WeakMap;Se=new WeakMap;oe=new WeakSet;_e=function(){v(this,It,ae).call(this),t(this,Ue).assignedElements().forEach(r=>{r instanceof HTMLElement&&t(this,p).push(new Us(r,this))}),t(this,b).style.transform="",this.dispatchEvent(new CustomEvent("sectionsChange",{composed:!0})),t(this,A).call(this),v(this,ct,qt).call(this)};It=new WeakSet;ae=function(){t(this,p).forEach(r=>{r.destroy()}),C(this,p,[]),t(this,P).current=0,t(this,d).reset(),this.dispatchEvent(new CustomEvent("sectionsChange",{composed:!0}))};Ne=new WeakSet;ps=function(){t(this,pe)||(C(this,pe,!0),t(this,d).unsubscribe(t(this,Ze)),t(this,d).unlistenAnimationFrame(),t(this,j).disconnect(),t(this,Bt).disconnect(),t(this,mt).disconnect(),t(this,$).disconnect())};Ke=new WeakSet;Ss=function(){t(this,pe)&&(C(this,pe,!1),t(this,d).subscribe(t(this,Ze)),t(this,j).connect(),t(this,Bt).connect(),t(this,mt).connect(),t(this,lt).current&&t(this,$).connect())};Ve=new WeakSet;Qe=function(){t(this,Se)||(C(this,Se,!0),ue.windowResizer.unsubscribe(t(this,A)),Ge.elementResizer.unsubscribe(t(this,A)),t(this,d).reset(),v(this,Ne,ps).call(this),t(this,b).style.transform="",t(this,Y).current&&v(this,It,ae).call(this),Gt.scrollEntries.unregister(this))};Oe=new WeakSet;Xe=function(){t(this,Se)&&(C(this,Se,!1),t(this,Y).current&&v(this,oe,_e).call(this),Gt.scrollEntries.register(this),ue.windowResizer.subscribe(t(this,A),Pe.RESIZE_ORDER.SCROLL),Ge.elementResizer.subscribe(this,t(this,A)),v(this,Ke,Ss).call(this))};A=new WeakMap;Ze=new WeakMap;Ye=new WeakSet;Ps=function(r){t(this,T).current?(t(this,P).current=r%t(this,p).length,t(this,P).current=t(this,P).current<0?t(this,p).length+t(this,P).current:t(this,P).current):t(this,P).current=ls.clamp(r,0,this.limit)};ve=new WeakMap;$e=new WeakMap;De=new WeakSet;je=function(r="current"){if(t(this,T).current&&t(this,p).length){const e=t(this,d)[r]%(t(this,y)+t(this,W)+t(this,B));return e<0?t(this,y)+e+t(this,W)+t(this,B):e}else return t(this,d)[r]};ct=new WeakSet;qt=function(){if(t(this,X).current&&t(this,p).length){const r=t(this,P).current+t(this,Rt).current;r===0?this.classList.add("start"):this.classList.remove("start"),r===this.limit?this.classList.add("end"):this.classList.remove("end");const e=t(this,Q).current+t(this,vt).current;t(this,p).forEach((i,n)=>{const h=r-this.limit-1+t(this,vt).current,c=r+e,S=this.sections.length-c;n>=r&&n<c||n<=h?i.mark("current"):n>=c&&n<c+S/2||n<=h+e?i.mark("next"):i.mark("previous")})}};ts=new WeakSet;Es=function(){let r=null,e=1/0;for(let i=0;i<t(this,p).length;i++){const n=Math.abs(t(this,p)[i].position-this.targetScrollValue);n<e&&(e=n,r=i)}return r!==null?t(this,p)[r]:null};exports.ScrollElement=Gs([_t.define("e-scroll")],exports.ScrollElement);var Ee;class Je extends _t.CustomElement{constructor(){super(...arguments);V(this,Ee,null)}get scrollElement(){return o(this,Ee)}connectedCallback(){const i=Is.findParentElement(this,exports.ScrollElement);i instanceof exports.ScrollElement?F(this,Ee,i):console.error(this,"e-scroll not found")}}Ee=new WeakMap;var Ks=Object.defineProperty,Zs=Object.getOwnPropertyDescriptor,Js=(r,e,i,n)=>{for(var h=n>1?void 0:n?Zs(e,i):e,c=r.length-1,S;c>=0;c--)(S=r[c])&&(h=(n?S(e,i,h):S(h))||h);return n&&h&&Ks(e,i,h),h},ks=(r,e,i)=>{if(!e.has(r))throw TypeError("Cannot "+i)},f=(r,e,i)=>(ks(r,e,"read from private field"),i?i.call(r):e.get(r)),N=(r,e,i)=>{if(e.has(r))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(r):e.set(r,i)},Pt=(r,e,i,n)=>(ks(r,e,"write to private field"),n?n.call(r,i):e.set(r,i),i),me,q,ht,ot,we,be,te,Fe,Re,qe;const Qs=cs.createStylesheet({":host":{display:"inline-block",zIndex:"1",backgroundColor:bs.aptechkaTheme.colorLight.var},':host([axis="y"])':{position:"absolute",right:"0",top:"0",width:"1vmin",height:"100%"},':host([axis="x"])':{position:"absolute",left:"0",bottom:"0",width:"100%",height:"1vmin"},".default-thumb":{backgroundColor:bs.aptechkaTheme.colorDark.var,borderRadius:"1vmin",touchAction:"none"},"::slotted(*)":{touchAction:"none"}});exports.ScrollbarElement=class extends Je{constructor(){super(),N(this,me,null),N(this,q,null),N(this,ht,!1),N(this,ot,0),N(this,we,0),N(this,be,0),N(this,te,()=>{Pt(this,ht,this.offsetWidth>this.offsetHeight);const e=f(this,ht)?this.offsetWidth:this.offsetHeight;Pt(this,ot,e/((this.scrollElement.scrollSize+this.scrollElement.viewportSize)/e)),Pt(this,ot,Math.max(f(this,ot),30)),f(this,ht)?(f(this,q).style.width=f(this,ot)+"px",f(this,q).style.height="100%"):(f(this,q).style.width="100%",f(this,q).style.height=f(this,ot)+"px"),Pt(this,we,e-f(this,ot)),this.scrollElement.scrollSize||(this.style.display="none")}),N(this,Fe,()=>{Pt(this,be,this.scrollElement.currentProgress*f(this,we)),f(this,ht)?f(this,q).style.transform=`translate3d(${f(this,be)}px, 0px, 0px)`:f(this,q).style.transform=`translate3d(0px, ${f(this,be)}px, 0px)`}),N(this,Re,()=>{this.setAttribute("axis",this.scrollElement.axisCSSProperty.current)}),N(this,qe,e=>{document.documentElement.classList.add("grabbing"),Bs.setupDrag(h=>{const c=f(this,ht)?h.x:h.y,S=this.scrollElement.distance/f(this,we),Me=(c-n)*S;this.scrollElement.setPosition(i+Me)},()=>{document.documentElement.classList.remove("grabbing")});const i=this.scrollElement.targetScrollValue,n=f(this,ht)?e.x:e.y}),as.isBrowser&&(this.openShadow(Qs),I.element(this,{slot:"static","drag-dead-zone":"",children:[I.slot({ref:e=>Pt(this,me,e),children:I.div({class:"default-thumb"})})]}))}get thumbElement(){return f(this,q)}connectedCallback(){super.connectedCallback();const e=f(this,me).assignedElements()[0]||f(this,me).firstElementChild;Pt(this,q,e),f(this,q).addEventListener("pointerdown",f(this,qe)),ue.windowResizer.subscribe(f(this,te),Pe.RESIZE_ORDER.SCROLL+1),Ge.elementResizer.subscribe(this,f(this,te)),this.scrollElement.onScroll(f(this,Fe)),this.scrollElement.axisCSSProperty.subscribe(f(this,Re))}disconnectedCallback(){f(this,q).removeEventListener("pointerdown",f(this,qe)),ue.windowResizer.unsubscribe(f(this,te)),Ge.elementResizer.unsubscribe(f(this,te)),this.scrollElement.offScroll(f(this,Fe)),this.scrollElement.axisCSSProperty.unsubscribe(f(this,Re))}};me=new WeakMap;q=new WeakMap;ht=new WeakMap;ot=new WeakMap;we=new WeakMap;be=new WeakMap;te=new WeakMap;Fe=new WeakMap;Re=new WeakMap;qe=new WeakMap;exports.ScrollbarElement=Js([_t.define("e-scrollbar")],exports.ScrollbarElement);const Xs=cs.createStylesheet({button:{all:"inherit"}});class Ws extends Je{constructor(){super(),this.openShadow(Xs),as.isBrowser&&I.element(this,{children:[I.button({onClick:()=>{this.handleClick()},children:[I.slot()]})]})}}var Ys=Object.defineProperty,js=Object.getOwnPropertyDescriptor,ti=(r,e,i,n)=>{for(var h=n>1?void 0:n?js(e,i):e,c=r.length-1,S;c>=0;c--)(S=r[c])&&(h=(n?S(e,i,h):S(h))||h);return n&&h&&Ys(e,i,h),h};exports.ScrollSetButtonElement=class extends Ws{handleClick(){const e=this.getAttribute("index"),i=this.getAttribute("behaviour");this.scrollElement.scrollToSection(parseInt(e||"0"),i)}};exports.ScrollSetButtonElement=ti([_t.define("e-scroll-set-button")],exports.ScrollSetButtonElement);var ei=Object.defineProperty,si=Object.getOwnPropertyDescriptor,ii=(r,e,i,n)=>{for(var h=n>1?void 0:n?si(e,i):e,c=r.length-1,S;c>=0;c--)(S=r[c])&&(h=(n?S(e,i,h):S(h))||h);return n&&h&&ei(e,i,h),h};exports.ScrollStepButtonElement=class extends Ws{handleClick(){const e=this.getAttribute("step"),i=this.getAttribute("behaviour");this.scrollElement.shiftSections(parseInt(e||"1"),i)}};exports.ScrollStepButtonElement=ii([_t.define("e-scroll-step-button")],exports.ScrollStepButtonElement);var ri=Object.defineProperty,ni=Object.getOwnPropertyDescriptor,hi=(r,e,i,n)=>{for(var h=n>1?void 0:n?ni(e,i):e,c=r.length-1,S;c>=0;c--)(S=r[c])&&(h=(n?S(e,i,h):S(h))||h);return n&&h&&ri(e,i,h),h},Ms=(r,e,i)=>{if(!e.has(r))throw TypeError("Cannot "+i)},Ut=(r,e,i)=>(Ms(r,e,"read from private field"),i?i.call(r):e.get(r)),gs=(r,e,i)=>{if(e.has(r))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(r):e.set(r,i)},Cs=(r,e,i,n)=>(Ms(r,e,"write to private field"),n?n.call(r,i):e.set(r,i),i),Lt,ge,st,Ct,le,ke,We,ce;class oi{constructor(e,i,n){V(this,st,void 0);V(this,Ct,void 0);V(this,le,void 0);V(this,ke,void 0);V(this,We,()=>{o(this,Ct).scrollToSection(o(this,le),o(this,ke))});V(this,ce,()=>{o(this,st).classList.toggle("current",o(this,Ct).counter.current===o(this,le))});F(this,st,document.createElement("button")),F(this,Ct,e),F(this,ke,n),F(this,le,i),o(this,st).addEventListener("click",o(this,We)),o(this,Ct).counter.subscribe(o(this,ce)),o(this,ce).call(this)}get element(){return o(this,st)}destroy(){o(this,st).removeEventListener("click",o(this,We)),o(this,Ct).counter.unsubscribe(o(this,ce)),o(this,st).remove()}}st=new WeakMap,Ct=new WeakMap,le=new WeakMap,ke=new WeakMap,We=new WeakMap,ce=new WeakMap;exports.ScrollBulletButtonsElement=class extends Je{constructor(){super(...arguments),gs(this,Lt,[]),gs(this,ge,_s.debounce(()=>{Ut(this,Lt).forEach(e=>e.destroy()),Cs(this,Lt,[]);for(let e=0;e<this.scrollElement.sections.length;e++){const i=new oi(this.scrollElement,e,this.getAttribute("behaviour")||"smooth");this.appendChild(i.element),Ut(this,Lt).push(i)}},0))}connectedCallback(){super.connectedCallback(),this.scrollElement.addEventListener("sectionsChange",Ut(this,ge)),Ut(this,ge).call(this)}disconnectedCallback(){this.scrollElement.removeEventListener("sectionsChange",Ut(this,ge)),Ut(this,Lt).forEach(e=>e.destroy()),Cs(this,Lt,[])}};Lt=new WeakMap;ge=new WeakMap;exports.ScrollBulletButtonsElement=hi([_t.define("e-scroll-bullet-buttons")],exports.ScrollBulletButtonsElement);var ai=Object.defineProperty,li=Object.getOwnPropertyDescriptor,ci=(r,e,i,n)=>{for(var h=n>1?void 0:n?li(e,i):e,c=r.length-1,S;c>=0;c--)(S=r[c])&&(h=(n?S(e,i,h):S(h))||h);return n&&h&&ai(e,i,h),h},fs=(r,e,i)=>{if(!e.has(r))throw TypeError("Cannot "+i)},s=(r,e,i)=>(fs(r,e,"read from private field"),i?i.call(r):e.get(r)),l=(r,e,i)=>{if(e.has(r))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(r):e.set(r,i)},w=(r,e,i,n)=>(fs(r,e,"write to private field"),n?n.call(r,i):e.set(r,i),i),k=(r,e,i)=>(fs(r,e,"access private method"),i),ee,se,ie,re,zt,Vt,Ot,$t,D,H,G,U,Tt,x,ut,pt,St,ft,dt,M,J,Z,wt,bt,tt,Te,m,ne,he,Be,L,Dt,O,z,K,Ce,At,E,es,xs,ss,Ls,is,zs,rs,Vs,ns,Os,hs,$s,Ie,ye,at,Ft,ds,Ds,vs,Fs,Ae,os,He;exports.ScrollSegmentElement=class extends Je{constructor(){super(),l(this,es),l(this,ss),l(this,is),l(this,rs),l(this,ns),l(this,hs),l(this,at),l(this,ds),l(this,vs),l(this,Ae),l(this,ee,new u.CSSProperty(this,"--damping",20)),l(this,se,new u.CSSProperty(this,"--mass",0)),l(this,ie,new u.CSSProperty(this,"--stiffness",0)),l(this,re,new u.CSSProperty(this,"--target","")),l(this,zt,new u.CSSProperty(this,"--disabled",!1)),l(this,Vt,new u.CSSProperty(this,"--distance-offset",0,{rawValueCheck:!1})),l(this,Ot,new u.CSSProperty(this,"--start-offset",0,{rawValueCheck:!1})),l(this,$t,new u.CSSProperty(this,"--capture-once",!1)),l(this,D,new u.CSSProperty(this,"--captured","")),l(this,H,new u.CSSProperty(this,"--released","")),l(this,G,new u.CSSProperty(this,"--captured-from-start","")),l(this,U,new u.CSSProperty(this,"--captured-from-finish","")),l(this,Tt,new u.CSSProperty(this,"--released-from-start","")),l(this,x,new u.CSSProperty(this,"--released-from-finish","")),l(this,ut,new u.CSSProperty(this,"--passed-var","")),l(this,pt,new u.CSSProperty(this,"--progress-var","")),l(this,St,new u.CSSProperty(this,"--distance-var","")),l(this,ft,new u.CSSProperty(this,"--start-var","")),l(this,dt,new u.CSSProperty(this,"--finish-var","")),l(this,M,new Et.Store(!1)),l(this,J,new Et.Store(!1)),l(this,Z,new Et.Store(!1)),l(this,wt,new Et.Store(!1)),l(this,bt,new Et.Store(!1)),l(this,tt,new Et.Store(!1)),l(this,Te,[]),l(this,m,this),l(this,ne,0),l(this,he,0),l(this,Be,0),l(this,L,new ys.Damped(0,{order:Pe.TICK_ORDER.SCROLL-1,min:0,max:1})),l(this,Dt,0),l(this,O,0),l(this,z,0),l(this,K,0),l(this,Ce,!1),l(this,At,!1),l(this,E,!0),l(this,Ie,()=>{s(this,E)||(this.resize(),s(this,ye).call(this))}),l(this,ye,()=>{!s(this,E)&&s(this,Ce)&&this.tick()}),l(this,He,_s.debounce(()=>{const e=Gt.scrollEntries.getAll(this).reverse();let i=0;e.forEach((n,h)=>{n.element===this.scrollElement&&(i=h)}),w(this,Te,e.slice(i+1))},0))}get distanceOffsetCSSProperty(){return s(this,Vt)}get startOffsetCSSProperty(){return s(this,Ot)}get captureOnceCSSProperty(){return s(this,$t)}get capturedCSSProperty(){return s(this,D)}get releasedCSSProperty(){return s(this,H)}get capturedFromStartCSSProperty(){return s(this,G)}get capturedFromFinishCSSProperty(){return s(this,U)}get releasedFromStartCSSProperty(){return s(this,Tt)}get releasedFromFinishCSSProperty(){return s(this,x)}get passedVarCSSProperty(){return s(this,ut)}get progressVarCSSProperty(){return s(this,pt)}get distanceVarCSSProperty(){return s(this,St)}get startVarCSSProperty(){return s(this,ft)}get finishVarCSSProperty(){return s(this,dt)}get disabledCSSProperty(){return s(this,zt)}get dampingCSSProperty(){return s(this,ee)}get massCSSProperty(){return s(this,se)}get stiffnessCSSProperty(){return s(this,ie)}get targetCSSProperty(){return s(this,re)}get isCaptured(){return s(this,M)}get isReleased(){return s(this,J)}get isCapturedFromStart(){return s(this,Z)}get isReleasedFromStart(){return s(this,wt)}get isCapturedFromFinish(){return s(this,bt)}get isReleasedFromFinish(){return s(this,tt)}get directionPosition(){return s(this,ne)}get directionSize(){return s(this,he)}get passed(){return s(this,L)}get progress(){return s(this,Dt)}get start(){return s(this,O)}get finish(){return s(this,K)}get distance(){return s(this,z)}get isCapturedOnce(){return s(this,At)}get isDisabled(){return s(this,E)}resize(){w(this,he,this.scrollElement.vertical?this.offsetHeight:this.offsetWidth),w(this,ne,this.scrollElement.vertical?yt.getCumulativeOffsetTop(this,this.scrollElement):yt.getCumulativeOffsetLeft(this,this.scrollElement)),w(this,O,this.getStart()),w(this,z,this.getDistance()),w(this,O,s(this,O)+s(this,Ot).current),w(this,z,s(this,z)+s(this,Vt).current),w(this,K,s(this,O)+s(this,z)),this.scrollElement.currentScrollValue>s(this,K)&&!s(this,M).current&&!s(this,J).current&&(s(this,M).current=!0),this.setVar(s(this,ft).current,s(this,O)),this.setVar(s(this,dt).current,s(this,K)),this.setVar(s(this,St).current,s(this,z)),s(this,L).max=s(this,z),w(this,Ce,!0)}tick(){let e=this.scrollElement.currentScrollValue;s(this,Te).forEach(n=>{e+=n.value}),s(this,L).set(e-s(this,O));const i=Math.round(e);s(this,M).current&&(i>s(this,O)?s(this,Z).current||k(this,is,zs).call(this):s(this,Z).current&&!s(this,wt).current&&k(this,ns,Os).call(this),i<s(this,K)?s(this,tt).current&&!s(this,bt).current&&k(this,rs,Vs).call(this):s(this,Z).current&&!s(this,tt).current&&k(this,hs,$s).call(this)),i>s(this,O)&&i<s(this,K)?s(this,M).current||k(this,es,xs).call(this):s(this,M).current&&(s(this,L).set(ls.step(s(this,z)/2,s(this,L).current,0,s(this,z))),k(this,ss,Ls).call(this)),s(this,At)&&s(this,$t).current&&(s(this,D).current&&s(this,m).classList.add(s(this,D).current),w(this,E,!0))}disable(){this.style.cssText="",w(this,ne,0),w(this,he,0),s(this,L).reset(),w(this,Dt,0),w(this,O,0),w(this,z,0),w(this,K,0),w(this,Ce,!1),s(this,M).current=!1,s(this,J).current=!1,s(this,Z).current=!1,s(this,wt).current=!1,s(this,bt).current=!1,s(this,tt).current=!1,w(this,At,!1),w(this,E,!0),k(this,Ae,os).call(this)}enable(){w(this,E,!1)}connectedCallback(){super.connectedCallback(),s(this,ee).observe(),s(this,se).observe(),s(this,ie).observe(),s(this,re).observe(),s(this,zt).observe(),s(this,Vt).observe(),s(this,Ot).observe(),s(this,$t).observe(),s(this,D).observe(),s(this,H).observe(),s(this,G).observe(),s(this,U).observe(),s(this,Tt).observe(),s(this,x).observe(),s(this,ut).observe(),s(this,pt).observe(),s(this,St).observe(),s(this,ft).observe(),s(this,dt).observe();let e=!1;this.scrollElement.addEventListener("sectionsChange",s(this,He)),s(this,He).call(this),s(this,zt).current||this.enable(),s(this,ee).subscribe(i=>{s(this,L).damping=i.current}),s(this,se).subscribe(i=>{s(this,L).mass=i.current}),s(this,ie).subscribe(i=>{s(this,L).stiffness=i.current}),s(this,re).subscribe(i=>{i.previous&&k(this,Ae,os).call(this),i.current?i.current==="parent"?w(this,m,this.parentElement||this):w(this,m,document.querySelector(i.current)||this):w(this,m,this)}),s(this,zt).subscribe(i=>{i.current&&!i.previous?this.disable():!i.current&&i.previous&&(this.resize(),this.enable())}),s(this,Ot).subscribe(()=>{e&&!s(this,E)&&this.resize()}),s(this,Vt).subscribe(()=>{e&&!s(this,E)&&this.resize()}),s(this,D).subscribe(i=>{k(this,at,Ft).call(this,i)}),s(this,G).subscribe(i=>{k(this,at,Ft).call(this,i)}),s(this,U).subscribe(i=>{k(this,at,Ft).call(this,i)}),s(this,H).subscribe(i=>{k(this,at,Ft).call(this,i)}),s(this,Tt).subscribe(i=>{k(this,at,Ft).call(this,i)}),s(this,x).subscribe(i=>{k(this,at,Ft).call(this,i)}),s(this,$t).subscribe(i=>{s(this,E)||!i.current&&i.previous&&(this.resize(),this.enable())}),s(this,ut).subscribe(i=>{s(this,E)||(this.removeVar(i.previous),this.setVar(i.current,this.passed.current))}),s(this,pt).subscribe(i=>{s(this,E)||(this.removeVar(i.previous),this.setVar(i.current,s(this,Dt)))}),s(this,ft).subscribe(i=>{s(this,E)||(this.removeVar(i.previous),this.setVar(i.current,s(this,O)))}),s(this,dt).subscribe(i=>{s(this,E)||(this.removeVar(i.previous),this.setVar(i.current,s(this,K)))}),s(this,St).subscribe(i=>{s(this,E)||(this.removeVar(i.previous),this.setVar(i.current,s(this,z)))}),s(this,L).subscribe(i=>{w(this,Dt,s(this,L).current/s(this,z)||0),this.setVar(s(this,ut).current,s(this,L).current.toFixed(6)),this.setVar(s(this,pt).current,s(this,Dt).toFixed(6))}),ue.windowResizer.subscribe(s(this,Ie),Pe.RESIZE_ORDER.SEGMENT),this.scrollElement.onScroll(s(this,ye)),e=!0}disconnectedCallback(){ue.windowResizer.unsubscribe(s(this,Ie)),this.scrollElement.offScroll(s(this,ye)),s(this,ee).close(),s(this,se).close(),s(this,ie).close(),s(this,re).close(),s(this,zt).close(),s(this,Vt).close(),s(this,Ot).close(),s(this,$t).close(),s(this,D).close(),s(this,H).close(),s(this,G).close(),s(this,U).close(),s(this,Tt).close(),s(this,x).close(),s(this,ut).close(),s(this,pt).close(),s(this,St).close(),s(this,ft).close(),s(this,dt).close(),s(this,M).close(),s(this,J).close(),s(this,Z).close(),s(this,wt).close(),s(this,bt).close(),s(this,tt).close(),this.disable()}removeVar(e){e&&s(this,m).style.removeProperty(`--${e}`)}setVar(e,i){e&&s(this,m).style.setProperty(`--${e}`,i.toString())}getDistance(){return s(this,he)+s(this,Be)}getStart(){return s(this,ne)-s(this,Be)}};ee=new WeakMap;se=new WeakMap;ie=new WeakMap;re=new WeakMap;zt=new WeakMap;Vt=new WeakMap;Ot=new WeakMap;$t=new WeakMap;D=new WeakMap;H=new WeakMap;G=new WeakMap;U=new WeakMap;Tt=new WeakMap;x=new WeakMap;ut=new WeakMap;pt=new WeakMap;St=new WeakMap;ft=new WeakMap;dt=new WeakMap;M=new WeakMap;J=new WeakMap;Z=new WeakMap;wt=new WeakMap;bt=new WeakMap;tt=new WeakMap;Te=new WeakMap;m=new WeakMap;ne=new WeakMap;he=new WeakMap;Be=new WeakMap;L=new WeakMap;Dt=new WeakMap;O=new WeakMap;z=new WeakMap;K=new WeakMap;Ce=new WeakMap;At=new WeakMap;E=new WeakMap;es=new WeakSet;xs=function(){s(this,M).current=!0,s(this,J).current=!1,w(this,At,!0),s(this,H).current&&s(this,m).classList.remove(s(this,H).current),s(this,x).current&&s(this,m).classList.remove(s(this,x).current),s(this,x).current&&s(this,m).classList.remove(s(this,x).current),s(this,D).current&&s(this,m).classList.add(s(this,D).current)};ss=new WeakSet;Ls=function(){s(this,J).current=!0,s(this,M).current=!1,w(this,At,!0),s(this,D).current&&s(this,m).classList.remove(s(this,D).current),s(this,G).current&&s(this,m).classList.remove(s(this,G).current),s(this,U).current&&s(this,m).classList.remove(s(this,U).current),s(this,H).current&&s(this,m).classList.add(s(this,H).current)};is=new WeakSet;zs=function(){s(this,M).current=!0,s(this,Z).current=!0,s(this,wt).current=!1,s(this,G).current&&s(this,m).classList.add(s(this,G).current)};rs=new WeakSet;Vs=function(){s(this,M).current=!0,s(this,bt).current=!0,s(this,tt).current=!1,s(this,U).current&&s(this,m).classList.add(s(this,U).current)};ns=new WeakSet;Os=function(){s(this,J).current=!0,s(this,wt).current=!0,s(this,Z).current=!1,s(this,x).current&&s(this,m).classList.add(s(this,x).current)};hs=new WeakSet;$s=function(){s(this,J).current=!0,s(this,tt).current=!0,s(this,bt).current=!1,s(this,x).current&&s(this,m).classList.add(s(this,x).current)};Ie=new WeakMap;ye=new WeakMap;at=new WeakSet;Ft=function(r){if(s(this,E)){r.previous&&s(this,m).classList.remove(r.previous),r.current&&s(this,m).classList.remove(r.current);return}r.current&&s(this,M).current?(r.previous&&s(this,m).classList.remove(r.previous),s(this,m).classList.add(r.current)):!r.current&&r.previous&&s(this,m).classList.remove(r.previous)};ds=new WeakSet;Ds=function(...r){r.forEach(e=>{e&&s(this,m).classList.remove(e)})};vs=new WeakSet;Fs=function(...r){r.forEach(e=>{e&&s(this,m).style.removeProperty(`--${e}`)})};Ae=new WeakSet;os=function(){k(this,ds,Ds).call(this,s(this,D).current,s(this,G).current,s(this,U).current,s(this,H).current,s(this,Tt).current,s(this,x).current),k(this,vs,Fs).call(this,s(this,ut).current,s(this,pt).current,s(this,St).current,s(this,ft).current,s(this,dt).current)};He=new WeakMap;exports.ScrollSegmentElement=ci([_t.define("e-scroll-segment")],exports.ScrollSegmentElement);
|
|
1
|
+
"use strict";var ms=(r,e,i)=>{if(!e.has(r))throw TypeError("Cannot "+i)};var o=(r,e,i)=>(ms(r,e,"read from private field"),i?i.call(r):e.get(r)),V=(r,e,i)=>{if(e.has(r))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(r):e.set(r,i)},F=(r,e,i,n)=>(ms(r,e,"write to private field"),n?n.call(r,i):e.set(r,i),i);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const Et=require("../Store-C-1ruEIm.cjs"),qs=require("../Derived-B-g8dYgh.cjs"),as=require("../browser-CpzFX2xg.cjs"),yt=require("../layout-8ryRAMGJ.cjs"),ls=require("../math-GDWEqu7y.cjs");require("../ticker/index.cjs");const Pe=require("../order/index.cjs"),ys=require("../Damped-DxwUBxOC.cjs"),xe=require("../controls/index.cjs"),_t=require("../custom-element/index.cjs"),ue=require("../window-resizer/index.cjs"),Gt=require("../scroll-entries/index.cjs"),I=require("../tags-Djb6mb1o.cjs"),cs=require("../createStylesheet-CqHU9_qv.cjs"),ws=require("../css-unit-parser/index.cjs"),u=require("../css-property/index.cjs"),Ts=require("../Viewport-DMB0dO-s.cjs"),Ge=require("../element-resizer/index.cjs"),Bs=require("../gestures-DHLrn6Q8.cjs"),bs=require("../theme/index.cjs"),Is=require("../dom-JBOkFLTh.cjs"),_s=require("../function-MthRj-GJ.cjs");var As=Object.defineProperty,Hs=Object.getOwnPropertyDescriptor,Gs=(r,e,i,n)=>{for(var h=n>1?void 0:n?Hs(e,i):e,c=r.length-1,S;c>=0;c--)(S=r[c])&&(h=(n?S(e,i,h):S(h))||h);return n&&h&&As(e,i,h),h},us=(r,e,i)=>{if(!e.has(r))throw TypeError("Cannot "+i)},t=(r,e,i)=>(us(r,e,"read from private field"),i?i.call(r):e.get(r)),a=(r,e,i)=>{if(e.has(r))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(r):e.set(r,i)},C=(r,e,i,n)=>(us(r,e,"write to private field"),n?n.call(r,i):e.set(r,i),i),v=(r,e,i)=>(us(r,e,"access private method"),i),d,Nt,R,it,rt,Y,nt,kt,Wt,Q,T,Kt,Zt,Jt,Qt,fe,lt,Xt,Mt,X,Rt,vt,Yt,jt,b,Ue,p,Le,ze,W,y,B,j,Bt,mt,$,P,de,xt,pe,Se,oe,_e,It,ae,Ne,ps,Ke,Ss,Ve,Qe,Oe,Xe,A,Ze,Ye,Ps,ve,$e,De,je,ct,qt,ts,Es,g,_,Ht,et,gt;class Us{constructor(e,i){V(this,g,void 0);V(this,_,void 0);V(this,Ht,0);V(this,et,0);V(this,gt,null);F(this,g,e),F(this,_,i),Gt.scrollEntries.register(o(this,g))}get size(){return o(this,Ht)}get position(){return o(this,et)}destroy(){Gt.scrollEntries.unregister(o(this,g)),o(this,g).style.transform="",this.mark(null)}setSize(e){e?(o(this,g).style.setProperty("--size",e+"px"),o(this,_).axisCSSProperty.current==="x"?(o(this,g).style.width=e+"px",o(this,g).style.height=""):(o(this,g).style.height=e+"px",o(this,g).style.width="")):(o(this,g).style.width="",o(this,g).style.height="",o(this,g).style.removeProperty("--size"))}resize(){F(this,Ht,o(this,_).vertical?o(this,g).offsetHeight:o(this,g).offsetWidth),F(this,et,o(this,_).vertical?yt.getCumulativeOffsetTop(o(this,g)):yt.getCumulativeOffsetLeft(o(this,g))),F(this,et,o(this,et)-o(this,_).contentPosition)}transform(){let e=0;const i=o(this,_).viewportSize*o(this,_).sectionDistanceScaleCSSProperty.current;o(this,_).infiniteCSSProperty.current&&o(this,_).overscroll&&o(this,et)+o(this,Ht)<o(this,_).currentScrollValue&&(e=o(this,_).distance*-1-o(this,_).gap),Gt.scrollEntries.update(o(this,g),o(this,_).axisCSSProperty.current,e);const n=o(this,_).currentScrollValue+e,h=o(this,et)-o(this,_).viewportSize-i,c=o(this,et)+o(this,Ht)+i,S=ls.clamp(n,h,c);o(this,_).vertical?o(this,g).style.transform=`translate3d(0px, ${S*-1}px, 0px)`:o(this,g).style.transform=`translate3d(${S*-1}px, 0px, 0px)`}mark(e){o(this,gt)!==e&&(o(this,gt)&&o(this,g).classList.remove(o(this,gt)),e&&o(this,g).classList.add(e),F(this,gt,e),o(this,g).dispatchEvent(new CustomEvent("sectionsChange",{composed:!0,detail:{mark:o(this,gt)}})))}}g=new WeakMap,_=new WeakMap,Ht=new WeakMap,et=new WeakMap,gt=new WeakMap;const Ns=cs.createStylesheet({":host":{position:"relative",width:"100%",height:"100%",display:"block",outline:"none"},':host([hibernated="true"])':{display:"contents"},".static":{position:"var(--static-position, absolute)",top:"var(--static-top, 0)",left:"var(--static-left, 0)",width:"var(--static-width, 100%)",height:"var(--static-height, 100%)"},".content":{position:"relative",display:"flex",width:"100%",height:"100%",gap:"var(--gap, 0px)",willChange:"var(--will-change, transform)"},':host([hibernated="true"]) .content':{display:"contents"},"::slotted(*)":{flexShrink:"0"}});exports.ScrollElement=class extends _t.CustomElement{constructor(){super(),a(this,oe),a(this,It),a(this,Ne),a(this,Ke),a(this,Ve),a(this,Oe),a(this,Ye),a(this,De),a(this,ct),a(this,ts),a(this,d,null),a(this,Nt,new u.CSSProperty(this,"--controls",!0)),a(this,R,new u.CSSProperty(this,"--axis","y")),a(this,it,new u.CSSProperty(this,"--direction",0)),a(this,rt,new u.CSSProperty(this,"--pages",0,{validate:e=>Math.max(0,e-1)})),a(this,Y,new u.CSSProperty(this,"--split",!1)),a(this,nt,new u.CSSProperty(this,"--sectional",!1)),a(this,kt,new u.CSSProperty(this,"--auto-size",!1)),a(this,Wt,new u.CSSProperty(this,"--wheel-max-delta",!1)),a(this,Q,new u.CSSProperty(this,"--sections-in-view",1)),a(this,T,new u.CSSProperty(this,"--infinite",!1)),a(this,Kt,new u.CSSProperty(this,"--damping",20)),a(this,Zt,new u.CSSProperty(this,"--mass",0)),a(this,Jt,new u.CSSProperty(this,"--stiffness",0)),a(this,Qt,new u.CSSProperty(this,"--mouse-drag",!1)),a(this,fe,new u.CSSProperty(this,"--section-distance-scale",.5)),a(this,lt,new u.CSSProperty(this,"--autoplay",0)),a(this,Xt,new u.CSSProperty(this,"--autoplay-pause-duration",0)),a(this,Mt,new u.CSSProperty(this,"--autoplay-user-direction",!1)),a(this,X,new u.CSSProperty(this,"--classes",0)),a(this,Rt,new u.CSSProperty(this,"--current-index-start-offset",0)),a(this,vt,new u.CSSProperty(this,"--current-index-end-offset",0)),a(this,Yt,new u.CSSProperty(this,"--disabled",!1)),a(this,jt,new u.CSSProperty(this,"--hibernated",!1)),a(this,b,null),a(this,Ue,null),a(this,p,[]),a(this,Le,0),a(this,ze,0),a(this,W,0),a(this,y,0),a(this,B,0),a(this,j,null),a(this,Bt,null),a(this,mt,null),a(this,$,null),a(this,P,new Et.Store(0)),a(this,de,0),a(this,xt,0),a(this,pe,!0),a(this,Se,!0),a(this,A,()=>{t(this,d).unlistenAnimationFrame();const e=this.currentScrollValue/t(this,y)||0,i=t(this,P).current;if(C(this,Le,this.vertical?yt.getCumulativeOffsetTop(this):yt.getCumulativeOffsetLeft(this)),C(this,ze,this.vertical?yt.getCumulativeOffsetTop(t(this,b)):yt.getCumulativeOffsetLeft(t(this,b))),C(this,W,this.vertical?this.offsetHeight:this.offsetWidth),this.vertical?C(this,B,ws.cssUnitParser.parse(getComputedStyle(t(this,b)).rowGap)):C(this,B,ws.cssUnitParser.parse(getComputedStyle(t(this,b)).columnGap)),t(this,kt).current&&t(this,p).length){const n=t(this,Q).current,h=(t(this,W)-t(this,B)*(n-1))/n;t(this,p).forEach(c=>{c.setSize(h)})}else t(this,p).forEach(n=>{n.setSize()});if(t(this,p).forEach(n=>{n.resize()}),t(this,rt).current){C(this,y,t(this,W)*t(this,rt).current);const n=t(this,y)+t(this,W);this.vertical?(t(this,b).style.width=n+"px",t(this,b).style.height="100%"):(t(this,b).style.height=n+"px",t(this,b).style.width="100%")}else this.vertical?(t(this,b).style.width="100%",t(this,b).style.height="max-content",C(this,y,t(this,b).offsetHeight-t(this,W))):(t(this,b).style.width="max-content",t(this,b).style.height="100%",C(this,y,t(this,b).offsetWidth-t(this,W)));if(!t(this,T).current){const n=getComputedStyle(this),h=this.vertical?parseFloat(n.paddingBlockStart)+parseFloat(n.paddingBlockEnd):parseFloat(n.paddingInlineStart)+parseFloat(n.paddingInlineEnd);C(this,y,t(this,y)+h),t(this,d).max=t(this,y)}if(t(this,T).current&&t(this,p).length){const n=t(this,p)[t(this,p).length-1],h=n.position+n.size-t(this,W),c=t(this,y)-h;C(this,xt,n.position+n.size+c)}else C(this,xt,t(this,y));if(t(this,nt).current&&t(this,p).length){const n=t(this,p)[i];t(this,d).set(n.position,{equalize:!0})}else t(this,d).set(e*t(this,y),{equalize:!0})}),a(this,Ze,()=>{const e=this.currentScrollValue;if(C(this,de,Math.max(0,e-t(this,y))),t(this,p).length){let i=0;for(let n=0;n<t(this,p).length;n++){const h=t(this,p)[n];h.transform(),this.targetScrollValue+h.size/2>=h.position&&(i=n)}t(this,P).current=i}else this.vertical?t(this,b).style.transform=`translate3d(0px, ${e*-1}px, 0px)`:t(this,b).style.transform=`translate3d(${e*-1}px, 0px, 0px)`;Gt.scrollEntries.update(this,t(this,R).current,e)}),a(this,ve,(e,i)=>{t(this,Nt).current&&(t(this,$).pauseAndContinue(t(this,Xt).current),t(this,Mt).current&&(t(this,$).direction=Math.sign(i)||1),t(this,$e).call(this,e,i))}),a(this,$e,(e,i)=>{if(t(this,it).current){if(t(this,it).current<0&&i>0)return;if(t(this,it).current>0&&i<0)return}if(!(e==="drag"&&!Ts.device.isMobile&&!t(this,Qt).current))if(t(this,nt).current){const n=Math.sign(i);t(this,p).length?this.shiftSections(n):t(this,d).shift(n*t(this,W))}else t(this,d).shift(i)}),as.isBrowser&&(C(this,d,new ys.Damped(0,{damping:.01,min:0,order:Pe.TICK_ORDER.SCROLL})),this.openShadow(Ns),I.element(this,{tabIndex:0,children:[I.div({class:"static",children:[I.slot({name:"static"})]}),I.div({class:"content",children:[I.slot({ref:e=>C(this,Ue,e)})],style:{flexDirection:new qs.Derived(t(this,R),e=>e==="x"?"row":"column")},ref:e=>C(this,b,e)})]}),C(this,j,new xe.WheelControls({element:t(this,b)})),t(this,j).changeEvent.subscribe(t(this,ve)),C(this,Bt,new xe.KeyboardControls({element:this})),t(this,Bt).changeEvent.subscribe(t(this,ve)),C(this,mt,new xe.DragControls({element:t(this,b)})),t(this,mt).changeEvent.subscribe(t(this,ve)),C(this,$,new xe.AutoplayControls),t(this,$).changeEvent.subscribe(t(this,$e)),t(this,R).subscribe(({current:e})=>{t(this,b).style.flexDirection=e==="x"?"row":"column",t(this,j).axis=t(this,Wt).current?"max":e,t(this,Bt).dimension=e==="x"?"width":"height",t(this,mt).axis=e,e==="x"?this.style.touchAction="pan-y":e==="y"&&(this.style.touchAction="pan-x"),this.isConnected&&t(this,A).call(this)}),t(this,Wt).subscribe(e=>{t(this,j).axis=e.current?"max":t(this,R).current}),t(this,rt).subscribe(()=>{this.isConnected&&t(this,A).call(this)}),t(this,Y).subscribe(({current:e})=>{this.isConnected&&(e?v(this,oe,_e).call(this):v(this,It,ae).call(this))}),t(this,nt).subscribe(e=>{t(this,j).debounce=e.current,t(this,mt).swipe=e.current,t(this,$).interval=e.current,this.isConnected&&(e.current&&!e.previous&&!t(this,p).length?v(this,oe,_e).call(this):!e.current&&e.previous&&t(this,p).length&&v(this,It,ae).call(this))}),t(this,kt).subscribe(e=>{this.isConnected&&(t(this,A).call(this),e.current&&!e.previous&&!t(this,p).length?v(this,oe,_e).call(this):!e.current&&e.previous&&t(this,p).length&&v(this,It,ae).call(this))}),t(this,Q).subscribe(e=>{this.isConnected&&(t(this,A).call(this),v(this,ct,qt).call(this))}),t(this,T).subscribe(e=>{e.current?(this.isConnected&&(t(this,p).length||(t(this,Y).current=!0)),t(this,p).length&&(t(this,d).max=1/0,t(this,d).min=-1/0)):(C(this,de,0),t(this,d).max=t(this,y),t(this,d).min=0)}),t(this,Kt).subscribe(e=>{t(this,d).damping=e.current}),t(this,Zt).subscribe(e=>{t(this,d).mass=e.current}),t(this,Jt).subscribe(e=>{t(this,d).stiffness=e.current}),t(this,Yt).subscribe(e=>{e.current&&!e.previous?v(this,Ne,ps).call(this):!e.current&&e.previous&&v(this,Ke,Ss).call(this)}),t(this,jt).subscribe(e=>{e.current&&!e.previous?v(this,Ve,Qe).call(this):!e.current&&e.previous&&v(this,Oe,Xe).call(this)}),t(this,lt).subscribe(e=>{t(this,$).speed=e.current,e.current&&!e.previous?t(this,$).connect():!e.current&&e.previous&&t(this,$).disconnect()}),t(this,Mt).subscribe(e=>{e.current||(t(this,$).direction=1)}),t(this,X).subscribe(e=>{this.isConnected&&v(this,ct,qt).call(this)}),t(this,Rt).subscribe(e=>{this.isConnected&&t(this,X).current&&v(this,ct,qt).call(this)}),t(this,vt).subscribe(e=>{this.isConnected&&t(this,X).current&&v(this,ct,qt).call(this)}),t(this,d).isRunning.subscribe(e=>{this.classList.toggle("active",e.current)}),t(this,P).subscribe(e=>{t(this,p).length&&v(this,ct,qt).call(this)}))}get damped(){return t(this,d)}get controlsCSSProperty(){return t(this,Nt)}get axisCSSProperty(){return t(this,R)}get directionCSSProperty(){return t(this,it)}get pagesCSSProperty(){return t(this,rt)}get splitCSSProperty(){return t(this,Y)}get sectionalCSSProperty(){return t(this,nt)}get autoSizeCSSProperty(){return t(this,kt)}get wheelMaxDeltaCSSProperty(){return t(this,Wt)}get sectionsInViewCSSProperty(){return t(this,Q)}get infiniteCSSProperty(){return t(this,T)}get dampingCSSProperty(){return t(this,Kt)}get massCSSProperty(){return t(this,Zt)}get stiffnessCSSProperty(){return t(this,Jt)}get mouseDragCSSProperty(){return t(this,Qt)}get sectionDistanceScaleCSSProperty(){return t(this,fe)}get autoplayCSSProperty(){return t(this,lt)}get autoplayPauseDurationCSSProperty(){return t(this,Xt)}get autoplayUserDirectionCSSProperty(){return t(this,Mt)}get classesCSSProperty(){return t(this,X)}get currentIndexStartOffsetCSSProperty(){return t(this,Rt)}get currentIndexEndOffsetCSSProperty(){return t(this,vt)}get disabledCSSProperty(){return t(this,Yt)}get hibernatedCSSProperty(){return t(this,jt)}get currentScrollValue(){return v(this,De,je).call(this,"current")}get targetScrollValue(){return v(this,De,je).call(this,"target")}get contentElement(){return t(this,b)}get sections(){return t(this,p)}get position(){return t(this,Le)}get contentPosition(){return t(this,ze)}get viewportSize(){return t(this,W)}get scrollSize(){return t(this,y)}get gap(){return t(this,B)}get counter(){return t(this,P)}get limit(){return t(this,p).length-t(this,Q).current}get distance(){return t(this,xt)}get infiniteDistance(){return t(this,T).current?t(this,xt)+t(this,B):t(this,xt)}get overscroll(){return t(this,de)}get vertical(){return t(this,R).current==="y"}get currentProgress(){return this.currentScrollValue/this.infiniteDistance||0}get targetProgress(){return this.targetScrollValue/this.infiniteDistance||0}get scrollWidth(){return t(this,R).current==="y"?0:t(this,d).distance}get scrollHeight(){return t(this,R).current==="x"?0:t(this,d).distance}onScroll(...e){return t(this,d).subscribe(...e)}offScroll(...e){t(this,d).unsubscribe(...e)}range(e,i,n=0){const h=e-n,c=h+i+n*2;return this.currentProgress<h?0:this.currentProgress>c?1:(this.currentProgress-h)/(c-h)}curve(e,i,n=0){return Math.sin(this.range(e,i,n)*Math.PI)}visible(e,i,n=0){const h=e-n,c=h+i+n*2;return this.currentProgress>=h&&this.currentProgress<=c}scrollToSection(e,i="smooth"){if(!t(this,p).length)return;const n=t(this,P).current;v(this,Ye,Ps).call(this,e);const h=t(this,p)[n],c=t(this,p)[t(this,P).current];if(h&&c){let S=0;const Me=v(this,ts,Es).call(this),Rs=Me?this.targetScrollValue-Me.position:0;t(this,T).current?t(this,P).current===0&&n===t(this,p).length-1?S=t(this,y)+t(this,W)-h.position+t(this,B):t(this,P).current===t(this,p).length-1&&n===0?S=c.position-(t(this,y)+t(this,W)+t(this,B)):S=c.position-h.position:S=c.position-h.position,t(this,d).shift(S-Rs,{equalize:i==="instant"})}}shiftSections(e,i="smooth"){t(this,p).length&&this.scrollToSection(t(this,P).current+e,i)}setPosition(e,i="smooth"){t(this,d).set(e,{equalize:i==="instant"})}connectedCallback(){t(this,Nt).observe(),t(this,R).observe(),t(this,it).observe(),t(this,rt).observe(),t(this,Y).observe(),t(this,nt).observe(),t(this,kt).observe(),t(this,Wt).observe(),t(this,Q).observe(),t(this,T).observe(),t(this,Kt).observe(),t(this,Zt).observe(),t(this,Jt).observe(),t(this,Qt).observe(),t(this,fe).observe(),t(this,lt).observe(),t(this,lt).observe(),t(this,Xt).observe(),t(this,Mt).observe(),t(this,X).observe(),t(this,Rt).observe(),t(this,vt).observe(),t(this,Yt).observe(),t(this,jt).observe(),v(this,Oe,Xe).call(this)}disconnectedCallback(){t(this,Nt).unobserve(),t(this,R).unobserve(),t(this,it).unobserve(),t(this,rt).unobserve(),t(this,Y).unobserve(),t(this,nt).unobserve(),t(this,kt).unobserve(),t(this,Wt).unobserve(),t(this,Q).unobserve(),t(this,T).unobserve(),t(this,Kt).unobserve(),t(this,Zt).unobserve(),t(this,Jt).unobserve(),t(this,Qt).unobserve(),t(this,fe).unobserve(),t(this,lt).unobserve(),t(this,Xt).unobserve(),t(this,Mt).unobserve(),t(this,X).unobserve(),t(this,Rt).unobserve(),t(this,vt).unobserve(),t(this,Yt).unobserve(),t(this,jt).unobserve(),v(this,Ve,Qe).call(this)}};d=new WeakMap;Nt=new WeakMap;R=new WeakMap;it=new WeakMap;rt=new WeakMap;Y=new WeakMap;nt=new WeakMap;kt=new WeakMap;Wt=new WeakMap;Q=new WeakMap;T=new WeakMap;Kt=new WeakMap;Zt=new WeakMap;Jt=new WeakMap;Qt=new WeakMap;fe=new WeakMap;lt=new WeakMap;Xt=new WeakMap;Mt=new WeakMap;X=new WeakMap;Rt=new WeakMap;vt=new WeakMap;Yt=new WeakMap;jt=new WeakMap;b=new WeakMap;Ue=new WeakMap;p=new WeakMap;Le=new WeakMap;ze=new WeakMap;W=new WeakMap;y=new WeakMap;B=new WeakMap;j=new WeakMap;Bt=new WeakMap;mt=new WeakMap;$=new WeakMap;P=new WeakMap;de=new WeakMap;xt=new WeakMap;pe=new WeakMap;Se=new WeakMap;oe=new WeakSet;_e=function(){v(this,It,ae).call(this),t(this,Ue).assignedElements().forEach(r=>{r instanceof HTMLElement&&t(this,p).push(new Us(r,this))}),t(this,b).style.transform="",this.dispatchEvent(new CustomEvent("sectionsChange",{composed:!0})),t(this,A).call(this),v(this,ct,qt).call(this)};It=new WeakSet;ae=function(){t(this,p).forEach(r=>{r.destroy()}),C(this,p,[]),t(this,P).current=0,t(this,d).reset(),this.dispatchEvent(new CustomEvent("sectionsChange",{composed:!0}))};Ne=new WeakSet;ps=function(){t(this,pe)||(C(this,pe,!0),t(this,d).unsubscribe(t(this,Ze)),t(this,d).unlistenAnimationFrame(),t(this,j).disconnect(),t(this,Bt).disconnect(),t(this,mt).disconnect(),t(this,$).disconnect())};Ke=new WeakSet;Ss=function(){t(this,pe)&&(C(this,pe,!1),t(this,d).subscribe(t(this,Ze)),t(this,j).connect(),t(this,Bt).connect(),t(this,mt).connect(),t(this,lt).current&&t(this,$).connect())};Ve=new WeakSet;Qe=function(){t(this,Se)||(C(this,Se,!0),ue.windowResizer.unsubscribe(t(this,A)),Ge.elementResizer.unsubscribe(t(this,A)),t(this,d).reset(),v(this,Ne,ps).call(this),t(this,b).style.transform="",t(this,Y).current&&v(this,It,ae).call(this),Gt.scrollEntries.unregister(this))};Oe=new WeakSet;Xe=function(){t(this,Se)&&(C(this,Se,!1),t(this,Y).current&&v(this,oe,_e).call(this),Gt.scrollEntries.register(this),ue.windowResizer.subscribe(t(this,A),Pe.RESIZE_ORDER.SCROLL),Ge.elementResizer.subscribe(this,t(this,A)),v(this,Ke,Ss).call(this))};A=new WeakMap;Ze=new WeakMap;Ye=new WeakSet;Ps=function(r){t(this,T).current?(t(this,P).current=r%t(this,p).length,t(this,P).current=t(this,P).current<0?t(this,p).length+t(this,P).current:t(this,P).current):t(this,P).current=ls.clamp(r,0,this.limit)};ve=new WeakMap;$e=new WeakMap;De=new WeakSet;je=function(r="current"){if(t(this,T).current&&t(this,p).length){const e=t(this,d)[r]%(t(this,y)+t(this,W)+t(this,B));return e<0?t(this,y)+e+t(this,W)+t(this,B):e}else return t(this,d)[r]};ct=new WeakSet;qt=function(){if(t(this,X).current&&t(this,p).length){const r=t(this,P).current+t(this,Rt).current;r===0?this.classList.add("start"):this.classList.remove("start"),r===this.limit?this.classList.add("end"):this.classList.remove("end");const e=t(this,Q).current+t(this,vt).current;t(this,p).forEach((i,n)=>{const h=r-this.limit-1+t(this,vt).current,c=r+e,S=this.sections.length-c;n>=r&&n<c||n<=h?i.mark("current"):n>=c&&n<c+S/2||n<=h+e?i.mark("next"):i.mark("previous")})}};ts=new WeakSet;Es=function(){let r=null,e=1/0;for(let i=0;i<t(this,p).length;i++){const n=Math.abs(t(this,p)[i].position-this.targetScrollValue);n<e&&(e=n,r=i)}return r!==null?t(this,p)[r]:null};exports.ScrollElement=Gs([_t.define("e-scroll")],exports.ScrollElement);var Ee;class Je extends _t.CustomElement{constructor(){super(...arguments);V(this,Ee,null)}get scrollElement(){return o(this,Ee)}connectedCallback(){const i=Is.findParentElement(this,exports.ScrollElement);i instanceof exports.ScrollElement?F(this,Ee,i):console.error(this,"e-scroll not found")}}Ee=new WeakMap;var Ks=Object.defineProperty,Zs=Object.getOwnPropertyDescriptor,Js=(r,e,i,n)=>{for(var h=n>1?void 0:n?Zs(e,i):e,c=r.length-1,S;c>=0;c--)(S=r[c])&&(h=(n?S(e,i,h):S(h))||h);return n&&h&&Ks(e,i,h),h},ks=(r,e,i)=>{if(!e.has(r))throw TypeError("Cannot "+i)},f=(r,e,i)=>(ks(r,e,"read from private field"),i?i.call(r):e.get(r)),N=(r,e,i)=>{if(e.has(r))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(r):e.set(r,i)},Pt=(r,e,i,n)=>(ks(r,e,"write to private field"),n?n.call(r,i):e.set(r,i),i),me,q,ht,ot,we,be,te,Fe,Re,qe;const Qs=cs.createStylesheet({":host":{display:"inline-block",zIndex:"1",backgroundColor:bs.aptechkaTheme.colorLight.var},':host([axis="y"])':{position:"absolute",right:"0",top:"0",width:"1vmin",height:"100%"},':host([axis="x"])':{position:"absolute",left:"0",bottom:"0",width:"100%",height:"1vmin"},".default-thumb":{backgroundColor:bs.aptechkaTheme.colorDark.var,borderRadius:"1vmin",touchAction:"none"},"::slotted(*)":{touchAction:"none"}});exports.ScrollbarElement=class extends Je{constructor(){super(),N(this,me,null),N(this,q,null),N(this,ht,!1),N(this,ot,0),N(this,we,0),N(this,be,0),N(this,te,()=>{Pt(this,ht,this.offsetWidth>this.offsetHeight);const e=f(this,ht)?this.offsetWidth:this.offsetHeight;Pt(this,ot,e/((this.scrollElement.scrollSize+this.scrollElement.viewportSize)/e)),Pt(this,ot,Math.max(f(this,ot),30)),f(this,ht)?(f(this,q).style.width=f(this,ot)+"px",f(this,q).style.height="100%"):(f(this,q).style.width="100%",f(this,q).style.height=f(this,ot)+"px"),Pt(this,we,e-f(this,ot)),this.scrollElement.scrollSize||(this.style.display="none")}),N(this,Fe,()=>{Pt(this,be,this.scrollElement.currentProgress*f(this,we)),f(this,ht)?f(this,q).style.transform=`translate3d(${f(this,be)}px, 0px, 0px)`:f(this,q).style.transform=`translate3d(0px, ${f(this,be)}px, 0px)`}),N(this,Re,()=>{this.setAttribute("axis",this.scrollElement.axisCSSProperty.current)}),N(this,qe,e=>{document.documentElement.classList.add("grabbing"),Bs.setupDrag(h=>{const c=f(this,ht)?h.x:h.y,S=this.scrollElement.distance/f(this,we),Me=(c-n)*S;this.scrollElement.setPosition(i+Me)},()=>{document.documentElement.classList.remove("grabbing")});const i=this.scrollElement.targetScrollValue,n=f(this,ht)?e.x:e.y}),as.isBrowser&&(this.openShadow(Qs),I.element(this,{slot:"static","drag-dead-zone":"",children:[I.slot({ref:e=>Pt(this,me,e),children:I.div({class:"default-thumb"})})]}))}get thumbElement(){return f(this,q)}connectedCallback(){super.connectedCallback();const e=f(this,me).assignedElements()[0]||f(this,me).firstElementChild;Pt(this,q,e),f(this,q).addEventListener("pointerdown",f(this,qe)),ue.windowResizer.subscribe(f(this,te),Pe.RESIZE_ORDER.SCROLL+1),Ge.elementResizer.subscribe(this,f(this,te)),this.scrollElement.onScroll(f(this,Fe)),this.scrollElement.axisCSSProperty.subscribe(f(this,Re))}disconnectedCallback(){f(this,q).removeEventListener("pointerdown",f(this,qe)),ue.windowResizer.unsubscribe(f(this,te)),Ge.elementResizer.unsubscribe(f(this,te)),this.scrollElement.offScroll(f(this,Fe)),this.scrollElement.axisCSSProperty.unsubscribe(f(this,Re))}};me=new WeakMap;q=new WeakMap;ht=new WeakMap;ot=new WeakMap;we=new WeakMap;be=new WeakMap;te=new WeakMap;Fe=new WeakMap;Re=new WeakMap;qe=new WeakMap;exports.ScrollbarElement=Js([_t.define("e-scrollbar")],exports.ScrollbarElement);const Xs=cs.createStylesheet({button:{all:"inherit"}});class Ws extends Je{constructor(){super(),this.openShadow(Xs),as.isBrowser&&I.element(this,{children:[I.button({onClick:()=>{this.handleClick()},children:[I.slot()]})]})}}var Ys=Object.defineProperty,js=Object.getOwnPropertyDescriptor,ti=(r,e,i,n)=>{for(var h=n>1?void 0:n?js(e,i):e,c=r.length-1,S;c>=0;c--)(S=r[c])&&(h=(n?S(e,i,h):S(h))||h);return n&&h&&Ys(e,i,h),h};exports.ScrollSetButtonElement=class extends Ws{handleClick(){const e=this.getAttribute("index"),i=this.getAttribute("behaviour");this.scrollElement.scrollToSection(parseInt(e||"0"),i)}};exports.ScrollSetButtonElement=ti([_t.define("e-scroll-set-button")],exports.ScrollSetButtonElement);var ei=Object.defineProperty,si=Object.getOwnPropertyDescriptor,ii=(r,e,i,n)=>{for(var h=n>1?void 0:n?si(e,i):e,c=r.length-1,S;c>=0;c--)(S=r[c])&&(h=(n?S(e,i,h):S(h))||h);return n&&h&&ei(e,i,h),h};exports.ScrollStepButtonElement=class extends Ws{handleClick(){const e=this.getAttribute("step"),i=this.getAttribute("behaviour");this.scrollElement.shiftSections(parseInt(e||"1"),i)}};exports.ScrollStepButtonElement=ii([_t.define("e-scroll-step-button")],exports.ScrollStepButtonElement);var ri=Object.defineProperty,ni=Object.getOwnPropertyDescriptor,hi=(r,e,i,n)=>{for(var h=n>1?void 0:n?ni(e,i):e,c=r.length-1,S;c>=0;c--)(S=r[c])&&(h=(n?S(e,i,h):S(h))||h);return n&&h&&ri(e,i,h),h},Ms=(r,e,i)=>{if(!e.has(r))throw TypeError("Cannot "+i)},Ut=(r,e,i)=>(Ms(r,e,"read from private field"),i?i.call(r):e.get(r)),gs=(r,e,i)=>{if(e.has(r))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(r):e.set(r,i)},Cs=(r,e,i,n)=>(Ms(r,e,"write to private field"),n?n.call(r,i):e.set(r,i),i),Lt,ge,st,Ct,le,ke,We,ce;class oi{constructor(e,i,n){V(this,st,void 0);V(this,Ct,void 0);V(this,le,void 0);V(this,ke,void 0);V(this,We,()=>{o(this,Ct).scrollToSection(o(this,le),o(this,ke))});V(this,ce,()=>{o(this,st).classList.toggle("current",o(this,Ct).counter.current===o(this,le))});F(this,st,document.createElement("button")),F(this,Ct,e),F(this,ke,n),F(this,le,i),o(this,st).addEventListener("click",o(this,We)),o(this,Ct).counter.subscribe(o(this,ce)),o(this,ce).call(this)}get element(){return o(this,st)}destroy(){o(this,st).removeEventListener("click",o(this,We)),o(this,Ct).counter.unsubscribe(o(this,ce)),o(this,st).remove()}}st=new WeakMap,Ct=new WeakMap,le=new WeakMap,ke=new WeakMap,We=new WeakMap,ce=new WeakMap;exports.ScrollBulletButtonsElement=class extends Je{constructor(){super(...arguments),gs(this,Lt,[]),gs(this,ge,_s.debounce(()=>{Ut(this,Lt).forEach(e=>e.destroy()),Cs(this,Lt,[]);for(let e=0;e<this.scrollElement.sections.length;e++){const i=new oi(this.scrollElement,e,this.getAttribute("behaviour")||"smooth");this.appendChild(i.element),Ut(this,Lt).push(i)}},0))}connectedCallback(){super.connectedCallback(),this.scrollElement.addEventListener("sectionsChange",Ut(this,ge)),Ut(this,ge).call(this)}disconnectedCallback(){this.scrollElement.removeEventListener("sectionsChange",Ut(this,ge)),Ut(this,Lt).forEach(e=>e.destroy()),Cs(this,Lt,[])}};Lt=new WeakMap;ge=new WeakMap;exports.ScrollBulletButtonsElement=hi([_t.define("e-scroll-bullet-buttons")],exports.ScrollBulletButtonsElement);var ai=Object.defineProperty,li=Object.getOwnPropertyDescriptor,ci=(r,e,i,n)=>{for(var h=n>1?void 0:n?li(e,i):e,c=r.length-1,S;c>=0;c--)(S=r[c])&&(h=(n?S(e,i,h):S(h))||h);return n&&h&&ai(e,i,h),h},fs=(r,e,i)=>{if(!e.has(r))throw TypeError("Cannot "+i)},s=(r,e,i)=>(fs(r,e,"read from private field"),i?i.call(r):e.get(r)),l=(r,e,i)=>{if(e.has(r))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(r):e.set(r,i)},w=(r,e,i,n)=>(fs(r,e,"write to private field"),n?n.call(r,i):e.set(r,i),i),k=(r,e,i)=>(fs(r,e,"access private method"),i),ee,se,ie,re,zt,Vt,Ot,$t,D,H,G,U,Tt,x,ut,pt,St,ft,dt,M,J,Z,wt,bt,tt,Te,m,ne,he,Be,L,Dt,O,z,K,Ce,At,E,es,xs,ss,Ls,is,zs,rs,Vs,ns,Os,hs,$s,Ie,ye,at,Ft,ds,Ds,vs,Fs,Ae,os,He;exports.ScrollSegmentElement=class extends Je{constructor(){super(),l(this,es),l(this,ss),l(this,is),l(this,rs),l(this,ns),l(this,hs),l(this,at),l(this,ds),l(this,vs),l(this,Ae),l(this,ee,new u.CSSProperty(this,"--damping",20)),l(this,se,new u.CSSProperty(this,"--mass",0)),l(this,ie,new u.CSSProperty(this,"--stiffness",0)),l(this,re,new u.CSSProperty(this,"--target","")),l(this,zt,new u.CSSProperty(this,"--disabled",!1)),l(this,Vt,new u.CSSProperty(this,"--distance-offset",0,{rawValueCheck:!1})),l(this,Ot,new u.CSSProperty(this,"--start-offset",0,{rawValueCheck:!1})),l(this,$t,new u.CSSProperty(this,"--capture-once",!1)),l(this,D,new u.CSSProperty(this,"--captured","")),l(this,H,new u.CSSProperty(this,"--released","")),l(this,G,new u.CSSProperty(this,"--captured-from-start","")),l(this,U,new u.CSSProperty(this,"--captured-from-finish","")),l(this,Tt,new u.CSSProperty(this,"--released-from-start","")),l(this,x,new u.CSSProperty(this,"--released-from-finish","")),l(this,ut,new u.CSSProperty(this,"--passed-var","")),l(this,pt,new u.CSSProperty(this,"--progress-var","")),l(this,St,new u.CSSProperty(this,"--distance-var","")),l(this,ft,new u.CSSProperty(this,"--start-var","")),l(this,dt,new u.CSSProperty(this,"--finish-var","")),l(this,M,new Et.Store(!1)),l(this,J,new Et.Store(!1)),l(this,Z,new Et.Store(!1)),l(this,wt,new Et.Store(!1)),l(this,bt,new Et.Store(!1)),l(this,tt,new Et.Store(!1)),l(this,Te,[]),l(this,m,this),l(this,ne,0),l(this,he,0),l(this,Be,0),l(this,L,new ys.Damped(0,{order:Pe.TICK_ORDER.SCROLL-1,min:0,max:1})),l(this,Dt,0),l(this,O,0),l(this,z,0),l(this,K,0),l(this,Ce,!1),l(this,At,!1),l(this,E,!0),l(this,Ie,()=>{s(this,E)||(this.resize(),s(this,ye).call(this))}),l(this,ye,()=>{!s(this,E)&&s(this,Ce)&&this.tick()}),l(this,He,_s.debounce(()=>{const e=Gt.scrollEntries.getAll(this).reverse();let i=0;e.forEach((n,h)=>{n.element===this.scrollElement&&(i=h)}),w(this,Te,e.slice(i+1))},0))}get distanceOffsetCSSProperty(){return s(this,Vt)}get startOffsetCSSProperty(){return s(this,Ot)}get captureOnceCSSProperty(){return s(this,$t)}get capturedCSSProperty(){return s(this,D)}get releasedCSSProperty(){return s(this,H)}get capturedFromStartCSSProperty(){return s(this,G)}get capturedFromFinishCSSProperty(){return s(this,U)}get releasedFromStartCSSProperty(){return s(this,Tt)}get releasedFromFinishCSSProperty(){return s(this,x)}get passedVarCSSProperty(){return s(this,ut)}get progressVarCSSProperty(){return s(this,pt)}get distanceVarCSSProperty(){return s(this,St)}get startVarCSSProperty(){return s(this,ft)}get finishVarCSSProperty(){return s(this,dt)}get disabledCSSProperty(){return s(this,zt)}get dampingCSSProperty(){return s(this,ee)}get massCSSProperty(){return s(this,se)}get stiffnessCSSProperty(){return s(this,ie)}get targetCSSProperty(){return s(this,re)}get isCaptured(){return s(this,M)}get isReleased(){return s(this,J)}get isCapturedFromStart(){return s(this,Z)}get isReleasedFromStart(){return s(this,wt)}get isCapturedFromFinish(){return s(this,bt)}get isReleasedFromFinish(){return s(this,tt)}get directionPosition(){return s(this,ne)}get directionSize(){return s(this,he)}get passed(){return s(this,L)}get progress(){return s(this,Dt)}get start(){return s(this,O)}get finish(){return s(this,K)}get distance(){return s(this,z)}get isCapturedOnce(){return s(this,At)}get isDisabled(){return s(this,E)}resize(){w(this,he,this.scrollElement.vertical?this.offsetHeight:this.offsetWidth),w(this,ne,this.scrollElement.vertical?yt.getCumulativeOffsetTop(this,this.scrollElement):yt.getCumulativeOffsetLeft(this,this.scrollElement)),w(this,O,this.getStart()),w(this,z,this.getDistance()),w(this,O,s(this,O)+s(this,Ot).current),w(this,z,s(this,z)+s(this,Vt).current),w(this,K,s(this,O)+s(this,z)),this.scrollElement.currentScrollValue>s(this,K)&&!s(this,M).current&&!s(this,J).current&&(s(this,M).current=!0),this.setVar(s(this,ft).current,s(this,O)),this.setVar(s(this,dt).current,s(this,K)),this.setVar(s(this,St).current,s(this,z)),s(this,L).max=s(this,z),w(this,Ce,!0)}tick(){let e=this.scrollElement.currentScrollValue;s(this,Te).forEach(n=>{e+=n.value}),s(this,L).set(e-s(this,O));const i=Math.round(e);s(this,M).current&&(i>s(this,O)?s(this,Z).current||k(this,is,zs).call(this):s(this,Z).current&&!s(this,wt).current&&k(this,ns,Os).call(this),i<s(this,K)?s(this,tt).current&&!s(this,bt).current&&k(this,rs,Vs).call(this):s(this,Z).current&&!s(this,tt).current&&k(this,hs,$s).call(this)),i>s(this,O)&&i<s(this,K)?s(this,M).current||k(this,es,xs).call(this):s(this,M).current&&(s(this,L).set(ls.step(s(this,z)/2,s(this,L).current,0,s(this,z))),k(this,ss,Ls).call(this)),s(this,At)&&s(this,$t).current&&(s(this,D).current&&s(this,m).classList.add(s(this,D).current),w(this,E,!0))}disable(){this.style.cssText="",w(this,ne,0),w(this,he,0),s(this,L).reset(),w(this,Dt,0),w(this,O,0),w(this,z,0),w(this,K,0),w(this,Ce,!1),s(this,M).current=!1,s(this,J).current=!1,s(this,Z).current=!1,s(this,wt).current=!1,s(this,bt).current=!1,s(this,tt).current=!1,w(this,At,!1),w(this,E,!0),k(this,Ae,os).call(this)}enable(){w(this,E,!1)}connectedCallback(){super.connectedCallback(),s(this,ee).observe(),s(this,se).observe(),s(this,ie).observe(),s(this,re).observe(),s(this,zt).observe(),s(this,Vt).observe(),s(this,Ot).observe(),s(this,$t).observe(),s(this,D).observe(),s(this,H).observe(),s(this,G).observe(),s(this,U).observe(),s(this,Tt).observe(),s(this,x).observe(),s(this,ut).observe(),s(this,pt).observe(),s(this,St).observe(),s(this,ft).observe(),s(this,dt).observe();let e=!1;this.scrollElement.addEventListener("sectionsChange",s(this,He)),s(this,He).call(this),s(this,zt).current||this.enable(),s(this,ee).subscribe(i=>{s(this,L).damping=i.current}),s(this,se).subscribe(i=>{s(this,L).mass=i.current}),s(this,ie).subscribe(i=>{s(this,L).stiffness=i.current}),s(this,re).subscribe(i=>{i.previous&&k(this,Ae,os).call(this),i.current?i.current==="parent"?w(this,m,this.parentElement||this):w(this,m,document.querySelector(i.current)||this):w(this,m,this)}),s(this,zt).subscribe(i=>{i.current&&!i.previous?this.disable():!i.current&&i.previous&&(this.resize(),this.enable())}),s(this,Ot).subscribe(()=>{e&&!s(this,E)&&this.resize()}),s(this,Vt).subscribe(()=>{e&&!s(this,E)&&this.resize()}),s(this,D).subscribe(i=>{k(this,at,Ft).call(this,i)}),s(this,G).subscribe(i=>{k(this,at,Ft).call(this,i)}),s(this,U).subscribe(i=>{k(this,at,Ft).call(this,i)}),s(this,H).subscribe(i=>{k(this,at,Ft).call(this,i)}),s(this,Tt).subscribe(i=>{k(this,at,Ft).call(this,i)}),s(this,x).subscribe(i=>{k(this,at,Ft).call(this,i)}),s(this,$t).subscribe(i=>{s(this,E)||!i.current&&i.previous&&(this.resize(),this.enable())}),s(this,ut).subscribe(i=>{s(this,E)||(this.removeVar(i.previous),this.setVar(i.current,this.passed.current))}),s(this,pt).subscribe(i=>{s(this,E)||(this.removeVar(i.previous),this.setVar(i.current,s(this,Dt)))}),s(this,ft).subscribe(i=>{s(this,E)||(this.removeVar(i.previous),this.setVar(i.current,s(this,O)))}),s(this,dt).subscribe(i=>{s(this,E)||(this.removeVar(i.previous),this.setVar(i.current,s(this,K)))}),s(this,St).subscribe(i=>{s(this,E)||(this.removeVar(i.previous),this.setVar(i.current,s(this,z)))}),s(this,L).subscribe(i=>{w(this,Dt,s(this,L).current/s(this,z)||0),this.setVar(s(this,ut).current,s(this,L).current.toFixed(6)),this.setVar(s(this,pt).current,s(this,Dt).toFixed(6))}),ue.windowResizer.subscribe(s(this,Ie),Pe.RESIZE_ORDER.SEGMENT),this.scrollElement.onScroll(s(this,ye)),e=!0}disconnectedCallback(){ue.windowResizer.unsubscribe(s(this,Ie)),this.scrollElement.offScroll(s(this,ye)),s(this,ee).close(),s(this,se).close(),s(this,ie).close(),s(this,re).close(),s(this,zt).close(),s(this,Vt).close(),s(this,Ot).close(),s(this,$t).close(),s(this,D).close(),s(this,H).close(),s(this,G).close(),s(this,U).close(),s(this,Tt).close(),s(this,x).close(),s(this,ut).close(),s(this,pt).close(),s(this,St).close(),s(this,ft).close(),s(this,dt).close(),s(this,M).close(),s(this,J).close(),s(this,Z).close(),s(this,wt).close(),s(this,bt).close(),s(this,tt).close(),this.disable()}removeVar(e){e&&s(this,m).style.removeProperty(`--${e}`)}setVar(e,i){e&&s(this,m).style.setProperty(`--${e}`,i.toString())}getDistance(){return s(this,he)+s(this,Be)}getStart(){return s(this,ne)-s(this,Be)}};ee=new WeakMap;se=new WeakMap;ie=new WeakMap;re=new WeakMap;zt=new WeakMap;Vt=new WeakMap;Ot=new WeakMap;$t=new WeakMap;D=new WeakMap;H=new WeakMap;G=new WeakMap;U=new WeakMap;Tt=new WeakMap;x=new WeakMap;ut=new WeakMap;pt=new WeakMap;St=new WeakMap;ft=new WeakMap;dt=new WeakMap;M=new WeakMap;J=new WeakMap;Z=new WeakMap;wt=new WeakMap;bt=new WeakMap;tt=new WeakMap;Te=new WeakMap;m=new WeakMap;ne=new WeakMap;he=new WeakMap;Be=new WeakMap;L=new WeakMap;Dt=new WeakMap;O=new WeakMap;z=new WeakMap;K=new WeakMap;Ce=new WeakMap;At=new WeakMap;E=new WeakMap;es=new WeakSet;xs=function(){s(this,M).current=!0,s(this,J).current=!1,w(this,At,!0),s(this,H).current&&s(this,m).classList.remove(s(this,H).current),s(this,x).current&&s(this,m).classList.remove(s(this,x).current),s(this,x).current&&s(this,m).classList.remove(s(this,x).current),s(this,D).current&&s(this,m).classList.add(s(this,D).current)};ss=new WeakSet;Ls=function(){s(this,J).current=!0,s(this,M).current=!1,w(this,At,!0),s(this,D).current&&s(this,m).classList.remove(s(this,D).current),s(this,G).current&&s(this,m).classList.remove(s(this,G).current),s(this,U).current&&s(this,m).classList.remove(s(this,U).current),s(this,H).current&&s(this,m).classList.add(s(this,H).current)};is=new WeakSet;zs=function(){s(this,M).current=!0,s(this,Z).current=!0,s(this,wt).current=!1,s(this,G).current&&s(this,m).classList.add(s(this,G).current)};rs=new WeakSet;Vs=function(){s(this,M).current=!0,s(this,bt).current=!0,s(this,tt).current=!1,s(this,U).current&&s(this,m).classList.add(s(this,U).current)};ns=new WeakSet;Os=function(){s(this,J).current=!0,s(this,wt).current=!0,s(this,Z).current=!1,s(this,x).current&&s(this,m).classList.add(s(this,x).current)};hs=new WeakSet;$s=function(){s(this,J).current=!0,s(this,tt).current=!0,s(this,bt).current=!1,s(this,x).current&&s(this,m).classList.add(s(this,x).current)};Ie=new WeakMap;ye=new WeakMap;at=new WeakSet;Ft=function(r){if(s(this,E)){r.previous&&s(this,m).classList.remove(r.previous),r.current&&s(this,m).classList.remove(r.current);return}r.current&&s(this,M).current?(r.previous&&s(this,m).classList.remove(r.previous),s(this,m).classList.add(r.current)):!r.current&&r.previous&&s(this,m).classList.remove(r.previous)};ds=new WeakSet;Ds=function(...r){r.forEach(e=>{e&&s(this,m).classList.remove(e)})};vs=new WeakSet;Fs=function(...r){r.forEach(e=>{e&&s(this,m).style.removeProperty(`--${e}`)})};Ae=new WeakSet;os=function(){k(this,ds,Ds).call(this,s(this,D).current,s(this,G).current,s(this,U).current,s(this,H).current,s(this,Tt).current,s(this,x).current),k(this,vs,Fs).call(this,s(this,ut).current,s(this,pt).current,s(this,St).current,s(this,ft).current,s(this,dt).current)};He=new WeakMap;exports.ScrollSegmentElement=ci([_t.define("e-scroll-segment")],exports.ScrollSegmentElement);
|
package/lib/scroll/index.js
CHANGED
|
@@ -7,24 +7,23 @@ var a = (e, i, r) => (bs(e, i, "read from private field"), r ? r.call(e) : i.get
|
|
|
7
7
|
throw TypeError("Cannot add the same private member more than once");
|
|
8
8
|
i instanceof WeakSet ? i.add(e) : i.set(e, r);
|
|
9
9
|
}, O = (e, i, r, h) => (bs(e, i, "write to private field"), h ? h.call(e, r) : i.set(e, r), r);
|
|
10
|
-
import { S as Ct } from "../Store-
|
|
11
|
-
import { D as Ks } from "../Derived-
|
|
10
|
+
import { S as Ct } from "../Store-BQXXikps.js";
|
|
11
|
+
import { D as Ks } from "../Derived-kPJs5JC5.js";
|
|
12
12
|
import { i as os } from "../browser-0zX67oeU.js";
|
|
13
13
|
import { a as Re, g as Te } from "../layout-HoBT_Da2.js";
|
|
14
14
|
import { c as Es, s as Zs } from "../math-BOBiC4TN.js";
|
|
15
|
-
import "../path-data-polyfill-DgeDWYeI.js";
|
|
16
15
|
import "../ticker/index.js";
|
|
17
16
|
import { TICK_ORDER as xs, RESIZE_ORDER as ls } from "../order/index.js";
|
|
18
|
-
import { D as Ls } from "../Damped-
|
|
17
|
+
import { D as Ls } from "../Damped-QZAoXO5Z.js";
|
|
19
18
|
import { WheelControls as Js, KeyboardControls as Qs, DragControls as Xs, AutoplayControls as Ys } from "../controls/index.js";
|
|
20
19
|
import { CustomElement as Vs, define as ue } from "../custom-element/index.js";
|
|
21
20
|
import { windowResizer as oe } from "../window-resizer/index.js";
|
|
22
21
|
import { scrollEntries as Bt } from "../scroll-entries/index.js";
|
|
23
|
-
import { e as cs, D as Je, ay as Be, p as js } from "../tags-
|
|
24
|
-
import { c as us } from "../createStylesheet-
|
|
22
|
+
import { e as cs, D as Je, ay as Be, p as js } from "../tags-CMPg9ETZ.js";
|
|
23
|
+
import { c as us } from "../createStylesheet-DBCEbDjI.js";
|
|
25
24
|
import { cssUnitParser as gs } from "../css-unit-parser/index.js";
|
|
26
25
|
import { CSSProperty as c } from "../css-property/index.js";
|
|
27
|
-
import { d as ti } from "../Viewport-
|
|
26
|
+
import { d as ti } from "../Viewport-CFFhFKqX.js";
|
|
28
27
|
import { elementResizer as He } from "../element-resizer/index.js";
|
|
29
28
|
import { s as ei } from "../gestures-D2Fdra_G.js";
|
|
30
29
|
import { aptechkaTheme as ws } from "../theme/index.js";
|
package/lib/select/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../index-D2XtQX56.cjs");Object.defineProperty(exports,"SelectElement",{enumerable:!0,get:()=>e.SelectElement});Object.defineProperty(exports,"SelectHeadElement",{enumerable:!0,get:()=>e.SelectHeadElement});Object.defineProperty(exports,"SelectOptionElement",{enumerable:!0,get:()=>e.SelectOptionElement});exports.SelectUserElement=e.SelectUserElement;
|
package/lib/select/index.js
CHANGED
package/lib/sequence/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var P=(n,s,t)=>new Promise((i,a)=>{var u=r=>{try{d(t.next(r))}catch(w){a(w)}},o=r=>{try{d(t.throw(r))}catch(w){a(w)}},d=r=>r.done?i(r.value):Promise.resolve(r.value).then(u,o);d((t=t.apply(n,s)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const k=require("../canvas/index.cjs"),C=require("../css-property/index.cjs"),I=require("../custom-element/index.cjs"),q=require("../element-resizer/index.cjs");require("../window-resizer/index.cjs");require("../Store-
|
|
1
|
+
"use strict";var P=(n,s,t)=>new Promise((i,a)=>{var u=r=>{try{d(t.next(r))}catch(w){a(w)}},o=r=>{try{d(t.throw(r))}catch(w){a(w)}},d=r=>r.done?i(r.value):Promise.resolve(r.value).then(u,o);d((t=t.apply(n,s)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const k=require("../canvas/index.cjs"),C=require("../css-property/index.cjs"),I=require("../custom-element/index.cjs"),q=require("../element-resizer/index.cjs");require("../window-resizer/index.cjs");require("../Store-C-1ruEIm.cjs");const L=require("../browser-CpzFX2xg.cjs"),W=require("../canvas-CU5Xjahf.cjs"),R=require("../source/index.cjs");var z=Object.defineProperty,O=Object.getOwnPropertyDescriptor,B=(n,s,t,i)=>{for(var a=i>1?void 0:i?O(s,t):s,u=n.length-1,o;u>=0;u--)(o=n[u])&&(a=(i?o(s,t,a):o(a))||a);return i&&a&&z(s,t,a),a},x=(n,s,t)=>{if(!s.has(n))throw TypeError("Cannot "+t)},e=(n,s,t)=>(x(n,s,"read from private field"),t?t.call(n):s.get(n)),c=(n,s,t)=>{if(s.has(n))throw TypeError("Cannot add the same private member more than once");s instanceof WeakSet?s.add(n):s.set(n,t)},m=(n,s,t,i)=>(x(n,s,"write to private field"),i?i.call(n,t):s.set(n,t),t),h,E,g,p,v,S,_,b,l,f;function D(n){const s=n.match(/\{([\d-]+)\}/);if(s){const t=s[1].split("-");if(t.length===2){const i=parseInt(t[0],10),a=parseInt(t[1],10);return{start:i,end:a}}}return null}exports.SequenceElement=class extends R.SourceElement{constructor(s){super(),c(this,h,[]),c(this,E,new C.CSSProperty(this,"--fit","contain")),c(this,g,new C.CSSProperty(this,"--autoplay",!1)),c(this,p,new C.CSSProperty(this,"--offset-x",.5)),c(this,v,new C.CSSProperty(this,"--offset-y",.5)),c(this,S,null),c(this,_,0),c(this,b,1),c(this,l,()=>{if(e(this,h).length){const t=e(this,h)[0];e(this,E).current==="cover"?m(this,S,W.cover(t.naturalWidth,t.naturalHeight,this.consumerElement.width,this.consumerElement.height,e(this,p).current,e(this,v).current)):m(this,S,W.contain(t.naturalWidth,t.naturalHeight,this.consumerElement.width,this.consumerElement.height,e(this,p).current,e(this,v).current))}}),c(this,f,t=>{if(this.status.isFalse("loaded")||!e(this,S))return;t.detail.context.clearRect(0,0,t.detail.width,t.detail.height);const i=e(this,h)[e(this,_)];i&&t.detail.context.drawImage(i,...e(this,S)),e(this,g).current&&m(this,_,(e(this,_)+1)%e(this,h).length)}),L.isBrowser&&(m(this,b,parseInt(((s==null?void 0:s.pad)||this.getAttribute("pad")||"1").toString())),e(this,E).subscribe(e(this,l)),e(this,p).subscribe(e(this,l)),e(this,v).subscribe(e(this,l)),this.addEventListener("sourceCapture",t=>{this.consumerElement.addEventListener("canvasRender",e(this,f))}),this.addEventListener("sourceRelease",t=>{this.consumerElement.removeEventListener("canvasRender",e(this,f))}))}setProgress(s){e(this,h).length&&m(this,_,Math.floor((e(this,h).length-1)*s))}connectedCallback(){super.connectedCallback(),e(this,g).observe(),e(this,E).observe(),e(this,p).observe(),e(this,v).observe(),q.elementResizer.subscribe(this,e(this,l))}disconnectedCallback(){super.disconnectedCallback(),e(this,g).unobserve(),e(this,E).unobserve(),e(this,p).unobserve(),e(this,v).unobserve(),m(this,h,[]),q.elementResizer.unsubscribe(e(this,l)),this.consumerElement.removeEventListener("canvasRender",e(this,f))}createConsumer(){return new k.CanvasElement}consumeSource(s){return P(this,null,function*(){var t,i,a,u;if(s){this.consumerElement.removeEventListener("canvasRender",e(this,f));const o=[],d=D(s);if(d)for(let r=d.start;r<=d.end;r++){const w=s.replace(/\{([^}]+)\}/,r.toString().padStart(e(this,b),"0")),y=new Image;y.src=w,o.push(y)}else{const r=new Image;r.src=s,o.push(r)}try{yield Promise.all(o.map((r,w)=>new Promise((y,M)=>{r.onload=()=>{y()},r.onerror=T=>{M(`${r.src} Image not found`)}}))),m(this,h,o),e(this,l).call(this),(i=(t=this.consumerElement).onload)==null||i.call(t,new Event("load")),this.isLazy||this.consumerElement.addEventListener("canvasRender",e(this,f))}catch(r){console.error(r),(u=(a=this.consumerElement).onerror)==null||u.call(a,new Event("error"))}}})}};h=new WeakMap;E=new WeakMap;g=new WeakMap;p=new WeakMap;v=new WeakMap;S=new WeakMap;_=new WeakMap;b=new WeakMap;l=new WeakMap;f=new WeakMap;exports.SequenceElement=B([I.define("e-sequence")],exports.SequenceElement);
|
package/lib/sequence/index.js
CHANGED
|
@@ -19,10 +19,9 @@ import { CSSProperty as C } from "../css-property/index.js";
|
|
|
19
19
|
import { define as L } from "../custom-element/index.js";
|
|
20
20
|
import { elementResizer as W } from "../element-resizer/index.js";
|
|
21
21
|
import "../window-resizer/index.js";
|
|
22
|
-
import "../Store-
|
|
22
|
+
import "../Store-BQXXikps.js";
|
|
23
23
|
import { i as x } from "../browser-0zX67oeU.js";
|
|
24
24
|
import { c as R, a as O } from "../canvas-DeZ0SLUJ.js";
|
|
25
|
-
import "../path-data-polyfill-DgeDWYeI.js";
|
|
26
25
|
import { SourceElement as z } from "../source/index.js";
|
|
27
26
|
var B = Object.defineProperty, D = Object.getOwnPropertyDescriptor, q = (s, t, r, a) => {
|
|
28
27
|
for (var i = a > 1 ? void 0 : a ? D(t, r) : t, o = s.length - 1, u; o >= 0; o--)
|