@mgdis/stencil-helpers 2.2.6 → 3.1.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/README.md +3 -5
- package/dist/components/index.d.ts +87 -1
- package/dist/components/index.d.ts.map +1 -1
- package/dist/index.es.js +790 -478
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +24 -7
- package/dist/index.umd.js.map +1 -1
- package/dist/storybook/index.d.ts +6 -5
- package/dist/storybook/index.d.ts.map +1 -1
- package/package.json +11 -10
package/dist/index.es.js
CHANGED
|
@@ -1,216 +1,343 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
1
|
+
var Ue = Object.defineProperty;
|
|
2
|
+
var fe = (e) => {
|
|
3
3
|
throw TypeError(e);
|
|
4
4
|
};
|
|
5
|
-
var
|
|
6
|
-
var
|
|
7
|
-
var
|
|
8
|
-
const
|
|
9
|
-
const
|
|
10
|
-
crypto.getRandomValues(
|
|
11
|
-
const
|
|
12
|
-
return e !== "" ? `${e}-${
|
|
13
|
-
},
|
|
14
|
-
class
|
|
5
|
+
var Ze = (e, t, r) => t in e ? Ue(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r;
|
|
6
|
+
var $ = (e, t, r) => Ze(e, typeof t != "symbol" ? t + "" : t, r), ue = (e, t, r) => t.has(e) || fe("Cannot " + r);
|
|
7
|
+
var v = (e, t, r) => (ue(e, t, "read from private field"), r ? r.call(e) : t.get(e)), j = (e, t, r) => t.has(e) ? fe("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(e) : t.set(e, r), U = (e, t, r, s) => (ue(e, t, "write to private field"), s ? s.call(e, r) : t.set(e, r), r);
|
|
8
|
+
const Pt = (e = "", t = 10) => {
|
|
9
|
+
const r = new Uint8Array(t);
|
|
10
|
+
crypto.getRandomValues(r);
|
|
11
|
+
const s = Array.from(r).map((n) => n.toString(16).padStart(2, "0")).join("").slice(0, t);
|
|
12
|
+
return e !== "" ? `${e}-${s}` : s;
|
|
13
|
+
}, Ut = (e) => De(e) && /^([a-z][a-z0-9]*)(-[a-z0-9]+)*$/.exec(e) !== null;
|
|
14
|
+
class Zt {
|
|
15
15
|
constructor(t = []) {
|
|
16
16
|
/**
|
|
17
17
|
* Available classes
|
|
18
18
|
*/
|
|
19
|
-
|
|
19
|
+
$(this, "classes");
|
|
20
20
|
/**
|
|
21
21
|
* Add class
|
|
22
22
|
* @param className - class name to add
|
|
23
23
|
*/
|
|
24
|
-
|
|
24
|
+
$(this, "add", (t) => {
|
|
25
25
|
this.has(t) || this.classes.push(t);
|
|
26
26
|
});
|
|
27
27
|
/**
|
|
28
28
|
* Delete class
|
|
29
29
|
* @param className - class name to delete
|
|
30
30
|
*/
|
|
31
|
-
|
|
32
|
-
const
|
|
33
|
-
|
|
31
|
+
$(this, "delete", (t) => {
|
|
32
|
+
const r = this.classes.indexOf(t);
|
|
33
|
+
r > -1 && this.classes.splice(r, 1);
|
|
34
34
|
});
|
|
35
35
|
/**
|
|
36
36
|
* Check if class exist in list
|
|
37
37
|
* @param className - class name to check
|
|
38
38
|
* @returns class name is in the list
|
|
39
39
|
*/
|
|
40
|
-
|
|
40
|
+
$(this, "has", (t) => this.classes.includes(t));
|
|
41
41
|
/**
|
|
42
42
|
* Join classes seperated by spaces
|
|
43
43
|
* @returns joined values
|
|
44
44
|
*/
|
|
45
|
-
|
|
45
|
+
$(this, "join", () => this.classes.join(" "));
|
|
46
46
|
this.classes = t;
|
|
47
47
|
}
|
|
48
48
|
}
|
|
49
|
-
const
|
|
50
|
-
const t =
|
|
51
|
-
return [e, ...t, ...
|
|
52
|
-
},
|
|
49
|
+
const Dt = (e) => Array.isArray(e) && e.every((t) => typeof t == "string"), qt = (e, t) => t.includes(e == null ? void 0 : e.tagName.toLowerCase()), Ht = 'a[href], button, input, textarea, select, details, [tabindex]:not([tabindex="-1"]), [identifier], mg-button', Bt = (e) => {
|
|
50
|
+
const t = _e(e), r = ve(e);
|
|
51
|
+
return [e, ...t, ...r];
|
|
52
|
+
}, _e = (e, t = []) => {
|
|
53
53
|
if (e.self !== e.top)
|
|
54
54
|
try {
|
|
55
|
-
const
|
|
56
|
-
return
|
|
57
|
-
} catch (
|
|
58
|
-
return console.error("Different hosts between iframes:",
|
|
55
|
+
const r = e.parent;
|
|
56
|
+
return r ? (t.push(r), _e(r, t)) : t;
|
|
57
|
+
} catch (r) {
|
|
58
|
+
return console.error("Different hosts between iframes:", r), t;
|
|
59
59
|
}
|
|
60
60
|
return t;
|
|
61
|
-
},
|
|
61
|
+
}, ve = (e, t = []) => {
|
|
62
62
|
if (e.frames.length > 0)
|
|
63
|
-
for (const
|
|
64
|
-
t.push(
|
|
63
|
+
for (const r of Array.from(e.frames))
|
|
64
|
+
t.push(r), ve(r, t);
|
|
65
65
|
return t;
|
|
66
|
-
},
|
|
67
|
-
|
|
66
|
+
}, De = (e) => typeof e == "string" && e.trim() !== "", Gt = (e) => typeof e == "object" ? JSON.stringify(e) : `${e}`, Wt = (e) => typeof e == "number" && !Number.isNaN(e), Jt = (e) => typeof e == "string" ? e.toLocaleLowerCase().normalize("NFD").replaceAll(/[\u0300-\u036f]/g, "") : e, Xt = async (e) => {
|
|
67
|
+
if (e) return e();
|
|
68
|
+
}, ie = (e) => typeof e == "object" && !Array.isArray(e) && e !== null, qe = (e, t, r) => {
|
|
69
|
+
const s = ".";
|
|
70
|
+
if (!ie(e) || typeof t != "string")
|
|
71
|
+
return r;
|
|
72
|
+
const [n, ...i] = t.split(s);
|
|
73
|
+
return i.length ? qe(e[n], i.join(s)) : e[n];
|
|
74
|
+
}, Kt = {
|
|
75
|
+
FIRST: "first",
|
|
76
|
+
NEXT: "next",
|
|
77
|
+
PREVIOUS: "previous",
|
|
78
|
+
LAST: "last"
|
|
79
|
+
}, we = 10;
|
|
80
|
+
class He {
|
|
81
|
+
constructor(t) {
|
|
82
|
+
/**
|
|
83
|
+
* Define items
|
|
84
|
+
*/
|
|
85
|
+
$(this, "items", []);
|
|
86
|
+
/**
|
|
87
|
+
* Define total
|
|
88
|
+
*/
|
|
89
|
+
$(this, "total");
|
|
90
|
+
/**
|
|
91
|
+
* Define top
|
|
92
|
+
*/
|
|
93
|
+
$(this, "top", we);
|
|
94
|
+
/**
|
|
95
|
+
* Define next
|
|
96
|
+
*/
|
|
97
|
+
$(this, "next");
|
|
98
|
+
/**
|
|
99
|
+
* Define base index
|
|
100
|
+
*/
|
|
101
|
+
$(this, "baseIndex", 1);
|
|
102
|
+
/**
|
|
103
|
+
* Get index of items from cursor
|
|
104
|
+
* @param cursor - cursor to find
|
|
105
|
+
* @param oldItem - previous item
|
|
106
|
+
* @returns item index
|
|
107
|
+
*/
|
|
108
|
+
$(this, "getIndexFromCursor", (t = "first", r) => {
|
|
109
|
+
if (!Array.isArray(this.items) || !this.items.length) return null;
|
|
110
|
+
const n = this.items.length - this.baseIndex;
|
|
111
|
+
let i = 0, a = 0;
|
|
112
|
+
if (["previous", "next"].includes(t) && r) {
|
|
113
|
+
const c = this.items.findIndex((l) => JSON.stringify(l) === JSON.stringify(r));
|
|
114
|
+
if (c === -1) return 0;
|
|
115
|
+
a = c;
|
|
116
|
+
}
|
|
117
|
+
return t === "first" ? i = 0 : t === "last" ? i = n : t === "previous" ? i = JSON.stringify(this.items[a]) === JSON.stringify(this.items[0]) ? n : a - this.baseIndex : t === "next" && (i = JSON.stringify(this.items[a]) === JSON.stringify(this.items[n]) ? 0 : a + this.baseIndex), i;
|
|
118
|
+
});
|
|
119
|
+
if (ie(t))
|
|
120
|
+
Array.isArray(t.items) && (this.items = t.items), typeof t.top == "number" && (this.top = t.top), this.total = typeof t.total == "number" ? t.total : this.items.length, this.next = t.next;
|
|
121
|
+
else
|
|
122
|
+
throw new Error("Page - init must match IPage type.");
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
var S, N, M;
|
|
126
|
+
class Yt {
|
|
127
|
+
constructor(t, r) {
|
|
128
|
+
/**
|
|
129
|
+
* Define paginated items
|
|
130
|
+
*/
|
|
131
|
+
$(this, "items", []);
|
|
132
|
+
/* Privates */
|
|
133
|
+
j(this, S, we);
|
|
134
|
+
j(this, N);
|
|
135
|
+
j(this, M);
|
|
136
|
+
/**
|
|
137
|
+
* Get page
|
|
138
|
+
* @param offset - pagiantion offset
|
|
139
|
+
* @param filter - filter methode
|
|
140
|
+
* @returns formated page
|
|
141
|
+
*/
|
|
142
|
+
$(this, "getPage", (t = 0, r) => {
|
|
143
|
+
const s = typeof r == "function" ? this.items.filter(r) : this.items;
|
|
144
|
+
let n;
|
|
145
|
+
return v(this, N) ? n = v(this, N) : s.length > t + v(this, S) && (n = () => this.getPage(t + v(this, S), r)), new He({
|
|
146
|
+
items: s.slice(t, t + v(this, S)),
|
|
147
|
+
total: v(this, M),
|
|
148
|
+
top: v(this, S),
|
|
149
|
+
next: n
|
|
150
|
+
});
|
|
151
|
+
});
|
|
152
|
+
Array.isArray(t) && (this.items = t), r && (["string", "function"].includes(typeof r.next) || ie(r.next) && URL.canParse(r.next)) && U(this, N, r.next), typeof (r == null ? void 0 : r.top) == "number" && U(this, S, r.top), typeof (r == null ? void 0 : r.total) == "number" && U(this, M, r.total);
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
S = new WeakMap(), N = new WeakMap(), M = new WeakMap();
|
|
156
|
+
var K = {
|
|
68
157
|
updatable: !0,
|
|
69
158
|
slotRelocation: !0,
|
|
70
159
|
// TODO(STENCIL-914): remove this option when `experimentalSlotFixes` is the default behavior
|
|
71
160
|
experimentalSlotFixes: !1
|
|
72
|
-
},
|
|
73
|
-
for (var
|
|
74
|
-
|
|
75
|
-
},
|
|
161
|
+
}, Be = Object.defineProperty, Ge = (e, t) => {
|
|
162
|
+
for (var r in t)
|
|
163
|
+
Be(e, r, { get: t[r], enumerable: !0 });
|
|
164
|
+
}, We = "http://www.w3.org/2000/svg", Je = "http://www.w3.org/1999/xhtml", pe = (e, t) => t in e, ge = "http://www.w3.org/1999/xlink", O = typeof window < "u" ? window : {}, z = {
|
|
76
165
|
$flags$: 0,
|
|
77
166
|
$resourcesUrl$: "",
|
|
78
167
|
jmp: (e) => e(),
|
|
79
168
|
raf: (e) => requestAnimationFrame(e),
|
|
80
|
-
ael: (e, t,
|
|
81
|
-
rel: (e, t,
|
|
169
|
+
ael: (e, t, r, s) => e.addEventListener(t, r, s),
|
|
170
|
+
rel: (e, t, r, s) => e.removeEventListener(t, r, s),
|
|
82
171
|
ce: (e, t) => new CustomEvent(e, t)
|
|
83
|
-
},
|
|
84
|
-
|
|
85
|
-
err: () =>
|
|
86
|
-
map: () =>
|
|
87
|
-
ok: () =>
|
|
88
|
-
unwrap: () =>
|
|
89
|
-
unwrapErr: () =>
|
|
172
|
+
}, Xe = (e) => e != null && e !== void 0, xe = (e) => (e = typeof e, e === "object" || e === "function"), Ke = {};
|
|
173
|
+
Ge(Ke, {
|
|
174
|
+
err: () => me,
|
|
175
|
+
map: () => Ye,
|
|
176
|
+
ok: () => V,
|
|
177
|
+
unwrap: () => Qe,
|
|
178
|
+
unwrapErr: () => Ve
|
|
90
179
|
});
|
|
91
|
-
var
|
|
180
|
+
var V = (e) => ({
|
|
92
181
|
isOk: !0,
|
|
93
182
|
isErr: !1,
|
|
94
183
|
value: e
|
|
95
|
-
}),
|
|
184
|
+
}), me = (e) => ({
|
|
96
185
|
isOk: !1,
|
|
97
186
|
isErr: !0,
|
|
98
187
|
value: e
|
|
99
188
|
});
|
|
100
|
-
function
|
|
189
|
+
function Ye(e, t) {
|
|
101
190
|
if (e.isOk) {
|
|
102
|
-
const
|
|
103
|
-
return
|
|
191
|
+
const r = t(e.value);
|
|
192
|
+
return r instanceof Promise ? r.then((s) => V(s)) : V(r);
|
|
104
193
|
}
|
|
105
194
|
if (e.isErr) {
|
|
106
|
-
const
|
|
107
|
-
return
|
|
195
|
+
const r = e.value;
|
|
196
|
+
return me(r);
|
|
108
197
|
}
|
|
109
198
|
throw "should never get here";
|
|
110
199
|
}
|
|
111
|
-
var
|
|
200
|
+
var Qe = (e) => {
|
|
112
201
|
if (e.isOk)
|
|
113
202
|
return e.value;
|
|
114
203
|
throw e.value;
|
|
115
|
-
},
|
|
204
|
+
}, Ve = (e) => {
|
|
116
205
|
if (e.isErr)
|
|
117
206
|
return e.value;
|
|
118
207
|
throw e.value;
|
|
119
|
-
},
|
|
120
|
-
const t = e
|
|
121
|
-
e.tagName && e.tagName.includes("-") && e["s-cr"] && e.tagName !== "SLOT-FB" &&
|
|
122
|
-
|
|
123
|
-
s.nodeType === 1 && s.tagName === "SLOT-FB" && ((r = Oe(s, s["s-sn"], !1)) != null && r.length ? s.hidden = !0 : s.hidden = !1);
|
|
208
|
+
}, Se = (e) => {
|
|
209
|
+
const t = de(e, "childNodes");
|
|
210
|
+
e.tagName && e.tagName.includes("-") && e["s-cr"] && e.tagName !== "SLOT-FB" && Ee(t, e.tagName).forEach((s) => {
|
|
211
|
+
s.nodeType === 1 && s.tagName === "SLOT-FB" && (tt(s, ae(s), !1).length ? s.hidden = !0 : s.hidden = !1);
|
|
124
212
|
});
|
|
125
|
-
|
|
126
|
-
|
|
213
|
+
let r = 0;
|
|
214
|
+
for (r = 0; r < t.length; r++) {
|
|
215
|
+
const s = t[r];
|
|
216
|
+
s.nodeType === 1 && de(s, "childNodes").length && Se(s);
|
|
217
|
+
}
|
|
218
|
+
}, et = (e) => {
|
|
219
|
+
const t = [];
|
|
220
|
+
for (let r = 0; r < e.length; r++) {
|
|
221
|
+
const s = e[r]["s-nr"] || void 0;
|
|
222
|
+
s && s.isConnected && t.push(s);
|
|
223
|
+
}
|
|
224
|
+
return t;
|
|
127
225
|
};
|
|
128
|
-
function
|
|
129
|
-
let
|
|
130
|
-
for (;
|
|
131
|
-
i = e[
|
|
226
|
+
function Ee(e, t, r) {
|
|
227
|
+
let s = 0, n = [], i;
|
|
228
|
+
for (; s < e.length; s++)
|
|
229
|
+
i = e[s], i["s-sr"] && (!t || i["s-hn"] === t) && r === void 0 && n.push(i), n = [...n, ...Ee(i.childNodes, t, r)];
|
|
132
230
|
return n;
|
|
133
231
|
}
|
|
134
|
-
var
|
|
135
|
-
const
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
232
|
+
var tt = (e, t, r = !0) => {
|
|
233
|
+
const s = [];
|
|
234
|
+
(r && e["s-sr"] || !e["s-sr"]) && s.push(e);
|
|
235
|
+
let n = e;
|
|
236
|
+
for (; n = n.nextSibling; )
|
|
237
|
+
ae(n) === t && (r || !n["s-sr"]) && s.push(n);
|
|
238
|
+
return s;
|
|
239
|
+
}, $e = (e, t) => e.nodeType === 1 ? e.getAttribute("slot") === null && t === "" || e.getAttribute("slot") === t : e["s-sn"] === t ? !0 : t === "", ae = (e) => typeof e["s-sn"] == "string" ? e["s-sn"] : e.nodeType === 1 && e.getAttribute("slot") || void 0;
|
|
240
|
+
function rt(e) {
|
|
241
|
+
if (e.assignedElements || e.assignedNodes || !e["s-sr"]) return;
|
|
242
|
+
const t = (r) => (function(s) {
|
|
243
|
+
const n = [], i = this["s-sn"];
|
|
244
|
+
s != null && s.flatten && console.error(`
|
|
245
|
+
Flattening is not supported for Stencil non-shadow slots.
|
|
246
|
+
You can use \`.childNodes\` to nested slot fallback content.
|
|
247
|
+
If you have a particular use case, please open an issue on the Stencil repo.
|
|
248
|
+
`);
|
|
249
|
+
const a = this["s-cr"].parentElement;
|
|
250
|
+
return (a.__childNodes ? a.childNodes : et(a.childNodes)).forEach((l) => {
|
|
251
|
+
i === ae(l) && n.push(l);
|
|
252
|
+
}), r ? n.filter(
|
|
253
|
+
(l) => l.nodeType === 1
|
|
254
|
+
/* ElementNode */
|
|
255
|
+
) : n;
|
|
256
|
+
}).bind(e);
|
|
257
|
+
e.assignedElements = t(!0), e.assignedNodes = t(!1);
|
|
258
|
+
}
|
|
259
|
+
function de(e, t) {
|
|
260
|
+
if ("__" + t in e) {
|
|
261
|
+
const r = e["__" + t];
|
|
262
|
+
return typeof r != "function" ? r : r.bind(e);
|
|
263
|
+
} else
|
|
264
|
+
return typeof e[t] != "function" ? e[t] : e[t].bind(e);
|
|
265
|
+
}
|
|
266
|
+
var st = (e, t, ...r) => {
|
|
267
|
+
let s = null, n = null, i = null, a = !1, c = !1;
|
|
268
|
+
const l = [], f = (o) => {
|
|
269
|
+
for (let g = 0; g < o.length; g++)
|
|
270
|
+
s = o[g], Array.isArray(s) ? f(s) : s != null && typeof s != "boolean" && ((a = !xe(s)) && (s = String(s)), a && c ? l[l.length - 1].$text$ += s : l.push(a ? ee(null, s) : s), c = a);
|
|
144
271
|
};
|
|
145
|
-
|
|
146
|
-
const
|
|
147
|
-
return
|
|
148
|
-
},
|
|
149
|
-
const
|
|
272
|
+
f(r);
|
|
273
|
+
const p = ee(e, null);
|
|
274
|
+
return p.$attrs$ = t, l.length > 0 && (p.$children$ = l), p.$key$ = n, p.$name$ = i, p;
|
|
275
|
+
}, ee = (e, t) => {
|
|
276
|
+
const r = {
|
|
150
277
|
$flags$: 0,
|
|
151
278
|
$tag$: e,
|
|
152
279
|
$text$: t,
|
|
153
280
|
$elm$: null,
|
|
154
281
|
$children$: null
|
|
155
282
|
};
|
|
156
|
-
return
|
|
157
|
-
},
|
|
158
|
-
if (
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
} else {
|
|
177
|
-
const $ = te(r);
|
|
178
|
-
if ((f || $ && r !== null) && !n)
|
|
179
|
-
try {
|
|
180
|
-
if (e.tagName.includes("-"))
|
|
181
|
-
e[t] !== r && (e[t] = r);
|
|
182
|
-
else {
|
|
183
|
-
const l = r ?? "";
|
|
184
|
-
t === "list" ? f = !1 : (s == null || e[t] != l) && (typeof e.__lookupSetter__(t) == "function" ? e[t] = l : e.setAttribute(t, l));
|
|
185
|
-
}
|
|
186
|
-
} catch {
|
|
187
|
-
}
|
|
188
|
-
let u = !1;
|
|
189
|
-
c !== (c = c.replace(/^xlink\:?/, "")) && (t = c, u = !0), r == null || r === !1 ? (r !== !1 || e.getAttribute(t) === "") && (u ? e.removeAttributeNS(X, t) : e.removeAttribute(t)) : (!f || i & 4 || n) && !$ && (r = r === !0 ? "" : r, u ? e.setAttributeNS(X, t, r) : e.setAttribute(t, r));
|
|
283
|
+
return r.$attrs$ = null, r.$key$ = null, r.$name$ = null, r;
|
|
284
|
+
}, nt = {}, it = (e) => e && e.$tag$ === nt, ye = (e, t, r, s, n, i, a) => {
|
|
285
|
+
if (r === s)
|
|
286
|
+
return;
|
|
287
|
+
let c = pe(e, t), l = t.toLowerCase();
|
|
288
|
+
if (t === "class") {
|
|
289
|
+
const f = e.classList, p = he(r);
|
|
290
|
+
let o = he(s);
|
|
291
|
+
f.remove(...p.filter((g) => g && !o.includes(g))), f.add(...o.filter((g) => g && !p.includes(g)));
|
|
292
|
+
} else if (t === "style") {
|
|
293
|
+
for (const f in r)
|
|
294
|
+
(!s || s[f] == null) && (f.includes("-") ? e.style.removeProperty(f) : e.style[f] = "");
|
|
295
|
+
for (const f in s)
|
|
296
|
+
(!r || s[f] !== r[f]) && (f.includes("-") ? e.style.setProperty(f, s[f]) : e.style[f] = s[f]);
|
|
297
|
+
} else if (t !== "key") if (t === "ref")
|
|
298
|
+
s && s(e);
|
|
299
|
+
else if (!e.__lookupSetter__(t) && t[0] === "o" && t[1] === "n") {
|
|
300
|
+
if (t[2] === "-" ? t = t.slice(3) : pe(O, l) ? t = l.slice(2) : t = l[2] + t.slice(3), r || s) {
|
|
301
|
+
const f = t.endsWith(Oe);
|
|
302
|
+
t = t.replace(ot, ""), r && z.rel(e, t, r, f), s && z.ael(e, t, s, f);
|
|
190
303
|
}
|
|
304
|
+
} else {
|
|
305
|
+
const f = xe(s);
|
|
306
|
+
if ((c || f && s !== null) && !n)
|
|
307
|
+
try {
|
|
308
|
+
if (e.tagName.includes("-"))
|
|
309
|
+
e[t] !== s && (e[t] = s);
|
|
310
|
+
else {
|
|
311
|
+
const o = s ?? "";
|
|
312
|
+
t === "list" ? c = !1 : (r == null || e[t] != o) && (typeof e.__lookupSetter__(t) == "function" ? e[t] = o : e.setAttribute(t, o));
|
|
313
|
+
}
|
|
314
|
+
} catch {
|
|
315
|
+
}
|
|
316
|
+
let p = !1;
|
|
317
|
+
l !== (l = l.replace(/^xlink\:?/, "")) && (t = l, p = !0), s == null || s === !1 ? (s !== !1 || e.getAttribute(t) === "") && (p ? e.removeAttributeNS(ge, t) : e.removeAttribute(t)) : (!c || i & 4 || n) && !f && e.nodeType === 1 && (s = s === !0 ? "" : s, p ? e.setAttributeNS(ge, t, s) : e.setAttribute(t, s));
|
|
191
318
|
}
|
|
192
|
-
},
|
|
193
|
-
const n = t.$elm$.nodeType === 11 && t.$elm$.host ? t.$elm$.host : t.$elm$, i = e && e.$attrs$ || {},
|
|
194
|
-
for (const
|
|
195
|
-
|
|
319
|
+
}, at = /\s/, he = (e) => (typeof e == "object" && e && "baseVal" in e && (e = e.baseVal), !e || typeof e != "string" ? [] : e.split(at)), Oe = "Capture", ot = new RegExp(Oe + "$"), te = (e, t, r, s) => {
|
|
320
|
+
const n = t.$elm$.nodeType === 11 && t.$elm$.host ? t.$elm$.host : t.$elm$, i = e && e.$attrs$ || {}, a = t.$attrs$ || {};
|
|
321
|
+
for (const c of be(Object.keys(i)))
|
|
322
|
+
c in a || ye(
|
|
196
323
|
n,
|
|
197
|
-
|
|
198
|
-
i[
|
|
324
|
+
c,
|
|
325
|
+
i[c],
|
|
199
326
|
void 0,
|
|
200
|
-
|
|
327
|
+
r,
|
|
201
328
|
t.$flags$
|
|
202
329
|
);
|
|
203
|
-
for (const
|
|
204
|
-
|
|
330
|
+
for (const c of be(Object.keys(a)))
|
|
331
|
+
ye(
|
|
205
332
|
n,
|
|
206
|
-
|
|
207
|
-
i[
|
|
208
|
-
|
|
209
|
-
|
|
333
|
+
c,
|
|
334
|
+
i[c],
|
|
335
|
+
a[c],
|
|
336
|
+
r,
|
|
210
337
|
t.$flags$
|
|
211
338
|
);
|
|
212
339
|
};
|
|
213
|
-
function
|
|
340
|
+
function be(e) {
|
|
214
341
|
return e.includes("ref") ? (
|
|
215
342
|
// we need to sort these to ensure that `'ref'` is the last attr
|
|
216
343
|
[...e.filter((t) => t !== "ref"), "ref"]
|
|
@@ -219,11 +346,11 @@ function Q(e) {
|
|
|
219
346
|
e
|
|
220
347
|
);
|
|
221
348
|
}
|
|
222
|
-
var
|
|
223
|
-
var
|
|
224
|
-
const n = t.$children$[
|
|
225
|
-
let i = 0,
|
|
226
|
-
if (
|
|
349
|
+
var D, B, I, re = !1, G = !1, oe = !1, b = !1, W = (e, t, r) => {
|
|
350
|
+
var s;
|
|
351
|
+
const n = t.$children$[r];
|
|
352
|
+
let i = 0, a, c, l;
|
|
353
|
+
if (re || (oe = !0, n.$tag$ === "slot" && (n.$flags$ |= n.$children$ ? (
|
|
227
354
|
// slot element has fallback content
|
|
228
355
|
// still create an element that "mocks" the slot element
|
|
229
356
|
2
|
|
@@ -233,308 +360,488 @@ var M, N, E, F = !1, H = !1, I = !1, v = !1, D = (e, t, s) => {
|
|
|
233
360
|
// where actual slot content should sit next to
|
|
234
361
|
1
|
|
235
362
|
))), n.$text$ !== null)
|
|
236
|
-
|
|
363
|
+
a = n.$elm$ = O.document.createTextNode(n.$text$);
|
|
237
364
|
else if (n.$flags$ & 1)
|
|
238
|
-
|
|
365
|
+
a = n.$elm$ = O.document.createTextNode(""), te(null, n, b);
|
|
239
366
|
else {
|
|
240
|
-
if (
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
367
|
+
if (b || (b = n.$tag$ === "svg"), !O.document)
|
|
368
|
+
throw new Error(
|
|
369
|
+
"You are trying to render a Stencil component in an environment that doesn't support the DOM. Make sure to populate the [`window`](https://developer.mozilla.org/en-US/docs/Web/API/Window/window) object before rendering a component."
|
|
370
|
+
);
|
|
371
|
+
if (a = n.$elm$ = O.document.createElementNS(
|
|
372
|
+
b ? We : Je,
|
|
373
|
+
!re && K.slotRelocation && n.$flags$ & 2 ? "slot-fb" : n.$tag$
|
|
374
|
+
), b && n.$tag$ === "foreignObject" && (b = !1), te(null, n, b), Xe(D) && a["s-si"] !== D && a.classList.add(a["s-si"] = D), n.$children$)
|
|
244
375
|
for (i = 0; i < n.$children$.length; ++i)
|
|
245
|
-
|
|
246
|
-
n.$tag$ === "svg" ?
|
|
376
|
+
c = W(e, n, i), c && a.appendChild(c);
|
|
377
|
+
n.$tag$ === "svg" ? b = !1 : a.tagName === "foreignObject" && (b = !0);
|
|
247
378
|
}
|
|
248
|
-
return
|
|
249
|
-
},
|
|
250
|
-
|
|
251
|
-
const
|
|
252
|
-
e["s-sr"] &&
|
|
253
|
-
for (let
|
|
254
|
-
const n = s
|
|
255
|
-
n["s-hn"] !==
|
|
379
|
+
return a["s-hn"] = I, n.$flags$ & 3 && (a["s-sr"] = !0, a["s-cr"] = B, a["s-sn"] = n.$name$ || "", a["s-rf"] = (s = n.$attrs$) == null ? void 0 : s.ref, rt(a), l = e && e.$children$ && e.$children$[r], l && l.$tag$ === n.$tag$ && e.$elm$ && L(e.$elm$, !1), Re(B, a, t.$elm$, e == null ? void 0 : e.$elm$)), a;
|
|
380
|
+
}, L = (e, t) => {
|
|
381
|
+
z.$flags$ |= 1;
|
|
382
|
+
const r = Array.from(e.__childNodes || e.childNodes);
|
|
383
|
+
e["s-sr"] && K.experimentalSlotFixes;
|
|
384
|
+
for (let s = r.length - 1; s >= 0; s--) {
|
|
385
|
+
const n = r[s];
|
|
386
|
+
n["s-hn"] !== I && n["s-ol"] && (T(F(n).parentNode, n, F(n)), n["s-ol"].remove(), n["s-ol"] = void 0, n["s-sh"] = void 0, oe = !0), t && L(n, t);
|
|
256
387
|
}
|
|
257
|
-
|
|
258
|
-
},
|
|
259
|
-
let
|
|
260
|
-
for (
|
|
261
|
-
|
|
262
|
-
},
|
|
263
|
-
for (let
|
|
264
|
-
const n = e[
|
|
388
|
+
z.$flags$ &= -2;
|
|
389
|
+
}, Ae = (e, t, r, s, n, i) => {
|
|
390
|
+
let a = e["s-cr"] && e["s-cr"].parentNode || e, c;
|
|
391
|
+
for (a.shadowRoot && a.tagName === I && (a = a.shadowRoot); n <= i; ++n)
|
|
392
|
+
s[n] && (c = W(null, r, n), c && (s[n].$elm$ = c, T(a, c, F(t))));
|
|
393
|
+
}, ke = (e, t, r) => {
|
|
394
|
+
for (let s = t; s <= r; ++s) {
|
|
395
|
+
const n = e[s];
|
|
265
396
|
if (n) {
|
|
266
397
|
const i = n.$elm$;
|
|
267
|
-
|
|
398
|
+
je(n), i && (G = !0, i["s-ol"] ? i["s-ol"].remove() : L(i, !0), i.remove());
|
|
268
399
|
}
|
|
269
400
|
}
|
|
270
|
-
},
|
|
271
|
-
let i = 0,
|
|
272
|
-
for (; i <=
|
|
273
|
-
if (
|
|
274
|
-
|
|
275
|
-
else if (
|
|
276
|
-
|
|
277
|
-
else if (
|
|
278
|
-
|
|
279
|
-
else if (
|
|
280
|
-
|
|
281
|
-
else if (
|
|
282
|
-
|
|
283
|
-
else if (
|
|
284
|
-
|
|
285
|
-
else if (
|
|
286
|
-
(
|
|
287
|
-
else if (
|
|
288
|
-
(
|
|
401
|
+
}, lt = (e, t, r, s, n = !1) => {
|
|
402
|
+
let i = 0, a = 0, c = 0, l = 0, f = t.length - 1, p = t[0], o = t[f], g = s.length - 1, u = s[0], d = s[g], h, _;
|
|
403
|
+
for (; i <= f && a <= g; )
|
|
404
|
+
if (p == null)
|
|
405
|
+
p = t[++i];
|
|
406
|
+
else if (o == null)
|
|
407
|
+
o = t[--f];
|
|
408
|
+
else if (u == null)
|
|
409
|
+
u = s[++a];
|
|
410
|
+
else if (d == null)
|
|
411
|
+
d = s[--g];
|
|
412
|
+
else if (Z(p, u, n))
|
|
413
|
+
R(p, u, n), p = t[++i], u = s[++a];
|
|
414
|
+
else if (Z(o, d, n))
|
|
415
|
+
R(o, d, n), o = t[--f], d = s[--g];
|
|
416
|
+
else if (Z(p, d, n))
|
|
417
|
+
(p.$tag$ === "slot" || d.$tag$ === "slot") && L(p.$elm$.parentNode, !1), R(p, d, n), T(e, p.$elm$, o.$elm$.nextSibling), p = t[++i], d = s[--g];
|
|
418
|
+
else if (Z(o, u, n))
|
|
419
|
+
(p.$tag$ === "slot" || d.$tag$ === "slot") && L(o.$elm$.parentNode, !1), R(o, u, n), T(e, o.$elm$, p.$elm$), o = t[--f], u = s[++a];
|
|
289
420
|
else {
|
|
290
|
-
for (
|
|
291
|
-
if (t[
|
|
292
|
-
|
|
421
|
+
for (c = -1, l = i; l <= f; ++l)
|
|
422
|
+
if (t[l] && t[l].$key$ !== null && t[l].$key$ === u.$key$) {
|
|
423
|
+
c = l;
|
|
293
424
|
break;
|
|
294
425
|
}
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
426
|
+
c >= 0 ? (_ = t[c], _.$tag$ !== u.$tag$ ? h = W(t && t[a], r, c) : (R(_, u, n), t[c] = void 0, h = _.$elm$), u = s[++a]) : (h = W(t && t[a], r, a), u = s[++a]), h && T(
|
|
427
|
+
F(p.$elm$).parentNode,
|
|
428
|
+
h,
|
|
429
|
+
F(p.$elm$)
|
|
299
430
|
);
|
|
300
431
|
}
|
|
301
|
-
i >
|
|
432
|
+
i > f ? Ae(
|
|
302
433
|
e,
|
|
303
|
-
|
|
304
|
-
s,
|
|
434
|
+
s[g + 1] == null ? null : s[g + 1].$elm$,
|
|
305
435
|
r,
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
436
|
+
s,
|
|
437
|
+
a,
|
|
438
|
+
g
|
|
439
|
+
) : a > g && ke(t, i, f);
|
|
440
|
+
}, Z = (e, t, r = !1) => e.$tag$ === t.$tag$ ? e.$tag$ === "slot" ? e.$name$ === t.$name$ : r ? (r && !e.$key$ && t.$key$ && (e.$key$ = t.$key$), !0) : e.$key$ === t.$key$ : !1, F = (e) => e && e["s-ol"] || e, R = (e, t, r = !1) => {
|
|
441
|
+
const s = t.$elm$ = e.$elm$, n = e.$children$, i = t.$children$, a = t.$tag$, c = t.$text$;
|
|
442
|
+
let l;
|
|
443
|
+
c === null ? (b = a === "svg" ? !0 : a === "foreignObject" ? !1 : b, te(e, t, b), n !== null && i !== null ? lt(s, n, t, i, r) : i !== null ? (e.$text$ !== null && (s.textContent = ""), Ae(s, null, t, i, 0, i.length - 1)) : (
|
|
313
444
|
// don't do this on initial render as it can cause non-hydrated content to be removed
|
|
314
|
-
!
|
|
315
|
-
),
|
|
316
|
-
},
|
|
317
|
-
let t,
|
|
445
|
+
!r && K.updatable && n !== null && ke(n, 0, n.length - 1)
|
|
446
|
+
), b && a === "svg" && (b = !1)) : (l = s["s-cr"]) ? l.parentNode.textContent = c : e.$text$ !== c && (s.data = c);
|
|
447
|
+
}, x = [], Te = (e) => {
|
|
448
|
+
let t, r, s;
|
|
318
449
|
const n = e.__childNodes || e.childNodes;
|
|
319
450
|
for (const i of n) {
|
|
320
451
|
if (i["s-sr"] && (t = i["s-cr"]) && t.parentNode) {
|
|
321
|
-
|
|
322
|
-
const
|
|
323
|
-
for (
|
|
324
|
-
if (t = s
|
|
325
|
-
if (
|
|
326
|
-
let
|
|
327
|
-
|
|
452
|
+
r = t.parentNode.__childNodes || t.parentNode.childNodes;
|
|
453
|
+
const a = i["s-sn"];
|
|
454
|
+
for (s = r.length - 1; s >= 0; s--)
|
|
455
|
+
if (t = r[s], !t["s-cn"] && !t["s-nr"] && t["s-hn"] !== i["s-hn"])
|
|
456
|
+
if ($e(t, a)) {
|
|
457
|
+
let c = x.find((l) => l.$nodeToRelocate$ === t);
|
|
458
|
+
G = !0, t["s-sn"] = t["s-sn"] || a, c ? (c.$nodeToRelocate$["s-sh"] = i["s-hn"], c.$slotRefNode$ = i) : (t["s-sh"] = i["s-hn"], x.push({
|
|
328
459
|
$slotRefNode$: i,
|
|
329
460
|
$nodeToRelocate$: t
|
|
330
|
-
})), t["s-sr"] &&
|
|
331
|
-
|
|
461
|
+
})), t["s-sr"] && x.map((l) => {
|
|
462
|
+
$e(l.$nodeToRelocate$, t["s-sn"]) && (c = x.find((f) => f.$nodeToRelocate$ === t), c && !l.$slotRefNode$ && (l.$slotRefNode$ = c.$slotRefNode$));
|
|
332
463
|
});
|
|
333
|
-
} else
|
|
464
|
+
} else x.some((c) => c.$nodeToRelocate$ === t) || x.push({
|
|
334
465
|
$nodeToRelocate$: t
|
|
335
466
|
});
|
|
336
467
|
}
|
|
337
|
-
i.nodeType === 1 &&
|
|
468
|
+
i.nodeType === 1 && Te(i);
|
|
338
469
|
}
|
|
339
|
-
},
|
|
340
|
-
e.$attrs$ && e.$attrs$.ref && e.$attrs$.ref(null), e.$children$ && e.$children$.map(
|
|
341
|
-
},
|
|
342
|
-
function
|
|
343
|
-
var n;
|
|
344
|
-
let
|
|
345
|
-
if (e && typeof t["s-sn"] == "string" && t["s-sr"] && e.parentNode && e.parentNode["s-sc"] && (
|
|
346
|
-
const
|
|
347
|
-
if ((n =
|
|
348
|
-
let
|
|
349
|
-
for (;
|
|
350
|
-
if (
|
|
351
|
-
|
|
470
|
+
}, je = (e) => {
|
|
471
|
+
e.$attrs$ && e.$attrs$.ref && e.$attrs$.ref(null), e.$children$ && e.$children$.map(je);
|
|
472
|
+
}, T = (e, t, r) => (typeof t["s-sn"] == "string" && t["s-sr"] && t["s-cr"] && Re(t["s-cr"], t, e, t.parentElement), e == null ? void 0 : e.insertBefore(t, r));
|
|
473
|
+
function Re(e, t, r, s) {
|
|
474
|
+
var n, i;
|
|
475
|
+
let a;
|
|
476
|
+
if (e && typeof t["s-sn"] == "string" && t["s-sr"] && e.parentNode && e.parentNode["s-sc"] && (a = t["s-si"] || e.parentNode["s-sc"])) {
|
|
477
|
+
const c = t["s-sn"], l = t["s-hn"];
|
|
478
|
+
if ((n = r.classList) == null || n.add(a + "-s"), s && ((i = s.classList) != null && i.contains(a + "-s"))) {
|
|
479
|
+
let f = (s.__childNodes || s.childNodes)[0], p = !1;
|
|
480
|
+
for (; f; ) {
|
|
481
|
+
if (f["s-sn"] !== c && f["s-hn"] === l && f["s-sr"]) {
|
|
482
|
+
p = !0;
|
|
352
483
|
break;
|
|
353
484
|
}
|
|
354
|
-
|
|
485
|
+
f = f.nextSibling;
|
|
355
486
|
}
|
|
356
|
-
|
|
487
|
+
p || s.classList.remove(a + "-s");
|
|
357
488
|
}
|
|
358
489
|
}
|
|
359
490
|
}
|
|
360
|
-
var
|
|
361
|
-
var
|
|
362
|
-
const
|
|
363
|
-
if (
|
|
364
|
-
([
|
|
365
|
-
)),
|
|
366
|
-
for (const
|
|
367
|
-
|
|
368
|
-
|
|
491
|
+
var ct = (e, t, r = !1) => {
|
|
492
|
+
var s, n, i, a, c;
|
|
493
|
+
const l = e.$hostElement$, f = e.$cmpMeta$, p = e.$vnode$ || ee(null, null), o = it(t) ? t : st(null, null, t);
|
|
494
|
+
if (I = l.tagName, f.$attrsToReflect$ && (o.$attrs$ = o.$attrs$ || {}, f.$attrsToReflect$.map(
|
|
495
|
+
([g, u]) => o.$attrs$[u] = l[g]
|
|
496
|
+
)), r && o.$attrs$)
|
|
497
|
+
for (const g of Object.keys(o.$attrs$))
|
|
498
|
+
l.hasAttribute(g) && !["key", "ref", "style", "class"].includes(g) && (o.$attrs$[g] = l[g]);
|
|
499
|
+
o.$tag$ = null, o.$flags$ |= 4, e.$vnode$ = o, o.$elm$ = p.$elm$ = l.shadowRoot || l, D = l["s-sc"], re = !!(f.$flags$ & 1) && !(f.$flags$ & 128), B = l["s-cr"], G = !1, R(p, o, r);
|
|
369
500
|
{
|
|
370
|
-
if (
|
|
371
|
-
|
|
372
|
-
for (const
|
|
373
|
-
const
|
|
374
|
-
if (!
|
|
375
|
-
const
|
|
376
|
-
|
|
501
|
+
if (z.$flags$ |= 1, oe) {
|
|
502
|
+
Te(o.$elm$);
|
|
503
|
+
for (const g of x) {
|
|
504
|
+
const u = g.$nodeToRelocate$;
|
|
505
|
+
if (!u["s-ol"] && O.document) {
|
|
506
|
+
const d = O.document.createTextNode("");
|
|
507
|
+
d["s-nr"] = u, T(u.parentNode, u["s-ol"] = d, u);
|
|
377
508
|
}
|
|
378
509
|
}
|
|
379
|
-
for (const
|
|
380
|
-
const
|
|
381
|
-
if (
|
|
382
|
-
const
|
|
383
|
-
let
|
|
510
|
+
for (const g of x) {
|
|
511
|
+
const u = g.$nodeToRelocate$, d = g.$slotRefNode$;
|
|
512
|
+
if (d) {
|
|
513
|
+
const h = d.parentNode;
|
|
514
|
+
let _ = d.nextSibling;
|
|
384
515
|
{
|
|
385
|
-
let
|
|
386
|
-
for (;
|
|
387
|
-
let
|
|
388
|
-
if (
|
|
389
|
-
for (
|
|
390
|
-
|
|
391
|
-
if (!
|
|
392
|
-
|
|
516
|
+
let E = (s = u["s-ol"]) == null ? void 0 : s.previousSibling;
|
|
517
|
+
for (; E; ) {
|
|
518
|
+
let y = (n = E["s-nr"]) != null ? n : null;
|
|
519
|
+
if (y && y["s-sn"] === u["s-sn"] && h === (y.__parentNode || y.parentNode)) {
|
|
520
|
+
for (y = y.nextSibling; y === u || y != null && y["s-sr"]; )
|
|
521
|
+
y = y == null ? void 0 : y.nextSibling;
|
|
522
|
+
if (!y || !y["s-nr"]) {
|
|
523
|
+
_ = y;
|
|
393
524
|
break;
|
|
394
525
|
}
|
|
395
526
|
}
|
|
396
|
-
|
|
527
|
+
E = E.previousSibling;
|
|
397
528
|
}
|
|
398
529
|
}
|
|
399
|
-
const
|
|
400
|
-
(!
|
|
530
|
+
const C = u.__parentNode || u.parentNode, P = u.__nextSibling || u.nextSibling;
|
|
531
|
+
(!_ && h !== C || P !== _) && u !== _ && (!u["s-hn"] && u["s-ol"] && (u["s-hn"] = u["s-ol"].parentNode.nodeName), T(h, u, _), u.nodeType === 1 && u.tagName !== "SLOT-FB" && (u.hidden = (i = u["s-ih"]) != null ? i : !1)), u && typeof d["s-rf"] == "function" && d["s-rf"](d);
|
|
401
532
|
} else
|
|
402
|
-
|
|
533
|
+
u.nodeType === 1 && (r && (u["s-ih"] = (a = u.hidden) != null ? a : !1), u.hidden = !0);
|
|
403
534
|
}
|
|
404
535
|
}
|
|
405
|
-
|
|
536
|
+
G && Se(o.$elm$), z.$flags$ &= -2, x.length = 0;
|
|
406
537
|
}
|
|
407
|
-
if (
|
|
408
|
-
const
|
|
409
|
-
for (const
|
|
410
|
-
|
|
538
|
+
if (K.experimentalScopedSlotChanges && f.$flags$ & 2) {
|
|
539
|
+
const g = o.$elm$.__childNodes || o.$elm$.childNodes;
|
|
540
|
+
for (const u of g)
|
|
541
|
+
u["s-hn"] !== I && !u["s-sh"] && (r && u["s-ih"] == null && (u["s-ih"] = (c = u.hidden) != null ? c : !1), u.hidden = !0);
|
|
411
542
|
}
|
|
412
|
-
|
|
543
|
+
B = void 0;
|
|
413
544
|
};
|
|
414
|
-
const
|
|
415
|
-
|
|
416
|
-
|
|
545
|
+
const q = {
|
|
546
|
+
content_wrap: 0,
|
|
547
|
+
ignore: [],
|
|
548
|
+
ignore_with: "_!i-£___£%_",
|
|
549
|
+
strict: !1,
|
|
550
|
+
tab_size: 2,
|
|
551
|
+
tag_wrap: 0,
|
|
552
|
+
tag_wrap_width: 80,
|
|
553
|
+
trim: []
|
|
554
|
+
}, m = "__!i-£___£%__", w = "!i-£___£%_", Ne = [
|
|
555
|
+
"area",
|
|
556
|
+
"base",
|
|
557
|
+
"br",
|
|
558
|
+
"col",
|
|
559
|
+
"embed",
|
|
560
|
+
"hr",
|
|
561
|
+
"img",
|
|
562
|
+
"input",
|
|
563
|
+
"link",
|
|
564
|
+
"meta",
|
|
565
|
+
"param",
|
|
566
|
+
"source",
|
|
567
|
+
"track",
|
|
568
|
+
"wbr"
|
|
569
|
+
], le = (e) => /<(?:[A-Za-z]+[A-Za-z0-9]*)(?:\s+.*?)*?\/{0,1}>/.test(e) || /<(?<Element>(?:[A-Za-z]+[A-Za-z0-9]*:)?(?:[A-Za-z]+[A-Za-z0-9]*))(?:\s+.*?)*?>(?:.|\n)*?<\/{1}\k<Element>>/.test(e) || /<(?<Element>(?:[a-z][a-z0-9._]*:)?[a-z][a-z0-9._]*-[a-z0-9._-]+)(?:\s+.*?)*?>(?:.|\n)*?<\/{1}\k<Element>>/.test(e), ze = (e, t) => {
|
|
570
|
+
if (!e || !t)
|
|
571
|
+
throw new Error("Both 'current' and 'updates' must be passed-in to mergeObjects()");
|
|
572
|
+
let r;
|
|
573
|
+
if (Array.isArray(e))
|
|
574
|
+
r = structuredClone(e).concat(t);
|
|
575
|
+
else if (typeof e == "object") {
|
|
576
|
+
r = { ...e };
|
|
577
|
+
for (let s of Object.keys(t))
|
|
578
|
+
typeof t[s] != "object" ? r[s] = t[s] : r[s] = ze(r[s] || {}, t[s]);
|
|
579
|
+
}
|
|
580
|
+
return r;
|
|
581
|
+
}, ft = (e, t) => ze(structuredClone(e), t), ut = (e) => (e = e.replace(/<[\w:\-]+([^>]*[^\/])>/g, (t, r) => t.replace(r, (s) => s.replace(/\n/g, w + "nl!").replace(/\r/g, w + "cr!").replace(/\s/g, w + "ws!"))), e), pt = (e) => e.replace(/\n/g, m + "nl!").replace(/\r/g, m + "cr!").replace(/\s/g, m + "ws!"), gt = (e) => {
|
|
582
|
+
const t = /\s*<([a-zA-Z0-9:-]+)[^>]*>\n\s*<\/\1>(?=\n[ ]*[^\n]*__!i-£___£%__[^\n]*\n)(\n[ ]*\S[^\n]*\n)|<([a-zA-Z0-9:-]+)[^>]*>(?=\n[ ]*[^\n]*__!i-£___£%__[^\n]*\n)(\n[ ]*\S[^\n]*\n\s*)<\/\3>/g;
|
|
583
|
+
return e.replace(t, (r, s, n, i, a) => {
|
|
584
|
+
const c = n || a;
|
|
585
|
+
if (!c)
|
|
586
|
+
return r;
|
|
587
|
+
const l = c.replace(/\n/g, m + "nl!").replace(/\r/g, m + "cr!").replace(/\s/g, m + "ws!");
|
|
588
|
+
return r.replace(c, l);
|
|
589
|
+
});
|
|
590
|
+
}, $t = (e) => {
|
|
591
|
+
const t = /<([A-Za-z][A-Za-z0-9]*|[a-z][a-z0-9._]*-[a-z0-9._-]+)((?:\s+[A-Za-z0-9_-]+="[^"]*"|\s*[a-z]*)*)>/g;
|
|
592
|
+
return e = e.replace(t, (r, s, n) => r.replace(n, (i) => i.replace(/</g, w + "lt!").replace(/>/g, w + "gt!"))), e;
|
|
593
|
+
}, dt = (e, t) => {
|
|
594
|
+
const r = t.ignore, s = t.ignore_with;
|
|
595
|
+
for (let n = 0; n < r.length; n++) {
|
|
596
|
+
const i = new RegExp(`<${r[n]}[^>]*>((.|
|
|
597
|
+
)*?)</${r[n]}>`, "g");
|
|
598
|
+
e = e.replace(i, (a, c) => a.replace(c, (l) => l.replace(/</g, "-" + s + "lt-").replace(/>/g, "-" + s + "gt-").replace(/\n/g, "-" + s + "nl-").replace(/\r/g, "-" + s + "cr-").replace(/\s/g, "-" + s + "ws-")));
|
|
599
|
+
}
|
|
600
|
+
return e;
|
|
601
|
+
}, yt = (e, t) => {
|
|
602
|
+
for (let r = 0; r < t.length; r++) {
|
|
603
|
+
const s = new RegExp(`(<${t[r]}[^>]*>)\\s+`, "g"), n = new RegExp(`\\s+(</${t[r]}>)`, "g");
|
|
604
|
+
e = e.replace(s, "$1").replace(n, "$1");
|
|
605
|
+
}
|
|
606
|
+
return e;
|
|
607
|
+
}, ht = (e) => (e = e.replace(/<[\w:\-]+([^>]*[^\/])>/g, (t, r) => t.replace(r, (s) => s.replace(new RegExp(w + "nl!", "g"), `
|
|
608
|
+
`).replace(new RegExp(w + "cr!", "g"), "\r").replace(new RegExp(w + "ws!", "g"), " "))), e), bt = (e) => (e = e.replace(/.*__!i-£___£%__[a-z]{2}!.*/g, (t) => t.replace(/__!i-£___£%__[a-z]{2}!/g, (r) => r.replace(new RegExp(m + "nl!", "g"), `
|
|
609
|
+
`).replace(new RegExp(m + "cr!", "g"), "\r").replace(new RegExp(m + "ws!", "g"), " "))), e), _t = (e) => (e = e.replace(/<[\w:\-]+([^>]*)>/g, (t, r) => t.replace(r, (s) => s.replace(new RegExp(w + "lt!", "g"), "<").replace(new RegExp(w + "gt!", "g"), ">"))), e), vt = (e, t) => {
|
|
610
|
+
const r = t.ignore, s = t.ignore_with;
|
|
611
|
+
for (let n = 0; n < r.length; n++) {
|
|
612
|
+
const i = new RegExp(`<${r[n]}[^>]*>((.|
|
|
613
|
+
)*?)</${r[n]}>`, "g");
|
|
614
|
+
e = e.replace(i, (a, c) => a.replace(c, (l) => l.replace(new RegExp("-" + s + "lt-", "g"), "<").replace(new RegExp("-" + s + "gt-", "g"), ">").replace(new RegExp("-" + s + "nl-", "g"), `
|
|
615
|
+
`).replace(new RegExp("-" + s + "cr-", "g"), "\r").replace(new RegExp("-" + s + "ws-", "g"), " ")));
|
|
616
|
+
}
|
|
617
|
+
return e;
|
|
618
|
+
}, wt = (e) => {
|
|
619
|
+
var s, n;
|
|
620
|
+
if (typeof e != "object") throw new Error("Config must be an object.");
|
|
621
|
+
if (!(Object.hasOwn(e, "content_wrap") || Object.hasOwn(e, "ignore") || Object.hasOwn(e, "ignore_with") || Object.hasOwn(e, "strict") || Object.hasOwn(e, "tab_size") || Object.hasOwn(e, "tag_wrap") || Object.hasOwn(e, "tag_wrap_width") || Object.hasOwn(e, "trim"))) return q;
|
|
622
|
+
let r = e.tab_size;
|
|
623
|
+
if (r) {
|
|
624
|
+
if (typeof r != "number") throw new Error(`tab_size must be a number, not ${typeof e.tab_size}.`);
|
|
625
|
+
if (!Number.isSafeInteger(r)) throw new Error(`Tab size ${r} is not safe. See https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number/isSafeInteger for more info.`);
|
|
626
|
+
if (r = Math.floor(r), r < 1 || r > 16) throw new Error("Tab size out of range. Expecting 1 to 16.");
|
|
627
|
+
e.tab_size = r;
|
|
628
|
+
}
|
|
629
|
+
if (Object.hasOwn(e, "content_wrap") && typeof e.content_wrap != "number")
|
|
630
|
+
throw new Error(`content_wrap config must be a number, not ${typeof e.tag_wrap_width}.`);
|
|
631
|
+
if (Object.hasOwn(e, "ignore") && (!Array.isArray(e.ignore) || !((s = e.ignore) != null && s.every((i) => typeof i == "string"))))
|
|
632
|
+
throw new Error("Ignore config must be an array of strings.");
|
|
633
|
+
if (Object.hasOwn(e, "ignore_with") && typeof e.ignore_with != "string")
|
|
634
|
+
throw new Error(`Ignore_with config must be a string, not ${typeof e.ignore_with}.`);
|
|
635
|
+
if (Object.hasOwn(e, "strict") && typeof e.strict != "boolean")
|
|
636
|
+
throw new Error(`Strict config must be a boolean, not ${typeof e.strict}.`);
|
|
637
|
+
if (Object.hasOwn(e, "tag_wrap") && typeof e.tag_wrap == "boolean" && (console.warn("tag_wrap as a boolean is deprecated, and will not be supported in v0.9.0+. Use `tag_wrap: <number>` instead; where <number> is the max character width acceptable before wrapping attributes."), e.tag_wrap_width ? e.tag_wrap = e.tag_wrap_width : e.tag_wrap = q.tag_wrap_width), Object.hasOwn(e, "tag_wrap") && typeof e.tag_wrap != "number")
|
|
638
|
+
throw new Error(`tag_wrap config must be a number, not ${typeof e.tag_wrap}.`);
|
|
639
|
+
if (Object.hasOwn(e, "tag_wrap_width") && console.warn("tag_wrap_width is deprecated, and will not be supported in v0.9.0+. Use `tag_wrap: <number>` instead; where <number> is the max character width acceptable before wrapping attributes."), Object.hasOwn(e, "tag_wrap_width") && typeof e.tag_wrap_width != "number")
|
|
640
|
+
throw new Error(`tag_wrap_width config must be a number, not ${typeof e.tag_wrap_width}.`);
|
|
641
|
+
if (Object.hasOwn(e, "trim") && (!Array.isArray(e.trim) || !((n = e.trim) != null && n.every((i) => typeof i == "string"))))
|
|
642
|
+
throw new Error("Trim config must be an array of strings.");
|
|
643
|
+
return ft(q, e);
|
|
644
|
+
}, xt = (e, t, r) => {
|
|
645
|
+
const s = e.split(/\s+/);
|
|
646
|
+
if (s.length === 0)
|
|
647
|
+
return "";
|
|
648
|
+
const n = [];
|
|
649
|
+
let i = "", a = !0;
|
|
650
|
+
s.forEach((l) => {
|
|
651
|
+
if (l !== "")
|
|
652
|
+
if (i === "")
|
|
653
|
+
i = l;
|
|
654
|
+
else if (l.length >= t)
|
|
655
|
+
a ? (n.push(i.padStart(i.length)), n.push(l.padStart(l.length)), a = !1) : (n.push(i.padStart(i.length + r)), n.push(l.padStart(l.length + r)));
|
|
656
|
+
else {
|
|
657
|
+
const f = i + " " + l;
|
|
658
|
+
f.length <= t ? i = f : (a ? (n.push(i.padStart(i.length)), a = !1) : n.push(i.padStart(i.length + r)), i = l);
|
|
659
|
+
}
|
|
660
|
+
}), i !== "" && n.push(i.padStart(i.length + r));
|
|
661
|
+
const c = n.join(`
|
|
662
|
+
`);
|
|
663
|
+
return pt(c);
|
|
664
|
+
}, mt = (e, t = !0) => t && !le(e) ? e : e.replace(/<([a-zA-Z\-0-9:]+)[^>]*>/g, (r, s) => Ne.indexOf(s) > -1 ? `${r.substring(0, r.length - 1)} />`.replace(/\/\s\//g, "/") : r.replace(/[\s]?\/>/g, `></${s}>`)), St = (e, t = !1) => (e = e.replace(/<textarea[^>]*>((.|\n)*?)<\/textarea>/g, (r, s) => r.replace(s, (n) => n.replace(/</g, "<").replace(/>/g, ">").replace(/"/g, """).replace(/'/g, "'").replace(/\n/g, " ").replace(/\r/g, " ").replace(/\s/g, " "))), t && (e = e.replace(/<textarea[^>]*>((.|\n)*?)<\/textarea>/g, (r, s) => (r = r.replace(s, (n) => n.replace(/\n|\t/g, "").replace(/[a-z]+="\s*"/ig, "").replace(/>\s+</g, "><").replace(/\s+/g, " ")), r = r.replace(/\s+/g, " ").replace(/\s>/g, ">").replace(/>\s/g, ">").replace(/\s</g, "<").replace(/class=["']\s/g, (n) => n.replace(/\s/g, "")).replace(/(class=.*)\s(["'])/g, "$1$2"), r))), e), Et = (e, t = !0) => t && !le(e) ? e : (e = St(e), e.replace(/\n|\t/g, "").replace(/>\s+</g, "><").replace(/\s+/g, " ").replace(/(.+=)"\s+"/ig, '$1""').replace(/(.+=)'\s+'/ig, "$1''").replace(/\s>/g, ">").replace(/<\s\//g, "</").replace(/>\s/g, ">").replace(/\s</g, "<").replace(/class=["']\s/g, (r) => r.replace(/\s/g, "")).replace(/(class=.*)\s(["'])/g, "$1$2"));
|
|
665
|
+
let H, se;
|
|
666
|
+
const A = {
|
|
667
|
+
line: []
|
|
668
|
+
}, Ot = (e) => {
|
|
669
|
+
A.line = [];
|
|
670
|
+
let t = -1;
|
|
671
|
+
const r = /(<[^>]+>)|([^<]+)/g;
|
|
672
|
+
return e = e.replace(r, (s, n, i) => (n ? A.line.push({ type: "tag", value: s }) : i && i.trim().length > 0 && A.line.push({ type: "text", value: s }), t++, `
|
|
673
|
+
[#-# : ${t} : ${s} : #-#]
|
|
674
|
+
`)), e;
|
|
675
|
+
}, At = (e) => (e = mt(e, !1), se.length > 0 && (e = yt(e, se)), e = Et(e, !1), e = Ot(e), e), kt = (e, t) => {
|
|
676
|
+
const r = t.tab_size, s = t.tag_wrap, n = t.content_wrap;
|
|
677
|
+
let i = "";
|
|
678
|
+
A.line.forEach((l, f) => {
|
|
679
|
+
e = e.replace(/\n+/g, `
|
|
680
|
+
`).replace(`[#-# : ${f} : ${l.value} : #-#]`, (p) => {
|
|
681
|
+
var _, C, P;
|
|
682
|
+
let o = 0;
|
|
683
|
+
const g = `[#-# : ${f - 1} : ${(_ = A.line[f - 1]) == null ? void 0 : _.value} : #-#]`, u = /<[A-Za-z]+\b[^>]*(?:.|\n)*?\/?>/g;
|
|
684
|
+
i += "0", f === 0 && o++, p.indexOf(`#-# : ${f} : </`) > -1 && o++, g.indexOf("<!doctype") > -1 && o++, g.indexOf("<!--") > -1 && o++, g.indexOf("/> : #-#") > -1 && o++, g.indexOf(`#-# : ${f - 1} : </`) > -1 && o++, ((C = A.line[f - 1]) == null ? void 0 : C.type) === "text" && o++;
|
|
685
|
+
const d = i.length - o;
|
|
686
|
+
if (i = i.substring(0, d), H && p.indexOf("<!--") > -1) return "";
|
|
687
|
+
let h = p.replace(`[#-# : ${f} : `, "").replace(" : #-#]", "");
|
|
688
|
+
if (((P = A.line[f]) == null ? void 0 : P.type) === "text" && n > 0 && h.length >= n && (h = xt(h, n, r * d)), s > 0 && l.value.length > s && u.test(l.value)) {
|
|
689
|
+
const E = /\s{1}[A-Za-z-]+(?:=".*?")?/g, y = l.value.split(E).filter(Boolean), Fe = l.value.matchAll(E), Y = r * d, Me = Y + r;
|
|
690
|
+
let Q = y[0].padStart(y[0].length + Y) + `
|
|
691
|
+
`;
|
|
692
|
+
for (const ce of Fe) {
|
|
693
|
+
const Pe = ce[0].trim().padStart(ce[0].trim().length + Me) + `
|
|
694
|
+
`;
|
|
695
|
+
Q += Pe;
|
|
696
|
+
}
|
|
697
|
+
const Ce = y[1].padStart(
|
|
698
|
+
y[1].trim().length + Y + (H && Ne.includes(y[0].slice(1)) ? 1 : 0)
|
|
699
|
+
);
|
|
700
|
+
return Q += Ce, Q;
|
|
701
|
+
} else
|
|
702
|
+
return h.padStart(h.length + r * d);
|
|
703
|
+
});
|
|
704
|
+
}), s > 0 && (e = ut(e)), n > 0 && /\n[ ]*[^\n]*__!i-£___£%__[^\n]*\n/.test(e) && (e = gt(e)), e = e.replace(
|
|
705
|
+
/<(?<Element>.+).*>[^<]*?[^><\/\s][^<]*?<\/{1}\k<Element>|<script[^>]*>\s+<\/script>|<(\w+)>\s+<\/(\w+)|<(?:([\w:\._-]+)|([\w:\._-]+)[^>]*[^\/])>\s+<\/([\w:\._-]+)>/g,
|
|
706
|
+
(l) => l.replace(/\n|\t|\s{2,}/g, "")
|
|
707
|
+
), n > 0 && (e = bt(e)), s > 0 && (e = ht(e)), H && (e = e.replace(/\s\/>|\/>/g, ">"));
|
|
708
|
+
const a = e.substring(0, 1), c = e.substring(e.length - 1);
|
|
709
|
+
return a === `
|
|
710
|
+
` && (e = e.substring(1, e.length)), c === `
|
|
711
|
+
` && (e = e.substring(0, e.length - 1)), e;
|
|
712
|
+
}, Tt = (e, t) => {
|
|
713
|
+
if (!le(e)) return e;
|
|
714
|
+
const r = t ? wt(t) : q;
|
|
715
|
+
H = r.strict;
|
|
716
|
+
const s = r.ignore.length > 0;
|
|
717
|
+
return se = r.trim, s && (e = dt(e, r)), e = $t(e), e = At(e), e = kt(e, r), e = _t(e), s && (e = vt(e, r)), e;
|
|
718
|
+
}, jt = (e, t, r) => {
|
|
719
|
+
[null, void 0, "", !1].includes(r) || ["innerHTML", "style", ""].includes(t) || e.setAttribute(t, ["object", "function"].includes(typeof r) ? "⚠️ Property must be set through a script or a framework-specific syntax." : r);
|
|
720
|
+
}, Ie = (e, t, r, s, n) => {
|
|
417
721
|
if (t && typeof t == "string") {
|
|
418
722
|
const i = document.createElement(t);
|
|
419
|
-
Object.keys(
|
|
420
|
-
|
|
421
|
-
}),
|
|
422
|
-
|
|
423
|
-
}),
|
|
723
|
+
Object.keys(r || {}).forEach((a) => {
|
|
724
|
+
jt(i, a, r[a]);
|
|
725
|
+
}), s == null || s.forEach((a) => {
|
|
726
|
+
Ie(i, a.$tag$, a.$attrs$, a.$children$, a.$text$);
|
|
727
|
+
}), r != null && r.innerHTML && (i.innerHTML = r.innerHTML), e.appendChild(i);
|
|
424
728
|
}
|
|
425
729
|
n && (e.innerHTML = n);
|
|
426
|
-
},
|
|
730
|
+
}, Qt = (e, t, r = []) => {
|
|
427
731
|
const s = {};
|
|
428
732
|
if (typeof e != "object")
|
|
429
733
|
throw new Error("filterArgs - args isn't an object.");
|
|
430
|
-
for (const
|
|
431
|
-
if (!r.
|
|
432
|
-
const
|
|
433
|
-
(!t || !Object.keys(t).includes(
|
|
734
|
+
for (const n in e)
|
|
735
|
+
if (!r.includes(n)) {
|
|
736
|
+
const i = e[n], a = n.replace(/([a-z])([A-Z])/g, "$1-$2").toLowerCase();
|
|
737
|
+
(!t || !Object.keys(t).includes(n) || t[n] !== i) && (s[a] = i);
|
|
434
738
|
}
|
|
435
739
|
return s;
|
|
436
|
-
},
|
|
437
|
-
var
|
|
438
|
-
const
|
|
439
|
-
if (
|
|
440
|
-
return (n = document.querySelector("[lang]")) == null || n.setAttribute("lang", ((
|
|
740
|
+
}, Vt = (e, t) => {
|
|
741
|
+
var s, n;
|
|
742
|
+
const r = document.getElementById("storybook-root");
|
|
743
|
+
if (r !== null)
|
|
744
|
+
return (n = document.querySelector("[lang]")) == null || n.setAttribute("lang", ((s = t.globals) == null ? void 0 : s.locale) || "en"), ct(
|
|
441
745
|
{
|
|
442
746
|
$cmpMeta$: {
|
|
443
747
|
$flags$: 0,
|
|
444
|
-
$tagName$:
|
|
748
|
+
$tagName$: r.tagName
|
|
445
749
|
},
|
|
446
|
-
$hostElement$:
|
|
750
|
+
$hostElement$: r
|
|
447
751
|
},
|
|
448
752
|
e(t)
|
|
449
|
-
),
|
|
450
|
-
},
|
|
753
|
+
), r.children[r.children.length - 1];
|
|
754
|
+
}, er = ({ $tag$: e, $attrs$: t, $children$: r, $text$: s }) => {
|
|
451
755
|
const n = document.createElement("div");
|
|
452
|
-
return
|
|
453
|
-
|
|
756
|
+
return Ie(n, e, t, r, s), Tt(n.innerHTML, {
|
|
757
|
+
tag_wrap: 40,
|
|
758
|
+
content_wrap: 120
|
|
759
|
+
}).replace(/="true"/g, "");
|
|
760
|
+
}, J = (e, t) => {
|
|
454
761
|
if (!t)
|
|
455
762
|
return;
|
|
456
|
-
const
|
|
457
|
-
return `${e}${
|
|
763
|
+
const r = t.split("/");
|
|
764
|
+
return `${e}${r.slice(2, r.length - 1).join("-")}--docs`;
|
|
458
765
|
};
|
|
459
|
-
var
|
|
460
|
-
class
|
|
766
|
+
var k, X;
|
|
767
|
+
class tr {
|
|
461
768
|
constructor(t) {
|
|
462
769
|
/**
|
|
463
770
|
* JsonDocs
|
|
464
771
|
*/
|
|
465
|
-
|
|
772
|
+
$(this, "jsonDoc");
|
|
466
773
|
/**
|
|
467
774
|
* Get component data from the jsonDoc
|
|
468
775
|
* @param tagName - tag name we want to get the data from
|
|
469
776
|
* @returns component data
|
|
470
777
|
*/
|
|
471
|
-
|
|
778
|
+
j(this, k, (t) => this.jsonDoc.components.find((r) => r.tag === t));
|
|
472
779
|
/**
|
|
473
780
|
* Get the control for the given prop
|
|
474
781
|
* Based on https://storybook.js.org/docs/api/arg-types#controltype
|
|
475
782
|
* @param prop - prop to get control for
|
|
476
783
|
* @returns control type and options if applicable
|
|
477
784
|
*/
|
|
478
|
-
|
|
479
|
-
const
|
|
480
|
-
return t.type === "string" ? { control: { type: "text" } } : t.type === "number" ? { control: { type: "number" } } : t.type === "boolean" ? { control: { type: "boolean" } } : t.type.startsWith("{") && t.type.endsWith("}") ? { control: { type: "object" } } :
|
|
785
|
+
j(this, X, (t) => {
|
|
786
|
+
const r = t.type.replace(/"([^"]+)"/g, "$1").replace(/\s/g, "").replace(/\(.*?\)/g, (s) => s.replace(/\|/g, " OR ")).split("|").map((s) => s.trim().replace(/ OR /g, "|"));
|
|
787
|
+
return t.type === "string" ? { control: { type: "text" } } : t.type === "number" ? { control: { type: "number" } } : t.type === "boolean" ? { control: { type: "boolean" } } : t.type.startsWith("{") && t.type.endsWith("}") ? { control: { type: "object" } } : r.length > 1 ? r.includes("string") ? { control: { type: "text" } } : r.every((s) => s == null ? void 0 : s.includes("[]")) ? { control: { type: "object" } } : (r.unshift(void 0), { control: { type: "select" }, options: r }) : { control: { type: "object" } };
|
|
481
788
|
});
|
|
482
789
|
/**
|
|
483
790
|
* Extract component arg types from the component data
|
|
484
791
|
* @param tagName - tag name we want to extract the arg types from
|
|
485
792
|
* @returns component arg types
|
|
486
793
|
*/
|
|
487
|
-
|
|
488
|
-
const
|
|
489
|
-
const { control:
|
|
794
|
+
$(this, "extractArgTypes", (t) => {
|
|
795
|
+
const r = v(this, k).call(this, t), s = r == null ? void 0 : r.props.reduce((p, o) => {
|
|
796
|
+
const { control: g, options: u } = v(this, X).call(this, o);
|
|
490
797
|
return {
|
|
491
|
-
...
|
|
492
|
-
[
|
|
493
|
-
name:
|
|
494
|
-
description:
|
|
495
|
-
type: { required:
|
|
798
|
+
...p,
|
|
799
|
+
[o.name]: {
|
|
800
|
+
name: o.attr || o.name,
|
|
801
|
+
description: o.docs,
|
|
802
|
+
type: { required: o.required },
|
|
496
803
|
table: {
|
|
497
804
|
category: "props",
|
|
498
|
-
type: { summary:
|
|
499
|
-
defaultValue: { summary:
|
|
805
|
+
type: { summary: o.type },
|
|
806
|
+
defaultValue: { summary: o.default }
|
|
500
807
|
},
|
|
501
|
-
control:
|
|
502
|
-
options:
|
|
808
|
+
control: g,
|
|
809
|
+
options: u
|
|
503
810
|
}
|
|
504
811
|
};
|
|
505
|
-
}, {}), n =
|
|
506
|
-
(
|
|
507
|
-
...
|
|
508
|
-
[
|
|
509
|
-
name:
|
|
510
|
-
description:
|
|
812
|
+
}, {}), n = r == null ? void 0 : r.events.reduce(
|
|
813
|
+
(p, o) => ({
|
|
814
|
+
...p,
|
|
815
|
+
[o.event]: {
|
|
816
|
+
name: o.event,
|
|
817
|
+
description: o.docs,
|
|
511
818
|
table: {
|
|
512
819
|
category: "events",
|
|
513
|
-
type: { summary:
|
|
820
|
+
type: { summary: o.detail }
|
|
514
821
|
}
|
|
515
822
|
}
|
|
516
823
|
}),
|
|
517
824
|
{}
|
|
518
|
-
), i =
|
|
519
|
-
(
|
|
520
|
-
...
|
|
521
|
-
[
|
|
522
|
-
name:
|
|
523
|
-
description:
|
|
825
|
+
), i = r == null ? void 0 : r.methods.reduce(
|
|
826
|
+
(p, o) => ({
|
|
827
|
+
...p,
|
|
828
|
+
[o.name]: {
|
|
829
|
+
name: o.name,
|
|
830
|
+
description: o.docs,
|
|
524
831
|
table: {
|
|
525
832
|
category: "methods",
|
|
526
|
-
type: { summary:
|
|
833
|
+
type: { summary: o.signature }
|
|
527
834
|
}
|
|
528
835
|
}
|
|
529
836
|
}),
|
|
530
837
|
{}
|
|
531
|
-
),
|
|
532
|
-
(
|
|
533
|
-
...
|
|
534
|
-
[
|
|
535
|
-
name:
|
|
838
|
+
), a = r == null ? void 0 : r.slots.reduce(
|
|
839
|
+
(p, o) => ({
|
|
840
|
+
...p,
|
|
841
|
+
[o.name]: {
|
|
842
|
+
name: o.name !== "" ? o.name : "default",
|
|
536
843
|
// default slot are unnamed
|
|
537
|
-
description:
|
|
844
|
+
description: o.docs,
|
|
538
845
|
table: {
|
|
539
846
|
category: "slots",
|
|
540
847
|
type: { summary: void 0 }
|
|
@@ -542,12 +849,12 @@ class ot {
|
|
|
542
849
|
}
|
|
543
850
|
}),
|
|
544
851
|
{}
|
|
545
|
-
),
|
|
546
|
-
(
|
|
547
|
-
...
|
|
548
|
-
[
|
|
549
|
-
name:
|
|
550
|
-
description:
|
|
852
|
+
), c = r == null ? void 0 : r.styles.reduce(
|
|
853
|
+
(p, o) => ({
|
|
854
|
+
...p,
|
|
855
|
+
[o.name]: {
|
|
856
|
+
name: o.name,
|
|
857
|
+
description: o.docs,
|
|
551
858
|
table: {
|
|
552
859
|
category: "custom properties",
|
|
553
860
|
type: { summary: void 0 }
|
|
@@ -555,41 +862,41 @@ class ot {
|
|
|
555
862
|
}
|
|
556
863
|
}),
|
|
557
864
|
{}
|
|
558
|
-
),
|
|
559
|
-
const
|
|
560
|
-
return {
|
|
561
|
-
...
|
|
562
|
-
[
|
|
563
|
-
name:
|
|
564
|
-
description: `<a href="./?path=/docs/${
|
|
865
|
+
), l = r == null ? void 0 : r.dependencies.reduce((p, o) => {
|
|
866
|
+
const g = v(this, k).call(this, o);
|
|
867
|
+
return g ? {
|
|
868
|
+
...p,
|
|
869
|
+
[o]: {
|
|
870
|
+
name: o,
|
|
871
|
+
description: `<a href="./?path=/docs/${J("", g == null ? void 0 : g.filePath)}">View Component Documentation</a>`,
|
|
565
872
|
table: {
|
|
566
873
|
category: "depends on",
|
|
567
874
|
type: { summary: void 0 }
|
|
568
875
|
}
|
|
569
876
|
}
|
|
570
|
-
};
|
|
571
|
-
}, {}),
|
|
572
|
-
const
|
|
573
|
-
return {
|
|
574
|
-
...
|
|
575
|
-
[
|
|
576
|
-
name:
|
|
577
|
-
description: `<a href="./?path=/docs/${
|
|
877
|
+
} : p;
|
|
878
|
+
}, {}), f = r == null ? void 0 : r.dependents.reduce((p, o) => {
|
|
879
|
+
const g = v(this, k).call(this, o);
|
|
880
|
+
return g ? {
|
|
881
|
+
...p,
|
|
882
|
+
[o]: {
|
|
883
|
+
name: o,
|
|
884
|
+
description: `<a href="./?path=/docs/${J("", g == null ? void 0 : g.filePath)}">View Component Documentation</a>`,
|
|
578
885
|
table: {
|
|
579
886
|
category: "used by",
|
|
580
887
|
type: { summary: void 0 }
|
|
581
888
|
}
|
|
582
889
|
}
|
|
583
|
-
};
|
|
890
|
+
} : p;
|
|
584
891
|
}, {});
|
|
585
892
|
return {
|
|
586
|
-
...
|
|
893
|
+
...s,
|
|
587
894
|
...n,
|
|
588
895
|
...i,
|
|
589
|
-
...
|
|
590
|
-
...f,
|
|
896
|
+
...a,
|
|
591
897
|
...c,
|
|
592
|
-
|
|
898
|
+
...l,
|
|
899
|
+
...f
|
|
593
900
|
};
|
|
594
901
|
});
|
|
595
902
|
/**
|
|
@@ -597,29 +904,29 @@ class ot {
|
|
|
597
904
|
* @param tagName - tag name we want to extract the description from
|
|
598
905
|
* @returns component description
|
|
599
906
|
*/
|
|
600
|
-
|
|
601
|
-
const
|
|
602
|
-
return (
|
|
907
|
+
$(this, "extractComponentDescription", (t) => {
|
|
908
|
+
const r = v(this, k).call(this, t);
|
|
909
|
+
return (r == null ? void 0 : r.readme) || (r == null ? void 0 : r.docs);
|
|
603
910
|
});
|
|
604
911
|
this.jsonDoc = t;
|
|
605
912
|
}
|
|
606
913
|
}
|
|
607
|
-
|
|
608
|
-
const
|
|
914
|
+
k = new WeakMap(), X = new WeakMap();
|
|
915
|
+
const Rt = (e, t) => {
|
|
609
916
|
if (t)
|
|
610
917
|
return `${e}${t}`;
|
|
611
|
-
},
|
|
918
|
+
}, Le = (e) => {
|
|
612
919
|
let t = e.overview ? `${e.overview}
|
|
613
920
|
|
|
614
921
|
` : "";
|
|
615
|
-
const
|
|
616
|
-
|
|
617
|
-
`, t +=
|
|
922
|
+
const r = e.props.filter(({ attr: n }) => n !== void 0);
|
|
923
|
+
r.length && (t += `Attributes:
|
|
924
|
+
`, t += r.map(({ attr: n, docs: i }) => `- \`${n}\`: ${i}
|
|
618
925
|
`).join(""), t += `
|
|
619
926
|
`);
|
|
620
|
-
const
|
|
621
|
-
return
|
|
622
|
-
`, t +=
|
|
927
|
+
const s = e.props.filter(({ attr: n }) => n === void 0);
|
|
928
|
+
return s.length && (t += `Properties:
|
|
929
|
+
`, t += s.map(({ name: n, docs: i }) => `- \`${n}\`: ${i}
|
|
623
930
|
`).join(""), t += `
|
|
624
931
|
`), e.methods.length && (t += `Methods:
|
|
625
932
|
`, t += e.methods.map(({ name: n, docs: i }) => `- \`${n}\`: ${i}
|
|
@@ -634,74 +941,74 @@ const qe = (e, t) => {
|
|
|
634
941
|
`, t += e.slots.map(({ name: n, docs: i }) => `- \`${n}\`: ${i}
|
|
635
942
|
`).join(""), t += `
|
|
636
943
|
`), t;
|
|
637
|
-
},
|
|
944
|
+
}, ne = (e) => `${e.docs}
|
|
638
945
|
|
|
639
|
-
Type: \`${e.type}\``,
|
|
946
|
+
Type: \`${e.type}\``, rr = (e, t, r, s) => ({
|
|
640
947
|
$schema: "https://json.schemastore.org/web-types",
|
|
641
948
|
name: e,
|
|
642
949
|
version: t,
|
|
643
950
|
"description-markup": "markdown",
|
|
644
951
|
contributions: {
|
|
645
952
|
html: {
|
|
646
|
-
elements:
|
|
647
|
-
const i =
|
|
953
|
+
elements: r.components.map((n) => {
|
|
954
|
+
const i = J(s, n.filePath);
|
|
648
955
|
return {
|
|
649
956
|
name: n.tag,
|
|
650
|
-
description:
|
|
957
|
+
description: Le(n),
|
|
651
958
|
"doc-url": i,
|
|
652
|
-
attributes: n.props.filter((
|
|
653
|
-
name:
|
|
654
|
-
description:
|
|
959
|
+
attributes: n.props.filter((a) => a.attr).map((a) => ({
|
|
960
|
+
name: a.attr,
|
|
961
|
+
description: ne(a),
|
|
655
962
|
"doc-url": i,
|
|
656
963
|
value: {
|
|
657
|
-
type:
|
|
658
|
-
default:
|
|
659
|
-
required:
|
|
964
|
+
type: a.type,
|
|
965
|
+
default: a.default,
|
|
966
|
+
required: a.required
|
|
660
967
|
}
|
|
661
968
|
})),
|
|
662
969
|
js: {
|
|
663
|
-
properties: n.props.map((
|
|
664
|
-
name:
|
|
665
|
-
description:
|
|
970
|
+
properties: n.props.map((a) => ({
|
|
971
|
+
name: a.name,
|
|
972
|
+
description: ne(a),
|
|
666
973
|
"doc-url": i,
|
|
667
974
|
value: {
|
|
668
|
-
type:
|
|
669
|
-
default:
|
|
670
|
-
required:
|
|
975
|
+
type: a.type,
|
|
976
|
+
default: a.default,
|
|
977
|
+
required: a.required
|
|
671
978
|
}
|
|
672
979
|
})),
|
|
673
|
-
events: n.events.map((
|
|
674
|
-
name:
|
|
675
|
-
description:
|
|
980
|
+
events: n.events.map((a) => ({
|
|
981
|
+
name: a.event,
|
|
982
|
+
description: a.docs
|
|
676
983
|
}))
|
|
677
984
|
},
|
|
678
985
|
css: {
|
|
679
|
-
properties: n.styles.map((
|
|
680
|
-
name:
|
|
681
|
-
description:
|
|
986
|
+
properties: n.styles.map((a) => ({
|
|
987
|
+
name: a.name,
|
|
988
|
+
description: a.docs
|
|
682
989
|
}))
|
|
683
990
|
}
|
|
684
991
|
};
|
|
685
992
|
})
|
|
686
993
|
}
|
|
687
994
|
}
|
|
688
|
-
}),
|
|
689
|
-
{ name: "Storybook", url:
|
|
690
|
-
{ name: "Sources", url:
|
|
691
|
-
],
|
|
995
|
+
}), Nt = (e, t, r) => [
|
|
996
|
+
{ name: "Storybook", url: J(e, r) },
|
|
997
|
+
{ name: "Sources", url: Rt(t, r) }
|
|
998
|
+
], zt = (e) => {
|
|
692
999
|
if (!e.values.some(({ value: t }) => t === void 0))
|
|
693
1000
|
return e.values.map(({ value: t }) => ({ name: t }));
|
|
694
|
-
},
|
|
1001
|
+
}, sr = (e, t, r) => ({
|
|
695
1002
|
version: 1.1,
|
|
696
|
-
tags: e.components.map((
|
|
697
|
-
const n =
|
|
1003
|
+
tags: e.components.map((s) => {
|
|
1004
|
+
const n = Nt(t, r, s.filePath);
|
|
698
1005
|
return {
|
|
699
|
-
name:
|
|
700
|
-
description:
|
|
701
|
-
attributes:
|
|
1006
|
+
name: s.tag,
|
|
1007
|
+
description: Le(s),
|
|
1008
|
+
attributes: s.props.map((i) => ({
|
|
702
1009
|
name: i.attr || i.name,
|
|
703
|
-
description:
|
|
704
|
-
values:
|
|
1010
|
+
description: ne(i),
|
|
1011
|
+
values: zt(i),
|
|
705
1012
|
references: n
|
|
706
1013
|
})),
|
|
707
1014
|
references: n
|
|
@@ -709,55 +1016,55 @@ Type: \`${e.type}\``, lt = (e, t, s, r) => ({
|
|
|
709
1016
|
}),
|
|
710
1017
|
globalAttributes: [],
|
|
711
1018
|
valueSets: []
|
|
712
|
-
}),
|
|
1019
|
+
}), nr = (e) => ({
|
|
713
1020
|
version: 1.1,
|
|
714
1021
|
properties: e.components.flatMap(
|
|
715
|
-
(t) => t.styles.map((
|
|
716
|
-
name:
|
|
717
|
-
description:
|
|
1022
|
+
(t) => t.styles.map((r) => ({
|
|
1023
|
+
name: r.name,
|
|
1024
|
+
description: r.docs
|
|
718
1025
|
}))
|
|
719
1026
|
)
|
|
720
|
-
}),
|
|
721
|
-
const t = { value: "2023", pattern: "yyyy" },
|
|
722
|
-
return
|
|
723
|
-
},
|
|
724
|
-
const
|
|
1027
|
+
}), ir = (e) => {
|
|
1028
|
+
const t = { value: "2023", pattern: "yyyy" }, r = { value: "12", pattern: "mm" }, s = { value: "24", pattern: "dd" };
|
|
1029
|
+
return Ft([t.value, r.value, s.value].join("-"), e, { timeZone: "UTC" }).replace(t.value, t.pattern).replace(r.value, r.pattern).replace(s.value, s.pattern);
|
|
1030
|
+
}, ar = (e) => e.toISOString().split("T")[0], It = (e, t, r) => {
|
|
1031
|
+
const s = e.closest("[lang]"), n = Intl.NumberFormat.supportedLocalesOf(s == null ? void 0 : s.lang), i = n.length > 0 && typeof n[0] == "string" ? n[0] : navigator.language || r, a = i.split("-").shift();
|
|
725
1032
|
return Object.keys(t).length === 0 ? {
|
|
726
1033
|
locale: i,
|
|
727
|
-
messages: { lang:
|
|
1034
|
+
messages: { lang: r }
|
|
728
1035
|
} : {
|
|
729
1036
|
locale: i,
|
|
730
|
-
messages: t[
|
|
1037
|
+
messages: t[a] || t[r] || { lang: r }
|
|
731
1038
|
};
|
|
732
|
-
},
|
|
1039
|
+
}, or = (e, t, r) => new Intl.NumberFormat(t, { style: "currency", currency: r }).format(e), lr = (e, t, r = 0) => new Intl.NumberFormat(t, { minimumFractionDigits: r }).format(Number(e)), cr = (e, t, r = 0) => new Intl.NumberFormat(t, {
|
|
733
1040
|
style: "percent",
|
|
734
|
-
minimumFractionDigits:
|
|
735
|
-
maximumFractionDigits:
|
|
736
|
-
}).format(e),
|
|
1041
|
+
minimumFractionDigits: r,
|
|
1042
|
+
maximumFractionDigits: r
|
|
1043
|
+
}).format(e), fr = (e, t, r, s = "short", n = 0) => new Intl.NumberFormat(t, {
|
|
737
1044
|
style: "unit",
|
|
738
|
-
unit:
|
|
739
|
-
unitDisplay:
|
|
1045
|
+
unit: r,
|
|
1046
|
+
unitDisplay: s,
|
|
740
1047
|
minimumFractionDigits: n,
|
|
741
1048
|
maximumFractionDigits: n
|
|
742
|
-
}).format(e),
|
|
743
|
-
class
|
|
1049
|
+
}).format(e), Lt = /^\d{4}-(0[1-9]|1[0-2])-(0[1-9]|[12]\d|3[01])$/, Ft = (e, t, r) => typeof e != "string" || e === "" || !Lt.test(e) ? "" : new Intl.DateTimeFormat(t, r).format(new Date(e)), ur = (e, t) => (r) => It(r, e, t), pr = ({ disconnect: e, observe: t, takeRecords: r }) => {
|
|
1050
|
+
class s {
|
|
744
1051
|
constructor(i) {
|
|
745
1052
|
/**
|
|
746
1053
|
*
|
|
747
1054
|
*/
|
|
748
|
-
|
|
1055
|
+
$(this, "disconnect", e);
|
|
749
1056
|
/**
|
|
750
1057
|
*
|
|
751
1058
|
*/
|
|
752
|
-
|
|
1059
|
+
$(this, "observe", t);
|
|
753
1060
|
/**
|
|
754
1061
|
*
|
|
755
1062
|
*/
|
|
756
|
-
|
|
1063
|
+
$(this, "takeRecords", r);
|
|
757
1064
|
/**
|
|
758
1065
|
*
|
|
759
1066
|
*/
|
|
760
|
-
|
|
1067
|
+
$(this, "cb");
|
|
761
1068
|
this.cb = i;
|
|
762
1069
|
}
|
|
763
1070
|
}
|
|
@@ -765,51 +1072,51 @@ Type: \`${e.type}\``, lt = (e, t, s, r) => ({
|
|
|
765
1072
|
Object.defineProperty(n, "MutationObserver", {
|
|
766
1073
|
writable: !0,
|
|
767
1074
|
configurable: !0,
|
|
768
|
-
value:
|
|
1075
|
+
value: s
|
|
769
1076
|
});
|
|
770
|
-
}),
|
|
771
|
-
},
|
|
772
|
-
class
|
|
1077
|
+
}), s;
|
|
1078
|
+
}, gr = ({ disconnect: e, observe: t }) => {
|
|
1079
|
+
class r {
|
|
773
1080
|
constructor(n) {
|
|
774
1081
|
/**
|
|
775
1082
|
*
|
|
776
1083
|
*/
|
|
777
|
-
|
|
1084
|
+
$(this, "disconnect", e);
|
|
778
1085
|
/**
|
|
779
1086
|
*
|
|
780
1087
|
*/
|
|
781
|
-
|
|
1088
|
+
$(this, "observe", t);
|
|
782
1089
|
/**
|
|
783
1090
|
*
|
|
784
1091
|
*/
|
|
785
|
-
|
|
1092
|
+
$(this, "unobserve");
|
|
786
1093
|
/**
|
|
787
1094
|
*
|
|
788
1095
|
*/
|
|
789
|
-
|
|
1096
|
+
$(this, "cb");
|
|
790
1097
|
this.cb = n;
|
|
791
1098
|
}
|
|
792
1099
|
}
|
|
793
|
-
return [window, global].forEach((
|
|
794
|
-
Object.defineProperty(
|
|
1100
|
+
return [window, global].forEach((s) => {
|
|
1101
|
+
Object.defineProperty(s, "ResizeObserver", {
|
|
795
1102
|
writable: !0,
|
|
796
1103
|
configurable: !0,
|
|
797
|
-
value:
|
|
1104
|
+
value: r
|
|
798
1105
|
});
|
|
799
|
-
}),
|
|
1106
|
+
}), r;
|
|
800
1107
|
};
|
|
801
|
-
class
|
|
1108
|
+
class Mt extends Event {
|
|
802
1109
|
constructor() {
|
|
803
1110
|
super(...arguments);
|
|
804
1111
|
/**
|
|
805
1112
|
*
|
|
806
1113
|
*/
|
|
807
|
-
|
|
1114
|
+
$(this, "detail");
|
|
808
1115
|
}
|
|
809
1116
|
// eslint-disable-line @typescript-eslint/no-explicit-any
|
|
810
1117
|
}
|
|
811
|
-
const
|
|
812
|
-
class e extends
|
|
1118
|
+
const $r = () => {
|
|
1119
|
+
class e extends Mt {
|
|
813
1120
|
}
|
|
814
1121
|
return [window, global].forEach((t) => {
|
|
815
1122
|
Object.defineProperty(t, "SubmitEvent", {
|
|
@@ -818,10 +1125,10 @@ const mt = () => {
|
|
|
818
1125
|
value: e
|
|
819
1126
|
});
|
|
820
1127
|
}), e;
|
|
821
|
-
},
|
|
822
|
-
const t = (
|
|
823
|
-
return [window, global].forEach((
|
|
824
|
-
Object.defineProperty(
|
|
1128
|
+
}, dr = (e) => {
|
|
1129
|
+
const t = (r) => (setTimeout(r, 1), e(), 0);
|
|
1130
|
+
return [window, global].forEach((r) => {
|
|
1131
|
+
Object.defineProperty(r, "requestAnimationFrame", {
|
|
825
1132
|
writable: !0,
|
|
826
1133
|
configurable: !0,
|
|
827
1134
|
value: t
|
|
@@ -829,39 +1136,44 @@ const mt = () => {
|
|
|
829
1136
|
}), t;
|
|
830
1137
|
};
|
|
831
1138
|
export {
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
|
|
1139
|
+
Zt as ClassList,
|
|
1140
|
+
Kt as Cursor,
|
|
1141
|
+
He as Page,
|
|
1142
|
+
Yt as Paginate,
|
|
1143
|
+
tr as StorybookPreview,
|
|
1144
|
+
Dt as allItemsAreString,
|
|
1145
|
+
Jt as cleanString,
|
|
1146
|
+
Pt as createID,
|
|
1147
|
+
Lt as dateRegExp,
|
|
1148
|
+
ar as dateToString,
|
|
1149
|
+
ur as defineLocales,
|
|
1150
|
+
Qt as filterArgs,
|
|
1151
|
+
Ht as focusableElements,
|
|
1152
|
+
ir as getLocaleDatePattern,
|
|
1153
|
+
qe as getObjectValueFromKey,
|
|
1154
|
+
_e as getParentWindows,
|
|
1155
|
+
er as getStoryHTML,
|
|
1156
|
+
J as getStorybookUrl,
|
|
1157
|
+
Bt as getWindows,
|
|
1158
|
+
ie as isObject,
|
|
1159
|
+
qt as isTagName,
|
|
1160
|
+
Wt as isValidNumber,
|
|
1161
|
+
De as isValidString,
|
|
1162
|
+
Ut as isValideID,
|
|
1163
|
+
or as localeCurrency,
|
|
1164
|
+
Ft as localeDate,
|
|
1165
|
+
lr as localeNumber,
|
|
1166
|
+
cr as localePercent,
|
|
1167
|
+
fr as localeUnit,
|
|
1168
|
+
Xt as nextTick,
|
|
1169
|
+
dr as setUpRequestAnimationFrameMock,
|
|
1170
|
+
pr as setupMutationObserverMock,
|
|
1171
|
+
gr as setupResizeObserverMock,
|
|
1172
|
+
$r as setupSubmitEventMock,
|
|
1173
|
+
Vt as stencilWrapper,
|
|
1174
|
+
Gt as toString,
|
|
1175
|
+
nr as vsCodeCssGenerator,
|
|
1176
|
+
sr as vsCodeGenerator,
|
|
1177
|
+
rr as webTypesGenerator
|
|
866
1178
|
};
|
|
867
1179
|
//# sourceMappingURL=index.es.js.map
|