lwc 2.7.1 → 2.7.2

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 (41) hide show
  1. package/dist/engine-dom/esm/es2017/engine-dom.js +578 -379
  2. package/dist/engine-dom/iife/es2017/engine-dom.js +578 -379
  3. package/dist/engine-dom/iife/es2017/engine-dom.min.js +1 -9
  4. package/dist/engine-dom/iife/es2017/engine-dom_debug.js +552 -359
  5. package/dist/engine-dom/iife/es5/engine-dom.js +630 -330
  6. package/dist/engine-dom/iife/es5/engine-dom.min.js +1 -9
  7. package/dist/engine-dom/iife/es5/engine-dom_debug.js +598 -310
  8. package/dist/engine-dom/umd/es2017/engine-dom.js +578 -379
  9. package/dist/engine-dom/umd/es2017/engine-dom.min.js +1 -9
  10. package/dist/engine-dom/umd/es2017/engine-dom_debug.js +552 -359
  11. package/dist/engine-dom/umd/es5/engine-dom.js +630 -330
  12. package/dist/engine-dom/umd/es5/engine-dom.min.js +1 -9
  13. package/dist/engine-dom/umd/es5/engine-dom_debug.js +598 -310
  14. package/dist/engine-server/commonjs/es2017/engine-server.js +647 -449
  15. package/dist/engine-server/commonjs/es2017/engine-server.min.js +1 -9
  16. package/dist/engine-server/esm/es2017/engine-server.js +647 -449
  17. package/dist/synthetic-shadow/esm/es2017/synthetic-shadow.js +41 -6
  18. package/dist/synthetic-shadow/iife/es2017/synthetic-shadow.js +41 -6
  19. package/dist/synthetic-shadow/iife/es2017/synthetic-shadow.min.js +2 -2
  20. package/dist/synthetic-shadow/iife/es2017/synthetic-shadow_debug.js +41 -6
  21. package/dist/synthetic-shadow/iife/es5/synthetic-shadow.js +41 -6
  22. package/dist/synthetic-shadow/iife/es5/synthetic-shadow.min.js +2 -2
  23. package/dist/synthetic-shadow/iife/es5/synthetic-shadow_debug.js +41 -6
  24. package/dist/synthetic-shadow/umd/es2017/synthetic-shadow.js +41 -6
  25. package/dist/synthetic-shadow/umd/es2017/synthetic-shadow.min.js +2 -2
  26. package/dist/synthetic-shadow/umd/es2017/synthetic-shadow_debug.js +41 -6
  27. package/dist/synthetic-shadow/umd/es5/synthetic-shadow.js +41 -6
  28. package/dist/synthetic-shadow/umd/es5/synthetic-shadow.min.js +2 -2
  29. package/dist/synthetic-shadow/umd/es5/synthetic-shadow_debug.js +41 -6
  30. package/dist/wire-service/esm/es2017/wire-service.js +2 -2
  31. package/dist/wire-service/iife/es2017/wire-service.js +2 -2
  32. package/dist/wire-service/iife/es2017/wire-service_debug.js +2 -2
  33. package/dist/wire-service/iife/es5/wire-service.js +3 -3
  34. package/dist/wire-service/iife/es5/wire-service.min.js +1 -1
  35. package/dist/wire-service/iife/es5/wire-service_debug.js +3 -3
  36. package/dist/wire-service/umd/es2017/wire-service.js +2 -2
  37. package/dist/wire-service/umd/es2017/wire-service_debug.js +2 -2
  38. package/dist/wire-service/umd/es5/wire-service.js +3 -3
  39. package/dist/wire-service/umd/es5/wire-service.min.js +1 -1
  40. package/dist/wire-service/umd/es5/wire-service_debug.js +3 -3
  41. package/package.json +8 -8
@@ -24,7 +24,7 @@
24
24
 
25
25
  function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
26
26
 
27
- function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } Object.defineProperty(subClass, "prototype", { value: Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }), writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
27
+ function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
28
28
 
29
29
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
30
30
 
@@ -351,7 +351,7 @@
351
351
  CACHED_PROPERTY_ATTRIBUTE_MAPPING.set(propName, attributeName);
352
352
  return attributeName;
353
353
  }
354
- /** version: 2.7.1 */
354
+ /** version: 2.7.2 */
355
355
 
356
356
  /*
357
357
  * Copyright (c) 2018, salesforce.com, inc.
@@ -529,7 +529,7 @@
529
529
  setFeatureFlag(name, value);
530
530
  }
531
531
  }
532
- /** version: 2.7.1 */
532
+ /** version: 2.7.2 */
533
533
 
534
534
  /* proxy-compat-disable */
535
535
 
@@ -617,6 +617,249 @@
617
617
  }
618
618
 
619
619
  return styleMap;
620
+ } //
621
+ // Primitives
622
+ //
623
+
624
+
625
+ var ssr$1;
626
+
627
+ function setSsr(ssrImpl) {
628
+ ssr$1 = ssrImpl;
629
+ }
630
+
631
+ var isNativeShadowDefined$1;
632
+
633
+ function setIsNativeShadowDefined(isNativeShadowDefinedImpl) {
634
+ isNativeShadowDefined$1 = isNativeShadowDefinedImpl;
635
+ }
636
+
637
+ var isSyntheticShadowDefined$1;
638
+
639
+ function setIsSyntheticShadowDefined(isSyntheticShadowDefinedImpl) {
640
+ isSyntheticShadowDefined$1 = isSyntheticShadowDefinedImpl;
641
+ }
642
+
643
+ var HTMLElementExported$1;
644
+
645
+ function setHTMLElement(HTMLElementImpl) {
646
+ HTMLElementExported$1 = HTMLElementImpl;
647
+ }
648
+
649
+ var isHydrating$1;
650
+
651
+ function setIsHydrating$1(isHydratingImpl) {
652
+ isHydrating$1 = isHydratingImpl;
653
+ }
654
+
655
+ var insert$1;
656
+
657
+ function setInsert(insertImpl) {
658
+ insert$1 = insertImpl;
659
+ }
660
+
661
+ var remove$1;
662
+
663
+ function setRemove(removeImpl) {
664
+ remove$1 = removeImpl;
665
+ }
666
+
667
+ var createElement$2;
668
+
669
+ function setCreateElement(createElementImpl) {
670
+ createElement$2 = createElementImpl;
671
+ }
672
+
673
+ var createText$1;
674
+
675
+ function setCreateText(createTextImpl) {
676
+ createText$1 = createTextImpl;
677
+ }
678
+
679
+ var createComment$1;
680
+
681
+ function setCreateComment(createCommentImpl) {
682
+ createComment$1 = createCommentImpl;
683
+ }
684
+
685
+ var nextSibling$1;
686
+
687
+ function setNextSibling(nextSiblingImpl) {
688
+ nextSibling$1 = nextSiblingImpl;
689
+ }
690
+
691
+ var attachShadow$1;
692
+
693
+ function setAttachShadow(attachShadowImpl) {
694
+ attachShadow$1 = attachShadowImpl;
695
+ }
696
+
697
+ var getProperty$1;
698
+
699
+ function setGetProperty(getPropertyImpl) {
700
+ getProperty$1 = getPropertyImpl;
701
+ }
702
+
703
+ var setProperty$1;
704
+
705
+ function setSetProperty(setPropertyImpl) {
706
+ setProperty$1 = setPropertyImpl;
707
+ }
708
+
709
+ var setText$1;
710
+
711
+ function setSetText(setTextImpl) {
712
+ setText$1 = setTextImpl;
713
+ }
714
+
715
+ var getAttribute$1;
716
+
717
+ function setGetAttribute(getAttributeImpl) {
718
+ getAttribute$1 = getAttributeImpl;
719
+ }
720
+
721
+ var setAttribute$1;
722
+
723
+ function setSetAttribute(setAttributeImpl) {
724
+ setAttribute$1 = setAttributeImpl;
725
+ }
726
+
727
+ var removeAttribute$1;
728
+
729
+ function setRemoveAttribute(removeAttributeImpl) {
730
+ removeAttribute$1 = removeAttributeImpl;
731
+ }
732
+
733
+ var addEventListener$1;
734
+
735
+ function setAddEventListener(addEventListenerImpl) {
736
+ addEventListener$1 = addEventListenerImpl;
737
+ }
738
+
739
+ var removeEventListener$1;
740
+
741
+ function setRemoveEventListener(removeEventListenerImpl) {
742
+ removeEventListener$1 = removeEventListenerImpl;
743
+ }
744
+
745
+ var dispatchEvent$1;
746
+
747
+ function setDispatchEvent(dispatchEventImpl) {
748
+ dispatchEvent$1 = dispatchEventImpl;
749
+ }
750
+
751
+ var getClassList$1;
752
+
753
+ function setGetClassList(getClassListImpl) {
754
+ getClassList$1 = getClassListImpl;
755
+ }
756
+
757
+ var setCSSStyleProperty$1;
758
+
759
+ function setSetCSSStyleProperty(setCSSStylePropertyImpl) {
760
+ setCSSStyleProperty$1 = setCSSStylePropertyImpl;
761
+ }
762
+
763
+ var getBoundingClientRect$1;
764
+
765
+ function setGetBoundingClientRect(getBoundingClientRectImpl) {
766
+ getBoundingClientRect$1 = getBoundingClientRectImpl;
767
+ }
768
+
769
+ var querySelector$1;
770
+
771
+ function setQuerySelector(querySelectorImpl) {
772
+ querySelector$1 = querySelectorImpl;
773
+ }
774
+
775
+ var querySelectorAll$1;
776
+
777
+ function setQuerySelectorAll(querySelectorAllImpl) {
778
+ querySelectorAll$1 = querySelectorAllImpl;
779
+ }
780
+
781
+ var getElementsByTagName$1;
782
+
783
+ function setGetElementsByTagName(getElementsByTagNameImpl) {
784
+ getElementsByTagName$1 = getElementsByTagNameImpl;
785
+ }
786
+
787
+ var getElementsByClassName$1;
788
+
789
+ function setGetElementsByClassName(getElementsByClassNameImpl) {
790
+ getElementsByClassName$1 = getElementsByClassNameImpl;
791
+ }
792
+
793
+ var getChildren$1;
794
+
795
+ function setGetChildren(getChildrenImpl) {
796
+ getChildren$1 = getChildrenImpl;
797
+ }
798
+
799
+ var getChildNodes$1;
800
+
801
+ function setGetChildNodes(getChildNodesImpl) {
802
+ getChildNodes$1 = getChildNodesImpl;
803
+ }
804
+
805
+ var getFirstChild$1;
806
+
807
+ function setGetFirstChild(getFirstChildImpl) {
808
+ getFirstChild$1 = getFirstChildImpl;
809
+ }
810
+
811
+ var getFirstElementChild$1;
812
+
813
+ function setGetFirstElementChild(getFirstElementChildImpl) {
814
+ getFirstElementChild$1 = getFirstElementChildImpl;
815
+ }
816
+
817
+ var getLastChild$1;
818
+
819
+ function setGetLastChild(getLastChildImpl) {
820
+ getLastChild$1 = getLastChildImpl;
821
+ }
822
+
823
+ var getLastElementChild$1;
824
+
825
+ function setGetLastElementChild(getLastElementChildImpl) {
826
+ getLastElementChild$1 = getLastElementChildImpl;
827
+ }
828
+
829
+ var isConnected$1;
830
+
831
+ function setIsConnected(isConnectedImpl) {
832
+ isConnected$1 = isConnectedImpl;
833
+ }
834
+
835
+ var insertGlobalStylesheet$1;
836
+
837
+ function setInsertGlobalStylesheet(insertGlobalStylesheetImpl) {
838
+ insertGlobalStylesheet$1 = insertGlobalStylesheetImpl;
839
+ }
840
+
841
+ var insertStylesheet$1;
842
+
843
+ function setInsertStylesheet(insertStylesheetImpl) {
844
+ insertStylesheet$1 = insertStylesheetImpl;
845
+ }
846
+
847
+ var assertInstanceOfHTMLElement$1;
848
+
849
+ function setAssertInstanceOfHTMLElement(assertInstanceOfHTMLElementImpl) {
850
+ assertInstanceOfHTMLElement$1 = assertInstanceOfHTMLElementImpl;
851
+ }
852
+
853
+ var defineCustomElement$1;
854
+
855
+ function setDefineCustomElement(defineCustomElementImpl) {
856
+ defineCustomElement$1 = defineCustomElementImpl;
857
+ }
858
+
859
+ var getCustomElement$1;
860
+
861
+ function setGetCustomElement(getCustomElementImpl) {
862
+ getCustomElement$1 = getCustomElementImpl;
620
863
  }
621
864
  /*
622
865
  * Copyright (c) 2019, salesforce.com, inc.
@@ -868,8 +1111,7 @@
868
1111
 
869
1112
  function createAllEventListeners(vnode) {
870
1113
  var elm = vnode.elm,
871
- on = vnode.data.on,
872
- renderer = vnode.owner.renderer;
1114
+ on = vnode.data.on;
873
1115
 
874
1116
  if (isUndefined$1(on)) {
875
1117
  return;
@@ -880,7 +1122,7 @@
880
1122
  var name;
881
1123
 
882
1124
  for (name in on) {
883
- renderer.addEventListener(elm, name, listener);
1125
+ addEventListener$1(elm, name, listener);
884
1126
  }
885
1127
  }
886
1128
 
@@ -1019,8 +1261,7 @@
1019
1261
  var ColonCharCode = 58;
1020
1262
 
1021
1263
  function updateAttrs(oldVnode, vnode) {
1022
- var attrs = vnode.data.attrs,
1023
- renderer = vnode.owner.renderer;
1264
+ var attrs = vnode.data.attrs;
1024
1265
 
1025
1266
  if (isUndefined$1(attrs)) {
1026
1267
  return;
@@ -1037,8 +1278,6 @@
1037
1278
  }
1038
1279
 
1039
1280
  var elm = vnode.elm;
1040
- var setAttribute = renderer.setAttribute,
1041
- removeAttribute = renderer.removeAttribute;
1042
1281
  var key;
1043
1282
  oldAttrs = isUndefined$1(oldAttrs) ? EmptyObject : oldAttrs; // update modified attributes, add new attributes
1044
1283
  // this routine is only useful for data-* attributes in all kind of elements
@@ -1053,14 +1292,14 @@
1053
1292
 
1054
1293
  if (StringCharCodeAt.call(key, 3) === ColonCharCode) {
1055
1294
  // Assume xml namespace
1056
- setAttribute(elm, key, cur, xmlNS);
1295
+ setAttribute$1(elm, key, cur, xmlNS);
1057
1296
  } else if (StringCharCodeAt.call(key, 5) === ColonCharCode) {
1058
1297
  // Assume xlink namespace
1059
- setAttribute(elm, key, cur, xlinkNS);
1060
- } else if (isNull(cur)) {
1061
- removeAttribute(elm, key);
1298
+ setAttribute$1(elm, key, cur, xlinkNS);
1299
+ } else if (isNull(cur) || isUndefined$1(cur)) {
1300
+ removeAttribute$1(elm, key);
1062
1301
  } else {
1063
- setAttribute(elm, key, cur);
1302
+ setAttribute$1(elm, key, cur);
1064
1303
  }
1065
1304
 
1066
1305
  lockAttribute();
@@ -1109,14 +1348,13 @@
1109
1348
 
1110
1349
  var isFirstPatch = isUndefined$1(oldProps);
1111
1350
  var elm = vnode.elm,
1112
- sel = vnode.sel,
1113
- renderer = vnode.owner.renderer;
1351
+ sel = vnode.sel;
1114
1352
 
1115
1353
  for (var key in props) {
1116
1354
  var cur = props[key]; // if it is the first time this element is patched, or the current value is different to the previous value...
1117
1355
 
1118
- if (isFirstPatch || cur !== (isLiveBindingProp(sel, key) ? renderer.getProperty(elm, key) : oldProps[key])) {
1119
- renderer.setProperty(elm, key, cur);
1356
+ if (isFirstPatch || cur !== (isLiveBindingProp(sel, key) ? getProperty$1(elm, key) : oldProps[key])) {
1357
+ setProperty$1(elm, key, cur);
1120
1358
  }
1121
1359
  }
1122
1360
  }
@@ -1184,15 +1422,14 @@
1184
1422
 
1185
1423
  function updateClassAttribute(oldVnode, vnode) {
1186
1424
  var elm = vnode.elm,
1187
- newClass = vnode.data.className,
1188
- renderer = vnode.owner.renderer;
1425
+ newClass = vnode.data.className;
1189
1426
  var oldClass = oldVnode.data.className;
1190
1427
 
1191
1428
  if (oldClass === newClass) {
1192
1429
  return;
1193
1430
  }
1194
1431
 
1195
- var classList = renderer.getClassList(elm);
1432
+ var classList = getClassList$1(elm);
1196
1433
  var newClassMap = getMapFromClassName(newClass);
1197
1434
  var oldClassMap = getMapFromClassName(oldClass);
1198
1435
  var name;
@@ -1229,19 +1466,16 @@
1229
1466
 
1230
1467
  function updateStyleAttribute(oldVnode, vnode) {
1231
1468
  var elm = vnode.elm,
1232
- newStyle = vnode.data.style,
1233
- renderer = vnode.owner.renderer;
1234
- var setAttribute = renderer.setAttribute,
1235
- removeAttribute = renderer.removeAttribute;
1469
+ newStyle = vnode.data.style;
1236
1470
 
1237
1471
  if (oldVnode.data.style === newStyle) {
1238
1472
  return;
1239
1473
  }
1240
1474
 
1241
1475
  if (!isString(newStyle) || newStyle === '') {
1242
- removeAttribute(elm, 'style');
1476
+ removeAttribute$1(elm, 'style');
1243
1477
  } else {
1244
- setAttribute(elm, 'style', newStyle);
1478
+ setAttribute$1(elm, 'style', newStyle);
1245
1479
  }
1246
1480
  }
1247
1481
 
@@ -1265,14 +1499,13 @@
1265
1499
 
1266
1500
  function createClassAttribute(vnode) {
1267
1501
  var elm = vnode.elm,
1268
- classMap = vnode.data.classMap,
1269
- renderer = vnode.owner.renderer;
1502
+ classMap = vnode.data.classMap;
1270
1503
 
1271
1504
  if (isUndefined$1(classMap)) {
1272
1505
  return;
1273
1506
  }
1274
1507
 
1275
- var classList = renderer.getClassList(elm);
1508
+ var classList = getClassList$1(elm);
1276
1509
 
1277
1510
  for (var name in classMap) {
1278
1511
  classList.add(name);
@@ -1293,8 +1526,7 @@
1293
1526
 
1294
1527
  function createStyleAttribute(vnode) {
1295
1528
  var elm = vnode.elm,
1296
- styleDecls = vnode.data.styleDecls,
1297
- renderer = vnode.owner.renderer;
1529
+ styleDecls = vnode.data.styleDecls;
1298
1530
 
1299
1531
  if (isUndefined$1(styleDecls)) {
1300
1532
  return;
@@ -1306,7 +1538,7 @@
1306
1538
  value = _styleDecls$_i[1],
1307
1539
  important = _styleDecls$_i[2];
1308
1540
 
1309
- renderer.setCSSStyleProperty(elm, prop, value, important);
1541
+ setCSSStyleProperty$1(elm, prop, value, important);
1310
1542
  }
1311
1543
  }
1312
1544
 
@@ -1320,15 +1552,6 @@
1320
1552
  * For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/MIT
1321
1553
  */
1322
1554
 
1323
- /**
1324
- @license
1325
- Copyright (c) 2015 Simon Friis Vindum.
1326
- This code may only be used under the MIT License found at
1327
- https://github.com/snabbdom/snabbdom/blob/master/LICENSE
1328
- Code distributed by Snabbdom as part of the Snabbdom project at
1329
- https://github.com/snabbdom/snabbdom/
1330
- */
1331
-
1332
1555
  function isUndef(s) {
1333
1556
  return s === undefined;
1334
1557
  }
@@ -1416,7 +1639,7 @@
1416
1639
  } else if (sameVnode(oldStartVnode, newEndVnode)) {
1417
1640
  // Vnode moved right
1418
1641
  patchVnode(oldStartVnode, newEndVnode);
1419
- newEndVnode.hook.move(oldStartVnode, parentElm, oldEndVnode.owner.renderer.nextSibling(oldEndVnode.elm));
1642
+ newEndVnode.hook.move(oldStartVnode, parentElm, nextSibling$1(oldEndVnode.elm));
1420
1643
  oldStartVnode = oldCh[++oldStartIdx];
1421
1644
  newEndVnode = newCh[--newEndIdx];
1422
1645
  } else if (sameVnode(oldEndVnode, newStartVnode)) {
@@ -1863,7 +2086,7 @@
1863
2086
  defineProperties(proto, getLightningElementPrototypeRestrictionsDescriptors(proto));
1864
2087
  }
1865
2088
  /*
1866
- * Copyright (c) 2020, salesforce.com, inc.
2089
+ * Copyright (c) 2018, salesforce.com, inc.
1867
2090
  * All rights reserved.
1868
2091
  * SPDX-License-Identifier: MIT
1869
2092
  * For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/MIT
@@ -2799,21 +3022,18 @@
2799
3022
 
2800
3023
 
2801
3024
  var LightningElement = function LightningElement() {
2802
- var _a; // This should be as performant as possible, while any initialization should be done lazily
2803
-
2804
-
3025
+ // This should be as performant as possible, while any initialization should be done lazily
2805
3026
  if (isNull(vmBeingConstructed)) {
2806
3027
  throw new ReferenceError('Illegal constructor');
2807
3028
  }
2808
3029
 
2809
3030
  var vm = vmBeingConstructed;
2810
3031
  var def = vm.def,
2811
- elm = vm.elm,
2812
- renderer = vm.renderer;
3032
+ elm = vm.elm;
2813
3033
  var bridge = def.bridge;
2814
3034
 
2815
3035
  if (process.env.NODE_ENV !== 'production') {
2816
- (_a = renderer.assertInstanceOfHTMLElement) === null || _a === void 0 ? void 0 : _a.call(renderer, vm.elm, "Component creation requires a DOM element to be associated to ".concat(vm, "."));
3036
+ assertInstanceOfHTMLElement$1(vm.elm, "Component creation requires a DOM element to be associated to ".concat(vm, "."));
2817
3037
  }
2818
3038
 
2819
3039
  var component = this;
@@ -2842,7 +3062,7 @@
2842
3062
  if (vm.renderMode === 1
2843
3063
  /* Shadow */
2844
3064
  ) {
2845
- attachShadow(vm);
3065
+ doAttachShadow(vm);
2846
3066
  } // Adding extra guard rails in DEV mode.
2847
3067
 
2848
3068
 
@@ -2854,15 +3074,14 @@
2854
3074
  return this;
2855
3075
  };
2856
3076
 
2857
- function attachShadow(vm) {
2858
- var _renderer$attachShado;
3077
+ function doAttachShadow(vm) {
3078
+ var _attachShadow$;
2859
3079
 
2860
3080
  var elm = vm.elm,
2861
3081
  mode = vm.mode,
2862
- renderer = vm.renderer,
2863
3082
  shadowMode = vm.shadowMode,
2864
3083
  ctor = vm.def.ctor;
2865
- var cmpRoot = renderer.attachShadow(elm, (_renderer$attachShado = {}, _defineProperty(_renderer$attachShado, KEY__SYNTHETIC_MODE, shadowMode === 1), _defineProperty(_renderer$attachShado, "delegatesFocus", Boolean(ctor.delegatesFocus)), _defineProperty(_renderer$attachShado, "mode", mode), _renderer$attachShado));
3084
+ var cmpRoot = attachShadow$1(elm, (_attachShadow$ = {}, _defineProperty(_attachShadow$, KEY__SYNTHETIC_MODE, shadowMode === 1), _defineProperty(_attachShadow$, "delegatesFocus", Boolean(ctor.delegatesFocus)), _defineProperty(_attachShadow$, "mode", mode), _attachShadow$));
2866
3085
  vm.cmpRoot = cmpRoot;
2867
3086
  associateVM(cmpRoot, vm);
2868
3087
 
@@ -2882,15 +3101,13 @@
2882
3101
  constructor: LightningElement,
2883
3102
  dispatchEvent: function dispatchEvent(event) {
2884
3103
  var _getAssociatedVM = getAssociatedVM(this),
2885
- elm = _getAssociatedVM.elm,
2886
- dispatchEvent = _getAssociatedVM.renderer.dispatchEvent;
3104
+ elm = _getAssociatedVM.elm;
2887
3105
 
2888
- return dispatchEvent(elm, event);
3106
+ return dispatchEvent$1(elm, event);
2889
3107
  },
2890
3108
  addEventListener: function addEventListener(type, listener, options) {
2891
3109
  var vm = getAssociatedVM(this);
2892
- var elm = vm.elm,
2893
- addEventListener = vm.renderer.addEventListener;
3110
+ var elm = vm.elm;
2894
3111
 
2895
3112
  if (process.env.NODE_ENV !== 'production') {
2896
3113
  var _vmBeingRendered2 = getVMBeingRendered();
@@ -2901,111 +3118,99 @@
2901
3118
  }
2902
3119
 
2903
3120
  var wrappedListener = getWrappedComponentsListener(vm, listener);
2904
- addEventListener(elm, type, wrappedListener, options);
3121
+ addEventListener$1(elm, type, wrappedListener, options);
2905
3122
  },
2906
3123
  removeEventListener: function removeEventListener(type, listener, options) {
2907
3124
  var vm = getAssociatedVM(this);
2908
- var elm = vm.elm,
2909
- removeEventListener = vm.renderer.removeEventListener;
3125
+ var elm = vm.elm;
2910
3126
  var wrappedListener = getWrappedComponentsListener(vm, listener);
2911
- removeEventListener(elm, type, wrappedListener, options);
3127
+ removeEventListener$1(elm, type, wrappedListener, options);
2912
3128
  },
2913
3129
  hasAttribute: function hasAttribute(name) {
2914
3130
  var _getAssociatedVM2 = getAssociatedVM(this),
2915
- elm = _getAssociatedVM2.elm,
2916
- getAttribute = _getAssociatedVM2.renderer.getAttribute;
3131
+ elm = _getAssociatedVM2.elm;
2917
3132
 
2918
- return !isNull(getAttribute(elm, name));
3133
+ return !isNull(getAttribute$1(elm, name));
2919
3134
  },
2920
3135
  hasAttributeNS: function hasAttributeNS(namespace, name) {
2921
3136
  var _getAssociatedVM3 = getAssociatedVM(this),
2922
- elm = _getAssociatedVM3.elm,
2923
- getAttribute = _getAssociatedVM3.renderer.getAttribute;
3137
+ elm = _getAssociatedVM3.elm;
2924
3138
 
2925
- return !isNull(getAttribute(elm, name, namespace));
3139
+ return !isNull(getAttribute$1(elm, name, namespace));
2926
3140
  },
2927
3141
  removeAttribute: function removeAttribute(name) {
2928
3142
  var _getAssociatedVM4 = getAssociatedVM(this),
2929
- elm = _getAssociatedVM4.elm,
2930
- removeAttribute = _getAssociatedVM4.renderer.removeAttribute;
3143
+ elm = _getAssociatedVM4.elm;
2931
3144
 
2932
3145
  unlockAttribute(elm, name);
2933
- removeAttribute(elm, name);
3146
+ removeAttribute$1(elm, name);
2934
3147
  lockAttribute();
2935
3148
  },
2936
3149
  removeAttributeNS: function removeAttributeNS(namespace, name) {
2937
3150
  var _getAssociatedVM5 = getAssociatedVM(this),
2938
- elm = _getAssociatedVM5.elm,
2939
- removeAttribute = _getAssociatedVM5.renderer.removeAttribute;
3151
+ elm = _getAssociatedVM5.elm;
2940
3152
 
2941
3153
  unlockAttribute(elm, name);
2942
- removeAttribute(elm, name, namespace);
3154
+ removeAttribute$1(elm, name, namespace);
2943
3155
  lockAttribute();
2944
3156
  },
2945
3157
  getAttribute: function getAttribute(name) {
2946
3158
  var _getAssociatedVM6 = getAssociatedVM(this),
2947
- elm = _getAssociatedVM6.elm,
2948
- getAttribute = _getAssociatedVM6.renderer.getAttribute;
3159
+ elm = _getAssociatedVM6.elm;
2949
3160
 
2950
- return getAttribute(elm, name);
3161
+ return getAttribute$1(elm, name);
2951
3162
  },
2952
3163
  getAttributeNS: function getAttributeNS(namespace, name) {
2953
3164
  var _getAssociatedVM7 = getAssociatedVM(this),
2954
- elm = _getAssociatedVM7.elm,
2955
- getAttribute = _getAssociatedVM7.renderer.getAttribute;
3165
+ elm = _getAssociatedVM7.elm;
2956
3166
 
2957
- return getAttribute(elm, name, namespace);
3167
+ return getAttribute$1(elm, name, namespace);
2958
3168
  },
2959
3169
  setAttribute: function setAttribute(name, value) {
2960
3170
  var vm = getAssociatedVM(this);
2961
- var elm = vm.elm,
2962
- setAttribute = vm.renderer.setAttribute;
3171
+ var elm = vm.elm;
2963
3172
 
2964
3173
  if (process.env.NODE_ENV !== 'production') {
2965
3174
  assert.isFalse(isBeingConstructed(vm), "Failed to construct '".concat(getComponentTag(vm), "': The result must not have attributes."));
2966
3175
  }
2967
3176
 
2968
3177
  unlockAttribute(elm, name);
2969
- setAttribute(elm, name, value);
3178
+ setAttribute$1(elm, name, value);
2970
3179
  lockAttribute();
2971
3180
  },
2972
3181
  setAttributeNS: function setAttributeNS(namespace, name, value) {
2973
3182
  var vm = getAssociatedVM(this);
2974
- var elm = vm.elm,
2975
- setAttribute = vm.renderer.setAttribute;
3183
+ var elm = vm.elm;
2976
3184
 
2977
3185
  if (process.env.NODE_ENV !== 'production') {
2978
3186
  assert.isFalse(isBeingConstructed(vm), "Failed to construct '".concat(getComponentTag(vm), "': The result must not have attributes."));
2979
3187
  }
2980
3188
 
2981
3189
  unlockAttribute(elm, name);
2982
- setAttribute(elm, name, value, namespace);
3190
+ setAttribute$1(elm, name, value, namespace);
2983
3191
  lockAttribute();
2984
3192
  },
2985
3193
  getBoundingClientRect: function getBoundingClientRect() {
2986
3194
  var vm = getAssociatedVM(this);
2987
- var elm = vm.elm,
2988
- getBoundingClientRect = vm.renderer.getBoundingClientRect;
3195
+ var elm = vm.elm;
2989
3196
 
2990
3197
  if (process.env.NODE_ENV !== 'production') {
2991
3198
  warnIfInvokedDuringConstruction(vm, 'getBoundingClientRect()');
2992
3199
  }
2993
3200
 
2994
- return getBoundingClientRect(elm);
3201
+ return getBoundingClientRect$1(elm);
2995
3202
  },
2996
3203
 
2997
3204
  get isConnected() {
2998
3205
  var _getAssociatedVM8 = getAssociatedVM(this),
2999
- elm = _getAssociatedVM8.elm,
3000
- isConnected = _getAssociatedVM8.renderer.isConnected;
3206
+ elm = _getAssociatedVM8.elm;
3001
3207
 
3002
- return isConnected(elm);
3208
+ return isConnected$1(elm);
3003
3209
  },
3004
3210
 
3005
3211
  get classList() {
3006
3212
  var vm = getAssociatedVM(this);
3007
- var elm = vm.elm,
3008
- getClassList = vm.renderer.getClassList;
3213
+ var elm = vm.elm;
3009
3214
 
3010
3215
  if (process.env.NODE_ENV !== 'production') {
3011
3216
  // TODO [#1290]: this still fails in dev but works in production, eventually, we should
@@ -3013,7 +3218,7 @@
3013
3218
  assert.isFalse(isBeingConstructed(vm), "Failed to construct ".concat(vm, ": The result must not have attributes. Adding or tampering with classname in constructor is not allowed in a web component, use connectedCallback() instead."));
3014
3219
  }
3015
3220
 
3016
- return getClassList(elm);
3221
+ return getClassList$1(elm);
3017
3222
  },
3018
3223
 
3019
3224
  get template() {
@@ -3045,25 +3250,47 @@
3045
3250
  return "[object ".concat(vm.def.name, "]");
3046
3251
  }
3047
3252
  };
3048
- var queryAndChildGetterDescriptors = create(null);
3049
- var childGetters = [['children', 'getChildren'], ['childNodes', 'getChildNodes'], ['firstChild', 'getFirstChild'], ['firstElementChild', 'getFirstElementChild'], ['lastChild', 'getLastChild'], ['lastElementChild', 'getLastElementChild']]; // Generic passthrough for child getters on HTMLElement to the relevant Renderer APIs
3253
+ var queryAndChildGetterDescriptors = create(null); // The reason we don't just call `import * as renderer from '../renderer'` here is that the bundle size
3254
+ // is smaller if we reference each function individually. Otherwise Rollup will create one big frozen
3255
+ // object representing the renderer, with a lot of methods we don't actually need.
3256
+
3257
+ var childGetters = ['children', 'childNodes', 'firstChild', 'firstElementChild', 'lastChild', 'lastElementChild'];
3258
+
3259
+ function getChildGetter(methodName) {
3260
+ switch (methodName) {
3261
+ case 'children':
3262
+ return getChildren$1;
3263
+
3264
+ case 'childNodes':
3265
+ return getChildNodes$1;
3266
+
3267
+ case 'firstChild':
3268
+ return getFirstChild$1;
3269
+
3270
+ case 'firstElementChild':
3271
+ return getFirstElementChild$1;
3272
+
3273
+ case 'lastChild':
3274
+ return getLastChild$1;
3275
+
3276
+ case 'lastElementChild':
3277
+ return getLastElementChild$1;
3278
+ }
3279
+ } // Generic passthrough for child getters on HTMLElement to the relevant Renderer APIs
3050
3280
 
3051
- var _loop = function _loop() {
3052
- var _childGetters$_i = _slicedToArray(_childGetters[_i9], 2),
3053
- elementProp = _childGetters$_i[0],
3054
- rendererMethod = _childGetters$_i[1];
3055
3281
 
3056
- queryAndChildGetterDescriptors[elementProp] = {
3282
+ var _loop = function _loop() {
3283
+ var childGetter = _childGetters[_i9];
3284
+ queryAndChildGetterDescriptors[childGetter] = {
3057
3285
  get: function get() {
3058
3286
  var vm = getAssociatedVM(this);
3059
- var elm = vm.elm,
3060
- renderer = vm.renderer;
3287
+ var elm = vm.elm;
3061
3288
 
3062
3289
  if (process.env.NODE_ENV !== 'production') {
3063
- warnIfInvokedDuringConstruction(vm, elementProp);
3290
+ warnIfInvokedDuringConstruction(vm, childGetter);
3064
3291
  }
3065
3292
 
3066
- return renderer[rendererMethod](elm);
3293
+ return getChildGetter(childGetter)(elm);
3067
3294
  },
3068
3295
  configurable: true,
3069
3296
  enumerable: true
@@ -3074,21 +3301,37 @@
3074
3301
  _loop();
3075
3302
  }
3076
3303
 
3077
- var queryMethods = ['getElementsByClassName', 'getElementsByTagName', 'querySelector', 'querySelectorAll']; // Generic passthrough for query APIs on HTMLElement to the relevant Renderer APIs
3304
+ var queryMethods = ['getElementsByClassName', 'getElementsByTagName', 'querySelector', 'querySelectorAll'];
3305
+
3306
+ function getQueryMethod(methodName) {
3307
+ switch (methodName) {
3308
+ case 'getElementsByClassName':
3309
+ return getElementsByClassName$1;
3310
+
3311
+ case 'getElementsByTagName':
3312
+ return getElementsByTagName$1;
3313
+
3314
+ case 'querySelector':
3315
+ return querySelector$1;
3316
+
3317
+ case 'querySelectorAll':
3318
+ return querySelectorAll$1;
3319
+ }
3320
+ } // Generic passthrough for query APIs on HTMLElement to the relevant Renderer APIs
3321
+
3078
3322
 
3079
3323
  var _loop2 = function _loop2() {
3080
3324
  var queryMethod = _queryMethods[_i10];
3081
3325
  queryAndChildGetterDescriptors[queryMethod] = {
3082
3326
  value: function value(arg) {
3083
3327
  var vm = getAssociatedVM(this);
3084
- var elm = vm.elm,
3085
- renderer = vm.renderer;
3328
+ var elm = vm.elm;
3086
3329
 
3087
3330
  if (process.env.NODE_ENV !== 'production') {
3088
3331
  warnIfInvokedDuringConstruction(vm, "".concat(queryMethod, "()"));
3089
3332
  }
3090
3333
 
3091
- return renderer[queryMethod](elm, arg);
3334
+ return getQueryMethod(queryMethod)(elm, arg);
3092
3335
  },
3093
3336
  configurable: true,
3094
3337
  enumerable: true,
@@ -4493,21 +4736,20 @@
4493
4736
  var token = cmpTemplate === null || cmpTemplate === void 0 ? void 0 : cmpTemplate.stylesheetToken;
4494
4737
 
4495
4738
  if (!isUndefined$1(token) && context.hasScopedStyles) {
4496
- owner.renderer.getClassList(elm).add(token);
4739
+ getClassList$1(elm).add(token);
4497
4740
  }
4498
4741
  }
4499
4742
 
4500
4743
  function updateNodeHook(oldVnode, vnode) {
4501
4744
  var elm = vnode.elm,
4502
- text = vnode.text,
4503
- renderer = vnode.owner.renderer;
4745
+ text = vnode.text;
4504
4746
 
4505
4747
  if (oldVnode.text !== text) {
4506
4748
  if (process.env.NODE_ENV !== 'production') {
4507
4749
  unlockDomMutation();
4508
4750
  }
4509
4751
 
4510
- renderer.setText(elm, text);
4752
+ setText$1(elm, text);
4511
4753
 
4512
4754
  if (process.env.NODE_ENV !== 'production') {
4513
4755
  lockDomMutation();
@@ -4516,13 +4758,11 @@
4516
4758
  }
4517
4759
 
4518
4760
  function insertNodeHook(vnode, parentNode, referenceNode) {
4519
- var renderer = vnode.owner.renderer;
4520
-
4521
4761
  if (process.env.NODE_ENV !== 'production') {
4522
4762
  unlockDomMutation();
4523
4763
  }
4524
4764
 
4525
- renderer.insert(vnode.elm, parentNode, referenceNode);
4765
+ insert$1(vnode.elm, parentNode, referenceNode);
4526
4766
 
4527
4767
  if (process.env.NODE_ENV !== 'production') {
4528
4768
  lockDomMutation();
@@ -4530,13 +4770,11 @@
4530
4770
  }
4531
4771
 
4532
4772
  function removeNodeHook(vnode, parentNode) {
4533
- var renderer = vnode.owner.renderer;
4534
-
4535
4773
  if (process.env.NODE_ENV !== 'production') {
4536
4774
  unlockDomMutation();
4537
4775
  }
4538
4776
 
4539
- renderer.remove(vnode.elm, parentNode);
4777
+ remove$1(vnode.elm, parentNode);
4540
4778
 
4541
4779
  if (process.env.NODE_ENV !== 'production') {
4542
4780
  lockDomMutation();
@@ -4682,8 +4920,7 @@
4682
4920
  createVM(elm, def, {
4683
4921
  mode: mode,
4684
4922
  owner: owner,
4685
- tagName: sel,
4686
- renderer: owner.renderer
4923
+ tagName: sel
4687
4924
  });
4688
4925
 
4689
4926
  if (process.env.NODE_ENV !== 'production') {
@@ -4725,8 +4962,7 @@
4725
4962
 
4726
4963
  function vnodesAndElementHaveCompatibleAttrs(vnode, elm) {
4727
4964
  var _vnode$data$attrs = vnode.data.attrs,
4728
- attrs = _vnode$data$attrs === void 0 ? {} : _vnode$data$attrs,
4729
- renderer = vnode.owner.renderer;
4965
+ attrs = _vnode$data$attrs === void 0 ? {} : _vnode$data$attrs;
4730
4966
  var nodesAreCompatible = true; // Validate attributes, though we could always recovery from those by running the update mods.
4731
4967
  // Note: intentionally ONLY matching vnodes.attrs to elm.attrs, in case SSR is adding extra attributes.
4732
4968
 
@@ -4735,7 +4971,7 @@
4735
4971
  attrName = _Object$entries$_i[0],
4736
4972
  attrValue = _Object$entries$_i[1];
4737
4973
 
4738
- var elmAttrValue = renderer.getAttribute(elm, attrName);
4974
+ var elmAttrValue = getAttribute$1(elm, attrName);
4739
4975
 
4740
4976
  if (String(attrValue) !== elmAttrValue) {
4741
4977
  logError("Mismatch hydrating element <".concat(elm.tagName.toLowerCase(), ">: attribute \"").concat(attrName, "\" has different values, expected \"").concat(attrValue, "\" but found \"").concat(elmAttrValue, "\""), vnode.owner);
@@ -4749,8 +4985,7 @@
4749
4985
  function vnodesAndElementHaveCompatibleClass(vnode, elm) {
4750
4986
  var _vnode$data = vnode.data,
4751
4987
  className = _vnode$data.className,
4752
- classMap = _vnode$data.classMap,
4753
- renderer = vnode.owner.renderer;
4988
+ classMap = _vnode$data.classMap;
4754
4989
  var nodesAreCompatible = true;
4755
4990
  var vnodeClassName;
4756
4991
 
@@ -4760,7 +4995,7 @@
4760
4995
  vnodeClassName = className;
4761
4996
  } else if (!isUndefined$1(classMap)) {
4762
4997
  // classMap is used when class is set to static value.
4763
- var classList = renderer.getClassList(elm);
4998
+ var classList = getClassList$1(elm);
4764
4999
  var computedClassName = ''; // all classes from the vnode should be in the element.classList
4765
5000
 
4766
5001
  for (var name in classMap) {
@@ -4788,9 +5023,8 @@
4788
5023
  function vnodesAndElementHaveCompatibleStyle(vnode, elm) {
4789
5024
  var _vnode$data2 = vnode.data,
4790
5025
  style = _vnode$data2.style,
4791
- styleDecls = _vnode$data2.styleDecls,
4792
- renderer = vnode.owner.renderer;
4793
- var elmStyle = renderer.getAttribute(elm, 'style') || '';
5026
+ styleDecls = _vnode$data2.styleDecls;
5027
+ var elmStyle = getAttribute$1(elm, 'style') || '';
4794
5028
  var vnodeStyle;
4795
5029
  var nodesAreCompatible = true;
4796
5030
 
@@ -4931,12 +5165,12 @@
4931
5165
  */
4932
5166
 
4933
5167
 
4934
- function getUpgradableConstructor(tagName, renderer) {
5168
+ function getUpgradableConstructor(tagName) {
4935
5169
  // Should never get a tag with upper case letter at this point, the compiler should
4936
5170
  // produce only tags with lowercase letters
4937
5171
  // But, for backwards compatibility, we will lower case the tagName
4938
5172
  tagName = tagName.toLowerCase();
4939
- var CE = renderer.getCustomElement(tagName);
5173
+ var CE = getCustomElement$1(tagName);
4940
5174
 
4941
5175
  if (!isUndefined$1(CE)) {
4942
5176
  return CE;
@@ -4947,8 +5181,8 @@
4947
5181
  */
4948
5182
 
4949
5183
 
4950
- CE = /*#__PURE__*/function (_renderer$HTMLElement) {
4951
- _inherits(LWCUpgradableElement, _renderer$HTMLElement);
5184
+ CE = /*#__PURE__*/function (_HTMLElementExported$) {
5185
+ _inherits(LWCUpgradableElement, _HTMLElementExported$);
4952
5186
 
4953
5187
  var _super5 = _createSuper(LWCUpgradableElement);
4954
5188
 
@@ -4967,9 +5201,9 @@
4967
5201
  }
4968
5202
 
4969
5203
  return _createClass(LWCUpgradableElement);
4970
- }(renderer.HTMLElement);
5204
+ }(HTMLElementExported$1);
4971
5205
 
4972
- renderer.defineCustomElement(tagName, CE);
5206
+ defineCustomElement$1(tagName, CE);
4973
5207
  return CE;
4974
5208
  }
4975
5209
  /*
@@ -4985,8 +5219,7 @@
4985
5219
  var TextHook = {
4986
5220
  create: function create(vnode) {
4987
5221
  var owner = vnode.owner;
4988
- var renderer = owner.renderer;
4989
- var elm = renderer.createText(vnode.text);
5222
+ var elm = createText$1(vnode.text);
4990
5223
  linkNodeToShadow(elm, owner);
4991
5224
  vnode.elm = elm;
4992
5225
  },
@@ -5018,8 +5251,7 @@
5018
5251
  create: function create(vnode) {
5019
5252
  var owner = vnode.owner,
5020
5253
  text = vnode.text;
5021
- var renderer = owner.renderer;
5022
- var elm = renderer.createComment(text);
5254
+ var elm = createComment$1(text);
5023
5255
  linkNodeToShadow(elm, owner);
5024
5256
  vnode.elm = elm;
5025
5257
  },
@@ -5057,9 +5289,8 @@
5057
5289
  var sel = vnode.sel,
5058
5290
  owner = vnode.owner,
5059
5291
  svg = vnode.data.svg;
5060
- var renderer = owner.renderer;
5061
5292
  var namespace = isTrue(svg) ? SVG_NAMESPACE : undefined;
5062
- var elm = renderer.createElement(sel, namespace);
5293
+ var elm = createElement$2(sel, namespace);
5063
5294
  linkNodeToShadow(elm, owner);
5064
5295
  fallbackElmHook(elm, vnode);
5065
5296
  vnode.elm = elm;
@@ -5113,8 +5344,7 @@
5113
5344
  create: function create(vnode) {
5114
5345
  var sel = vnode.sel,
5115
5346
  owner = vnode.owner;
5116
- var renderer = owner.renderer;
5117
- var UpgradableConstructor = getUpgradableConstructor(sel, renderer);
5347
+ var UpgradableConstructor = getUpgradableConstructor(sel);
5118
5348
  /**
5119
5349
  * Note: if the upgradable constructor does not expect, or throw when we new it
5120
5350
  * with a callback as the first argument, we could implement a more advanced
@@ -5205,8 +5435,7 @@
5205
5435
  createVM(elm, def, {
5206
5436
  mode: mode,
5207
5437
  owner: owner,
5208
- tagName: sel,
5209
- renderer: owner.renderer
5438
+ tagName: sel
5210
5439
  });
5211
5440
  vnode.elm = elm;
5212
5441
  var vm = getAssociatedVM(elm);
@@ -5234,11 +5463,10 @@
5234
5463
  };
5235
5464
 
5236
5465
  function linkNodeToShadow(elm, owner) {
5237
- var renderer = owner.renderer,
5238
- renderMode = owner.renderMode,
5466
+ var renderMode = owner.renderMode,
5239
5467
  shadowMode = owner.shadowMode; // TODO [#1164]: this should eventually be done by the polyfill directly
5240
5468
 
5241
- if (renderer.isSyntheticShadowDefined) {
5469
+ if (isSyntheticShadowDefined$1) {
5242
5470
  if (shadowMode === 1
5243
5471
  /* Synthetic */
5244
5472
  || renderMode === 0
@@ -5759,7 +5987,6 @@
5759
5987
  function updateStylesheetToken(vm, template) {
5760
5988
  var elm = vm.elm,
5761
5989
  context = vm.context,
5762
- renderer = vm.renderer,
5763
5990
  renderMode = vm.renderMode,
5764
5991
  shadowMode = vm.shadowMode;
5765
5992
  var newStylesheets = template.stylesheets,
@@ -5779,11 +6006,11 @@
5779
6006
  oldHasTokenInAttribute = context.hasTokenInAttribute;
5780
6007
 
5781
6008
  if (oldHasTokenInClass) {
5782
- renderer.getClassList(elm).remove(makeHostToken(oldToken));
6009
+ getClassList$1(elm).remove(makeHostToken(oldToken));
5783
6010
  }
5784
6011
 
5785
6012
  if (oldHasTokenInAttribute) {
5786
- renderer.removeAttribute(elm, makeHostToken(oldToken));
6013
+ removeAttribute$1(elm, makeHostToken(oldToken));
5787
6014
  } // Apply the new template styling token to the host element, if the new template has any
5788
6015
  // associated stylesheets. In the case of light DOM, also ensure there is at least one scoped stylesheet.
5789
6016
 
@@ -5795,12 +6022,12 @@
5795
6022
 
5796
6023
  if (!isUndefined$1(newToken)) {
5797
6024
  if (hasScopedStyles) {
5798
- renderer.getClassList(elm).add(makeHostToken(newToken));
6025
+ getClassList$1(elm).add(makeHostToken(newToken));
5799
6026
  newHasTokenInClass = true;
5800
6027
  }
5801
6028
 
5802
6029
  if (isSyntheticShadow) {
5803
- renderer.setAttribute(elm, makeHostToken(newToken), '');
6030
+ setAttribute$1(elm, makeHostToken(newToken), '');
5804
6031
  newHasTokenInAttribute = true;
5805
6032
  }
5806
6033
  } // Update the styling tokens present on the context object.
@@ -5918,8 +6145,7 @@
5918
6145
  }
5919
6146
 
5920
6147
  function createStylesheet(vm, stylesheets) {
5921
- var renderer = vm.renderer,
5922
- renderMode = vm.renderMode,
6148
+ var renderMode = vm.renderMode,
5923
6149
  shadowMode = vm.shadowMode;
5924
6150
 
5925
6151
  if (renderMode === 1
@@ -5928,9 +6154,9 @@
5928
6154
  /* Synthetic */
5929
6155
  ) {
5930
6156
  for (var _i17 = 0; _i17 < stylesheets.length; _i17++) {
5931
- renderer.insertGlobalStylesheet(stylesheets[_i17]);
6157
+ insertGlobalStylesheet$1(stylesheets[_i17]);
5932
6158
  }
5933
- } else if (renderer.ssr || renderer.isHydrating()) {
6159
+ } else if (ssr$1 || isHydrating$1()) {
5934
6160
  // Note: We need to ensure that during hydration, the stylesheets method is the same as those in ssr.
5935
6161
  // This works in the client, because the stylesheets are created, and cached in the VM
5936
6162
  // the first time the VM renders.
@@ -5944,10 +6170,10 @@
5944
6170
 
5945
6171
  for (var _i18 = 0; _i18 < stylesheets.length; _i18++) {
5946
6172
  if (isGlobal) {
5947
- renderer.insertGlobalStylesheet(stylesheets[_i18]);
6173
+ insertGlobalStylesheet$1(stylesheets[_i18]);
5948
6174
  } else {
5949
6175
  // local level
5950
- renderer.insertStylesheet(stylesheets[_i18], root.cmpRoot);
6176
+ insertStylesheet$1(stylesheets[_i18], root.cmpRoot);
5951
6177
  }
5952
6178
  }
5953
6179
  }
@@ -6609,7 +6835,6 @@
6609
6835
  function createVM(elm, def, options) {
6610
6836
  var mode = options.mode,
6611
6837
  owner = options.owner,
6612
- renderer = options.renderer,
6613
6838
  tagName = options.tagName;
6614
6839
  var vm = {
6615
6840
  elm: elm,
@@ -6623,7 +6848,6 @@
6623
6848
  tagName: tagName,
6624
6849
  mode: mode,
6625
6850
  owner: owner,
6626
- renderer: renderer,
6627
6851
  children: EmptyArray,
6628
6852
  aChildren: EmptyArray,
6629
6853
  velements: EmptyArray,
@@ -6677,13 +6901,10 @@
6677
6901
  }
6678
6902
 
6679
6903
  function computeShadowMode(vm) {
6680
- var def = vm.def,
6681
- renderer = vm.renderer;
6682
- var isNativeShadowDefined = renderer.isNativeShadowDefined,
6683
- isSyntheticShadowDefined = renderer.isSyntheticShadowDefined;
6904
+ var def = vm.def;
6684
6905
  var shadowMode;
6685
6906
 
6686
- if (isSyntheticShadowDefined) {
6907
+ if (isSyntheticShadowDefined$1) {
6687
6908
  if (def.renderMode === 0
6688
6909
  /* Light */
6689
6910
  ) {
@@ -6692,7 +6913,7 @@
6692
6913
  shadowMode = 0
6693
6914
  /* Native */
6694
6915
  ;
6695
- } else if (isNativeShadowDefined) {
6916
+ } else if (isNativeShadowDefined$1) {
6696
6917
  if (def.shadowSupportMode === "any"
6697
6918
  /* Any */
6698
6919
  ) {
@@ -6829,10 +7050,9 @@
6829
7050
  }
6830
7051
 
6831
7052
  function runRenderedCallback(vm) {
6832
- var renderer = vm.renderer,
6833
- renderedCallback = vm.def.renderedCallback;
7053
+ var renderedCallback = vm.def.renderedCallback;
6834
7054
 
6835
- if (isTrue(renderer.ssr)) {
7055
+ if (isTrue(ssr$1)) {
6836
7056
  return;
6837
7057
  }
6838
7058
 
@@ -7041,15 +7261,14 @@
7041
7261
 
7042
7262
 
7043
7263
  function resetComponentRoot(vm) {
7044
- var children = vm.children,
7045
- renderer = vm.renderer;
7264
+ var children = vm.children;
7046
7265
  var rootNode = getRenderRoot(vm);
7047
7266
 
7048
7267
  for (var _i25 = 0, _len9 = children.length; _i25 < _len9; _i25++) {
7049
7268
  var child = children[_i25];
7050
7269
 
7051
7270
  if (!isNull(child) && !isUndefined$1(child.elm)) {
7052
- renderer.remove(child.elm, rootNode);
7271
+ remove$1(child.elm, rootNode);
7053
7272
  }
7054
7273
  }
7055
7274
 
@@ -7059,7 +7278,7 @@
7059
7278
  }
7060
7279
 
7061
7280
  function scheduleRehydration(vm) {
7062
- if (isTrue(vm.renderer.ssr) || isTrue(vm.isScheduled)) {
7281
+ if (isTrue(ssr$1) || isTrue(vm.isScheduled)) {
7063
7282
  return;
7064
7283
  }
7065
7284
 
@@ -7309,7 +7528,6 @@
7309
7528
  }
7310
7529
 
7311
7530
  var elm = vm.elm,
7312
- renderer = vm.renderer,
7313
7531
  _vm$context = vm.context,
7314
7532
  wiredConnecting = _vm$context.wiredConnecting,
7315
7533
  wiredDisconnecting = _vm$context.wiredDisconnecting; // waiting for the component to be connected to formally request the context via the token
@@ -7332,7 +7550,7 @@
7332
7550
  ArrayPush$1.call(wiredDisconnecting, disconnectCallback);
7333
7551
  }
7334
7552
  });
7335
- renderer.dispatchEvent(elm, contextRegistrationEvent);
7553
+ dispatchEvent$1(elm, contextRegistrationEvent);
7336
7554
  });
7337
7555
  }
7338
7556
 
@@ -7586,7 +7804,7 @@
7586
7804
  hooksAreSet = true;
7587
7805
  setSanitizeHtmlContentHook(hooks.sanitizeHtmlContent);
7588
7806
  }
7589
- /* version: 2.7.1 */
7807
+ /* version: 2.7.2 */
7590
7808
 
7591
7809
  /*
7592
7810
  * Copyright (c) 2018, salesforce.com, inc.
@@ -7616,7 +7834,9 @@
7616
7834
  var styleElements = create(null);
7617
7835
  var styleSheets = create(null);
7618
7836
  var nodesToStyleSheets = new WeakMap();
7619
- var getCustomElement, defineCustomElement, HTMLElementConstructor;
7837
+ var getCustomElement;
7838
+ var defineCustomElement;
7839
+ var HTMLElementConstructor;
7620
7840
 
7621
7841
  function isCustomElementRegistryAvailable() {
7622
7842
  if (typeof customElements === 'undefined') {
@@ -7741,152 +7961,231 @@
7741
7961
  HTMLElementConstructor.prototype = HTMLElement.prototype;
7742
7962
  }
7743
7963
 
7744
- var _isHydrating = false;
7964
+ var hydrating = false;
7745
7965
 
7746
- function setIsHydrating(v) {
7747
- _isHydrating = v;
7966
+ function setIsHydrating(value) {
7967
+ hydrating = value;
7748
7968
  }
7749
7969
 
7750
- var renderer = {
7751
- ssr: false,
7752
- isHydrating: function isHydrating() {
7753
- return _isHydrating;
7754
- },
7755
- isNativeShadowDefined: _globalThis[KEY__IS_NATIVE_SHADOW_ROOT_DEFINED],
7756
- isSyntheticShadowDefined: hasOwnProperty$1.call(Element.prototype, KEY__SHADOW_TOKEN),
7757
- createElement: function createElement(tagName, namespace) {
7758
- return isUndefined$1(namespace) ? document.createElement(tagName) : document.createElementNS(namespace, tagName);
7759
- },
7760
- createText: function createText(content) {
7761
- return document.createTextNode(content);
7762
- },
7763
- createComment: function createComment(content) {
7764
- return document.createComment(content);
7765
- },
7766
- insert: function insert(node, parent, anchor) {
7767
- parent.insertBefore(node, anchor);
7768
- },
7769
- remove: function remove(node, parent) {
7770
- parent.removeChild(node);
7771
- },
7772
- nextSibling: function nextSibling(node) {
7773
- return node.nextSibling;
7774
- },
7775
- attachShadow: function attachShadow(element, options) {
7776
- if (_isHydrating) {
7777
- return element.shadowRoot;
7778
- }
7970
+ var ssr = false;
7779
7971
 
7780
- return element.attachShadow(options);
7781
- },
7782
- setText: function setText(node, content) {
7783
- node.nodeValue = content;
7784
- },
7785
- getProperty: function getProperty(node, key) {
7786
- return node[key];
7787
- },
7788
- setProperty: function setProperty(node, key, value) {
7789
- if (process.env.NODE_ENV !== 'production') {
7790
- if (node instanceof Element && !(key in node)) {
7791
- // TODO [#1297]: Move this validation to the compiler
7792
- assert.fail("Unknown public property \"".concat(key, "\" of element <").concat(node.tagName, ">. This is likely a typo on the corresponding attribute \"").concat(htmlPropertyToAttribute(key), "\"."));
7793
- }
7794
- }
7972
+ function isHydrating() {
7973
+ return hydrating;
7974
+ }
7795
7975
 
7796
- node[key] = value;
7797
- },
7798
- getAttribute: function getAttribute(element, name, namespace) {
7799
- return isUndefined$1(namespace) ? element.getAttribute(name) : element.getAttributeNS(namespace, name);
7800
- },
7801
- setAttribute: function setAttribute(element, name, value, namespace) {
7802
- return isUndefined$1(namespace) ? element.setAttribute(name, value) : element.setAttributeNS(namespace, name, value);
7803
- },
7804
- removeAttribute: function removeAttribute(element, name, namespace) {
7805
- if (isUndefined$1(namespace)) {
7806
- element.removeAttribute(name);
7807
- } else {
7808
- element.removeAttributeNS(namespace, name);
7809
- }
7810
- },
7811
- addEventListener: function addEventListener(target, type, callback, options) {
7812
- target.addEventListener(type, callback, options);
7813
- },
7814
- removeEventListener: function removeEventListener(target, type, callback, options) {
7815
- target.removeEventListener(type, callback, options);
7816
- },
7817
- dispatchEvent: function dispatchEvent(target, event) {
7818
- return target.dispatchEvent(event);
7819
- },
7820
- getClassList: function getClassList(element) {
7821
- return element.classList;
7822
- },
7823
- setCSSStyleProperty: function setCSSStyleProperty(element, name, value, important) {
7824
- // TODO [#0]: How to avoid this type casting? Shall we use a different type interface to
7825
- // represent elements in the engine?
7826
- element.style.setProperty(name, value, important ? 'important' : '');
7827
- },
7828
- getBoundingClientRect: function getBoundingClientRect(element) {
7829
- return element.getBoundingClientRect();
7830
- },
7831
- querySelector: function querySelector(element, selectors) {
7832
- return element.querySelector(selectors);
7833
- },
7834
- querySelectorAll: function querySelectorAll(element, selectors) {
7835
- return element.querySelectorAll(selectors);
7836
- },
7837
- getElementsByTagName: function getElementsByTagName(element, tagNameOrWildCard) {
7838
- return element.getElementsByTagName(tagNameOrWildCard);
7839
- },
7840
- getElementsByClassName: function getElementsByClassName(element, names) {
7841
- return element.getElementsByClassName(names);
7842
- },
7843
- getChildren: function getChildren(element) {
7844
- return element.children;
7845
- },
7846
- getChildNodes: function getChildNodes(element) {
7847
- return element.childNodes;
7848
- },
7849
- getFirstChild: function getFirstChild(element) {
7850
- return element.firstChild;
7851
- },
7852
- getFirstElementChild: function getFirstElementChild(element) {
7853
- return element.firstElementChild;
7854
- },
7855
- getLastChild: function getLastChild(element) {
7856
- return element.lastChild;
7857
- },
7858
- getLastElementChild: function getLastElementChild(element) {
7859
- return element.lastElementChild;
7860
- },
7861
- isConnected: function isConnected(node) {
7862
- return node.isConnected;
7863
- },
7864
- insertGlobalStylesheet: function insertGlobalStylesheet(content) {
7865
- if (!isUndefined$1(globalStylesheets[content])) {
7866
- return;
7867
- }
7976
+ var isNativeShadowDefined = _globalThis[KEY__IS_NATIVE_SHADOW_ROOT_DEFINED];
7977
+ var isSyntheticShadowDefined = hasOwnProperty$1.call(Element.prototype, KEY__SHADOW_TOKEN);
7868
7978
 
7869
- globalStylesheets[content] = true;
7870
- var elm = document.createElement('style');
7871
- elm.type = 'text/css';
7872
- elm.textContent = content;
7873
- globalStylesheetsParentElement.appendChild(elm);
7874
- },
7875
- insertStylesheet: function insertStylesheet(content, target) {
7876
- if (supportsConstructableStyleSheets) {
7877
- insertConstructableStyleSheet(content, target);
7878
- } else {
7879
- // Fall back to <style> element
7880
- insertStyleElement(content, target);
7979
+ function createElement$1(tagName, namespace) {
7980
+ return isUndefined$1(namespace) ? document.createElement(tagName) : document.createElementNS(namespace, tagName);
7981
+ }
7982
+
7983
+ function createText(content) {
7984
+ return document.createTextNode(content);
7985
+ }
7986
+
7987
+ function createComment(content) {
7988
+ return document.createComment(content);
7989
+ }
7990
+
7991
+ function insert(node, parent, anchor) {
7992
+ parent.insertBefore(node, anchor);
7993
+ }
7994
+
7995
+ function remove(node, parent) {
7996
+ parent.removeChild(node);
7997
+ }
7998
+
7999
+ function nextSibling(node) {
8000
+ return node.nextSibling;
8001
+ }
8002
+
8003
+ function attachShadow(element, options) {
8004
+ if (hydrating) {
8005
+ return element.shadowRoot;
8006
+ }
8007
+
8008
+ return element.attachShadow(options);
8009
+ }
8010
+
8011
+ function setText(node, content) {
8012
+ node.nodeValue = content;
8013
+ }
8014
+
8015
+ function getProperty(node, key) {
8016
+ return node[key];
8017
+ }
8018
+
8019
+ function setProperty(node, key, value) {
8020
+ if (process.env.NODE_ENV !== 'production') {
8021
+ if (node instanceof Element && !(key in node)) {
8022
+ // TODO [#1297]: Move this validation to the compiler
8023
+ assert.fail("Unknown public property \"".concat(key, "\" of element <").concat(node.tagName, ">. This is likely a typo on the corresponding attribute \"").concat(htmlPropertyToAttribute(key), "\"."));
7881
8024
  }
7882
- },
7883
- assertInstanceOfHTMLElement: function assertInstanceOfHTMLElement(elm, msg) {
7884
- assert.invariant(elm instanceof HTMLElement, msg);
7885
- },
7886
- defineCustomElement: defineCustomElement,
7887
- getCustomElement: getCustomElement,
7888
- HTMLElement: HTMLElementConstructor
7889
- };
8025
+ }
8026
+
8027
+ node[key] = value;
8028
+ }
8029
+
8030
+ function getAttribute(element, name, namespace) {
8031
+ return isUndefined$1(namespace) ? element.getAttribute(name) : element.getAttributeNS(namespace, name);
8032
+ }
8033
+
8034
+ function setAttribute(element, name, value, namespace) {
8035
+ return isUndefined$1(namespace) ? element.setAttribute(name, value) : element.setAttributeNS(namespace, name, value);
8036
+ }
8037
+
8038
+ function removeAttribute(element, name, namespace) {
8039
+ if (isUndefined$1(namespace)) {
8040
+ element.removeAttribute(name);
8041
+ } else {
8042
+ element.removeAttributeNS(namespace, name);
8043
+ }
8044
+ }
8045
+
8046
+ function addEventListener(target, type, callback, options) {
8047
+ target.addEventListener(type, callback, options);
8048
+ }
8049
+
8050
+ function removeEventListener(target, type, callback, options) {
8051
+ target.removeEventListener(type, callback, options);
8052
+ }
8053
+
8054
+ function dispatchEvent(target, event) {
8055
+ return target.dispatchEvent(event);
8056
+ }
8057
+
8058
+ function getClassList(element) {
8059
+ return element.classList;
8060
+ }
8061
+
8062
+ function setCSSStyleProperty(element, name, value, important) {
8063
+ // TODO [#0]: How to avoid this type casting? Shall we use a different type interface to
8064
+ // represent elements in the engine?
8065
+ element.style.setProperty(name, value, important ? 'important' : '');
8066
+ }
8067
+
8068
+ function getBoundingClientRect(element) {
8069
+ return element.getBoundingClientRect();
8070
+ }
8071
+
8072
+ function querySelector(element, selectors) {
8073
+ return element.querySelector(selectors);
8074
+ }
8075
+
8076
+ function querySelectorAll(element, selectors) {
8077
+ return element.querySelectorAll(selectors);
8078
+ }
8079
+
8080
+ function getElementsByTagName(element, tagNameOrWildCard) {
8081
+ return element.getElementsByTagName(tagNameOrWildCard);
8082
+ }
8083
+
8084
+ function getElementsByClassName(element, names) {
8085
+ return element.getElementsByClassName(names);
8086
+ }
8087
+
8088
+ function getChildren(element) {
8089
+ return element.children;
8090
+ }
8091
+
8092
+ function getChildNodes(element) {
8093
+ return element.childNodes;
8094
+ }
8095
+
8096
+ function getFirstChild(element) {
8097
+ return element.firstChild;
8098
+ }
8099
+
8100
+ function getFirstElementChild(element) {
8101
+ return element.firstElementChild;
8102
+ }
8103
+
8104
+ function getLastChild(element) {
8105
+ return element.lastChild;
8106
+ }
8107
+
8108
+ function getLastElementChild(element) {
8109
+ return element.lastElementChild;
8110
+ }
8111
+
8112
+ function isConnected(node) {
8113
+ return node.isConnected;
8114
+ }
8115
+
8116
+ function insertGlobalStylesheet(content) {
8117
+ if (!isUndefined$1(globalStylesheets[content])) {
8118
+ return;
8119
+ }
8120
+
8121
+ globalStylesheets[content] = true;
8122
+ var elm = document.createElement('style');
8123
+ elm.type = 'text/css';
8124
+ elm.textContent = content;
8125
+ globalStylesheetsParentElement.appendChild(elm);
8126
+ }
8127
+
8128
+ function insertStylesheet(content, target) {
8129
+ if (supportsConstructableStyleSheets) {
8130
+ insertConstructableStyleSheet(content, target);
8131
+ } else {
8132
+ // Fall back to <style> element
8133
+ insertStyleElement(content, target);
8134
+ }
8135
+ }
8136
+
8137
+ function assertInstanceOfHTMLElement(elm, msg) {
8138
+ assert.invariant(elm instanceof HTMLElement, msg);
8139
+ }
8140
+
8141
+ var HTMLElementExported = HTMLElementConstructor;
8142
+ /*
8143
+ * Copyright (c) 2020, salesforce.com, inc.
8144
+ * All rights reserved.
8145
+ * SPDX-License-Identifier: MIT
8146
+ * For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/MIT
8147
+ */
8148
+
8149
+ setAssertInstanceOfHTMLElement(assertInstanceOfHTMLElement);
8150
+ setAttachShadow(attachShadow);
8151
+ setCreateComment(createComment);
8152
+ setCreateElement(createElement$1);
8153
+ setCreateText(createText);
8154
+ setDefineCustomElement(defineCustomElement);
8155
+ setDispatchEvent(dispatchEvent);
8156
+ setGetAttribute(getAttribute);
8157
+ setGetBoundingClientRect(getBoundingClientRect);
8158
+ setGetChildNodes(getChildNodes);
8159
+ setGetChildren(getChildren);
8160
+ setGetClassList(getClassList);
8161
+ setGetCustomElement(getCustomElement);
8162
+ setGetElementsByClassName(getElementsByClassName);
8163
+ setGetElementsByTagName(getElementsByTagName);
8164
+ setGetFirstChild(getFirstChild);
8165
+ setGetFirstElementChild(getFirstElementChild);
8166
+ setGetLastChild(getLastChild);
8167
+ setGetLastElementChild(getLastElementChild);
8168
+ setGetProperty(getProperty);
8169
+ setHTMLElement(HTMLElementExported);
8170
+ setInsert(insert);
8171
+ setInsertGlobalStylesheet(insertGlobalStylesheet);
8172
+ setInsertStylesheet(insertStylesheet);
8173
+ setIsConnected(isConnected);
8174
+ setIsHydrating$1(isHydrating);
8175
+ setIsNativeShadowDefined(isNativeShadowDefined);
8176
+ setIsSyntheticShadowDefined(isSyntheticShadowDefined);
8177
+ setNextSibling(nextSibling);
8178
+ setQuerySelector(querySelector);
8179
+ setQuerySelectorAll(querySelectorAll);
8180
+ setRemove(remove);
8181
+ setRemoveAttribute(removeAttribute);
8182
+ setRemoveEventListener(removeEventListener);
8183
+ setSetAttribute(setAttribute);
8184
+ setSetCSSStyleProperty(setCSSStyleProperty);
8185
+ setSetProperty(setProperty);
8186
+ setSetText(setText);
8187
+ setSsr(ssr);
8188
+ setAddEventListener(addEventListener);
7890
8189
  /*
7891
8190
  * Copyright (c) 2018, salesforce.com, inc.
7892
8191
  * All rights reserved.
@@ -7968,7 +8267,7 @@
7968
8267
  throw new TypeError("\"createElement\" function expects an \"is\" option with a valid component constructor.");
7969
8268
  }
7970
8269
 
7971
- var UpgradableConstructor = getUpgradableConstructor(sel, renderer);
8270
+ var UpgradableConstructor = getUpgradableConstructor(sel);
7972
8271
  var wasComponentUpgraded = false; // the custom element from the registry is expecting an upgrade callback
7973
8272
 
7974
8273
  /**
@@ -7983,8 +8282,7 @@
7983
8282
  createVM(elm, def, {
7984
8283
  tagName: sel,
7985
8284
  mode: options.mode !== 'closed' ? 'open' : 'closed',
7986
- owner: null,
7987
- renderer: renderer
8285
+ owner: null
7988
8286
  });
7989
8287
  ConnectingSlot.set(elm, connectRootElement);
7990
8288
  DisconnectingSlot.set(elm, disconnectRootElement);
@@ -8009,6 +8307,10 @@
8009
8307
  function hydrateComponent(element, Ctor) {
8010
8308
  var props = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
8011
8309
 
8310
+ if (!(element instanceof Element)) {
8311
+ throw new TypeError("\"hydrateComponent\" expects a valid DOM element as the first parameter but instead received ".concat(element, "."));
8312
+ }
8313
+
8012
8314
  if (!isFunction$1(Ctor)) {
8013
8315
  throw new TypeError("\"hydrateComponent\" expects a valid component constructor as the second parameter but instead received ".concat(Ctor, "."));
8014
8316
  }
@@ -8026,7 +8328,6 @@
8026
8328
  createVM(element, def, {
8027
8329
  mode: 'open',
8028
8330
  owner: null,
8029
- renderer: renderer,
8030
8331
  tagName: element.tagName.toLowerCase()
8031
8332
  });
8032
8333
 
@@ -8113,8 +8414,7 @@
8113
8414
  createVM(_assertThisInitialized(_this6), def, {
8114
8415
  mode: 'open',
8115
8416
  owner: null,
8116
- tagName: _this6.tagName,
8117
- renderer: renderer
8417
+ tagName: _this6.tagName
8118
8418
  });
8119
8419
  return _this6;
8120
8420
  }
@@ -8187,7 +8487,7 @@
8187
8487
  return false;
8188
8488
  }
8189
8489
 
8190
- if (renderer.isSyntheticShadowDefined) {
8490
+ if (isSyntheticShadowDefined) {
8191
8491
  // TODO [#1252]: old behavior that is still used by some pieces of the platform,
8192
8492
  // specifically, nodes inserted manually on places where `lwc:dom="manual"` directive is not
8193
8493
  // used, will be considered global elements.
@@ -8239,7 +8539,7 @@
8239
8539
  });
8240
8540
  freeze(LightningElement);
8241
8541
  seal(LightningElement.prototype);
8242
- /* version: 2.7.1 */
8542
+ /* version: 2.7.2 */
8243
8543
 
8244
8544
  exports.LightningElement = LightningElement;
8245
8545
  exports.__unstable__ProfilerControl = profilerControl;