@vue/compat 3.4.29 → 3.4.31

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/vue.cjs.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @vue/compat v3.4.29
2
+ * @vue/compat v3.4.31
3
3
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
4
4
  * @license MIT
5
5
  **/
@@ -378,11 +378,14 @@ function looseIndexOf(arr, val) {
378
378
  return arr.findIndex((item) => looseEqual(item, val));
379
379
  }
380
380
 
381
+ const isRef$1 = (val) => {
382
+ return !!(val && val.__v_isRef === true);
383
+ };
381
384
  const toDisplayString = (val) => {
382
- return isString(val) ? val : val == null ? "" : isArray(val) || isObject(val) && (val.toString === objectToString || !isFunction(val.toString)) ? JSON.stringify(val, replacer, 2) : String(val);
385
+ return isString(val) ? val : val == null ? "" : isArray(val) || isObject(val) && (val.toString === objectToString || !isFunction(val.toString)) ? isRef$1(val) ? toDisplayString(val.value) : JSON.stringify(val, replacer, 2) : String(val);
383
386
  };
384
387
  const replacer = (_key, val) => {
385
- if (val && val.__v_isRef) {
388
+ if (isRef$1(val)) {
386
389
  return replacer(_key, val.value);
387
390
  } else if (isMap(val)) {
388
391
  return {
@@ -529,7 +532,7 @@ class ReactiveEffect {
529
532
  /**
530
533
  * @internal
531
534
  */
532
- this._dirtyLevel = 5;
535
+ this._dirtyLevel = 4;
533
536
  /**
534
537
  * @internal
535
538
  */
@@ -549,18 +552,14 @@ class ReactiveEffect {
549
552
  recordEffectScope(this, scope);
550
553
  }
551
554
  get dirty() {
552
- if (this._dirtyLevel === 2)
553
- return false;
554
- if (this._dirtyLevel === 3 || this._dirtyLevel === 4) {
555
+ if (this._dirtyLevel === 2 || this._dirtyLevel === 3) {
555
556
  this._dirtyLevel = 1;
556
557
  pauseTracking();
557
558
  for (let i = 0; i < this._depsLength; i++) {
558
559
  const dep = this.deps[i];
559
560
  if (dep.computed) {
560
- if (dep.computed.effect._dirtyLevel === 2)
561
- return true;
562
561
  triggerComputed(dep.computed);
563
- if (this._dirtyLevel >= 5) {
562
+ if (this._dirtyLevel >= 4) {
564
563
  break;
565
564
  }
566
565
  }
@@ -570,10 +569,10 @@ class ReactiveEffect {
570
569
  }
571
570
  resetTracking();
572
571
  }
573
- return this._dirtyLevel >= 5;
572
+ return this._dirtyLevel >= 4;
574
573
  }
575
574
  set dirty(v) {
576
- this._dirtyLevel = v ? 5 : 0;
575
+ this._dirtyLevel = v ? 4 : 0;
577
576
  }
578
577
  run() {
579
578
  this._dirtyLevel = 0;
@@ -694,18 +693,9 @@ function triggerEffects(dep, dirtyLevel, debuggerEventExtraInfo) {
694
693
  var _a;
695
694
  pauseScheduling();
696
695
  for (const effect2 of dep.keys()) {
697
- if (!dep.computed && effect2.computed) {
698
- if (dep.get(effect2) === effect2._trackId && effect2._runnings > 0) {
699
- effect2._dirtyLevel = 2;
700
- continue;
701
- }
702
- }
703
696
  let tracking;
704
697
  if (effect2._dirtyLevel < dirtyLevel && (tracking != null ? tracking : tracking = dep.get(effect2) === effect2._trackId)) {
705
698
  effect2._shouldSchedule || (effect2._shouldSchedule = effect2._dirtyLevel === 0);
706
- if (effect2.computed && effect2._dirtyLevel === 2) {
707
- effect2._shouldSchedule = true;
708
- }
709
699
  effect2._dirtyLevel = dirtyLevel;
710
700
  }
711
701
  if (effect2._shouldSchedule && (tracking != null ? tracking : tracking = dep.get(effect2) === effect2._trackId)) {
@@ -713,7 +703,7 @@ function triggerEffects(dep, dirtyLevel, debuggerEventExtraInfo) {
713
703
  (_a = effect2.onTrigger) == null ? void 0 : _a.call(effect2, extend({ effect: effect2 }, debuggerEventExtraInfo));
714
704
  }
715
705
  effect2.trigger();
716
- if ((!effect2._runnings || effect2.allowRecurse) && effect2._dirtyLevel !== 3) {
706
+ if ((!effect2._runnings || effect2.allowRecurse) && effect2._dirtyLevel !== 2) {
717
707
  effect2._shouldSchedule = false;
718
708
  if (effect2.scheduler) {
719
709
  queueEffectSchedulers.push(effect2.scheduler);
@@ -805,7 +795,7 @@ function trigger(target, type, key, newValue, oldValue, oldTarget) {
805
795
  if (dep) {
806
796
  triggerEffects(
807
797
  dep,
808
- 5,
798
+ 4,
809
799
  {
810
800
  target,
811
801
  type,
@@ -1408,7 +1398,7 @@ class ComputedRefImpl {
1408
1398
  () => getter(this._value),
1409
1399
  () => triggerRefValue(
1410
1400
  this,
1411
- this.effect._dirtyLevel === 3 ? 3 : 4
1401
+ this.effect._dirtyLevel === 2 ? 2 : 3
1412
1402
  )
1413
1403
  );
1414
1404
  this.effect.computed = this;
@@ -1418,7 +1408,7 @@ class ComputedRefImpl {
1418
1408
  get value() {
1419
1409
  const self = toRaw(this);
1420
1410
  if ((!self._cacheable || self.effect.dirty) && hasChanged(self._value, self._value = self.effect.run())) {
1421
- triggerRefValue(self, 5);
1411
+ triggerRefValue(self, 4);
1422
1412
  }
1423
1413
  trackRefValue(self);
1424
1414
  if (self.effect._dirtyLevel >= 2) {
@@ -1427,7 +1417,7 @@ class ComputedRefImpl {
1427
1417
 
1428
1418
  getter: `, this.getter);
1429
1419
  }
1430
- triggerRefValue(self, 3);
1420
+ triggerRefValue(self, 2);
1431
1421
  }
1432
1422
  return self._value;
1433
1423
  }
@@ -1482,7 +1472,7 @@ function trackRefValue(ref2) {
1482
1472
  );
1483
1473
  }
1484
1474
  }
1485
- function triggerRefValue(ref2, dirtyLevel = 5, newVal, oldVal) {
1475
+ function triggerRefValue(ref2, dirtyLevel = 4, newVal, oldVal) {
1486
1476
  ref2 = toRaw(ref2);
1487
1477
  const dep = ref2.dep;
1488
1478
  if (dep) {
@@ -1533,12 +1523,12 @@ class RefImpl {
1533
1523
  const oldVal = this._rawValue;
1534
1524
  this._rawValue = newVal;
1535
1525
  this._value = useDirectValue ? newVal : toReactive(newVal);
1536
- triggerRefValue(this, 5, newVal, oldVal);
1526
+ triggerRefValue(this, 4, newVal, oldVal);
1537
1527
  }
1538
1528
  }
1539
1529
  }
1540
1530
  function triggerRef(ref2) {
1541
- triggerRefValue(ref2, 5, ref2.value );
1531
+ triggerRefValue(ref2, 4, ref2.value );
1542
1532
  }
1543
1533
  function unref(ref2) {
1544
1534
  return isRef(ref2) ? ref2.value : ref2;
@@ -3385,7 +3375,6 @@ const SuspenseImpl = {
3385
3375
  }
3386
3376
  },
3387
3377
  hydrate: hydrateSuspense,
3388
- create: createSuspenseBoundary,
3389
3378
  normalize: normalizeSuspenseChildren
3390
3379
  };
3391
3380
  const Suspense = SuspenseImpl ;
@@ -5741,7 +5730,7 @@ function createCompatVue$1(createApp, createSingletonApp) {
5741
5730
  return vm;
5742
5731
  }
5743
5732
  }
5744
- Vue.version = `2.6.14-compat:${"3.4.29"}`;
5733
+ Vue.version = `2.6.14-compat:${"3.4.31"}`;
5745
5734
  Vue.config = singletonApp.config;
5746
5735
  Vue.use = (plugin, ...options) => {
5747
5736
  if (plugin && isFunction(plugin.install)) {
@@ -7050,18 +7039,8 @@ function createHydrationFunctions(rendererInternals) {
7050
7039
  let domType = node.nodeType;
7051
7040
  vnode.el = node;
7052
7041
  {
7053
- if (!("__vnode" in node)) {
7054
- Object.defineProperty(node, "__vnode", {
7055
- value: vnode,
7056
- enumerable: false
7057
- });
7058
- }
7059
- if (!("__vueParentComponent" in node)) {
7060
- Object.defineProperty(node, "__vueParentComponent", {
7061
- value: parentComponent,
7062
- enumerable: false
7063
- });
7064
- }
7042
+ def(node, "__vnode", vnode, true);
7043
+ def(node, "__vueParentComponent", parentComponent, true);
7065
7044
  }
7066
7045
  if (patchFlag === -2) {
7067
7046
  optimized = false;
@@ -7284,7 +7263,9 @@ Server rendered element contains more child nodes than client vdom.`
7284
7263
  if (props) {
7285
7264
  {
7286
7265
  for (const key in props) {
7287
- if (propHasMismatch(el, key, props[key], vnode, parentComponent)) {
7266
+ if (// #11189 skip if this node has directives that have created hooks
7267
+ // as it could have mutated the DOM in any possible way
7268
+ !(dirs && dirs.some((d) => d.dir.created)) && propHasMismatch(el, key, props[key], vnode, parentComponent)) {
7288
7269
  logMismatchError();
7289
7270
  }
7290
7271
  if (forcePatch && (key.endsWith("value") || key === "indeterminate") || isOn(key) && !isReservedProp(key) || // force hydrate v-bind with .prop modifiers
@@ -7459,7 +7440,6 @@ Server rendered element contains fewer child nodes than client vdom.`
7459
7440
  return [hydrate, hydrateNode];
7460
7441
  }
7461
7442
  function propHasMismatch(el, key, clientValue, vnode, instance) {
7462
- var _a;
7463
7443
  let mismatchType;
7464
7444
  let mismatchKey;
7465
7445
  let actual;
@@ -7482,13 +7462,8 @@ function propHasMismatch(el, key, clientValue, vnode, instance) {
7482
7462
  }
7483
7463
  }
7484
7464
  }
7485
- const root = instance == null ? void 0 : instance.subTree;
7486
- if (vnode === root || // eslint-disable-next-line no-restricted-syntax
7487
- (root == null ? void 0 : root.type) === Fragment && root.children.includes(vnode)) {
7488
- const cssVars = (_a = instance == null ? void 0 : instance.getCssVars) == null ? void 0 : _a.call(instance);
7489
- for (const key2 in cssVars) {
7490
- expectedMap.set(`--${key2}`, String(cssVars[key2]));
7491
- }
7465
+ if (instance) {
7466
+ resolveCssVars(instance, vnode, expectedMap);
7492
7467
  }
7493
7468
  if (!isMapEqual(actualMap, expectedMap)) {
7494
7469
  mismatchType = mismatchKey = "style";
@@ -7548,8 +7523,8 @@ function toStyleMap(str) {
7548
7523
  const styleMap = /* @__PURE__ */ new Map();
7549
7524
  for (const item of str.split(";")) {
7550
7525
  let [key, value] = item.split(":");
7551
- key = key == null ? void 0 : key.trim();
7552
- value = value == null ? void 0 : value.trim();
7526
+ key = key.trim();
7527
+ value = value && value.trim();
7553
7528
  if (key && value) {
7554
7529
  styleMap.set(key, value);
7555
7530
  }
@@ -7567,6 +7542,18 @@ function isMapEqual(a, b) {
7567
7542
  }
7568
7543
  return true;
7569
7544
  }
7545
+ function resolveCssVars(instance, vnode, expectedMap) {
7546
+ const root = instance.subTree;
7547
+ if (instance.getCssVars && (vnode === root || root && root.type === Fragment && root.children.includes(vnode))) {
7548
+ const cssVars = instance.getCssVars();
7549
+ for (const key in cssVars) {
7550
+ expectedMap.set(`--${key}`, String(cssVars[key]));
7551
+ }
7552
+ }
7553
+ if (vnode === root && instance.parent) {
7554
+ resolveCssVars(instance.parent, instance.vnode, expectedMap);
7555
+ }
7556
+ }
7570
7557
 
7571
7558
  let supported;
7572
7559
  let perf;
@@ -7884,14 +7871,8 @@ function baseCreateRenderer(options, createHydrationFns) {
7884
7871
  }
7885
7872
  }
7886
7873
  {
7887
- Object.defineProperty(el, "__vnode", {
7888
- value: vnode,
7889
- enumerable: false
7890
- });
7891
- Object.defineProperty(el, "__vueParentComponent", {
7892
- value: parentComponent,
7893
- enumerable: false
7894
- });
7874
+ def(el, "__vnode", vnode, true);
7875
+ def(el, "__vueParentComponent", parentComponent, true);
7895
7876
  }
7896
7877
  if (dirs) {
7897
7878
  invokeDirectiveHook(vnode, null, parentComponent, "beforeMount");
@@ -7953,6 +7934,9 @@ function baseCreateRenderer(options, createHydrationFns) {
7953
7934
  };
7954
7935
  const patchElement = (n1, n2, parentComponent, parentSuspense, namespace, slotScopeIds, optimized) => {
7955
7936
  const el = n2.el = n1.el;
7937
+ {
7938
+ el.__vnode = n2;
7939
+ }
7956
7940
  let { patchFlag, dynamicChildren, dirs } = n2;
7957
7941
  patchFlag |= n1.patchFlag & 16;
7958
7942
  const oldProps = n1.props || EMPTY_OBJ;
@@ -8872,6 +8856,9 @@ function baseCreateRenderer(options, createHydrationFns) {
8872
8856
  dirs,
8873
8857
  memoIndex
8874
8858
  } = vnode;
8859
+ if (patchFlag === -2) {
8860
+ optimized = false;
8861
+ }
8875
8862
  if (ref != null) {
8876
8863
  setRef(ref, null, parentSuspense, vnode, true);
8877
8864
  }
@@ -8903,7 +8890,6 @@ function baseCreateRenderer(options, createHydrationFns) {
8903
8890
  vnode,
8904
8891
  parentComponent,
8905
8892
  parentSuspense,
8906
- optimized,
8907
8893
  internals,
8908
8894
  doRemove
8909
8895
  );
@@ -10230,7 +10216,7 @@ const TeleportImpl = {
10230
10216
  }
10231
10217
  updateCssVars(n2);
10232
10218
  },
10233
- remove(vnode, parentComponent, parentSuspense, optimized, { um: unmount, o: { remove: hostRemove } }, doRemove) {
10219
+ remove(vnode, parentComponent, parentSuspense, { um: unmount, o: { remove: hostRemove } }, doRemove) {
10234
10220
  const { shapeFlag, children, anchor, targetAnchor, target, props } = vnode;
10235
10221
  if (target) {
10236
10222
  hostRemove(targetAnchor);
@@ -11495,7 +11481,7 @@ function isMemoSame(cached, memo) {
11495
11481
  return true;
11496
11482
  }
11497
11483
 
11498
- const version = "3.4.29";
11484
+ const version = "3.4.31";
11499
11485
  const warn = warn$1 ;
11500
11486
  const ErrorTypeStrings = ErrorTypeStrings$1 ;
11501
11487
  const devtools = devtools$1 ;
@@ -12078,7 +12064,10 @@ function patchAttr(el, key, value, isSVG, instance, isBoolean = isSpecialBoolean
12078
12064
  if (value == null || isBoolean && !includeBooleanAttr(value)) {
12079
12065
  el.removeAttribute(key);
12080
12066
  } else {
12081
- el.setAttribute(key, isBoolean ? "" : String(value));
12067
+ el.setAttribute(
12068
+ key,
12069
+ isBoolean ? "" : isSymbol(value) ? String(value) : value
12070
+ );
12082
12071
  }
12083
12072
  }
12084
12073
  }
@@ -12280,7 +12269,7 @@ const patchProp = (el, key, prevValue, nextValue, namespace, prevChildren, paren
12280
12269
  parentSuspense,
12281
12270
  unmountChildren
12282
12271
  );
12283
- if (key === "value" || key === "checked" || key === "selected") {
12272
+ if (!el.tagName.includes("-") && (key === "value" || key === "checked" || key === "selected")) {
12284
12273
  patchAttr(el, key, nextValue, isSVG, parentComponent, key !== "value");
12285
12274
  }
12286
12275
  } else {
@@ -17408,7 +17397,7 @@ function processExpression(node, context, asParams = false, asRawStatements = fa
17408
17397
  node2.name = rewriteIdentifier(node2.name, parent, node2);
17409
17398
  ids.push(node2);
17410
17399
  } else {
17411
- if (!(needPrefix && isLocal) && parent.type !== "CallExpression" && parent.type !== "NewExpression" && parent.type !== "MemberExpression") {
17400
+ if (!(needPrefix && isLocal) && (!parent || parent.type !== "CallExpression" && parent.type !== "NewExpression" && parent.type !== "MemberExpression")) {
17412
17401
  node2.isConstant = true;
17413
17402
  }
17414
17403
  ids.push(node2);
@@ -18144,9 +18133,7 @@ function buildSlots(node, context, buildSlotFn = buildClientSlotFn) {
18144
18133
  break;
18145
18134
  }
18146
18135
  }
18147
- if (prev && isTemplateNode(prev) && findDir(prev, "if")) {
18148
- children.splice(i, 1);
18149
- i--;
18136
+ if (prev && isTemplateNode(prev) && findDir(prev, /^(else-)?if$/)) {
18150
18137
  let conditional = dynamicSlots[dynamicSlots.length - 1];
18151
18138
  while (conditional.alternate.type === 19) {
18152
18139
  conditional = conditional.alternate;
@@ -19302,8 +19289,7 @@ const transformFilter = (node, context) => {
19302
19289
  }
19303
19290
  if (node.type === 5) {
19304
19291
  rewriteFilter(node.content, context);
19305
- }
19306
- if (node.type === 1) {
19292
+ } else if (node.type === 1) {
19307
19293
  node.props.forEach((prop) => {
19308
19294
  if (prop.type === 7 && prop.name !== "for" && prop.exp) {
19309
19295
  rewriteFilter(prop.exp, context);
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @vue/compat v3.4.29
2
+ * @vue/compat v3.4.31
3
3
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
4
4
  * @license MIT
5
5
  **/
@@ -306,11 +306,14 @@ function looseIndexOf(arr, val) {
306
306
  return arr.findIndex((item) => looseEqual(item, val));
307
307
  }
308
308
 
309
+ const isRef$1 = (val) => {
310
+ return !!(val && val.__v_isRef === true);
311
+ };
309
312
  const toDisplayString = (val) => {
310
- return isString(val) ? val : val == null ? "" : isArray(val) || isObject(val) && (val.toString === objectToString || !isFunction(val.toString)) ? JSON.stringify(val, replacer, 2) : String(val);
313
+ return isString(val) ? val : val == null ? "" : isArray(val) || isObject(val) && (val.toString === objectToString || !isFunction(val.toString)) ? isRef$1(val) ? toDisplayString(val.value) : JSON.stringify(val, replacer, 2) : String(val);
311
314
  };
312
315
  const replacer = (_key, val) => {
313
- if (val && val.__v_isRef) {
316
+ if (isRef$1(val)) {
314
317
  return replacer(_key, val.value);
315
318
  } else if (isMap(val)) {
316
319
  return {
@@ -447,7 +450,7 @@ class ReactiveEffect {
447
450
  /**
448
451
  * @internal
449
452
  */
450
- this._dirtyLevel = 5;
453
+ this._dirtyLevel = 4;
451
454
  /**
452
455
  * @internal
453
456
  */
@@ -467,18 +470,14 @@ class ReactiveEffect {
467
470
  recordEffectScope(this, scope);
468
471
  }
469
472
  get dirty() {
470
- if (this._dirtyLevel === 2)
471
- return false;
472
- if (this._dirtyLevel === 3 || this._dirtyLevel === 4) {
473
+ if (this._dirtyLevel === 2 || this._dirtyLevel === 3) {
473
474
  this._dirtyLevel = 1;
474
475
  pauseTracking();
475
476
  for (let i = 0; i < this._depsLength; i++) {
476
477
  const dep = this.deps[i];
477
478
  if (dep.computed) {
478
- if (dep.computed.effect._dirtyLevel === 2)
479
- return true;
480
479
  triggerComputed(dep.computed);
481
- if (this._dirtyLevel >= 5) {
480
+ if (this._dirtyLevel >= 4) {
482
481
  break;
483
482
  }
484
483
  }
@@ -488,10 +487,10 @@ class ReactiveEffect {
488
487
  }
489
488
  resetTracking();
490
489
  }
491
- return this._dirtyLevel >= 5;
490
+ return this._dirtyLevel >= 4;
492
491
  }
493
492
  set dirty(v) {
494
- this._dirtyLevel = v ? 5 : 0;
493
+ this._dirtyLevel = v ? 4 : 0;
495
494
  }
496
495
  run() {
497
496
  this._dirtyLevel = 0;
@@ -607,23 +606,14 @@ const queueEffectSchedulers = [];
607
606
  function triggerEffects(dep, dirtyLevel, debuggerEventExtraInfo) {
608
607
  pauseScheduling();
609
608
  for (const effect2 of dep.keys()) {
610
- if (!dep.computed && effect2.computed) {
611
- if (dep.get(effect2) === effect2._trackId && effect2._runnings > 0) {
612
- effect2._dirtyLevel = 2;
613
- continue;
614
- }
615
- }
616
609
  let tracking;
617
610
  if (effect2._dirtyLevel < dirtyLevel && (tracking != null ? tracking : tracking = dep.get(effect2) === effect2._trackId)) {
618
611
  effect2._shouldSchedule || (effect2._shouldSchedule = effect2._dirtyLevel === 0);
619
- if (effect2.computed && effect2._dirtyLevel === 2) {
620
- effect2._shouldSchedule = true;
621
- }
622
612
  effect2._dirtyLevel = dirtyLevel;
623
613
  }
624
614
  if (effect2._shouldSchedule && (tracking != null ? tracking : tracking = dep.get(effect2) === effect2._trackId)) {
625
615
  effect2.trigger();
626
- if ((!effect2._runnings || effect2.allowRecurse) && effect2._dirtyLevel !== 3) {
616
+ if ((!effect2._runnings || effect2.allowRecurse) && effect2._dirtyLevel !== 2) {
627
617
  effect2._shouldSchedule = false;
628
618
  if (effect2.scheduler) {
629
619
  queueEffectSchedulers.push(effect2.scheduler);
@@ -709,7 +699,7 @@ function trigger(target, type, key, newValue, oldValue, oldTarget) {
709
699
  if (dep) {
710
700
  triggerEffects(
711
701
  dep,
712
- 5);
702
+ 4);
713
703
  }
714
704
  }
715
705
  resetScheduling();
@@ -1262,7 +1252,7 @@ class ComputedRefImpl {
1262
1252
  () => getter(this._value),
1263
1253
  () => triggerRefValue(
1264
1254
  this,
1265
- this.effect._dirtyLevel === 3 ? 3 : 4
1255
+ this.effect._dirtyLevel === 2 ? 2 : 3
1266
1256
  )
1267
1257
  );
1268
1258
  this.effect.computed = this;
@@ -1272,11 +1262,11 @@ class ComputedRefImpl {
1272
1262
  get value() {
1273
1263
  const self = toRaw(this);
1274
1264
  if ((!self._cacheable || self.effect.dirty) && hasChanged(self._value, self._value = self.effect.run())) {
1275
- triggerRefValue(self, 5);
1265
+ triggerRefValue(self, 4);
1276
1266
  }
1277
1267
  trackRefValue(self);
1278
1268
  if (self.effect._dirtyLevel >= 2) {
1279
- triggerRefValue(self, 3);
1269
+ triggerRefValue(self, 2);
1280
1270
  }
1281
1271
  return self._value;
1282
1272
  }
@@ -1319,7 +1309,7 @@ function trackRefValue(ref2) {
1319
1309
  ));
1320
1310
  }
1321
1311
  }
1322
- function triggerRefValue(ref2, dirtyLevel = 5, newVal, oldVal) {
1312
+ function triggerRefValue(ref2, dirtyLevel = 4, newVal, oldVal) {
1323
1313
  ref2 = toRaw(ref2);
1324
1314
  const dep = ref2.dep;
1325
1315
  if (dep) {
@@ -1362,12 +1352,12 @@ class RefImpl {
1362
1352
  this._rawValue;
1363
1353
  this._rawValue = newVal;
1364
1354
  this._value = useDirectValue ? newVal : toReactive(newVal);
1365
- triggerRefValue(this, 5);
1355
+ triggerRefValue(this, 4);
1366
1356
  }
1367
1357
  }
1368
1358
  }
1369
1359
  function triggerRef(ref2) {
1370
- triggerRefValue(ref2, 5);
1360
+ triggerRefValue(ref2, 4);
1371
1361
  }
1372
1362
  function unref(ref2) {
1373
1363
  return isRef(ref2) ? ref2.value : ref2;
@@ -2415,7 +2405,6 @@ const SuspenseImpl = {
2415
2405
  }
2416
2406
  },
2417
2407
  hydrate: hydrateSuspense,
2418
- create: createSuspenseBoundary,
2419
2408
  normalize: normalizeSuspenseChildren
2420
2409
  };
2421
2410
  const Suspense = SuspenseImpl ;
@@ -4459,7 +4448,7 @@ function createCompatVue$1(createApp, createSingletonApp) {
4459
4448
  return vm;
4460
4449
  }
4461
4450
  }
4462
- Vue.version = `2.6.14-compat:${"3.4.29"}`;
4451
+ Vue.version = `2.6.14-compat:${"3.4.31"}`;
4463
4452
  Vue.config = singletonApp.config;
4464
4453
  Vue.use = (plugin, ...options) => {
4465
4454
  if (plugin && isFunction(plugin.install)) {
@@ -7002,6 +6991,9 @@ function baseCreateRenderer(options, createHydrationFns) {
7002
6991
  dirs,
7003
6992
  memoIndex
7004
6993
  } = vnode;
6994
+ if (patchFlag === -2) {
6995
+ optimized = false;
6996
+ }
7005
6997
  if (ref != null) {
7006
6998
  setRef(ref, null, parentSuspense, vnode, true);
7007
6999
  }
@@ -7033,7 +7025,6 @@ function baseCreateRenderer(options, createHydrationFns) {
7033
7025
  vnode,
7034
7026
  parentComponent,
7035
7027
  parentSuspense,
7036
- optimized,
7037
7028
  internals,
7038
7029
  doRemove
7039
7030
  );
@@ -8249,7 +8240,7 @@ const TeleportImpl = {
8249
8240
  }
8250
8241
  updateCssVars(n2);
8251
8242
  },
8252
- remove(vnode, parentComponent, parentSuspense, optimized, { um: unmount, o: { remove: hostRemove } }, doRemove) {
8243
+ remove(vnode, parentComponent, parentSuspense, { um: unmount, o: { remove: hostRemove } }, doRemove) {
8253
8244
  const { shapeFlag, children, anchor, targetAnchor, target, props } = vnode;
8254
8245
  if (target) {
8255
8246
  hostRemove(targetAnchor);
@@ -9155,7 +9146,7 @@ function isMemoSame(cached, memo) {
9155
9146
  return true;
9156
9147
  }
9157
9148
 
9158
- const version = "3.4.29";
9149
+ const version = "3.4.31";
9159
9150
  const warn$1 = NOOP;
9160
9151
  const ErrorTypeStrings = ErrorTypeStrings$1 ;
9161
9152
  const devtools = void 0;
@@ -9724,7 +9715,10 @@ function patchAttr(el, key, value, isSVG, instance, isBoolean = isSpecialBoolean
9724
9715
  if (value == null || isBoolean && !includeBooleanAttr(value)) {
9725
9716
  el.removeAttribute(key);
9726
9717
  } else {
9727
- el.setAttribute(key, isBoolean ? "" : String(value));
9718
+ el.setAttribute(
9719
+ key,
9720
+ isBoolean ? "" : isSymbol(value) ? String(value) : value
9721
+ );
9728
9722
  }
9729
9723
  }
9730
9724
  }
@@ -9905,7 +9899,7 @@ const patchProp = (el, key, prevValue, nextValue, namespace, prevChildren, paren
9905
9899
  parentSuspense,
9906
9900
  unmountChildren
9907
9901
  );
9908
- if (key === "value" || key === "checked" || key === "selected") {
9902
+ if (!el.tagName.includes("-") && (key === "value" || key === "checked" || key === "selected")) {
9909
9903
  patchAttr(el, key, nextValue, isSVG, parentComponent, key !== "value");
9910
9904
  }
9911
9905
  } else {
@@ -14812,7 +14806,7 @@ function processExpression(node, context, asParams = false, asRawStatements = fa
14812
14806
  node2.name = rewriteIdentifier(node2.name, parent, node2);
14813
14807
  ids.push(node2);
14814
14808
  } else {
14815
- if (!(needPrefix && isLocal) && parent.type !== "CallExpression" && parent.type !== "NewExpression" && parent.type !== "MemberExpression") {
14809
+ if (!(needPrefix && isLocal) && (!parent || parent.type !== "CallExpression" && parent.type !== "NewExpression" && parent.type !== "MemberExpression")) {
14816
14810
  node2.isConstant = true;
14817
14811
  }
14818
14812
  ids.push(node2);
@@ -15537,9 +15531,7 @@ function buildSlots(node, context, buildSlotFn = buildClientSlotFn) {
15537
15531
  break;
15538
15532
  }
15539
15533
  }
15540
- if (prev && isTemplateNode(prev) && findDir(prev, "if")) {
15541
- children.splice(i, 1);
15542
- i--;
15534
+ if (prev && isTemplateNode(prev) && findDir(prev, /^(else-)?if$/)) {
15543
15535
  let conditional = dynamicSlots[dynamicSlots.length - 1];
15544
15536
  while (conditional.alternate.type === 19) {
15545
15537
  conditional = conditional.alternate;
@@ -16657,8 +16649,7 @@ const transformFilter = (node, context) => {
16657
16649
  }
16658
16650
  if (node.type === 5) {
16659
16651
  rewriteFilter(node.content, context);
16660
- }
16661
- if (node.type === 1) {
16652
+ } else if (node.type === 1) {
16662
16653
  node.props.forEach((prop) => {
16663
16654
  if (prop.type === 7 && prop.name !== "for" && prop.exp) {
16664
16655
  rewriteFilter(prop.exp, context);