@rindo/core 4.0.3 → 4.0.4

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.
@@ -93,7 +93,12 @@ const mockDoc = require("@rindo/core/mock-doc"), appData = require("@rindo/core/
93
93
 
94
94
  require("path");
95
95
 
96
- const styles = new Map, modeResolutionChain = [], cstrs = new Map, queuedTicks = [], queuedWriteTasks = [], queuedReadTasks = [], moduleLoaded = new Map, queuedLoadModules = [], caughtErrors = [], hostRefs = new Map;
96
+ const Build = {
97
+ isDev: !0,
98
+ isBrowser: !0,
99
+ isServer: !1,
100
+ isTesting: !0
101
+ }, styles = new Map, modeResolutionChain = [], cstrs = new Map, queuedTicks = [], queuedWriteTasks = [], queuedReadTasks = [], moduleLoaded = new Map, queuedLoadModules = [], caughtErrors = [], hostRefs = new Map;
97
102
 
98
103
  let i = 0;
99
104
 
@@ -105,20 +110,20 @@ const createTime = (e, t = "") => {
105
110
  return () => {};
106
111
  }, XLINK_NS = "http://www.w3.org/1999/xlink", EMPTY_OBJ = {}, isComplexType = e => "object" == (e = typeof e) || "function" === e, h = (e, t, ...a) => {
107
112
  let o = null, s = null, n = null, l = !1, r = !1;
108
- const p = [], i = t => {
109
- for (let a = 0; a < t.length; a++) o = t[a], Array.isArray(o) ? i(o) : null != o && "boolean" != typeof o && ((l = "function" != typeof e && !isComplexType(o)) ? o = String(o) : appData.BUILD.isDev && "function" != typeof e && void 0 === o.$flags$ && consoleDevError("vNode passed as children has unexpected type.\nMake sure it's using the correct h() function.\nEmpty objects can also be the cause, look for JSX comments that became objects."),
110
- l && r ? p[p.length - 1].$text$ += o : p.push(l ? newVNode(null, o) : o), r = l);
113
+ const i = [], p = t => {
114
+ for (let a = 0; a < t.length; a++) o = t[a], Array.isArray(o) ? p(o) : null != o && "boolean" != typeof o && ((l = "function" != typeof e && !isComplexType(o)) ? o = String(o) : appData.BUILD.isDev && "function" != typeof e && void 0 === o.$flags$ && consoleDevError("vNode passed as children has unexpected type.\nMake sure it's using the correct h() function.\nEmpty objects can also be the cause, look for JSX comments that became objects."),
115
+ l && r ? i[i.length - 1].$text$ += o : i.push(l ? newVNode(null, o) : o), r = l);
111
116
  };
112
- if (i(a), t && (appData.BUILD.isDev && "input" === e && validateInputProperties(t),
117
+ if (p(a), t && (appData.BUILD.isDev && "input" === e && validateInputProperties(t),
113
118
  appData.BUILD.vdomKey && t.key && (s = t.key), appData.BUILD.slotRelocation && t.name && (n = t.name),
114
119
  appData.BUILD.vdomClass)) {
115
120
  const e = t.className || t.class;
116
121
  e && (t.class = "object" != typeof e ? e : Object.keys(e).filter((t => e[t])).join(" "));
117
122
  }
118
- if (appData.BUILD.isDev && p.some(isHost) && consoleDevError("The <Host> must be the single root component. Make sure:\n- You are NOT using hostData() and <Host> in the same component.\n- <Host> is used once, and it's the single root component of the render() function."),
119
- appData.BUILD.vdomFunctional && "function" == typeof e) return e(null === t ? {} : t, p, vdomFnUtils);
123
+ if (appData.BUILD.isDev && i.some(isHost) && consoleDevError("The <Host> must be the single root component. Make sure:\n- You are NOT using hostData() and <Host> in the same component.\n- <Host> is used once, and it's the single root component of the render() function."),
124
+ appData.BUILD.vdomFunctional && "function" == typeof e) return e(null === t ? {} : t, i, vdomFnUtils);
120
125
  const d = newVNode(e, null);
121
- return d.$attrs$ = t, p.length > 0 && (d.$children$ = p), appData.BUILD.vdomKey && (d.$key$ = s),
126
+ return d.$attrs$ = t, i.length > 0 && (d.$children$ = i), appData.BUILD.vdomKey && (d.$key$ = s),
122
127
  appData.BUILD.slotRelocation && (d.$name$ = n), d;
123
128
  }, newVNode = (e, t) => {
124
129
  const a = {
@@ -156,14 +161,14 @@ const createTime = (e, t = "") => {
156
161
  const o = t.indexOf("type"), s = t.indexOf("min"), n = t.indexOf("max"), l = t.indexOf("step");
157
162
  (a < o || a < s || a < n || a < l) && consoleDevWarn('The "value" prop of <input> should be set after "min", "max", "type" and "step"');
158
163
  }, clientHydrate = (e, t, a, o, s, n, l) => {
159
- let r, p, i, d;
164
+ let r, i, p, d;
160
165
  if (1 === n.nodeType) {
161
- for (r = n.getAttribute("c-id"), r && (p = r.split("."), p[0] !== l && "0" !== p[0] || (i = {
166
+ for (r = n.getAttribute("c-id"), r && (i = r.split("."), i[0] !== l && "0" !== i[0] || (p = {
162
167
  $flags$: 0,
163
- $hostId$: p[0],
164
- $nodeId$: p[1],
165
- $depth$: p[2],
166
- $index$: p[3],
168
+ $hostId$: i[0],
169
+ $nodeId$: i[1],
170
+ $depth$: i[2],
171
+ $index$: i[3],
167
172
  $tag$: n.tagName.toLowerCase(),
168
173
  $elm$: n,
169
174
  $attrs$: null,
@@ -171,16 +176,16 @@ const createTime = (e, t = "") => {
171
176
  $key$: null,
172
177
  $name$: null,
173
178
  $text$: null
174
- }, t.push(i), n.removeAttribute("c-id"), e.$children$ || (e.$children$ = []), e.$children$[i.$index$] = i,
175
- e = i, o && "0" === i.$depth$ && (o[i.$index$] = i.$elm$))), d = n.childNodes.length - 1; d >= 0; d--) clientHydrate(e, t, a, o, s, n.childNodes[d], l);
179
+ }, t.push(p), n.removeAttribute("c-id"), e.$children$ || (e.$children$ = []), e.$children$[p.$index$] = p,
180
+ e = p, o && "0" === p.$depth$ && (o[p.$index$] = p.$elm$))), d = n.childNodes.length - 1; d >= 0; d--) clientHydrate(e, t, a, o, s, n.childNodes[d], l);
176
181
  if (n.shadowRoot) for (d = n.shadowRoot.childNodes.length - 1; d >= 0; d--) clientHydrate(e, t, a, o, s, n.shadowRoot.childNodes[d], l);
177
- } else if (8 === n.nodeType) p = n.nodeValue.split("."), p[1] !== l && "0" !== p[1] || (r = p[0],
178
- i = {
182
+ } else if (8 === n.nodeType) i = n.nodeValue.split("."), i[1] !== l && "0" !== i[1] || (r = i[0],
183
+ p = {
179
184
  $flags$: 0,
180
- $hostId$: p[1],
181
- $nodeId$: p[2],
182
- $depth$: p[3],
183
- $index$: p[4],
185
+ $hostId$: i[1],
186
+ $nodeId$: i[2],
187
+ $depth$: i[3],
188
+ $index$: i[4],
184
189
  $elm$: n,
185
190
  $attrs$: null,
186
191
  $children$: null,
@@ -188,13 +193,13 @@ const createTime = (e, t = "") => {
188
193
  $name$: null,
189
194
  $tag$: null,
190
195
  $text$: null
191
- }, "t" === r ? (i.$elm$ = n.nextSibling, i.$elm$ && 3 === i.$elm$.nodeType && (i.$text$ = i.$elm$.textContent,
192
- t.push(i), n.remove(), e.$children$ || (e.$children$ = []), e.$children$[i.$index$] = i,
193
- o && "0" === i.$depth$ && (o[i.$index$] = i.$elm$))) : i.$hostId$ === l && ("s" === r ? (i.$tag$ = "slot",
194
- p[5] ? n["s-sn"] = i.$name$ = p[5] : n["s-sn"] = "", n["s-sr"] = !0, appData.BUILD.shadowDom && o && (i.$elm$ = doc.createElement(i.$tag$),
195
- i.$name$ && i.$elm$.setAttribute("name", i.$name$), n.parentNode.insertBefore(i.$elm$, n),
196
- n.remove(), "0" === i.$depth$ && (o[i.$index$] = i.$elm$)), a.push(i), e.$children$ || (e.$children$ = []),
197
- e.$children$[i.$index$] = i) : "r" === r && (appData.BUILD.shadowDom && o ? n.remove() : appData.BUILD.slotRelocation && (s["s-cr"] = n,
196
+ }, "t" === r ? (p.$elm$ = n.nextSibling, p.$elm$ && 3 === p.$elm$.nodeType && (p.$text$ = p.$elm$.textContent,
197
+ t.push(p), n.remove(), e.$children$ || (e.$children$ = []), e.$children$[p.$index$] = p,
198
+ o && "0" === p.$depth$ && (o[p.$index$] = p.$elm$))) : p.$hostId$ === l && ("s" === r ? (p.$tag$ = "slot",
199
+ i[5] ? n["s-sn"] = p.$name$ = i[5] : n["s-sn"] = "", n["s-sr"] = !0, appData.BUILD.shadowDom && o && (p.$elm$ = doc.createElement(p.$tag$),
200
+ p.$name$ && p.$elm$.setAttribute("name", p.$name$), n.parentNode.insertBefore(p.$elm$, n),
201
+ n.remove(), "0" === p.$depth$ && (o[p.$index$] = p.$elm$)), a.push(p), e.$children$ || (e.$children$ = []),
202
+ e.$children$[p.$index$] = p) : "r" === r && (appData.BUILD.shadowDom && o ? n.remove() : appData.BUILD.slotRelocation && (s["s-cr"] = n,
198
203
  n["s-cn"] = !0)))); else if (e && "style" === e.$tag$) {
199
204
  const t = newVNode(null, n.textContent);
200
205
  t.$elm$ = n, t.$index$ = "0", e.$children$ = [ t ];
@@ -248,17 +253,17 @@ const createTime = (e, t = "") => {
248
253
  for (const t in o) a && o[t] === a[t] || (!appData.BUILD.hydrateServerSide && t.includes("-") ? e.style.setProperty(t, o[t]) : e.style[t] = o[t]);
249
254
  } else if (appData.BUILD.vdomKey && "key" === t) ; else if (appData.BUILD.vdomRef && "ref" === t) o && o(e); else if (!appData.BUILD.vdomListener || (appData.BUILD.lazyLoad ? l : e.__lookupSetter__(t)) || "o" !== t[0] || "n" !== t[1]) {
250
255
  if (appData.BUILD.vdomPropOrAttr) {
251
- const p = isComplexType(o);
252
- if ((l || p && null !== o) && !s) try {
256
+ const i = isComplexType(o);
257
+ if ((l || i && null !== o) && !s) try {
253
258
  if (e.tagName.includes("-")) e[t] = o; else {
254
259
  const s = null == o ? "" : o;
255
260
  "list" === t ? l = !1 : null != a && e[t] == s || (e[t] = s);
256
261
  }
257
262
  } catch (e) {}
258
- let i = !1;
259
- appData.BUILD.vdomXlink && r !== (r = r.replace(/^xlink\:?/, "")) && (t = r, i = !0),
260
- null == o || !1 === o ? !1 === o && "" !== e.getAttribute(t) || (appData.BUILD.vdomXlink && i ? e.removeAttributeNS(XLINK_NS, t) : e.removeAttribute(t)) : (!l || 4 & n || s) && !p && (o = !0 === o ? "" : o,
261
- appData.BUILD.vdomXlink && i ? e.setAttributeNS(XLINK_NS, t, o) : e.setAttribute(t, o));
263
+ let p = !1;
264
+ appData.BUILD.vdomXlink && r !== (r = r.replace(/^xlink\:?/, "")) && (t = r, p = !0),
265
+ null == o || !1 === o ? !1 === o && "" !== e.getAttribute(t) || (appData.BUILD.vdomXlink && p ? e.removeAttributeNS(XLINK_NS, t) : e.removeAttribute(t)) : (!l || 4 & n || s) && !i && (o = !0 === o ? "" : o,
266
+ appData.BUILD.vdomXlink && p ? e.setAttributeNS(XLINK_NS, t, o) : e.setAttribute(t, o));
262
267
  }
263
268
  } else t = "-" === t[2] ? t.slice(3) : isMemberInElement(win, r) ? r.slice(2) : r[2] + t.slice(3),
264
269
  a && plt.rel(e, t, a, !1), o && plt.ael(e, t, o, !1);
@@ -273,7 +278,7 @@ let scopeId, contentRef, hostTagName, useNativeShadowDom = !1, checkSlotFallback
273
278
 
274
279
  const createElm = (e, t, a, o) => {
275
280
  const s = t.$children$[a];
276
- let n, l, r, p = 0;
281
+ let n, l, r, i = 0;
277
282
  if (appData.BUILD.slotRelocation && !useNativeShadowDom && (checkSlotRelocate = !0,
278
283
  "slot" === s.$tag$ && (scopeId && o.classList.add(scopeId + "-s"), s.$flags$ |= s.$children$ ? 2 : 1)),
279
284
  appData.BUILD.isDev && s.$elm$ && consoleDevError(`The JSX ${null !== s.$text$ ? `"${s.$text$}" text` : `"${s.$tag$}" element`} node should not be shared within the same renderer. The renderer caches element lookups in order to improve performance. However, a side effect from this is that the exact same JSX node should not be reused. For more information please see https://rindojs.web.app/docs/templating-jsx#avoid-shared-jsx-nodes`),
@@ -281,7 +286,7 @@ const createElm = (e, t, a, o) => {
281
286
  if (appData.BUILD.svg && !isSvgMode && (isSvgMode = "svg" === s.$tag$), n = s.$elm$ = appData.BUILD.svg ? doc.createElementNS(isSvgMode ? "http://www.w3.org/2000/svg" : "http://www.w3.org/1999/xhtml", appData.BUILD.slotRelocation && 2 & s.$flags$ ? "slot-fb" : s.$tag$) : doc.createElement(appData.BUILD.slotRelocation && 2 & s.$flags$ ? "slot-fb" : s.$tag$),
282
287
  appData.BUILD.svg && isSvgMode && "foreignObject" === s.$tag$ && (isSvgMode = !1),
283
288
  appData.BUILD.vdomAttribute && updateElement(null, s, isSvgMode), (appData.BUILD.shadowDom || appData.BUILD.scoped) && null != scopeId && n["s-si"] !== scopeId && n.classList.add(n["s-si"] = scopeId),
284
- s.$children$) for (p = 0; p < s.$children$.length; ++p) l = createElm(e, s, p, n),
289
+ s.$children$) for (i = 0; i < s.$children$.length; ++i) l = createElm(e, s, i, n),
285
290
  l && n.appendChild(l);
286
291
  appData.BUILD.svg && ("svg" === s.$tag$ ? isSvgMode = !1 : "foreignObject" === n.tagName && (isSvgMode = !0));
287
292
  }
@@ -317,17 +322,17 @@ const createElm = (e, t, a, o) => {
317
322
  appData.BUILD.vdomText && null !== l ? appData.BUILD.vdomText && appData.BUILD.slotRelocation && (r = a["s-cr"]) ? r.parentNode.textContent = l : appData.BUILD.vdomText && e.$text$ !== l && (a.data = l) : (appData.BUILD.svg && (isSvgMode = "svg" === n || "foreignObject" !== n && isSvgMode),
318
323
  (appData.BUILD.vdomAttribute || appData.BUILD.reflect) && (appData.BUILD.slot && "slot" === n || updateElement(e, t, isSvgMode)),
319
324
  appData.BUILD.updatable && null !== o && null !== s ? ((e, t, a, o) => {
320
- let s, n, l = 0, r = 0, p = 0, i = 0, d = t.length - 1, c = t[0], $ = t[d], u = o.length - 1, m = o[0], h = o[u];
325
+ let s, n, l = 0, r = 0, i = 0, p = 0, d = t.length - 1, c = t[0], $ = t[d], u = o.length - 1, m = o[0], h = o[u];
321
326
  for (;l <= d && r <= u; ) if (null == c) c = t[++l]; else if (null == $) $ = t[--d]; else if (null == m) m = o[++r]; else if (null == h) h = o[--u]; else if (isSameVnode(c, m)) patch(c, m),
322
327
  c = t[++l], m = o[++r]; else if (isSameVnode($, h)) patch($, h), $ = t[--d], h = o[--u]; else if (isSameVnode(c, h)) !appData.BUILD.slotRelocation || "slot" !== c.$tag$ && "slot" !== h.$tag$ || putBackInOriginalLocation(c.$elm$.parentNode, !1),
323
328
  patch(c, h), e.insertBefore(c.$elm$, $.$elm$.nextSibling), c = t[++l], h = o[--u]; else if (isSameVnode($, m)) !appData.BUILD.slotRelocation || "slot" !== c.$tag$ && "slot" !== h.$tag$ || putBackInOriginalLocation($.$elm$.parentNode, !1),
324
329
  patch($, m), e.insertBefore($.$elm$, c.$elm$), $ = t[--d], m = o[++r]; else {
325
- if (p = -1, appData.BUILD.vdomKey) for (i = l; i <= d; ++i) if (t[i] && null !== t[i].$key$ && t[i].$key$ === m.$key$) {
326
- p = i;
330
+ if (i = -1, appData.BUILD.vdomKey) for (p = l; p <= d; ++p) if (t[p] && null !== t[p].$key$ && t[p].$key$ === m.$key$) {
331
+ i = p;
327
332
  break;
328
333
  }
329
- appData.BUILD.vdomKey && p >= 0 ? (n = t[p], n.$tag$ !== m.$tag$ ? s = createElm(t && t[r], a, p, e) : (patch(n, m),
330
- t[p] = void 0, s = n.$elm$), m = o[++r]) : (s = createElm(t && t[r], a, r, e), m = o[++r]),
334
+ appData.BUILD.vdomKey && i >= 0 ? (n = t[i], n.$tag$ !== m.$tag$ ? s = createElm(t && t[r], a, i, e) : (patch(n, m),
335
+ t[i] = void 0, s = n.$elm$), m = o[++r]) : (s = createElm(t && t[r], a, r, e), m = o[++r]),
331
336
  s && (appData.BUILD.slotRelocation ? parentReferenceNode(c.$elm$).insertBefore(s, referenceNode(c.$elm$)) : c.$elm$.parentNode.insertBefore(s, c.$elm$));
332
337
  }
333
338
  l > d ? addVnodes(e, null == o[u + 1] ? null : o[u + 1].$elm$, a, o, r, u) : appData.BUILD.updatable && r > u && removeVnodes(t, l, d);
@@ -352,9 +357,9 @@ const createElm = (e, t, a, o) => {
352
357
  }
353
358
  }, relocateNodes = [], relocateSlotContent = e => {
354
359
  let t, a, o, s, n, l, r = 0;
355
- const p = e.childNodes, i = p.length;
356
- for (;r < i; r++) {
357
- if (t = p[r], t["s-sr"] && (a = t["s-cr"]) && a.parentNode) for (o = a.parentNode.childNodes,
360
+ const i = e.childNodes, p = i.length;
361
+ for (;r < p; r++) {
362
+ if (t = i[r], t["s-sr"] && (a = t["s-cr"]) && a.parentNode) for (o = a.parentNode.childNodes,
358
363
  s = t["s-sn"], l = o.length - 1; l >= 0; l--) a = o[l], a["s-cn"] || a["s-nr"] || a["s-hn"] === t["s-hn"] || (isNodeLocatedInSlot(a, s) ? (n = relocateNodes.find((e => e.$nodeToRelocate$ === a)),
359
364
  checkSlotFallbackVisibility = !0, a["s-sn"] = a["s-sn"] || s, n ? n.$slotRefNode$ = t : relocateNodes.push({
360
365
  $slotRefNode$: t,
@@ -462,7 +467,7 @@ const callRender = (e, t, a, o) => {
462
467
  appData.BUILD.asyncLoading && (e.$onRenderResolve$ && (e.$onRenderResolve$(), e.$onRenderResolve$ = void 0),
463
468
  512 & e.$flags$ && nextTick((() => scheduleUpdate(e, !1))), e.$flags$ &= -517);
464
469
  }, forceUpdate = e => {
465
- if (appData.BUILD.updatable) {
470
+ if (appData.BUILD.updatable && Build.isBrowser) {
466
471
  const t = getHostRef(e), a = t.$hostElement$.isConnected;
467
472
  return a && 2 == (18 & t.$flags$) && scheduleUpdate(t, !1), a;
468
473
  }
@@ -495,24 +500,24 @@ const callRender = (e, t, a, o) => {
495
500
  "function" == typeof a.connectedCallback && a.connectedCallback(), serverSideConnected(a);
496
501
  }
497
502
  }, getValue = (e, t) => getHostRef(e).$instanceValues$.get(t), setValue = (e, t, a, o) => {
498
- const s = getHostRef(e), n = appData.BUILD.lazyLoad ? s.$hostElement$ : e, l = s.$instanceValues$.get(t), r = s.$flags$, p = appData.BUILD.lazyLoad ? s.$lazyInstance$ : n;
503
+ const s = getHostRef(e), n = appData.BUILD.lazyLoad ? s.$hostElement$ : e, l = s.$instanceValues$.get(t), r = s.$flags$, i = appData.BUILD.lazyLoad ? s.$lazyInstance$ : n;
499
504
  a = parsePropertyValue(a, o.$members$[t][0]);
500
- const i = Number.isNaN(l) && Number.isNaN(a), d = a !== l && !i;
505
+ const p = Number.isNaN(l) && Number.isNaN(a), d = a !== l && !p;
501
506
  if ((!appData.BUILD.lazyLoad || !(8 & r) || void 0 === l) && d && (s.$instanceValues$.set(t, a),
502
507
  appData.BUILD.isDev && (1024 & s.$flags$ ? consoleDevWarn(`The state/prop "${t}" changed during rendering. This can potentially lead to infinite-loops and other bugs.`, "\nElement", n, "\nNew value", a, "\nOld value", l) : 2048 & s.$flags$ && consoleDevWarn(`The state/prop "${t}" changed during "componentDidLoad()", this triggers extra re-renders, try to setup on "componentWillLoad()"`, "\nElement", n, "\nNew value", a, "\nOld value", l)),
503
- !appData.BUILD.lazyLoad || p)) {
508
+ !appData.BUILD.lazyLoad || i)) {
504
509
  if (appData.BUILD.watchCallback && o.$watchers$ && 128 & r) {
505
510
  const e = o.$watchers$[t];
506
511
  e && e.map((e => {
507
512
  try {
508
- p[e](a, l, t);
513
+ i[e](a, l, t);
509
514
  } catch (e) {
510
515
  consoleError(e, n);
511
516
  }
512
517
  }));
513
518
  }
514
519
  if (appData.BUILD.updatable && 2 == (18 & r)) {
515
- if (appData.BUILD.cmpShouldUpdate && p.componentShouldUpdate && !1 === p.componentShouldUpdate(a, l, t)) return;
520
+ if (appData.BUILD.cmpShouldUpdate && i.componentShouldUpdate && !1 === i.componentShouldUpdate(a, l, t)) return;
516
521
  scheduleUpdate(s, !1);
517
522
  }
518
523
  }
@@ -594,8 +599,8 @@ const callRender = (e, t, a, o) => {
594
599
  }
595
600
  }
596
601
  var n, l;
597
- const r = t.$ancestorComponent$, p = () => scheduleUpdate(t, !0);
598
- appData.BUILD.asyncLoading && r && r["s-rc"] ? r["s-rc"].push(p) : p();
602
+ const r = t.$ancestorComponent$, i = () => scheduleUpdate(t, !0);
603
+ appData.BUILD.asyncLoading && r && r["s-rc"] ? r["s-rc"].push(i) : i();
599
604
  }, fireConnectedCallback = e => {
600
605
  appData.BUILD.lazyLoad && appData.BUILD.connectedCallback && safeCall(e, "connectedCallback");
601
606
  }, connectedCallback = e => {
@@ -611,9 +616,9 @@ const callRender = (e, t, a, o) => {
611
616
  e.classList.remove(t + "-h", t + "-s");
612
617
  }
613
618
  ((e, t, a, o) => {
614
- const s = createTime("hydrateClient", t), n = e.shadowRoot, l = [], r = appData.BUILD.shadowDom && n ? [] : null, p = o.$vnode$ = newVNode(t, null);
619
+ const s = createTime("hydrateClient", t), n = e.shadowRoot, l = [], r = appData.BUILD.shadowDom && n ? [] : null, i = o.$vnode$ = newVNode(t, null);
615
620
  plt.$orgLocNodes$ || initializeDocumentHydrate(doc.body, plt.$orgLocNodes$ = new Map),
616
- e["s-id"] = a, e.removeAttribute("s-id"), clientHydrate(p, l, [], r, e, e, a), l.map((e => {
621
+ e["s-id"] = a, e.removeAttribute("s-id"), clientHydrate(i, l, [], r, e, e, a), l.map((e => {
617
622
  const a = e.$hostId$ + "." + e.$nodeId$, o = plt.$orgLocNodes$.get(a), s = e.$elm$;
618
623
  o && exports.supportsShadow && "" === o["s-en"] && o.parentNode.insertBefore(s, o.nextSibling),
619
624
  n || (s["s-hn"] = t, o && (s["s-ol"] = o, s["s-ol"]["s-nr"] = s)), plt.$orgLocNodes$.delete(a);
@@ -811,15 +816,15 @@ const callRender = (e, t, a, o) => {
811
816
  }, insertChildVNodeAnnotations = (e, t, a, o, s, n) => {
812
817
  const l = t.$elm$;
813
818
  if (null == l) return;
814
- const r = a.nodeIds++, p = `${o}.${r}.${s}.${n}`;
815
- if (l["s-host-id"] = o, l["s-node-id"] = r, 1 === l.nodeType) l.setAttribute("c-id", p); else if (3 === l.nodeType) {
819
+ const r = a.nodeIds++, i = `${o}.${r}.${s}.${n}`;
820
+ if (l["s-host-id"] = o, l["s-node-id"] = r, 1 === l.nodeType) l.setAttribute("c-id", i); else if (3 === l.nodeType) {
816
821
  const t = l.parentNode, a = t.nodeName;
817
822
  if ("STYLE" !== a && "SCRIPT" !== a) {
818
- const a = `t.${p}`, o = e.createComment(a);
823
+ const a = `t.${i}`, o = e.createComment(a);
819
824
  t.insertBefore(o, l);
820
825
  }
821
826
  } else if (8 === l.nodeType && l["s-sr"]) {
822
- const e = `s.${p}.${l["s-sn"] || ""}`;
827
+ const e = `s.${i}.${l["s-sn"] || ""}`;
823
828
  l.nodeValue = e;
824
829
  }
825
830
  if (null != t.$children$) {
@@ -884,13 +889,8 @@ Object.defineProperty(exports, "Env", {
884
889
  get: function() {
885
890
  return appData.Env;
886
891
  }
887
- }), exports.Build = {
888
- isDev: !0,
889
- isBrowser: !1,
890
- isServer: !0,
891
- isTesting: !0
892
- }, exports.Fragment = (e, t) => t, exports.Host = Host, exports.addHostEventListeners = addHostEventListeners,
893
- exports.bootstrapLazy = (e, t = {}) => {
892
+ }), exports.Build = Build, exports.Fragment = (e, t) => t, exports.Host = Host,
893
+ exports.addHostEventListeners = addHostEventListeners, exports.bootstrapLazy = (e, t = {}) => {
894
894
  var a;
895
895
  appData.BUILD.profile && performance.mark && performance.mark("st:app:start"), (() => {
896
896
  if (appData.BUILD.devTools) {
@@ -939,7 +939,7 @@ exports.bootstrapLazy = (e, t = {}) => {
939
939
  };
940
940
  }
941
941
  })();
942
- const o = createTime("bootstrapLazy"), s = [], n = t.exclude || [], l = win.customElements, r = doc.head, p = r.querySelector("meta[charset]"), i = doc.createElement("style"), d = [], c = doc.querySelectorAll("[sty-id]");
942
+ const o = createTime("bootstrapLazy"), s = [], n = t.exclude || [], l = win.customElements, r = doc.head, i = r.querySelector("meta[charset]"), p = doc.createElement("style"), d = [], c = doc.querySelectorAll("[sty-id]");
943
943
  let $, u = !0, m = 0;
944
944
  if (Object.assign(plt, t), plt.$resourcesUrl$ = new URL(t.resourcesUrl || "./", doc.baseURI).href,
945
945
  appData.BUILD.asyncQueue && t.syncQueue && (plt.$flags$ |= 4), appData.BUILD.hydrateClientSide && (plt.$flags$ |= 2),
@@ -955,7 +955,7 @@ exports.bootstrapLazy = (e, t = {}) => {
955
955
  appData.BUILD.member && (o.$members$ = a[2]), appData.BUILD.hostListener && (o.$listeners$ = a[3]),
956
956
  appData.BUILD.reflect && (o.$attrsToReflect$ = []), appData.BUILD.watchCallback && (o.$watchers$ = {}),
957
957
  appData.BUILD.shadowDom && !exports.supportsShadow && 1 & o.$flags$ && (o.$flags$ |= 8);
958
- const r = appData.BUILD.transformTagName && t.transformTagName ? t.transformTagName(o.$tagName$) : o.$tagName$, p = class extends HTMLElement {
958
+ const r = appData.BUILD.transformTagName && t.transformTagName ? t.transformTagName(o.$tagName$) : o.$tagName$, i = class extends HTMLElement {
959
959
  constructor(e) {
960
960
  super(e), registerHost(e = this, o), appData.BUILD.shadowDom && 1 & o.$flags$ && (exports.supportsShadow ? appData.BUILD.shadowDelegatesFocus ? e.attachShadow({
961
961
  mode: "open",
@@ -975,21 +975,21 @@ exports.bootstrapLazy = (e, t = {}) => {
975
975
  return getHostRef(this).$onReadyPromise$;
976
976
  }
977
977
  };
978
- appData.BUILD.cloneNodeFix && patchCloneNode(p.prototype), appData.BUILD.appendChildSlotFix && patchSlotAppendChild(p.prototype),
979
- appData.BUILD.hotModuleReplacement && (p.prototype["s-hmr"] = function(e) {
978
+ appData.BUILD.cloneNodeFix && patchCloneNode(i.prototype), appData.BUILD.appendChildSlotFix && patchSlotAppendChild(i.prototype),
979
+ appData.BUILD.hotModuleReplacement && (i.prototype["s-hmr"] = function(e) {
980
980
  ((e, t, a) => {
981
981
  const o = getHostRef(e);
982
982
  o.$flags$ = 1, e["s-hmr-load"] = () => {
983
983
  delete e["s-hmr-load"];
984
984
  }, initializeComponent(e, o, t);
985
985
  })(this, o);
986
- }), appData.BUILD.scopedSlotTextContentFix && patchTextContent(p.prototype, o),
987
- o.$lazyBundleId$ = e[0], n.includes(r) || l.get(r) || (s.push(r), l.define(r, proxyComponent(p, o, 1)));
986
+ }), appData.BUILD.scopedSlotTextContentFix && patchTextContent(i.prototype, o),
987
+ o.$lazyBundleId$ = e[0], n.includes(r) || l.get(r) || (s.push(r), l.define(r, proxyComponent(i, o, 1)));
988
988
  }));
989
989
  })), appData.BUILD.invisiblePrehydration && (appData.BUILD.hydratedClass || appData.BUILD.hydratedAttribute)) {
990
- i.innerHTML = s + "{visibility:hidden}.hydrated{visibility:inherit}", i.setAttribute("data-styles", "");
990
+ p.innerHTML = s + "{visibility:hidden}.hydrated{visibility:inherit}", p.setAttribute("data-styles", "");
991
991
  const e = null !== (a = plt.$nonce$) && void 0 !== a ? a : queryNonceMetaTagContent(doc);
992
- null != e && i.setAttribute("nonce", e), r.insertBefore(i, p ? p.nextSibling : r.firstChild);
992
+ null != e && p.setAttribute("nonce", e), r.insertBefore(p, i ? i.nextSibling : r.firstChild);
993
993
  }
994
994
  u = !1, d.length ? d.map((e => e.connectedCallback())) : appData.BUILD.profile ? plt.jmp((() => $ = setTimeout(appDidLoad, 30, "timeout"))) : plt.jmp((() => $ = setTimeout(appDidLoad, 30))),
995
995
  o();
@@ -1041,8 +1041,8 @@ exports.insertVdomAnnotations = (e, t) => {
1041
1041
  a.nodeValue = `t.${l}`, o.parentNode.insertBefore(a, o);
1042
1042
  }
1043
1043
  let r = `o.${l}`;
1044
- const p = t.parentElement;
1045
- p && ("" === p["s-en"] ? r += "." : "c" === p["s-en"] && (r += ".c")), t.nodeValue = r;
1044
+ const i = t.parentElement;
1045
+ i && ("" === i["s-en"] ? r += "." : "c" === i["s-en"] && (r += ".c")), t.nodeValue = r;
1046
1046
  }
1047
1047
  }));
1048
1048
  }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rindo/core/internal/testing",
3
- "version": "4.0.3",
3
+ "version": "4.0.4",
4
4
  "description": "Rindo internal testing platform to be imported by the Rindo Compiler. Breaking changes can and will happen at any time.",
5
5
  "main": "./index.js",
6
6
  "private": true
@@ -1,5 +1,5 @@
1
1
  /*!
2
- Rindo Mock Doc (CommonJS) v4.0.3 | MIT Licensed | https://rindojs.web.app
2
+ Rindo Mock Doc (CommonJS) v4.0.4 | MIT Licensed | https://rindojs.web.app
3
3
  */
4
4
  var mockDoc = (function(exports) {
5
5
  'use strict';
package/mock-doc/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- Rindo Mock Doc v4.0.3 | MIT Licensed | https://rindojs.web.app
2
+ Rindo Mock Doc v4.0.4 | MIT Licensed | https://rindojs.web.app
3
3
  */
4
4
  const CONTENT_REF_ID = 'r';
5
5
  const ORG_LOCATION_ID = 'o';
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rindo/core/mock-doc",
3
- "version": "4.0.3",
3
+ "version": "4.0.4",
4
4
  "description": "Mock window, document and DOM outside of a browser environment.",
5
5
  "main": "./index.cjs",
6
6
  "module": "./index.js",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rindo/core",
3
- "version": "4.0.3",
3
+ "version": "4.0.4",
4
4
  "license": "MIT",
5
5
  "main": "./internal/rindo-core/index.cjs",
6
6
  "module": "./internal/rindo-core/index.js",
@@ -97,7 +97,7 @@
97
97
  "mime-db": "^1.46.0",
98
98
  "minimatch": "5.1.6",
99
99
  "mock-fs": "^5.2.0",
100
- "node-fetch": "3.3.1",
100
+ "node-fetch": "3.3.2",
101
101
  "open": "^9.0.0",
102
102
  "open-in-editor": "2.2.0",
103
103
  "parse5": "7.1.2",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rindo/core/screenshot",
3
- "version": "4.0.3",
3
+ "version": "4.0.4",
4
4
  "description": "Rindo Screenshot.",
5
5
  "main": "./index.js",
6
6
  "types": "./index.d.ts",
package/sys/node/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- Rindo Node System v4.0.3 | MIT Licensed | https://rindojs.web.app
2
+ Rindo Node System v4.0.4 | MIT Licensed | https://rindojs.web.app
3
3
  */
4
4
  function _interopDefaultLegacy(e) {
5
5
  return e && "object" == typeof e && "default" in e ? e : {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rindo/core/sys/node",
3
- "version": "4.0.3",
3
+ "version": "4.0.4",
4
4
  "description": "Rindo Node System.",
5
5
  "main": "./index.js",
6
6
  "types": "./index.d.ts",
@@ -1,5 +1,5 @@
1
1
  /*!
2
- Rindo Node System Worker v4.0.3 | MIT Licensed | https://rindojs.web.app
2
+ Rindo Node System Worker v4.0.4 | MIT Licensed | https://rindojs.web.app
3
3
  */
4
4
  function _interopNamespace(e) {
5
5
  if (e && e.__esModule) return e;
package/testing/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- Rindo Testing v4.0.3 | MIT Licensed | https://rindojs.web.app
2
+ Rindo Testing v4.0.4 | MIT Licensed | https://rindojs.web.app
3
3
  */
4
4
  function _lazyRequire(e) {
5
5
  return new Proxy({}, {
@@ -3772,7 +3772,7 @@ const getPackageDirPath = (e, t) => {
3772
3772
  u("/");
3773
3773
  const S = {
3774
3774
  name: "in-memory",
3775
- version: "4.0.3",
3775
+ version: "4.0.4",
3776
3776
  events: a,
3777
3777
  access: async e => c(e),
3778
3778
  accessSync: c,
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rindo/core/testing",
3
- "version": "4.0.3",
3
+ "version": "4.0.4",
4
4
  "description": "Rindo testing suite.",
5
5
  "main": "./index.js",
6
6
  "types": "./index.d.ts",