@manyducks.co/dolla 2.0.0-alpha.56 → 2.0.0-alpha.57

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 CHANGED
@@ -101,7 +101,10 @@ function MessageStore(options, ctx) {
101
101
  }
102
102
 
103
103
  function App(props, ctx) {
104
- const { message, setMessage } = ctx.provide(MessageStore);
104
+ // Provide a store for this and all child views.
105
+ ctx.addStore(MessageStore);
106
+
107
+ const { message, setMessage } = ctx.getStore(MessageStore);
105
108
  // Provides a MessageStore on this context and any child contexts.
106
109
  // When a store is provided its value is returned right away.
107
110
 
@@ -123,7 +126,7 @@ function App(props, ctx) {
123
126
  }
124
127
 
125
128
  function MessageView(props, ctx) {
126
- const { message } = ctx.get(MessageStore);
129
+ const { message } = ctx.getStore(MessageStore);
127
130
  // Gets the nearest instance of MessageStore. In this case the one provided at the parent.
128
131
 
129
132
  return <span>{message}</span>;
package/dist/index.js CHANGED
@@ -1,8 +1,8 @@
1
1
  import { o as h } from "./logger-sSxIw5od.js";
2
2
  import { $ as k, f as D, d as F, e as I, g as _, b as q, p as v, c as B, h as V, i as $, s as P, a as S } from "./logger-sSxIw5od.js";
3
- import { m as t, w as y, C as s, L as i, r as u } from "./markup-DS7yYBga.js";
4
- import { c as z, p as A, a as Y, u as G } from "./markup-DS7yYBga.js";
5
- import { R as p, M as w, U as b } from "./router-D43DV_bv.js";
3
+ import { m as t, w as y, C as s, L as i, r as u } from "./markup-CAJd0zdA.js";
4
+ import { c as z, p as A, a as Y, u as G } from "./markup-CAJd0zdA.js";
5
+ import { R as p, M as w, U as b } from "./router-ClSFnmRK.js";
6
6
  import { a as x } from "./typeChecking-BJ-ymQ2F.js";
7
7
  const c = Symbol("Ref.EMPTY");
8
8
  function C(e = c) {
@@ -1,4 +1,4 @@
1
- import { m as o } from "./markup-DS7yYBga.js";
1
+ import { m as o } from "./markup-CAJd0zdA.js";
2
2
  import { F as m } from "./fragment-BahD_BJA.js";
3
3
  function f(e, r, t, n, l, u) {
4
4
  const i = { ...s(["children", "key"], r) }, c = Array.isArray(r.children) ? r.children : [r.children];
@@ -1,4 +1,4 @@
1
- import { m as t } from "./markup-DS7yYBga.js";
1
+ import { m as t } from "./markup-CAJd0zdA.js";
2
2
  import { F as m } from "./fragment-BahD_BJA.js";
3
3
  function d(e, n, i) {
4
4
  return t(e, n ? { ...u(["children", "key"], n) } : void 0, n.children);
@@ -5,24 +5,24 @@ var P = (o) => {
5
5
  var tt = (o, t, e) => t in o ? Y(o, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : o[t] = e;
6
6
  var c = (o, t, e) => tt(o, typeof t != "symbol" ? t + "" : t, e), C = (o, t, e) => t.has(o) || P("Cannot " + e);
7
7
  var d = (o, t, e) => (C(o, t, "read from private field"), e ? e.call(o) : t.get(o)), L = (o, t, e) => t.has(o) ? P("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(o) : t.set(o, e), v = (o, t, e, s) => (C(o, t, "write to private field"), s ? s.call(o, e) : t.set(o, e), e);
8
- import { c as u, t as et, g as z, b as U, i as F } from "./typeChecking-BJ-ymQ2F.js";
9
- import { p as k, f as st, g, j as R, e as p, b as it, k as nt, $ as O, d as ot } from "./logger-sSxIw5od.js";
10
- var m = /* @__PURE__ */ ((o) => (o[o.WILL_MOUNT = 0] = "WILL_MOUNT", o[o.DID_MOUNT = 1] = "DID_MOUNT", o[o.WILL_UNMOUNT = 2] = "WILL_UNMOUNT", o[o.DID_UNMOUNT = 3] = "DID_UNMOUNT", o))(m || {}), l;
8
+ import { c as u, t as et, g as H, b as T, i as z } from "./typeChecking-BJ-ymQ2F.js";
9
+ import { p as k, f as st, g as y, j as F, e as p, b as it, k as nt, $ as O, d as ot } from "./logger-sSxIw5od.js";
10
+ var m = /* @__PURE__ */ ((o) => (o[o.WILL_MOUNT = 0] = "WILL_MOUNT", o[o.DID_MOUNT = 1] = "DID_MOUNT", o[o.WILL_UNMOUNT = 2] = "WILL_UNMOUNT", o[o.DID_UNMOUNT = 3] = "DID_UNMOUNT", o))(m || {}), h;
11
11
  class rt {
12
12
  constructor() {
13
13
  c(this, "state", 0);
14
14
  c(this, "dependents", 0);
15
- L(this, l, {});
15
+ L(this, h, {});
16
16
  }
17
17
  on(t, e) {
18
- d(this, l)[t] ? d(this, l)[t].indexOf(e) === -1 && d(this, l)[t].push(e) : d(this, l)[t] = [e];
18
+ d(this, h)[t] ? d(this, h)[t].indexOf(e) === -1 && d(this, h)[t].push(e) : d(this, h)[t] = [e];
19
19
  }
20
20
  off(t, e) {
21
- d(this, l)[t] && (d(this, l)[t].splice(d(this, l)[t].indexOf(e), 1), d(this, l)[t].length === 0 && delete d(this, l)[t]);
21
+ d(this, h)[t] && (d(this, h)[t].splice(d(this, h)[t].indexOf(e), 1), d(this, h)[t].length === 0 && delete d(this, h)[t]);
22
22
  }
23
23
  notify(t) {
24
- if (d(this, l)[t])
25
- for (const e of d(this, l)[t])
24
+ if (d(this, h)[t])
25
+ for (const e of d(this, h)[t])
26
26
  e();
27
27
  }
28
28
  emit(t, e = !1) {
@@ -58,21 +58,21 @@ class rt {
58
58
  ), this.emit(
59
59
  3
60
60
  /* DID_UNMOUNT */
61
- ), v(this, l, {});
61
+ ), v(this, h, {});
62
62
  }
63
63
  }
64
- l = new WeakMap();
65
- var w;
64
+ h = new WeakMap();
65
+ var _;
66
66
  const S = class S {
67
67
  constructor(t, e) {
68
- L(this, w);
68
+ L(this, _);
69
69
  c(this, "_name");
70
70
  c(this, "_lifecycle", new rt());
71
71
  c(this, "_parent");
72
72
  c(this, "_stores");
73
73
  c(this, "_state");
74
- v(this, w, t), this._name = k(t);
75
- const s = st(() => g(d(this, w)), e == null ? void 0 : e.logger), i = Object.getOwnPropertyDescriptors(s);
74
+ v(this, _, t), this._name = k(t);
75
+ const s = st(() => y(d(this, _)), e == null ? void 0 : e.logger), i = Object.getOwnPropertyDescriptors(s);
76
76
  for (const n in i)
77
77
  Object.defineProperty(this, n, i[n]);
78
78
  }
@@ -122,13 +122,13 @@ const S = class S {
122
122
  * Returns the current name of this context.
123
123
  */
124
124
  getName() {
125
- return k(d(this, w));
125
+ return k(d(this, _));
126
126
  }
127
127
  /**
128
128
  * Sets a new name for this context.
129
129
  */
130
130
  setName(t) {
131
- v(this, w, t), this._name = k(t);
131
+ v(this, _, t), this._name = k(t);
132
132
  }
133
133
  addStore(t, e) {
134
134
  var i;
@@ -138,7 +138,7 @@ const S = class S {
138
138
  }
139
139
  const s = S.linked(this, t.name, {
140
140
  bindLifecycleToParent: !0,
141
- logger: { tag: R(), tagName: "uid" }
141
+ logger: { tag: F(), tagName: "uid" }
142
142
  });
143
143
  try {
144
144
  this._stores || (this._stores = /* @__PURE__ */ new Map());
@@ -235,9 +235,9 @@ const S = class S {
235
235
  return this;
236
236
  }
237
237
  };
238
- w = new WeakMap();
238
+ _ = new WeakMap();
239
239
  let f = S;
240
- function wt(o, t) {
240
+ function _t(o, t) {
241
241
  return new f(o, t);
242
242
  }
243
243
  class D extends Error {
@@ -281,7 +281,7 @@ class M {
281
281
  try {
282
282
  const s = this.$slot();
283
283
  k(() => {
284
- this.update(z(s) ? s : [s]);
284
+ this.update(H(s) ? s : [s]);
285
285
  });
286
286
  } catch (s) {
287
287
  this.context.error(s), this.context.crash(s);
@@ -316,13 +316,13 @@ class M {
316
316
  "moveBefore" in t ? t.moveBefore(this.root, e) : t.insertBefore(this.root, e);
317
317
  }
318
318
  }
319
- const H = Symbol("View");
319
+ const R = Symbol("View");
320
320
  var j;
321
321
  j = x;
322
322
  class Z {
323
323
  constructor(t, e, s, i) {
324
324
  c(this, j, !0);
325
- c(this, "uniqueId", R());
325
+ c(this, "uniqueId", F());
326
326
  c(this, "context");
327
327
  c(this, "props");
328
328
  c(this, "fn");
@@ -332,7 +332,7 @@ class Z {
332
332
  tag: this.uniqueId,
333
333
  tagName: "uid"
334
334
  }
335
- }), this.context.setState(H, this), this.props = { ...s, children: i }, this.fn = e;
335
+ }), this.context.setState(R, this), this.props = { ...s, children: i }, this.fn = e;
336
336
  }
337
337
  /*===============================*\
338
338
  || "Public" API ||
@@ -382,7 +382,7 @@ class at {
382
382
  // Prevents 'onClickOutside' handlers from firing in the same cycle in which the element is connected.
383
383
  c(this, "canClickAway", !1);
384
384
  if (this.context = f.linked(t, e), e.toLowerCase() === "svg" && this.context.setState(I, !0), this.context.getState(I, !1) ? this.root = document.createElementNS("http://www.w3.org/2000/svg", e) : this.root = document.createElement(e), it() === "development") {
385
- const n = this.context.getState(H, null);
385
+ const n = this.context.getState(R, null);
386
386
  n && (this.root.dataset.view = n.context.getName());
387
387
  }
388
388
  if (s.ref)
@@ -391,18 +391,18 @@ class at {
391
391
  else
392
392
  throw new Error("Expected ref to be a function. Got: " + s.ref);
393
393
  if (s.mixin) {
394
- const n = z(s.mixin) ? s.mixin : [s.mixin];
394
+ const n = H(s.mixin) ? s.mixin : [s.mixin];
395
395
  for (const r of n)
396
396
  r(
397
397
  this.root,
398
- f.linked(this.context, () => ht(this), {
398
+ f.linked(this.context, () => lt(this), {
399
399
  bindLifecycleToParent: !0,
400
400
  logger: { tagName: r.name === "mixin" ? void 0 : "mixin", tag: r.name }
401
401
  })
402
402
  );
403
403
  }
404
404
  this.props = {
405
- ...nt(["ref", "class", "className", "mixin"], s),
405
+ ...nt(["ref", "mixin", "class", "className"], s),
406
406
  class: s.className ?? s.class
407
407
  }, this.children = i;
408
408
  }
@@ -452,8 +452,8 @@ class at {
452
452
  for (const s in e) {
453
453
  const i = e[s];
454
454
  if (s === "on:clickoutside" || s === "onClickOutside" || s === "onclickoutside") {
455
- const n = (h) => {
456
- this.canClickAway && !t.contains(h.target) && i(h);
455
+ const n = (l) => {
456
+ this.canClickAway && !t.contains(l.target) && i(l);
457
457
  }, r = { capture: !0 };
458
458
  window.addEventListener("click", n, r), this.unsubscribers.push(() => {
459
459
  window.removeEventListener("click", n, r);
@@ -463,16 +463,15 @@ class at {
463
463
  t.addEventListener(n, r), this.unsubscribers.push(() => {
464
464
  t.removeEventListener(n, r);
465
465
  });
466
- } else if (u(i) && ut.includes(s)) {
467
- const n = s.substring(2);
468
- t.addEventListener(n, i), this.unsubscribers.push(() => {
469
- t.removeEventListener(n, i);
466
+ } else if (s.startsWith("on") && u(i) && ut.includes(s.substring(2)))
467
+ t[s] = i, this.unsubscribers.push(() => {
468
+ t[s] = void 0;
470
469
  });
471
- } else if (s.includes("-"))
470
+ else if (s.includes("-"))
472
471
  this.attachProp(i, (n) => {
473
472
  n == null ? t.removeAttribute(s) : t.setAttribute(s, String(n));
474
473
  });
475
- else if (!lt.includes(s))
474
+ else if (!ht.includes(s))
476
475
  if (this.context.getState(I, !1))
477
476
  this.attachProp(i, (n) => {
478
477
  n != null ? t.setAttribute(s, String(e[s])) : t.removeAttribute(s);
@@ -490,6 +489,11 @@ class at {
490
489
  t.htmlFor = n;
491
490
  });
492
491
  break;
492
+ case "innerHTML":
493
+ this.attachProp(i, (n) => {
494
+ t.innerHTML = n;
495
+ });
496
+ break;
493
497
  case "title":
494
498
  this.attachProp(i, (n) => {
495
499
  n == null ? t.removeAttribute(s) : t.setAttribute(s, String(n));
@@ -516,8 +520,8 @@ class at {
516
520
  let r;
517
521
  u(i) ? (t.addEventListener(n, i), this.unsubscribers.push(() => {
518
522
  t.removeEventListener(n, i);
519
- })) : this.attachProp(i, (h) => {
520
- !h && r ? t.removeEventListener(n, r) : h != null && (r && r !== h && t.removeEventListener(n, r), t.addEventListener(n, h)), r = h;
523
+ })) : this.attachProp(i, (l) => {
524
+ !l && r ? t.removeEventListener(n, r) : l != null && (r && r !== l && t.removeEventListener(n, r), t.addEventListener(n, l)), r = l;
521
525
  });
522
526
  } else if (s.startsWith("attr:")) {
523
527
  const n = s.substring(5).toLowerCase();
@@ -538,19 +542,19 @@ class at {
538
542
  if (u(e)) {
539
543
  let n;
540
544
  const r = p(() => {
541
- u(n) && n(), t.style.cssText = "", n = this.applyStyles(t, g(e), s);
545
+ u(n) && n(), t.style.cssText = "", n = this.applyStyles(t, y(e), s);
542
546
  });
543
547
  s.push(r), i.push(r);
544
548
  } else {
545
549
  const n = J(e);
546
550
  for (const r in n) {
547
- const { value: h, priority: b } = n[r];
548
- if (u(h)) {
551
+ const { value: l, priority: b } = n[r];
552
+ if (u(l)) {
549
553
  const a = p(() => {
550
- g(h) ? t.style.setProperty(r, String(g(h)), b) : t.style.removeProperty(r);
554
+ y(l) ? t.style.setProperty(r, String(y(l)), b) : t.style.removeProperty(r);
551
555
  });
552
556
  s.push(a), i.push(a);
553
- } else h != null && t.style.setProperty(r, String(h));
557
+ } else l != null && t.style.setProperty(r, String(l));
554
558
  }
555
559
  }
556
560
  return function() {
@@ -563,19 +567,19 @@ class at {
563
567
  if (u(e)) {
564
568
  let n;
565
569
  const r = p(() => {
566
- u(n) && n(), t.removeAttribute("class"), n = this.applyClasses(t, g(e), s);
570
+ u(n) && n(), t.removeAttribute("class"), n = this.applyClasses(t, y(e), s);
567
571
  });
568
572
  s.push(r), i.push(r);
569
573
  } else {
570
574
  const n = K(e);
571
575
  for (const r in n) {
572
- const h = n[r];
573
- if (u(h)) {
576
+ const l = n[r];
577
+ if (u(l)) {
574
578
  const b = p(() => {
575
- g(h) ? t.classList.add(r) : t.classList.remove(r);
579
+ y(l) ? t.classList.add(r) : t.classList.remove(r);
576
580
  });
577
581
  s.push(b), i.push(b);
578
- } else h && t.classList.add(r);
582
+ } else l && t.classList.add(r);
579
583
  }
580
584
  }
581
585
  return function() {
@@ -586,18 +590,18 @@ class at {
586
590
  }
587
591
  function K(o) {
588
592
  let t = {};
589
- if (U(o)) {
593
+ if (T(o)) {
590
594
  const e = o.split(" ");
591
595
  for (const s of e)
592
596
  t[s] = !0;
593
- } else F(o) ? Object.assign(t, o) : Array.isArray(o) && Array.from(o).filter(Boolean).forEach((e) => {
597
+ } else z(o) ? Object.assign(t, o) : Array.isArray(o) && Array.from(o).filter(Boolean).forEach((e) => {
594
598
  Object.assign(t, K(e));
595
599
  });
596
600
  return delete t.undefined, t;
597
601
  }
598
602
  function J(o) {
599
603
  let t = {};
600
- if (U(o)) {
604
+ if (T(o)) {
601
605
  const e = o.split(";").filter((s) => s.trim() !== "");
602
606
  for (const s of e) {
603
607
  const [i, n] = s.split(":"), r = {
@@ -606,7 +610,7 @@ function J(o) {
606
610
  n.includes("!important") ? (r.priority = "important", r.value = n.replace("!important", "").trim()) : r.value = n.trim(), t[$(i.trim())] = r;
607
611
  }
608
612
  }
609
- if (F(o))
613
+ if (z(o))
610
614
  for (const e in o)
611
615
  e.startsWith("--") ? t[e] = { value: o[e] } : t[$(e)] = { value: o[e] };
612
616
  else Array.isArray(o) && Array.from(o).filter((e) => e != null).forEach((e) => {
@@ -614,7 +618,7 @@ function J(o) {
614
618
  });
615
619
  return t;
616
620
  }
617
- function ht(o) {
621
+ function lt(o) {
618
622
  let t = o.root.tagName.toLowerCase();
619
623
  if (o.root.id && (t += `#${o.root.id}`), o.root.classList.length > 0)
620
624
  for (const e of o.root.classList.values())
@@ -624,7 +628,96 @@ function ht(o) {
624
628
  function $(o) {
625
629
  return o.replace(/[A-Z]+(?![a-z])|[A-Z]/g, (t, e) => (e ? "-" : "") + t.toLowerCase());
626
630
  }
627
- const lt = ["ref", "children", "class", "style", "data", "mixin"], ut = ["onsubmit", "onclick", "ontransitionend"];
631
+ const ht = ["ref", "children", "class", "style", "data", "mixin"], ut = [
632
+ // Element
633
+ "animationcancel",
634
+ "animationend",
635
+ "animationiteration",
636
+ "animationstart",
637
+ "auxclick",
638
+ "beforeinput",
639
+ "beforematch",
640
+ "beforexrselect",
641
+ "blur",
642
+ "click",
643
+ "compositionend",
644
+ "compositionstart",
645
+ "compositionupdate",
646
+ "contentvisibilityautostatechange",
647
+ "contextmenu",
648
+ "copy",
649
+ "cut",
650
+ "dblclick",
651
+ "focus",
652
+ "focusin",
653
+ "focusout",
654
+ "fullscreenchange",
655
+ "fullscreenerror",
656
+ "gotpointercapture",
657
+ "input",
658
+ "keydown",
659
+ "keyup",
660
+ "lostpointercapture",
661
+ "mousedown",
662
+ "mouseenter",
663
+ "mouseleave",
664
+ "mousemove",
665
+ "mouseout",
666
+ "mouseover",
667
+ "mouseup",
668
+ "paste",
669
+ "pointercancel",
670
+ "pointerdown",
671
+ "pointerenter",
672
+ "pointerleave",
673
+ "pointermove",
674
+ "pointerout",
675
+ "pointerover",
676
+ "pointerrawupdate",
677
+ "pointerup",
678
+ "scroll",
679
+ "scrollend",
680
+ "scrollsnapchange",
681
+ "scrollsnapchanging",
682
+ "securitypolicyviolation",
683
+ "touchcancel",
684
+ "touchend",
685
+ "touchmove",
686
+ "touchstart",
687
+ "transitioncancel",
688
+ "transitionend",
689
+ "transitionrun",
690
+ "transitionstart",
691
+ "webkitmouseforcechanged",
692
+ "webkitmouseforcedown",
693
+ "webkitmouseforceup",
694
+ "webkimouseforcewillbegin",
695
+ "wheel",
696
+ // HTMLElement
697
+ "beforetoggle",
698
+ "change",
699
+ "command",
700
+ "drag",
701
+ "dragend",
702
+ "dragenter",
703
+ "dragleave",
704
+ "dragover",
705
+ "dragstart",
706
+ "drop",
707
+ "error",
708
+ "load",
709
+ "toggle",
710
+ // HTMLInputElement
711
+ "cancel",
712
+ "invalid",
713
+ "search",
714
+ "select",
715
+ "selectionchange",
716
+ // HTMLFormElement
717
+ "formdata",
718
+ "reset",
719
+ "submit"
720
+ ];
628
721
  var V;
629
722
  V = x;
630
723
  class ft {
@@ -682,7 +775,7 @@ class dt {
682
775
  this.connectedItems = [];
683
776
  }
684
777
  _update(t) {
685
- var r, h, b;
778
+ var r, l, b;
686
779
  if (t.length === 0 || !this.isMounted)
687
780
  return this._cleanup(!1);
688
781
  const e = [];
@@ -695,19 +788,19 @@ class dt {
695
788
  });
696
789
  const i = [];
697
790
  for (const a of this.connectedItems)
698
- e.find((y) => y.key === a.key) || a.node.unmount(!1);
791
+ e.find((g) => g.key === a.key) || a.node.unmount(!1);
699
792
  for (const a of e) {
700
- const _ = this.connectedItems.find((y) => y.key === a.key);
701
- if (_)
702
- _.item(a.value), _.index(a.index), i[a.index] = _;
793
+ const w = this.connectedItems.find((g) => g.key === a.key);
794
+ if (w)
795
+ w.item(a.value), w.index(a.index), i[a.index] = w;
703
796
  else {
704
- const y = O(a.value, { equals: ot }), E = O(a.index);
797
+ const g = O(a.value, { equals: ot }), E = O(a.index);
705
798
  i[a.index] = {
706
799
  key: a.key,
707
- item: y,
800
+ item: g,
708
801
  index: E,
709
802
  node: new Z(this.context, pt, {
710
- item: () => y(),
803
+ item: () => g(),
711
804
  index: () => E(),
712
805
  renderFn: this.render
713
806
  })
@@ -715,11 +808,11 @@ class dt {
715
808
  }
716
809
  }
717
810
  for (let a = 0; a < i.length; a++) {
718
- const _ = i[a], y = ((r = i[a - 1]) == null ? void 0 : r.node.root) ?? this.root;
719
- _.node.mount(this.root.parentNode, y);
811
+ const w = i[a], g = ((r = i[a - 1]) == null ? void 0 : r.node.root) ?? this.root;
812
+ w.node.mount(this.root.parentNode, g);
720
813
  }
721
814
  this.connectedItems = i;
722
- const n = ((h = i.at(-1)) == null ? void 0 : h.node.root) ?? this.root;
815
+ const n = ((l = i.at(-1)) == null ? void 0 : l.node.root) ?? this.root;
723
816
  (b = this.root.parentNode) == null || b.insertBefore(this.root, n.nextSibling);
724
817
  }
725
818
  }
@@ -747,25 +840,25 @@ class Q {
747
840
  function mt(o) {
748
841
  return (o == null ? void 0 : o[x]) === !0;
749
842
  }
750
- function T(o, t, ...e) {
843
+ function U(o, t, ...e) {
751
844
  return new Q(o, t, ...e);
752
845
  }
753
- function yt(o, t, e) {
754
- return T("$dynamic", {
846
+ function gt(o, t, e) {
847
+ return U("$dynamic", {
755
848
  source: O(() => {
756
- const s = g(o);
849
+ const s = y(o);
757
850
  return s && t ? t : !s && e ? e : null;
758
851
  })
759
852
  });
760
853
  }
761
854
  function xt(o, t, e) {
762
- return yt(o, e, t);
855
+ return gt(o, e, t);
763
856
  }
764
857
  function Nt(o, t, e) {
765
- return T("$repeat", { items: () => g(o), key: t, render: e });
858
+ return U("$repeat", { items: () => y(o), key: t, render: e });
766
859
  }
767
860
  function kt(o, t) {
768
- return T("$portal", { parent: o, content: t });
861
+ return U("$portal", { parent: o, content: t });
769
862
  }
770
863
  function X(o, t = new f("$")) {
771
864
  const e = A(t, [o]);
@@ -783,7 +876,7 @@ function A(o, ...t) {
783
876
  if (u(i.type)) {
784
877
  s.push(new Z(o, i.type, i.props, i.children));
785
878
  continue;
786
- } else if (U(i.type))
879
+ } else if (T(i.type))
787
880
  switch (i.type) {
788
881
  case "$dom": {
789
882
  const n = i.props;
@@ -834,11 +927,11 @@ export {
834
927
  m as L,
835
928
  Z as V,
836
929
  Nt as a,
837
- wt as c,
838
- T as m,
930
+ _t as c,
931
+ U as m,
839
932
  kt as p,
840
933
  X as r,
841
934
  xt as u,
842
- yt as w
935
+ gt as w
843
936
  };
844
- //# sourceMappingURL=markup-DS7yYBga.js.map
937
+ //# sourceMappingURL=markup-CAJd0zdA.js.map