aptechka 0.83.0 → 0.84.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/Animation-BAiM6_n1.js +111 -0
- package/lib/Animation-DMWabSR0.cjs +1 -0
- package/lib/Composed-B0fvCtZz.cjs +1 -0
- package/lib/Composed-CgA9lLWA.js +75 -0
- package/lib/Damped-BLo-OAVb.cjs +1 -0
- package/lib/Damped-Dcz5UdMH.js +57 -0
- package/lib/DerivedArray-DFhxap_z.js +63 -0
- package/lib/DerivedArray-DYtWMW0n.cjs +1 -0
- package/lib/DragControls-BPHsDeH6.cjs +1 -0
- package/lib/DragControls-D2a1Cifp.js +234 -0
- package/lib/LocalLinks-BWFJYhGX.cjs +1 -0
- package/lib/LocalLinks-Dwgf3No6.js +65 -0
- package/lib/PageAnnouncerElement-DPMlVJZG.cjs +1 -0
- package/lib/PageAnnouncerElement-DV9pm_od.js +28 -0
- package/lib/PageScroll-BAatKJx6.cjs +1 -0
- package/lib/PageScroll-m3TsHnzR.js +65 -0
- package/lib/SourceElement-941MrYpq.js +265 -0
- package/lib/SourceElement-DBLZ7b5k.cjs +5 -0
- package/lib/Store-BCW70G3Z.cjs +1 -0
- package/lib/Store-uLDYY9ed.js +158 -0
- package/lib/Tweened-BvtjLCa3.js +48 -0
- package/lib/Tweened-DdXm1dbF.cjs +1 -0
- package/lib/Viewport-BiDoiU8M.js +113 -0
- package/lib/Viewport-CXGKUyDy.cjs +1 -0
- package/lib/accordion/index.cjs +1 -1
- package/lib/accordion/index.js +97 -93
- package/lib/animation/index.cjs +1 -1
- package/lib/animation/index.js +6 -6
- package/lib/api-fetcher/index.cjs +1 -1
- package/lib/api-fetcher/index.js +67 -66
- package/lib/attribute/index.cjs +1 -1
- package/lib/attribute/index.js +37 -34
- package/lib/attributes-BADnRZpK.cjs +1 -0
- package/lib/attributes-FObgMNCf.js +36 -0
- package/lib/billboard/index.cjs +1 -1
- package/lib/billboard/index.js +240 -232
- package/lib/cache/index.cjs +1 -1
- package/lib/cache/index.js +26 -23
- package/lib/canvas/index.cjs +1 -1
- package/lib/canvas/index.js +62 -59
- package/lib/canvas-BP1ceie3.cjs +1 -0
- package/lib/canvas-DsglKco1.js +40 -0
- package/lib/connector/index.cjs +1 -1
- package/lib/connector/index.js +44 -41
- package/lib/controls/index.cjs +1 -1
- package/lib/controls/index.js +6 -6
- package/lib/coordinates--JG1U6kQ.js +29 -0
- package/lib/coordinates-DQ9XV9M1.cjs +1 -0
- package/lib/css-property/index.cjs +1 -1
- package/lib/css-property/index.d.ts +1 -1
- package/lib/css-property/index.js +40 -37
- package/lib/css-unit-parser/index.cjs +2 -2
- package/lib/css-unit-parser/index.js +22 -19
- package/lib/css-value-parser/index.cjs +1 -1
- package/lib/css-value-parser/index.js +13 -11
- package/lib/custom-elements-BfZCJde6.cjs +1 -0
- package/lib/custom-elements-HEMuF7yH.js +27 -0
- package/lib/dev/index.cjs +2 -1
- package/lib/dev/index.d.ts +1 -0
- package/lib/dev/index.js +25 -10
- package/lib/device/index.cjs +1 -1
- package/lib/device/index.js +5 -5
- package/lib/dom-B40i6NXw.cjs +1 -0
- package/lib/dom-D8D-_9ty.js +108 -0
- package/lib/easings-BSGJFMAo.js +40 -0
- package/lib/easings-BWq0pPLq.cjs +1 -0
- package/lib/element-CqD0jqBJ.cjs +1 -0
- package/lib/element-DKw5H-Tu.js +10 -0
- package/lib/element-linked-store/index.cjs +1 -1
- package/lib/element-linked-store/index.js +53 -52
- package/lib/element-resizer/index.cjs +1 -1
- package/lib/element-resizer/index.js +47 -44
- package/lib/en3/index.cjs +4 -4
- package/lib/en3/index.js +192 -185
- package/lib/events-Ds-TuvYW.js +9 -0
- package/lib/events-UlGk63iC.cjs +1 -0
- package/lib/file-DwQs6bB6.js +28 -0
- package/lib/file-RHfA3OS-.cjs +1 -0
- package/lib/function-H4b_gTg6.cjs +1 -0
- package/lib/function-UmbPrOHm.js +19 -0
- package/lib/gestures-DmKKNnh4.js +14 -0
- package/lib/gestures-DtYbQr49.cjs +1 -0
- package/lib/history/index.cjs +1 -1
- package/lib/history/index.js +24 -21
- package/lib/iframe/index.cjs +1 -1
- package/lib/iframe/index.js +27 -24
- package/lib/image/index.cjs +1 -1
- package/lib/image/index.js +17 -13
- package/lib/index-BpO2RJ__.cjs +1 -0
- package/lib/index-DpKsHe97.js +68 -0
- package/lib/intersector/index.cjs +1 -1
- package/lib/intersector/index.js +3 -3
- package/lib/jsx/ComponentElement.d.ts +4 -0
- package/lib/jsx/h.d.ts +8 -2
- package/lib/jsx/hooks/component/useStylesheet.d.ts +1 -1
- package/lib/jsx/hooks/cssProperty.d.ts +6 -0
- package/lib/jsx/hooks/resize.d.ts +4 -0
- package/lib/jsx/hooks/store.d.ts +1 -2
- package/lib/jsx/hooks/ticker.d.ts +5 -0
- package/lib/jsx/index.cjs +1 -1
- package/lib/jsx/index.d.ts +5 -2
- package/lib/jsx/index.js +171 -124
- package/lib/jsx/plugins/vite/index.cjs +49 -0
- package/lib/jsx/plugins/vite/index.d.ts +38 -0
- package/lib/jsx/plugins/vite/index.js +104 -0
- package/lib/jsx/render.d.ts +3 -1
- package/lib/jsx/type.d.ts +13 -6
- package/lib/jsx/utils/children/createElement.d.ts +1 -0
- package/lib/jsx/utils/children/hydrateTextNode.d.ts +1 -0
- package/lib/ladder/index.cjs +1 -1
- package/lib/ladder/index.js +86 -84
- package/lib/layout-C26zkY7D.js +35 -0
- package/lib/layout-CnGLl7oe.cjs +1 -0
- package/lib/layout-box/index.cjs +1 -1
- package/lib/layout-box/index.js +221 -217
- package/lib/loading/index.cjs +1 -1
- package/lib/loading/index.js +48 -45
- package/lib/local-links/index.cjs +1 -1
- package/lib/local-links/index.js +2 -2
- package/lib/masonry-layout/index.cjs +1 -1
- package/lib/masonry-layout/index.js +48 -45
- package/lib/math-C-knY2TL.cjs +1 -0
- package/lib/math-r8V23YFe.js +57 -0
- package/lib/media/index.cjs +1 -1
- package/lib/media/index.js +28 -25
- package/lib/metadata-BNdkmeeD.js +15 -0
- package/lib/metadata-BrHUfpV9.cjs +1 -0
- package/lib/morph/index.cjs +1 -1
- package/lib/morph/index.js +561 -556
- package/lib/morph-BtgB1YQP.js +256 -0
- package/lib/morph-Buhxq-X0.cjs +1 -0
- package/lib/need_redo_tweaker/index.cjs +4 -4
- package/lib/need_redo_tweaker/index.js +862 -834
- package/lib/notifier/index.cjs +1 -1
- package/lib/notifier/index.js +29 -26
- package/lib/number-Bu4sGvW7.cjs +1 -0
- package/lib/number-DiVt2xnh.js +47 -0
- package/lib/object-CiIdEmJx.js +98 -0
- package/lib/object-DTY_W6xG.cjs +1 -0
- package/lib/order/index.cjs +1 -1
- package/lib/order/index.js +3 -3
- package/lib/page-announcer/index.cjs +1 -1
- package/lib/page-announcer/index.js +2 -2
- package/lib/page-scroll/index.cjs +1 -1
- package/lib/page-scroll/index.js +2 -2
- package/lib/pixel-perfect/index.cjs +4 -4
- package/lib/pixel-perfect/index.js +43 -40
- package/lib/pointer/index.cjs +1 -1
- package/lib/pointer/index.js +125 -122
- package/lib/polyfills-CG1XJNia.js +28 -0
- package/lib/polyfills-DZCuDBkA.cjs +1 -0
- package/lib/popover/index.cjs +1 -1
- package/lib/popover/index.js +249 -245
- package/lib/radio/index.cjs +1 -1
- package/lib/radio/index.js +58 -55
- package/lib/render-DLcWVnuH.js +355 -0
- package/lib/render-DdomypCo.cjs +1 -0
- package/lib/router/index.cjs +1 -1
- package/lib/router/index.js +196 -194
- package/lib/scroll/index.cjs +1 -1
- package/lib/scroll/index.js +890 -877
- package/lib/scroll-BvIWh1xB.js +41 -0
- package/lib/scroll-CT0lpyRZ.cjs +1 -0
- package/lib/scroll-entries/index.cjs +1 -1
- package/lib/scroll-entries/index.js +37 -34
- package/lib/scroll-kit/index.cjs +1 -1
- package/lib/scroll-kit/index.js +214 -209
- package/lib/sequence/index.cjs +1 -1
- package/lib/sequence/index.js +102 -98
- package/lib/size-element/index.cjs +1 -1
- package/lib/size-element/index.js +29 -26
- package/lib/slicer/index.cjs +1 -1
- package/lib/slicer/index.js +118 -113
- package/lib/source/index.cjs +1 -1
- package/lib/source/index.js +5 -5
- package/lib/spa/index.cjs +1 -1
- package/lib/spa/index.js +94 -94
- package/lib/store/index.cjs +1 -1
- package/lib/store/index.d.ts +2 -2
- package/lib/store/index.js +11 -10
- package/lib/string-B3lm2b7v.js +84 -0
- package/lib/string-CbRNzmd9.cjs +1 -0
- package/lib/style-DBoQWK0d.js +14 -0
- package/lib/style-IDJ6db6n.cjs +1 -0
- package/lib/stylesheet-CHvuef16.js +28 -0
- package/lib/stylesheet-CQdBaIAA.cjs +1 -0
- package/lib/ticker/index.cjs +1 -1
- package/lib/ticker/index.js +96 -92
- package/lib/url-CPCO10Sy.cjs +1 -0
- package/lib/url-CWCY_qe_.js +124 -0
- package/lib/utils/attributes.d.ts +2 -0
- package/lib/utils/dom.d.ts +1 -0
- package/lib/utils/index.cjs +1 -1
- package/lib/utils/index.js +245 -226
- package/lib/video/index.cjs +1 -1
- package/lib/video/index.js +36 -33
- package/lib/window-resizer/index.cjs +1 -1
- package/lib/window-resizer/index.js +27 -24
- package/lib/youtube/index.cjs +1 -1
- package/lib/youtube/index.js +56 -54
- package/package.json +15 -3
- package/lib/Animation-BzTjZIE-.js +0 -108
- package/lib/Animation-C39Ah-LM.cjs +0 -1
- package/lib/Composed-C-mnUGX6.js +0 -70
- package/lib/Composed-RFcm2x5c.cjs +0 -1
- package/lib/Damped-CRusiRIV.js +0 -56
- package/lib/Damped-Prr0iKu1.cjs +0 -1
- package/lib/DerivedArray-DdCR-Oy7.cjs +0 -1
- package/lib/DerivedArray-opbeygTL.js +0 -59
- package/lib/DragControls-8rNZwQrs.cjs +0 -1
- package/lib/DragControls-DBNdMBA4.js +0 -228
- package/lib/LocalLinks-BxhSFv_Q.cjs +0 -1
- package/lib/LocalLinks-DRAQ-fxE.js +0 -62
- package/lib/PageAnnouncerElement-0LxZjtVH.js +0 -24
- package/lib/PageAnnouncerElement-AQ0Ja6HM.cjs +0 -1
- package/lib/PageScroll-0LxFblry.js +0 -62
- package/lib/PageScroll-BXJUQwG7.cjs +0 -1
- package/lib/SourceElement-BHqPFbna.cjs +0 -5
- package/lib/SourceElement-DjbHjynf.js +0 -260
- package/lib/Store-Blf4msDz.cjs +0 -1
- package/lib/Store-ZThXYBQd.js +0 -152
- package/lib/Tweened-Bw1Cn1PJ.js +0 -47
- package/lib/Tweened-DWtk9E-O.cjs +0 -1
- package/lib/Viewport-BxCr0GlB.cjs +0 -1
- package/lib/Viewport-Dt-d9DPi.js +0 -109
- package/lib/attributes-69we3byR.js +0 -10
- package/lib/attributes-Bf2svn4j.cjs +0 -1
- package/lib/canvas-CU5Xjahf.cjs +0 -1
- package/lib/canvas-DeZ0SLUJ.js +0 -34
- package/lib/coordinates-CgdGoSYs.js +0 -24
- package/lib/coordinates-D8Np3cPD.cjs +0 -1
- package/lib/custom-elements-DBnCK7Zx.js +0 -24
- package/lib/custom-elements-Dh4TWRDJ.cjs +0 -1
- package/lib/dom-BETkVSSZ.js +0 -82
- package/lib/dom-CBLlqORw.cjs +0 -1
- package/lib/easings-BEmRlrDd.js +0 -38
- package/lib/easings-GegIwET5.cjs +0 -1
- package/lib/element-CGVl1jA-.js +0 -7
- package/lib/element-yhcBhsho.cjs +0 -1
- package/lib/events-CsVF98U6.js +0 -6
- package/lib/events-KVanG9sR.cjs +0 -1
- package/lib/file-DSpfWdd9.cjs +0 -1
- package/lib/file-GHShUlue.js +0 -24
- package/lib/function-C10DGppn.js +0 -17
- package/lib/function-MthRj-GJ.cjs +0 -1
- package/lib/gestures-C7gbKx11.cjs +0 -1
- package/lib/gestures-CcXV6fCp.js +0 -11
- package/lib/index-OE2INULi.cjs +0 -1
- package/lib/index-e9eDuagL.js +0 -65
- package/lib/jsx/plugins/hmr.d.ts +0 -13
- package/lib/layout-BSMtwCga.js +0 -29
- package/lib/layout-Ctc2p3uz.cjs +0 -1
- package/lib/math-BOBiC4TN.js +0 -45
- package/lib/math-GDWEqu7y.cjs +0 -1
- package/lib/metadata-BcYZ5w3T.cjs +0 -1
- package/lib/metadata-jfowcCyz.js +0 -12
- package/lib/morph-B6sGhLCi.cjs +0 -1
- package/lib/morph-D_ybmXWR.js +0 -242
- package/lib/number-ChAm68cm.cjs +0 -1
- package/lib/number-CumqY64S.js +0 -40
- package/lib/object-CcMK4y_r.js +0 -87
- package/lib/object-baN9pgbU.cjs +0 -1
- package/lib/polyfills-DJrTJQky.js +0 -24
- package/lib/polyfills-Df4r-ETT.cjs +0 -1
- package/lib/render-1u700s93.js +0 -212
- package/lib/render-BIOfUddT.cjs +0 -1
- package/lib/scroll-BA2WnUrb.cjs +0 -1
- package/lib/scroll-DY5senkF.js +0 -37
- package/lib/string-BlMQbe8b.js +0 -70
- package/lib/string-DUXXtU8v.cjs +0 -1
- package/lib/style-At6aDoqG.cjs +0 -1
- package/lib/style-j2TwriJ_.js +0 -10
- package/lib/stylesheet-5_o7PFzM.cjs +0 -1
- package/lib/stylesheet-DdBzowZY.js +0 -24
- package/lib/url-CHgcNwJ1.cjs +0 -1
- package/lib/url-CYgo5vrG.js +0 -113
package/lib/morph-D_ybmXWR.js
DELETED
|
@@ -1,242 +0,0 @@
|
|
|
1
|
-
var l = (e, t, r) => new Promise((n, s) => {
|
|
2
|
-
var a = (c) => {
|
|
3
|
-
try {
|
|
4
|
-
u(r.next(c));
|
|
5
|
-
} catch (T) {
|
|
6
|
-
s(T);
|
|
7
|
-
}
|
|
8
|
-
}, i = (c) => {
|
|
9
|
-
try {
|
|
10
|
-
u(r.throw(c));
|
|
11
|
-
} catch (T) {
|
|
12
|
-
s(T);
|
|
13
|
-
}
|
|
14
|
-
}, u = (c) => c.done ? n(c.value) : Promise.resolve(c.value).then(a, i);
|
|
15
|
-
u((r = r.apply(e, t)).next());
|
|
16
|
-
});
|
|
17
|
-
const b = 1, R = 3, P = 8, M = 9, g = 0, D = 1, v = 2, L = 3, V = 4, S = 5, Y = 6, $ = 7, f = (e) => (t, r) => t[`node${e}`] === r[`node${e}`], N = {
|
|
18
|
-
name: f("Name"),
|
|
19
|
-
type: f("Type"),
|
|
20
|
-
value: f("Value")
|
|
21
|
-
};
|
|
22
|
-
function o(e) {
|
|
23
|
-
if (!e) return !1;
|
|
24
|
-
let t = e;
|
|
25
|
-
for (; t; ) {
|
|
26
|
-
if (t.nodeType === 1 && t.hasAttribute("data-preserve"))
|
|
27
|
-
return !0;
|
|
28
|
-
t = t.parentNode;
|
|
29
|
-
}
|
|
30
|
-
return !1;
|
|
31
|
-
}
|
|
32
|
-
function h(e, t) {
|
|
33
|
-
if (e.attributes.length === 0 && t.attributes.length === 0)
|
|
34
|
-
return [];
|
|
35
|
-
const r = [], n = /* @__PURE__ */ new Map(), s = /* @__PURE__ */ new Map();
|
|
36
|
-
for (const a of e.attributes)
|
|
37
|
-
n.set(a.name, a.value);
|
|
38
|
-
for (const a of t.attributes) {
|
|
39
|
-
const i = n.get(a.name);
|
|
40
|
-
a.value === i ? n.delete(a.name) : (typeof i != "undefined" && n.delete(a.name), s.set(a.name, a.value));
|
|
41
|
-
}
|
|
42
|
-
for (const a of n.keys())
|
|
43
|
-
r.push({ type: 5, name: a });
|
|
44
|
-
for (const [a, i] of s.entries())
|
|
45
|
-
r.push({ type: 4, name: a, value: i });
|
|
46
|
-
return r;
|
|
47
|
-
}
|
|
48
|
-
function A(e, t = !0) {
|
|
49
|
-
let r = `${e.localName}`;
|
|
50
|
-
for (const { name: n, value: s } of e.attributes)
|
|
51
|
-
t && n.startsWith("data-") || (r += `[${n}=${s}]`);
|
|
52
|
-
return r += e.innerHTML, r;
|
|
53
|
-
}
|
|
54
|
-
function d(e) {
|
|
55
|
-
switch (e.tagName) {
|
|
56
|
-
case "BASE":
|
|
57
|
-
case "TITLE":
|
|
58
|
-
return e.localName;
|
|
59
|
-
case "META": {
|
|
60
|
-
if (e.hasAttribute("name"))
|
|
61
|
-
return `meta[name="${e.getAttribute("name")}"]`;
|
|
62
|
-
if (e.hasAttribute("property"))
|
|
63
|
-
return `meta[name="${e.getAttribute("property")}"]`;
|
|
64
|
-
break;
|
|
65
|
-
}
|
|
66
|
-
case "LINK": {
|
|
67
|
-
if (e.hasAttribute("rel") && e.hasAttribute("href"))
|
|
68
|
-
return `link[rel="${e.getAttribute("rel")}"][href="${e.getAttribute("href")}"]`;
|
|
69
|
-
if (e.hasAttribute("href"))
|
|
70
|
-
return `link[href="${e.getAttribute("href")}"]`;
|
|
71
|
-
break;
|
|
72
|
-
}
|
|
73
|
-
}
|
|
74
|
-
return A(e);
|
|
75
|
-
}
|
|
76
|
-
function C(e) {
|
|
77
|
-
const [t, r = ""] = e.split("?");
|
|
78
|
-
return `${t}?t=${Date.now()}&${r.replace(/t=\d+/g, "")}`;
|
|
79
|
-
}
|
|
80
|
-
function E(e) {
|
|
81
|
-
if (e.nodeType === 1 && e.hasAttribute("data-persist"))
|
|
82
|
-
return e;
|
|
83
|
-
if (e.nodeType === 1 && e.localName === "script") {
|
|
84
|
-
const t = document.createElement("script");
|
|
85
|
-
for (let { name: r, value: n } of e.attributes)
|
|
86
|
-
r === "src" && (n = C(n)), t.setAttribute(r, n);
|
|
87
|
-
return t.innerHTML = e.innerHTML, t;
|
|
88
|
-
}
|
|
89
|
-
return e.cloneNode(!0);
|
|
90
|
-
}
|
|
91
|
-
function y(e, t) {
|
|
92
|
-
if (e.children.length === 0 && t.children.length === 0)
|
|
93
|
-
return [];
|
|
94
|
-
const r = [], n = /* @__PURE__ */ new Map(), s = /* @__PURE__ */ new Map(), a = /* @__PURE__ */ new Map();
|
|
95
|
-
for (const i of e.children)
|
|
96
|
-
n.set(d(i), i);
|
|
97
|
-
for (const i of t.children) {
|
|
98
|
-
const u = d(i), c = n.get(u);
|
|
99
|
-
c ? A(i, !1) !== A(c, !1) && s.set(u, E(i)) : a.set(u, E(i)), n.delete(u);
|
|
100
|
-
}
|
|
101
|
-
for (const i of e.childNodes) {
|
|
102
|
-
if (i.nodeType === 1) {
|
|
103
|
-
const u = d(i);
|
|
104
|
-
if (n.has(u)) {
|
|
105
|
-
r.push({ type: 1 });
|
|
106
|
-
continue;
|
|
107
|
-
} else if (s.has(u)) {
|
|
108
|
-
const c = s.get(u);
|
|
109
|
-
r.push({
|
|
110
|
-
type: 3,
|
|
111
|
-
attributes: h(i, c),
|
|
112
|
-
children: _(i, c)
|
|
113
|
-
});
|
|
114
|
-
continue;
|
|
115
|
-
}
|
|
116
|
-
}
|
|
117
|
-
r.push(void 0);
|
|
118
|
-
}
|
|
119
|
-
for (const i of a.values())
|
|
120
|
-
r.push({ type: 0, node: E(i) });
|
|
121
|
-
return r;
|
|
122
|
-
}
|
|
123
|
-
function _(e, t) {
|
|
124
|
-
const r = [], n = Math.max(e.childNodes.length, t.childNodes.length);
|
|
125
|
-
for (let s = 0; s < n; s++) {
|
|
126
|
-
const a = e.childNodes.item(s), i = t.childNodes.item(s);
|
|
127
|
-
o(a) || o(i) ? r[s] = { type: 7 } : r[s] = p(a, i);
|
|
128
|
-
}
|
|
129
|
-
return r;
|
|
130
|
-
}
|
|
131
|
-
function p(e, t) {
|
|
132
|
-
if (o(e) || o(t))
|
|
133
|
-
return { type: 7 };
|
|
134
|
-
if (!e)
|
|
135
|
-
return { type: 0, node: E(t) };
|
|
136
|
-
if (!t)
|
|
137
|
-
return o(e) ? { type: 7 } : { type: 1 };
|
|
138
|
-
if (N.type(e, t)) {
|
|
139
|
-
if (e.nodeType === 3) {
|
|
140
|
-
const r = e.nodeValue, n = t.nodeValue;
|
|
141
|
-
if ((r == null ? void 0 : r.trim().length) === 0 && (n == null ? void 0 : n.trim().length) === 0)
|
|
142
|
-
return { type: 6 };
|
|
143
|
-
}
|
|
144
|
-
if (e.nodeType === 1) {
|
|
145
|
-
if (N.name(e, t)) {
|
|
146
|
-
const r = e.tagName === "HEAD" ? y : _;
|
|
147
|
-
return {
|
|
148
|
-
type: 3,
|
|
149
|
-
attributes: h(e, t),
|
|
150
|
-
children: r(e, t)
|
|
151
|
-
};
|
|
152
|
-
}
|
|
153
|
-
return {
|
|
154
|
-
type: 2,
|
|
155
|
-
node: E(t)
|
|
156
|
-
};
|
|
157
|
-
} else return e.nodeType === 9 ? p(
|
|
158
|
-
e.documentElement,
|
|
159
|
-
t.documentElement
|
|
160
|
-
) : N.value(e, t) ? { type: 6 } : {
|
|
161
|
-
type: 2,
|
|
162
|
-
value: t.nodeValue
|
|
163
|
-
};
|
|
164
|
-
}
|
|
165
|
-
return {
|
|
166
|
-
type: 2,
|
|
167
|
-
node: E(t)
|
|
168
|
-
};
|
|
169
|
-
}
|
|
170
|
-
function m(e, t) {
|
|
171
|
-
if (t.length !== 0)
|
|
172
|
-
for (const { type: r, name: n, value: s } of t)
|
|
173
|
-
r === 5 ? e.removeAttribute(n) : r === 4 && e.setAttribute(n, s);
|
|
174
|
-
}
|
|
175
|
-
function O(e, t, r) {
|
|
176
|
-
return l(this, null, function* () {
|
|
177
|
-
if (!t) return;
|
|
178
|
-
let n;
|
|
179
|
-
switch (e.nodeType === 9 ? (e = e.documentElement, n = e) : r ? n = r : n = e, t.type) {
|
|
180
|
-
case 7:
|
|
181
|
-
return;
|
|
182
|
-
case 0: {
|
|
183
|
-
const { node: s } = t;
|
|
184
|
-
e.appendChild(s);
|
|
185
|
-
return;
|
|
186
|
-
}
|
|
187
|
-
case 1: {
|
|
188
|
-
if (!n)
|
|
189
|
-
return;
|
|
190
|
-
e.removeChild(n);
|
|
191
|
-
return;
|
|
192
|
-
}
|
|
193
|
-
case 2: {
|
|
194
|
-
if (!n)
|
|
195
|
-
return;
|
|
196
|
-
const { node: s, value: a } = t;
|
|
197
|
-
if (typeof a == "string") {
|
|
198
|
-
n.nodeValue = a;
|
|
199
|
-
return;
|
|
200
|
-
}
|
|
201
|
-
s && (n instanceof Element && s instanceof Element ? n.replaceWith(s) : n.parentNode && n.parentNode.replaceChild(s, n));
|
|
202
|
-
return;
|
|
203
|
-
}
|
|
204
|
-
case 3: {
|
|
205
|
-
if (!n || n.nodeType !== 1)
|
|
206
|
-
return;
|
|
207
|
-
const { attributes: s, children: a } = t;
|
|
208
|
-
m(n, s);
|
|
209
|
-
const i = Array.from(n.childNodes);
|
|
210
|
-
yield Promise.all(
|
|
211
|
-
a.map((u, c) => O(n, u, i[c]))
|
|
212
|
-
);
|
|
213
|
-
return;
|
|
214
|
-
}
|
|
215
|
-
case 6:
|
|
216
|
-
return;
|
|
217
|
-
}
|
|
218
|
-
});
|
|
219
|
-
}
|
|
220
|
-
function w(e, t) {
|
|
221
|
-
return l(this, null, function* () {
|
|
222
|
-
const r = p(e, t);
|
|
223
|
-
return O(document, r);
|
|
224
|
-
});
|
|
225
|
-
}
|
|
226
|
-
export {
|
|
227
|
-
g as A,
|
|
228
|
-
b as N,
|
|
229
|
-
R as a,
|
|
230
|
-
P as b,
|
|
231
|
-
M as c,
|
|
232
|
-
p as d,
|
|
233
|
-
D as e,
|
|
234
|
-
v as f,
|
|
235
|
-
L as g,
|
|
236
|
-
V as h,
|
|
237
|
-
S as i,
|
|
238
|
-
Y as j,
|
|
239
|
-
$ as k,
|
|
240
|
-
w as m,
|
|
241
|
-
O as p
|
|
242
|
-
};
|
package/lib/number-ChAm68cm.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const c=[1,10,100,1e3,1e4,1e5,1e6,1e7,1e8,1e9,1e10];function l(t,e=5){return Math.round(t*c[e])/c[e]}function r(t,e){return Math.round(t/e)*e}function n(t,e){var s;const i=((s=e.toString().split(".")[1])==null?void 0:s.length)||0;return i?+t.toFixed(i):Math.ceil(t)}function o(t,e){return t=t%e,t=t<0?e+t:t,t}function $(t){t=t.toString().replace(/\s/g,""),t=Math.ceil(+t),t=t.toString();const e=t.trim();let i="";return e.length===4?i=`${e.slice(0,1)} ${e.slice(1)}`:e.length===5?i=`${e.slice(0,2)} ${e.slice(2)}`:e.length===6?i=`${e.slice(0,3)} ${e.slice(3)}`:e.length===7?i=`${e.slice(0,1)} ${e.slice(1,4)} ${e.slice(4)}`:e.length===8?i=`${e.slice(0,2)} ${e.slice(2,5)} ${e.slice(5)}`:e.length===9?i=`${e.slice(0,3)} ${e.slice(3,6)} ${e.slice(6)}`:i=e,i}exports.beautifyNumber=$;exports.loopNumber=o;exports.preciseNumber=l;exports.roundNumberTo=r;exports.toStep=n;
|
package/lib/number-CumqY64S.js
DELETED
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
const l = [
|
|
2
|
-
1,
|
|
3
|
-
10,
|
|
4
|
-
100,
|
|
5
|
-
1e3,
|
|
6
|
-
1e4,
|
|
7
|
-
1e5,
|
|
8
|
-
1e6,
|
|
9
|
-
1e7,
|
|
10
|
-
1e8,
|
|
11
|
-
1e9,
|
|
12
|
-
1e10
|
|
13
|
-
];
|
|
14
|
-
function c(t, e = 5) {
|
|
15
|
-
return Math.round(t * l[e]) / l[e];
|
|
16
|
-
}
|
|
17
|
-
function n(t, e) {
|
|
18
|
-
return Math.round(t / e) * e;
|
|
19
|
-
}
|
|
20
|
-
function r(t, e) {
|
|
21
|
-
var s;
|
|
22
|
-
const i = ((s = e.toString().split(".")[1]) == null ? void 0 : s.length) || 0;
|
|
23
|
-
return i ? +t.toFixed(i) : Math.ceil(t);
|
|
24
|
-
}
|
|
25
|
-
function o(t, e) {
|
|
26
|
-
return t = t % e, t = t < 0 ? e + t : t, t;
|
|
27
|
-
}
|
|
28
|
-
function $(t) {
|
|
29
|
-
t = t.toString().replace(/\s/g, ""), t = Math.ceil(+t), t = t.toString();
|
|
30
|
-
const e = t.trim();
|
|
31
|
-
let i = "";
|
|
32
|
-
return e.length === 4 ? i = `${e.slice(0, 1)} ${e.slice(1)}` : e.length === 5 ? i = `${e.slice(0, 2)} ${e.slice(2)}` : e.length === 6 ? i = `${e.slice(0, 3)} ${e.slice(3)}` : e.length === 7 ? i = `${e.slice(0, 1)} ${e.slice(1, 4)} ${e.slice(4)}` : e.length === 8 ? i = `${e.slice(0, 2)} ${e.slice(2, 5)} ${e.slice(5)}` : e.length === 9 ? i = `${e.slice(0, 3)} ${e.slice(3, 6)} ${e.slice(6)}` : i = e, i;
|
|
33
|
-
}
|
|
34
|
-
export {
|
|
35
|
-
$ as b,
|
|
36
|
-
o as l,
|
|
37
|
-
c as p,
|
|
38
|
-
n as r,
|
|
39
|
-
r as t
|
|
40
|
-
};
|
package/lib/object-CcMK4y_r.js
DELETED
|
@@ -1,87 +0,0 @@
|
|
|
1
|
-
function c(e) {
|
|
2
|
-
return typeof e == "object" && e !== null && !Array.isArray(e);
|
|
3
|
-
}
|
|
4
|
-
function u(e) {
|
|
5
|
-
if (e === null || typeof e != "object")
|
|
6
|
-
return e;
|
|
7
|
-
if (e instanceof Date)
|
|
8
|
-
return new Date(e.getTime());
|
|
9
|
-
if (e instanceof Node)
|
|
10
|
-
return e;
|
|
11
|
-
const t = Array.isArray(e) ? [] : {};
|
|
12
|
-
for (const r in e)
|
|
13
|
-
e.hasOwnProperty(r) && (t[r] = u(e[r]));
|
|
14
|
-
return t;
|
|
15
|
-
}
|
|
16
|
-
function y(e, t, r = c) {
|
|
17
|
-
for (const n in t)
|
|
18
|
-
r(t[n]) ? (e[n] || Object.assign(e, { [n]: {} }), y(e[n], t[n], r)) : Object.assign(e, { [n]: t[n] });
|
|
19
|
-
return e;
|
|
20
|
-
}
|
|
21
|
-
function a(e) {
|
|
22
|
-
return e === null || typeof e == "undefined";
|
|
23
|
-
}
|
|
24
|
-
function i(e, t) {
|
|
25
|
-
if (typeof e != typeof t)
|
|
26
|
-
return !1;
|
|
27
|
-
if ([e, t].some((r) => a(r)))
|
|
28
|
-
return e === t;
|
|
29
|
-
if (Array.isArray(e)) {
|
|
30
|
-
const r = e.length > t.length ? e : t, n = e.length > t.length ? t : e;
|
|
31
|
-
return r.every(
|
|
32
|
-
(f, s) => i(f, n[s])
|
|
33
|
-
);
|
|
34
|
-
}
|
|
35
|
-
if (typeof e != "object" || e instanceof Node || typeof e == "object" && e.constructor.toString().startsWith("class"))
|
|
36
|
-
return e === t;
|
|
37
|
-
for (const r in e) {
|
|
38
|
-
if (!t.hasOwnProperty(r))
|
|
39
|
-
return !1;
|
|
40
|
-
if (typeof e[r] == "object" && typeof t[r] == "object") {
|
|
41
|
-
if (!i(e[r], t[r]))
|
|
42
|
-
return !1;
|
|
43
|
-
} else if (e[r] !== t[r])
|
|
44
|
-
return !1;
|
|
45
|
-
}
|
|
46
|
-
return !0;
|
|
47
|
-
}
|
|
48
|
-
function p(e, t) {
|
|
49
|
-
const r = {};
|
|
50
|
-
for (const n in e)
|
|
51
|
-
t.includes(n) && (r[n] = e[n]);
|
|
52
|
-
return r;
|
|
53
|
-
}
|
|
54
|
-
function o(e, t) {
|
|
55
|
-
const r = {};
|
|
56
|
-
if (!e)
|
|
57
|
-
return r;
|
|
58
|
-
for (const n in e)
|
|
59
|
-
t.includes(n) || (r[n] = e[n]);
|
|
60
|
-
return r;
|
|
61
|
-
}
|
|
62
|
-
function l(e) {
|
|
63
|
-
var t;
|
|
64
|
-
return typeof e == "function" && ((t = Object.getOwnPropertyDescriptor(e, "prototype")) == null ? void 0 : t.writable) === !1;
|
|
65
|
-
}
|
|
66
|
-
function O(e, ...t) {
|
|
67
|
-
t.forEach((r) => {
|
|
68
|
-
Object.getOwnPropertyNames(r.prototype).forEach((n) => {
|
|
69
|
-
Object.defineProperty(
|
|
70
|
-
e.prototype,
|
|
71
|
-
n,
|
|
72
|
-
Object.getOwnPropertyDescriptor(r.prototype, n) || /* @__PURE__ */ Object.create(null)
|
|
73
|
-
);
|
|
74
|
-
});
|
|
75
|
-
});
|
|
76
|
-
}
|
|
77
|
-
export {
|
|
78
|
-
c as a,
|
|
79
|
-
a as b,
|
|
80
|
-
u as c,
|
|
81
|
-
i as d,
|
|
82
|
-
O as e,
|
|
83
|
-
l as i,
|
|
84
|
-
y as m,
|
|
85
|
-
o,
|
|
86
|
-
p
|
|
87
|
-
};
|
package/lib/object-baN9pgbU.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";function f(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}function s(e){if(e===null||typeof e!="object")return e;if(e instanceof Date)return new Date(e.getTime());if(e instanceof Node)return e;const t=Array.isArray(e)?[]:{};for(const r in e)e.hasOwnProperty(r)&&(t[r]=s(e[r]));return t}function c(e,t,r=f){for(const n in t)r(t[n])?(e[n]||Object.assign(e,{[n]:{}}),c(e[n],t[n],r)):Object.assign(e,{[n]:t[n]});return e}function u(e){return e===null||typeof e=="undefined"}function i(e,t){if(typeof e!=typeof t)return!1;if([e,t].some(r=>u(r)))return e===t;if(Array.isArray(e)){const r=e.length>t.length?e:t,n=e.length>t.length?t:e;return r.every((p,y)=>i(p,n[y]))}if(typeof e!="object"||e instanceof Node||typeof e=="object"&&e.constructor.toString().startsWith("class"))return e===t;for(const r in e){if(!t.hasOwnProperty(r))return!1;if(typeof e[r]=="object"&&typeof t[r]=="object"){if(!i(e[r],t[r]))return!1}else if(e[r]!==t[r])return!1}return!0}function l(e,t){const r={};for(const n in e)t.includes(n)&&(r[n]=e[n]);return r}function o(e,t){const r={};if(!e)return r;for(const n in e)t.includes(n)||(r[n]=e[n]);return r}function a(e){var t;return typeof e=="function"&&((t=Object.getOwnPropertyDescriptor(e,"prototype"))==null?void 0:t.writable)===!1}function O(e,...t){t.forEach(r=>{Object.getOwnPropertyNames(r.prototype).forEach(n=>{Object.defineProperty(e.prototype,n,Object.getOwnPropertyDescriptor(r.prototype,n)||Object.create(null))})})}exports.cloneDeep=s;exports.compareObjects=i;exports.isESClass=a;exports.isNullish=u;exports.isObject=f;exports.mergeDeep=c;exports.mixin=O;exports.omit=o;exports.pick=l;
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
function o(e, t) {
|
|
2
|
-
return typeof e == "undefined" ? t : e;
|
|
3
|
-
}
|
|
4
|
-
function i(e, t = {}) {
|
|
5
|
-
if (window.requestIdleCallback)
|
|
6
|
-
return window.requestIdleCallback(e, t);
|
|
7
|
-
{
|
|
8
|
-
const r = t.timeout || 1, n = performance.now();
|
|
9
|
-
return setTimeout(() => {
|
|
10
|
-
e({
|
|
11
|
-
get didTimeout() {
|
|
12
|
-
return t.timeout ? !1 : performance.now() - n - 1 > r;
|
|
13
|
-
},
|
|
14
|
-
timeRemaining() {
|
|
15
|
-
return Math.max(0, 1 + (performance.now() - n));
|
|
16
|
-
}
|
|
17
|
-
});
|
|
18
|
-
}, 1);
|
|
19
|
-
}
|
|
20
|
-
}
|
|
21
|
-
export {
|
|
22
|
-
o as n,
|
|
23
|
-
i as r
|
|
24
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";function a(e,t){return typeof e=="undefined"?t:e}function i(e,t={}){if(window.requestIdleCallback)return window.requestIdleCallback(e,t);{const r=t.timeout||1,n=performance.now();return setTimeout(()=>{e({get didTimeout(){return t.timeout?!1:performance.now()-n-1>r},timeRemaining(){return Math.max(0,1+(performance.now()-n))}})},1)}}exports.nullishCoalescing=a;exports.requestIdleCallback=i;
|
package/lib/render-1u700s93.js
DELETED
|
@@ -1,212 +0,0 @@
|
|
|
1
|
-
var O = Object.defineProperty, R = Object.defineProperties;
|
|
2
|
-
var q = Object.getOwnPropertyDescriptors;
|
|
3
|
-
var w = Object.getOwnPropertySymbols;
|
|
4
|
-
var B = Object.prototype.hasOwnProperty, K = Object.prototype.propertyIsEnumerable;
|
|
5
|
-
var N = (r) => {
|
|
6
|
-
throw TypeError(r);
|
|
7
|
-
};
|
|
8
|
-
var L = (r, s, t) => s in r ? O(r, s, { enumerable: !0, configurable: !0, writable: !0, value: t }) : r[s] = t, m = (r, s) => {
|
|
9
|
-
for (var t in s || (s = {}))
|
|
10
|
-
B.call(s, t) && L(r, t, s[t]);
|
|
11
|
-
if (w)
|
|
12
|
-
for (var t of w(s))
|
|
13
|
-
K.call(s, t) && L(r, t, s[t]);
|
|
14
|
-
return r;
|
|
15
|
-
}, D = (r, s) => R(r, q(s));
|
|
16
|
-
var F = (r, s, t) => s.has(r) || N("Cannot " + t);
|
|
17
|
-
var d = (r, s, t) => (F(r, s, "read from private field"), t ? t.call(r) : s.get(r)), g = (r, s, t) => s.has(r) ? N("Cannot add the same private member more than once") : s instanceof WeakSet ? s.add(r) : s.set(r, t), C = (r, s, t, e) => (F(r, s, "write to private field"), e ? e.call(r, t) : s.set(r, t), t);
|
|
18
|
-
import { S as l } from "./Store-ZThXYBQd.js";
|
|
19
|
-
import { c as M } from "./string-BlMQbe8b.js";
|
|
20
|
-
import { d as J, p as X } from "./morph-D_ybmXWR.js";
|
|
21
|
-
import "construct-style-sheets-polyfill";
|
|
22
|
-
import "./index-e9eDuagL.js";
|
|
23
|
-
import { connector as $ } from "./connector/index.js";
|
|
24
|
-
import { a as z } from "./DerivedArray-opbeygTL.js";
|
|
25
|
-
const Q = { current: null };
|
|
26
|
-
var b, u;
|
|
27
|
-
class U extends HTMLElement {
|
|
28
|
-
constructor() {
|
|
29
|
-
super();
|
|
30
|
-
g(this, b, []);
|
|
31
|
-
g(this, u, []);
|
|
32
|
-
Q.current = this;
|
|
33
|
-
}
|
|
34
|
-
addConnectCallback(t) {
|
|
35
|
-
d(this, b).push(t);
|
|
36
|
-
}
|
|
37
|
-
addDisconnectCallback(t) {
|
|
38
|
-
d(this, u).push(t);
|
|
39
|
-
}
|
|
40
|
-
connectedCallback() {
|
|
41
|
-
d(this, b).forEach((t) => {
|
|
42
|
-
const e = t(this);
|
|
43
|
-
e && d(this, u).push(e);
|
|
44
|
-
});
|
|
45
|
-
}
|
|
46
|
-
disconnectedCallback() {
|
|
47
|
-
d(this, u).forEach((t) => {
|
|
48
|
-
t(this);
|
|
49
|
-
}), C(this, b, []), C(this, u, []);
|
|
50
|
-
}
|
|
51
|
-
}
|
|
52
|
-
b = new WeakMap(), u = new WeakMap();
|
|
53
|
-
function E(r, s, t) {
|
|
54
|
-
const e = s.subscribe((c) => {
|
|
55
|
-
t(c);
|
|
56
|
-
});
|
|
57
|
-
$.subscribe(r, {
|
|
58
|
-
disconnectCallback: () => {
|
|
59
|
-
e();
|
|
60
|
-
},
|
|
61
|
-
maxWaitSec: 20,
|
|
62
|
-
unsubscribeAfterDisconnect: !0
|
|
63
|
-
});
|
|
64
|
-
}
|
|
65
|
-
function W(r, s) {
|
|
66
|
-
s && (s instanceof l ? E(r, s, (t) => {
|
|
67
|
-
t.previous && r.classList.remove(t.previous.toString()), t.current && r.classList.add(t.current.toString());
|
|
68
|
-
}) : typeof s == "object" && !Array.isArray(s) ? Object.entries(s).forEach(([t, e]) => {
|
|
69
|
-
e instanceof l ? E(r, e, (c) => {
|
|
70
|
-
r.classList.toggle(t, !!c.current);
|
|
71
|
-
}) : e && r.classList.add(t);
|
|
72
|
-
}) : Array.isArray(s) ? s.forEach((t) => {
|
|
73
|
-
typeof t == "string" ? r.classList.add(t) : W(r, t);
|
|
74
|
-
}) : s.toString().split(" ").map((t) => r.classList.add(t.trim())));
|
|
75
|
-
}
|
|
76
|
-
function V(r, s) {
|
|
77
|
-
s && (typeof s == "object" ? Object.entries(s).forEach(([t, e]) => {
|
|
78
|
-
e instanceof l ? E(r, e, (c) => {
|
|
79
|
-
var o;
|
|
80
|
-
r.style[t] = (o = c.current) == null ? void 0 : o.toString();
|
|
81
|
-
}) : (typeof e == "number" || typeof e == "string" || typeof e == "boolean") && (r.style[t] = e.toString());
|
|
82
|
-
}) : typeof s == "string" && (r.style = s));
|
|
83
|
-
}
|
|
84
|
-
function A(r, s, t) {
|
|
85
|
-
s === "ref" && t ? Array.isArray(t) ? t.forEach((e) => {
|
|
86
|
-
typeof e == "object" && "value" in e && (e.value = r);
|
|
87
|
-
}) : typeof t == "object" && "value" in t && (t.value = r) : s === "className" || s === "class" ? W(r, t) : s === "style" ? V(r, t) : typeof t == "number" ? s === "tabIndex" ? r.setAttribute("tabindex", t.toString()) : A(r, s, t.toString()) : typeof t == "string" ? s === "htmlFor" ? r.setAttribute("for", t) : r.setAttribute(s, t) : typeof t == "boolean" ? t ? r.setAttribute(s, "") : r.removeAttribute(s) : t instanceof l && E(r, t, (e) => {
|
|
88
|
-
s in r ? r[s] = e.current : A(r, s, e.current);
|
|
89
|
-
});
|
|
90
|
-
}
|
|
91
|
-
function Y(r, s) {
|
|
92
|
-
for (const [t, e] of Object.entries(s != null ? s : {}))
|
|
93
|
-
typeof e == "function" && t.startsWith("on") ? r.addEventListener(
|
|
94
|
-
t.replace("on", "").toLowerCase(),
|
|
95
|
-
e
|
|
96
|
-
) : A(r, t, e);
|
|
97
|
-
}
|
|
98
|
-
function H(r) {
|
|
99
|
-
const s = [];
|
|
100
|
-
return r.forEach((t) => {
|
|
101
|
-
t != null && (typeof t == "number" ? s.push(t.toString()) : Array.isArray(t) ? t.forEach((e) => {
|
|
102
|
-
s.push(...H(e));
|
|
103
|
-
}) : s.push(t));
|
|
104
|
-
}), s;
|
|
105
|
-
}
|
|
106
|
-
function Z(r, s) {
|
|
107
|
-
const t = [...r.childNodes].filter((n) => n.__storeId === s.id), e = s.current, c = Array.isArray(e) ? e : [e], o = [];
|
|
108
|
-
if (c.forEach((n) => {
|
|
109
|
-
let i = null;
|
|
110
|
-
typeof n == "boolean" || typeof n == "number" || typeof n == "string" ? i = document.createTextNode(n.toString()) : n instanceof Node && (i = n), i && (i.__storeId = s.id, o.push(i));
|
|
111
|
-
}), s instanceof z) {
|
|
112
|
-
const n = [];
|
|
113
|
-
o.forEach((i, f) => {
|
|
114
|
-
const a = t.find(
|
|
115
|
-
(h) => h.__key === i.__key
|
|
116
|
-
);
|
|
117
|
-
a ? a.isEqualNode(i) ? n.push(a) : (a.replaceWith(i), n.push(i)) : (n.push(i), r.appendChild(i));
|
|
118
|
-
}), t.forEach((i) => {
|
|
119
|
-
n.includes(i) || i.remove();
|
|
120
|
-
});
|
|
121
|
-
} else
|
|
122
|
-
o.forEach((n, i) => {
|
|
123
|
-
var a;
|
|
124
|
-
const f = t[i];
|
|
125
|
-
if (f)
|
|
126
|
-
f.isEqualNode(n) || (f.replaceWith(n), t[i] = n);
|
|
127
|
-
else {
|
|
128
|
-
const h = t[t.length - 1];
|
|
129
|
-
h ? (a = h.parentNode) == null || a.insertBefore(
|
|
130
|
-
n,
|
|
131
|
-
h.nextSibling
|
|
132
|
-
) : r.appendChild(n);
|
|
133
|
-
}
|
|
134
|
-
}), t.slice(o.length).forEach((n) => {
|
|
135
|
-
n.remove();
|
|
136
|
-
});
|
|
137
|
-
}
|
|
138
|
-
class _ {
|
|
139
|
-
constructor(s, t, e) {
|
|
140
|
-
this.tag = s, this.attributes = t, this.children = e;
|
|
141
|
-
}
|
|
142
|
-
}
|
|
143
|
-
class y extends _ {
|
|
144
|
-
}
|
|
145
|
-
class S extends _ {
|
|
146
|
-
}
|
|
147
|
-
class I extends _ {
|
|
148
|
-
}
|
|
149
|
-
function p(r, s, t, e = !1) {
|
|
150
|
-
const c = H(t);
|
|
151
|
-
Y(r, s), c.forEach((o) => {
|
|
152
|
-
if (o instanceof l)
|
|
153
|
-
E(r, o, () => {
|
|
154
|
-
Z(r, o);
|
|
155
|
-
});
|
|
156
|
-
else if (o instanceof y)
|
|
157
|
-
o.tag === "shadow" && r.shadowRoot ? p(
|
|
158
|
-
r.shadowRoot,
|
|
159
|
-
o.attributes,
|
|
160
|
-
o.children
|
|
161
|
-
) : p(r, o.attributes, o.children);
|
|
162
|
-
else if (o instanceof S) {
|
|
163
|
-
let n = null;
|
|
164
|
-
o.tag === "svg" ? (n = document.createElementNS(
|
|
165
|
-
"http://www.w3.org/2000/svg",
|
|
166
|
-
"svg"
|
|
167
|
-
), p(n, o.attributes, o.children, !0)) : n = e ? document.createElementNS("http://www.w3.org/2000/svg", o.tag) : document.createElement(o.tag), p(n, o.attributes, o.children, e), r.append(n);
|
|
168
|
-
} else if (o instanceof I) {
|
|
169
|
-
const n = document.createElement(o.tag);
|
|
170
|
-
p(n, o.attributes, o.children);
|
|
171
|
-
const i = J(document.head, n);
|
|
172
|
-
X(document.head, i);
|
|
173
|
-
} else
|
|
174
|
-
r.append(o);
|
|
175
|
-
});
|
|
176
|
-
}
|
|
177
|
-
function G(r, s, ...t) {
|
|
178
|
-
var e;
|
|
179
|
-
if (typeof r == "string")
|
|
180
|
-
return r === "component" ? new y(r, s, t) : r === "shadow" ? new y(r, s, t) : r === "head" ? new I(r, s, t) : new S(r, s, t);
|
|
181
|
-
{
|
|
182
|
-
if (r === P)
|
|
183
|
-
return P(t);
|
|
184
|
-
if (r.template)
|
|
185
|
-
return r(m({}, s));
|
|
186
|
-
const c = `e-${M(r.name)}`;
|
|
187
|
-
let o = customElements.get(c);
|
|
188
|
-
o || (o = (e = class extends U {
|
|
189
|
-
constructor() {
|
|
190
|
-
super();
|
|
191
|
-
}
|
|
192
|
-
}, e.formAssociated = r.formAssociated, e), customElements.define(c, o));
|
|
193
|
-
const n = new o(), i = D(m({}, s), {
|
|
194
|
-
children: t
|
|
195
|
-
}), f = r(i);
|
|
196
|
-
return __JSX_HMR_DEV__ && (n.__props__ = i), (f instanceof y || f instanceof S) && (f != null && f.children || f.attributes) && p(n, f.attributes, f.children), n;
|
|
197
|
-
}
|
|
198
|
-
}
|
|
199
|
-
function P(r) {
|
|
200
|
-
const s = document.createDocumentFragment();
|
|
201
|
-
return p(s, void 0, r), s;
|
|
202
|
-
}
|
|
203
|
-
function et(r, s, t) {
|
|
204
|
-
const e = /* @__PURE__ */ G(s, m({}, t));
|
|
205
|
-
return r.append(e), e;
|
|
206
|
-
}
|
|
207
|
-
export {
|
|
208
|
-
P as F,
|
|
209
|
-
Q as a,
|
|
210
|
-
G as h,
|
|
211
|
-
et as r
|
|
212
|
-
};
|
package/lib/render-BIOfUddT.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";var B=Object.defineProperty,K=Object.defineProperties;var M=Object.getOwnPropertyDescriptors;var q=Object.getOwnPropertySymbols;var J=Object.prototype.hasOwnProperty,X=Object.prototype.propertyIsEnumerable;var N=e=>{throw TypeError(e)};var L=(e,r,t)=>r in e?B(e,r,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[r]=t,y=(e,r)=>{for(var t in r||(r={}))J.call(r,t)&&L(e,t,r[t]);if(q)for(var t of q(r))X.call(r,t)&&L(e,t,r[t]);return e},D=(e,r)=>K(e,M(r));var F=(e,r,t)=>r.has(e)||N("Cannot "+t);var d=(e,r,t)=>(F(e,r,"read from private field"),t?t.call(e):r.get(e)),S=(e,r,t)=>r.has(e)?N("Cannot add the same private member more than once"):r instanceof WeakSet?r.add(e):r.set(e,t),C=(e,r,t,s)=>(F(e,r,"write to private field"),s?s.call(e,t):r.set(e,t),t);const l=require("./Store-Blf4msDz.cjs"),$=require("./string-DUXXtU8v.cjs"),P=require("./morph-B6sGhLCi.cjs");require("construct-style-sheets-polyfill");require("./index-OE2INULi.cjs");const z=require("./connector/index.cjs"),Q=require("./DerivedArray-DdCR-Oy7.cjs"),W={current:null};var b,p;class U extends HTMLElement{constructor(){super();S(this,b,[]);S(this,p,[]);W.current=this}addConnectCallback(t){d(this,b).push(t)}addDisconnectCallback(t){d(this,p).push(t)}connectedCallback(){d(this,b).forEach(t=>{const s=t(this);s&&d(this,p).push(s)})}disconnectedCallback(){d(this,p).forEach(t=>{t(this)}),C(this,b,[]),C(this,p,[])}}b=new WeakMap,p=new WeakMap;function E(e,r,t){const s=r.subscribe(f=>{t(f)});z.connector.subscribe(e,{disconnectCallback:()=>{s()},maxWaitSec:20,unsubscribeAfterDisconnect:!0})}function H(e,r){r&&(r instanceof l.Store?E(e,r,t=>{t.previous&&e.classList.remove(t.previous.toString()),t.current&&e.classList.add(t.current.toString())}):typeof r=="object"&&!Array.isArray(r)?Object.entries(r).forEach(([t,s])=>{s instanceof l.Store?E(e,s,f=>{e.classList.toggle(t,!!f.current)}):s&&e.classList.add(t)}):Array.isArray(r)?r.forEach(t=>{typeof t=="string"?e.classList.add(t):H(e,t)}):r.toString().split(" ").map(t=>e.classList.add(t.trim())))}function V(e,r){r&&(typeof r=="object"?Object.entries(r).forEach(([t,s])=>{s instanceof l.Store?E(e,s,f=>{var n;e.style[t]=(n=f.current)==null?void 0:n.toString()}):(typeof s=="number"||typeof s=="string"||typeof s=="boolean")&&(e.style[t]=s.toString())}):typeof r=="string"&&(e.style=r))}function A(e,r,t){r==="ref"&&t?Array.isArray(t)?t.forEach(s=>{typeof s=="object"&&"value"in s&&(s.value=e)}):typeof t=="object"&&"value"in t&&(t.value=e):r==="className"||r==="class"?H(e,t):r==="style"?V(e,t):typeof t=="number"?r==="tabIndex"?e.setAttribute("tabindex",t.toString()):A(e,r,t.toString()):typeof t=="string"?r==="htmlFor"?e.setAttribute("for",t):e.setAttribute(r,t):typeof t=="boolean"?t?e.setAttribute(r,""):e.removeAttribute(r):t instanceof l.Store&&E(e,t,s=>{r in e?e[r]=s.current:A(e,r,s.current)})}function Y(e,r){for(const[t,s]of Object.entries(r!=null?r:{}))typeof s=="function"&&t.startsWith("on")?e.addEventListener(t.replace("on","").toLowerCase(),s):A(e,t,s)}function I(e){const r=[];return e.forEach(t=>{t!=null&&(typeof t=="number"?r.push(t.toString()):Array.isArray(t)?t.forEach(s=>{r.push(...I(s))}):r.push(t))}),r}function Z(e,r){const t=[...e.childNodes].filter(o=>o.__storeId===r.id),s=r.current,f=Array.isArray(s)?s:[s],n=[];if(f.forEach(o=>{let i=null;typeof o=="boolean"||typeof o=="number"||typeof o=="string"?i=document.createTextNode(o.toString()):o instanceof Node&&(i=o),i&&(i.__storeId=r.id,n.push(i))}),r instanceof Q.DerivedKeyedArray){const o=[];n.forEach((i,c)=>{const a=t.find(h=>h.__key===i.__key);a?a.isEqualNode(i)?o.push(a):(a.replaceWith(i),o.push(i)):(o.push(i),e.appendChild(i))}),t.forEach(i=>{o.includes(i)||i.remove()})}else n.forEach((o,i)=>{var a;const c=t[i];if(c)c.isEqualNode(o)||(c.replaceWith(o),t[i]=o);else{const h=t[t.length-1];h?(a=h.parentNode)==null||a.insertBefore(o,h.nextSibling):e.appendChild(o)}}),t.slice(n.length).forEach(o=>{o.remove()})}class w{constructor(r,t,s){this.tag=r,this.attributes=t,this.children=s}}class g extends w{}class _ extends w{}class O extends w{}function u(e,r,t,s=!1){const f=I(t);Y(e,r),f.forEach(n=>{if(n instanceof l.Store)E(e,n,()=>{Z(e,n)});else if(n instanceof g)n.tag==="shadow"&&e.shadowRoot?u(e.shadowRoot,n.attributes,n.children):u(e,n.attributes,n.children);else if(n instanceof _){let o=null;n.tag==="svg"?(o=document.createElementNS("http://www.w3.org/2000/svg","svg"),u(o,n.attributes,n.children,!0)):o=s?document.createElementNS("http://www.w3.org/2000/svg",n.tag):document.createElement(n.tag),u(o,n.attributes,n.children,s),e.append(o)}else if(n instanceof O){const o=document.createElement(n.tag);u(o,n.attributes,n.children);const i=P.diff(document.head,o);P.patch(document.head,i)}else e.append(n)})}function R(e,r,...t){var s;if(typeof e=="string")return e==="component"?new g(e,r,t):e==="shadow"?new g(e,r,t):e==="head"?new O(e,r,t):new _(e,r,t);{if(e===m)return m(t);if(e.template)return e(y({},r));const f=`e-${$.camelToKebab(e.name)}`;let n=customElements.get(f);n||(n=(s=class extends U{constructor(){super()}},s.formAssociated=e.formAssociated,s),customElements.define(f,n));const o=new n,i=D(y({},r),{children:t}),c=e(i);return __JSX_HMR_DEV__&&(o.__props__=i),(c instanceof g||c instanceof _)&&(c!=null&&c.children||c.attributes)&&u(o,c.attributes,c.children),o}}function m(e){const r=document.createDocumentFragment();return u(r,void 0,e),r}function G(e,r,t){const s=R(r,y({},t));return e.append(s),s}exports.Fragment=m;exports.activeComponent=W;exports.h=R;exports.render=G;
|
package/lib/scroll-BA2WnUrb.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const f=require("./dom-CBLlqORw.cjs"),g=require("./layout-Ctc2p3uz.cjs");require("construct-style-sheets-polyfill");require("./index-OE2INULi.cjs");function h(t){return new Promise(o=>{setTimeout(()=>{o()},t)})}function E(t,{behavior:o="instant",offset:s=0,center:c=!1,scrollElement:l}={}){var u;let n,i=l,r=l;if(typeof t=="number")n=t;else{const e=f.getElement(t);e&&(i=e,r=l||f.findScrollParentElement(e),n=g.getCumulativeOffsetTop(e))}if(i&&r&&typeof n=="number"){const e=(typeof s=="number"?s:((u=f.getElement(s))==null?void 0:u.offsetHeight)||0)*-1,a=i instanceof HTMLElement?i.offsetHeight:innerHeight,m=c?innerHeight/2*-1+a/2:0;r.scroll({top:n+e+m,behavior:o})}}exports.scrollToElement=E;exports.wait=h;
|
package/lib/scroll-DY5senkF.js
DELETED
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import { g as l, f as u } from "./dom-BETkVSSZ.js";
|
|
2
|
-
import { a as g } from "./layout-BSMtwCga.js";
|
|
3
|
-
import "construct-style-sheets-polyfill";
|
|
4
|
-
import "./index-e9eDuagL.js";
|
|
5
|
-
function w(e) {
|
|
6
|
-
return new Promise((o) => {
|
|
7
|
-
setTimeout(() => {
|
|
8
|
-
o();
|
|
9
|
-
}, e);
|
|
10
|
-
});
|
|
11
|
-
}
|
|
12
|
-
function y(e, {
|
|
13
|
-
behavior: o = "instant",
|
|
14
|
-
offset: s = 0,
|
|
15
|
-
center: m = !1,
|
|
16
|
-
scrollElement: f
|
|
17
|
-
} = {}) {
|
|
18
|
-
var r;
|
|
19
|
-
let n, i = f, a = f;
|
|
20
|
-
if (typeof e == "number")
|
|
21
|
-
n = e;
|
|
22
|
-
else {
|
|
23
|
-
const t = l(e);
|
|
24
|
-
t && (i = t, a = f || u(t), n = g(t));
|
|
25
|
-
}
|
|
26
|
-
if (i && a && typeof n == "number") {
|
|
27
|
-
const t = (typeof s == "number" ? s : ((r = l(s)) == null ? void 0 : r.offsetHeight) || 0) * -1, p = i instanceof HTMLElement ? i.offsetHeight : innerHeight, c = m ? innerHeight / 2 * -1 + p / 2 : 0;
|
|
28
|
-
a.scroll({
|
|
29
|
-
top: n + t + c,
|
|
30
|
-
behavior: o
|
|
31
|
-
});
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
export {
|
|
35
|
-
y as s,
|
|
36
|
-
w
|
|
37
|
-
};
|