lwc 2.17.0 → 2.19.1

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 (34) hide show
  1. package/dist/engine-dom/esm/es2017/engine-dom.js +137 -137
  2. package/dist/engine-dom/iife/es2017/engine-dom.js +137 -137
  3. package/dist/engine-dom/iife/es2017/engine-dom_debug.js +116 -116
  4. package/dist/engine-dom/iife/es5/engine-dom.js +148 -149
  5. package/dist/engine-dom/iife/es5/engine-dom.min.js +1 -1
  6. package/dist/engine-dom/iife/es5/engine-dom_debug.js +127 -128
  7. package/dist/engine-dom/umd/es2017/engine-dom.js +137 -137
  8. package/dist/engine-dom/umd/es2017/engine-dom_debug.js +116 -116
  9. package/dist/engine-dom/umd/es5/engine-dom.js +148 -149
  10. package/dist/engine-dom/umd/es5/engine-dom.min.js +1 -1
  11. package/dist/engine-dom/umd/es5/engine-dom_debug.js +127 -128
  12. package/dist/engine-server/commonjs/es2017/engine-server.js +114 -114
  13. package/dist/engine-server/esm/es2017/engine-server.js +114 -114
  14. package/dist/synthetic-shadow/esm/es2017/synthetic-shadow.js +20 -20
  15. package/dist/synthetic-shadow/iife/es2017/synthetic-shadow.js +20 -20
  16. package/dist/synthetic-shadow/iife/es2017/synthetic-shadow_debug.js +20 -20
  17. package/dist/synthetic-shadow/iife/es5/synthetic-shadow.js +20 -20
  18. package/dist/synthetic-shadow/iife/es5/synthetic-shadow_debug.js +20 -20
  19. package/dist/synthetic-shadow/umd/es2017/synthetic-shadow.js +20 -20
  20. package/dist/synthetic-shadow/umd/es2017/synthetic-shadow_debug.js +20 -20
  21. package/dist/synthetic-shadow/umd/es5/synthetic-shadow.js +20 -20
  22. package/dist/synthetic-shadow/umd/es5/synthetic-shadow_debug.js +20 -20
  23. package/dist/wire-service/esm/es2017/wire-service.js +2 -2
  24. package/dist/wire-service/iife/es2017/wire-service.js +2 -2
  25. package/dist/wire-service/iife/es2017/wire-service_debug.js +2 -2
  26. package/dist/wire-service/iife/es5/wire-service.js +4 -4
  27. package/dist/wire-service/iife/es5/wire-service.min.js +1 -1
  28. package/dist/wire-service/iife/es5/wire-service_debug.js +4 -4
  29. package/dist/wire-service/umd/es2017/wire-service.js +2 -2
  30. package/dist/wire-service/umd/es2017/wire-service_debug.js +2 -2
  31. package/dist/wire-service/umd/es5/wire-service.js +4 -4
  32. package/dist/wire-service/umd/es5/wire-service.min.js +1 -1
  33. package/dist/wire-service/umd/es5/wire-service_debug.js +4 -4
  34. package/package.json +7 -7
@@ -3,11 +3,11 @@ var LWC = (function (exports) {
3
3
 
4
4
  function _wrapNativeSuper(Class) { var _cache = typeof Map === "function" ? new Map() : undefined; _wrapNativeSuper = function _wrapNativeSuper(Class) { if (Class === null || !_isNativeFunction(Class)) return Class; if (typeof Class !== "function") { throw new TypeError("Super expression must either be null or a function"); } if (typeof _cache !== "undefined") { if (_cache.has(Class)) return _cache.get(Class); _cache.set(Class, Wrapper); } function Wrapper() { return _construct(Class, arguments, _getPrototypeOf2(this).constructor); } Wrapper.prototype = Object.create(Class.prototype, { constructor: { value: Wrapper, enumerable: false, writable: true, configurable: true } }); return _setPrototypeOf(Wrapper, Class); }; return _wrapNativeSuper(Class); }
5
5
 
6
- function _construct(Parent, args, Class) { if (_isNativeReflectConstruct()) { _construct = Reflect.construct; } else { _construct = function _construct(Parent, args, Class) { var a = [null]; a.push.apply(a, args); var Constructor = Function.bind.apply(Parent, a); var instance = new Constructor(); if (Class) _setPrototypeOf(instance, Class.prototype); return instance; }; } return _construct.apply(null, arguments); }
6
+ function _construct(Parent, args, Class) { if (_isNativeReflectConstruct()) { _construct = Reflect.construct.bind(); } else { _construct = function _construct(Parent, args, Class) { var a = [null]; a.push.apply(a, args); var Constructor = Function.bind.apply(Parent, a); var instance = new Constructor(); if (Class) _setPrototypeOf(instance, Class.prototype); return instance; }; } return _construct.apply(null, arguments); }
7
7
 
8
8
  function _isNativeFunction(fn) { return Function.toString.call(fn).indexOf("[native code]") !== -1; }
9
9
 
10
- function _get2() { if (typeof Reflect !== "undefined" && Reflect.get) { _get2 = Reflect.get; } else { _get2 = function _get(target, property, receiver) { var base = _superPropBase(target, property); if (!base) return; var desc = Object.getOwnPropertyDescriptor(base, property); if (desc.get) { return desc.get.call(arguments.length < 3 ? target : receiver); } return desc.value; }; } return _get2.apply(this, arguments); }
10
+ function _get2() { if (typeof Reflect !== "undefined" && Reflect.get) { _get2 = Reflect.get.bind(); } else { _get2 = function _get(target, property, receiver) { var base = _superPropBase(target, property); if (!base) return; var desc = Object.getOwnPropertyDescriptor(base, property); if (desc.get) { return desc.get.call(arguments.length < 3 ? target : receiver); } return desc.value; }; } return _get2.apply(this, arguments); }
11
11
 
12
12
  function _superPropBase(object, property) { while (!Object.prototype.hasOwnProperty.call(object, property)) { object = _getPrototypeOf2(object); if (object === null) break; } return object; }
13
13
 
@@ -15,7 +15,7 @@ var LWC = (function (exports) {
15
15
 
16
16
  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); }
17
17
 
18
- function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
18
+ function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
19
19
 
20
20
  function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf2(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf2(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
21
21
 
@@ -25,7 +25,7 @@ var LWC = (function (exports) {
25
25
 
26
26
  function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
27
27
 
28
- function _getPrototypeOf2(o) { _getPrototypeOf2 = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf2(o); }
28
+ function _getPrototypeOf2(o) { _getPrototypeOf2 = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf2(o); }
29
29
 
30
30
  function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
31
31
 
@@ -235,7 +235,6 @@ var LWC = (function (exports) {
235
235
  var AriaAttrNameToPropNameMap = create(null);
236
236
  var AriaPropNameToAttrNameMap = create(null); // Synthetic creation of all AOM property descriptors for Custom Elements
237
237
 
238
- // Synthetic creation of all AOM property descriptors for Custom Elements
239
238
  forEach.call(AriaPropertyNames, function (propName) {
240
239
  var attrName = StringToLowerCase.call(StringReplace.call(propName, /^aria/, function () {
241
240
  return 'aria-';
@@ -366,9 +365,9 @@ var LWC = (function (exports) {
366
365
  */
367
366
  // Increment whenever the LWC template compiler changes
368
367
 
369
- var LWC_VERSION = "2.17.0";
368
+ var LWC_VERSION = "2.19.1";
370
369
  var LWC_VERSION_COMMENT_REGEX = /\/\*LWC compiler v([\d.]+)\*\/\s*}/;
371
- /** version: 2.17.0 */
370
+ /** version: 2.19.1 */
372
371
 
373
372
  /*
374
373
  * Copyright (c) 2018, salesforce.com, inc.
@@ -547,7 +546,7 @@ var LWC = (function (exports) {
547
546
  setFeatureFlag(name, value);
548
547
  }
549
548
  }
550
- /** version: 2.17.0 */
549
+ /** version: 2.19.1 */
551
550
 
552
551
  /*
553
552
  * Copyright (c) 2018, salesforce.com, inc.
@@ -2406,7 +2405,7 @@ var LWC = (function (exports) {
2406
2405
  associateVM(elm, vm);
2407
2406
 
2408
2407
  if (vm.renderMode === 1
2409
- /* Shadow */
2408
+ /* RenderMode.Shadow */
2410
2409
  ) {
2411
2410
  vm.renderRoot = doAttachShadow(vm);
2412
2411
  } else {
@@ -2584,7 +2583,7 @@ var LWC = (function (exports) {
2584
2583
 
2585
2584
  if (process.env.NODE_ENV !== 'production') {
2586
2585
  if (vm.renderMode === 0
2587
- /* Light */
2586
+ /* RenderMode.Light */
2588
2587
  ) {
2589
2588
  logError('`this.template` returns null for light DOM components. Since there is no shadow, the rendered content can be accessed via `this` itself. e.g. instead of `this.template.querySelector`, use `this.querySelector`.');
2590
2589
  }
@@ -3015,15 +3014,15 @@ var LWC = (function (exports) {
3015
3014
  function getClassDescriptorType(descriptor) {
3016
3015
  if (isFunction$1(descriptor.value)) {
3017
3016
  return "method"
3018
- /* Method */
3017
+ /* DescriptorType.Method */
3019
3018
  ;
3020
3019
  } else if (isFunction$1(descriptor.set) || isFunction$1(descriptor.get)) {
3021
3020
  return "accessor"
3022
- /* Accessor */
3021
+ /* DescriptorType.Accessor */
3023
3022
  ;
3024
3023
  } else {
3025
3024
  return "field"
3026
- /* Field */
3025
+ /* DescriptorType.Field */
3027
3026
  ;
3028
3027
  }
3029
3028
  }
@@ -3035,7 +3034,7 @@ var LWC = (function (exports) {
3035
3034
  // This branch is only here for backward compatibility reasons.
3036
3035
 
3037
3036
  if (type === "accessor"
3038
- /* Accessor */
3037
+ /* DescriptorType.Accessor */
3039
3038
  ) {
3040
3039
  logError(message);
3041
3040
  } else {
@@ -3071,7 +3070,7 @@ var LWC = (function (exports) {
3071
3070
  // This branch is only here for backward compatibility reasons.
3072
3071
 
3073
3072
  if (type === "accessor"
3074
- /* Accessor */
3073
+ /* DescriptorType.Accessor */
3075
3074
  ) {
3076
3075
  logError(message);
3077
3076
  } else {
@@ -3902,9 +3901,9 @@ var LWC = (function (exports) {
3902
3901
 
3903
3902
  if (!isUndefined$1(ctorShadowSupportMode)) {
3904
3903
  assert.invariant(ctorShadowSupportMode === "any"
3905
- /* Any */
3904
+ /* ShadowSupportMode.Any */
3906
3905
  || ctorShadowSupportMode === "reset"
3907
- /* Default */
3906
+ /* ShadowSupportMode.Default */
3908
3907
  , "Invalid value for static property shadowSupportMode: '".concat(ctorShadowSupportMode, "'"));
3909
3908
  }
3910
3909
 
@@ -3948,9 +3947,9 @@ var LWC = (function (exports) {
3948
3947
 
3949
3948
  if (!isUndefined$1(ctorRenderMode)) {
3950
3949
  renderMode = ctorRenderMode === 'light' ? 0
3951
- /* Light */
3950
+ /* RenderMode.Light */
3952
3951
  : 1
3953
- /* Shadow */
3952
+ /* RenderMode.Shadow */
3954
3953
  ;
3955
3954
  }
3956
3955
 
@@ -4064,10 +4063,10 @@ var LWC = (function (exports) {
4064
4063
  propsConfig: EmptyObject,
4065
4064
  methods: EmptyObject,
4066
4065
  renderMode: 1
4067
- /* Shadow */
4066
+ /* RenderMode.Shadow */
4068
4067
  ,
4069
4068
  shadowSupportMode: "reset"
4070
- /* Default */
4069
+ /* ShadowSupportMode.Default */
4071
4070
  ,
4072
4071
  wire: EmptyObject,
4073
4072
  bridge: BaseBridgeElement,
@@ -4097,7 +4096,7 @@ var LWC = (function (exports) {
4097
4096
  publicProps[key] = {
4098
4097
  config: propsConfig[key] || 0,
4099
4098
  type: "any"
4100
- /* any */
4099
+ /* PropDefType.any */
4101
4100
  ,
4102
4101
  attr: htmlPropertyToAttribute(key)
4103
4102
  };
@@ -4180,9 +4179,9 @@ var LWC = (function (exports) {
4180
4179
  function isVBaseElement(vnode) {
4181
4180
  var type = vnode.type;
4182
4181
  return type === 2
4183
- /* Element */
4182
+ /* VNodeType.Element */
4184
4183
  || type === 3
4185
- /* CustomElement */
4184
+ /* VNodeType.CustomElement */
4186
4185
  ;
4187
4186
  }
4188
4187
 
@@ -4505,33 +4504,33 @@ var LWC = (function (exports) {
4505
4504
 
4506
4505
  switch (n2.type) {
4507
4506
  case 0
4508
- /* Text */
4507
+ /* VNodeType.Text */
4509
4508
  :
4510
4509
  // VText has no special capability, fallback to the owner's renderer
4511
4510
  patchText(n1, n2, renderer);
4512
4511
  break;
4513
4512
 
4514
4513
  case 1
4515
- /* Comment */
4514
+ /* VNodeType.Comment */
4516
4515
  :
4517
4516
  // VComment has no special capability, fallback to the owner's renderer
4518
4517
  patchComment(n1, n2, renderer);
4519
4518
  break;
4520
4519
 
4521
4520
  case 4
4522
- /* Static */
4521
+ /* VNodeType.Static */
4523
4522
  :
4524
4523
  n2.elm = n1.elm;
4525
4524
  break;
4526
4525
 
4527
4526
  case 2
4528
- /* Element */
4527
+ /* VNodeType.Element */
4529
4528
  :
4530
4529
  patchElement(n1, n2, (_a = n2.data.renderer) !== null && _a !== void 0 ? _a : renderer);
4531
4530
  break;
4532
4531
 
4533
4532
  case 3
4534
- /* CustomElement */
4533
+ /* VNodeType.CustomElement */
4535
4534
  :
4536
4535
  patchCustomElement(n1, n2, (_b = n2.data.renderer) !== null && _b !== void 0 ? _b : renderer);
4537
4536
  break;
@@ -4543,35 +4542,35 @@ var LWC = (function (exports) {
4543
4542
 
4544
4543
  switch (node.type) {
4545
4544
  case 0
4546
- /* Text */
4545
+ /* VNodeType.Text */
4547
4546
  :
4548
4547
  // VText has no special capability, fallback to the owner's renderer
4549
4548
  mountText(node, parent, anchor, renderer);
4550
4549
  break;
4551
4550
 
4552
4551
  case 1
4553
- /* Comment */
4552
+ /* VNodeType.Comment */
4554
4553
  :
4555
4554
  // VComment has no special capability, fallback to the owner's renderer
4556
4555
  mountComment(node, parent, anchor, renderer);
4557
4556
  break;
4558
4557
 
4559
4558
  case 4
4560
- /* Static */
4559
+ /* VNodeType.Static */
4561
4560
  :
4562
4561
  // VStatic cannot have a custom renderer associated to them, using owner's renderer
4563
4562
  mountStatic(node, parent, anchor, renderer);
4564
4563
  break;
4565
4564
 
4566
4565
  case 2
4567
- /* Element */
4566
+ /* VNodeType.Element */
4568
4567
  :
4569
4568
  // If the vnode data has a renderer override use it, else fallback to owner's renderer
4570
4569
  mountElement(node, parent, anchor, (_a = node.data.renderer) !== null && _a !== void 0 ? _a : renderer);
4571
4570
  break;
4572
4571
 
4573
4572
  case 3
4574
- /* CustomElement */
4573
+ /* VNodeType.CustomElement */
4575
4574
  :
4576
4575
  // If the vnode data has a renderer override use it, else fallback to owner's renderer
4577
4576
  mountCustomElement(node, parent, anchor, (_b = node.data.renderer) !== null && _b !== void 0 ? _b : renderer);
@@ -4645,9 +4644,9 @@ var LWC = (function (exports) {
4645
4644
 
4646
4645
  if (isSyntheticShadowDefined) {
4647
4646
  if (shadowMode === 1
4648
- /* Synthetic */
4647
+ /* ShadowMode.Synthetic */
4649
4648
  || renderMode === 0
4650
- /* Light */
4649
+ /* RenderMode.Light */
4651
4650
  ) {
4652
4651
  elm[KEY__SHADOW_STATIC] = true;
4653
4652
  }
@@ -4655,7 +4654,7 @@ var LWC = (function (exports) {
4655
4654
 
4656
4655
  if (process.env.NODE_ENV !== 'production') {
4657
4656
  var isLight = renderMode === 0
4658
- /* Light */
4657
+ /* RenderMode.Light */
4659
4658
  ;
4660
4659
  patchElementWithRestrictions(elm, {
4661
4660
  isPortal: false,
@@ -4698,7 +4697,7 @@ var LWC = (function (exports) {
4698
4697
  if (vm) {
4699
4698
  if (process.env.NODE_ENV !== 'production') {
4700
4699
  assert.isTrue(vm.state === 0
4701
- /* created */
4700
+ /* VMState.created */
4702
4701
  , "".concat(vm, " cannot be recycled."));
4703
4702
  }
4704
4703
 
@@ -4762,20 +4761,20 @@ var LWC = (function (exports) {
4762
4761
 
4763
4762
  switch (type) {
4764
4763
  case 2
4765
- /* Element */
4764
+ /* VNodeType.Element */
4766
4765
  :
4767
4766
  {
4768
4767
  // Slot content is removed to trigger slotchange event when removing slot.
4769
4768
  // Only required for synthetic shadow.
4770
4769
  var shouldRemoveChildren = sel === 'slot' && vnode.owner.shadowMode === 1
4771
- /* Synthetic */
4770
+ /* ShadowMode.Synthetic */
4772
4771
  ;
4773
4772
  unmountVNodes(vnode.children, elm, renderer, shouldRemoveChildren);
4774
4773
  break;
4775
4774
  }
4776
4775
 
4777
4776
  case 3
4778
- /* CustomElement */
4777
+ /* VNodeType.CustomElement */
4779
4778
  :
4780
4779
  {
4781
4780
  var vm = vnode.vm; // No need to unmount the children here, `removeVM` will take care of removing the
@@ -4836,9 +4835,9 @@ var LWC = (function (exports) {
4836
4835
 
4837
4836
  if (isSyntheticShadowDefined) {
4838
4837
  if (shadowMode === 1
4839
- /* Synthetic */
4838
+ /* ShadowMode.Synthetic */
4840
4839
  || renderMode === 0
4841
- /* Light */
4840
+ /* RenderMode.Light */
4842
4841
  ) {
4843
4842
  elm[KEY__SHADOW_RESOLVER] = renderRoot[KEY__SHADOW_RESOLVER];
4844
4843
  }
@@ -4905,13 +4904,13 @@ var LWC = (function (exports) {
4905
4904
  setScopeTokenClassIfNecessary(elm, owner, renderer);
4906
4905
 
4907
4906
  if (owner.shadowMode === 1
4908
- /* Synthetic */
4907
+ /* ShadowMode.Synthetic */
4909
4908
  ) {
4910
4909
  var context = vnode.data.context;
4911
4910
  var stylesheetToken = owner.context.stylesheetToken;
4912
4911
 
4913
4912
  if (!isUndefined$1(context) && !isUndefined$1(context.lwc) && context.lwc.dom === "manual"
4914
- /* Manual */
4913
+ /* LwcDomMode.Manual */
4915
4914
  ) {
4916
4915
  // this element will now accept any manual content inserted into it
4917
4916
  observeElementChildNodes(elm);
@@ -4927,10 +4926,10 @@ var LWC = (function (exports) {
4927
4926
  if (process.env.NODE_ENV !== 'production') {
4928
4927
  var _context = vnode.data.context;
4929
4928
  var isPortal = !isUndefined$1(_context) && !isUndefined$1(_context.lwc) && _context.lwc.dom === "manual"
4930
- /* Manual */
4929
+ /* LwcDomMode.Manual */
4931
4930
  ;
4932
4931
  var isLight = owner.renderMode === 0
4933
- /* Light */
4932
+ /* RenderMode.Light */
4934
4933
  ;
4935
4934
  patchElementWithRestrictions(elm, {
4936
4935
  isPortal: isPortal,
@@ -4956,9 +4955,9 @@ var LWC = (function (exports) {
4956
4955
  shadowMode = vm.shadowMode;
4957
4956
 
4958
4957
  if (shadowMode === 1
4959
- /* Synthetic */
4958
+ /* ShadowMode.Synthetic */
4960
4959
  || renderMode === 0
4961
- /* Light */
4960
+ /* RenderMode.Light */
4962
4961
  ) {
4963
4962
  // slow path
4964
4963
  allocateInSlot(vm, children); // save the allocated children in case this vnode is reused.
@@ -4985,7 +4984,7 @@ var LWC = (function (exports) {
4985
4984
  setScopeTokenClassIfNecessary(elm, owner, renderer);
4986
4985
 
4987
4986
  if (owner.shadowMode === 1
4988
- /* Synthetic */
4987
+ /* ShadowMode.Synthetic */
4989
4988
  ) {
4990
4989
  var stylesheetToken = owner.context.stylesheetToken; // when running in synthetic shadow mode, we need to set the shadowToken value
4991
4990
  // into each element from the template, so they can be styled accordingly.
@@ -5257,7 +5256,7 @@ var LWC = (function (exports) {
5257
5256
  function st(fragment, key) {
5258
5257
  return {
5259
5258
  type: 4
5260
- /* Static */
5259
+ /* VNodeType.Static */
5261
5260
  ,
5262
5261
  sel: undefined,
5263
5262
  key: key,
@@ -5296,7 +5295,7 @@ var LWC = (function (exports) {
5296
5295
  var key = data.key;
5297
5296
  return {
5298
5297
  type: 2
5299
- /* Element */
5298
+ /* VNodeType.Element */
5300
5299
  ,
5301
5300
  sel: sel,
5302
5301
  data: data,
@@ -5342,14 +5341,14 @@ var LWC = (function (exports) {
5342
5341
  shadowMode = vmBeingRendered.shadowMode;
5343
5342
 
5344
5343
  if (renderMode === 0
5345
- /* Light */
5344
+ /* RenderMode.Light */
5346
5345
  ) {
5347
5346
  sc(children);
5348
5347
  return children;
5349
5348
  }
5350
5349
 
5351
5350
  if (shadowMode === 1
5352
- /* Synthetic */
5351
+ /* ShadowMode.Synthetic */
5353
5352
  ) {
5354
5353
  // TODO [#1276]: compiler should give us some sort of indicator when a vnodes collection is dynamic
5355
5354
  sc(children);
@@ -5389,7 +5388,7 @@ var LWC = (function (exports) {
5389
5388
  var elm, aChildren, vm;
5390
5389
  var vnode = {
5391
5390
  type: 3
5392
- /* CustomElement */
5391
+ /* VNodeType.CustomElement */
5393
5392
  ,
5394
5393
  sel: sel,
5395
5394
  data: data,
@@ -5521,7 +5520,7 @@ var LWC = (function (exports) {
5521
5520
  var sel, key, elm;
5522
5521
  return {
5523
5522
  type: 0
5524
- /* Text */
5523
+ /* VNodeType.Text */
5525
5524
  ,
5526
5525
  sel: sel,
5527
5526
  text: text,
@@ -5536,7 +5535,7 @@ var LWC = (function (exports) {
5536
5535
  var sel, key, elm;
5537
5536
  return {
5538
5537
  type: 1
5539
- /* Comment */
5538
+ /* VNodeType.Comment */
5540
5539
  ,
5541
5540
  sel: sel,
5542
5541
  text: text,
@@ -5601,7 +5600,7 @@ var LWC = (function (exports) {
5601
5600
  shadowMode = vmBeingRendered.shadowMode;
5602
5601
 
5603
5602
  if (shadowMode === 1
5604
- /* Synthetic */
5603
+ /* ShadowMode.Synthetic */
5605
5604
  ) {
5606
5605
  return StringReplace.call(id, /\S+/g, function (id) {
5607
5606
  return "".concat(id, "-").concat(idx);
@@ -5634,7 +5633,7 @@ var LWC = (function (exports) {
5634
5633
  shadowMode = vmBeingRendered.shadowMode; // Apply transformation only for fragment-only-urls, and only in shadow DOM
5635
5634
 
5636
5635
  if (shadowMode === 1
5637
- /* Synthetic */
5636
+ /* ShadowMode.Synthetic */
5638
5637
  && /^#/.test(url)) {
5639
5638
  return "".concat(url, "-").concat(idx);
5640
5639
  }
@@ -5791,9 +5790,9 @@ var LWC = (function (exports) {
5791
5790
  var newStylesheets = template.stylesheets,
5792
5791
  newStylesheetToken = template.stylesheetToken;
5793
5792
  var isSyntheticShadow = renderMode === 1
5794
- /* Shadow */
5793
+ /* RenderMode.Shadow */
5795
5794
  && shadowMode === 1
5796
- /* Synthetic */
5795
+ /* ShadowMode.Synthetic */
5797
5796
  ;
5798
5797
  var hasScopedStyles = context.hasScopedStyles;
5799
5798
  var newToken;
@@ -5861,26 +5860,26 @@ var LWC = (function (exports) {
5861
5860
  var isScopedCss = stylesheet[KEY__SCOPED_CSS]; // Apply the scope token only if the stylesheet itself is scoped, or if we're rendering synthetic shadow.
5862
5861
 
5863
5862
  var scopeToken = isScopedCss || vm.shadowMode === 1
5864
- /* Synthetic */
5863
+ /* ShadowMode.Synthetic */
5865
5864
  && vm.renderMode === 1
5866
- /* Shadow */
5865
+ /* RenderMode.Shadow */
5867
5866
  ? stylesheetToken : undefined; // Use the actual `:host` selector if we're rendering global CSS for light DOM, or if we're rendering
5868
5867
  // native shadow DOM. Synthetic shadow DOM never uses `:host`.
5869
5868
 
5870
5869
  var useActualHostSelector = vm.renderMode === 0
5871
- /* Light */
5870
+ /* RenderMode.Light */
5872
5871
  ? !isScopedCss : vm.shadowMode === 0
5873
- /* Native */
5872
+ /* ShadowMode.Native */
5874
5873
  ; // Use the native :dir() pseudoclass only in native shadow DOM. Otherwise, in synthetic shadow,
5875
5874
  // we use an attribute selector on the host to simulate :dir().
5876
5875
 
5877
5876
  var useNativeDirPseudoclass = void 0;
5878
5877
 
5879
5878
  if (vm.renderMode === 1
5880
- /* Shadow */
5879
+ /* RenderMode.Shadow */
5881
5880
  ) {
5882
5881
  useNativeDirPseudoclass = vm.shadowMode === 0
5883
- /* Native */
5882
+ /* ShadowMode.Native */
5884
5883
  ;
5885
5884
  } else {
5886
5885
  // Light DOM components should only render `[dir]` if they're inside of a synthetic shadow root.
@@ -5891,7 +5890,7 @@ var LWC = (function (exports) {
5891
5890
  }
5892
5891
 
5893
5892
  useNativeDirPseudoclass = isNull(root) || root.shadowMode === 0
5894
- /* Native */
5893
+ /* ShadowMode.Native */
5895
5894
  ;
5896
5895
  }
5897
5896
 
@@ -5922,7 +5921,7 @@ var LWC = (function (exports) {
5922
5921
 
5923
5922
  while (!isNull(owner)) {
5924
5923
  if (owner.renderMode === 1
5925
- /* Shadow */
5924
+ /* RenderMode.Shadow */
5926
5925
  ) {
5927
5926
  return owner;
5928
5927
  }
@@ -5937,7 +5936,7 @@ var LWC = (function (exports) {
5937
5936
  var owner = getNearestShadowComponent(vm);
5938
5937
 
5939
5938
  if (!isNull(owner) && owner.shadowMode === 1
5940
- /* Synthetic */
5939
+ /* ShadowMode.Synthetic */
5941
5940
  ) {
5942
5941
  // Synthetic-within-native is impossible. So if the nearest shadow component is
5943
5942
  // synthetic, we know we won't find a native component if we go any further.
@@ -5955,9 +5954,9 @@ var LWC = (function (exports) {
5955
5954
  insertStylesheet = _vm$renderer2.insertStylesheet;
5956
5955
 
5957
5956
  if (renderMode === 1
5958
- /* Shadow */
5957
+ /* RenderMode.Shadow */
5959
5958
  && shadowMode === 1
5960
- /* Synthetic */
5959
+ /* ShadowMode.Synthetic */
5961
5960
  ) {
5962
5961
  for (var _i17 = 0; _i17 < stylesheets.length; _i17++) {
5963
5962
  insertStylesheet(stylesheets[_i17]);
@@ -6054,7 +6053,7 @@ var LWC = (function (exports) {
6054
6053
 
6055
6054
  if (isProfilerEnabled) {
6056
6055
  currentDispatcher(opId, 0
6057
- /* Start */
6056
+ /* Phase.Start */
6058
6057
  , vm.tagName, vm.idx, vm.renderMode, vm.shadowMode);
6059
6058
  }
6060
6059
  }
@@ -6068,7 +6067,7 @@ var LWC = (function (exports) {
6068
6067
 
6069
6068
  if (isProfilerEnabled) {
6070
6069
  currentDispatcher(opId, 1
6071
- /* Stop */
6070
+ /* Phase.Stop */
6072
6071
  , vm.tagName, vm.idx, vm.renderMode, vm.shadowMode);
6073
6072
  }
6074
6073
  }
@@ -6082,7 +6081,7 @@ var LWC = (function (exports) {
6082
6081
 
6083
6082
  if (isProfilerEnabled) {
6084
6083
  currentDispatcher(opId, 0
6085
- /* Start */
6084
+ /* Phase.Start */
6086
6085
  , vm === null || vm === void 0 ? void 0 : vm.tagName, vm === null || vm === void 0 ? void 0 : vm.idx, vm === null || vm === void 0 ? void 0 : vm.renderMode, vm === null || vm === void 0 ? void 0 : vm.shadowMode);
6087
6086
  }
6088
6087
  }
@@ -6096,7 +6095,7 @@ var LWC = (function (exports) {
6096
6095
 
6097
6096
  if (isProfilerEnabled) {
6098
6097
  currentDispatcher(opId, 1
6099
- /* Stop */
6098
+ /* Phase.Stop */
6100
6099
  , vm === null || vm === void 0 ? void 0 : vm.tagName, vm === null || vm === void 0 ? void 0 : vm.idx, vm === null || vm === void 0 ? void 0 : vm.renderMode, vm === null || vm === void 0 ? void 0 : vm.shadowMode);
6101
6100
  }
6102
6101
  }
@@ -6130,12 +6129,12 @@ var LWC = (function (exports) {
6130
6129
  slots = _html$slots === void 0 ? EmptyArray : _html$slots;
6131
6130
 
6132
6131
  for (var slotName in cmpSlots) {
6133
- // eslint-disable-next-line lwc-internal/no-production-assert
6132
+ // eslint-disable-next-line @lwc/lwc-internal/no-production-assert
6134
6133
  assert.isTrue(isArray$1(cmpSlots[slotName]), "Slots can only be set to an array, instead received ".concat(toString$1(cmpSlots[slotName]), " for slot \"").concat(slotName, "\" in ").concat(vm, "."));
6135
6134
 
6136
6135
  if (slotName !== '' && ArrayIndexOf.call(slots, slotName) === -1) {
6137
6136
  // TODO [#1297]: this should never really happen because the compiler should always validate
6138
- // eslint-disable-next-line lwc-internal/no-production-assert
6137
+ // eslint-disable-next-line @lwc/lwc-internal/no-production-assert
6139
6138
  logError("Ignoring unknown provided slot name \"".concat(slotName, "\" in ").concat(vm, ". Check for a typo on the slot attribute."), vm);
6140
6139
  }
6141
6140
  }
@@ -6145,7 +6144,7 @@ var LWC = (function (exports) {
6145
6144
  if (template === defaultEmptyTemplate) return;
6146
6145
 
6147
6146
  if (vm.renderMode === 0
6148
- /* Light */
6147
+ /* RenderMode.Light */
6149
6148
  ) {
6150
6149
  assert.isTrue(template.renderMode === 'light', "Light DOM components can't render shadow DOM templates. Add an 'lwc:render-mode=\"light\"' directive to the root template tag of ".concat(getComponentTag(vm), "."));
6151
6150
  } else {
@@ -6170,19 +6169,19 @@ var LWC = (function (exports) {
6170
6169
 
6171
6170
  var hasStyleToken = !isUndefined$1(stylesheetToken);
6172
6171
  var isSyntheticShadow = shadowMode === 1
6173
- /* Synthetic */
6172
+ /* ShadowMode.Synthetic */
6174
6173
  ;
6175
6174
  var cacheKey = 0;
6176
6175
 
6177
6176
  if (hasStyleToken && hasScopedStyles) {
6178
6177
  cacheKey |= 1
6179
- /* HAS_SCOPED_STYLE */
6178
+ /* FragmentCache.HAS_SCOPED_STYLE */
6180
6179
  ;
6181
6180
  }
6182
6181
 
6183
6182
  if (hasStyleToken && isSyntheticShadow) {
6184
6183
  cacheKey |= 2
6185
- /* SHADOW_MODE_SYNTHETIC */
6184
+ /* FragmentCache.SHADOW_MODE_SYNTHETIC */
6186
6185
  ;
6187
6186
  }
6188
6187
 
@@ -6254,7 +6253,7 @@ var LWC = (function (exports) {
6254
6253
  // pre
6255
6254
  vmBeingRendered = vm;
6256
6255
  logOperationStart(1
6257
- /* Render */
6256
+ /* OperationId.Render */
6258
6257
  , vm);
6259
6258
  }, function () {
6260
6259
  // job
@@ -6321,7 +6320,7 @@ var LWC = (function (exports) {
6321
6320
  isUpdatingTemplate = isUpdatingTemplateInception;
6322
6321
  vmBeingRendered = vmOfTemplateBeingUpdatedInception;
6323
6322
  logOperationEnd(1
6324
- /* Render */
6323
+ /* OperationId.Render */
6325
6324
  , vm);
6326
6325
  });
6327
6326
 
@@ -6373,7 +6372,7 @@ var LWC = (function (exports) {
6373
6372
  var vmBeingConstructedInception = vmBeingConstructed;
6374
6373
  var error;
6375
6374
  logOperationStart(0
6376
- /* Constructor */
6375
+ /* OperationId.Constructor */
6377
6376
  , vm);
6378
6377
  vmBeingConstructed = vm;
6379
6378
  /**
@@ -6396,7 +6395,7 @@ var LWC = (function (exports) {
6396
6395
  error = Object(e);
6397
6396
  } finally {
6398
6397
  logOperationEnd(0
6399
- /* Constructor */
6398
+ /* OperationId.Constructor */
6400
6399
  , vm);
6401
6400
  vmBeingConstructed = vmBeingConstructedInception;
6402
6401
 
@@ -6619,12 +6618,12 @@ var LWC = (function (exports) {
6619
6618
  function connectRootElement(elm) {
6620
6619
  var vm = getAssociatedVM(elm);
6621
6620
  logGlobalOperationStart(7
6622
- /* GlobalHydrate */
6621
+ /* OperationId.GlobalHydrate */
6623
6622
  , vm); // Usually means moving the element from one place to another, which is observable via
6624
6623
  // life-cycle hooks.
6625
6624
 
6626
6625
  if (vm.state === 1
6627
- /* connected */
6626
+ /* VMState.connected */
6628
6627
  ) {
6629
6628
  disconnectRootElement(elm);
6630
6629
  }
@@ -6632,7 +6631,7 @@ var LWC = (function (exports) {
6632
6631
  runConnectedCallback(vm);
6633
6632
  rehydrate(vm);
6634
6633
  logGlobalOperationEnd(7
6635
- /* GlobalHydrate */
6634
+ /* OperationId.GlobalHydrate */
6636
6635
  , vm);
6637
6636
  }
6638
6637
 
@@ -6651,7 +6650,7 @@ var LWC = (function (exports) {
6651
6650
  var state = vm.state;
6652
6651
 
6653
6652
  if (state !== 2
6654
- /* disconnected */
6653
+ /* VMState.disconnected */
6655
6654
  ) {
6656
6655
  var oar = vm.oar,
6657
6656
  tro = vm.tro; // Making sure that any observing record will not trigger the rehydrated on this vm
@@ -6678,9 +6677,9 @@ var LWC = (function (exports) {
6678
6677
  function removeVM(vm) {
6679
6678
  if (process.env.NODE_ENV !== 'production') {
6680
6679
  assert.isTrue(vm.state === 1
6681
- /* connected */
6680
+ /* VMState.connected */
6682
6681
  || vm.state === 2
6683
- /* disconnected */
6682
+ /* VMState.disconnected */
6684
6683
  , "".concat(vm, " must have been connected."));
6685
6684
  }
6686
6685
 
@@ -6691,7 +6690,7 @@ var LWC = (function (exports) {
6691
6690
  var ancestor = vm.owner;
6692
6691
 
6693
6692
  while (!isNull(ancestor) && ancestor.renderMode === 0
6694
- /* Light */
6693
+ /* RenderMode.Light */
6695
6694
  ) {
6696
6695
  ancestor = ancestor.owner;
6697
6696
  }
@@ -6710,7 +6709,7 @@ var LWC = (function (exports) {
6710
6709
  def: def,
6711
6710
  idx: idx++,
6712
6711
  state: 0
6713
- /* created */
6712
+ /* VMState.created */
6714
6713
  ,
6715
6714
  isScheduled: false,
6716
6715
  isDirty: true,
@@ -6759,7 +6758,7 @@ var LWC = (function (exports) {
6759
6758
 
6760
6759
  if (runtimeFlags.ENABLE_FORCE_NATIVE_SHADOW_MODE_FOR_TEST) {
6761
6760
  vm.shadowMode = 0
6762
- /* Native */
6761
+ /* ShadowMode.Native */
6763
6762
  ;
6764
6763
  }
6765
6764
  } // Create component instance associated to the vm and the element.
@@ -6782,57 +6781,57 @@ var LWC = (function (exports) {
6782
6781
 
6783
6782
  if (isSyntheticShadowDefined) {
6784
6783
  if (def.renderMode === 0
6785
- /* Light */
6784
+ /* RenderMode.Light */
6786
6785
  ) {
6787
6786
  // ShadowMode.Native implies "not synthetic shadow" which is consistent with how
6788
6787
  // everything defaults to native when the synthetic shadow polyfill is unavailable.
6789
6788
  shadowMode = 0
6790
- /* Native */
6789
+ /* ShadowMode.Native */
6791
6790
  ;
6792
6791
  } else if (isNativeShadowDefined) {
6793
6792
  // Not combined with above condition because @lwc/features only supports identifiers in
6794
6793
  // the if-condition.
6795
6794
  if (runtimeFlags.ENABLE_MIXED_SHADOW_MODE) {
6796
6795
  if (def.shadowSupportMode === "any"
6797
- /* Any */
6796
+ /* ShadowSupportMode.Any */
6798
6797
  ) {
6799
6798
  shadowMode = 0
6800
- /* Native */
6799
+ /* ShadowMode.Native */
6801
6800
  ;
6802
6801
  } else {
6803
6802
  var shadowAncestor = getNearestShadowAncestor(vm);
6804
6803
 
6805
6804
  if (!isNull(shadowAncestor) && shadowAncestor.shadowMode === 0
6806
- /* Native */
6805
+ /* ShadowMode.Native */
6807
6806
  ) {
6808
6807
  // Transitive support for native Shadow DOM. A component in native mode
6809
6808
  // transitively opts all of its descendants into native.
6810
6809
  shadowMode = 0
6811
- /* Native */
6810
+ /* ShadowMode.Native */
6812
6811
  ;
6813
6812
  } else {
6814
6813
  // Synthetic if neither this component nor any of its ancestors are configured
6815
6814
  // to be native.
6816
6815
  shadowMode = 1
6817
- /* Synthetic */
6816
+ /* ShadowMode.Synthetic */
6818
6817
  ;
6819
6818
  }
6820
6819
  }
6821
6820
  } else {
6822
6821
  shadowMode = 1
6823
- /* Synthetic */
6822
+ /* ShadowMode.Synthetic */
6824
6823
  ;
6825
6824
  }
6826
6825
  } else {
6827
6826
  // Synthetic if there is no native Shadow DOM support.
6828
6827
  shadowMode = 1
6829
- /* Synthetic */
6828
+ /* ShadowMode.Synthetic */
6830
6829
  ;
6831
6830
  }
6832
6831
  } else {
6833
6832
  // Native if the synthetic shadow polyfill is unavailable.
6834
6833
  shadowMode = 0
6835
- /* Native */
6834
+ /* ShadowMode.Native */
6836
6835
  ;
6837
6836
  }
6838
6837
 
@@ -6892,7 +6891,7 @@ var LWC = (function (exports) {
6892
6891
  runWithBoundaryProtection(vm, vm, function () {
6893
6892
  // pre
6894
6893
  logOperationStart(2
6895
- /* Patch */
6894
+ /* OperationId.Patch */
6896
6895
  , vm);
6897
6896
  }, function () {
6898
6897
  // job
@@ -6900,14 +6899,14 @@ var LWC = (function (exports) {
6900
6899
  }, function () {
6901
6900
  // post
6902
6901
  logOperationEnd(2
6903
- /* Patch */
6902
+ /* OperationId.Patch */
6904
6903
  , vm);
6905
6904
  });
6906
6905
  }
6907
6906
  }
6908
6907
 
6909
6908
  if (vm.state === 1
6910
- /* connected */
6909
+ /* VMState.connected */
6911
6910
  ) {
6912
6911
  // If the element is connected, that means connectedCallback was already issued, and
6913
6912
  // any successive rendering should finish with the call to renderedCallback, otherwise
@@ -6933,11 +6932,11 @@ var LWC = (function (exports) {
6933
6932
 
6934
6933
  if (!isUndefined$1(renderedCallback)) {
6935
6934
  logOperationStart(4
6936
- /* RenderedCallback */
6935
+ /* OperationId.RenderedCallback */
6937
6936
  , vm);
6938
6937
  invokeComponentCallback(vm, renderedCallback);
6939
6938
  logOperationEnd(4
6940
- /* RenderedCallback */
6939
+ /* OperationId.RenderedCallback */
6941
6940
  , vm);
6942
6941
  }
6943
6942
  }
@@ -6946,7 +6945,7 @@ var LWC = (function (exports) {
6946
6945
 
6947
6946
  function flushRehydrationQueue() {
6948
6947
  logGlobalOperationStart(8
6949
- /* GlobalRehydrate */
6948
+ /* OperationId.GlobalRehydrate */
6950
6949
  );
6951
6950
 
6952
6951
  if (process.env.NODE_ENV !== 'production') {
@@ -6975,7 +6974,7 @@ var LWC = (function (exports) {
6975
6974
 
6976
6975
 
6977
6976
  logGlobalOperationEnd(8
6978
- /* GlobalRehydrate */
6977
+ /* OperationId.GlobalRehydrate */
6979
6978
  ); // re-throwing the original error will break the current tick, but since the next tick is
6980
6979
  // already scheduled, it should continue patching the rest.
6981
6980
 
@@ -6984,7 +6983,7 @@ var LWC = (function (exports) {
6984
6983
  }
6985
6984
 
6986
6985
  logGlobalOperationEnd(8
6987
- /* GlobalRehydrate */
6986
+ /* OperationId.GlobalRehydrate */
6988
6987
  );
6989
6988
  }
6990
6989
 
@@ -6992,13 +6991,13 @@ var LWC = (function (exports) {
6992
6991
  var state = vm.state;
6993
6992
 
6994
6993
  if (state === 1
6995
- /* connected */
6994
+ /* VMState.connected */
6996
6995
  ) {
6997
6996
  return; // nothing to do since it was already connected
6998
6997
  }
6999
6998
 
7000
6999
  vm.state = 1
7001
- /* connected */
7000
+ /* VMState.connected */
7002
7001
  ; // reporting connection
7003
7002
 
7004
7003
  var connected = Services.connected;
@@ -7015,11 +7014,11 @@ var LWC = (function (exports) {
7015
7014
 
7016
7015
  if (!isUndefined$1(connectedCallback)) {
7017
7016
  logOperationStart(3
7018
- /* ConnectedCallback */
7017
+ /* OperationId.ConnectedCallback */
7019
7018
  , vm);
7020
7019
  invokeComponentCallback(vm, connectedCallback);
7021
7020
  logOperationEnd(3
7022
- /* ConnectedCallback */
7021
+ /* OperationId.ConnectedCallback */
7023
7022
  , vm);
7024
7023
  }
7025
7024
  }
@@ -7031,7 +7030,7 @@ var LWC = (function (exports) {
7031
7030
  function runDisconnectedCallback(vm) {
7032
7031
  if (process.env.NODE_ENV !== 'production') {
7033
7032
  assert.isTrue(vm.state !== 2
7034
- /* disconnected */
7033
+ /* VMState.disconnected */
7035
7034
  , "".concat(vm, " must be inserted."));
7036
7035
  }
7037
7036
 
@@ -7044,7 +7043,7 @@ var LWC = (function (exports) {
7044
7043
  }
7045
7044
 
7046
7045
  vm.state = 2
7047
- /* disconnected */
7046
+ /* VMState.disconnected */
7048
7047
  ; // reporting disconnection
7049
7048
 
7050
7049
  var disconnected = Services.disconnected;
@@ -7061,11 +7060,11 @@ var LWC = (function (exports) {
7061
7060
 
7062
7061
  if (!isUndefined$1(disconnectedCallback)) {
7063
7062
  logOperationStart(5
7064
- /* DisconnectedCallback */
7063
+ /* OperationId.DisconnectedCallback */
7065
7064
  , vm);
7066
7065
  invokeComponentCallback(vm, disconnectedCallback);
7067
7066
  logOperationEnd(5
7068
- /* DisconnectedCallback */
7067
+ /* OperationId.DisconnectedCallback */
7069
7068
  , vm);
7070
7069
  }
7071
7070
  }
@@ -7115,13 +7114,13 @@ var LWC = (function (exports) {
7115
7114
  if (!isNull(vnode) && !isUndefined$1(vnode.elm)) {
7116
7115
  switch (vnode.type) {
7117
7116
  case 2
7118
- /* Element */
7117
+ /* VNodeType.Element */
7119
7118
  :
7120
7119
  recursivelyDisconnectChildren(vnode.children);
7121
7120
  break;
7122
7121
 
7123
7122
  case 3
7124
- /* CustomElement */
7123
+ /* VNodeType.CustomElement */
7125
7124
  :
7126
7125
  {
7127
7126
  var vm = getAssociatedVM(vnode.elm);
@@ -7205,13 +7204,13 @@ var LWC = (function (exports) {
7205
7204
  resetComponentRoot(vm); // remove offenders
7206
7205
 
7207
7206
  logOperationStart(6
7208
- /* ErrorCallback */
7207
+ /* OperationId.ErrorCallback */
7209
7208
  , vm); // error boundaries must have an ErrorCallback
7210
7209
 
7211
7210
  var errorCallback = errorBoundaryVm.def.errorCallback;
7212
7211
  invokeComponentCallback(errorBoundaryVm, errorCallback, [error, error.wcStack]);
7213
7212
  logOperationEnd(6
7214
- /* ErrorCallback */
7213
+ /* OperationId.ErrorCallback */
7215
7214
  , vm);
7216
7215
  }
7217
7216
  }
@@ -7321,7 +7320,7 @@ var LWC = (function (exports) {
7321
7320
  var config;
7322
7321
  ro.observe(function () {
7323
7322
  return config = configCallback(component);
7324
- }); // eslint-disable-next-line lwc-internal/no-invalid-todo
7323
+ }); // eslint-disable-next-line @lwc/lwc-internal/no-invalid-todo
7325
7324
  // TODO: dev-mode validation of config based on the adapter.configSchema
7326
7325
  // @ts-ignore it is assigned in the observe() callback
7327
7326
 
@@ -7356,7 +7355,7 @@ var LWC = (function (exports) {
7356
7355
  // guarantee that the linkage can be forged.
7357
7356
  var contextRegistrationEvent = new WireContextRegistrationEvent(adapterContextToken, {
7358
7357
  setNewContext: function setNewContext(newContext) {
7359
- // eslint-disable-next-line lwc-internal/no-invalid-todo
7358
+ // eslint-disable-next-line @lwc/lwc-internal/no-invalid-todo
7360
7359
  // TODO: dev-mode validation of config based on the adapter.contextSchema
7361
7360
  callbackWhenContextIsReady(newContext);
7362
7361
  },
@@ -7416,7 +7415,7 @@ var LWC = (function (exports) {
7416
7415
  // (ever), while context can have identity
7417
7416
 
7418
7417
  if (vm.state === 1
7419
- /* connected */
7418
+ /* VMState.connected */
7420
7419
  ) {
7421
7420
  computeConfigAndUpdate();
7422
7421
  }
@@ -7643,34 +7642,34 @@ var LWC = (function (exports) {
7643
7642
 
7644
7643
  switch (vnode.type) {
7645
7644
  case 0
7646
- /* Text */
7645
+ /* VNodeType.Text */
7647
7646
  :
7648
7647
  // VText has no special capability, fallback to the owner's renderer
7649
7648
  hydratedNode = hydrateText(node, vnode, renderer);
7650
7649
  break;
7651
7650
 
7652
7651
  case 1
7653
- /* Comment */
7652
+ /* VNodeType.Comment */
7654
7653
  :
7655
7654
  // VComment has no special capability, fallback to the owner's renderer
7656
7655
  hydratedNode = hydrateComment(node, vnode, renderer);
7657
7656
  break;
7658
7657
 
7659
7658
  case 4
7660
- /* Static */
7659
+ /* VNodeType.Static */
7661
7660
  :
7662
7661
  // VStatic are cacheable and cannot have custom renderer associated to them
7663
7662
  hydratedNode = hydrateStaticElement(node, vnode, renderer);
7664
7663
  break;
7665
7664
 
7666
7665
  case 2
7667
- /* Element */
7666
+ /* VNodeType.Element */
7668
7667
  :
7669
7668
  hydratedNode = hydrateElement(node, vnode, (_a = vnode.data.renderer) !== null && _a !== void 0 ? _a : renderer);
7670
7669
  break;
7671
7670
 
7672
7671
  case 3
7673
- /* CustomElement */
7672
+ /* VNodeType.CustomElement */
7674
7673
  :
7675
7674
  hydratedNode = hydrateCustomElement(node, vnode, (_b = vnode.data.renderer) !== null && _b !== void 0 ? _b : renderer);
7676
7675
  break;
@@ -7683,7 +7682,7 @@ var LWC = (function (exports) {
7683
7682
  var _a;
7684
7683
 
7685
7684
  if (!hasCorrectNodeType(vnode, node, 3
7686
- /* TEXT */
7685
+ /* EnvNodeTypes.TEXT */
7687
7686
  , renderer)) {
7688
7687
  return handleMismatch(node, vnode, renderer);
7689
7688
  }
@@ -7708,7 +7707,7 @@ var LWC = (function (exports) {
7708
7707
  var _a;
7709
7708
 
7710
7709
  if (!hasCorrectNodeType(vnode, node, 8
7711
- /* COMMENT */
7710
+ /* EnvNodeTypes.COMMENT */
7712
7711
  , renderer)) {
7713
7712
  return handleMismatch(node, vnode, renderer);
7714
7713
  }
@@ -7740,7 +7739,7 @@ var LWC = (function (exports) {
7740
7739
 
7741
7740
  function hydrateElement(elm, vnode, renderer) {
7742
7741
  if (!hasCorrectNodeType(vnode, elm, 1
7743
- /* ELEMENT */
7742
+ /* EnvNodeTypes.ELEMENT */
7744
7743
  , renderer) || !isMatchingElement(vnode, elm, renderer)) {
7745
7744
  return handleMismatch(elm, vnode, renderer);
7746
7745
  }
@@ -7749,7 +7748,7 @@ var LWC = (function (exports) {
7749
7748
  var owner = vnode.owner;
7750
7749
  var context = vnode.data.context;
7751
7750
  var isDomManual = Boolean(!isUndefined$1(context) && !isUndefined$1(context.lwc) && context.lwc.dom === "manual"
7752
- /* Manual */
7751
+ /* LwcDomMode.Manual */
7753
7752
  );
7754
7753
 
7755
7754
  if (isDomManual) {
@@ -7784,7 +7783,7 @@ var LWC = (function (exports) {
7784
7783
 
7785
7784
  function hydrateCustomElement(elm, vnode, renderer) {
7786
7785
  if (!hasCorrectNodeType(vnode, elm, 1
7787
- /* ELEMENT */
7786
+ /* EnvNodeTypes.ELEMENT */
7788
7787
  , renderer) || !isMatchingElement(vnode, elm, renderer)) {
7789
7788
  return handleMismatch(elm, vnode, renderer);
7790
7789
  }
@@ -7806,14 +7805,14 @@ var LWC = (function (exports) {
7806
7805
 
7807
7806
  if (process.env.NODE_ENV !== 'production') {
7808
7807
  assert.isTrue(vm.state === 0
7809
- /* created */
7808
+ /* VMState.created */
7810
7809
  , "".concat(vm, " cannot be recycled."));
7811
7810
  }
7812
7811
 
7813
7812
  runConnectedCallback(vm);
7814
7813
 
7815
7814
  if (vm.renderMode !== 0
7816
- /* Light */
7815
+ /* RenderMode.Light */
7817
7816
  ) {
7818
7817
  var _getFirstChild2 = renderer.getFirstChild; // VM is not rendering in Light DOM, we can proceed and hydrate the slotted content.
7819
7818
  // Note: for Light DOM, this is handled while hydrating the VM
@@ -8049,10 +8048,10 @@ var LWC = (function (exports) {
8049
8048
  getAttribute = renderer.getAttribute;
8050
8049
 
8051
8050
  if (getProperty(client, 'nodeType') === 3
8052
- /* TEXT */
8051
+ /* EnvNodeTypes.TEXT */
8053
8052
  ) {
8054
8053
  if (!hasCorrectNodeType(vnode, ssr, 3
8055
- /* TEXT */
8054
+ /* EnvNodeTypes.TEXT */
8056
8055
  , renderer)) {
8057
8056
  return false;
8058
8057
  }
@@ -8061,10 +8060,10 @@ var LWC = (function (exports) {
8061
8060
  }
8062
8061
 
8063
8062
  if (getProperty(client, 'nodeType') === 8
8064
- /* COMMENT */
8063
+ /* EnvNodeTypes.COMMENT */
8065
8064
  ) {
8066
8065
  if (!hasCorrectNodeType(vnode, ssr, 8
8067
- /* COMMENT */
8066
+ /* EnvNodeTypes.COMMENT */
8068
8067
  , renderer)) {
8069
8068
  return false;
8070
8069
  }
@@ -8073,7 +8072,7 @@ var LWC = (function (exports) {
8073
8072
  }
8074
8073
 
8075
8074
  if (!hasCorrectNodeType(vnode, ssr, 1
8076
- /* ELEMENT */
8075
+ /* EnvNodeTypes.ELEMENT */
8077
8076
  , renderer)) {
8078
8077
  return false;
8079
8078
  }
@@ -8269,7 +8268,7 @@ var LWC = (function (exports) {
8269
8268
 
8270
8269
  return ctor;
8271
8270
  }
8272
- /* version: 2.17.0 */
8271
+ /* version: 2.19.1 */
8273
8272
 
8274
8273
  /*
8275
8274
  * Copyright (c) 2018, salesforce.com, inc.
@@ -8906,7 +8905,7 @@ var LWC = (function (exports) {
8906
8905
  * For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/MIT
8907
8906
  */
8908
8907
  // TODO [#2472]: Remove this workaround when appropriate.
8909
- // eslint-disable-next-line lwc-internal/no-global-node
8908
+ // eslint-disable-next-line @lwc/lwc-internal/no-global-node
8910
8909
 
8911
8910
 
8912
8911
  var _Node$1 = Node;
@@ -9016,7 +9015,7 @@ var LWC = (function (exports) {
9016
9015
  * For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/MIT
9017
9016
  */
9018
9017
  // TODO [#2472]: Remove this workaround when appropriate.
9019
- // eslint-disable-next-line lwc-internal/no-global-node
9018
+ // eslint-disable-next-line @lwc/lwc-internal/no-global-node
9020
9019
 
9021
9020
 
9022
9021
  var _Node = Node;
@@ -9089,7 +9088,7 @@ var LWC = (function (exports) {
9089
9088
  });
9090
9089
  freeze(LightningElement);
9091
9090
  seal(LightningElement.prototype);
9092
- /* version: 2.17.0 */
9091
+ /* version: 2.19.1 */
9093
9092
 
9094
9093
  exports.LightningElement = LightningElement;
9095
9094
  exports.__unstable__ProfilerControl = profilerControl;