taggedjs 2.5.11 → 2.5.13

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.
Files changed (62) hide show
  1. package/bundle.js +311 -190
  2. package/bundle.js.map +1 -1
  3. package/js/TemplaterResult.class.d.ts +1 -1
  4. package/js/TemplaterResult.class.js.map +1 -1
  5. package/js/alterProps.function.js +13 -16
  6. package/js/alterProps.function.js.map +1 -1
  7. package/js/index.d.ts +1 -0
  8. package/js/index.js +1 -0
  9. package/js/index.js.map +1 -1
  10. package/js/interpolations/afterInterpolateElement.function.d.ts +1 -1
  11. package/js/interpolations/afterInterpolateElement.function.js +5 -2
  12. package/js/interpolations/afterInterpolateElement.function.js.map +1 -1
  13. package/js/interpolations/inputAttribute.js +6 -3
  14. package/js/interpolations/inputAttribute.js.map +1 -1
  15. package/js/interpolations/interpolateAttributes.js +3 -7
  16. package/js/interpolations/interpolateAttributes.js.map +1 -1
  17. package/js/interpolations/processAttribute.function.js +13 -6
  18. package/js/interpolations/processAttribute.function.js.map +1 -1
  19. package/js/render.d.ts +1 -1
  20. package/js/render.js.map +1 -1
  21. package/js/state/provider.utils.js +14 -7
  22. package/js/state/provider.utils.js.map +1 -1
  23. package/js/state/state.utils.js +11 -7
  24. package/js/state/state.utils.js.map +1 -1
  25. package/js/state/subject.function.d.ts +2 -0
  26. package/js/state/subject.function.js +19 -4
  27. package/js/state/subject.function.js.map +1 -1
  28. package/js/state/syncStates.function.js +3 -2
  29. package/js/state/syncStates.function.js.map +1 -1
  30. package/js/subject/Subject.class.js +9 -5
  31. package/js/subject/Subject.class.js.map +1 -1
  32. package/js/subject/subject.utils.js +4 -2
  33. package/js/subject/subject.utils.js.map +1 -1
  34. package/js/subject.types.d.ts +2 -1
  35. package/js/tag/Tag.class.js.map +1 -1
  36. package/js/tag/TagSupport.class.d.ts +0 -2
  37. package/js/tag/TagSupport.class.js +20 -24
  38. package/js/tag/TagSupport.class.js.map +1 -1
  39. package/js/tag/checkDestroyPrevious.function.js +7 -1
  40. package/js/tag/checkDestroyPrevious.function.js.map +1 -1
  41. package/js/tag/destroy.support.js.map +1 -1
  42. package/js/tag/tag.d.ts +8 -18
  43. package/js/tag/tag.js +23 -10
  44. package/js/tag/tag.js.map +1 -1
  45. package/js/tag/tag.utils.d.ts +16 -0
  46. package/js/tag/tag.utils.js +2 -0
  47. package/js/tag/tag.utils.js.map +1 -0
  48. package/js/tag/tagElement.d.ts +1 -1
  49. package/js/tag/tagRunner.js +20 -5
  50. package/js/tag/tagRunner.js.map +1 -1
  51. package/js/tag/update/processFirstSubjectValue.function.js +25 -1
  52. package/js/tag/update/processFirstSubjectValue.function.js.map +1 -1
  53. package/js/tag/update/processTag.function.d.ts +1 -0
  54. package/js/tag/update/processTag.function.js +7 -3
  55. package/js/tag/update/processTag.function.js.map +1 -1
  56. package/js/tag/update/processTagArray.js +6 -4
  57. package/js/tag/update/processTagArray.js.map +1 -1
  58. package/js/tag/update/updateExistingTagComponent.function.js +9 -9
  59. package/js/tag/update/updateExistingTagComponent.function.js.map +1 -1
  60. package/js/tag/update/updateExistingValue.function.js +3 -0
  61. package/js/tag/update/updateExistingValue.function.js.map +1 -1
  62. package/package.json +1 -1
package/bundle.js CHANGED
@@ -73,23 +73,20 @@ function resetFunctionProps(newProps, ownerSupport) {
73
73
  }
74
74
  // BELOW: Do not clone because if first argument is object, the memory ref back is lost
75
75
  // const newProps = {...props}
76
- Object.entries(newProps).forEach(([name, value]) => {
77
- if (value instanceof Function) {
78
- const toCall = newProps[name].toCall;
79
- if (toCall) {
80
- return; // already previously converted
81
- }
82
- newProps[name] = (...args) => {
83
- return newProps[name].toCall(...args); // what gets called can switch over parent state changes
84
- };
85
- // Currently, call self but over parent state changes, I may need to call a newer parent tag owner
86
- newProps[name].toCall = (...args) => {
87
- return callbackPropOwner(value, args, ownerSupport);
88
- };
89
- newProps[name].original = value;
90
- return;
76
+ for (const name in newProps) {
77
+ const value = newProps[name];
78
+ if (!(value instanceof Function)) {
79
+ continue;
91
80
  }
92
- });
81
+ const toCall = newProps[name].toCall;
82
+ if (toCall) {
83
+ continue; // already previously converted
84
+ }
85
+ newProps[name] = (...args) => newProps[name].toCall(...args); // what gets called can switch over parent state changes
86
+ // Currently, call self but over parent state changes, I may need to call a newer parent tag owner
87
+ newProps[name].toCall = (...args) => callbackPropOwner(value, args, ownerSupport);
88
+ newProps[name].original = value;
89
+ }
93
90
  return newProps;
94
91
  }
95
92
  function callbackPropOwner(toCall, callWith, ownerSupport) {
@@ -333,8 +330,11 @@ function afterInterpolateElement(container, insertBefore, tagSupport, context, o
333
330
  if (!clones.length) {
334
331
  return clones;
335
332
  }
336
- clones.forEach(clone => (0,_interpolateTemplate__WEBPACK_IMPORTED_MODULE_1__.afterElmBuild)(clone, options, context, tagSupport));
337
- tagSupport.clones.push(...clones);
333
+ for (let index = clones.length - 1; index >= 0; --index) {
334
+ const clone = clones[index];
335
+ (0,_interpolateTemplate__WEBPACK_IMPORTED_MODULE_1__.afterElmBuild)(clone, options, context, tagSupport);
336
+ tagSupport.clones.push(clone);
337
+ }
338
338
  return clones;
339
339
  }
340
340
 
@@ -451,12 +451,15 @@ function inputAttribute(name, value, element) {
451
451
  if (names[0] === 'class') {
452
452
  names.shift();
453
453
  if (value) {
454
- names.forEach(name => element.classList.add(name));
454
+ for (let index = 0; index < names.length; ++index) {
455
+ element.classList.add(names[index]);
456
+ }
455
457
  }
456
458
  else {
457
- names.forEach(name => element.classList.remove(name));
459
+ for (let index = 0; index < names.length; ++index) {
460
+ element.classList.remove(names[index]);
461
+ }
458
462
  }
459
- return;
460
463
  }
461
464
  }
462
465
 
@@ -479,24 +482,20 @@ function howToSetAttribute(element, name, value) {
479
482
  element.setAttribute(name, value);
480
483
  }
481
484
  function howToSetInputValue(element, name, value) {
482
- /*
483
- if((element as any)[name] === value) {
484
- return // its already the value we are setting
485
- }
486
- */
487
485
  element[name] = value;
488
486
  }
489
487
  function interpolateAttributes(child, scope, ownerSupport) {
490
488
  const attrNames = child.getAttributeNames();
491
489
  let howToSet = howToSetAttribute;
492
- attrNames.forEach(attrName => {
490
+ for (let index = 0; index < attrNames.length; ++index) {
491
+ const attrName = attrNames[index];
493
492
  if (child.nodeName === 'INPUT' && attrName === 'value') {
494
493
  howToSet = howToSetInputValue;
495
494
  }
496
495
  const value = child.getAttribute(attrName);
497
496
  (0,_processAttribute_function__WEBPACK_IMPORTED_MODULE_0__.processAttribute)(attrName, value, child, scope, ownerSupport, howToSet);
498
497
  howToSet = howToSetAttribute; // put back
499
- });
498
+ }
500
499
  }
501
500
 
502
501
 
@@ -815,7 +814,9 @@ function processNameOnlyAttr(attrValue, lastValue, child, ownerSupport, howToSet
815
814
  child.removeAttribute(lastValue);
816
815
  }
817
816
  else if (lastValue instanceof Object) {
818
- Object.entries(lastValue).forEach(([name]) => child.removeAttribute(name));
817
+ for (const name in lastValue) {
818
+ child.removeAttribute(name);
819
+ }
819
820
  }
820
821
  }
821
822
  if (typeof (attrValue) === 'string') {
@@ -826,27 +827,32 @@ function processNameOnlyAttr(attrValue, lastValue, child, ownerSupport, howToSet
826
827
  return;
827
828
  }
828
829
  if (attrValue instanceof Object) {
829
- Object.entries(attrValue).forEach(([name, value]) => processNameValueAttr(name, value, child, ownerSupport, howToSet));
830
- return;
830
+ for (const name in attrValue) {
831
+ processNameValueAttr(name, attrValue[name], child, ownerSupport, howToSet);
832
+ }
831
833
  }
832
834
  }
833
835
  function processNameValueAttr(attrName, result, child, ownerSupport, howToSet) {
834
836
  const isSpecial = isSpecialAttr(attrName);
835
- // attach as callback?
836
837
  if (result instanceof Function) {
837
838
  const action = function (...args) {
838
839
  const result2 = result(child, args);
839
840
  return result2;
840
841
  };
841
842
  child[attrName].action = action;
842
- // child.addEventListener(attrName, action)
843
843
  }
844
844
  // Most every variable comes in here since everything is made a ValueSubject
845
845
  if ((0,_isInstance__WEBPACK_IMPORTED_MODULE_1__.isSubjectInstance)(result)) {
846
846
  child.removeAttribute(attrName);
847
847
  const callback = (newAttrValue) => {
848
+ // should the function be wrapped so every time its called we re-render?
848
849
  if (newAttrValue instanceof Function) {
849
- newAttrValue = (0,_bindSubjectCallback_function__WEBPACK_IMPORTED_MODULE_2__.bindSubjectCallback)(newAttrValue, ownerSupport);
850
+ const wrapper = ownerSupport.templater.wrapper;
851
+ const parentWrap = wrapper?.parentWrap;
852
+ const oneRender = parentWrap?.oneRender;
853
+ if (!oneRender) {
854
+ newAttrValue = (0,_bindSubjectCallback_function__WEBPACK_IMPORTED_MODULE_2__.bindSubjectCallback)(newAttrValue, ownerSupport);
855
+ }
850
856
  }
851
857
  return processAttributeSubjectValue(newAttrValue, child, attrName, isSpecial, howToSet);
852
858
  };
@@ -1332,25 +1338,29 @@ function providersChangeCheck(tagSupport) {
1332
1338
  const global = tagSupport.global;
1333
1339
  const providersWithChanges = global.providers.filter(provider => !(0,_deepFunctions__WEBPACK_IMPORTED_MODULE_0__.deepEqual)(provider.instance, provider.clone));
1334
1340
  // reset clones
1335
- providersWithChanges.forEach(provider => {
1341
+ for (let index = providersWithChanges.length - 1; index >= 0; --index) {
1342
+ const provider = providersWithChanges[index];
1336
1343
  const appSupport = tagSupport.getAppTagSupport();
1337
1344
  handleProviderChanges(appSupport, provider);
1338
1345
  provider.clone = (0,_deepFunctions__WEBPACK_IMPORTED_MODULE_0__.deepClone)(provider.instance);
1339
- });
1346
+ }
1340
1347
  }
1341
1348
  function handleProviderChanges(appSupport, provider) {
1342
1349
  const tagsWithProvider = getTagsWithProvider(appSupport, provider);
1343
- tagsWithProvider.forEach(({ tagSupport, renderCount, provider }) => {
1350
+ for (let index = tagsWithProvider.length - 1; index >= 0; --index) {
1351
+ const { tagSupport, renderCount, provider } = tagsWithProvider[index];
1344
1352
  if (tagSupport.global.deleted) {
1345
- return; // i was deleted after another tag processed
1353
+ continue; // i was deleted after another tag processed
1346
1354
  }
1347
1355
  const notRendered = renderCount === tagSupport.global.renderCount;
1348
1356
  if (notRendered) {
1349
1357
  provider.clone = (0,_deepFunctions__WEBPACK_IMPORTED_MODULE_0__.deepClone)(provider.instance);
1350
- return (0,_tag_render_renderTagSupport_function__WEBPACK_IMPORTED_MODULE_1__.renderTagSupport)(tagSupport, false);
1358
+ (0,_tag_render_renderTagSupport_function__WEBPACK_IMPORTED_MODULE_1__.renderTagSupport)(tagSupport, false);
1359
+ continue;
1351
1360
  }
1352
- });
1361
+ }
1353
1362
  }
1363
+ /** Updates and returns memory of tag providers */
1354
1364
  function getTagsWithProvider(tagSupport, provider, memory = []) {
1355
1365
  const global = tagSupport.global;
1356
1366
  const compare = global.providers;
@@ -1362,7 +1372,10 @@ function getTagsWithProvider(tagSupport, provider, memory = []) {
1362
1372
  provider: hasProvider,
1363
1373
  });
1364
1374
  }
1365
- tagSupport.childTags.forEach(child => getTagsWithProvider(child, provider, memory));
1375
+ const childTags = tagSupport.childTags;
1376
+ for (let index = childTags.length - 1; index >= 0; --index) {
1377
+ getTagsWithProvider(childTags[index], provider, memory);
1378
+ }
1366
1379
  return memory;
1367
1380
  }
1368
1381
 
@@ -1606,7 +1619,6 @@ const beforeRender = (tagSupport) => initState(tagSupport);
1606
1619
  beforeRedraw: beforeRender,
1607
1620
  afterRender: (tagSupport) => {
1608
1621
  const memory = tagSupport.memory;
1609
- // const state: State = memory.state
1610
1622
  const config = _setUse_function__WEBPACK_IMPORTED_MODULE_1__.setUse.memory.stateConfig;
1611
1623
  const rearray = config.rearray;
1612
1624
  if (rearray.length) {
@@ -1623,13 +1635,15 @@ const beforeRender = (tagSupport) => initState(tagSupport);
1623
1635
  throw error;
1624
1636
  }
1625
1637
  }
1626
- const cTagConfig = config.tagSupport;
1627
1638
  delete config.rearray; // clean up any previous runs
1628
1639
  delete config.tagSupport;
1629
1640
  memory.state.length = 0;
1630
1641
  memory.state.push(...config.array);
1631
- // memory.state = config.array // [...config.array]
1632
- memory.state.forEach(item => item.lastValue = getStateValue(item)); // set last values
1642
+ const state = memory.state;
1643
+ for (let index = state.length - 1; index >= 0; --index) {
1644
+ const item = state[index];
1645
+ item.lastValue = getStateValue(item); // set last values
1646
+ }
1633
1647
  config.array = [];
1634
1648
  }
1635
1649
  });
@@ -1655,15 +1669,18 @@ function initState(tagSupport) {
1655
1669
  const memory = tagSupport.memory;
1656
1670
  const state = memory.state;
1657
1671
  const config = _setUse_function__WEBPACK_IMPORTED_MODULE_1__.setUse.memory.stateConfig;
1658
- // TODO: This guard may no longer be needed
1672
+ // TODO: The following two blocks of code are state protects, have a production mode that removes this checks
1659
1673
  /*
1660
1674
  if (config.rearray) {
1661
1675
  checkStateMismatch(tagSupport, config, state)
1662
1676
  }
1663
1677
  */
1664
1678
  config.rearray = [];
1665
- if (state?.length) {
1666
- state.forEach(state => getStateValue(state));
1679
+ const stateLength = state?.length;
1680
+ if (stateLength) {
1681
+ for (let index = 0; index < stateLength; ++index) {
1682
+ getStateValue(state[index]);
1683
+ }
1667
1684
  config.rearray.push(...state);
1668
1685
  }
1669
1686
  config.tagSupport = tagSupport;
@@ -1728,14 +1745,29 @@ __webpack_require__.r(__webpack_exports__);
1728
1745
 
1729
1746
 
1730
1747
 
1748
+ /** Create a Subject that on updates will sync state values to keep chained functions using latest variables */
1731
1749
  function subject(value, onSubscription) {
1732
1750
  const oldestState = (0,_state_function__WEBPACK_IMPORTED_MODULE_3__.state)(() => _setUse_function__WEBPACK_IMPORTED_MODULE_2__.setUse.memory.stateConfig.array);
1733
1751
  const nowTagSupport = (0,_tag_getSupportInCycle_function__WEBPACK_IMPORTED_MODULE_1__.getSupportInCycle)();
1734
- return new _subject__WEBPACK_IMPORTED_MODULE_0__.Subject(value, onSubscription).pipe(x => {
1735
- (0,_syncStates_function__WEBPACK_IMPORTED_MODULE_4__.syncStates)(nowTagSupport.memory.state, oldestState);
1736
- return x;
1752
+ return (0,_state_function__WEBPACK_IMPORTED_MODULE_3__.state)(() => {
1753
+ const subject = new _subject__WEBPACK_IMPORTED_MODULE_0__.Subject(value, onSubscription).pipe(x => {
1754
+ (0,_syncStates_function__WEBPACK_IMPORTED_MODULE_4__.syncStates)(nowTagSupport.memory.state, oldestState);
1755
+ return x;
1756
+ });
1757
+ return subject;
1737
1758
  });
1738
1759
  }
1760
+ subject.value = (value) => {
1761
+ const oldestState = (0,_state_function__WEBPACK_IMPORTED_MODULE_3__.state)(() => _setUse_function__WEBPACK_IMPORTED_MODULE_2__.setUse.memory.stateConfig.array);
1762
+ const nowTagSupport = (0,_tag_getSupportInCycle_function__WEBPACK_IMPORTED_MODULE_1__.getSupportInCycle)();
1763
+ return (0,_state_function__WEBPACK_IMPORTED_MODULE_3__.state)(() => {
1764
+ const subject = new _subject__WEBPACK_IMPORTED_MODULE_0__.ValueSubject(value).pipe(x => {
1765
+ (0,_syncStates_function__WEBPACK_IMPORTED_MODULE_4__.syncStates)(nowTagSupport.memory.state, oldestState);
1766
+ return x;
1767
+ });
1768
+ return subject;
1769
+ });
1770
+ };
1739
1771
  function all(args) {
1740
1772
  const oldestState = (0,_state_function__WEBPACK_IMPORTED_MODULE_3__.state)(() => _setUse_function__WEBPACK_IMPORTED_MODULE_2__.setUse.memory.stateConfig.array);
1741
1773
  const nowTagSupport = (0,_tag_getSupportInCycle_function__WEBPACK_IMPORTED_MODULE_1__.getSupportInCycle)();
@@ -1760,14 +1792,15 @@ __webpack_require__.r(__webpack_exports__);
1760
1792
  /* harmony export */ syncStates: () => (/* binding */ syncStates)
1761
1793
  /* harmony export */ });
1762
1794
  function syncStates(stateFrom, stateTo) {
1763
- stateFrom.forEach((state, index) => {
1795
+ for (let index = stateFrom.length - 1; index >= 0; --index) {
1796
+ const state = stateFrom[index];
1764
1797
  const fromValue = state.get();
1765
1798
  const callback = stateTo[index].callback;
1766
1799
  if (callback) {
1767
1800
  callback(fromValue); // set the value
1768
1801
  }
1769
1802
  stateTo[index].lastValue = fromValue; // record the value
1770
- });
1803
+ }
1771
1804
  }
1772
1805
 
1773
1806
 
@@ -1966,15 +1999,17 @@ class Subject {
1966
1999
  set(value) {
1967
2000
  this.value = value;
1968
2001
  // Notify all subscribers with the new value
1969
- this.subscribers.forEach(sub => {
1970
- // (sub.callback as any).value = value
2002
+ const subs = [...this.subscribers]; // subs may change as we call callbacks
2003
+ const length = subs.length;
2004
+ for (let index = 0; index < length; ++index) {
2005
+ const sub = subs[index];
1971
2006
  sub.callback(value, sub);
1972
- });
2007
+ }
1973
2008
  }
1974
2009
  // next() is available for rxjs compatibility
1975
2010
  next = this.set;
1976
2011
  toPromise() {
1977
- return new Promise((res, rej) => {
2012
+ return new Promise(res => {
1978
2013
  this.subscribe((x, subscription) => {
1979
2014
  subscription.unsubscribe();
1980
2015
  res(x);
@@ -1990,9 +2025,11 @@ class Subject {
1990
2025
  return this;
1991
2026
  }
1992
2027
  pipe(...operations) {
1993
- const subject = new Subject();
2028
+ const subject = new Subject(this.value);
1994
2029
  subject.methods = operations;
1995
2030
  subject.subscribeWith = (x) => this.subscribe(x);
2031
+ subject.set = x => this.set(x);
2032
+ subject.next = subject.set;
1996
2033
  return subject;
1997
2034
  }
1998
2035
  static all(args) {
@@ -2151,7 +2188,10 @@ function getSubscription(subject, callback) {
2151
2188
  // any double unsubscribes will be ignored
2152
2189
  subscription.unsubscribe = () => subscription;
2153
2190
  // unsubscribe from any combined subjects
2154
- subscription.subscriptions.forEach(subscription => subscription.unsubscribe());
2191
+ const subscriptions = subscription.subscriptions;
2192
+ for (let index = subscriptions.length - 1; index >= 0; --index) {
2193
+ subscriptions[index].unsubscribe();
2194
+ }
2155
2195
  return subscription;
2156
2196
  };
2157
2197
  subscription.add = (sub) => {
@@ -2171,7 +2211,6 @@ function runPipedMethods(value, methods, onComplete) {
2171
2211
  return runPipedMethods(newValue, cloneMethods, onComplete);
2172
2212
  }
2173
2213
  onComplete(newValue);
2174
- // return newValue = next
2175
2214
  };
2176
2215
  let handler = next;
2177
2216
  const setHandler = (x) => handler = x;
@@ -2298,8 +2337,6 @@ __webpack_require__.r(__webpack_exports__);
2298
2337
  /* harmony import */ var _interpolations_interpolateElement__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../interpolations/interpolateElement */ "./ts/interpolations/interpolateElement.ts");
2299
2338
  /* harmony import */ var _interpolations_interpolateTemplate__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../interpolations/interpolateTemplate */ "./ts/interpolations/interpolateTemplate.ts");
2300
2339
  /* harmony import */ var _interpolations_afterInterpolateElement_function__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ../interpolations/afterInterpolateElement.function */ "./ts/interpolations/afterInterpolateElement.function.ts");
2301
- /* harmony import */ var _render_renderSubjectComponent_function__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./render/renderSubjectComponent.function */ "./ts/tag/render/renderSubjectComponent.function.ts");
2302
-
2303
2340
 
2304
2341
 
2305
2342
 
@@ -2384,10 +2421,12 @@ class BaseTagSupport {
2384
2421
  (0,_interpolations_afterInterpolateElement_function__WEBPACK_IMPORTED_MODULE_13__.afterInterpolateElement)(elementContainer, placeholderElm, this, // ownerSupport
2385
2422
  context, options);
2386
2423
  // Any tag components that were found should be processed AFTER the owner processes its elements. Avoid double processing of elements attributes like (oninit)=${}
2387
- tagComponents.forEach(tagComponent => {
2424
+ const length = tagComponents.length;
2425
+ for (let index = 0; index < length; ++index) {
2426
+ const tagComponent = tagComponents[index];
2388
2427
  (0,_interpolations_interpolateTemplate__WEBPACK_IMPORTED_MODULE_12__.subscribeToTemplate)(tagComponent.insertBefore, tagComponent.subject, tagComponent.ownerSupport, options.counts);
2389
2428
  (0,_interpolations_afterInterpolateElement_function__WEBPACK_IMPORTED_MODULE_13__.afterInterpolateElement)(elementContainer, tagComponent.insertBefore, tagComponent.ownerSupport, context, options);
2390
- });
2429
+ }
2391
2430
  }
2392
2431
  getTemplate() {
2393
2432
  const thisTag = this.templater.tag;
@@ -2461,14 +2500,15 @@ class TagSupport extends BaseTagSupport {
2461
2500
  }
2462
2501
  this.destroySubscriptions();
2463
2502
  // signify immediately child has been deleted (looked for during event processing)
2464
- childTags.forEach(child => {
2503
+ for (let index = childTags.length - 1; index >= 0; --index) {
2504
+ const child = childTags[index];
2465
2505
  const subGlobal = child.global;
2466
2506
  delete subGlobal.newest;
2467
2507
  subGlobal.deleted = true;
2468
2508
  if ((0,_isInstance__WEBPACK_IMPORTED_MODULE_2__.isTagComponent)(child.templater)) {
2469
2509
  (0,_tagRunner__WEBPACK_IMPORTED_MODULE_5__.runBeforeDestroy)(child, child);
2470
2510
  }
2471
- });
2511
+ }
2472
2512
  // HTML DOM manipulation. Put back down the template tag
2473
2513
  const insertBefore = global.insertBefore;
2474
2514
  if (insertBefore.nodeName === 'TEMPLATE') {
@@ -2514,9 +2554,11 @@ class TagSupport extends BaseTagSupport {
2514
2554
  return mainPromise.then(() => options.stagger);
2515
2555
  }
2516
2556
  destroySubscriptions() {
2517
- const global = this.global;
2518
- global.subscriptions.forEach(cloneSub => cloneSub.unsubscribe());
2519
- global.subscriptions.length = 0;
2557
+ const subs = this.global.subscriptions;
2558
+ for (let index = subs.length - 1; index >= 0; --index) {
2559
+ subs[index].unsubscribe();
2560
+ }
2561
+ subs.length = 0;
2520
2562
  }
2521
2563
  destroyClones({ stagger } = {
2522
2564
  stagger: 0,
@@ -2526,12 +2568,13 @@ class TagSupport extends BaseTagSupport {
2526
2568
  const promises = oldClones.map(clone => this.checkCloneRemoval(clone, stagger)).filter(x => x); // only return promises
2527
2569
  // check subjects that may have clones attached to them
2528
2570
  const oldContext = this.global.context;
2529
- Object.values(oldContext).forEach(value => {
2571
+ for (const name in oldContext) {
2572
+ const value = oldContext[name];
2530
2573
  const clone = value.clone;
2531
- if (clone && clone.parentNode) {
2574
+ if (clone?.parentNode) {
2532
2575
  clone.parentNode.removeChild(clone);
2533
2576
  }
2534
- });
2577
+ }
2535
2578
  if (promises.length) {
2536
2579
  return { promise: Promise.all(promises), stagger };
2537
2580
  }
@@ -2575,18 +2618,6 @@ class TagSupport extends BaseTagSupport {
2575
2618
  this.values = values;
2576
2619
  return this.updateContext(this.global.context);
2577
2620
  }
2578
- /** Used during HMR only where static content itself could have been edited */
2579
- async rebuild() {
2580
- delete this.strings; // seek the templater strings instead now
2581
- delete this.values; // seek the templater strings instead now
2582
- restoreTagMarkers(this);
2583
- const newSupport = (0,_render_renderSubjectComponent_function__WEBPACK_IMPORTED_MODULE_14__.renderSubjectComponent)(this.subject, this, this.ownerTagSupport);
2584
- await this.destroy();
2585
- newSupport.buildBeforeElement(this.global.insertBefore, {
2586
- counts: { added: 0, removed: 0 },
2587
- });
2588
- return newSupport;
2589
- }
2590
2621
  getAppTagSupport() {
2591
2622
  let tag = this;
2592
2623
  while (tag.ownerTagSupport) {
@@ -2597,7 +2628,10 @@ class TagSupport extends BaseTagSupport {
2597
2628
  }
2598
2629
  function restoreTagMarkers(support) {
2599
2630
  (0,_checkDestroyPrevious_function__WEBPACK_IMPORTED_MODULE_4__.restoreTagMarker)(support);
2600
- support.childTags.forEach(childTag => restoreTagMarkers(childTag.global.oldest));
2631
+ const childTags = support.childTags;
2632
+ for (let index = childTags.length - 1; index >= 0; --index) {
2633
+ restoreTagMarkers(childTags[index].global.oldest);
2634
+ }
2601
2635
  }
2602
2636
 
2603
2637
 
@@ -2649,7 +2683,10 @@ newValue, insertBefore) {
2649
2683
  delete arraySubject.lastArray;
2650
2684
  delete arraySubject.placeholder;
2651
2685
  (0,_insertAfter_function__WEBPACK_IMPORTED_MODULE_3__.insertAfter)(insertBefore, placeholderElm);
2652
- wasArray.forEach(({ tagSupport }) => destroyArrayTag(tagSupport, { added: 0, removed: 0 }));
2686
+ for (let index = wasArray.length - 1; index >= 0; --index) {
2687
+ const { tagSupport } = wasArray[index];
2688
+ destroyArrayTag(tagSupport, { added: 0, removed: 0 });
2689
+ }
2653
2690
  return 'array';
2654
2691
  }
2655
2692
  const tagSubject = subject;
@@ -2673,6 +2710,9 @@ newValue, insertBefore) {
2673
2710
  if (isValueTagComponent) {
2674
2711
  return false; // its still a tag component
2675
2712
  }
2713
+ if (newValue && newValue.oneRender) {
2714
+ return false;
2715
+ }
2676
2716
  // put template back down
2677
2717
  restoreTagMarker(lastSupport);
2678
2718
  // destroy old component, value is not a component
@@ -3321,8 +3361,7 @@ function swapInsertBefore(insertBefore) {
3321
3361
  __webpack_require__.r(__webpack_exports__);
3322
3362
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
3323
3363
  /* harmony export */ kidsToTagArraySubject: () => (/* binding */ kidsToTagArraySubject),
3324
- /* harmony export */ tag: () => (/* binding */ tag),
3325
- /* harmony export */ tags: () => (/* binding */ tags)
3364
+ /* harmony export */ tag: () => (/* binding */ tag)
3326
3365
  /* harmony export */ });
3327
3366
  /* harmony import */ var _isInstance__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../isInstance */ "./ts/isInstance.ts");
3328
3367
  /* harmony import */ var _state__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../state */ "./ts/state/index.ts");
@@ -3332,6 +3371,8 @@ __webpack_require__.r(__webpack_exports__);
3332
3371
  /* harmony import */ var _TagSupport_class__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./TagSupport.class */ "./ts/tag/TagSupport.class.ts");
3333
3372
  /* harmony import */ var _alterProps_function__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../alterProps.function */ "./ts/alterProps.function.ts");
3334
3373
  /* harmony import */ var _subject_ValueSubject__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../subject/ValueSubject */ "./ts/subject/ValueSubject.ts");
3374
+ /* harmony import */ var _tag_utils__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./tag.utils */ "./ts/tag/tag.utils.ts");
3375
+
3335
3376
 
3336
3377
 
3337
3378
 
@@ -3340,11 +3381,10 @@ __webpack_require__.r(__webpack_exports__);
3340
3381
 
3341
3382
 
3342
3383
 
3343
- // export const tags: TagComponentBase<any>[] = []
3344
- const tags = [];
3345
3384
  let tagCount = 0;
3346
- /** Wraps a tag component in a state manager and always push children to last argument as an array */
3347
- // export function tag<T>(a: T): T;
3385
+ /** Wraps a function tag in a state manager and calls wrapped function on event cycles
3386
+ * For single rendering, no event cycles, use: tag.renderOnce = (props) => html``
3387
+ */
3348
3388
  function tag(tagComponent) {
3349
3389
  /** function developer triggers */
3350
3390
  const parentWrap = (function tagWrapper(...props) {
@@ -3364,9 +3404,18 @@ function tag(tagComponent) {
3364
3404
  updateResult(parentWrap, tagComponent);
3365
3405
  // group tags together and have hmr pickup
3366
3406
  updateComponent(tagComponent);
3367
- tags.push(parentWrap);
3407
+ _tag_utils__WEBPACK_IMPORTED_MODULE_8__.tags.push(parentWrap);
3368
3408
  return parentWrap;
3369
3409
  }
3410
+ /** Used to create a tag component that renders once and has no addition rendering cycles */
3411
+ tag.oneRender = (...props) => {
3412
+ throw new Error('Do not call function tag.oneRender but instead set it as: `tag.oneRender = (props) => html`` `');
3413
+ };
3414
+ Object.defineProperty(tag, 'oneRender', {
3415
+ set(oneRenderFunction) {
3416
+ oneRenderFunction.oneRender = true;
3417
+ },
3418
+ });
3370
3419
  function kidsToTagArraySubject(children) {
3371
3420
  if ((0,_isInstance__WEBPACK_IMPORTED_MODULE_0__.isSubjectInstance)(children)) {
3372
3421
  return { childSubject: children, madeSubject: false };
@@ -3390,7 +3439,7 @@ function updateResult(result, tagComponent) {
3390
3439
  result.original = tagComponent;
3391
3440
  }
3392
3441
  function updateComponent(tagComponent) {
3393
- tagComponent.tags = tags;
3442
+ tagComponent.tags = _tag_utils__WEBPACK_IMPORTED_MODULE_8__.tags;
3394
3443
  tagComponent.setUse = _state__WEBPACK_IMPORTED_MODULE_1__.setUse;
3395
3444
  tagComponent.tagIndex = tagCount++; // needed for things like HMR
3396
3445
  }
@@ -3428,14 +3477,18 @@ function getTagWrap(templater, result) {
3428
3477
  };
3429
3478
  tagSupport.memory = newTagSupport.memory; // state handover
3430
3479
  if (templater.madeChildIntoSubject) {
3431
- childSubject.value.forEach(kid => {
3432
- kid.values.forEach((value, index) => {
3480
+ const value = childSubject.value;
3481
+ for (let index = value.length - 1; index >= 0; --index) {
3482
+ const kid = value[index];
3483
+ const values = kid.values;
3484
+ for (let index = values.length - 1; index >= 0; --index) {
3485
+ const value = values[index];
3433
3486
  if (!(value instanceof Function)) {
3434
- return;
3487
+ continue;
3435
3488
  }
3436
3489
  const valuesValue = kid.values[index];
3437
3490
  if (valuesValue.isChildOverride) {
3438
- return; // already overwritten
3491
+ continue; // already overwritten
3439
3492
  }
3440
3493
  // all functions need to report to me
3441
3494
  kid.values[index] = function (...args) {
@@ -3445,8 +3498,8 @@ function getTagWrap(templater, result) {
3445
3498
  args);
3446
3499
  };
3447
3500
  valuesValue.isChildOverride = true;
3448
- });
3449
- });
3501
+ }
3502
+ }
3450
3503
  }
3451
3504
  return tagSupport;
3452
3505
  };
@@ -3454,6 +3507,21 @@ function getTagWrap(templater, result) {
3454
3507
  }
3455
3508
 
3456
3509
 
3510
+ /***/ }),
3511
+
3512
+ /***/ "./ts/tag/tag.utils.ts":
3513
+ /*!*****************************!*\
3514
+ !*** ./ts/tag/tag.utils.ts ***!
3515
+ \*****************************/
3516
+ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
3517
+
3518
+ __webpack_require__.r(__webpack_exports__);
3519
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
3520
+ /* harmony export */ tags: () => (/* binding */ tags)
3521
+ /* harmony export */ });
3522
+ const tags = [];
3523
+
3524
+
3457
3525
  /***/ }),
3458
3526
 
3459
3527
  /***/ "./ts/tag/tagElement.ts":
@@ -3553,7 +3621,6 @@ __webpack_require__.r(__webpack_exports__);
3553
3621
  /* harmony import */ var _state__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../state */ "./ts/state/index.ts");
3554
3622
  /* harmony import */ var _subject__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../subject */ "./ts/subject/index.ts");
3555
3623
  /* harmony import */ var _getSupportInCycle_function__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./getSupportInCycle.function */ "./ts/tag/getSupportInCycle.function.ts");
3556
- // TODO: This should be more like `new TaggedJs().use({})`
3557
3624
 
3558
3625
 
3559
3626
 
@@ -3565,20 +3632,36 @@ _state__WEBPACK_IMPORTED_MODULE_0__.setUse.memory.tagClosed$ = new _subject__WEB
3565
3632
  });
3566
3633
  // Life cycle 1
3567
3634
  function runBeforeRender(tagSupport, ownerSupport) {
3568
- _state__WEBPACK_IMPORTED_MODULE_0__.setUse.tagUse.forEach(tagUse => tagUse.beforeRender(tagSupport, ownerSupport));
3635
+ const tagUse = _state__WEBPACK_IMPORTED_MODULE_0__.setUse.tagUse;
3636
+ const length = tagUse.length;
3637
+ for (let index = 0; index < length; ++index) {
3638
+ tagUse[index].beforeRender(tagSupport, ownerSupport);
3639
+ }
3569
3640
  }
3570
3641
  // Life cycle 2
3571
3642
  function runAfterRender(tagSupport, ownerTagSupport) {
3572
- _state__WEBPACK_IMPORTED_MODULE_0__.setUse.tagUse.forEach(tagUse => tagUse.afterRender(tagSupport, ownerTagSupport));
3643
+ const tagUse = _state__WEBPACK_IMPORTED_MODULE_0__.setUse.tagUse;
3644
+ const length = tagUse.length;
3645
+ for (let index = 0; index < length; ++index) {
3646
+ tagUse[index].afterRender(tagSupport, ownerTagSupport);
3647
+ }
3573
3648
  _state__WEBPACK_IMPORTED_MODULE_0__.setUse.memory.tagClosed$.next(ownerTagSupport);
3574
3649
  }
3575
3650
  // Life cycle 3
3576
3651
  function runBeforeRedraw(tagSupport, ownerTagSupport) {
3577
- _state__WEBPACK_IMPORTED_MODULE_0__.setUse.tagUse.forEach(tagUse => tagUse.beforeRedraw(tagSupport, ownerTagSupport));
3652
+ const tagUse = _state__WEBPACK_IMPORTED_MODULE_0__.setUse.tagUse;
3653
+ const length = tagUse.length;
3654
+ for (let index = 0; index < length; ++index) {
3655
+ tagUse[index].beforeRedraw(tagSupport, ownerTagSupport);
3656
+ }
3578
3657
  }
3579
3658
  // Life cycle 4 - end of life
3580
3659
  function runBeforeDestroy(tagSupport, ownerTagSupport) {
3581
- _state__WEBPACK_IMPORTED_MODULE_0__.setUse.tagUse.forEach(tagUse => tagUse.beforeDestroy(tagSupport, ownerTagSupport));
3660
+ const tagUse = _state__WEBPACK_IMPORTED_MODULE_0__.setUse.tagUse;
3661
+ const length = tagUse.length;
3662
+ for (let index = 0; index < length; ++index) {
3663
+ tagUse[index].beforeDestroy(tagSupport, ownerTagSupport);
3664
+ }
3582
3665
  }
3583
3666
 
3584
3667
 
@@ -3660,9 +3743,13 @@ __webpack_require__.r(__webpack_exports__);
3660
3743
  /* harmony export */ });
3661
3744
  /* harmony import */ var _processSubjectComponent_function__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./processSubjectComponent.function */ "./ts/tag/update/processSubjectComponent.function.ts");
3662
3745
  /* harmony import */ var _processTagArray__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./processTagArray */ "./ts/tag/update/processTagArray.ts");
3663
- /* harmony import */ var _processRegularValue_function__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./processRegularValue.function */ "./ts/tag/update/processRegularValue.function.ts");
3664
- /* harmony import */ var _processTag_function__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./processTag.function */ "./ts/tag/update/processTag.function.ts");
3665
- /* harmony import */ var _processFirstSubject_utils__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./processFirstSubject.utils */ "./ts/tag/update/processFirstSubject.utils.ts");
3746
+ /* harmony import */ var _TemplaterResult_class__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../TemplaterResult.class */ "./ts/TemplaterResult.class.ts");
3747
+ /* harmony import */ var _processRegularValue_function__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./processRegularValue.function */ "./ts/tag/update/processRegularValue.function.ts");
3748
+ /* harmony import */ var _processTag_function__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./processTag.function */ "./ts/tag/update/processTag.function.ts");
3749
+ /* harmony import */ var _processFirstSubject_utils__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./processFirstSubject.utils */ "./ts/tag/update/processFirstSubject.utils.ts");
3750
+ /* harmony import */ var _render_renderTagOnly_function__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../render/renderTagOnly.function */ "./ts/tag/render/renderTagOnly.function.ts");
3751
+
3752
+
3666
3753
 
3667
3754
 
3668
3755
 
@@ -3672,26 +3759,48 @@ function processFirstSubjectValue(value, subject, // could be tag via result.tag
3672
3759
  insertBefore, // <template end interpolate /> (will be removed)
3673
3760
  ownerSupport, // owner
3674
3761
  options) {
3675
- const valueType = (0,_processFirstSubject_utils__WEBPACK_IMPORTED_MODULE_4__.getValueType)(value);
3762
+ const valueType = (0,_processFirstSubject_utils__WEBPACK_IMPORTED_MODULE_5__.getValueType)(value);
3676
3763
  switch (valueType) {
3677
- case _processFirstSubject_utils__WEBPACK_IMPORTED_MODULE_4__.ValueTypes.templater:
3678
- (0,_processTag_function__WEBPACK_IMPORTED_MODULE_3__.processTag)(value, insertBefore, ownerSupport, subject);
3764
+ case _processFirstSubject_utils__WEBPACK_IMPORTED_MODULE_5__.ValueTypes.templater:
3765
+ (0,_processTag_function__WEBPACK_IMPORTED_MODULE_4__.processTag)(value, insertBefore, ownerSupport, subject);
3679
3766
  return;
3680
- case _processFirstSubject_utils__WEBPACK_IMPORTED_MODULE_4__.ValueTypes.tag:
3767
+ case _processFirstSubject_utils__WEBPACK_IMPORTED_MODULE_5__.ValueTypes.tag:
3681
3768
  const tag = value;
3682
3769
  let templater = tag.templater;
3683
3770
  if (!templater) {
3684
- templater = (0,_processTag_function__WEBPACK_IMPORTED_MODULE_3__.tagFakeTemplater)(tag);
3771
+ templater = (0,_processTag_function__WEBPACK_IMPORTED_MODULE_4__.tagFakeTemplater)(tag);
3685
3772
  }
3686
- (0,_processTag_function__WEBPACK_IMPORTED_MODULE_3__.processTag)(templater, insertBefore, ownerSupport, subject);
3773
+ (0,_processTag_function__WEBPACK_IMPORTED_MODULE_4__.processTag)(templater, insertBefore, ownerSupport, subject);
3687
3774
  return;
3688
- case _processFirstSubject_utils__WEBPACK_IMPORTED_MODULE_4__.ValueTypes.tagArray:
3775
+ case _processFirstSubject_utils__WEBPACK_IMPORTED_MODULE_5__.ValueTypes.tagArray:
3689
3776
  return (0,_processTagArray__WEBPACK_IMPORTED_MODULE_1__.processTagArray)(subject, value, insertBefore, ownerSupport, options);
3690
- case _processFirstSubject_utils__WEBPACK_IMPORTED_MODULE_4__.ValueTypes.tagComponent:
3777
+ case _processFirstSubject_utils__WEBPACK_IMPORTED_MODULE_5__.ValueTypes.tagComponent:
3691
3778
  (0,_processSubjectComponent_function__WEBPACK_IMPORTED_MODULE_0__.processSubjectComponent)(value, subject, insertBefore, ownerSupport, options);
3692
3779
  return;
3780
+ case _processFirstSubject_utils__WEBPACK_IMPORTED_MODULE_5__.ValueTypes.function:
3781
+ const v = value;
3782
+ if (v.oneRender) {
3783
+ const templater = new _TemplaterResult_class__WEBPACK_IMPORTED_MODULE_2__.TemplaterResult([]);
3784
+ const tagSupport = (0,_processTag_function__WEBPACK_IMPORTED_MODULE_4__.newTagSupportByTemplater)(templater, ownerSupport, subject);
3785
+ let tag;
3786
+ const wrap = () => {
3787
+ templater.tag = tag || (v());
3788
+ return tagSupport;
3789
+ };
3790
+ // const wrap = () => ((v as any)())
3791
+ templater.wrapper = wrap;
3792
+ wrap.parentWrap = wrap;
3793
+ wrap.oneRender = true;
3794
+ wrap.parentWrap.original = v;
3795
+ (0,_render_renderTagOnly_function__WEBPACK_IMPORTED_MODULE_6__.renderTagOnly)(tagSupport, tagSupport, subject, ownerSupport);
3796
+ // call inner function
3797
+ // templater.tag = (v as any)() as Tag
3798
+ (0,_processTag_function__WEBPACK_IMPORTED_MODULE_4__.processTag)(templater, insertBefore, ownerSupport, subject);
3799
+ return;
3800
+ }
3801
+ break;
3693
3802
  }
3694
- (0,_processRegularValue_function__WEBPACK_IMPORTED_MODULE_2__.processFirstRegularValue)(value, subject, insertBefore);
3803
+ (0,_processRegularValue_function__WEBPACK_IMPORTED_MODULE_3__.processFirstRegularValue)(value, subject, insertBefore);
3695
3804
  }
3696
3805
 
3697
3806
 
@@ -3854,6 +3963,7 @@ function processSubjectComponent(templater, subject, insertBefore, ownerSupport,
3854
3963
  __webpack_require__.r(__webpack_exports__);
3855
3964
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
3856
3965
  /* harmony export */ getFakeTemplater: () => (/* binding */ getFakeTemplater),
3966
+ /* harmony export */ newTagSupportByTemplater: () => (/* binding */ newTagSupportByTemplater),
3857
3967
  /* harmony export */ processTag: () => (/* binding */ processTag),
3858
3968
  /* harmony export */ setupNewTemplater: () => (/* binding */ setupNewTemplater),
3859
3969
  /* harmony export */ tagFakeTemplater: () => (/* binding */ tagFakeTemplater)
@@ -3868,9 +3978,7 @@ subject) {
3868
3978
  let tagSupport = subject.tagSupport;
3869
3979
  // first time seeing this tag?
3870
3980
  if (!tagSupport) {
3871
- tagSupport = new _TagSupport_class__WEBPACK_IMPORTED_MODULE_0__.TagSupport(templater, ownerSupport, subject);
3872
- setupNewTemplater(tagSupport, ownerSupport, subject);
3873
- ownerSupport.childTags.push(tagSupport);
3981
+ tagSupport = newTagSupportByTemplater(templater, ownerSupport, subject);
3874
3982
  }
3875
3983
  subject.tagSupport = tagSupport;
3876
3984
  tagSupport.ownerTagSupport = ownerSupport;
@@ -3904,6 +4012,12 @@ function getFakeTemplater() {
3904
4012
  };
3905
4013
  return fake;
3906
4014
  }
4015
+ function newTagSupportByTemplater(templater, ownerSupport, subject) {
4016
+ const tagSupport = new _TagSupport_class__WEBPACK_IMPORTED_MODULE_0__.TagSupport(templater, ownerSupport, subject);
4017
+ setupNewTemplater(tagSupport, ownerSupport, subject);
4018
+ ownerSupport.childTags.push(tagSupport);
4019
+ return tagSupport;
4020
+ }
3907
4021
 
3908
4022
 
3909
4023
  /***/ }),
@@ -3963,7 +4077,9 @@ ownerSupport, options) {
3963
4077
  }
3964
4078
  return true;
3965
4079
  });
3966
- value.forEach((item, index) => {
4080
+ const length = value.length;
4081
+ for (let index = 0; index < length; ++index) {
4082
+ const item = value[index];
3967
4083
  const previous = lastArray[index];
3968
4084
  const previousSupport = previous?.tagSupport;
3969
4085
  const subTag = item;
@@ -3971,7 +4087,6 @@ ownerSupport, options) {
3971
4087
  (0,_processTag_function__WEBPACK_IMPORTED_MODULE_3__.tagFakeTemplater)(subTag);
3972
4088
  }
3973
4089
  const tagSupport = new _TagSupport_class__WEBPACK_IMPORTED_MODULE_4__.TagSupport(subTag.templater, ownerSupport, new _subject_ValueSubject__WEBPACK_IMPORTED_MODULE_0__.ValueSubject(undefined));
3974
- // tagSupport.templater = subTag.templater
3975
4090
  if (previousSupport) {
3976
4091
  (0,_processTag_function__WEBPACK_IMPORTED_MODULE_3__.setupNewTemplater)(tagSupport, ownerSupport, previousSupport.subject);
3977
4092
  const global = previousSupport.global;
@@ -3997,11 +4112,12 @@ ownerSupport, options) {
3997
4112
  // subTag.tagSupport = subTag.tagSupport || prevSupport
3998
4113
  const oldest = prevGlobal.oldest;
3999
4114
  oldest.updateBy(tagSupport);
4000
- return [];
4115
+ // return []
4116
+ continue;
4001
4117
  }
4002
4118
  processAddTagArrayItem(runtimeInsertBefore, tagSupport, index, options, lastArray);
4003
4119
  ownerSupport.childTags.push(tagSupport);
4004
- });
4120
+ }
4005
4121
  return clones;
4006
4122
  }
4007
4123
  function setPlaceholderElm(insertBefore, subject) {
@@ -4182,8 +4298,7 @@ subject, insertBefore) {
4182
4298
  const oldFunction = oldWrapper.parentWrap.original;
4183
4299
  const newFunction = newWrapper.parentWrap.original;
4184
4300
  // string compare both functions
4185
- // isSameTag = oldFunction.compareTo === newFunction.compareTo // ???
4186
- isSameTag = oldFunction === newFunction; // ???
4301
+ isSameTag = oldFunction === newFunction;
4187
4302
  }
4188
4303
  const templater = tagSupport.templater;
4189
4304
  if (!isSameTag) {
@@ -4252,7 +4367,8 @@ function syncFunctionProps(lastSupport, ownerSupport, newPropsArray) {
4252
4367
  const priorPropConfig = lastSupport.propsConfig;
4253
4368
  const priorPropsArray = priorPropConfig.latestCloned;
4254
4369
  const prevSupport = ownerSupport.global.newest;
4255
- newPropsArray.forEach((argPosition, index) => {
4370
+ for (let index = newPropsArray.length - 1; index >= 0; --index) {
4371
+ const argPosition = newPropsArray[index];
4256
4372
  if (typeof (argPosition) !== 'object') {
4257
4373
  return;
4258
4374
  }
@@ -4260,23 +4376,23 @@ function syncFunctionProps(lastSupport, ownerSupport, newPropsArray) {
4260
4376
  if (typeof (priorProps) !== 'object') {
4261
4377
  return;
4262
4378
  }
4263
- Object.entries(argPosition).forEach(([name, value]) => {
4379
+ for (const name in argPosition) {
4380
+ const value = argPosition[name];
4264
4381
  if (!(value instanceof Function)) {
4265
- return;
4382
+ continue;
4266
4383
  }
4267
4384
  const newCallback = argPosition[name]; // || value
4268
4385
  const original = newCallback instanceof Function && newCallback.toCall;
4269
4386
  if (original) {
4270
- return; // already previously converted
4387
+ continue; // already previously converted
4271
4388
  }
4272
4389
  // Currently, call self but over parent state changes, I may need to call a newer parent tag owner
4273
4390
  priorProps[name].toCall = (...args) => {
4274
4391
  return (0,_alterProps_function__WEBPACK_IMPORTED_MODULE_4__.callbackPropOwner)(newCallback, // value, // newOriginal,
4275
4392
  args, prevSupport);
4276
4393
  };
4277
- return;
4278
- });
4279
- });
4394
+ }
4395
+ }
4280
4396
  }
4281
4397
 
4282
4398
 
@@ -4327,6 +4443,9 @@ function updateExistingValue(subject, value, ownerSupport, insertBefore) {
4327
4443
  // was component but no longer
4328
4444
  const tagSupport = subjectTag.tagSupport;
4329
4445
  if (tagSupport) {
4446
+ if (valueType === _processFirstSubject_utils__WEBPACK_IMPORTED_MODULE_3__.ValueTypes.function) {
4447
+ return subjectTag; // its a oneRender tag
4448
+ }
4330
4449
  handleStillTag(subject, value, ownerSupport);
4331
4450
  return subjectTag;
4332
4451
  }
@@ -4530,66 +4649,68 @@ var __webpack_exports__ = {};
4530
4649
  \*********************/
4531
4650
  __webpack_require__.r(__webpack_exports__);
4532
4651
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
4533
- /* harmony export */ ArrayNoKeyError: () => (/* reexport safe */ _errors__WEBPACK_IMPORTED_MODULE_2__.ArrayNoKeyError),
4534
- /* harmony export */ BaseTagSupport: () => (/* reexport safe */ _tag_TagSupport_class__WEBPACK_IMPORTED_MODULE_6__.BaseTagSupport),
4535
- /* harmony export */ StateMismatchError: () => (/* reexport safe */ _errors__WEBPACK_IMPORTED_MODULE_2__.StateMismatchError),
4536
- /* harmony export */ Subject: () => (/* reexport safe */ _subject_index__WEBPACK_IMPORTED_MODULE_5__.Subject),
4537
- /* harmony export */ SyncCallbackError: () => (/* reexport safe */ _errors__WEBPACK_IMPORTED_MODULE_2__.SyncCallbackError),
4538
- /* harmony export */ Tag: () => (/* reexport safe */ _tag_Tag_class__WEBPACK_IMPORTED_MODULE_10__.Tag),
4539
- /* harmony export */ TagError: () => (/* reexport safe */ _errors__WEBPACK_IMPORTED_MODULE_2__.TagError),
4540
- /* harmony export */ TagSupport: () => (/* reexport safe */ _tag_TagSupport_class__WEBPACK_IMPORTED_MODULE_6__.TagSupport),
4541
- /* harmony export */ ValueSubject: () => (/* reexport safe */ _subject_index__WEBPACK_IMPORTED_MODULE_5__.ValueSubject),
4542
- /* harmony export */ callback: () => (/* reexport safe */ _state_index__WEBPACK_IMPORTED_MODULE_4__.callback),
4543
- /* harmony export */ callbackMaker: () => (/* reexport safe */ _state_index__WEBPACK_IMPORTED_MODULE_4__.callbackMaker),
4544
- /* harmony export */ children: () => (/* reexport safe */ _state_index__WEBPACK_IMPORTED_MODULE_4__.children),
4545
- /* harmony export */ combineLatest: () => (/* reexport safe */ _subject_index__WEBPACK_IMPORTED_MODULE_5__.combineLatest),
4652
+ /* harmony export */ ArrayNoKeyError: () => (/* reexport safe */ _errors__WEBPACK_IMPORTED_MODULE_3__.ArrayNoKeyError),
4653
+ /* harmony export */ BaseTagSupport: () => (/* reexport safe */ _tag_TagSupport_class__WEBPACK_IMPORTED_MODULE_7__.BaseTagSupport),
4654
+ /* harmony export */ StateMismatchError: () => (/* reexport safe */ _errors__WEBPACK_IMPORTED_MODULE_3__.StateMismatchError),
4655
+ /* harmony export */ Subject: () => (/* reexport safe */ _subject_index__WEBPACK_IMPORTED_MODULE_6__.Subject),
4656
+ /* harmony export */ SyncCallbackError: () => (/* reexport safe */ _errors__WEBPACK_IMPORTED_MODULE_3__.SyncCallbackError),
4657
+ /* harmony export */ Tag: () => (/* reexport safe */ _tag_Tag_class__WEBPACK_IMPORTED_MODULE_11__.Tag),
4658
+ /* harmony export */ TagError: () => (/* reexport safe */ _errors__WEBPACK_IMPORTED_MODULE_3__.TagError),
4659
+ /* harmony export */ TagSupport: () => (/* reexport safe */ _tag_TagSupport_class__WEBPACK_IMPORTED_MODULE_7__.TagSupport),
4660
+ /* harmony export */ ValueSubject: () => (/* reexport safe */ _subject_index__WEBPACK_IMPORTED_MODULE_6__.ValueSubject),
4661
+ /* harmony export */ callback: () => (/* reexport safe */ _state_index__WEBPACK_IMPORTED_MODULE_5__.callback),
4662
+ /* harmony export */ callbackMaker: () => (/* reexport safe */ _state_index__WEBPACK_IMPORTED_MODULE_5__.callbackMaker),
4663
+ /* harmony export */ children: () => (/* reexport safe */ _state_index__WEBPACK_IMPORTED_MODULE_5__.children),
4664
+ /* harmony export */ combineLatest: () => (/* reexport safe */ _subject_index__WEBPACK_IMPORTED_MODULE_6__.combineLatest),
4546
4665
  /* harmony export */ hmr: () => (/* binding */ hmr),
4547
- /* harmony export */ html: () => (/* reexport safe */ _tag_html__WEBPACK_IMPORTED_MODULE_1__.html),
4548
- /* harmony export */ interpolateElement: () => (/* reexport safe */ _interpolations_interpolateElement__WEBPACK_IMPORTED_MODULE_8__.interpolateElement),
4549
- /* harmony export */ interpolateString: () => (/* reexport safe */ _interpolations_interpolateElement__WEBPACK_IMPORTED_MODULE_8__.interpolateString),
4550
- /* harmony export */ isLikeValueSets: () => (/* reexport safe */ _tag_isLikeTags_function__WEBPACK_IMPORTED_MODULE_14__.isLikeValueSets),
4551
- /* harmony export */ isSubjectInstance: () => (/* reexport safe */ _isInstance__WEBPACK_IMPORTED_MODULE_3__.isSubjectInstance),
4552
- /* harmony export */ isTag: () => (/* reexport safe */ _isInstance__WEBPACK_IMPORTED_MODULE_3__.isTag),
4553
- /* harmony export */ isTagArray: () => (/* reexport safe */ _isInstance__WEBPACK_IMPORTED_MODULE_3__.isTagArray),
4554
- /* harmony export */ isTagClass: () => (/* reexport safe */ _isInstance__WEBPACK_IMPORTED_MODULE_3__.isTagClass),
4555
- /* harmony export */ isTagComponent: () => (/* reexport safe */ _isInstance__WEBPACK_IMPORTED_MODULE_3__.isTagComponent),
4556
- /* harmony export */ isTagTemplater: () => (/* reexport safe */ _isInstance__WEBPACK_IMPORTED_MODULE_3__.isTagTemplater),
4666
+ /* harmony export */ html: () => (/* reexport safe */ _tag_html__WEBPACK_IMPORTED_MODULE_2__.html),
4667
+ /* harmony export */ interpolateElement: () => (/* reexport safe */ _interpolations_interpolateElement__WEBPACK_IMPORTED_MODULE_9__.interpolateElement),
4668
+ /* harmony export */ interpolateString: () => (/* reexport safe */ _interpolations_interpolateElement__WEBPACK_IMPORTED_MODULE_9__.interpolateString),
4669
+ /* harmony export */ isLikeValueSets: () => (/* reexport safe */ _tag_isLikeTags_function__WEBPACK_IMPORTED_MODULE_15__.isLikeValueSets),
4670
+ /* harmony export */ isSubjectInstance: () => (/* reexport safe */ _isInstance__WEBPACK_IMPORTED_MODULE_4__.isSubjectInstance),
4671
+ /* harmony export */ isTag: () => (/* reexport safe */ _isInstance__WEBPACK_IMPORTED_MODULE_4__.isTag),
4672
+ /* harmony export */ isTagArray: () => (/* reexport safe */ _isInstance__WEBPACK_IMPORTED_MODULE_4__.isTagArray),
4673
+ /* harmony export */ isTagClass: () => (/* reexport safe */ _isInstance__WEBPACK_IMPORTED_MODULE_4__.isTagClass),
4674
+ /* harmony export */ isTagComponent: () => (/* reexport safe */ _isInstance__WEBPACK_IMPORTED_MODULE_4__.isTagComponent),
4675
+ /* harmony export */ isTagTemplater: () => (/* reexport safe */ _isInstance__WEBPACK_IMPORTED_MODULE_4__.isTagTemplater),
4557
4676
  /* harmony export */ kidsToTagArraySubject: () => (/* reexport safe */ _tag_tag__WEBPACK_IMPORTED_MODULE_0__.kidsToTagArraySubject),
4558
- /* harmony export */ letProp: () => (/* reexport safe */ _state_index__WEBPACK_IMPORTED_MODULE_4__.letProp),
4559
- /* harmony export */ letState: () => (/* reexport safe */ _state_index__WEBPACK_IMPORTED_MODULE_4__.letState),
4560
- /* harmony export */ onDestroy: () => (/* reexport safe */ _state_index__WEBPACK_IMPORTED_MODULE_4__.onDestroy),
4561
- /* harmony export */ onInit: () => (/* reexport safe */ _state_index__WEBPACK_IMPORTED_MODULE_4__.onInit),
4562
- /* harmony export */ providers: () => (/* reexport safe */ _state_index__WEBPACK_IMPORTED_MODULE_4__.providers),
4563
- /* harmony export */ renderTagSupport: () => (/* reexport safe */ _tag_render_renderTagSupport_function__WEBPACK_IMPORTED_MODULE_12__.renderTagSupport),
4564
- /* harmony export */ renderWithSupport: () => (/* reexport safe */ _tag_render_renderWithSupport_function__WEBPACK_IMPORTED_MODULE_13__.renderWithSupport),
4565
- /* harmony export */ runBeforeRender: () => (/* reexport safe */ _tag_tagRunner__WEBPACK_IMPORTED_MODULE_11__.runBeforeRender),
4566
- /* harmony export */ setUse: () => (/* reexport safe */ _state_index__WEBPACK_IMPORTED_MODULE_4__.setUse),
4567
- /* harmony export */ state: () => (/* reexport safe */ _state_index__WEBPACK_IMPORTED_MODULE_4__.state),
4568
- /* harmony export */ subject: () => (/* reexport safe */ _state_index__WEBPACK_IMPORTED_MODULE_4__.subject),
4677
+ /* harmony export */ letProp: () => (/* reexport safe */ _state_index__WEBPACK_IMPORTED_MODULE_5__.letProp),
4678
+ /* harmony export */ letState: () => (/* reexport safe */ _state_index__WEBPACK_IMPORTED_MODULE_5__.letState),
4679
+ /* harmony export */ onDestroy: () => (/* reexport safe */ _state_index__WEBPACK_IMPORTED_MODULE_5__.onDestroy),
4680
+ /* harmony export */ onInit: () => (/* reexport safe */ _state_index__WEBPACK_IMPORTED_MODULE_5__.onInit),
4681
+ /* harmony export */ providers: () => (/* reexport safe */ _state_index__WEBPACK_IMPORTED_MODULE_5__.providers),
4682
+ /* harmony export */ renderTagSupport: () => (/* reexport safe */ _tag_render_renderTagSupport_function__WEBPACK_IMPORTED_MODULE_13__.renderTagSupport),
4683
+ /* harmony export */ renderWithSupport: () => (/* reexport safe */ _tag_render_renderWithSupport_function__WEBPACK_IMPORTED_MODULE_14__.renderWithSupport),
4684
+ /* harmony export */ runBeforeRender: () => (/* reexport safe */ _tag_tagRunner__WEBPACK_IMPORTED_MODULE_12__.runBeforeRender),
4685
+ /* harmony export */ setUse: () => (/* reexport safe */ _state_index__WEBPACK_IMPORTED_MODULE_5__.setUse),
4686
+ /* harmony export */ state: () => (/* reexport safe */ _state_index__WEBPACK_IMPORTED_MODULE_5__.state),
4687
+ /* harmony export */ subject: () => (/* reexport safe */ _state_index__WEBPACK_IMPORTED_MODULE_5__.subject),
4569
4688
  /* harmony export */ tag: () => (/* reexport safe */ _tag_tag__WEBPACK_IMPORTED_MODULE_0__.tag),
4570
- /* harmony export */ tagElement: () => (/* reexport safe */ _tag_tagElement__WEBPACK_IMPORTED_MODULE_9__.tagElement),
4571
- /* harmony export */ tags: () => (/* reexport safe */ _tag_tag__WEBPACK_IMPORTED_MODULE_0__.tags),
4572
- /* harmony export */ watch: () => (/* reexport safe */ _state_index__WEBPACK_IMPORTED_MODULE_4__.watch),
4573
- /* harmony export */ willCallback: () => (/* reexport safe */ _subject_index__WEBPACK_IMPORTED_MODULE_5__.willCallback),
4574
- /* harmony export */ willPromise: () => (/* reexport safe */ _subject_index__WEBPACK_IMPORTED_MODULE_5__.willPromise),
4575
- /* harmony export */ willSubscribe: () => (/* reexport safe */ _subject_index__WEBPACK_IMPORTED_MODULE_5__.willSubscribe)
4689
+ /* harmony export */ tagElement: () => (/* reexport safe */ _tag_tagElement__WEBPACK_IMPORTED_MODULE_10__.tagElement),
4690
+ /* harmony export */ tags: () => (/* reexport safe */ _tag_tag_utils__WEBPACK_IMPORTED_MODULE_1__.tags),
4691
+ /* harmony export */ watch: () => (/* reexport safe */ _state_index__WEBPACK_IMPORTED_MODULE_5__.watch),
4692
+ /* harmony export */ willCallback: () => (/* reexport safe */ _subject_index__WEBPACK_IMPORTED_MODULE_6__.willCallback),
4693
+ /* harmony export */ willPromise: () => (/* reexport safe */ _subject_index__WEBPACK_IMPORTED_MODULE_6__.willPromise),
4694
+ /* harmony export */ willSubscribe: () => (/* reexport safe */ _subject_index__WEBPACK_IMPORTED_MODULE_6__.willSubscribe)
4576
4695
  /* harmony export */ });
4577
4696
  /* harmony import */ var _tag_tag__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./tag/tag */ "./ts/tag/tag.ts");
4578
- /* harmony import */ var _tag_html__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./tag/html */ "./ts/tag/html.ts");
4579
- /* harmony import */ var _errors__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./errors */ "./ts/errors.ts");
4580
- /* harmony import */ var _isInstance__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./isInstance */ "./ts/isInstance.ts");
4581
- /* harmony import */ var _state_index__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./state/index */ "./ts/state/index.ts");
4582
- /* harmony import */ var _subject_index__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./subject/index */ "./ts/subject/index.ts");
4583
- /* harmony import */ var _tag_TagSupport_class__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./tag/TagSupport.class */ "./ts/tag/TagSupport.class.ts");
4584
- /* harmony import */ var _interpolations_ElementTargetEvent_interface__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./interpolations/ElementTargetEvent.interface */ "./ts/interpolations/ElementTargetEvent.interface.ts");
4585
- /* harmony import */ var _interpolations_interpolateElement__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./interpolations/interpolateElement */ "./ts/interpolations/interpolateElement.ts");
4586
- /* harmony import */ var _tag_tagElement__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./tag/tagElement */ "./ts/tag/tagElement.ts");
4587
- /* harmony import */ var _tag_Tag_class__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./tag/Tag.class */ "./ts/tag/Tag.class.ts");
4588
- /* harmony import */ var _tag_tagRunner__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./tag/tagRunner */ "./ts/tag/tagRunner.ts");
4589
- /* harmony import */ var _tag_render_renderTagSupport_function__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./tag/render/renderTagSupport.function */ "./ts/tag/render/renderTagSupport.function.ts");
4590
- /* harmony import */ var _tag_render_renderWithSupport_function__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./tag/render/renderWithSupport.function */ "./ts/tag/render/renderWithSupport.function.ts");
4591
- /* harmony import */ var _tag_isLikeTags_function__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./tag/isLikeTags.function */ "./ts/tag/isLikeTags.function.ts");
4592
- /* harmony import */ var _tag_render_renderTagOnly_function__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ./tag/render/renderTagOnly.function */ "./ts/tag/render/renderTagOnly.function.ts");
4697
+ /* harmony import */ var _tag_tag_utils__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./tag/tag.utils */ "./ts/tag/tag.utils.ts");
4698
+ /* harmony import */ var _tag_html__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./tag/html */ "./ts/tag/html.ts");
4699
+ /* harmony import */ var _errors__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./errors */ "./ts/errors.ts");
4700
+ /* harmony import */ var _isInstance__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./isInstance */ "./ts/isInstance.ts");
4701
+ /* harmony import */ var _state_index__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./state/index */ "./ts/state/index.ts");
4702
+ /* harmony import */ var _subject_index__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./subject/index */ "./ts/subject/index.ts");
4703
+ /* harmony import */ var _tag_TagSupport_class__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./tag/TagSupport.class */ "./ts/tag/TagSupport.class.ts");
4704
+ /* harmony import */ var _interpolations_ElementTargetEvent_interface__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./interpolations/ElementTargetEvent.interface */ "./ts/interpolations/ElementTargetEvent.interface.ts");
4705
+ /* harmony import */ var _interpolations_interpolateElement__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./interpolations/interpolateElement */ "./ts/interpolations/interpolateElement.ts");
4706
+ /* harmony import */ var _tag_tagElement__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./tag/tagElement */ "./ts/tag/tagElement.ts");
4707
+ /* harmony import */ var _tag_Tag_class__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./tag/Tag.class */ "./ts/tag/Tag.class.ts");
4708
+ /* harmony import */ var _tag_tagRunner__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./tag/tagRunner */ "./ts/tag/tagRunner.ts");
4709
+ /* harmony import */ var _tag_render_renderTagSupport_function__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./tag/render/renderTagSupport.function */ "./ts/tag/render/renderTagSupport.function.ts");
4710
+ /* harmony import */ var _tag_render_renderWithSupport_function__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./tag/render/renderWithSupport.function */ "./ts/tag/render/renderWithSupport.function.ts");
4711
+ /* harmony import */ var _tag_isLikeTags_function__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ./tag/isLikeTags.function */ "./ts/tag/isLikeTags.function.ts");
4712
+ /* harmony import */ var _tag_render_renderTagOnly_function__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ./tag/render/renderTagOnly.function */ "./ts/tag/render/renderTagOnly.function.ts");
4713
+
4593
4714
 
4594
4715
 
4595
4716
 
@@ -4610,8 +4731,8 @@ __webpack_require__.r(__webpack_exports__);
4610
4731
 
4611
4732
 
4612
4733
  const hmr = {
4613
- tagElement: _tag_tagElement__WEBPACK_IMPORTED_MODULE_9__.tagElement, renderWithSupport: _tag_render_renderWithSupport_function__WEBPACK_IMPORTED_MODULE_13__.renderWithSupport, renderTagSupport: _tag_render_renderTagSupport_function__WEBPACK_IMPORTED_MODULE_12__.renderTagSupport,
4614
- renderTagOnly: _tag_render_renderTagOnly_function__WEBPACK_IMPORTED_MODULE_15__.renderTagOnly,
4734
+ tagElement: _tag_tagElement__WEBPACK_IMPORTED_MODULE_10__.tagElement, renderWithSupport: _tag_render_renderWithSupport_function__WEBPACK_IMPORTED_MODULE_14__.renderWithSupport, renderTagSupport: _tag_render_renderTagSupport_function__WEBPACK_IMPORTED_MODULE_13__.renderTagSupport,
4735
+ renderTagOnly: _tag_render_renderTagOnly_function__WEBPACK_IMPORTED_MODULE_16__.renderTagOnly,
4615
4736
  };
4616
4737
 
4617
4738
  })();