aptechka 0.7.11 → 0.8.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/Animation-CwgyQH5y.js +110 -0
- package/lib/Animation-DBfrekcV.cjs +1 -0
- package/lib/{Composed-Dx2hs-va.cjs → Composed-CIXY_HwN.cjs} +1 -1
- package/lib/{Composed-DmLYTh1b.js → Composed-CgnR5oah.js} +1 -1
- package/lib/Damped-DmcKRSST.cjs +1 -0
- package/lib/Damped-vepIw9Ku.js +57 -0
- package/lib/{Derived-DlCvc0xQ.js → Derived-B4CxuebG.js} +1 -1
- package/lib/{Derived-a6MDQEPY.cjs → Derived-Xb4EzLLO.cjs} +1 -1
- package/lib/{SourceManager-kxr5eUyL.cjs → SourceManager-Ce49-NQe.cjs} +1 -1
- package/lib/{SourceManager-Bz329f90.js → SourceManager-U3KHUnNl.js} +1 -1
- package/lib/Store-CIs_NjhF.cjs +1 -0
- package/lib/Store-Dqcu1DnE.js +152 -0
- package/lib/{Tweened-B_mclQ61.cjs → Tweened-5Bj7ht3x.cjs} +1 -1
- package/lib/{Tweened-NE8M9onF.js → Tweened-DPi9pZ8Q.js} +1 -1
- package/lib/{Viewport-D9IL7kUQ.js → Viewport-4ZTWxLo_.js} +1 -1
- package/lib/{Viewport-CJeKnL5V.cjs → Viewport-CIBlSU2t.cjs} +1 -1
- package/lib/animation/Animation.d.ts +3 -18
- package/lib/animation/Damped.d.ts +2 -18
- package/lib/animation/Tweened.d.ts +2 -2
- package/lib/animation/index.cjs +1 -1
- package/lib/animation/index.d.ts +2 -2
- package/lib/animation/index.js +3 -3
- package/lib/attribute/index.cjs +1 -1
- package/lib/attribute/index.d.ts +3 -3
- package/lib/attribute/index.js +1 -1
- package/lib/canvas/index.cjs +1 -1
- package/lib/canvas/index.d.ts +1 -0
- package/lib/canvas/index.js +63 -54
- package/lib/checkbox/index.cjs +1 -1
- package/lib/checkbox/index.js +3 -3
- package/lib/class-linked-status/index.cjs +1 -1
- package/lib/class-linked-status/index.js +1 -1
- package/lib/controls/index.cjs +1 -1
- package/lib/controls/index.js +2 -2
- package/lib/{createStylesheet-p23sZ7Ey.cjs → createStylesheet-BX1RVTfW.cjs} +1 -1
- package/lib/{createStylesheet-CR_yi5tp.js → createStylesheet-CgWN4UhW.js} +1 -1
- package/lib/css-property/index.cjs +1 -1
- package/lib/css-property/index.d.ts +3 -3
- package/lib/css-property/index.js +1 -1
- package/lib/dev/index.cjs +1 -1
- package/lib/dev/index.js +1 -1
- package/lib/device/Viewport.d.ts +1 -1
- package/lib/device/index.cjs +1 -1
- package/lib/device/index.js +1 -1
- package/lib/element-constructor/ElementConstructor.d.ts +1 -1
- package/lib/element-constructor/index.cjs +1 -1
- package/lib/element-constructor/index.js +113 -114
- package/lib/en3/helpers/index.cjs +1 -1
- package/lib/en3/helpers/index.js +2 -2
- package/lib/en3/misc/En3SourceManager.d.ts +2 -2
- package/lib/en3/misc/index.cjs +1 -1
- package/lib/en3/misc/index.js +2 -2
- package/lib/en3/objects/fluid/En3Fluid.d.ts +5 -5
- package/lib/en3/objects/fluid/Simulation.d.ts +10 -10
- package/lib/image/index.cjs +1 -1
- package/lib/image/index.js +1 -1
- package/lib/{index-CoOTQk9H.js → index-C2xWAQFq.js} +3 -3
- package/lib/{index-DVUk3T-y.cjs → index-DfSyc2GT.cjs} +1 -1
- package/lib/ladder/index.cjs +1 -1
- package/lib/ladder/index.js +1 -1
- package/lib/layout-box/index.d.ts +2 -2
- package/lib/media/index.cjs +1 -1
- package/lib/media/index.js +1 -1
- package/lib/modal/index.cjs +1 -1
- package/lib/modal/index.js +7 -7
- package/lib/pointer/index.cjs +1 -1
- package/lib/pointer/index.js +2 -2
- package/lib/popover/PopoverElement.d.ts +1 -1
- package/lib/popover/index.cjs +1 -1
- package/lib/popover/index.js +2 -2
- package/lib/router/index.cjs +1 -1
- package/lib/router/index.js +73 -76
- package/lib/scroll/ScrollElement.d.ts +1 -1
- package/lib/scroll/ScrollSegmentElement.d.ts +6 -6
- package/lib/scroll/index.cjs +1 -1
- package/lib/scroll/index.js +7 -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 -1
- package/lib/source/index.cjs +1 -1
- package/lib/source/index.js +2 -2
- package/lib/store/Derived.d.ts +1 -1
- package/lib/store/Resource.d.ts +1 -4
- package/lib/store/Store.d.ts +10 -10
- package/lib/store/StoreRegistry.d.ts +1 -1
- package/lib/store/index.cjs +1 -1
- package/lib/store/index.d.ts +1 -3
- package/lib/store/index.js +38 -68
- package/lib/tags-C-6uXIAT.js +848 -0
- package/lib/tags-yvEoM921.cjs +1 -0
- package/lib/test/starting-style/index.d.ts +1 -0
- package/lib/theme/index.cjs +1 -1
- package/lib/theme/index.js +2 -2
- package/lib/tweaker/TweakerFieldElement.d.ts +3 -3
- package/lib/tweaker/TweakerFolderElement.d.ts +4 -4
- package/lib/tweaker/TweakerStoreManagerElement.d.ts +1 -1
- package/lib/tweaker/index.cjs +2 -2
- package/lib/tweaker/index.js +168 -162
- package/lib/tweaker/tweakerManagerConstructors.d.ts +1 -1
- package/lib/video/index.cjs +1 -1
- package/lib/video/index.js +1 -1
- package/package.json +1 -65
- package/lib/Animation-6Na1MCtM.cjs +0 -1
- package/lib/Animation-CELiTw3n.js +0 -132
- package/lib/Damped-Mx_FNNVz.js +0 -63
- package/lib/Damped-loFiBsBy.cjs +0 -1
- package/lib/ElementConstructor-CAZ2ra8m.cjs +0 -1
- package/lib/ElementConstructor-OYlPJf2L.js +0 -366
- package/lib/Resource-D3TQormz.cjs +0 -1
- package/lib/Resource-DIcoALGo.js +0 -64
- package/lib/Store-6s0YXK4o.cjs +0 -1
- package/lib/Store-BI2xxXOA.js +0 -156
- package/lib/_createStore-Cf1MyeHa.cjs +0 -1
- package/lib/_createStore-Ck9bHolX.js +0 -12
- package/lib/globals-DMjysUXI.js +0 -8
- package/lib/globals-bYKki-b9.cjs +0 -1
- package/lib/instantiate-Cx-JmH6m.cjs +0 -1
- package/lib/instantiate-D87JFF1W.js +0 -125
- package/lib/jsx/ComponentElement.d.ts +0 -18
- package/lib/jsx/globals.d.ts +0 -13
- package/lib/jsx/h.d.ts +0 -7
- package/lib/jsx/hooks/basic/_createStore.d.ts +0 -4
- package/lib/jsx/hooks/basic/attachInternals.d.ts +0 -1
- package/lib/jsx/hooks/basic/attachShadow.d.ts +0 -1
- package/lib/jsx/hooks/basic/attachStylesheet.d.ts +0 -3
- package/lib/jsx/hooks/basic/createContext.d.ts +0 -2
- package/lib/jsx/hooks/basic/onConnect.d.ts +0 -3
- package/lib/jsx/hooks/basic/onDisconnect.d.ts +0 -3
- package/lib/jsx/hooks/onAnimationFrame.cjs +0 -1
- package/lib/jsx/hooks/onAnimationFrame.d.ts +0 -6
- package/lib/jsx/hooks/onAnimationFrame.js +0 -22
- package/lib/jsx/hooks/onElementResize.cjs +0 -1
- package/lib/jsx/hooks/onElementResize.d.ts +0 -5
- package/lib/jsx/hooks/onElementResize.js +0 -11
- package/lib/jsx/hooks/onIntersection.cjs +0 -1
- package/lib/jsx/hooks/onIntersection.d.ts +0 -5
- package/lib/jsx/hooks/onIntersection.js +0 -11
- package/lib/jsx/hooks/onWindowResize.cjs +0 -1
- package/lib/jsx/hooks/onWindowResize.d.ts +0 -3
- package/lib/jsx/hooks/onWindowResize.js +0 -8
- package/lib/jsx/hooks/store/createArrayStore.d.ts +0 -3
- package/lib/jsx/hooks/store/createComposed.d.ts +0 -3
- package/lib/jsx/hooks/store/createDerived.d.ts +0 -3
- package/lib/jsx/hooks/store/createDerivedArray.d.ts +0 -3
- package/lib/jsx/hooks/store/createDerivedComponent.d.ts +0 -3
- package/lib/jsx/hooks/store/createDerivedComponents.d.ts +0 -3
- package/lib/jsx/hooks/store/createResource.d.ts +0 -3
- package/lib/jsx/hooks/store/createStore.d.ts +0 -3
- package/lib/jsx/hooks/store/index.cjs +0 -1
- package/lib/jsx/hooks/store/index.d.ts +0 -7
- package/lib/jsx/hooks/store/index.js +0 -49
- package/lib/jsx/hooks/watchAttribute.cjs +0 -1
- package/lib/jsx/hooks/watchAttribute.d.ts +0 -6
- package/lib/jsx/hooks/watchAttribute.js +0 -17
- package/lib/jsx/hooks/watchCSSProperty.cjs +0 -1
- package/lib/jsx/hooks/watchCSSProperty.d.ts +0 -7
- package/lib/jsx/hooks/watchCSSProperty.js +0 -17
- package/lib/jsx/index.cjs +0 -1
- package/lib/jsx/index.d.ts +0 -13
- package/lib/jsx/index.js +0 -91
- package/lib/jsx/instantiate.d.ts +0 -5
- package/lib/jsx/register.d.ts +0 -1
- package/lib/jsx/render.d.ts +0 -6
- package/lib/jsx/type.d.ts +0 -188
- package/lib/onConnect-DGP866cj.cjs +0 -1
- package/lib/onConnect-y5DrxJ9P.js +0 -7
- package/lib/store/ArrayStore.d.ts +0 -21
- package/lib/store/DerivedArray.d.ts +0 -8
- package/lib/tags-BqJKcIve.js +0 -485
- package/lib/tags-ld5jemJw.cjs +0 -1
|
@@ -1,366 +0,0 @@
|
|
|
1
|
-
var Z = (f, e, t) => {
|
|
2
|
-
if (!e.has(f))
|
|
3
|
-
throw TypeError("Cannot " + t);
|
|
4
|
-
};
|
|
5
|
-
var i = (f, e, t) => (Z(f, e, "read from private field"), t ? t.call(f) : e.get(f)), c = (f, e, t) => {
|
|
6
|
-
if (e.has(f))
|
|
7
|
-
throw TypeError("Cannot add the same private member more than once");
|
|
8
|
-
e instanceof WeakSet ? e.add(f) : e.set(f, t);
|
|
9
|
-
}, p = (f, e, t, s) => (Z(f, e, "write to private field"), s ? s.call(f, t) : e.set(f, t), t);
|
|
10
|
-
var a = (f, e, t) => (Z(f, e, "access private method"), t);
|
|
11
|
-
import { S as C } from "./Store-BI2xxXOA.js";
|
|
12
|
-
import { i as fe } from "./browser-0zX67oeU.js";
|
|
13
|
-
import { i as le } from "./object-D6MVWB4l.js";
|
|
14
|
-
import { c as he, u as we } from "./string-f0Dnk0L1.js";
|
|
15
|
-
import { connector as Le } from "./connector/index.js";
|
|
16
|
-
const Te = /* @__PURE__ */ new Set([
|
|
17
|
-
// 'a', 'style', 'title', 'script',
|
|
18
|
-
"animate",
|
|
19
|
-
"animateMotion",
|
|
20
|
-
"animateTransform",
|
|
21
|
-
"circle",
|
|
22
|
-
"clipPath",
|
|
23
|
-
"defs",
|
|
24
|
-
"desc",
|
|
25
|
-
"ellipse",
|
|
26
|
-
"feBlend",
|
|
27
|
-
"feColorMatrix",
|
|
28
|
-
"feComponentTransfer",
|
|
29
|
-
"feComposite",
|
|
30
|
-
"feConvolveMatrix",
|
|
31
|
-
"feDiffuseLighting",
|
|
32
|
-
"feDisplacementMap",
|
|
33
|
-
"feDistantLight",
|
|
34
|
-
"feDropShadow",
|
|
35
|
-
"feFlood",
|
|
36
|
-
"feFuncA",
|
|
37
|
-
"feFuncB",
|
|
38
|
-
"feFuncG",
|
|
39
|
-
"feFuncR",
|
|
40
|
-
"feGaussianBlur",
|
|
41
|
-
"feImage",
|
|
42
|
-
"feMerge",
|
|
43
|
-
"feMergeNode",
|
|
44
|
-
"feMorphology",
|
|
45
|
-
"feOffset",
|
|
46
|
-
"fePointLight",
|
|
47
|
-
"feSpecularLighting",
|
|
48
|
-
"feSpotLight",
|
|
49
|
-
"feTile",
|
|
50
|
-
"feTurbulence",
|
|
51
|
-
"filter",
|
|
52
|
-
"foreignObject",
|
|
53
|
-
"g",
|
|
54
|
-
"image",
|
|
55
|
-
"line",
|
|
56
|
-
"linearGradient",
|
|
57
|
-
"listener",
|
|
58
|
-
"marker",
|
|
59
|
-
"mask",
|
|
60
|
-
"metadata",
|
|
61
|
-
"mpath",
|
|
62
|
-
"path",
|
|
63
|
-
"pattern",
|
|
64
|
-
"polygon",
|
|
65
|
-
"polyline",
|
|
66
|
-
"radialGradient",
|
|
67
|
-
"rect",
|
|
68
|
-
"set",
|
|
69
|
-
"solidColor",
|
|
70
|
-
"stop",
|
|
71
|
-
"svg",
|
|
72
|
-
"switch",
|
|
73
|
-
"symbol",
|
|
74
|
-
"text",
|
|
75
|
-
"textPath",
|
|
76
|
-
"title",
|
|
77
|
-
"tspan",
|
|
78
|
-
"view"
|
|
79
|
-
]);
|
|
80
|
-
var o, E, l, w, d, m, R, me, B, ue, G, ge, L, _, T, O, W, Ee, $, pe, q, Ce, z, ye, v, j, A, ee, I, be, k, te, M, se, J, Se, D, ie, N, P, x, ne, H, oe, F, ae, V, U;
|
|
81
|
-
const Y = class Y {
|
|
82
|
-
constructor(...e) {
|
|
83
|
-
c(this, R);
|
|
84
|
-
c(this, B);
|
|
85
|
-
c(this, G);
|
|
86
|
-
c(this, L);
|
|
87
|
-
c(this, T);
|
|
88
|
-
c(this, W);
|
|
89
|
-
c(this, $);
|
|
90
|
-
c(this, q);
|
|
91
|
-
c(this, z);
|
|
92
|
-
c(this, v);
|
|
93
|
-
c(this, A);
|
|
94
|
-
c(this, I);
|
|
95
|
-
c(this, k);
|
|
96
|
-
c(this, M);
|
|
97
|
-
c(this, J);
|
|
98
|
-
c(this, D);
|
|
99
|
-
c(this, N);
|
|
100
|
-
c(this, x);
|
|
101
|
-
c(this, H);
|
|
102
|
-
c(this, F);
|
|
103
|
-
c(this, o, null);
|
|
104
|
-
c(this, E, /* @__PURE__ */ new Set());
|
|
105
|
-
c(this, l, /* @__PURE__ */ new Set());
|
|
106
|
-
c(this, w, void 0);
|
|
107
|
-
c(this, d, void 0);
|
|
108
|
-
c(this, m, void 0);
|
|
109
|
-
c(this, V, () => {
|
|
110
|
-
i(this, E).forEach((e) => {
|
|
111
|
-
e();
|
|
112
|
-
}), i(this, E).clear();
|
|
113
|
-
});
|
|
114
|
-
c(this, U, (e) => {
|
|
115
|
-
i(this, l).forEach((t) => {
|
|
116
|
-
t(e);
|
|
117
|
-
}), i(this, l).clear(), a(this, M, se).call(this);
|
|
118
|
-
});
|
|
119
|
-
if (fe) {
|
|
120
|
-
const t = e[0], s = e[1];
|
|
121
|
-
p(this, o, a(this, R, me).call(this, t, s == null ? void 0 : s.forceSvg)), a(this, G, ge).call(this, s);
|
|
122
|
-
}
|
|
123
|
-
}
|
|
124
|
-
get node() {
|
|
125
|
-
return i(this, o);
|
|
126
|
-
}
|
|
127
|
-
set node(e) {
|
|
128
|
-
var t;
|
|
129
|
-
a(this, M, se).call(this), p(this, o, e), (t = i(this, w)) == null || t.call(this), i(this, o) instanceof Element && p(this, d, [
|
|
130
|
-
...i(this, o).querySelectorAll("store-root")
|
|
131
|
-
]), a(this, k, te).call(this), a(this, L, _).call(this);
|
|
132
|
-
}
|
|
133
|
-
};
|
|
134
|
-
o = new WeakMap(), E = new WeakMap(), l = new WeakMap(), w = new WeakMap(), d = new WeakMap(), m = new WeakMap(), R = new WeakSet(), me = function(e, t) {
|
|
135
|
-
let s = null;
|
|
136
|
-
if (e instanceof Node)
|
|
137
|
-
s = e;
|
|
138
|
-
else if (typeof e == "string")
|
|
139
|
-
if (!e.includes("<") && e.includes("-"))
|
|
140
|
-
s = new (customElements.get(e))();
|
|
141
|
-
else if (e.includes("<")) {
|
|
142
|
-
const n = document.createElement("div");
|
|
143
|
-
n.innerHTML = e, s = n.firstElementChild;
|
|
144
|
-
} else
|
|
145
|
-
Te.has(e) || t ? s = document.createElementNS(
|
|
146
|
-
"http://www.w3.org/2000/svg",
|
|
147
|
-
e
|
|
148
|
-
) : s = document.createElement(e);
|
|
149
|
-
else
|
|
150
|
-
s = document.createElement("div");
|
|
151
|
-
return s;
|
|
152
|
-
}, B = new WeakSet(), ue = function(e) {
|
|
153
|
-
return e instanceof HTMLElement || e instanceof SVGElement;
|
|
154
|
-
}, G = new WeakSet(), ge = function(e) {
|
|
155
|
-
if (!e)
|
|
156
|
-
return;
|
|
157
|
-
const t = a(this, B, ue).call(this, i(this, o)), s = e.ref;
|
|
158
|
-
delete e.ref, e != null && e.onConnect && (i(this, E).add(e.onConnect), delete e.onConnect), e != null && e.onDisconnect && (i(this, l).add(e.onDisconnect), delete e.onDisconnect);
|
|
159
|
-
let n, r;
|
|
160
|
-
for (const h in e) {
|
|
161
|
-
const u = e[h];
|
|
162
|
-
h === "class" && t ? a(this, T, O).call(this, u) : h === "style" && t ? a(this, q, Ce).call(this, u) : h === "lightChildren" ? a(this, N, P).call(this, i(this, o), u) : h === "children" ? a(this, N, P).call(this, i(this, o) instanceof Element ? i(this, o).shadowRoot || i(this, o) : i(this, o), u) : h.startsWith("on") ? (r || (r = {}), r[h] = u) : (n || (n = {}), n[h] = u);
|
|
163
|
-
}
|
|
164
|
-
a(this, J, Se).call(this, n), a(this, I, be).call(this, r), s && (typeof s == "function" ? s(i(this, o)) : s.current = i(this, o)), a(this, L, _).call(this);
|
|
165
|
-
}, L = new WeakSet(), _ = function() {
|
|
166
|
-
if (fe && (i(this, l).size || i(this, E).size)) {
|
|
167
|
-
const e = i(this, o) instanceof DocumentFragment ? i(this, o).firstChild : i(this, o);
|
|
168
|
-
p(this, w, Le.subscribe(
|
|
169
|
-
e,
|
|
170
|
-
{
|
|
171
|
-
connectCallback: i(this, V),
|
|
172
|
-
disconnectCallback: i(this, U),
|
|
173
|
-
unsubscribeAfterDisconnect: !0,
|
|
174
|
-
maxWaitSec: 20
|
|
175
|
-
}
|
|
176
|
-
));
|
|
177
|
-
}
|
|
178
|
-
}, T = new WeakSet(), O = function(e) {
|
|
179
|
-
if (e) {
|
|
180
|
-
if (typeof e == "string")
|
|
181
|
-
i(this, o).classList.add(e);
|
|
182
|
-
else if (Array.isArray(e))
|
|
183
|
-
e.forEach((t) => {
|
|
184
|
-
a(this, T, O).call(this, t);
|
|
185
|
-
});
|
|
186
|
-
else if (typeof e == "object")
|
|
187
|
-
if (e instanceof C)
|
|
188
|
-
a(this, W, Ee).call(this, e);
|
|
189
|
-
else
|
|
190
|
-
for (const t in e) {
|
|
191
|
-
const s = e[t];
|
|
192
|
-
s instanceof C ? a(this, $, pe).call(this, t, s) : s ? i(this, o).classList.add(t) : i(this, o).classList.remove(t);
|
|
193
|
-
}
|
|
194
|
-
} else
|
|
195
|
-
return;
|
|
196
|
-
}, W = new WeakSet(), Ee = function(e) {
|
|
197
|
-
i(this, l).add(
|
|
198
|
-
e.subscribe(({ current: t, previous: s }) => {
|
|
199
|
-
s && [s].flat().forEach((n) => {
|
|
200
|
-
n && i(this, o).classList.remove(n);
|
|
201
|
-
}), t && [t].flat().forEach((n) => {
|
|
202
|
-
n && i(this, o).classList.add(n);
|
|
203
|
-
});
|
|
204
|
-
})
|
|
205
|
-
);
|
|
206
|
-
}, $ = new WeakSet(), pe = function(e, t) {
|
|
207
|
-
i(this, l).add(
|
|
208
|
-
t.subscribe(({ current: s }) => {
|
|
209
|
-
s ? i(this, o).classList.add(e) : i(this, o).classList.remove(e);
|
|
210
|
-
})
|
|
211
|
-
);
|
|
212
|
-
}, q = new WeakSet(), Ce = function(e) {
|
|
213
|
-
if (!e)
|
|
214
|
-
return;
|
|
215
|
-
i(this, o).tagName === "style" || i(this, o).tagName === "STYLE" ? a(this, v, j).call(this, e) : a(this, z, ye).call(this, e);
|
|
216
|
-
}, z = new WeakSet(), ye = function(e) {
|
|
217
|
-
for (const t in e) {
|
|
218
|
-
const s = t, n = e[s];
|
|
219
|
-
n instanceof C ? i(this, l).add(
|
|
220
|
-
n.subscribe(({ current: r }) => {
|
|
221
|
-
a(this, A, ee).call(this, s, r);
|
|
222
|
-
})
|
|
223
|
-
) : a(this, A, ee).call(this, s, n);
|
|
224
|
-
}
|
|
225
|
-
}, v = new WeakSet(), j = function(e) {
|
|
226
|
-
for (const t in e) {
|
|
227
|
-
const s = e[t];
|
|
228
|
-
if (typeof s == "object" && !(s instanceof C))
|
|
229
|
-
i(this, o).appendChild(
|
|
230
|
-
document.createTextNode(`${t} {`)
|
|
231
|
-
), a(this, v, j).call(this, s), i(this, o).appendChild(document.createTextNode("}"));
|
|
232
|
-
else if (s instanceof C) {
|
|
233
|
-
const n = document.createTextNode("");
|
|
234
|
-
i(this, l).add(
|
|
235
|
-
s.subscribe((r) => {
|
|
236
|
-
r.current ? n.nodeValue = `${he(t)}: ${r.current};` : n.nodeValue = "";
|
|
237
|
-
})
|
|
238
|
-
), i(this, o).appendChild(n);
|
|
239
|
-
} else
|
|
240
|
-
i(this, o).appendChild(
|
|
241
|
-
document.createTextNode(`${he(t)}: ${s};`)
|
|
242
|
-
);
|
|
243
|
-
}
|
|
244
|
-
}, A = new WeakSet(), ee = function(e, t) {
|
|
245
|
-
e.includes("--") ? t ? i(this, o).style.setProperty(e, t) : i(this, o).style.removeProperty(e) : t ? i(this, o).style[e] = t : i(this, o).style[e] = "";
|
|
246
|
-
}, I = new WeakSet(), be = function(e) {
|
|
247
|
-
if (e) {
|
|
248
|
-
i(this, m) || p(this, m, []);
|
|
249
|
-
for (const t in e) {
|
|
250
|
-
const s = t, n = we(
|
|
251
|
-
s.split("on").slice(1).join("on")
|
|
252
|
-
), r = e[s];
|
|
253
|
-
typeof r == "object" ? i(this, m).push({
|
|
254
|
-
name: n,
|
|
255
|
-
callback: r.callback,
|
|
256
|
-
options: r.options
|
|
257
|
-
}) : typeof r == "function" && i(this, m).push({
|
|
258
|
-
name: n,
|
|
259
|
-
callback: r
|
|
260
|
-
});
|
|
261
|
-
}
|
|
262
|
-
a(this, k, te).call(this);
|
|
263
|
-
}
|
|
264
|
-
}, k = new WeakSet(), te = function() {
|
|
265
|
-
var e;
|
|
266
|
-
(e = i(this, m)) == null || e.forEach((t) => {
|
|
267
|
-
i(this, o).addEventListener(
|
|
268
|
-
t.name,
|
|
269
|
-
t.callback,
|
|
270
|
-
t.options
|
|
271
|
-
);
|
|
272
|
-
});
|
|
273
|
-
}, M = new WeakSet(), se = function() {
|
|
274
|
-
var e;
|
|
275
|
-
(e = i(this, m)) == null || e.forEach((t) => {
|
|
276
|
-
i(this, o).removeEventListener(
|
|
277
|
-
t.name,
|
|
278
|
-
t.callback,
|
|
279
|
-
t.options
|
|
280
|
-
);
|
|
281
|
-
});
|
|
282
|
-
}, J = new WeakSet(), Se = function(e) {
|
|
283
|
-
for (const t in e) {
|
|
284
|
-
const s = e[t];
|
|
285
|
-
s instanceof C ? i(this, l).add(
|
|
286
|
-
s.subscribe(({ current: n }) => {
|
|
287
|
-
a(this, D, ie).call(this, t, n);
|
|
288
|
-
})
|
|
289
|
-
) : a(this, D, ie).call(this, t, s);
|
|
290
|
-
}
|
|
291
|
-
}, D = new WeakSet(), ie = function(e, t) {
|
|
292
|
-
var n, r;
|
|
293
|
-
const s = i(this, o);
|
|
294
|
-
e in s && !((r = (n = s.constructor) == null ? void 0 : n.observedAttributes) != null && r.includes(e)) ? t != null && (s[e] = t.toString()) : t != null && s.setAttribute(e, t.toString());
|
|
295
|
-
}, N = new WeakSet(), P = function(e, t) {
|
|
296
|
-
t && (t = [t].flat(), t.forEach((s) => {
|
|
297
|
-
if (s instanceof C) {
|
|
298
|
-
const n = document.createElement("div");
|
|
299
|
-
n.style.display = "contents", e.appendChild(n), i(this, d) || p(this, d, []);
|
|
300
|
-
const r = i(this, d).length;
|
|
301
|
-
n.setAttribute("store-root", ""), i(this, d).push(n), i(this, l).add(
|
|
302
|
-
s.subscribe(({ current: h, previous: u }) => {
|
|
303
|
-
const y = i(this, d)[r];
|
|
304
|
-
y.dispatchEvent(
|
|
305
|
-
new CustomEvent("beforeChildrenChange", {
|
|
306
|
-
bubbles: !0,
|
|
307
|
-
composed: !0
|
|
308
|
-
})
|
|
309
|
-
);
|
|
310
|
-
const K = Array.from(y.childNodes), ce = [h].flat(), Ne = [u].flat(), re = [], Q = [];
|
|
311
|
-
Ne.forEach((g, b) => {
|
|
312
|
-
!ce.includes(g) && K[b] ? re.push(K[b]) : Q.push(g);
|
|
313
|
-
}), ce.forEach((g, b) => {
|
|
314
|
-
if (Q[b]) {
|
|
315
|
-
if (g !== Q[b]) {
|
|
316
|
-
const S = a(this, H, oe).call(this, g), X = K[b];
|
|
317
|
-
S instanceof Node ? X.isEqualNode(S) || y.replaceChild(S, X) : y.removeChild(X);
|
|
318
|
-
}
|
|
319
|
-
} else {
|
|
320
|
-
const S = a(this, H, oe).call(this, g);
|
|
321
|
-
S instanceof Node && n.appendChild(S);
|
|
322
|
-
}
|
|
323
|
-
}), re.forEach((g) => {
|
|
324
|
-
y.removeChild(g);
|
|
325
|
-
}), y.dispatchEvent(
|
|
326
|
-
new CustomEvent("afterChildrenChange", {
|
|
327
|
-
bubbles: !0,
|
|
328
|
-
composed: !0
|
|
329
|
-
})
|
|
330
|
-
);
|
|
331
|
-
})
|
|
332
|
-
);
|
|
333
|
-
} else if (s instanceof Y)
|
|
334
|
-
a(this, x, ne).call(this, e, s.node);
|
|
335
|
-
else if (s instanceof Function)
|
|
336
|
-
a(this, N, P).call(this, e, le(s) ? new s() : s());
|
|
337
|
-
else {
|
|
338
|
-
const n = a(this, F, ae).call(this, s);
|
|
339
|
-
n instanceof Node && a(this, x, ne).call(this, e, n);
|
|
340
|
-
}
|
|
341
|
-
}));
|
|
342
|
-
}, x = new WeakSet(), ne = function(e, t) {
|
|
343
|
-
!(e instanceof ShadowRoot) && t instanceof HTMLElement && t.tagName === "STYLE" ? (i(this, E).add(() => {
|
|
344
|
-
[...document.head.querySelectorAll("style")].find((n) => n.outerHTML === t.outerHTML) || document.head.appendChild(t);
|
|
345
|
-
}), i(this, l).add(() => {
|
|
346
|
-
t.remove();
|
|
347
|
-
})) : e.appendChild(t);
|
|
348
|
-
}, H = new WeakSet(), oe = function(e) {
|
|
349
|
-
return e instanceof Y ? e.node : typeof e == "function" ? le(e) ? new e() : e() : a(this, F, ae).call(this, e);
|
|
350
|
-
}, F = new WeakSet(), ae = function(e) {
|
|
351
|
-
if (e instanceof Node)
|
|
352
|
-
return e;
|
|
353
|
-
if (e != null) {
|
|
354
|
-
const t = String(e);
|
|
355
|
-
if (t.trim().startsWith("<") && t.trim().endsWith(">")) {
|
|
356
|
-
const s = document.createElement("div");
|
|
357
|
-
return s.innerHTML = t, s.firstElementChild;
|
|
358
|
-
} else
|
|
359
|
-
return document.createTextNode(t);
|
|
360
|
-
} else
|
|
361
|
-
return;
|
|
362
|
-
}, V = new WeakMap(), U = new WeakMap();
|
|
363
|
-
let de = Y;
|
|
364
|
-
export {
|
|
365
|
-
de as E
|
|
366
|
-
};
|
|
@@ -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)),l=(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)},f=(s,t,e,c)=>(R(s,t,"write to private field"),c?c.call(s,e):t.set(s,e),e);const S=require("./Store-6s0YXK4o.cjs");var d,i;class w extends S.Store{constructor(e,c,u){super(null,u);l(this,d,void 0);l(this,i,new Map);f(this,d,e.subscribe(g=>{const x=[];g.current.forEach((n,b)=>{var p;if((p=g.previous)!=null&&p.includes(n)&&r(this,i).has(n))x.push(r(this,i).get(n));else{const y=c(n,b);r(this,i).set(n,y),x.push(y)}}),r(this,i).forEach((n,b)=>{g.current.includes(b)||r(this,i).delete(b)}),this.current=x}))}close(){super.close(),r(this,d).call(this)}}d=new WeakMap,i=new WeakMap;var o,h,a;class A extends S.Store{constructor(e,c,u){super(e,u);l(this,o,void 0);l(this,h,void 0);l(this,a,0);f(this,h,new S.Store(!1)),f(this,o,c),u!=null&&u.manualControl||this.refetch()}get isPending(){return r(this,h)}refetch(){r(this,h).current=!0,f(this,a,r(this,a)+1);const e=r(this,a);r(this,o).call(this).then(c=>{e===r(this,a)&&(r(this,h).current=!1,this.current=c)})}}o=new WeakMap,h=new WeakMap,a=new WeakMap;exports.DerivedArray=w;exports.Resource=A;
|
package/lib/Resource-DIcoALGo.js
DELETED
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
var w = (s, t, e) => {
|
|
2
|
-
if (!t.has(s))
|
|
3
|
-
throw TypeError("Cannot " + e);
|
|
4
|
-
};
|
|
5
|
-
var r = (s, t, e) => (w(s, t, "read from private field"), e ? e.call(s) : t.get(s)), a = (s, t, e) => {
|
|
6
|
-
if (t.has(s))
|
|
7
|
-
throw TypeError("Cannot add the same private member more than once");
|
|
8
|
-
t instanceof WeakSet ? t.add(s) : t.set(s, e);
|
|
9
|
-
}, f = (s, t, e, c) => (w(s, t, "write to private field"), c ? c.call(s, e) : t.set(s, e), e);
|
|
10
|
-
import { S as g } from "./Store-BI2xxXOA.js";
|
|
11
|
-
var d, h;
|
|
12
|
-
class E extends g {
|
|
13
|
-
constructor(e, c, n) {
|
|
14
|
-
super(null, n);
|
|
15
|
-
a(this, d, void 0);
|
|
16
|
-
a(this, h, /* @__PURE__ */ new Map());
|
|
17
|
-
f(this, d, e.subscribe((p) => {
|
|
18
|
-
const x = [];
|
|
19
|
-
p.current.forEach((u, b) => {
|
|
20
|
-
var m;
|
|
21
|
-
if ((m = p.previous) != null && m.includes(u) && r(this, h).has(u))
|
|
22
|
-
x.push(r(this, h).get(u));
|
|
23
|
-
else {
|
|
24
|
-
const R = c(u, b);
|
|
25
|
-
r(this, h).set(u, R), x.push(R);
|
|
26
|
-
}
|
|
27
|
-
}), r(this, h).forEach((u, b) => {
|
|
28
|
-
p.current.includes(b) || r(this, h).delete(b);
|
|
29
|
-
}), this.current = x;
|
|
30
|
-
}));
|
|
31
|
-
}
|
|
32
|
-
close() {
|
|
33
|
-
super.close(), r(this, d).call(this);
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
d = new WeakMap(), h = new WeakMap();
|
|
37
|
-
var o, i, l;
|
|
38
|
-
class I extends g {
|
|
39
|
-
constructor(e, c, n) {
|
|
40
|
-
super(e, n);
|
|
41
|
-
a(this, o, void 0);
|
|
42
|
-
a(this, i, void 0);
|
|
43
|
-
a(this, l, 0);
|
|
44
|
-
f(this, i, new g(!1)), f(this, o, c), n != null && n.manualControl || this.refetch();
|
|
45
|
-
}
|
|
46
|
-
get isPending() {
|
|
47
|
-
return r(this, i);
|
|
48
|
-
}
|
|
49
|
-
/**
|
|
50
|
-
* Calls fetcher again and sets isPending to true.
|
|
51
|
-
*/
|
|
52
|
-
refetch() {
|
|
53
|
-
r(this, i).current = !0, f(this, l, r(this, l) + 1);
|
|
54
|
-
const e = r(this, l);
|
|
55
|
-
r(this, o).call(this).then((c) => {
|
|
56
|
-
e === r(this, l) && (r(this, i).current = !1, this.current = c);
|
|
57
|
-
});
|
|
58
|
-
}
|
|
59
|
-
}
|
|
60
|
-
o = new WeakMap(), i = new WeakMap(), l = new WeakMap();
|
|
61
|
-
export {
|
|
62
|
-
E as D,
|
|
63
|
-
I as R
|
|
64
|
-
};
|
package/lib/Store-6s0YXK4o.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";var R=(i,t,e)=>{if(!t.has(i))throw TypeError("Cannot "+e)};var r=(i,t,e)=>(R(i,t,"read from private field"),e?e.call(i):t.get(i)),a=(i,t,e)=>{if(t.has(i))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(i):t.set(i,e)},s=(i,t,e,h)=>(R(i,t,"write to private field"),h?h.call(i,e):t.set(i,e),e);var p=(i,t,e)=>(R(i,t,"access private method"),e);const M=require("./browser-CpzFX2xg.cjs");var f,d,S;class I{constructor(){a(this,f,null);a(this,d,"");a(this,S,"");M.isBrowser&&(s(this,d,document.documentElement.getAttribute("data-project")||"unnamed"),s(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,f)}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"?s(this,f,JSON.parse(t)):s(this,f,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,f))==null?void 0:h.stores))return t;const e=t.passport;if(e){const k=(N=r(this,f))==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}}f=new WeakMap,d=new WeakMap,S=new WeakMap;const E=new I;var y,m,g,l,o,u,b,c,v,w,A,q;class j{constructor(t,e){a(this,A);a(this,y,void 0);a(this,m,void 0);a(this,g,void 0);a(this,l,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);s(this,y,e==null?void 0:e.passport),s(this,m,t),s(this,g,void 0),s(this,l,t),s(this,o,(e==null?void 0:e.equalityCheck)||((h,N)=>h===N)),e!=null&&e.validate&&this.addMiddleware(e.validate),s(this,v,(e==null?void 0:e.notifyAndClose)||!1),s(this,w,(e==null?void 0:e.invisible)||!1),s(this,b,(e==null?void 0:e.skipSubscribeNotification)||!1),r(this,y)&&E.updateStore(this)}get passport(){return r(this,y)}get initial(){return r(this,m)}get previous(){return r(this,g)}get current(){return r(this,l)}set current(t){if(!r(this,o).call(this,r(this,l),t)){if(s(this,g,r(this,l)),r(this,c))for(const e of r(this,c))t=e(t);s(this,l,t),p(this,A,q).call(this),r(this,v)&&this.close()}}get subscribers(){return r(this,u)}get entry(){return{current:r(this,l),previous:r(this,g)}}addMiddleware(t){r(this,c)||s(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||s(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||C(this)}reset(){this.current=Array.isArray(this.initial)?[...this.initial]:this.initial}close(){r(this,u).clear(),C(this)}}y=new WeakMap,m=new WeakMap,g=new WeakMap,l=new WeakMap,o=new WeakMap,u=new WeakMap,b=new WeakMap,c=new WeakMap,v=new WeakMap,w=new WeakMap,A=new WeakSet,q=function(){for(const t of r(this,u))t(this.entry)};const n=new j([],{invisible:!0});function J(i){n.current.includes(i)||(n.current=[...n.current,i])}function C(i){n.current.includes(i)&&(n.current=n.current.filter(t=>t!==i))}exports.Store=j;exports.activeStores=n;exports.storeRegistry=E;
|
package/lib/Store-BI2xxXOA.js
DELETED
|
@@ -1,156 +0,0 @@
|
|
|
1
|
-
var p = (i, t, e) => {
|
|
2
|
-
if (!t.has(i))
|
|
3
|
-
throw TypeError("Cannot " + e);
|
|
4
|
-
};
|
|
5
|
-
var r = (i, t, e) => (p(i, t, "read from private field"), e ? e.call(i) : t.get(i)), a = (i, t, e) => {
|
|
6
|
-
if (t.has(i))
|
|
7
|
-
throw TypeError("Cannot add the same private member more than once");
|
|
8
|
-
t instanceof WeakSet ? t.add(i) : t.set(i, e);
|
|
9
|
-
}, s = (i, t, e, h) => (p(i, t, "write to private field"), h ? h.call(i, e) : t.set(i, e), e);
|
|
10
|
-
var C = (i, t, e) => (p(i, t, "access private method"), e);
|
|
11
|
-
import { i as z } from "./browser-0zX67oeU.js";
|
|
12
|
-
var f, d, S;
|
|
13
|
-
class M {
|
|
14
|
-
constructor() {
|
|
15
|
-
a(this, f, null);
|
|
16
|
-
a(this, d, "");
|
|
17
|
-
a(this, S, "");
|
|
18
|
-
z && (s(this, d, document.documentElement.getAttribute("data-project") || "unnamed"), s(this, S, r(this, d) ? r(this, d) + "-store-registry" : "store-registry"));
|
|
19
|
-
}
|
|
20
|
-
get projectName() {
|
|
21
|
-
return r(this, d);
|
|
22
|
-
}
|
|
23
|
-
get localStoreRegistryName() {
|
|
24
|
-
return r(this, S);
|
|
25
|
-
}
|
|
26
|
-
get loadedState() {
|
|
27
|
-
return r(this, f);
|
|
28
|
-
}
|
|
29
|
-
saveState() {
|
|
30
|
-
const t = this.getState(), e = JSON.stringify(t);
|
|
31
|
-
localStorage.setItem(r(this, S), e);
|
|
32
|
-
}
|
|
33
|
-
loadState(t = localStorage.getItem(
|
|
34
|
-
r(this, S)
|
|
35
|
-
)) {
|
|
36
|
-
t && (typeof t == "string" ? s(this, f, JSON.parse(t)) : s(this, f, t), l.current.forEach((e) => {
|
|
37
|
-
e.passport && this.updateStore(e);
|
|
38
|
-
}));
|
|
39
|
-
}
|
|
40
|
-
resetState() {
|
|
41
|
-
l.current.forEach((t) => {
|
|
42
|
-
t.passport && t.reset();
|
|
43
|
-
}), this.saveState();
|
|
44
|
-
}
|
|
45
|
-
updateStore(t) {
|
|
46
|
-
var h, N;
|
|
47
|
-
if (!Array.isArray((h = r(this, f)) == null ? void 0 : h.stores))
|
|
48
|
-
return t;
|
|
49
|
-
const e = t.passport;
|
|
50
|
-
if (e) {
|
|
51
|
-
const k = (N = r(this, f)) == null ? void 0 : N.stores.find(
|
|
52
|
-
(j) => j.name === e.name
|
|
53
|
-
);
|
|
54
|
-
k && (t.current = k.value);
|
|
55
|
-
}
|
|
56
|
-
return t;
|
|
57
|
-
}
|
|
58
|
-
getState() {
|
|
59
|
-
const t = {
|
|
60
|
-
stores: []
|
|
61
|
-
};
|
|
62
|
-
return l.current.forEach((e) => {
|
|
63
|
-
e.passport && (t.stores.find((h) => h.name === e.passport.name) || t.stores.push({
|
|
64
|
-
value: e.current,
|
|
65
|
-
name: e.passport.name
|
|
66
|
-
}));
|
|
67
|
-
}), t;
|
|
68
|
-
}
|
|
69
|
-
}
|
|
70
|
-
f = new WeakMap(), d = new WeakMap(), S = new WeakMap();
|
|
71
|
-
const q = new M();
|
|
72
|
-
var m, y, g, u, b, n, o, c, v, w, A, R;
|
|
73
|
-
class I {
|
|
74
|
-
constructor(t, e) {
|
|
75
|
-
a(this, A);
|
|
76
|
-
a(this, m, void 0);
|
|
77
|
-
a(this, y, void 0);
|
|
78
|
-
a(this, g, void 0);
|
|
79
|
-
a(this, u, void 0);
|
|
80
|
-
a(this, b, void 0);
|
|
81
|
-
a(this, n, /* @__PURE__ */ new Set());
|
|
82
|
-
a(this, o, void 0);
|
|
83
|
-
a(this, c, void 0);
|
|
84
|
-
a(this, v, void 0);
|
|
85
|
-
a(this, w, void 0);
|
|
86
|
-
s(this, m, e == null ? void 0 : e.passport), s(this, y, t), s(this, g, void 0), s(this, u, t), s(this, b, (e == null ? void 0 : e.equalityCheck) || ((h, N) => h === N)), e != null && e.validate && this.addMiddleware(e.validate), s(this, v, (e == null ? void 0 : e.notifyAndClose) || !1), s(this, w, (e == null ? void 0 : e.invisible) || !1), s(this, o, (e == null ? void 0 : e.skipSubscribeNotification) || !1), r(this, m) && q.updateStore(this);
|
|
87
|
-
}
|
|
88
|
-
get passport() {
|
|
89
|
-
return r(this, m);
|
|
90
|
-
}
|
|
91
|
-
get initial() {
|
|
92
|
-
return r(this, y);
|
|
93
|
-
}
|
|
94
|
-
get previous() {
|
|
95
|
-
return r(this, g);
|
|
96
|
-
}
|
|
97
|
-
get current() {
|
|
98
|
-
return r(this, u);
|
|
99
|
-
}
|
|
100
|
-
set current(t) {
|
|
101
|
-
if (!r(this, b).call(this, r(this, u), t)) {
|
|
102
|
-
if (s(this, g, r(this, u)), r(this, c))
|
|
103
|
-
for (const e of r(this, c))
|
|
104
|
-
t = e(t);
|
|
105
|
-
s(this, u, t), C(this, A, R).call(this), r(this, v) && this.close();
|
|
106
|
-
}
|
|
107
|
-
}
|
|
108
|
-
get subscribers() {
|
|
109
|
-
return r(this, n);
|
|
110
|
-
}
|
|
111
|
-
get entry() {
|
|
112
|
-
return {
|
|
113
|
-
current: r(this, u),
|
|
114
|
-
previous: r(this, g)
|
|
115
|
-
};
|
|
116
|
-
}
|
|
117
|
-
addMiddleware(t) {
|
|
118
|
-
r(this, c) || s(this, c, /* @__PURE__ */ new Set()), r(this, c).add(t);
|
|
119
|
-
}
|
|
120
|
-
removeMiddleware(t) {
|
|
121
|
-
var e, h;
|
|
122
|
-
(e = r(this, c)) == null || e.delete(t), (h = r(this, c)) != null && h.size || s(this, c, void 0);
|
|
123
|
-
}
|
|
124
|
-
subscribe(t) {
|
|
125
|
-
return !r(this, w) && !r(this, n).size && J(this), r(this, n).add(t), r(this, o) || t(this.entry), () => {
|
|
126
|
-
this.unsubscribe(t);
|
|
127
|
-
};
|
|
128
|
-
}
|
|
129
|
-
unsubscribe(t) {
|
|
130
|
-
r(this, n).delete(t), r(this, n).size || E(this);
|
|
131
|
-
}
|
|
132
|
-
reset() {
|
|
133
|
-
this.current = Array.isArray(this.initial) ? [...this.initial] : this.initial;
|
|
134
|
-
}
|
|
135
|
-
close() {
|
|
136
|
-
r(this, n).clear(), E(this);
|
|
137
|
-
}
|
|
138
|
-
}
|
|
139
|
-
m = new WeakMap(), y = new WeakMap(), g = new WeakMap(), u = new WeakMap(), b = new WeakMap(), n = new WeakMap(), o = new WeakMap(), c = new WeakMap(), v = new WeakMap(), w = new WeakMap(), A = new WeakSet(), R = function() {
|
|
140
|
-
for (const t of r(this, n))
|
|
141
|
-
t(this.entry);
|
|
142
|
-
};
|
|
143
|
-
const l = new I([], {
|
|
144
|
-
invisible: !0
|
|
145
|
-
});
|
|
146
|
-
function J(i) {
|
|
147
|
-
l.current.includes(i) || (l.current = [...l.current, i]);
|
|
148
|
-
}
|
|
149
|
-
function E(i) {
|
|
150
|
-
l.current.includes(i) && (l.current = l.current.filter((t) => t !== i));
|
|
151
|
-
}
|
|
152
|
-
export {
|
|
153
|
-
I as S,
|
|
154
|
-
l as a,
|
|
155
|
-
q as s
|
|
156
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const n=require("./globals-bYKki-b9.cjs");function o(e){n.currentComponentElement.value.addDisconnectCallback(e)}function c(e){const t=typeof e=="function"?e(n.currentComponentElement.value):e;return n.currentComponentElement&&o(()=>t.close()),t}exports._createStore=c;exports.onDisconnect=o;
|
package/lib/globals-DMjysUXI.js
DELETED
package/lib/globals-bYKki-b9.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const t={value:null},n={value:null},e={value:[]};exports.contextStack=e;exports.currentComponentElement=t;exports.nextComponentAttributes=n;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";var L=Object.defineProperty,S=Object.defineProperties;var q=Object.getOwnPropertyDescriptors;var k=Object.getOwnPropertySymbols;var T=Object.prototype.hasOwnProperty,_=Object.prototype.propertyIsEnumerable;var w=(t,e,n)=>e in t?L(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,i=(t,e)=>{for(var n in e||(e={}))T.call(e,n)&&w(t,n,e[n]);if(k)for(var n of k(e))_.call(e,n)&&w(t,n,e[n]);return t},g=(t,e)=>S(t,q(e));var F=(t,e,n)=>{if(!e.has(t))throw TypeError("Cannot "+n)};var c=(t,e,n)=>(F(t,e,"read from private field"),n?n.call(t):e.get(t)),h=(t,e,n)=>{if(e.has(t))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(t):e.set(t,n)};const p=require("./ElementConstructor-CAZ2ra8m.cjs"),M=require("./string-DhgS_iFl.cjs"),r=require("./globals-bYKki-b9.cjs");require("./Store-6s0YXK4o.cjs");var E,u,d,m,C;class R extends HTMLElement{constructor(n){var l;super();h(this,E,new Set);h(this,u,new Set);h(this,d,new Map);h(this,m,()=>{r.contextStack.value.push(c(this,d))});h(this,C,()=>{r.contextStack.value=r.contextStack.value.filter(n=>n!==c(this,d))});const o=r.currentComponentElement.value;r.currentComponentElement.value=this,c(this,m).call(this);const a=n==null?void 0:n.tag(i({},n.attributes)),s=(l=r.nextComponentAttributes.value)!=null&&l.lightChildren?"lightChildren":"children";new p.ElementConstructor(this,g(i({},r.nextComponentAttributes.value),{[s]:a})),r.currentComponentElement.value=o,r.nextComponentAttributes.value=null,c(this,C).call(this)}addConnectCallback(n){c(this,E).add(n)}addDisconnectCallback(n){c(this,u).add(n)}createContext(n,o){c(this,d).set(n,o)}connectedCallback(){r.currentComponentElement.value=this,c(this,E).forEach(n=>{const o=n(this);o&&c(this,u).add(o)}),r.currentComponentElement.value=null,this.addEventListener("beforeChildrenChange",c(this,m)),this.addEventListener("afterChildrenChange",c(this,C))}disconnectedCallback(){c(this,u).forEach(n=>{n(this)}),this.removeEventListener("beforeChildrenChange",c(this,m)),this.removeEventListener("afterChildrenChange",c(this,C))}}E=new WeakMap,u=new WeakMap,d=new WeakMap,m=new WeakMap,C=new WeakMap;function y(t,e,...n){var s;n=n.flat().filter(l=>l!=null);const o=[],a=[];if(e=e||{},o.push(...n.reverse()),typeof t=="function"){if(t===v)return v(n);e.children=o.reverse();const l={noCustomElement:t.noCustomElement,onlyRegister:e.__register};if(e==null||delete e.__register,l.noCustomElement)return t(i({},e));const x=`e-${M.camelToKebab(t.name)}`;let f=customElements.get(x);return f||(f=(s=class extends R{constructor(A){super(l.onlyRegister?{tag:t,attributes:e}:A)}},s.formAssociated=t.formAssociated,s),customElements.define(x,f)),l.onlyRegister?f:new f({tag:t,attributes:e})}for(;o.length;){const l=o.pop();Array.isArray(l)?o.push(...l):l!=null&&a.push(l)}if(t==="component"){const l=v(a);return r.nextComponentAttributes.value=e,l.node}else{const l=e!=null&&e.lightChildren?"lightChildren":"children";return e==null||delete e.children,t?new p.ElementConstructor(t,g(i({},e),{[l]:a})):null}}function v(t){return new p.ElementConstructor(document.createDocumentFragment(),{children:t})}function D(t,e){const n=e==null?void 0:e.children,o=e==null?void 0:e.attributes;return y(t,i({},o),n)}exports.Fragment=v;exports.h=y;exports.instantiate=D;
|