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/utils/index.js
CHANGED
|
@@ -1,181 +1,143 @@
|
|
|
1
|
-
import { a as
|
|
2
|
-
import { i as
|
|
3
|
-
import { a as
|
|
4
|
-
import { g as
|
|
5
|
-
import { f as
|
|
6
|
-
import { c as
|
|
7
|
-
import { d as
|
|
8
|
-
import { c as
|
|
9
|
-
import { d as
|
|
10
|
-
import { s as
|
|
11
|
-
import { g as
|
|
12
|
-
import { e as
|
|
13
|
-
import { p as
|
|
14
|
-
import { c as
|
|
15
|
-
import { n as
|
|
16
|
-
import { c as
|
|
17
|
-
import { a as
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
return [...t.slice(0, e), ...a, ...t.slice(e)];
|
|
1
|
+
import { a as g, p as b } from "../attributes-69we3byR.js";
|
|
2
|
+
import { i as C } from "../browser-0zX67oeU.js";
|
|
3
|
+
import { a as O, c as S, f as w, m as y } from "../canvas-DeZ0SLUJ.js";
|
|
4
|
+
import { g as v, n as T, s as A } from "../coordinates-CgdGoSYs.js";
|
|
5
|
+
import { f as Q, b as D, a as R, g as k } from "../dom-0S_WDL4g.js";
|
|
6
|
+
import { c as z, n as N, f as V, p as M, b as U, i as W, m as q, e as B, g as J, j as K, d as L, o as $, a as F, h as G, k as H, l as X } from "../easings-BKi40vHz.js";
|
|
7
|
+
import { d as Z } from "../events-_C2CztxR.js";
|
|
8
|
+
import { c as ee } from "../file-lxi_oXJf.js";
|
|
9
|
+
import { d as se, t as te } from "../function-C10DGppn.js";
|
|
10
|
+
import { s as ne } from "../gestures-D2Fdra_G.js";
|
|
11
|
+
import { g as ie, a as ue, b as ce } from "../layout-HoBT_Da2.js";
|
|
12
|
+
import { e as fe, f as pe, c as me, d as de, l as xe, m as ge, r as be, b as he, a as Ce, s as Ee } from "../math-BOBiC4TN.js";
|
|
13
|
+
import { p as Se, r as we } from "../number-Bo5RdrA1.js";
|
|
14
|
+
import { c as Ie, d as ve, i as Te, b as Ae, a as Pe, m as Qe, e as De, o as Re, p as ke } from "../object-D6MVWB4l.js";
|
|
15
|
+
import { n as ze } from "../polyfills-DJUYczFm.js";
|
|
16
|
+
import { c as Ve, a as Me, g as Ue, i as We, k as qe, s as Be, t as Je, u as Ke } from "../string-f0Dnk0L1.js";
|
|
17
|
+
import { a as $e, g as Fe } from "../style-CklEF62D.js";
|
|
18
|
+
function i(a, e, ...s) {
|
|
19
|
+
return [...a.slice(0, e), ...s, ...a.slice(e)];
|
|
21
20
|
}
|
|
22
|
-
function
|
|
23
|
-
const
|
|
24
|
-
e = e %
|
|
25
|
-
const
|
|
26
|
-
for (let o = 0; o <
|
|
27
|
-
const
|
|
28
|
-
n
|
|
21
|
+
function u(a, e) {
|
|
22
|
+
const s = a.length;
|
|
23
|
+
e = e % s;
|
|
24
|
+
const t = new Array(s);
|
|
25
|
+
for (let o = 0; o < s; o++) {
|
|
26
|
+
const n = (o + e) % s;
|
|
27
|
+
t[n] = a[o];
|
|
29
28
|
}
|
|
30
|
-
return
|
|
29
|
+
return t;
|
|
31
30
|
}
|
|
32
|
-
function
|
|
33
|
-
return
|
|
31
|
+
function c(a, e) {
|
|
32
|
+
return a.x < e.x + e.width && a.x > e.x && a.y < e.y + e.height && a.y > e.y;
|
|
34
33
|
}
|
|
35
|
-
function
|
|
36
|
-
return Math.sqrt((
|
|
34
|
+
function l(a, e) {
|
|
35
|
+
return Math.sqrt((a.x - e.x) ** 2 + (a.y - e.y) ** 2) < e.radius;
|
|
37
36
|
}
|
|
38
|
-
function
|
|
39
|
-
const
|
|
40
|
-
if (
|
|
41
|
-
const
|
|
42
|
-
return
|
|
37
|
+
function r(a, e) {
|
|
38
|
+
const s = a.styleMap.get(e);
|
|
39
|
+
if (s) {
|
|
40
|
+
const t = s.toString();
|
|
41
|
+
return t.startsWith("var") ? r(a, t.slice(4, -1)) : t;
|
|
43
42
|
}
|
|
44
43
|
}
|
|
45
|
-
function
|
|
44
|
+
function f(...a) {
|
|
46
45
|
const e = {};
|
|
47
|
-
return Array.from(document.styleSheets).forEach((
|
|
48
|
-
Array.from(
|
|
49
|
-
|
|
50
|
-
const
|
|
51
|
-
|
|
46
|
+
return Array.from(document.styleSheets).forEach((s) => {
|
|
47
|
+
Array.from(s.cssRules).forEach((t) => {
|
|
48
|
+
t instanceof CSSStyleRule && t.selectorText === ":root" && a.forEach((o) => {
|
|
49
|
+
const n = r(t, o);
|
|
50
|
+
n && (e[o] = n);
|
|
52
51
|
});
|
|
53
52
|
});
|
|
54
|
-
}),
|
|
55
|
-
e[
|
|
53
|
+
}), a.forEach((s) => {
|
|
54
|
+
e[s] || console.warn(`variable named ${s} not found`);
|
|
56
55
|
}), e;
|
|
57
56
|
}
|
|
58
|
-
function
|
|
59
|
-
const e = window.atob(
|
|
57
|
+
function p(a) {
|
|
58
|
+
const e = window.atob(a);
|
|
60
59
|
return decodeURIComponent(window.escape(e));
|
|
61
60
|
}
|
|
62
|
-
function
|
|
63
|
-
const e = window.unescape(encodeURIComponent(
|
|
61
|
+
function m(a) {
|
|
62
|
+
const e = window.unescape(encodeURIComponent(a));
|
|
64
63
|
return window.btoa(e);
|
|
65
64
|
}
|
|
66
|
-
function h(t, { pathSelector: e = "path" } = {}) {
|
|
67
|
-
const a = document.createElement(null);
|
|
68
|
-
a.innerHTML = t;
|
|
69
|
-
const n = a.firstElementChild, r = n.querySelector(e).getPathData(), s = n.getAttribute("viewBox").split(" ").map((c) => c.trim()), i = {
|
|
70
|
-
x: parseInt(s[0]),
|
|
71
|
-
y: parseInt(s[1]),
|
|
72
|
-
width: parseInt(s[2]),
|
|
73
|
-
height: parseInt(s[3])
|
|
74
|
-
}, u = Math.min(i.width, i.height);
|
|
75
|
-
return r.forEach((c) => {
|
|
76
|
-
c.values = c.values.map((l) => l / u);
|
|
77
|
-
}), r;
|
|
78
|
-
}
|
|
79
|
-
function d(t, e, a, n, o) {
|
|
80
|
-
const r = [];
|
|
81
|
-
for (let s = 0; s <= 1; s += 1 / o) {
|
|
82
|
-
const i = Math.pow(1 - s, 3) * t.x + 3 * Math.pow(1 - s, 2) * s * e.x + 3 * (1 - s) * Math.pow(s, 2) * a.x + Math.pow(s, 3) * n.x, u = Math.pow(1 - s, 3) * t.y + 3 * Math.pow(1 - s, 2) * s * e.y + 3 * (1 - s) * Math.pow(s, 2) * a.y + Math.pow(s, 3) * n.y;
|
|
83
|
-
r.push({ x: i, y: u });
|
|
84
|
-
}
|
|
85
|
-
return r;
|
|
86
|
-
}
|
|
87
|
-
function I(t, e) {
|
|
88
|
-
const a = (e == null ? void 0 : e.segments) || 20, n = h(t, e);
|
|
89
|
-
let o = [];
|
|
90
|
-
for (let r = 0; r < n.length - 1; r++) {
|
|
91
|
-
const { type: s, values: i } = n[r];
|
|
92
|
-
if (s === "M" && r === 0)
|
|
93
|
-
o.push({ x: i[0], y: i[1] });
|
|
94
|
-
else if (s === "C") {
|
|
95
|
-
const u = o[o.length - 1], c = { x: i[0], y: i[1] }, l = { x: i[2], y: i[3] }, f = { x: i[4], y: i[5] }, m = d(u, c, l, f, a);
|
|
96
|
-
o = [...o, ...m];
|
|
97
|
-
}
|
|
98
|
-
}
|
|
99
|
-
return o;
|
|
100
|
-
}
|
|
101
65
|
export {
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
C as
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
et as toPascalCase,
|
|
180
|
-
tt as uncapitalize
|
|
66
|
+
fe as calculateDistance,
|
|
67
|
+
pe as calculateDistanceWithRadius,
|
|
68
|
+
Ve as camelToKebab,
|
|
69
|
+
Me as capitalize,
|
|
70
|
+
me as clamp,
|
|
71
|
+
Ie as cloneDeep,
|
|
72
|
+
ve as compareObjects,
|
|
73
|
+
O as contain,
|
|
74
|
+
S as cover,
|
|
75
|
+
ee as createJSONAndSave,
|
|
76
|
+
de as damp,
|
|
77
|
+
se as debounce,
|
|
78
|
+
m as decode,
|
|
79
|
+
Z as dispatchSizeChangeEvent,
|
|
80
|
+
l as dotCircleCollision,
|
|
81
|
+
c as dotRectCollision,
|
|
82
|
+
z as easeInCubic,
|
|
83
|
+
N as easeInExpo,
|
|
84
|
+
V as easeInOutCubic,
|
|
85
|
+
M as easeInOutExpo,
|
|
86
|
+
U as easeInOutQuad,
|
|
87
|
+
W as easeInOutQuart,
|
|
88
|
+
q as easeInOutQuint,
|
|
89
|
+
B as easeInQuad,
|
|
90
|
+
J as easeInQuart,
|
|
91
|
+
K as easeInQuint,
|
|
92
|
+
L as easeOutCubic,
|
|
93
|
+
$ as easeOutExpo,
|
|
94
|
+
F as easeOutQuad,
|
|
95
|
+
G as easeOutQuart,
|
|
96
|
+
H as easeOutQuint,
|
|
97
|
+
p as encode,
|
|
98
|
+
Q as findParentElement,
|
|
99
|
+
D as findScrollParentElement,
|
|
100
|
+
w as fixPosition,
|
|
101
|
+
Ue as generateId,
|
|
102
|
+
R as getAllParentElements,
|
|
103
|
+
ie as getCumulativeOffsetLeft,
|
|
104
|
+
ue as getCumulativeOffsetTop,
|
|
105
|
+
ce as getCumulativePosition,
|
|
106
|
+
k as getElement,
|
|
107
|
+
$e as getElementTransitionDurationMS,
|
|
108
|
+
Fe as getElementTransitionDurationS,
|
|
109
|
+
v as getPointerPosition,
|
|
110
|
+
f as getRootVariables,
|
|
111
|
+
i as insert,
|
|
112
|
+
C as isBrowser,
|
|
113
|
+
Te as isESClass,
|
|
114
|
+
Ae as isNullish,
|
|
115
|
+
Pe as isObject,
|
|
116
|
+
We as isUppercase,
|
|
117
|
+
qe as kebabToCamel,
|
|
118
|
+
xe as lerp,
|
|
119
|
+
X as linear,
|
|
120
|
+
ge as mapRange,
|
|
121
|
+
y as measureText,
|
|
122
|
+
Qe as mergeDeep,
|
|
123
|
+
De as mixin,
|
|
124
|
+
T as normalize,
|
|
125
|
+
ze as nullishCoalescing,
|
|
126
|
+
Re as omit,
|
|
127
|
+
g as parseAttribute,
|
|
128
|
+
b as parseAttributeValue,
|
|
129
|
+
ke as pick,
|
|
130
|
+
Se as preciseNumber,
|
|
131
|
+
be as round,
|
|
132
|
+
we as roundNumberTo,
|
|
133
|
+
A as screenToCartesian,
|
|
134
|
+
ne as setupDrag,
|
|
135
|
+
u as shiftArray,
|
|
136
|
+
he as smootherstep,
|
|
137
|
+
Ce as smoothstep,
|
|
138
|
+
Be as snakeToDotted,
|
|
139
|
+
Ee as step,
|
|
140
|
+
te as throttle,
|
|
141
|
+
Je as toPascalCase,
|
|
142
|
+
Ke as uncapitalize
|
|
181
143
|
};
|
package/lib/video/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("../custom-element/index.cjs");require("../window-resizer/index.cjs");require("../Store-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("../custom-element/index.cjs");require("../window-resizer/index.cjs");require("../Store-C-1ruEIm.cjs");const o=require("../source/index.cjs");var l=Object.defineProperty,a=Object.getOwnPropertyDescriptor,m=(s,t,n,r)=>{for(var e=r>1?void 0:r?a(t,n):t,i=s.length-1,u;i>=0;i--)(u=s[i])&&(e=(r?u(t,n,e):u(e))||e);return r&&e&&l(t,n,e),e};exports.VideoElement=class extends o.SourceElement{connectedCallback(){super.connectedCallback(),this.addEventListener("sourceCapture",()=>{this.hasAttribute("capture-autoplay")&&this.consumerElement.play()}),this.addEventListener("sourceRelease",()=>{this.hasAttribute("capture-autoplay")&&(this.consumerElement.pause(),this.hasAttribute("replay")&&(this.consumerElement.currentTime=0))})}createConsumer(){return document.createElement("video")}consumeSource(t){this.consumerElement.src=t||""}};exports.VideoElement=m([c.define("e-video")],exports.VideoElement);
|
package/lib/video/index.js
CHANGED
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
import { define as u } from "../custom-element/index.js";
|
|
2
2
|
import "../window-resizer/index.js";
|
|
3
|
-
import "../Store-
|
|
4
|
-
import "../path-data-polyfill-DgeDWYeI.js";
|
|
3
|
+
import "../Store-BQXXikps.js";
|
|
5
4
|
import { SourceElement as a } from "../source/index.js";
|
|
6
|
-
var
|
|
7
|
-
for (var e = s > 1 ? void 0 : s ?
|
|
5
|
+
var l = Object.defineProperty, m = Object.getOwnPropertyDescriptor, p = (t, r, n, s) => {
|
|
6
|
+
for (var e = s > 1 ? void 0 : s ? m(r, n) : r, o = t.length - 1, i; o >= 0; o--)
|
|
8
7
|
(i = t[o]) && (e = (s ? i(r, n, e) : i(e)) || e);
|
|
9
|
-
return s && e &&
|
|
8
|
+
return s && e && l(r, n, e), e;
|
|
10
9
|
};
|
|
11
10
|
let c = class extends a {
|
|
12
11
|
connectedCallback() {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var c=(e,i,s)=>{if(!i.has(e))throw TypeError("Cannot "+s)};var n=(e,i,s)=>(c(e,i,"read from private field"),s?s.call(e):i.get(e)),d=(e,i,s)=>{if(i.has(e))throw TypeError("Cannot add the same private member more than once");i instanceof WeakSet?i.add(e):i.set(e,s)},w=(e,i,s,o)=>(c(e,i,"write to private field"),o?o.call(e,s):i.set(e,s),s);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const b=require("../notifier/index.cjs"),a=require("../browser-CpzFX2xg.cjs"),h=require("../function-MthRj-GJ.cjs")
|
|
1
|
+
"use strict";var c=(e,i,s)=>{if(!i.has(e))throw TypeError("Cannot "+s)};var n=(e,i,s)=>(c(e,i,"read from private field"),s?s.call(e):i.get(e)),d=(e,i,s)=>{if(i.has(e))throw TypeError("Cannot add the same private member more than once");i instanceof WeakSet?i.add(e):i.set(e,s)},w=(e,i,s,o)=>(c(e,i,"write to private field"),o?o.call(e,s):i.set(e,s),s);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const b=require("../notifier/index.cjs"),a=require("../browser-CpzFX2xg.cjs"),h=require("../function-MthRj-GJ.cjs"),v=h.debounce(e=>{e?window.dispatchEvent(new CustomEvent("resize",{detail:{cause:e}})):window.dispatchEvent(new Event("resize"))},0);var t,r,u;class z extends b.Notifier{constructor(){super();d(this,t,!1);d(this,r,()=>{n(this,t)||(w(this,t,!0),n(this,u).call(this))});d(this,u,h.debounce(()=>{this.notify(),w(this,t,!1)},0));a.isBrowser&&(window.addEventListener("resize",n(this,r)),n(this,r).call(this))}subscribe(s,o){const f=super.subscribe(s,o);return n(this,t)||s(),f}}t=new WeakMap,r=new WeakMap,u=new WeakMap;const l=new z;exports.WindowResizer=z;exports.dispatchWindowResizeEvent=v;exports.windowResizer=l;
|
|
@@ -10,8 +10,7 @@ var r = (e, i, s) => (f(e, i, "read from private field"), s ? s.call(e) : i.get(
|
|
|
10
10
|
import { Notifier as p } from "../notifier/index.js";
|
|
11
11
|
import { i as z } from "../browser-0zX67oeU.js";
|
|
12
12
|
import { d as u } from "../function-C10DGppn.js";
|
|
13
|
-
|
|
14
|
-
const R = u((e) => {
|
|
13
|
+
const l = u((e) => {
|
|
15
14
|
e ? window.dispatchEvent(
|
|
16
15
|
new CustomEvent("resize", {
|
|
17
16
|
detail: {
|
|
@@ -21,7 +20,7 @@ const R = u((e) => {
|
|
|
21
20
|
) : window.dispatchEvent(new Event("resize"));
|
|
22
21
|
}, 0);
|
|
23
22
|
var t, n, w;
|
|
24
|
-
class
|
|
23
|
+
class a extends p {
|
|
25
24
|
constructor() {
|
|
26
25
|
super();
|
|
27
26
|
d(this, t, !1);
|
|
@@ -39,9 +38,9 @@ class m extends p {
|
|
|
39
38
|
}
|
|
40
39
|
}
|
|
41
40
|
t = new WeakMap(), n = new WeakMap(), w = new WeakMap();
|
|
42
|
-
const
|
|
41
|
+
const R = new a();
|
|
43
42
|
export {
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
43
|
+
a as WindowResizer,
|
|
44
|
+
l as dispatchWindowResizeEvent,
|
|
45
|
+
R as windowResizer
|
|
47
46
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "aptechka",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.27",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "git+https://github.com/denisavitski/aptechka.git"
|
|
@@ -208,6 +208,11 @@
|
|
|
208
208
|
"default": "./lib/store/index.js",
|
|
209
209
|
"types": "./lib/store/index.d.ts"
|
|
210
210
|
},
|
|
211
|
+
"./svg-path-data": {
|
|
212
|
+
"require": "./lib/svg-path-data/index.cjs",
|
|
213
|
+
"default": "./lib/svg-path-data/index.js",
|
|
214
|
+
"types": "./lib/svg-path-data/index.d.ts"
|
|
215
|
+
},
|
|
211
216
|
"./theme": {
|
|
212
217
|
"require": "./lib/theme/index.cjs",
|
|
213
218
|
"default": "./lib/theme/index.js",
|
|
@@ -358,6 +363,9 @@
|
|
|
358
363
|
"store": [
|
|
359
364
|
"lib/store/index.d.ts"
|
|
360
365
|
],
|
|
366
|
+
"svg-path-data": [
|
|
367
|
+
"lib/svg-path-data/index.d.ts"
|
|
368
|
+
],
|
|
361
369
|
"theme": [
|
|
362
370
|
"lib/theme/index.d.ts"
|
|
363
371
|
],
|
package/lib/Damped-CbWlWAbx.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";var tt=Object.defineProperty,st=Object.defineProperties;var it=Object.getOwnPropertyDescriptors;var H=Object.getOwnPropertySymbols;var et=Object.prototype.hasOwnProperty,rt=Object.prototype.propertyIsEnumerable;var J=(r,i,t)=>i in r?tt(r,i,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[i]=t,R=(r,i)=>{for(var t in i||(i={}))et.call(i,t)&&J(r,t,i[t]);if(H)for(var t of H(i))rt.call(i,t)&&J(r,t,i[t]);return r},B=(r,i)=>st(r,it(i));var j=(r,i,t)=>{if(!i.has(r))throw TypeError("Cannot "+t)};var s=(r,i,t)=>(j(r,i,"read from private field"),t?t.call(r):i.get(r)),e=(r,i,t)=>{if(i.has(r))throw TypeError("Cannot add the same private member more than once");i instanceof WeakSet?i.add(r):i.set(r,t)},h=(r,i,t,n)=>(j(r,i,"write to private field"),n?n.call(r,t):i.set(r,t),t);var x=(r,i,t)=>(j(r,i,"access private method"),t);const U=require("./math-GDWEqu7y.cjs"),E=require("./number-yVpzMdbQ.cjs"),g=require("./polyfills-CrcS4RcO.cjs");require("./path-data-polyfill-CXsOR7Oc.cjs");const _=require("./Store-BQGNOHlY.cjs"),Q=require("./ticker/index.cjs"),ht=require("./order/index.cjs");var u,d,F,w,y,C,O,S,v,W,V,X,T,G,K,Y,z;class nt{constructor(i,t,n,P,A){e(this,v);e(this,V);e(this,T);e(this,K);e(this,u,void 0);e(this,d,void 0);e(this,F,void 0);e(this,w,void 0);e(this,y,!1);e(this,C,!1);e(this,O,!1);e(this,S,void 0);e(this,z,i=>{!s(this,O)&&s(this,u).initial!==s(this,u).current&&h(this,O,!0),s(this,O)&&(i.direction>0&&i.progress>=s(this,F).current?x(this,v,W).call(this):i.direction<0&&i.progress<=s(this,F).current&&x(this,V,X).call(this))});h(this,u,i),h(this,d,t),h(this,F,new _.Store(n,{passport:t.passport?{name:t.passport+"-start",manager:{type:"number"}}:void 0})),h(this,w,new _.Store(P,{passport:t.passport?{name:t.passport+"-set",manager:{type:"number"}}:void 0})),h(this,S,A),s(this,u).subscribe(s(this,z)),s(this,u).linked.add(this)}get targetAnimation(){return s(this,d)}get triggerAnimation(){return s(this,u)}destroy(){s(this,w).close(),s(this,F).close(),s(this,u).unsubscribe(s(this,z)),s(this,u).linked.delete(this)}}u=new WeakMap,d=new WeakMap,F=new WeakMap,w=new WeakMap,y=new WeakMap,C=new WeakMap,O=new WeakMap,S=new WeakMap,v=new WeakSet,W=function(){s(this,y)||(h(this,C,!1),h(this,y,!0),x(this,T,G).call(this,s(this,w).current))},V=new WeakSet,X=function(){s(this,y)&&!s(this,C)&&(h(this,y,!1),h(this,C,!0),x(this,T,G).call(this,s(this,d).initial))},T=new WeakSet,G=function(i){x(this,K,Y).call(this),s(this,d).updateOptions(s(this,S)),s(this,d).set(i)},K=new WeakSet,Y=function(){var i;(i=s(this,S))!=null&&i.once&&this.destroy()},z=new WeakMap;var D,M,N,f,o,b,I,a,c,l,k,p,L;class Z extends _.Store{constructor(t,n){super(t||0,n);e(this,D,void 0);e(this,M,ht.TICK_ORDER.ANIMATION);e(this,N,void 0);e(this,f,new _.Store(!1));e(this,o,new Set);e(this,b,null);e(this,I,0);e(this,a,0);e(this,c,-1/0);e(this,l,1/0);e(this,k,0);e(this,p,1);e(this,L,t=>{this.handleAnimationFrame(t)})}get linked(){return s(this,o)}get animationLink(){return s(this,b)}get direction(){return s(this,I)}get target(){return s(this,a)}get min(){return s(this,c)}set min(t){h(this,c,t),this.set(s(this,a),{equalize:!0})}get max(){return s(this,l)}set max(t){h(this,l,t),this.set(s(this,a),{equalize:!0})}get from(){return s(this,k)}get to(){return s(this,p)}get isRunning(){return s(this,f)}get currentDistance(){return Math.abs(s(this,p)-s(this,k))}get distance(){return Math.abs(s(this,l)-s(this,c))}get currentProgress(){return this.currentDistance?E.preciseNumber(Math.abs(this.current-s(this,k))/this.currentDistance,6):0}get progress(){return this.distance?E.preciseNumber(Math.abs(this.current-s(this,c))/this.distance,6):0}get entry(){return B(R({},super.entry),{from:s(this,k),to:s(this,p),currentDistance:this.currentDistance,distance:this.distance,direction:this.direction,currentProgress:this.currentProgress,progress:this.progress})}setTarget(t){h(this,I,Math.sign(t-s(this,a))),h(this,a,U.clamp(t,s(this,c),s(this,l))),h(this,k,this.current),h(this,p,t)}set(t,n){s(this,a)!==t&&(this.setTarget(t),n&&this.updateOptions(n),s(this,a)!==this.current&&this.start())}shift(t,n){this.set(s(this,a)+t,n)}reset(){this.set(this.initial,{equalize:!0}),super.reset(),s(this,o).forEach(t=>{t.targetAnimation.reset()})}close(){super.close(),this.unlistenAnimationFrame(),this.unlink(),s(this,o).clear()}listenAnimationFrame(){s(this,f).current||(s(this,f).current=!0,Q.ticker.subscribe(s(this,L),{maxFPS:s(this,D),order:s(this,M),culling:s(this,N)}))}unlistenAnimationFrame(){s(this,f).current&&(s(this,f).current=!1,Q.ticker.unsubscribe(s(this,L)),s(this,o).forEach(t=>{t.targetAnimation.unlistenAnimationFrame()}))}updateOptions(t){h(this,D,g.nullishCoalescing(t==null?void 0:t.maxFPS,s(this,D))),h(this,M,g.nullishCoalescing(t==null?void 0:t.order,s(this,M))),h(this,N,g.nullishCoalescing(t==null?void 0:t.culling,s(this,N))),h(this,c,g.nullishCoalescing(t==null?void 0:t.min,s(this,c))),h(this,l,g.nullishCoalescing(t==null?void 0:t.max,s(this,l))),t!=null&&t.equalize&&(this.unlistenAnimationFrame(),this.current=s(this,a))}linkTo(t,n,P,A){this.unlink(),h(this,b,new nt(t,this,n,P,A))}unlink(){s(this,b)&&(s(this,b).destroy(),h(this,b,null))}start(){this.listenAnimationFrame()}}D=new WeakMap,M=new WeakMap,N=new WeakMap,f=new WeakMap,o=new WeakMap,b=new WeakMap,I=new WeakMap,a=new WeakMap,c=new WeakMap,l=new WeakMap,k=new WeakMap,p=new WeakMap,L=new WeakMap;var m,q;class at extends Z{constructor(t,n){super(t,n);e(this,m,void 0);e(this,q,void 0);this.damping=20,this.stiffness=0,this.mass=0,h(this,m,0),h(this,q,0),this.updateOptions(B(R({},n),{equalize:!0}))}get velocity(){return s(this,m)}get speed(){return s(this,q)}get entry(){return B(R({},super.entry),{velocity:s(this,m),speed:s(this,q)})}updateOptions(t){this.damping=g.nullishCoalescing(t==null?void 0:t.damping,this.damping),this.mass=g.nullishCoalescing(t==null?void 0:t.mass,this.mass),this.stiffness=g.nullishCoalescing(t==null?void 0:t.stiffness,this.stiffness),super.updateOptions(t)}updateManually(t){this.setTarget(t),this.current=this.target}handleAnimationFrame(t){E.preciseNumber(this.current,4)===E.preciseNumber(this.target,4)&&(this.unlistenAnimationFrame(),this.current=this.target);const n=this.current,P=Math.abs(n-this.target);h(this,q,P/t.timeBetweenFrames);const A=t.timeBetweenFrames/1e3;if(this.mass||this.stiffness){const $=(this.target-this.current)*this.stiffness-s(this,m)*this.damping;h(this,m,s(this,m)+$/this.mass*A),this.current+=s(this,m)*A}else this.current=U.damp(this.current,this.target,this.damping,A)}}m=new WeakMap,q=new WeakMap;exports.Animation=Z;exports.Damped=at;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";var b=(c,e,t)=>{if(!e.has(c))throw TypeError("Cannot "+t)};var r=(c,e,t)=>(b(c,e,"read from private field"),t?t.call(c):e.get(c)),o=(c,e,t)=>{if(e.has(c))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(c):e.set(c,t)},i=(c,e,t,n)=>(b(c,e,"write to private field"),n?n.call(c,t):e.set(c,t),t);const B=require("./order/index.cjs"),k=require("./window-resizer/index.cjs"),T=require("./Store-BQGNOHlY.cjs");require("./path-data-polyfill-CXsOR7Oc.cjs");var y,g,q,m,a,d,w;class z{constructor(e){o(this,y,void 0);o(this,g,void 0);o(this,q,void 0);o(this,m,void 0);o(this,a,void 0);o(this,d,void 0);o(this,w,void 0);i(this,y,e);const t=e.indexOf("?");t>=0&&(e=e.slice(0,t));const n=e.split(".");i(this,g,n[0]);const x=/\d+x/g,h=n.find(u=>u.match(x));i(this,q,h?parseInt(h):1);const f=/\d+max/g,M=/\d+min/g,s=/\d+mar/g,l=/\d+mir/g,S=n.find(u=>u.match(f)),I=n.find(u=>u.match(M)),V=n.find(u=>u.match(s)),$=n.find(u=>u.match(l));V?(i(this,a,parseInt(V)),i(this,d,"max"),i(this,m,`(max-aspect-ratio: ${r(this,a)})`)):$?(i(this,a,parseInt($)),i(this,d,"max"),i(this,m,`(min-aspect-ratio: ${r(this,a)})`)):S?(i(this,a,parseInt(S)),i(this,d,"max"),i(this,m,`(max-width: ${r(this,a)}px)`)):I?(i(this,a,parseInt(I)),i(this,m,`(min-width: ${r(this,a)}px)`),i(this,d,"min")):(i(this,a,0),i(this,m,`(min-width: ${r(this,a)}px)`),i(this,d,"min")),i(this,w,"."+n[n.length-1])}get url(){return r(this,y)}get name(){return r(this,g)}get density(){return r(this,q)}get query(){return r(this,m)}get extension(){return r(this,w)}get queryType(){return r(this,d)}get queryValue(){return r(this,a)}}y=new WeakMap,g=new WeakMap,q=new WeakMap,m=new WeakMap,a=new WeakMap,d=new WeakMap,w=new WeakMap;var p;class A{constructor(e){o(this,p,void 0);i(this,p,new Map);const t=typeof e=="string"?e.trim().split(",").map(s=>s.trim()).filter(s=>!!s):e,n=[];t.forEach(s=>{const l=new z(s);n.push([l.query,l])});const x=n.filter(s=>s[1].queryType.includes("max")).sort((s,l)=>l[1].queryValue-s[1].queryValue),h=n.filter(s=>s[1].queryType.includes("min")&&s[1].queryValue!==0).sort((s,l)=>s[1].queryValue-l[1].queryValue),f=n.filter(s=>s[0]==="(min-width: 0px)");(f?[...f,...x,...h]:[...x,...h]).forEach(s=>{r(this,p).has(s[0])||r(this,p).set(s[0],[]),r(this,p).get(s[0]).push(s[1])})}get mediaBuckets(){return r(this,p)}}p=new WeakMap;var R,E;class _ extends T.Store{constructor(t){super(void 0);o(this,R,void 0);o(this,E,()=>{let t;r(this,R).mediaBuckets.forEach((h,f)=>{matchMedia(f).matches&&(t=h)});let n,x=0;t==null||t.forEach(h=>{h.density>x&&h.density<=Math.max(devicePixelRatio,1)&&(x=h.density,n=h)}),t!=null&&t.length&&!n&&(n=t[0]),this.current=n});i(this,R,new A(t.srcset))}close(){super.close(),this.disconnect()}connect(){k.windowResizer.subscribe(r(this,E),B.RESIZE_ORDER.SOURCE_MANAGER)}disconnect(){k.windowResizer.unsubscribe(r(this,E))}}R=new WeakMap,E=new WeakMap;exports.Source=z;exports.SourceManager=_;exports.SourceSet=A;
|
package/lib/Store-BQGNOHlY.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";var R=(s,t,e)=>{if(!t.has(s))throw TypeError("Cannot "+e)};var r=(s,t,e)=>(R(s,t,"read from private field"),e?e.call(s):t.get(s)),a=(s,t,e)=>{if(t.has(s))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(s):t.set(s,e)},i=(s,t,e,h)=>(R(s,t,"write to private field"),h?h.call(s,e):t.set(s,e),e);var p=(s,t,e)=>(R(s,t,"access private method"),e);const M=require("./browser-CpzFX2xg.cjs");require("./path-data-polyfill-CXsOR7Oc.cjs");var l,d,S;class I{constructor(){a(this,l,null);a(this,d,"");a(this,S,"");M.isBrowser&&(i(this,d,document.documentElement.getAttribute("data-project")||"unnamed"),i(this,S,r(this,d)?r(this,d)+"-store-registry":"store-registry"))}get projectName(){return r(this,d)}get localStoreRegistryName(){return r(this,S)}get loadedState(){return r(this,l)}saveState(){const t=this.getState(),e=JSON.stringify(t);localStorage.setItem(r(this,S),e)}loadState(t=localStorage.getItem(r(this,S))){t&&(typeof t=="string"?i(this,l,JSON.parse(t)):i(this,l,t),n.current.forEach(e=>{e.passport&&this.updateStore(e)}))}resetState(){n.current.forEach(t=>{t.passport&&t.reset()}),this.saveState()}updateStore(t){var h,N;if(!Array.isArray((h=r(this,l))==null?void 0:h.stores))return t;const e=t.passport;if(e){const k=(N=r(this,l))==null?void 0:N.stores.find(z=>z.name===e.name);k&&(t.current=k.value)}return t}getState(){const t={stores:[]};return n.current.forEach(e=>{e.passport&&(t.stores.find(h=>h.name===e.passport.name)||t.stores.push({value:e.current,name:e.passport.name}))}),t}}l=new WeakMap,d=new WeakMap,S=new WeakMap;const C=new I;var m,y,g,f,o,u,b,c,v,w,A,j;class E{constructor(t,e){a(this,A);a(this,m,void 0);a(this,y,void 0);a(this,g,void 0);a(this,f,void 0);a(this,o,void 0);a(this,u,new Set);a(this,b,void 0);a(this,c,void 0);a(this,v,void 0);a(this,w,void 0);i(this,m,e==null?void 0:e.passport),i(this,y,t),i(this,g,void 0),i(this,f,t),i(this,o,(e==null?void 0:e.equalityCheck)||((h,N)=>h===N)),e!=null&&e.validate&&this.addMiddleware(e.validate),i(this,v,(e==null?void 0:e.notifyAndClose)||!1),i(this,w,(e==null?void 0:e.invisible)||!1),i(this,b,(e==null?void 0:e.skipSubscribeNotification)||!1),r(this,m)&&C.updateStore(this)}get passport(){return r(this,m)}get initial(){return r(this,y)}get previous(){return r(this,g)}get current(){return r(this,f)}set current(t){if(!r(this,o).call(this,r(this,f),t)){if(i(this,g,r(this,f)),r(this,c))for(const e of r(this,c))t=e(t);i(this,f,t),p(this,A,j).call(this),r(this,v)&&this.close()}}get subscribers(){return r(this,u)}get entry(){return{current:r(this,f),previous:r(this,g)}}addMiddleware(t){r(this,c)||i(this,c,new Set),r(this,c).add(t)}removeMiddleware(t){var e,h;(e=r(this,c))==null||e.delete(t),(h=r(this,c))!=null&&h.size||i(this,c,void 0)}subscribe(t){return!r(this,w)&&!r(this,u).size&&J(this),r(this,u).add(t),r(this,b)||t(this.entry),()=>{this.unsubscribe(t)}}unsubscribe(t){r(this,u).delete(t),r(this,u).size||q(this)}reset(){this.current=this.initial}close(){r(this,u).clear(),q(this)}}m=new WeakMap,y=new WeakMap,g=new WeakMap,f=new WeakMap,o=new WeakMap,u=new WeakMap,b=new WeakMap,c=new WeakMap,v=new WeakMap,w=new WeakMap,A=new WeakSet,j=function(){for(const t of r(this,u))t(this.entry)};const n=new E([],{invisible:!0});function J(s){n.current.includes(s)||(n.current=[...n.current,s])}function q(s){n.current.includes(s)&&(n.current=n.current.filter(t=>t!==s))}exports.Store=E;exports.activeStores=n;exports.storeRegistry=C;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";var W=(e,s,o)=>{if(!s.has(e))throw TypeError("Cannot "+o)};var i=(e,s,o)=>(W(e,s,"read from private field"),o?o.call(e):s.get(e)),n=(e,s,o)=>{if(s.has(e))throw TypeError("Cannot add the same private member more than once");s instanceof WeakSet?s.add(e):s.set(e,o)},t=(e,s,o,v)=>(W(e,s,"write to private field"),v?v.call(e,o):s.set(e,o),o);const k=require("./order/index.cjs"),z=require("./window-resizer/index.cjs"),A=require("./browser-CpzFX2xg.cjs");require("./path-data-polyfill-CXsOR7Oc.cjs");const T=require("detect-gpu"),q=require("./Store-BQGNOHlY.cjs");var r,l,m,c,g,u,w,x,d;class I{constructor(){n(this,r,void 0);n(this,l,void 0);n(this,m,void 0);n(this,c,void 0);n(this,g,void 0);n(this,u,void 0);n(this,w,void 0);n(this,x,void 0);n(this,d,void 0);var s,o;if(t(this,r,"unknown"),t(this,l,"unknown"),t(this,m,0),t(this,c,null),t(this,g,!1),t(this,u,!1),t(this,w,!1),t(this,x,!1),t(this,d,!1),this.resize=()=>{t(this,g,/Mobi|Android/i.test(navigator.userAgent)),t(this,u,"ontouchstart"in window||navigator.maxTouchPoints>0),setTimeout(()=>{t(this,u,"ontouchstart"in window||navigator.maxTouchPoints>0)},0)},A.isBrowser){t(this,c,T.getGPUTier()),i(this,c).then(a=>{t(this,l,a.gpu||"unknown"),t(this,m,a.tier)}),this.resize(),z.windowResizer.subscribe(this.resize,k.RESIZE_ORDER.DEVICE);{const a=document.createElement("canvas"),P=a.getContext("webgl")||a.getContext("experimental-webgl");t(this,w,P&&P instanceof WebGLRenderingContext||!1)}{const a=document.createElement("canvas");a.getContext("2d")&&t(this,x,a.toDataURL("image/webp").indexOf("data:image/webp")==0)}const v=window.navigator.userAgent,E=((o=(s=window.navigator)==null?void 0:s.userAgentData)==null?void 0:o.platform)||window.navigator.platform,C=["Macintosh","MacIntel","MacPPC","Mac68K","macOS"],O=["Win32","Win64","Windows","WinCE"],R=["iPhone","iPad","iPod"];C.includes(E)?(t(this,r,"macOS"),t(this,d,!0)):R.includes(E)?(t(this,r,"iOS"),t(this,d,!0)):O.includes(E)?t(this,r,"Windows"):/Android/.test(v)?t(this,r,"Android"):/Linux/.test(E)?t(this,r,"Linux"):t(this,r,"unknown")}}get OS(){return i(this,r)}get gpu(){return i(this,l)}get gpuTier(){return i(this,m)}get gpuDetection(){return i(this,c)}get isMobile(){return i(this,g)}get isTouch(){return i(this,u)}get isWebgl(){return i(this,w)}get isWebp(){return i(this,x)}get isApple(){return i(this,d)}}r=new WeakMap,l=new WeakMap,m=new WeakMap,c=new WeakMap,g=new WeakMap,u=new WeakMap,w=new WeakMap,x=new WeakMap,d=new WeakMap;const M=new I;var D=(e=>(e.mobile="600px",e.tablet="1024px",e.notebook="1280px",e.desktop="1281px",e))(D||{}),S=(e=>(e["<=mobile"]="(max-width: 600px)",e[">=mobile"]="(min-width: 601px)",e["<=tablet"]="(max-width: 1024px)",e[">=tablet"]="(min-width: 1025px)",e["<=notebook"]="(max-width: 1280px)",e[">=notebook"]="(min-width: 1281px)",e["<=desktop"]="(max-width: 1280px)",e[">=desktop"]="(min-width: 1281px)",e))(S||{}),p,b,f,h;class L{constructor(){n(this,p,void 0);n(this,b,void 0);n(this,f,void 0);n(this,h,void 0);t(this,p,0),t(this,b,0),t(this,f,0),t(this,h,new q.Store(void 0)),this.resize=()=>{t(this,p,document.documentElement.clientWidth),t(this,b,innerHeight),t(this,f,devicePixelRatio),matchMedia("(max-width: 600px)").matches?i(this,h).current="mobile":matchMedia("(max-width: 1024px)").matches?i(this,h).current="tablet":matchMedia("(max-width: 1280px)").matches?i(this,h).current="notebook":matchMedia("(min-width: 1281px)").matches&&(i(this,h).current="desktop")},A.isBrowser&&(this.resize(),z.windowResizer.subscribe(this.resize,k.RESIZE_ORDER.DEVICE))}get width(){return i(this,p)}get height(){return i(this,b)}get type(){return i(this,h)}get pixelRatio(){return i(this,f)}}p=new WeakMap,b=new WeakMap,f=new WeakMap,h=new WeakMap;const _=new L;exports.ViewportBreakpoints=D;exports.ViewportMediaRules=S;exports.device=M;exports.viewport=_;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const u=require("./string-DhgS_iFl.cjs");require("./path-data-polyfill-CXsOR7Oc.cjs");function l(r,a){const t=(a==null?void 0:a.prefix)||"",c={style:{}};for(const e in r)c[e]={var:`var(--${t}${u.camelToKebab(e)})`,value:r[e]},c.style[`--${t}${u.camelToKebab(e)}`]=r[e];return c}exports.createTheme=l;
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { c as f } from "./string-f0Dnk0L1.js";
|
|
2
|
-
import "./path-data-polyfill-DgeDWYeI.js";
|
|
3
|
-
function s(r, a) {
|
|
4
|
-
const t = (a == null ? void 0 : a.prefix) || "", c = {
|
|
5
|
-
style: {}
|
|
6
|
-
};
|
|
7
|
-
for (const e in r)
|
|
8
|
-
c[e] = {
|
|
9
|
-
var: `var(--${t}${f(e)})`,
|
|
10
|
-
value: r[e]
|
|
11
|
-
}, c.style[`--${t}${f(e)}`] = r[e];
|
|
12
|
-
return c;
|
|
13
|
-
}
|
|
14
|
-
export {
|
|
15
|
-
s as c
|
|
16
|
-
};
|