aptechka 0.8.4 → 0.10.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/ElementConstructor-OK-6OPjh.cjs +1 -0
- package/lib/ElementConstructor-rValMo8f.js +372 -0
- package/lib/_createStore-C75y9luu.cjs +1 -0
- package/lib/_createStore-D3qHYaSz.js +12 -0
- package/lib/accordion/AccordionElement.d.ts +1 -2
- package/lib/accordion/index.cjs +1 -1
- package/lib/accordion/index.js +110 -122
- package/lib/canvas/index.cjs +1 -1
- package/lib/canvas/index.d.ts +4 -5
- package/lib/canvas/index.js +69 -75
- package/lib/checkbox/index.cjs +1 -1
- package/lib/checkbox/index.d.ts +1 -3
- package/lib/checkbox/index.js +42 -45
- package/lib/connector/index.cjs +1 -1
- package/lib/connector/index.d.ts +2 -2
- package/lib/connector/index.js +39 -34
- package/lib/counter/index.d.ts +1 -3
- package/lib/{createStylesheet-BsMSWX0q.cjs → createStylesheet-9nksoWW0.cjs} +1 -1
- package/lib/{createStylesheet-BxKITIVV.js → createStylesheet-BrFGJ8Q7.js} +1 -1
- package/lib/element-constructor/ElementConstructor.d.ts +6 -5
- package/lib/element-constructor/index.cjs +1 -1
- package/lib/element-constructor/index.js +114 -113
- package/lib/en3/objects/fluid/En3FluidElement.d.ts +1 -2
- package/lib/globals-DMjysUXI.js +8 -0
- package/lib/globals-bYKki-b9.cjs +1 -0
- package/lib/image/index.cjs +1 -1
- package/lib/image/index.js +7 -15
- package/lib/index-3R8YL-P3.js +266 -0
- package/lib/index-CyQAdqFu.cjs +9 -0
- package/lib/instantiate-BuVJ8pIJ.cjs +1 -0
- package/lib/instantiate-TYteKsII.js +134 -0
- package/lib/jsx/ComponentElement.d.ts +18 -0
- package/lib/jsx/globals.d.ts +13 -0
- package/lib/jsx/h.d.ts +6 -0
- package/lib/jsx/hooks/animation/createDamped.d.ts +3 -0
- package/lib/jsx/hooks/animation/createTweened.d.ts +3 -0
- package/lib/jsx/hooks/animation/index.cjs +1 -0
- package/lib/jsx/hooks/animation/index.d.ts +2 -0
- package/lib/jsx/hooks/animation/index.js +15 -0
- package/lib/jsx/hooks/basic/_createStore.d.ts +4 -0
- package/lib/jsx/hooks/basic/attachInternals.d.ts +1 -0
- package/lib/jsx/hooks/basic/attachShadow.d.ts +1 -0
- package/lib/jsx/hooks/basic/attachStylesheet.d.ts +3 -0
- package/lib/jsx/hooks/basic/createContext.d.ts +2 -0
- package/lib/jsx/hooks/basic/createRef.d.ts +3 -0
- package/lib/jsx/hooks/basic/onConnect.d.ts +3 -0
- package/lib/jsx/hooks/basic/onDisconnect.d.ts +3 -0
- package/lib/jsx/hooks/basic/onStoreChange.d.ts +3 -0
- package/lib/jsx/hooks/onAnimationFrame.cjs +1 -0
- package/lib/jsx/hooks/onAnimationFrame.d.ts +6 -0
- package/lib/jsx/hooks/onAnimationFrame.js +22 -0
- package/lib/jsx/hooks/onElementResize.cjs +1 -0
- package/lib/jsx/hooks/onElementResize.d.ts +5 -0
- package/lib/jsx/hooks/onElementResize.js +11 -0
- package/lib/jsx/hooks/onIntersection.cjs +1 -0
- package/lib/jsx/hooks/onIntersection.d.ts +5 -0
- package/lib/jsx/hooks/onIntersection.js +11 -0
- package/lib/jsx/hooks/onWindowResize.cjs +1 -0
- package/lib/jsx/hooks/onWindowResize.d.ts +3 -0
- package/lib/jsx/hooks/onWindowResize.js +8 -0
- package/lib/jsx/hooks/store/createCached.d.ts +3 -0
- package/lib/jsx/hooks/store/createComposed.d.ts +3 -0
- package/lib/jsx/hooks/store/createDerived.d.ts +3 -0
- package/lib/jsx/hooks/store/createDerivedArray.d.ts +3 -0
- package/lib/jsx/hooks/store/createResource.d.ts +3 -0
- package/lib/jsx/hooks/store/createStore.d.ts +3 -0
- package/lib/jsx/hooks/store/index.cjs +1 -0
- package/lib/jsx/hooks/store/index.d.ts +6 -0
- package/lib/jsx/hooks/store/index.js +31 -0
- package/lib/jsx/hooks/watchAttribute.cjs +1 -0
- package/lib/jsx/hooks/watchAttribute.d.ts +6 -0
- package/lib/jsx/hooks/watchAttribute.js +17 -0
- package/lib/jsx/hooks/watchCSSProperty.cjs +1 -0
- package/lib/jsx/hooks/watchCSSProperty.d.ts +7 -0
- package/lib/jsx/hooks/watchCSSProperty.js +17 -0
- package/lib/jsx/index.cjs +1 -0
- package/lib/jsx/index.d.ts +15 -0
- package/lib/jsx/index.js +106 -0
- package/lib/jsx/instantiate.d.ts +5 -0
- package/lib/jsx/register.d.ts +1 -0
- package/lib/jsx/render.d.ts +6 -0
- package/lib/jsx/type.d.ts +198 -0
- package/lib/modal/index.cjs +1 -1
- package/lib/modal/index.js +34 -36
- package/lib/onConnect-DGP866cj.cjs +1 -0
- package/lib/onConnect-y5DrxJ9P.js +7 -0
- package/lib/order/index.cjs +1 -1
- package/lib/order/index.d.ts +5 -4
- package/lib/order/index.js +1 -1
- package/lib/pointer/PointerElement.d.ts +1 -2
- package/lib/pointer/index.cjs +1 -1
- package/lib/pointer/index.js +105 -117
- package/lib/popover/PopoverButtonElement.d.ts +1 -2
- package/lib/popover/PopoverElement.d.ts +1 -2
- package/lib/popover/index.cjs +1 -1
- package/lib/popover/index.js +109 -124
- package/lib/router/index.cjs +1 -1
- package/lib/router/index.js +76 -73
- package/lib/scroll/ScrollElement.d.ts +1 -2
- package/lib/scroll/ScrollUserElement.d.ts +1 -2
- package/lib/scroll/index.cjs +1 -1
- package/lib/scroll/index.js +674 -753
- package/lib/select/SelectElement.d.ts +1 -3
- package/lib/select/SelectUserElement.d.ts +1 -2
- 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 +104 -107
- package/lib/slicer/SlicerElement.d.ts +1 -2
- package/lib/slicer/index.cjs +5 -5
- package/lib/slicer/index.js +88 -106
- package/lib/source/SourceElement.d.ts +1 -2
- package/lib/source/index.cjs +2 -2
- package/lib/source/index.js +19 -20
- package/lib/store/Cached.d.ts +13 -0
- package/lib/store/Derived.d.ts +3 -3
- package/lib/store/DerivedArray.d.ts +8 -0
- package/lib/store/index.cjs +1 -1
- package/lib/store/index.d.ts +2 -0
- package/lib/store/index.js +65 -31
- package/lib/tags-BosXYPYv.cjs +1 -0
- package/lib/tags-D0kLlFdQ.js +485 -0
- package/lib/theme/index.cjs +1 -1
- package/lib/theme/index.js +2 -1
- package/lib/tweaker/TweakerFieldElement.d.ts +1 -2
- package/lib/tweaker/TweakerFolderElement.d.ts +1 -2
- package/lib/tweaker/TweakerStoreManagerElement.d.ts +1 -2
- package/lib/tweaker/index.cjs +3 -3
- package/lib/tweaker/index.js +393 -472
- package/lib/utils/bytes.d.ts +1 -0
- package/lib/utils/index.cjs +1 -1
- package/lib/utils/index.d.ts +1 -0
- package/lib/utils/index.js +122 -105
- package/lib/video/index.cjs +1 -1
- package/lib/video/index.js +25 -29
- package/package.json +73 -9
- package/lib/custom-element/index.cjs +0 -1
- package/lib/custom-element/index.d.ts +0 -8
- package/lib/custom-element/index.js +0 -30
- package/lib/index-CzpP1Tg6.cjs +0 -9
- package/lib/index-Dwd_62sm.js +0 -301
- package/lib/tags-CAfasCGV.cjs +0 -1
- package/lib/tags-D9lNDPX8.js +0 -848
package/lib/slicer/index.js
CHANGED
|
@@ -1,165 +1,147 @@
|
|
|
1
|
-
var
|
|
2
|
-
if (!t.has(
|
|
3
|
-
throw TypeError("Cannot " +
|
|
1
|
+
var w = (n, t, e) => {
|
|
2
|
+
if (!t.has(n))
|
|
3
|
+
throw TypeError("Cannot " + e);
|
|
4
4
|
};
|
|
5
|
-
var
|
|
6
|
-
if (t.has(
|
|
5
|
+
var s = (n, t, e) => (w(n, t, "read from private field"), e ? e.call(n) : t.get(n)), l = (n, t, e) => {
|
|
6
|
+
if (t.has(n))
|
|
7
7
|
throw TypeError("Cannot add the same private member more than once");
|
|
8
|
-
t instanceof WeakSet ? t.add(
|
|
9
|
-
},
|
|
10
|
-
import {
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
class D {
|
|
8
|
+
t instanceof WeakSet ? t.add(n) : t.set(n, e);
|
|
9
|
+
}, i = (n, t, e, o) => (w(n, t, "write to private field"), o ? o.call(n, e) : t.set(n, e), e);
|
|
10
|
+
import { g as A } from "../string-f0Dnk0L1.js";
|
|
11
|
+
var y, c, u;
|
|
12
|
+
class T {
|
|
14
13
|
constructor(t) {
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
index: t.lettersAcc +
|
|
20
|
-
text:
|
|
14
|
+
l(this, y, void 0);
|
|
15
|
+
l(this, c, void 0);
|
|
16
|
+
l(this, u, void 0);
|
|
17
|
+
i(this, y, t.index), i(this, c, document.createElement("span")), i(this, u, []), t.letters && t.letterConstructor && t.lettersAcc !== void 0 ? (i(this, u, t.text.split("").map((e, o) => new t.letterConstructor({
|
|
18
|
+
index: t.lettersAcc + o,
|
|
19
|
+
text: e,
|
|
21
20
|
clone: t.clone
|
|
22
|
-
}))),
|
|
21
|
+
}))), s(this, c).append(...s(this, u).map((e) => e.element))) : t.clone ? s(this, c).innerHTML = `
|
|
23
22
|
<span class="original">${t.text}</span>
|
|
24
23
|
<span class="clone" aria-hidden>${t.text}</span>
|
|
25
|
-
` :
|
|
24
|
+
` : s(this, c).innerHTML = `
|
|
26
25
|
<span class="value">${t.text}</span>
|
|
27
|
-
`,
|
|
26
|
+
`, s(this, c).classList.add("word");
|
|
28
27
|
}
|
|
29
28
|
get index() {
|
|
30
|
-
return
|
|
29
|
+
return s(this, y);
|
|
31
30
|
}
|
|
32
31
|
get element() {
|
|
33
|
-
return
|
|
32
|
+
return s(this, c);
|
|
34
33
|
}
|
|
35
34
|
get letters() {
|
|
36
|
-
return
|
|
35
|
+
return s(this, u);
|
|
37
36
|
}
|
|
38
37
|
}
|
|
39
|
-
y = new WeakMap(),
|
|
40
|
-
var
|
|
41
|
-
class
|
|
38
|
+
y = new WeakMap(), c = new WeakMap(), u = new WeakMap();
|
|
39
|
+
var f, d;
|
|
40
|
+
class L {
|
|
42
41
|
constructor(t) {
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
42
|
+
l(this, f, void 0);
|
|
43
|
+
l(this, d, void 0);
|
|
44
|
+
i(this, f, t.index), i(this, d, document.createElement("span")), s(this, d).classList.add("letter"), t.clone ? s(this, d).innerHTML = `
|
|
46
45
|
<span class="original">${t.text}</span>
|
|
47
46
|
<span class="clone" aria-hidden>${t.text}</span>
|
|
48
|
-
` :
|
|
47
|
+
` : s(this, d).innerHTML = `
|
|
49
48
|
<span class="value">${t.text}</span>
|
|
50
49
|
`;
|
|
51
50
|
}
|
|
52
51
|
get index() {
|
|
53
|
-
return
|
|
52
|
+
return s(this, f);
|
|
54
53
|
}
|
|
55
54
|
get element() {
|
|
56
|
-
return
|
|
55
|
+
return s(this, d);
|
|
57
56
|
}
|
|
58
57
|
}
|
|
59
|
-
|
|
60
|
-
var
|
|
61
|
-
|
|
62
|
-
(p = e[d]) && (n = (r ? p(t, s, n) : p(n)) || n);
|
|
63
|
-
return r && n && H(t, s, n), n;
|
|
64
|
-
}, O = (e, t, s) => {
|
|
65
|
-
if (!t.has(e))
|
|
66
|
-
throw TypeError("Cannot " + s);
|
|
67
|
-
}, l = (e, t, s) => (O(e, t, "read from private field"), s ? s.call(e) : t.get(e)), _ = (e, t, s) => {
|
|
68
|
-
if (t.has(e))
|
|
69
|
-
throw TypeError("Cannot add the same private member more than once");
|
|
70
|
-
t instanceof WeakSet ? t.add(e) : t.set(e, s);
|
|
71
|
-
}, w = (e, t, s, r) => (O(e, t, "write to private field"), t.set(e, s), s), x, o, v, M, P;
|
|
72
|
-
let E = class extends S {
|
|
58
|
+
f = new WeakMap(), d = new WeakMap();
|
|
59
|
+
var g, r, x, C, E;
|
|
60
|
+
class M extends HTMLElement {
|
|
73
61
|
constructor(e) {
|
|
74
|
-
super()
|
|
62
|
+
super();
|
|
63
|
+
l(this, g, "");
|
|
64
|
+
l(this, r, []);
|
|
65
|
+
l(this, x, []);
|
|
66
|
+
l(this, C, void 0);
|
|
67
|
+
l(this, E, void 0);
|
|
68
|
+
i(this, C, (e == null ? void 0 : e.wordConstructor) || T), i(this, E, (e == null ? void 0 : e.letterConstructor) || L);
|
|
75
69
|
}
|
|
76
70
|
get wordsArray() {
|
|
77
|
-
return
|
|
71
|
+
return s(this, r);
|
|
78
72
|
}
|
|
79
73
|
get lettersArray() {
|
|
80
|
-
return
|
|
74
|
+
return s(this, x);
|
|
81
75
|
}
|
|
82
76
|
get originalText() {
|
|
83
|
-
return
|
|
77
|
+
return s(this, g);
|
|
84
78
|
}
|
|
85
79
|
connectedCallback() {
|
|
86
|
-
var
|
|
87
|
-
|
|
80
|
+
var o;
|
|
81
|
+
i(this, g, ((o = this.textContent) == null ? void 0 : o.trim()) || ""), this.innerHTML = "";
|
|
88
82
|
let e = 0;
|
|
89
|
-
|
|
90
|
-
const
|
|
91
|
-
index:
|
|
92
|
-
text:
|
|
83
|
+
i(this, r, s(this, g).replace(/ +/g, " ").split(" ").map((h, m) => {
|
|
84
|
+
const a = new (s(this, C))({
|
|
85
|
+
index: m,
|
|
86
|
+
text: h,
|
|
93
87
|
letters: this.hasAttribute("letters"),
|
|
94
88
|
lettersAcc: e,
|
|
95
|
-
letterConstructor:
|
|
89
|
+
letterConstructor: s(this, E),
|
|
96
90
|
clone: this.hasAttribute("clone")
|
|
97
91
|
});
|
|
98
|
-
return e +=
|
|
99
|
-
})), this.hasAttribute("index") && (
|
|
100
|
-
|
|
101
|
-
}),
|
|
102
|
-
|
|
92
|
+
return e += a.letters.length, s(this, x).push(...a.letters), a;
|
|
93
|
+
})), this.hasAttribute("index") && (s(this, r).forEach((h) => {
|
|
94
|
+
h.element.style.setProperty("--word-index", h.index.toString());
|
|
95
|
+
}), s(this, x).forEach((h) => {
|
|
96
|
+
h.element.style.setProperty(
|
|
103
97
|
"--letter-index",
|
|
104
|
-
|
|
98
|
+
h.index.toString()
|
|
105
99
|
);
|
|
106
|
-
})),
|
|
107
|
-
if (this.appendChild(
|
|
108
|
-
const
|
|
109
|
-
|
|
100
|
+
})), s(this, r).forEach((h, m) => {
|
|
101
|
+
if (this.appendChild(h.element), m !== s(this, r).length - 1) {
|
|
102
|
+
const a = document.createElement("span");
|
|
103
|
+
a.innerHTML = " ", this.appendChild(a);
|
|
110
104
|
}
|
|
111
|
-
}), this.style.setProperty("--words-length",
|
|
105
|
+
}), this.style.setProperty("--words-length", s(this, r).length.toString()), this.style.setProperty("--letters-length", s(this, x).length.toString());
|
|
112
106
|
}
|
|
113
107
|
disconnectedCallback() {
|
|
114
|
-
|
|
108
|
+
i(this, r, []), this.textContent = s(this, g), this.style.removeProperty("--words-length"), this.style.removeProperty("--letters-length");
|
|
115
109
|
}
|
|
116
|
-
}
|
|
117
|
-
x =
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
var q = Object.defineProperty, z = Object.getOwnPropertyDescriptor, G = (e, t, s, r) => {
|
|
126
|
-
for (var n = r > 1 ? void 0 : r ? z(t, s) : t, d = e.length - 1, p; d >= 0; d--)
|
|
127
|
-
(p = e[d]) && (n = (r ? p(t, s, n) : p(n)) || n);
|
|
128
|
-
return r && n && q(t, s, n), n;
|
|
129
|
-
}, g;
|
|
130
|
-
class I extends $ {
|
|
131
|
-
constructor(s) {
|
|
132
|
-
super(s);
|
|
133
|
-
u(this, g, void 0);
|
|
134
|
-
c(this, g, W(
|
|
110
|
+
}
|
|
111
|
+
g = new WeakMap(), r = new WeakMap(), x = new WeakMap(), C = new WeakMap(), E = new WeakMap();
|
|
112
|
+
customElements.get("e-slicer") || customElements.define("e-slicer", M);
|
|
113
|
+
var p;
|
|
114
|
+
class b extends L {
|
|
115
|
+
constructor(e) {
|
|
116
|
+
super(e);
|
|
117
|
+
l(this, p, void 0);
|
|
118
|
+
i(this, p, A(
|
|
135
119
|
2 + Math.floor(Math.random() * 15),
|
|
136
120
|
"abcdefghijklmnopqrstuvwxyz0123456789#!%$^&*+=?"
|
|
137
|
-
) +
|
|
121
|
+
) + e.text), this.play(0);
|
|
138
122
|
}
|
|
139
|
-
play(
|
|
140
|
-
const
|
|
141
|
-
this.element.textContent =
|
|
123
|
+
play(e) {
|
|
124
|
+
const o = Math.floor(e * (s(this, p).length - 1));
|
|
125
|
+
this.element.textContent = s(this, p)[o];
|
|
142
126
|
}
|
|
143
127
|
}
|
|
144
|
-
|
|
145
|
-
|
|
128
|
+
p = new WeakMap();
|
|
129
|
+
class H extends M {
|
|
146
130
|
constructor() {
|
|
147
131
|
super({
|
|
148
|
-
letterConstructor:
|
|
132
|
+
letterConstructor: b
|
|
149
133
|
});
|
|
150
134
|
}
|
|
151
|
-
play(
|
|
152
|
-
this.lettersArray.forEach((
|
|
153
|
-
|
|
135
|
+
play(t) {
|
|
136
|
+
this.lettersArray.forEach((e) => {
|
|
137
|
+
e.play(t);
|
|
154
138
|
});
|
|
155
139
|
}
|
|
156
|
-
}
|
|
157
|
-
|
|
158
|
-
T("e-decoder")
|
|
159
|
-
], L);
|
|
140
|
+
}
|
|
141
|
+
customElements.get("e-decoder") || customElements.define("e-decoder", H);
|
|
160
142
|
export {
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
143
|
+
H as DecoderElement,
|
|
144
|
+
L as Letter,
|
|
145
|
+
M as SlicerElement,
|
|
146
|
+
T as Word
|
|
165
147
|
};
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import { CustomElement } from '../custom-element';
|
|
2
1
|
import { SourceManager } from './SourceManager';
|
|
3
2
|
import { ClassLinkedStatus } from '../class-linked-status';
|
|
4
3
|
|
|
5
|
-
export declare abstract class SourceElement<T extends HTMLElement> extends
|
|
4
|
+
export declare abstract class SourceElement<T extends HTMLElement> extends HTMLElement {
|
|
6
5
|
#private;
|
|
7
6
|
constructor();
|
|
8
7
|
get consumerElement(): T;
|
package/lib/source/index.cjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
"use strict";var y=(i,r,t)=>{if(!r.has(i))throw TypeError("Cannot "+t)};var e=(i,r,t)=>(y(i,r,"read from private field"),t?t.call(i):r.get(i)),a=(i,r,t)=>{if(r.has(i))throw TypeError("Cannot add the same private member more than once");r instanceof WeakSet?r.add(i):r.set(i,t)},u=(i,r,t,o)=>(y(i,r,"write to private field"),o?o.call(i,t):r.set(i,t),t);var p=(i,r,t)=>(y(i,r,"access private method"),t);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";var y=(i,r,t)=>{if(!r.has(i))throw TypeError("Cannot "+t)};var e=(i,r,t)=>(y(i,r,"read from private field"),t?t.call(i):r.get(i)),a=(i,r,t)=>{if(r.has(i))throw TypeError("Cannot add the same private member more than once");r instanceof WeakSet?r.add(i):r.set(i,t)},u=(i,r,t,o)=>(y(i,r,"write to private field"),o?o.call(i,t):r.set(i,t),t);var p=(i,r,t)=>(y(i,r,"access private method"),t);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const C=require("../SourceManager-D6D2LVKf.cjs"),w=require("../loading/index.cjs"),k=require("../class-linked-status/index.cjs"),A=require("../browser-CpzFX2xg.cjs"),q=require("../string-DhgS_iFl.cjs");let x=0;var h,s,c,f,l,d,n,g,m,v,E,b,L;class T extends HTMLElement{constructor(){super();a(this,m);a(this,h,null);a(this,s,null);a(this,c,!1);a(this,f,!1);a(this,l,!1);a(this,d,"");a(this,n,new k.ClassLinkedStatus(this,{loading:!1,loaded:!1,error:!1}));a(this,g,null);a(this,E,t=>{const o=t[0];e(this,l)&&(!e(this,f)||this.hasAttribute("reload-source"))&&o.isIntersecting&&(e(this,h).current&&e(this,h).current!==e(this,h).previous&&p(this,m,v).call(this,e(this,h).current),u(this,f,!0)),o.isIntersecting?this.dispatchEvent(new CustomEvent("sourceCapture")):(this.hasAttribute("reload-source")&&p(this,m,v).call(this,void 0),this.dispatchEvent(new CustomEvent("sourceRelease")))});a(this,b,()=>{e(this,n).set("loaded",!0),e(this,n).set("error",!1),e(this,n).set("loading",!1),!e(this,l)&&!e(this,c)&&w.loading.setLoaded(e(this,d),1),u(this,c,!0)});a(this,L,t=>{e(this,n).set("loaded",!1),e(this,n).set("error",!0),e(this,n).set("loading",!1),!e(this,l)&&!e(this,c)&&w.loading.setError(e(this,d),t),u(this,c,!0)});A.isBrowser&&(u(this,d,`source-consumer-${++x}`),u(this,g,new IntersectionObserver(e(this,E))))}get consumerElement(){return e(this,s)}get sourceManager(){return e(this,h)}get status(){return e(this,n)}get isLazy(){return e(this,l)}connectedCallback(){const t=this.getAttribute("srcset");t&&(u(this,s,this.createConsumer()),e(this,s).style.cssText=`
|
|
2
2
|
display: block;
|
|
3
3
|
width: 100%;
|
|
4
4
|
height: 100%;
|
|
5
|
-
`,e(this,s).classList.add("source-consumer"),Array.from(this.attributes).forEach(o=>{if(o.name!=="srcset"){const S=o.nodeValue||"",
|
|
5
|
+
`,e(this,s).classList.add("source-consumer"),Array.from(this.attributes).forEach(o=>{if(o.name!=="srcset"){const S=o.nodeValue||"",M=q.kebabToCamel(o.name);M in e(this,s)&&(e(this,s)[M]=S||!0)}}),this.appendChild(e(this,s)),u(this,h,new C.SourceManager({srcset:t})),u(this,l,this.hasAttribute("lazy")),e(this,h).subscribe(o=>{(!e(this,l)||e(this,l)&&e(this,f))&&p(this,m,v).call(this,o.current)}),e(this,g).observe(this),e(this,h).connect())}disconnectedCallback(){e(this,g).disconnect(),e(this,h).close(),e(this,s).onloadeddata=null,e(this,s).onload=null,e(this,s).onerror=null,e(this,s).remove(),e(this,n).reset()}}h=new WeakMap,s=new WeakMap,c=new WeakMap,f=new WeakMap,l=new WeakMap,d=new WeakMap,n=new WeakMap,g=new WeakMap,m=new WeakSet,v=function(t){if(e(this,s).onloadeddata=null,e(this,s).onload=null,e(this,s).onerror=null,e(this,n).set("loaded",!1),e(this,n).set("error",!1),e(this,n).set("loading",!1),t){const o=this.hasAttribute("keep-source-parameters");e(this,n).set("loading",!0);const S=o?t.url:t.name+t.extension;this.consumeSource(S),!e(this,l)&&!e(this,c)&&w.loading.setTotal(e(this,d),1),e(this,s).onloadeddata=()=>{e(this,b).call(this)},e(this,s).onload=()=>{e(this,b).call(this)},e(this,s).onerror=()=>{e(this,L).call(this,S)}}else this.consumeSource(null)},E=new WeakMap,b=new WeakMap,L=new WeakMap;exports.Source=C.Source;exports.SourceManager=C.SourceManager;exports.SourceSet=C.SourceSet;exports.SourceElement=T;
|
package/lib/source/index.js
CHANGED
|
@@ -9,15 +9,14 @@ var t = (i, r, s) => (L(i, r, "read from private field"), s ? s.call(i) : r.get(
|
|
|
9
9
|
}, u = (i, r, s, n) => (L(i, r, "write to private field"), n ? n.call(i, s) : r.set(i, s), s);
|
|
10
10
|
var v = (i, r, s) => (L(i, r, "access private method"), s);
|
|
11
11
|
import { S as y } from "../SourceManager--L_rA28b.js";
|
|
12
|
-
import { a as
|
|
13
|
-
import { CustomElement as A } from "../custom-element/index.js";
|
|
12
|
+
import { a as V, b as $ } from "../SourceManager--L_rA28b.js";
|
|
14
13
|
import { loading as k } from "../loading/index.js";
|
|
15
|
-
import { ClassLinkedStatus as
|
|
16
|
-
import { i as
|
|
17
|
-
import { k as
|
|
18
|
-
let
|
|
19
|
-
var h, e, c, f, l, d, o, m, p,
|
|
20
|
-
class
|
|
14
|
+
import { ClassLinkedStatus as A } from "../class-linked-status/index.js";
|
|
15
|
+
import { i as x } from "../browser-0zX67oeU.js";
|
|
16
|
+
import { k as M } from "../string-f0Dnk0L1.js";
|
|
17
|
+
let T = 0;
|
|
18
|
+
var h, e, c, f, l, d, o, m, p, S, C, g, E;
|
|
19
|
+
class K extends HTMLElement {
|
|
21
20
|
constructor() {
|
|
22
21
|
super();
|
|
23
22
|
a(this, p);
|
|
@@ -27,15 +26,15 @@ class R extends A {
|
|
|
27
26
|
a(this, f, !1);
|
|
28
27
|
a(this, l, !1);
|
|
29
28
|
a(this, d, "");
|
|
30
|
-
a(this, o, new
|
|
29
|
+
a(this, o, new A(this, {
|
|
31
30
|
loading: !1,
|
|
32
31
|
loaded: !1,
|
|
33
32
|
error: !1
|
|
34
33
|
}));
|
|
35
34
|
a(this, m, null);
|
|
36
|
-
a(this,
|
|
35
|
+
a(this, C, (s) => {
|
|
37
36
|
const n = s[0];
|
|
38
|
-
t(this, l) && (!t(this, f) || this.hasAttribute("reload-source")) && n.isIntersecting && (t(this, h).current && t(this, h).current !== t(this, h).previous && v(this, p,
|
|
37
|
+
t(this, l) && (!t(this, f) || this.hasAttribute("reload-source")) && n.isIntersecting && (t(this, h).current && t(this, h).current !== t(this, h).previous && v(this, p, S).call(this, t(this, h).current), u(this, f, !0)), n.isIntersecting ? this.dispatchEvent(new CustomEvent("sourceCapture")) : (this.hasAttribute("reload-source") && v(this, p, S).call(this, void 0), this.dispatchEvent(new CustomEvent("sourceRelease")));
|
|
39
38
|
});
|
|
40
39
|
a(this, g, () => {
|
|
41
40
|
t(this, o).set("loaded", !0), t(this, o).set("error", !1), t(this, o).set("loading", !1), !t(this, l) && !t(this, c) && k.setLoaded(t(this, d), 1), u(this, c, !0);
|
|
@@ -43,8 +42,8 @@ class R extends A {
|
|
|
43
42
|
a(this, E, (s) => {
|
|
44
43
|
t(this, o).set("loaded", !1), t(this, o).set("error", !0), t(this, o).set("loading", !1), !t(this, l) && !t(this, c) && k.setError(t(this, d), s), u(this, c, !0);
|
|
45
44
|
});
|
|
46
|
-
|
|
47
|
-
t(this,
|
|
45
|
+
x && (u(this, d, `source-consumer-${++T}`), u(this, m, new IntersectionObserver(
|
|
46
|
+
t(this, C)
|
|
48
47
|
)));
|
|
49
48
|
}
|
|
50
49
|
get consumerElement() {
|
|
@@ -67,20 +66,20 @@ class R extends A {
|
|
|
67
66
|
height: 100%;
|
|
68
67
|
`, t(this, e).classList.add("source-consumer"), Array.from(this.attributes).forEach((n) => {
|
|
69
68
|
if (n.name !== "srcset") {
|
|
70
|
-
const b = n.nodeValue || "", w =
|
|
69
|
+
const b = n.nodeValue || "", w = M(n.name);
|
|
71
70
|
w in t(this, e) && (t(this, e)[w] = b || !0);
|
|
72
71
|
}
|
|
73
72
|
}), this.appendChild(t(this, e)), u(this, h, new y({
|
|
74
73
|
srcset: s
|
|
75
74
|
})), u(this, l, this.hasAttribute("lazy")), t(this, h).subscribe((n) => {
|
|
76
|
-
(!t(this, l) || t(this, l) && t(this, f)) && v(this, p,
|
|
75
|
+
(!t(this, l) || t(this, l) && t(this, f)) && v(this, p, S).call(this, n.current);
|
|
77
76
|
}), t(this, m).observe(this), t(this, h).connect());
|
|
78
77
|
}
|
|
79
78
|
disconnectedCallback() {
|
|
80
79
|
t(this, m).disconnect(), t(this, h).close(), t(this, e).onloadeddata = null, t(this, e).onload = null, t(this, e).onerror = null, t(this, e).remove(), t(this, o).reset();
|
|
81
80
|
}
|
|
82
81
|
}
|
|
83
|
-
h = new WeakMap(), e = new WeakMap(), c = new WeakMap(), f = new WeakMap(), l = new WeakMap(), d = new WeakMap(), o = new WeakMap(), m = new WeakMap(), p = new WeakSet(),
|
|
82
|
+
h = new WeakMap(), e = new WeakMap(), c = new WeakMap(), f = new WeakMap(), l = new WeakMap(), d = new WeakMap(), o = new WeakMap(), m = new WeakMap(), p = new WeakSet(), S = function(s) {
|
|
84
83
|
if (t(this, e).onloadeddata = null, t(this, e).onload = null, t(this, e).onerror = null, t(this, o).set("loaded", !1), t(this, o).set("error", !1), t(this, o).set("loading", !1), s) {
|
|
85
84
|
const n = this.hasAttribute("keep-source-parameters");
|
|
86
85
|
t(this, o).set("loading", !0);
|
|
@@ -94,10 +93,10 @@ h = new WeakMap(), e = new WeakMap(), c = new WeakMap(), f = new WeakMap(), l =
|
|
|
94
93
|
};
|
|
95
94
|
} else
|
|
96
95
|
this.consumeSource(null);
|
|
97
|
-
},
|
|
96
|
+
}, C = new WeakMap(), g = new WeakMap(), E = new WeakMap();
|
|
98
97
|
export {
|
|
99
|
-
|
|
100
|
-
|
|
98
|
+
V as Source,
|
|
99
|
+
K as SourceElement,
|
|
101
100
|
y as SourceManager,
|
|
102
|
-
|
|
101
|
+
$ as SourceSet
|
|
103
102
|
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { Store, StoreOptions } from './Store';
|
|
2
|
+
|
|
3
|
+
export type CachedCallback<Type, SourceType extends Array<CachedSource>> = (value: SourceType[number]['value'], index: number, arr: SourceType) => Type;
|
|
4
|
+
export interface CachedSource<T = any> {
|
|
5
|
+
key: any;
|
|
6
|
+
value: T;
|
|
7
|
+
revalidate?: boolean;
|
|
8
|
+
}
|
|
9
|
+
export declare class Cached<Type, SourceType extends Array<CachedSource>> extends Store<Array<Type>> {
|
|
10
|
+
#private;
|
|
11
|
+
constructor(store: Store<SourceType, any>, callback: CachedCallback<Type, SourceType>, parameters?: StoreOptions<Array<Type>>);
|
|
12
|
+
close(): void;
|
|
13
|
+
}
|
package/lib/store/Derived.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { Store, StoreOptions } from './Store';
|
|
2
2
|
|
|
3
|
-
export type DerivedCallback<
|
|
4
|
-
export declare class Derived<
|
|
3
|
+
export type DerivedCallback<SourceType, Type> = (value: SourceType) => Type;
|
|
4
|
+
export declare class Derived<Type, SourceType> extends Store<Type> {
|
|
5
5
|
#private;
|
|
6
|
-
constructor(store: Store<
|
|
6
|
+
constructor(store: Store<SourceType, any>, callback: DerivedCallback<SourceType, Type>, parameters?: StoreOptions<Type>);
|
|
7
7
|
close(): void;
|
|
8
8
|
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Store, StoreOptions } from './Store';
|
|
2
|
+
|
|
3
|
+
export type DerivedArrayCallback<Type, SourceType extends Array<any>> = (value: SourceType[number], index: number, arr: SourceType) => Type;
|
|
4
|
+
export declare class DerivedArray<Type, SourceType extends Array<any>> extends Store<Array<Type>> {
|
|
5
|
+
#private;
|
|
6
|
+
constructor(store: Store<SourceType, any>, callback: DerivedArrayCallback<Type, SourceType>, parameters?: StoreOptions<Array<Type>>);
|
|
7
|
+
close(): void;
|
|
8
|
+
}
|
package/lib/store/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var
|
|
1
|
+
"use strict";var C=(r,t,e)=>{if(!t.has(r))throw TypeError("Cannot "+e)};var s=(r,t,e)=>(C(r,t,"read from private field"),e?e.call(r):t.get(r)),u=(r,t,e)=>{if(t.has(r))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(r):t.set(r,e)},a=(r,t,e,c)=>(C(r,t,"write to private field"),c?c.call(r,e):t.set(r,e),e);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("../Store-Cr3VaD9G.cjs"),x=require("../Derived-D9VrDuf9.cjs"),D=require("../Composed-Iihn8fT4.cjs");var f;class m extends o.Store{constructor(e,c,i){super(null,i);u(this,f,void 0);a(this,f,e.subscribe(g=>{this.current=g.current.map((h,y,p)=>c(h,y,p))}))}close(){super.close(),s(this,f).call(this)}}f=new WeakMap;var v,l;class R extends o.Store{constructor(e,c,i){super(null,i);u(this,v,void 0);u(this,l,new Map);a(this,v,e.subscribe(g=>{this.current=g.current.map((h,y,p)=>{let b=s(this,l).get(h.key);return(b===void 0||h.revalidate)&&(b=c(h.value,y,p),s(this,l).set(h.key,b)),b})}))}close(){super.close(),s(this,v).call(this),s(this,l).clear()}}v=new WeakMap,l=new WeakMap;var S,n,d;class q extends o.Store{constructor(e,c,i){super(e,i);u(this,S,void 0);u(this,n,void 0);u(this,d,0);a(this,n,new o.Store(!1)),a(this,S,c),i!=null&&i.manualControl||this.refetch()}get isPending(){return s(this,n)}refetch(){s(this,n).current=!0,a(this,d,s(this,d)+1);const e=s(this,d);s(this,S).call(this).then(c=>{e===s(this,d)&&(s(this,n).current=!1,this.current=c)})}}S=new WeakMap,n=new WeakMap,d=new WeakMap;exports.Store=o.Store;exports.activeStores=o.activeStores;exports.storeRegistry=o.storeRegistry;exports.Derived=x.Derived;exports.Composed=D.Composed;exports.Cached=R;exports.DerivedArray=m;exports.Resource=q;
|
package/lib/store/index.d.ts
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
export { Store, activeStores, type StoreCallback, type StorePassport, type StoreMiddleware, type StoreOptions, type StoreEqualityCheckCallback, type StoreManager, type StoreStringManager, type StoreNumberManager, type StoreColorManager, type StoreBooleanManager, type StoreLinkManager, type StoreSelectManager, type StoreManagers, type StoreManagerType, } from './Store';
|
|
2
2
|
export { Derived, type DerivedCallback } from './Derived';
|
|
3
|
+
export { DerivedArray, type DerivedArrayCallback } from './DerivedArray';
|
|
4
|
+
export { Cached, type CachedCallback, type CachedSource } from './Cached';
|
|
3
5
|
export { Resource, type ResourceFetcher } from './Resource';
|
|
4
6
|
export { Composed, type ComposedCallback } from './Composed';
|
|
5
7
|
export { storeRegistry, type StoreRegistryState, type StoreRegistryStateStore, } from './StoreRegistry';
|
package/lib/store/index.js
CHANGED
|
@@ -1,42 +1,76 @@
|
|
|
1
|
-
var
|
|
2
|
-
if (!
|
|
3
|
-
throw TypeError("Cannot " +
|
|
1
|
+
var y = (r, s, e) => {
|
|
2
|
+
if (!s.has(r))
|
|
3
|
+
throw TypeError("Cannot " + e);
|
|
4
4
|
};
|
|
5
|
-
var
|
|
6
|
-
if (
|
|
5
|
+
var t = (r, s, e) => (y(r, s, "read from private field"), e ? e.call(r) : s.get(r)), i = (r, s, e) => {
|
|
6
|
+
if (s.has(r))
|
|
7
7
|
throw TypeError("Cannot add the same private member more than once");
|
|
8
|
-
|
|
9
|
-
},
|
|
10
|
-
import { S as
|
|
11
|
-
import { a as
|
|
12
|
-
import { D } from "../Derived-DIWinC7Y.js";
|
|
13
|
-
import { C as
|
|
14
|
-
var f
|
|
15
|
-
class
|
|
16
|
-
constructor(
|
|
17
|
-
super(
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
8
|
+
s instanceof WeakSet ? s.add(r) : s.set(r, e);
|
|
9
|
+
}, a = (r, s, e, c) => (y(r, s, "write to private field"), c ? c.call(r, e) : s.set(r, e), e);
|
|
10
|
+
import { S as b } from "../Store-Qr3SNOSf.js";
|
|
11
|
+
import { a as R, s as A } from "../Store-Qr3SNOSf.js";
|
|
12
|
+
import { D as j } from "../Derived-DIWinC7Y.js";
|
|
13
|
+
import { C as z } from "../Composed-Fa7owymK.js";
|
|
14
|
+
var f;
|
|
15
|
+
class S extends b {
|
|
16
|
+
constructor(e, c, u) {
|
|
17
|
+
super(null, u);
|
|
18
|
+
i(this, f, void 0);
|
|
19
|
+
a(this, f, e.subscribe((m) => {
|
|
20
|
+
this.current = m.current.map((n, v, g) => c(n, v, g));
|
|
21
|
+
}));
|
|
22
|
+
}
|
|
23
|
+
close() {
|
|
24
|
+
super.close(), t(this, f).call(this);
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
f = new WeakMap();
|
|
28
|
+
var d, l;
|
|
29
|
+
class k extends b {
|
|
30
|
+
constructor(e, c, u) {
|
|
31
|
+
super(null, u);
|
|
32
|
+
i(this, d, void 0);
|
|
33
|
+
i(this, l, /* @__PURE__ */ new Map());
|
|
34
|
+
a(this, d, e.subscribe((m) => {
|
|
35
|
+
this.current = m.current.map((n, v, g) => {
|
|
36
|
+
let x = t(this, l).get(n.key);
|
|
37
|
+
return (x === void 0 || n.revalidate) && (x = c(n.value, v, g), t(this, l).set(n.key, x)), x;
|
|
38
|
+
});
|
|
39
|
+
}));
|
|
40
|
+
}
|
|
41
|
+
close() {
|
|
42
|
+
super.close(), t(this, d).call(this), t(this, l).clear();
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
d = new WeakMap(), l = new WeakMap();
|
|
46
|
+
var p, h, o;
|
|
47
|
+
class w extends b {
|
|
48
|
+
constructor(e, c, u) {
|
|
49
|
+
super(e, u);
|
|
50
|
+
i(this, p, void 0);
|
|
51
|
+
i(this, h, void 0);
|
|
52
|
+
i(this, o, 0);
|
|
53
|
+
a(this, h, new b(!1)), a(this, p, c), u != null && u.manualControl || this.refetch();
|
|
22
54
|
}
|
|
23
55
|
get isPending() {
|
|
24
|
-
return
|
|
56
|
+
return t(this, h);
|
|
25
57
|
}
|
|
26
58
|
refetch() {
|
|
27
|
-
|
|
28
|
-
const
|
|
29
|
-
|
|
30
|
-
|
|
59
|
+
t(this, h).current = !0, a(this, o, t(this, o) + 1);
|
|
60
|
+
const e = t(this, o);
|
|
61
|
+
t(this, p).call(this).then((c) => {
|
|
62
|
+
e === t(this, o) && (t(this, h).current = !1, this.current = c);
|
|
31
63
|
});
|
|
32
64
|
}
|
|
33
65
|
}
|
|
34
|
-
|
|
66
|
+
p = new WeakMap(), h = new WeakMap(), o = new WeakMap();
|
|
35
67
|
export {
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
68
|
+
k as Cached,
|
|
69
|
+
z as Composed,
|
|
70
|
+
j as Derived,
|
|
71
|
+
S as DerivedArray,
|
|
72
|
+
w as Resource,
|
|
73
|
+
b as Store,
|
|
74
|
+
R as activeStores,
|
|
75
|
+
A as storeRegistry
|
|
42
76
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var s=Object.defineProperty,l=Object.defineProperties;var m=Object.getOwnPropertyDescriptors;var u=Object.getOwnPropertySymbols;var f=Object.prototype.hasOwnProperty,a=Object.prototype.propertyIsEnumerable;var c=(n,e,r)=>e in n?s(n,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):n[e]=r,o=(n,e)=>{for(var r in e||(e={}))f.call(e,r)&&c(n,r,e[r]);if(u)for(var r of u(e))a.call(e,r)&&c(n,r,e[r]);return n},i=(n,e)=>l(n,m(e));const t=require("./ElementConstructor-OK-6OPjh.cjs");function w(...n){return new t.ElementConstructor(...n)}function C(n){return new t.ElementConstructor("a",n)}function E(n){return new t.ElementConstructor("abbr",n)}function d(n){return new t.ElementConstructor("address",n)}function p(n){return new t.ElementConstructor("area",n)}function b(n){return new t.ElementConstructor("article",n)}function h(n){return new t.ElementConstructor("aside",n)}function g(n){return new t.ElementConstructor("audio",n)}function y(n){return new t.ElementConstructor("b",n)}function k(n){return new t.ElementConstructor("base",n)}function v(n){return new t.ElementConstructor("bdi",n)}function q(n){return new t.ElementConstructor("bdo",n)}function x(n){return new t.ElementConstructor("blockquote",n)}function V(n){return new t.ElementConstructor("body",n)}function D(n){return new t.ElementConstructor("br",n)}function F(n){return new t.ElementConstructor("button",n)}function N(n){return new t.ElementConstructor("canvas",n)}function T(n){return new t.ElementConstructor("caption",n)}function z(n){return new t.ElementConstructor("cite",n)}function A(n){return new t.ElementConstructor("code",n)}function B(n){return new t.ElementConstructor("col",n)}function G(n){return new t.ElementConstructor("colgroup",n)}function H(n){return new t.ElementConstructor("data",n)}function I(n){return new t.ElementConstructor("datalist",n)}function J(n){return new t.ElementConstructor("dd",n)}function K(n){return new t.ElementConstructor("del",n)}function L(n){return new t.ElementConstructor("details",n)}function M(n){return new t.ElementConstructor("dfn",n)}function O(n){return new t.ElementConstructor("dialog",n)}function P(n){return new t.ElementConstructor("div",n)}function Q(n){return new t.ElementConstructor("dl",n)}function R(n){return new t.ElementConstructor("dt",n)}function S(n){return new t.ElementConstructor("em",n)}function U(n){return new t.ElementConstructor("embed",n)}function W(n){return new t.ElementConstructor("fieldset",n)}function X(n){return new t.ElementConstructor("figcaption",n)}function Y(n){return new t.ElementConstructor("figure",n)}function Z(n){return new t.ElementConstructor("footer",n)}function _(n){return new t.ElementConstructor("form",n)}function $(n){return new t.ElementConstructor("h1",n)}function j(n){return new t.ElementConstructor("h2",n)}function nn(n){return new t.ElementConstructor("h3",n)}function tn(n){return new t.ElementConstructor("h4",n)}function en(n){return new t.ElementConstructor("h5",n)}function rn(n){return new t.ElementConstructor("h6",n)}function on(n){return new t.ElementConstructor("head",n)}function un(n){return new t.ElementConstructor("header",n)}function cn(n){return new t.ElementConstructor("hgroup",n)}function sn(n){return new t.ElementConstructor("hr",n)}function ln(n){return new t.ElementConstructor("html",n)}function mn(n){return new t.ElementConstructor("i",n)}function fn(n){return new t.ElementConstructor("iframe",n)}function an(n){return new t.ElementConstructor("img",n)}function wn(n){return new t.ElementConstructor("input",n)}function Cn(n){return new t.ElementConstructor("ins",n)}function En(n){return new t.ElementConstructor("kbd",n)}function dn(n){return new t.ElementConstructor("label",n)}function pn(n){return new t.ElementConstructor("legend",n)}function bn(n){return new t.ElementConstructor("li",n)}function hn(n){return new t.ElementConstructor("link",n)}function gn(n){return new t.ElementConstructor("main",n)}function yn(n){return new t.ElementConstructor("map",n)}function kn(n){return new t.ElementConstructor("mark",n)}function vn(n){return new t.ElementConstructor("menu",n)}function qn(n){return new t.ElementConstructor("meta",n)}function xn(n){return new t.ElementConstructor("meter",n)}function Vn(n){return new t.ElementConstructor("nav",n)}function Dn(n){return new t.ElementConstructor("noscript",n)}function Fn(n){return new t.ElementConstructor("object",n)}function Nn(n){return new t.ElementConstructor("ol",n)}function Tn(n){return new t.ElementConstructor("optgroup",n)}function zn(n){return new t.ElementConstructor("option",n)}function An(n){return new t.ElementConstructor("output",n)}function Bn(n){return new t.ElementConstructor("p",n)}function Gn(n){return new t.ElementConstructor("picture",n)}function Hn(n){return new t.ElementConstructor("pre",n)}function In(n){return new t.ElementConstructor("progress",n)}function Jn(n){return new t.ElementConstructor("q",n)}function Kn(n){return new t.ElementConstructor("rp",n)}function Ln(n){return new t.ElementConstructor("rt",n)}function Mn(n){return new t.ElementConstructor("ruby",n)}function On(n){return new t.ElementConstructor("s",n)}function Pn(n){return new t.ElementConstructor("samp",n)}function Qn(n){return new t.ElementConstructor("script",n)}function Rn(n){return new t.ElementConstructor("search",n)}function Sn(n){return new t.ElementConstructor("section",n)}function Un(n){return new t.ElementConstructor("select",n)}function Wn(n){return new t.ElementConstructor("slot",n)}function Xn(n){return new t.ElementConstructor("small",n)}function Yn(n){return new t.ElementConstructor("source",n)}function Zn(n){return new t.ElementConstructor("span",n)}function _n(n){return new t.ElementConstructor("strong",n)}function $n(n){return new t.ElementConstructor("style",{style:n})}function jn(n){return new t.ElementConstructor("sub",n)}function nt(n){return new t.ElementConstructor("summary",n)}function tt(n){return new t.ElementConstructor("sup",n)}function et(n){return new t.ElementConstructor("table",n)}function rt(n){return new t.ElementConstructor("tbody",n)}function ot(n){return new t.ElementConstructor("td",n)}function ut(n){return new t.ElementConstructor("template",n)}function ct(n){return new t.ElementConstructor("textarea",n)}function it(n){return new t.ElementConstructor("tfoot",n)}function st(n){return new t.ElementConstructor("th",n)}function lt(n){return new t.ElementConstructor("thead",n)}function mt(n){return new t.ElementConstructor("time",n)}function ft(n){return new t.ElementConstructor("title",n)}function at(n){return new t.ElementConstructor("tr",n)}function wt(n){return new t.ElementConstructor("track",n)}function Ct(n){return new t.ElementConstructor("u",n)}function Et(n){return new t.ElementConstructor("ul",n)}function dt(n){return new t.ElementConstructor("var",n)}function pt(n){return new t.ElementConstructor("video",n)}function bt(n){return new t.ElementConstructor("wbr",n)}function ht(n){return new t.ElementConstructor(document.createDocumentFragment(),n)}function gt(n){return new t.ElementConstructor(document.createTextNode(""),n)}function yt(n){return new t.ElementConstructor("div",i(o({},n),{style:o({display:"contents"},n==null?void 0:n.style)}))}exports.a=C;exports.abbr=E;exports.address=d;exports.area=p;exports.article=b;exports.aside=h;exports.audio=g;exports.b=y;exports.base=k;exports.bdi=v;exports.bdo=q;exports.blockquote=x;exports.body=V;exports.br=D;exports.button=F;exports.canvas=N;exports.caption=T;exports.cite=z;exports.code=A;exports.col=B;exports.colgroup=G;exports.contents=yt;exports.data=H;exports.datalist=I;exports.dd=J;exports.del=K;exports.details=L;exports.dfn=M;exports.dialog=O;exports.div=P;exports.dl=Q;exports.dt=R;exports.element=w;exports.em=S;exports.embed=U;exports.empty=gt;exports.fieldset=W;exports.figcaption=X;exports.figure=Y;exports.footer=Z;exports.form=_;exports.fragment=ht;exports.h1=$;exports.h2=j;exports.h3=nn;exports.h4=tn;exports.h5=en;exports.h6=rn;exports.head=on;exports.header=un;exports.hgroup=cn;exports.hr=sn;exports.html=ln;exports.htmlVar=dt;exports.i=mn;exports.iframe=fn;exports.img=an;exports.input=wn;exports.ins=Cn;exports.kbd=En;exports.label=dn;exports.legend=pn;exports.li=bn;exports.link=hn;exports.main=gn;exports.map=yn;exports.mark=kn;exports.menu=vn;exports.meta=qn;exports.meter=xn;exports.nav=Vn;exports.noscript=Dn;exports.object=Fn;exports.ol=Nn;exports.optgroup=Tn;exports.option=zn;exports.output=An;exports.p=Bn;exports.picture=Gn;exports.pre=Hn;exports.progress=In;exports.q=Jn;exports.rp=Kn;exports.rt=Ln;exports.ruby=Mn;exports.s=On;exports.samp=Pn;exports.script=Qn;exports.search=Rn;exports.section=Sn;exports.select=Un;exports.slot=Wn;exports.small=Xn;exports.source=Yn;exports.span=Zn;exports.strong=_n;exports.style=$n;exports.sub=jn;exports.summary=nt;exports.sup=tt;exports.table=et;exports.tbody=rt;exports.td=ot;exports.template=ut;exports.textarea=ct;exports.tfoot=it;exports.th=st;exports.thead=lt;exports.time=mt;exports.title=ft;exports.tr=at;exports.track=wt;exports.u=Ct;exports.ul=Et;exports.video=pt;exports.wbr=bt;
|