@reactive-web-components/rwc 2.63.0 → 2.63.8

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.
@@ -0,0 +1,1121 @@
1
+ var at = Object.defineProperty;
2
+ var dt = (e, t, s) => t in e ? at(e, t, { enumerable: !0, configurable: !0, writable: !0, value: s }) : e[t] = s;
3
+ var f = (e, t, s) => dt(e, typeof t != "symbol" ? t + "" : t, s);
4
+ const F = (e) => e && typeof e == "object" && ("classList" in e || "attributes" in e || "customAttributes" in e || "reactiveClassList" in e || "listeners" in e || "customListeners" in e || "children" in e || "effects" in e || "ref" in e || "style" in e || Object.keys(e).some(
5
+ (t) => t.startsWith(".") || t.startsWith("@") || t.startsWith("$")
6
+ )) && !("hostElement" in e), ht = (e) => e && typeof e == "object" && "hostElement" in e && "append" in e && "set" in e && "addStyle" in e && "setAttribute" in e && "addClass" in e && "addEffect" in e && "addReactiveContent" in e && "setReactiveContent" in e && "clear" in e, G = (e, t, ...s) => {
7
+ t && t.apply(e, s);
8
+ };
9
+ let z = !0;
10
+ const C = (...e) => {
11
+ z && console.debug(
12
+ ["[rwc]", ...e].join(" | "),
13
+ ...Array.from(e.join("").matchAll(/%c/gm)).map((t, s) => s % 2 === 0 ? "color:red" : "color:inherit")
14
+ );
15
+ }, N = (e) => e.replace(/([A-Z])/gm, (t) => `-${t.toLowerCase()}`), ft = (e) => e.replace(/-(\w)/gm, (t, s) => s.toUpperCase()), V = (e, ...t) => {
16
+ if (!z) return;
17
+ const s = {
18
+ r: "color: #ff0000",
19
+ // red
20
+ g: "color: #00ff00",
21
+ // green
22
+ b: "color: #0000ff",
23
+ // blue
24
+ y: "color: #ffff00",
25
+ // yellow
26
+ p: "color: #800080",
27
+ // purple
28
+ c: "color: #00ffff",
29
+ // cyan
30
+ o: "color: #ffa500",
31
+ // orange
32
+ w: "color: #808080"
33
+ // gray (w for white/gray)
34
+ }, n = e.match(/@[rgbpycow]/g) || [], o = n.map((i) => {
35
+ const c = i.slice(1);
36
+ return s[c] || "color: inherit";
37
+ });
38
+ let r = e;
39
+ n.forEach((i) => {
40
+ const c = new RegExp(`\\${i}([^\\s,]+)`, "g");
41
+ r = r.replace(c, "%c$1");
42
+ }), console.log(r, ...o, ...t);
43
+ }, kt = () => {
44
+ z = !0;
45
+ }, ut = () => {
46
+ z = !1;
47
+ };
48
+ ut();
49
+ const Pt = (e, t) => {
50
+ e.every(Boolean) && t(e);
51
+ }, st = (e) => {
52
+ if (e.status === "active") {
53
+ U(e), M.push(e);
54
+ try {
55
+ e();
56
+ } catch (t) {
57
+ console.error("Error in effect:", t);
58
+ } finally {
59
+ M.pop();
60
+ }
61
+ }
62
+ }, k = /* @__PURE__ */ new Set();
63
+ let K = !1;
64
+ const Ft = (e) => {
65
+ e.status === "active" && k.add(e), K || (K = !0, queueMicrotask(() => {
66
+ K = !1, C("pendingEffects.size", k.size);
67
+ const t = Array.from(k);
68
+ k.clear(), t.forEach((s) => {
69
+ st(s);
70
+ }), C("after ------ pendingEffects.size", k.size);
71
+ }));
72
+ }, M = [], U = (e) => {
73
+ var t, s, n, o;
74
+ (t = e.children) == null || t.forEach((r) => {
75
+ var i;
76
+ return (i = r.destroy) == null ? void 0 : i.call(r);
77
+ }), (s = e.children) == null || s.clear(), (n = e.cleanupSet) == null || n.forEach((r) => r()), (o = e.cleanupSet) == null || o.clear();
78
+ };
79
+ function j(e, t) {
80
+ let s = (t == null ? void 0 : t.signalCompareFn) || (() => !0);
81
+ const n = /* @__PURE__ */ new Set();
82
+ function o() {
83
+ var i;
84
+ const r = M[M.length - 1];
85
+ return r && !r.fake && !n.has(r) && r.status === "active" && (n.add(r), (i = r.cleanupSet) == null || i.add(() => n.delete(r))), !(t != null && t.name) && (r != null && r.effectId) && o.setName(r.effectId), e;
86
+ }
87
+ return o.signalId = `${(t == null ? void 0 : t.name) || ""}_${Math.random().toString(36).substring(2, 15)}`, o.setName = function(r) {
88
+ return o.signalId = `${r}_${Math.random().toString(36).substring(2, 15)}`, o;
89
+ }, o.setCompareFn = function(r) {
90
+ return s = r, o;
91
+ }, o.clearSubscribers = function() {
92
+ n.clear();
93
+ }, o.getSubscribers = function() {
94
+ return n;
95
+ }, o.peek = function() {
96
+ return Object.freeze(e);
97
+ }, o.initValue = Object.freeze(e), o.forceSet = function(r) {
98
+ e = r, n.forEach((i) => queueMicrotask(() => st(i)));
99
+ }, o.set = function(r, i = s) {
100
+ e !== r && i(e, r) && o.forceSet(r);
101
+ }, o.update = function(r) {
102
+ o.set(r(e));
103
+ }, o.pipe = (r, i) => {
104
+ i != null && i.name && o.setName(i.name);
105
+ const c = j(null);
106
+ return w(
107
+ () => {
108
+ const a = o();
109
+ w(
110
+ () => {
111
+ const h = r(a);
112
+ h instanceof Promise ? h.then((m) => c.set(m)) : g(h) ? w(() => c.set(h()), {
113
+ name: "pipe_effect_inner"
114
+ }) : c.set(h);
115
+ },
116
+ { name: "pipe_effect" }
117
+ );
118
+ },
119
+ { name: (i == null ? void 0 : i.name) || `pipe_${o.signalId}` }
120
+ ), c;
121
+ }, o;
122
+ }
123
+ function w(e, t) {
124
+ var r;
125
+ const s = `${(t == null ? void 0 : t.name) || ""}_${Math.random().toString(36).substring(2, 15)}`;
126
+ C("current effect", `%c${s}%c`);
127
+ const n = e;
128
+ n.status = "active", n.children = /* @__PURE__ */ new Set(), n.effectId = s;
129
+ const o = M[M.length - 1];
130
+ return o && ((r = o.children) == null || r.add(n), n.parent = new WeakRef(o), n.destroy = () => {
131
+ var i;
132
+ U(n), (i = o.children) == null || i.delete(n), n.destroy = void 0, n.status = "inactive";
133
+ }), n.cleanupSet = /* @__PURE__ */ new Set(), M.push(n), n(), M.pop(), n;
134
+ }
135
+ const g = (e) => !!e && ["object", "function"].includes(typeof e) && "set" in e && "update" in e && "forceSet" in e && "signalId" in e;
136
+ function Bt(e, ...t) {
137
+ const s = j("");
138
+ return w(() => {
139
+ const n = t.map(
140
+ (r) => g(r) ? String(r()) : String(r)
141
+ ), o = [e[0]];
142
+ n.forEach((r, i) => {
143
+ o.push(r, e[i + 1]);
144
+ }), s.set(o.join(""));
145
+ }), s;
146
+ }
147
+ function Vt(e, t) {
148
+ const s = j(t ?? null), n = (o) => s.set(o);
149
+ return e instanceof Promise ? e.then(n) : typeof e == "function" && w(() => {
150
+ const o = e();
151
+ o instanceof Promise ? o.then(n) : g(o) ? w(() => n(o())) : n(o);
152
+ }), s;
153
+ }
154
+ function Nt(e, t) {
155
+ let s = e(), n = t();
156
+ w(() => {
157
+ const o = e(), r = t();
158
+ o !== r && (o !== s ? t.set(o) : r !== n && e.set(r)), s = o, n = r;
159
+ });
160
+ }
161
+ function qt(...e) {
162
+ let t = e.map((n) => n());
163
+ const s = j(t);
164
+ return e.forEach((n, o) => {
165
+ w(() => {
166
+ const r = () => t.filter((i) => i !== void 0).length;
167
+ r() === e.length && (t = Array.from(t).fill(void 0)), t[o] = n(), r() === e.length && s.set([...t]);
168
+ });
169
+ }), s;
170
+ }
171
+ const Jt = (...e) => {
172
+ const t = j([]);
173
+ return w(() => {
174
+ t.set(
175
+ e.map((s) => s())
176
+ );
177
+ }), t;
178
+ }, zt = (e, t) => {
179
+ let s = !0;
180
+ const n = w(() => {
181
+ var o;
182
+ s && (s = !1, t(e()), (o = n.destroy) == null || o.call(n));
183
+ });
184
+ }, q = "eventProps", J = "EVENT_CONFIG", P = "observedAttributes", Dt = () => (e, t) => {
185
+ Reflect.get(e, P) || Reflect.defineProperty(e, P, {
186
+ value: []
187
+ }), Reflect.get(e, P).push(
188
+ N(t)
189
+ );
190
+ }, Gt = (e) => (t, s) => {
191
+ Reflect.get(t, q) || Reflect.defineProperty(t, q, {
192
+ value: []
193
+ }), Reflect.get(t, J) || Reflect.defineProperty(t, J, {
194
+ value: {}
195
+ }), Reflect.get(t, J)[s] = {
196
+ bubbles: (e == null ? void 0 : e.bubbles) ?? !1,
197
+ composed: (e == null ? void 0 : e.composed) ?? !1
198
+ }, Reflect.get(t, q).push(s);
199
+ }, nt = (e, t = !1) => (s) => {
200
+ C(
201
+ e,
202
+ "start register static attr",
203
+ s.prototype[P]
204
+ );
205
+ const n = [];
206
+ if (s.styles) {
207
+ const r = s.styles, i = [];
208
+ Array.isArray(r) ? i.push(...r) : i.push(r), i.forEach((c) => {
209
+ const a = new CSSStyleSheet();
210
+ a.replaceSync(c), n.push(a);
211
+ const b = new CSSStyleSheet();
212
+ b.replaceSync(c.slice(c.indexOf("@property"))), document.adoptedStyleSheets.push(b);
213
+ });
214
+ }
215
+ class o extends s {
216
+ constructor(...i) {
217
+ C("constructor", `%c${e}%c`), super(t, ...i), n.length > 0 && this.shadow.adoptedStyleSheets.push(...n);
218
+ }
219
+ render() {
220
+ return C("rwc: render from new class"), s.prototype.render.call(this);
221
+ }
222
+ attributeChangedCallback(i, c, a) {
223
+ C(
224
+ "%cAttribute has changed.%c",
225
+ `%c${i}%c`,
226
+ `oldValue: ${c}, newValue: ${a}`,
227
+ `%c${e}%c`
228
+ );
229
+ try {
230
+ a = JSON.parse(a);
231
+ } catch {
232
+ }
233
+ const b = ft(i);
234
+ if (b in this && g(this[b])) {
235
+ const h = this[b];
236
+ h.setName(i), a === null ? (h.set(h.initValue), this.removeAttribute(i)) : h.set(a);
237
+ }
238
+ G(
239
+ this,
240
+ s.prototype.attributeChangedCallback,
241
+ i,
242
+ c,
243
+ a
244
+ );
245
+ }
246
+ connectedCallback() {
247
+ const i = () => {
248
+ var a, b;
249
+ C("rwc: connectedCallback"), C("connectedCallback", `%c${e}%c`, this), (a = this.init) == null || a.call(this), this.providers && Object.keys(this.providers).length > 0 && (C("WRAPPER for providers", e), Object.entries(this.providers).forEach(
250
+ ([h, d]) => {
251
+ C("register provider", h, d()), this.addEventListener(h, (m) => {
252
+ var u;
253
+ C("send provider", h, d());
254
+ const p = m;
255
+ ((u = p.detail) == null ? void 0 : u.context) === h && (p.stopPropagation(), p.detail.callback(d));
256
+ });
257
+ }
258
+ )), this.checkInjects(), (b = s.prototype[q]) == null || b.forEach(
259
+ (h) => {
260
+ this[h] = (d) => {
261
+ const m = s.prototype[J][h], { bubbles: p, composed: u } = m;
262
+ g(d) ? w(() => {
263
+ V("@oemit reactive value", d()), this.dispatchEvent(
264
+ new CustomEvent(h, {
265
+ detail: d(),
266
+ bubbles: p,
267
+ composed: u
268
+ })
269
+ );
270
+ }) : (V("@oemit value", d), this.dispatchEvent(
271
+ new CustomEvent(h, {
272
+ detail: d,
273
+ bubbles: p,
274
+ composed: u
275
+ })
276
+ ));
277
+ };
278
+ }
279
+ ), C("start render", `%c${e}%c`, e);
280
+ const c = () => {
281
+ C("rwc: insertRenderTemplate");
282
+ const d = this.render().hostElement;
283
+ d && this.shadow.appendChild(d), G(this, s.prototype.connectedCallback), this.appendSlotContent();
284
+ };
285
+ if (this.rootStyle && !s.styles) {
286
+ const h = (p) => p instanceof Promise || Array.isArray(p) && p.every((u) => u instanceof Promise), d = this.rootStyle, m = (p) => {
287
+ const u = new CSSStyleSheet();
288
+ u.replaceSync(p), this.shadow.adoptedStyleSheets.push(u);
289
+ const y = new CSSStyleSheet();
290
+ y.replaceSync(p.slice(p.indexOf("@property"))), document.adoptedStyleSheets.push(y);
291
+ };
292
+ if (h(d)) {
293
+ const p = [];
294
+ Array.isArray(d) ? p.push(...d) : p.push(d), Promise.all(p).then((u) => u.forEach((y) => m(y.default))).then(() => c());
295
+ } else {
296
+ const p = [];
297
+ Array.isArray(d) ? p.push(...d) : p.push(d), p.forEach((u) => m(u)), c();
298
+ }
299
+ } else
300
+ c();
301
+ this.slotContext && Object.keys(this.slotContext).length > 0 && this.shadow.querySelectorAll("slot").forEach((h) => {
302
+ C(
303
+ this.slotContext,
304
+ this.slotContext && this.slotContext[h.name]
305
+ ), V(
306
+ "@bslot element",
307
+ h,
308
+ `name:${h.name};`,
309
+ h.assignedElements()
310
+ ), h.assignedElements().forEach((d) => {
311
+ const m = this.slotContext[h.name];
312
+ this.slotContext && g(m) && (V(
313
+ "@oslot element",
314
+ h,
315
+ `name:${h.name};`,
316
+ h.assignedElements()
317
+ ), w(() => {
318
+ d.dispatchEvent(
319
+ new CustomEvent("handleSlotContext", {
320
+ detail: m()
321
+ })
322
+ );
323
+ }));
324
+ });
325
+ });
326
+ };
327
+ i.fake = !0, i.component = new WeakRef(this), this.effectSet.add(new WeakRef(i)), w(i, { name: "FAKE_wrapperEffect" });
328
+ }
329
+ disconnectedCallback() {
330
+ this.allSlotContent = [], this.slotContent = {}, this.htmlSlotContent = {}, this.effectSet.forEach((i) => {
331
+ var c, a;
332
+ return (a = (c = i.deref()) == null ? void 0 : c.destroy) == null ? void 0 : a.call(c);
333
+ }), this.effectSet.clear(), this.shadow.replaceChildren(), this.replaceChildren(), G(this, s.prototype.disconnectedCallback);
334
+ }
335
+ }
336
+ return f(o, "observedAttributes", s.prototype[P] ?? []), f(o, "renderTagName", e), o.toString = () => e, customElements.get(e) ? console.error(
337
+ `название тега ${e} повторяется, компонент ${s.name} не зарегистрирован`
338
+ ) : customElements.define(e, o), s.renderTagName = e, s;
339
+ };
340
+ class _ extends HTMLElement {
341
+ constructor(s = !1) {
342
+ super();
343
+ f(this, "init");
344
+ f(this, "isSlotLazyLoading", !1);
345
+ f(this, "slotTemplate");
346
+ f(this, "slotContext");
347
+ f(this, "rootStyle");
348
+ f(this, "modelValue");
349
+ f(this, "providers");
350
+ f(this, "effectSet", /* @__PURE__ */ new Set());
351
+ f(this, "appendAllSlotContent");
352
+ f(this, "allSlotContent", []);
353
+ f(this, "slotContent", {});
354
+ f(this, "htmlSlotContent", {});
355
+ f(this, "shadow");
356
+ f(this, "injects", {});
357
+ this.shadow = this.attachShadow({ mode: s ? "closed" : "open" });
358
+ }
359
+ // @ts-expect-error - appendChild is not defined in the HTMLElement interface
360
+ appendChild(s, n = !0) {
361
+ var o;
362
+ if (this.isSlotLazyLoading && n) {
363
+ if (s instanceof HTMLElement) {
364
+ const r = s.slot || "default";
365
+ this.htmlSlotContent[r] || (this.htmlSlotContent[r] = []), (o = this.htmlSlotContent[r]) == null || o.push(s);
366
+ }
367
+ } else return super.appendChild(s);
368
+ }
369
+ appendSlotContent() {
370
+ var s;
371
+ (s = this.appendAllSlotContent) == null || s.call(this);
372
+ }
373
+ inject(s) {
374
+ return C("%cinject%c", s), this.injects[s] || (this.injects[s] = j(null)), this.injects[s];
375
+ }
376
+ checkInjects() {
377
+ Object.entries(this.injects).forEach(([s, n]) => {
378
+ C(
379
+ "%cinject%c",
380
+ `%c${s}%c`,
381
+ "from BaseElement (dispatch event)"
382
+ ), this.shadow.dispatchEvent(
383
+ new CustomEvent(s, {
384
+ detail: {
385
+ context: s,
386
+ callback: (o) => w(() => {
387
+ n.set(o());
388
+ }, { name: s })
389
+ },
390
+ bubbles: !0,
391
+ composed: !0
392
+ })
393
+ );
394
+ });
395
+ }
396
+ setReactiveValue(s) {
397
+ this.modelValue = s;
398
+ }
399
+ }
400
+ f(_, "observedAttributes", []), f(_, "renderTagName", ""), f(_, "styles");
401
+ const Kt = (e) => "render" in e && "setReactiveValue" in e, pt = "handleSlotContext", X = "onConnected", ot = (e) => typeof e == "string" ? e : JSON.stringify(e), mt = (e) => {
402
+ const t = document.createElement("span");
403
+ return t.textContent = ot(e), t;
404
+ }, rt = (e, t) => (e.appendChild(mt(t)), e), Et = (e, t) => (e.replaceChildren(), rt(e, t)), Q = (e) => {
405
+ const t = document.createElement("span");
406
+ return w(() => {
407
+ const s = e();
408
+ t.textContent = ot(s);
409
+ }), t;
410
+ };
411
+ class it {
412
+ constructor(t) {
413
+ f(this, "wrapper");
414
+ f(this, "keyedEffects", /* @__PURE__ */ new Map());
415
+ f(this, "append", (...t) => (t.forEach((s) => {
416
+ var o;
417
+ const n = s.hostElement;
418
+ n && ((o = this.hostElement) == null || o.appendChild(n), X in n && setTimeout(() => {
419
+ var r;
420
+ (r = n.onConnected) == null || r.call(
421
+ n,
422
+ s,
423
+ n
424
+ );
425
+ }));
426
+ }), this));
427
+ f(this, "set", (...t) => {
428
+ var n;
429
+ this.clear();
430
+ const s = document.createDocumentFragment();
431
+ return t.forEach((o) => {
432
+ const r = o.hostElement;
433
+ r && s.appendChild(r);
434
+ }), (n = this.hostElement) == null || n.appendChild(s), this;
435
+ });
436
+ f(this, "removeChild", (...t) => (t.forEach((s) => {
437
+ var n, o;
438
+ if (Array.from(((n = this.hostElement) == null ? void 0 : n.childNodes.values()) || []).some(
439
+ (r) => r === s.hostElement
440
+ )) {
441
+ const r = s.hostElement;
442
+ r && ((o = this.hostElement) == null || o.removeChild(r));
443
+ }
444
+ }), this));
445
+ f(this, "addHtmlContent", (t) => {
446
+ const s = this.hostElement;
447
+ return s ? (rt(s, t), this) : this;
448
+ });
449
+ f(this, "setHtmlContent", (t) => {
450
+ const s = this.hostElement;
451
+ return s ? (Et(s, t), this) : this;
452
+ });
453
+ f(this, "setAttribute", (t, s) => {
454
+ var r;
455
+ C("setAttribute", t, s);
456
+ const n = this.hostElement;
457
+ if (!n) return this;
458
+ let o;
459
+ if ((typeof s == "boolean" || s === null) && !(n instanceof _))
460
+ if (s)
461
+ o = "";
462
+ else {
463
+ this.removeAttribute(t);
464
+ const i = t.toLowerCase();
465
+ return i in n && (n[i] = null), this;
466
+ }
467
+ else typeof s != "string" ? o = JSON.stringify(s) : o = s;
468
+ if ((r = this.hostElement) == null || r.setAttribute(N(t), o), !(n instanceof _)) {
469
+ const i = t.toLowerCase();
470
+ i in n && (n[i] = s);
471
+ }
472
+ return this;
473
+ });
474
+ f(this, "setCustomAttribute", (t, s) => {
475
+ var o;
476
+ let n;
477
+ return typeof s != "string" ? n = JSON.stringify(s) : n = s, (o = this.hostElement) == null || o.setAttribute(N(t), n), this;
478
+ });
479
+ f(this, "setReactiveAttribute", (t, s) => (this.addEffect((n) => {
480
+ C("setReactiveAttribute effect", t, s), n.setAttribute(t, s());
481
+ }, t), this));
482
+ f(this, "setReactiveCustomAttribute", (t, s) => (this.addEffect((n) => {
483
+ n.setCustomAttribute(t, s());
484
+ }), this));
485
+ f(this, "removeAttribute", (t) => {
486
+ var s;
487
+ return (s = this.hostElement) == null || s.removeAttribute(N(t)), this;
488
+ });
489
+ f(this, "addStyle", (t) => {
490
+ const s = this.hostElement;
491
+ return s ? (Object.entries(t).forEach(([n, o]) => {
492
+ const r = n.startsWith("--");
493
+ typeof o == "function" ? this.addEffect(() => {
494
+ if (r) {
495
+ const i = String(o() || "");
496
+ s.style.setProperty(n, i);
497
+ } else
498
+ s.style[n] = o();
499
+ }) : typeof o == "string" && (r ? s.style.setProperty(n, o) : s.style[n] = o);
500
+ }), this) : this;
501
+ });
502
+ f(this, "onConnected", (t) => this.hostElement ? (Reflect.defineProperty(this.hostElement, X, {
503
+ get() {
504
+ return t;
505
+ }
506
+ }), this) : this);
507
+ f(this, "addClass", (...t) => (t.forEach((s) => {
508
+ var n;
509
+ typeof s == "string" ? (n = this.hostElement) == null || n.classList.add(
510
+ ...s.split(" ").flatMap((o) => o.split(`
511
+ `)).map((o) => o.trim()).filter(Boolean)
512
+ ) : (() => {
513
+ let o = null;
514
+ this.addEffect(() => {
515
+ const r = s();
516
+ r.length > 0 && (o ? this.replaceClass(o, r) : this.addClass(r), o = r);
517
+ });
518
+ })();
519
+ }), this));
520
+ f(this, "setClass", (...t) => {
521
+ var s, n, o;
522
+ return (n = this.hostElement) == null || n.classList.remove(...((s = this.hostElement) == null ? void 0 : s.classList) || []), (o = this.hostElement) == null || o.classList.add(...t), this;
523
+ });
524
+ f(this, "addReactiveClass", (t) => (Object.keys(t).forEach((s) => {
525
+ this.addEffect((n) => {
526
+ t[s]() ? n.addClass(s) : n.removeClass(s);
527
+ });
528
+ }), this));
529
+ f(this, "removeClass", (...t) => {
530
+ var s;
531
+ return (s = this.hostElement) == null || s.classList.remove(...t), this;
532
+ });
533
+ f(this, "replaceClass", (t, s) => {
534
+ var n;
535
+ return (n = this.hostElement) == null || n.classList.replace(t, s), this;
536
+ });
537
+ f(this, "addEffect", (t, s) => {
538
+ var r, i;
539
+ const n = this.hostElement;
540
+ if (!n) return this;
541
+ const o = () => t(this, n);
542
+ if (s) {
543
+ const c = (r = this.keyedEffects.get(s)) == null ? void 0 : r.deref();
544
+ c && U(c);
545
+ }
546
+ return (i = n.effectSet) == null || i.add(new WeakRef(o)), o.component = this.wrapper, w(o, { name: (s == null ? void 0 : s.toString()) || n.tagName }), this;
547
+ });
548
+ f(this, "addReactiveContent", (t) => {
549
+ var s;
550
+ return (s = this.hostElement) == null || s.appendChild(Q(t)), this;
551
+ });
552
+ f(this, "setReactiveContent", (t) => {
553
+ var s;
554
+ return this.clear(), (s = this.hostElement) == null || s.appendChild(Q(t)), this;
555
+ });
556
+ f(this, "clear", () => {
557
+ var t;
558
+ return (t = this.hostElement) == null || t.replaceChildren(), this;
559
+ });
560
+ this.wrapper = t;
561
+ const s = t.deref();
562
+ s && (s.effectSet = /* @__PURE__ */ new Set());
563
+ }
564
+ get hostElement() {
565
+ return this.wrapper.deref();
566
+ }
567
+ addEventlistener(t, s, n = !1) {
568
+ var o;
569
+ return (o = this.hostElement) == null || o.addEventListener(
570
+ t,
571
+ (r) => s(r, this, this.hostElement),
572
+ n
573
+ ), this;
574
+ }
575
+ }
576
+ class Ct extends it {
577
+ constructor() {
578
+ super(...arguments);
579
+ f(this, "setReactiveValue", (s) => (this.hostElement instanceof _ && this.hostElement.setReactiveValue(s), this));
580
+ f(this, "setSlotTemplate", (s) => {
581
+ var o;
582
+ const n = (o = this.hostElement) == null ? void 0 : o.slotTemplate;
583
+ return n && Object.entries(s).forEach(([r, i]) => {
584
+ n[r] = i;
585
+ }), this;
586
+ });
587
+ }
588
+ }
589
+ const Ut = () => () => {
590
+ }, bt = (e) => new Ct(new WeakRef(e)), St = (e) => new it(new WeakRef(e)), yt = (e, ...t) => ({
591
+ classList: [...e.map((s) => s.trim()).filter(Boolean), ...t]
592
+ }), Yt = (e, ...t) => yt(e, ...t), ct = (e, t) => {
593
+ var o;
594
+ if (!t || !e.deref()) return;
595
+ const s = Object.keys(t || {}).filter(
596
+ (r) => r.startsWith(".") || r.startsWith("@") || r.startsWith("$")
597
+ );
598
+ s.filter((r) => r.startsWith(".")).forEach((r) => {
599
+ t != null && t.attributes || (t.attributes = {}), t.attributes[r.slice(1)] = t[r];
600
+ }), s.filter((r) => r.startsWith("@")).forEach((r) => {
601
+ t != null && t.listeners || (t.listeners = {});
602
+ const i = r.slice(1);
603
+ t.listeners[i] = t[r];
604
+ }), s.filter((r) => r.startsWith("$")).forEach((r) => {
605
+ t != null && t.effects || (t.effects = []), t.effects.push(t[r]);
606
+ });
607
+ const n = e.deref();
608
+ if (n)
609
+ return Rt(n, t.classList), Lt(n, t.style), It(n, t.attributes), gt(n, t.reactiveClassList), At(n, t.customAttributes), vt(n, t.children), wt(n, t.effects), tt(n, t.listeners), tt(n, t.customListeners), (o = t.ref) == null || o.set(n), n;
610
+ }, tt = (e, t) => {
611
+ t && Object.entries(t).forEach(([s, n]) => {
612
+ typeof n == "function" && e.addEventlistener(s, n);
613
+ });
614
+ }, wt = (e, t) => t == null ? void 0 : t.forEach((s) => e.addEffect(s)), vt = (e, t) => D(new WeakRef(e), ...t || []) ?? e, At = (e, t) => {
615
+ const s = t;
616
+ s && Object.keys(s).forEach((n) => {
617
+ g(s[n]) ? e.setReactiveCustomAttribute(n, s[n]) : typeof s[n] == "function" ? e.addEffect(() => {
618
+ e.setCustomAttribute(n, s[n]());
619
+ }) : e.setCustomAttribute(n, s[n]);
620
+ });
621
+ }, Rt = (e, t) => e.addClass(...t || []), gt = (e, t) => e.addReactiveClass(t || {}), Lt = (e, t) => e.addStyle(t || {}), It = (e, t) => {
622
+ const s = t, n = (o, r) => {
623
+ r !== void 0 && (C("addAttribute", o, r), g(r) ? e.setReactiveAttribute(o, r) : typeof r == "function" ? e.addEffect(() => {
624
+ e.setAttribute(o, r());
625
+ }) : e.setAttribute(o, r));
626
+ };
627
+ s && Object.keys(s).forEach((o) => {
628
+ n(o, s[o]);
629
+ });
630
+ }, D = (e, ...t) => {
631
+ const s = e.deref();
632
+ if (s)
633
+ return t.forEach((n) => {
634
+ typeof n == "string" ? n.trim().length > 0 && s.addHtmlContent(n) : g(n) ? s.addReactiveContent(n) : s.append(n);
635
+ }), s;
636
+ }, W = (e, t) => {
637
+ const s = document.createElement(e), n = St(s);
638
+ return ct(new WeakRef(n), t) ?? n;
639
+ }, Y = (e, t) => {
640
+ const [s, ...n] = e.split(" ").map((r) => r.trim()), o = W(s, t);
641
+ return n.length > 0 && o.addClass(...n), (...r) => D(
642
+ new WeakRef(o),
643
+ ...r.filter(Boolean).flat().flatMap(
644
+ (i) => typeof i == "function" && !g(i) ? O(() => i(o)) : i
645
+ )
646
+ ) ?? o;
647
+ }, O = (e) => {
648
+ const t = `getSignalContent_${Math.random().toString(36).substring(2, 15)}`;
649
+ return W("div").addStyle({ display: "contents" }).addEffect((s) => {
650
+ s.clear(), D(new WeakRef(s), ...[e()].flat());
651
+ }, t);
652
+ }, Zt = (e, t, s) => {
653
+ const n = W("div").addStyle({ display: "contents" }), o = /* @__PURE__ */ new Map(), r = /* @__PURE__ */ new Map(), i = /* @__PURE__ */ new Map(), c = /* @__PURE__ */ new Map();
654
+ let a = [];
655
+ const b = /* @__PURE__ */ new Set();
656
+ let h = e.peek();
657
+ const d = (u) => {
658
+ b.delete(u), o.delete(u), r.delete(u), i.delete(u), c.delete(u);
659
+ }, m = (u) => {
660
+ if (!c.has(u)) {
661
+ const y = a.indexOf(u);
662
+ return c.set(u, y), y;
663
+ }
664
+ return c.get(u);
665
+ }, p = (u, y, x) => Array.from(x.children).indexOf(u) !== y;
666
+ return w(() => {
667
+ const u = e(), y = u.map(t).map((E) => typeof E == "string" ? E : E.toString()), x = new Set(y);
668
+ c.clear(), y.forEach((E, S) => {
669
+ c.set(E, S);
670
+ }), a = y;
671
+ const L = n.hostElement;
672
+ if (!L) return;
673
+ C(
674
+ "containerChildren",
675
+ Array.from(L.children),
676
+ a
677
+ );
678
+ const H = [];
679
+ Array.from(L.children).forEach((E) => {
680
+ const S = E.dataset.key;
681
+ S && !x.has(S) && H.push(E);
682
+ }), H.forEach((E) => {
683
+ const S = E.dataset.key;
684
+ C("remove element", S, E), E.remove(), d(S);
685
+ }), y.forEach((E, S) => {
686
+ var v;
687
+ const A = u[S], T = h[S];
688
+ if (!o.has(E))
689
+ C("create new element", E, A), o.set(
690
+ E,
691
+ j(Math.random().toString(36).substring(2, 15))
692
+ ), r.set(
693
+ E,
694
+ () => s(A, S, u).setCustomAttribute("data-key", E)
695
+ );
696
+ else if (T && JSON.stringify(A) !== JSON.stringify(T)) {
697
+ const R = i.get(E);
698
+ (v = o.get(E)) == null || v.set(Math.random().toString(36).substring(2, 15)), r.set(
699
+ E,
700
+ () => s(A, S, u).setCustomAttribute("data-key", E)
701
+ ), R && R.parentNode && C("mark element for update", E);
702
+ }
703
+ }), h = [...u.map((E) => ({ ...E }))];
704
+ const B = () => {
705
+ o.forEach((E, S) => {
706
+ C("key from setTimeout foreach currItemSignalMap", S), b.has(S) || (b.add(S), w(() => {
707
+ var Z;
708
+ E();
709
+ const A = m(S), T = (Z = r.get(S)) == null ? void 0 : Z();
710
+ if (!T || !T.hostElement) return;
711
+ const v = n.hostElement, R = T.hostElement;
712
+ if (!v) return;
713
+ C("call effect from setTimeout", S, R);
714
+ const I = i.get(S);
715
+ if (I && I.parentNode === v) {
716
+ if (p(I, A, v)) {
717
+ const $ = v.children[A];
718
+ $ && $ !== I ? v.insertBefore(I, $) : $ || v.appendChild(I);
719
+ }
720
+ R !== I && (I.replaceWith(R), i.set(S, R));
721
+ } else if (i.set(S, R), A < v.children.length) {
722
+ const $ = v.children[A];
723
+ $ ? v.insertBefore(R, $) : v.appendChild(R);
724
+ } else
725
+ v.appendChild(R);
726
+ }));
727
+ });
728
+ };
729
+ Promise.resolve().then(() => B());
730
+ }), n;
731
+ }, Xt = (e) => {
732
+ let t = [W("div")], s = !1;
733
+ return w(() => {
734
+ var r, i;
735
+ const n = e();
736
+ s = Array.isArray(n);
737
+ const o = [];
738
+ o.push(...[n].flat()), o.length === 0 && o.push(
739
+ W("div").addStyle({ display: "none" }).setAttribute("id", "empty_template")
740
+ );
741
+ try {
742
+ C(
743
+ "newReactiveComponent.map",
744
+ o.map((c) => {
745
+ var a;
746
+ return C("newReactiveComponent hostElement", c.hostElement), (a = c.hostElement) == null ? void 0 : a.id;
747
+ })
748
+ ), C(
749
+ "currComponent[0].hostElement?.id",
750
+ (r = t[0].hostElement) == null ? void 0 : r.id,
751
+ t
752
+ ), (i = t[0].hostElement) == null || i.replaceWith(
753
+ ...o.map((c) => c.hostElement).filter(Boolean)
754
+ ), t.slice(1).forEach((c) => {
755
+ var a;
756
+ return (a = c.hostElement) == null ? void 0 : a.remove();
757
+ }), t = o;
758
+ } catch (c) {
759
+ console.error(c);
760
+ }
761
+ }), s ? t : t[0];
762
+ }, Qt = (e) => pt in e, te = (e) => {
763
+ const t = Y("div")().addStyle({ display: "contents" }), s = (n) => {
764
+ const o = t.hostElement;
765
+ return o && (o.innerHTML = n), t;
766
+ };
767
+ return typeof e == "string" ? s(e) : t.addEffect(() => {
768
+ s(e());
769
+ }), t;
770
+ }, lt = (e, t, s) => e ? O(t) : s ? O(s) : Y("div")().setAttribute("id", "empty_div_renderIf").addStyle({ display: "none" }), Mt = (e, t, s) => O(() => lt(!!e(), t, s)), ee = (e, t, s) => typeof e == "boolean" ? lt(e, t, s) : Mt(e, t, s), et = (e, t) => O(t).addEffect((s, n) => {
771
+ if (typeof e == "boolean")
772
+ n.style.display = e ? "block" : "none";
773
+ else {
774
+ const o = e() ? "block" : "none";
775
+ n.style.display = o;
776
+ }
777
+ }), se = (e, t, s) => {
778
+ const n = [
779
+ et(e, t)
780
+ ].flat();
781
+ return s && n.push(
782
+ ...[
783
+ et(
784
+ () => typeof e == "boolean" ? !e : !e(),
785
+ s
786
+ )
787
+ ].flat()
788
+ ), O(() => n);
789
+ }, Ot = (e, t) => {
790
+ C("createCustomElement", e);
791
+ const s = document.createElement(e), n = bt(s);
792
+ return s.init = () => {
793
+ ct(new WeakRef(n), t);
794
+ }, n;
795
+ }, jt = (e, t) => {
796
+ const s = e.split(" ").slice(1).map((o) => o.trim()), n = Ot(e.split(" ")[0], t);
797
+ return Array.isArray(s) && s.length > 0 && n.addClass(...s), (...o) => {
798
+ const r = o.filter(Boolean).flat().flatMap(
799
+ (c) => typeof c == "function" && !g(c) ? O(() => c(n)) : c
800
+ ), i = n.hostElement;
801
+ return i && (i.allSlotContent = r, i.slotContent = r.filter(ht).reduce(
802
+ (c, a) => {
803
+ var h;
804
+ const b = ((h = a.hostElement) == null ? void 0 : h.getAttribute("slot")) || "default";
805
+ return c[b] || (c[b] = []), c[b].push(a), c;
806
+ },
807
+ {}
808
+ ), i.appendAllSlotContent = () => {
809
+ D(new WeakRef(n), ...r);
810
+ }), n;
811
+ };
812
+ }, $t = (e, t, s) => jt(
813
+ `${e.renderTagName}${t && typeof t == "string" ? " " + t : ""}`,
814
+ F(t) ? t : t && typeof t == "string" ? s : void 0
815
+ ), ne = () => {
816
+ const e = () => {
817
+ };
818
+ return e.oldValue = null, e;
819
+ }, oe = () => ({}), Tt = (e, t, s) => {
820
+ const n = t ? nt(t, s)(e) : e;
821
+ return (o, ...r) => {
822
+ const i = [...r];
823
+ return o && !F(o) && i.unshift(o), $t(n, F(o) ? o : {})(...i);
824
+ };
825
+ }, re = (e) => [
826
+ Tt(e),
827
+ (t, s) => {
828
+ nt(t, s)(e);
829
+ }
830
+ ], l = {}, _t = [
831
+ "div",
832
+ "span",
833
+ "section",
834
+ "input",
835
+ "button",
836
+ "table",
837
+ "tr",
838
+ "td",
839
+ "th",
840
+ "ul",
841
+ "li",
842
+ "ol",
843
+ "form",
844
+ "label",
845
+ "select",
846
+ "option",
847
+ "textarea",
848
+ "img",
849
+ "a",
850
+ "p",
851
+ "h1",
852
+ "h2",
853
+ "h3",
854
+ "h4",
855
+ "h5",
856
+ "h6",
857
+ "br",
858
+ "hr",
859
+ "pre",
860
+ "code",
861
+ "nav",
862
+ "header",
863
+ "footer",
864
+ "main",
865
+ "aside",
866
+ "article",
867
+ "figure",
868
+ "figcaption",
869
+ "blockquote",
870
+ "cite",
871
+ "small",
872
+ "strong",
873
+ "em",
874
+ "b",
875
+ "i",
876
+ "u",
877
+ "s",
878
+ "sub",
879
+ "sup",
880
+ "mark",
881
+ "del",
882
+ "ins",
883
+ "details",
884
+ "summary",
885
+ "progress",
886
+ "meter",
887
+ "audio",
888
+ "video",
889
+ "canvas",
890
+ "slot"
891
+ ];
892
+ _t.forEach((e) => {
893
+ l[e] = (t, ...s) => {
894
+ let n = [...s];
895
+ return t && !F(t) && (n = [t].concat(n)), Y(e, F(t) ? t : {})(...n);
896
+ };
897
+ });
898
+ const Wt = l.div, ie = l.span, ce = l.section, le = l.input, ae = l.button, de = l.table, he = l.tr, fe = l.td, ue = l.th, pe = l.ul, me = l.li, Ee = l.ol, Ce = l.form, be = l.label, Se = l.select, ye = l.option, we = l.textarea, ve = l.img, Ae = l.a, Re = l.p, ge = l.h1, Le = l.h2, Ie = l.h3, Me = l.h4, Oe = l.h5, je = l.h6, $e = l.br, Te = l.hr, _e = l.pre, We = l.code, xe = l.nav, He = l.header, ke = l.footer, Pe = l.main, Fe = l.aside, Be = l.article, Ve = l.figure, Ne = l.figcaption, qe = l.blockquote, Je = l.cite, ze = l.small, De = l.strong, Ge = l.em, Ke = l.b, Ue = l.i, Ye = l.u, Ze = l.s, Xe = l.sub, Qe = l.sup, ts = l.mark, es = l.del, ss = l.ins, ns = l.details, os = l.summary, rs = l.progress, is = l.meter, cs = l.audio, ls = l.video, as = l.canvas, ds = l.slot, hs = (e) => (t) => e(t).addClass(...t.classList ?? []).addReactiveClass(t.reactiveClassList ?? {});
899
+ function xt(e, t) {
900
+ let s = 0;
901
+ return (...n) => {
902
+ const o = Date.now();
903
+ o - s >= t && (e(...n), s = o);
904
+ };
905
+ }
906
+ const fs = (e, t) => O(() => {
907
+ const s = e();
908
+ let n = null;
909
+ return s.map(
910
+ (o, r) => Wt(
911
+ {
912
+ "@dragstart": (i, c, a) => {
913
+ n = a;
914
+ },
915
+ "@dragend": (i, c, a) => {
916
+ a.style.transform = "", a.removeAttribute("draggable");
917
+ },
918
+ "@mousedown": (i, c, a) => {
919
+ a.style.transform = "translateZ(0)", a.setAttribute("draggable", "true");
920
+ },
921
+ "@dragover": (i) => {
922
+ i.preventDefault();
923
+ },
924
+ "@dragenter": xt((i, c, a) => {
925
+ var b, h, d;
926
+ if (i.preventDefault(), n) {
927
+ let m = n, p = a;
928
+ const u = ((b = n.getClientRects().item(0)) == null ? void 0 : b.y) ?? 0, y = ((h = a.getClientRects().item(0)) == null ? void 0 : h.y) ?? 0;
929
+ u < y && ([m, p] = [a, n]), (d = a.parentElement) == null || d.insertBefore(m, p);
930
+ }
931
+ }, 200)
932
+ },
933
+ t(o, r, [...e.peek()])
934
+ )
935
+ );
936
+ }), us = (e, t, s) => {
937
+ let n = [], o = [];
938
+ const r = W("div").addStyle({ display: "contents" }), i = /* @__PURE__ */ new Map(), c = /* @__PURE__ */ new Map();
939
+ return w(() => {
940
+ const a = e(), b = a.map(t);
941
+ o.filter((d) => !b.includes(d)).forEach((d) => {
942
+ var m, p;
943
+ i.delete(d), (p = (m = r.hostElement) == null ? void 0 : m.querySelector(`[data-key="${d}"]`)) == null || p.remove();
944
+ }), b.forEach((d, m) => {
945
+ o.includes(d) || i.set(
946
+ d,
947
+ () => s(a[m], m, a).setCustomAttribute(
948
+ "data-key",
949
+ d
950
+ )
951
+ );
952
+ }), b.forEach((d, m) => {
953
+ var p;
954
+ if (o.includes(d)) {
955
+ JSON.stringify(n[o.indexOf(d)]) !== JSON.stringify(a[m]) && ((p = c.get(d)) == null || p.set({
956
+ templateFunc: () => s(a[m], m, a),
957
+ items: a,
958
+ itemsKey: b,
959
+ index: m
960
+ }));
961
+ return;
962
+ }
963
+ c.set(
964
+ d,
965
+ j({
966
+ templateFunc: () => s(a[m], m, a),
967
+ items: a,
968
+ itemsKey: b,
969
+ index: m
970
+ })
971
+ ), queueMicrotask(() => {
972
+ w(() => {
973
+ var H, B, E;
974
+ const { templateFunc: u, index: y } = ((H = c.get(d)) == null ? void 0 : H()) ?? {}, x = (B = r.hostElement) == null ? void 0 : B.querySelector(
975
+ `[data-key="${d}"]`
976
+ ), L = (u == null ? void 0 : u().setCustomAttribute("data-key", d).hostElement) ?? document.createElement("div");
977
+ x ? (E = r.hostElement) == null || E.childNodes.forEach((S, A) => {
978
+ S instanceof HTMLElement && S.getAttribute("data-key") === d && (y === A ? (h(
979
+ y ?? 0,
980
+ r.hostElement,
981
+ L
982
+ ), S.remove()) : h(
983
+ y ?? 0,
984
+ r.hostElement,
985
+ L
986
+ ));
987
+ }) : h(y ?? 0, r.hostElement, L);
988
+ });
989
+ });
990
+ });
991
+ const h = (d, m, p) => {
992
+ p && m && (d < m.children.length ? m.insertBefore(p, m.children[d]) : m.appendChild(p));
993
+ };
994
+ o = b, n = [...a];
995
+ }), r;
996
+ };
997
+ export {
998
+ _ as BaseElement,
999
+ Ae as a,
1000
+ It as addAttributeList,
1001
+ Rt as addClassList,
1002
+ At as addCustomAttributes,
1003
+ gt as addReactiveClassList,
1004
+ Lt as addStyleList,
1005
+ D as appendContentItem,
1006
+ Be as article,
1007
+ Fe as aside,
1008
+ cs as audio,
1009
+ Ke as b,
1010
+ Nt as bindReactiveSignals,
1011
+ qe as blockquote,
1012
+ $e as br,
1013
+ ae as button,
1014
+ N as camelToKebab,
1015
+ as as canvas,
1016
+ G as checkCall,
1017
+ Pt as checkRef,
1018
+ Je as cite,
1019
+ yt as classList,
1020
+ Yt as cls,
1021
+ We as code,
1022
+ V as colorLog,
1023
+ Jt as combineLatest,
1024
+ nt as component,
1025
+ re as configCustomComponent,
1026
+ hs as createComponent,
1027
+ $t as createCustom,
1028
+ jt as createCustomEl,
1029
+ Ot as createCustomElement,
1030
+ Y as createEl,
1031
+ W as createElement,
1032
+ Vt as createSignal,
1033
+ bt as customElementHelpers,
1034
+ fs as ddList,
1035
+ oe as defineSlotTemplate,
1036
+ es as del,
1037
+ ns as details,
1038
+ ut as disableLogs,
1039
+ Wt as div,
1040
+ w as effect,
1041
+ St as elementHelpers,
1042
+ Ge as em,
1043
+ kt as enableLogs,
1044
+ Gt as event,
1045
+ Ut as eventEmitter,
1046
+ Ne as figcaption,
1047
+ Ve as figure,
1048
+ zt as firstUpdate,
1049
+ ke as footer,
1050
+ qt as forkJoin,
1051
+ Ce as form,
1052
+ us as getList,
1053
+ O as getSignalContent,
1054
+ ge as h1,
1055
+ Le as h2,
1056
+ Ie as h3,
1057
+ Me as h4,
1058
+ Oe as h5,
1059
+ je as h6,
1060
+ He as header,
1061
+ Te as hr,
1062
+ Ue as i,
1063
+ ve as img,
1064
+ ct as initComponent,
1065
+ le as input,
1066
+ ss as ins,
1067
+ Kt as isBaseElement,
1068
+ ht as isComponentConfig,
1069
+ F as isComponentInitConfig,
1070
+ g as isReactiveSignal,
1071
+ Qt as isSlotTemplate,
1072
+ ft as kebabToCamel,
1073
+ be as label,
1074
+ me as li,
1075
+ Pe as main,
1076
+ ts as mark,
1077
+ is as meter,
1078
+ xe as nav,
1079
+ ne as newEventEmitter,
1080
+ Ee as ol,
1081
+ Zt as oldGetList,
1082
+ ye as option,
1083
+ Re as p,
1084
+ _e as pre,
1085
+ rs as progress,
1086
+ C as projectLog,
1087
+ Dt as property,
1088
+ U as removeEffect,
1089
+ lt as renderIf,
1090
+ Bt as rs,
1091
+ Mt as rxRenderIf,
1092
+ Ze as s,
1093
+ ce as section,
1094
+ Se as select,
1095
+ vt as setChildren,
1096
+ wt as setEffects,
1097
+ tt as setListeners,
1098
+ Ft as sheduleEffect,
1099
+ se as show,
1100
+ et as showIf,
1101
+ j as signal,
1102
+ Xt as signalComponent,
1103
+ ds as slot,
1104
+ ze as small,
1105
+ ie as span,
1106
+ De as strong,
1107
+ Xe as sub,
1108
+ os as summary,
1109
+ Qe as sup,
1110
+ de as table,
1111
+ fe as td,
1112
+ we as textarea,
1113
+ ue as th,
1114
+ he as tr,
1115
+ Ye as u,
1116
+ pe as ul,
1117
+ te as unsafeHtml,
1118
+ Tt as useCustomComponent,
1119
+ ls as video,
1120
+ ee as when
1121
+ };