@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.
@@ -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
  **/
@@ -260,11 +260,14 @@ function looseIndexOf(arr, val) {
260
260
  return arr.findIndex((item) => looseEqual(item, val));
261
261
  }
262
262
 
263
+ const isRef$1 = (val) => {
264
+ return !!(val && val.__v_isRef === true);
265
+ };
263
266
  const toDisplayString = (val) => {
264
- return isString(val) ? val : val == null ? "" : isArray(val) || isObject(val) && (val.toString === objectToString || !isFunction(val.toString)) ? JSON.stringify(val, replacer, 2) : String(val);
267
+ 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);
265
268
  };
266
269
  const replacer = (_key, val) => {
267
- if (val && val.__v_isRef) {
270
+ if (isRef$1(val)) {
268
271
  return replacer(_key, val.value);
269
272
  } else if (isMap(val)) {
270
273
  return {
@@ -411,7 +414,7 @@ class ReactiveEffect {
411
414
  /**
412
415
  * @internal
413
416
  */
414
- this._dirtyLevel = 5;
417
+ this._dirtyLevel = 4;
415
418
  /**
416
419
  * @internal
417
420
  */
@@ -431,18 +434,14 @@ class ReactiveEffect {
431
434
  recordEffectScope(this, scope);
432
435
  }
433
436
  get dirty() {
434
- if (this._dirtyLevel === 2)
435
- return false;
436
- if (this._dirtyLevel === 3 || this._dirtyLevel === 4) {
437
+ if (this._dirtyLevel === 2 || this._dirtyLevel === 3) {
437
438
  this._dirtyLevel = 1;
438
439
  pauseTracking();
439
440
  for (let i = 0; i < this._depsLength; i++) {
440
441
  const dep = this.deps[i];
441
442
  if (dep.computed) {
442
- if (dep.computed.effect._dirtyLevel === 2)
443
- return true;
444
443
  triggerComputed(dep.computed);
445
- if (this._dirtyLevel >= 5) {
444
+ if (this._dirtyLevel >= 4) {
446
445
  break;
447
446
  }
448
447
  }
@@ -452,10 +451,10 @@ class ReactiveEffect {
452
451
  }
453
452
  resetTracking();
454
453
  }
455
- return this._dirtyLevel >= 5;
454
+ return this._dirtyLevel >= 4;
456
455
  }
457
456
  set dirty(v) {
458
- this._dirtyLevel = v ? 5 : 0;
457
+ this._dirtyLevel = v ? 4 : 0;
459
458
  }
460
459
  run() {
461
460
  this._dirtyLevel = 0;
@@ -576,18 +575,9 @@ function triggerEffects(dep, dirtyLevel, debuggerEventExtraInfo) {
576
575
  var _a;
577
576
  pauseScheduling();
578
577
  for (const effect2 of dep.keys()) {
579
- if (!dep.computed && effect2.computed) {
580
- if (dep.get(effect2) === effect2._trackId && effect2._runnings > 0) {
581
- effect2._dirtyLevel = 2;
582
- continue;
583
- }
584
- }
585
578
  let tracking;
586
579
  if (effect2._dirtyLevel < dirtyLevel && (tracking != null ? tracking : tracking = dep.get(effect2) === effect2._trackId)) {
587
580
  effect2._shouldSchedule || (effect2._shouldSchedule = effect2._dirtyLevel === 0);
588
- if (effect2.computed && effect2._dirtyLevel === 2) {
589
- effect2._shouldSchedule = true;
590
- }
591
581
  effect2._dirtyLevel = dirtyLevel;
592
582
  }
593
583
  if (effect2._shouldSchedule && (tracking != null ? tracking : tracking = dep.get(effect2) === effect2._trackId)) {
@@ -595,7 +585,7 @@ function triggerEffects(dep, dirtyLevel, debuggerEventExtraInfo) {
595
585
  (_a = effect2.onTrigger) == null ? void 0 : _a.call(effect2, extend({ effect: effect2 }, debuggerEventExtraInfo));
596
586
  }
597
587
  effect2.trigger();
598
- if ((!effect2._runnings || effect2.allowRecurse) && effect2._dirtyLevel !== 3) {
588
+ if ((!effect2._runnings || effect2.allowRecurse) && effect2._dirtyLevel !== 2) {
599
589
  effect2._shouldSchedule = false;
600
590
  if (effect2.scheduler) {
601
591
  queueEffectSchedulers.push(effect2.scheduler);
@@ -687,7 +677,7 @@ function trigger(target, type, key, newValue, oldValue, oldTarget) {
687
677
  if (dep) {
688
678
  triggerEffects(
689
679
  dep,
690
- 5,
680
+ 4,
691
681
  !!(process.env.NODE_ENV !== "production") ? {
692
682
  target,
693
683
  type,
@@ -1290,7 +1280,7 @@ class ComputedRefImpl {
1290
1280
  () => getter(this._value),
1291
1281
  () => triggerRefValue(
1292
1282
  this,
1293
- this.effect._dirtyLevel === 3 ? 3 : 4
1283
+ this.effect._dirtyLevel === 2 ? 2 : 3
1294
1284
  )
1295
1285
  );
1296
1286
  this.effect.computed = this;
@@ -1300,7 +1290,7 @@ class ComputedRefImpl {
1300
1290
  get value() {
1301
1291
  const self = toRaw(this);
1302
1292
  if ((!self._cacheable || self.effect.dirty) && hasChanged(self._value, self._value = self.effect.run())) {
1303
- triggerRefValue(self, 5);
1293
+ triggerRefValue(self, 4);
1304
1294
  }
1305
1295
  trackRefValue(self);
1306
1296
  if (self.effect._dirtyLevel >= 2) {
@@ -1309,7 +1299,7 @@ class ComputedRefImpl {
1309
1299
 
1310
1300
  getter: `, this.getter);
1311
1301
  }
1312
- triggerRefValue(self, 3);
1302
+ triggerRefValue(self, 2);
1313
1303
  }
1314
1304
  return self._value;
1315
1305
  }
@@ -1364,7 +1354,7 @@ function trackRefValue(ref2) {
1364
1354
  );
1365
1355
  }
1366
1356
  }
1367
- function triggerRefValue(ref2, dirtyLevel = 5, newVal, oldVal) {
1357
+ function triggerRefValue(ref2, dirtyLevel = 4, newVal, oldVal) {
1368
1358
  ref2 = toRaw(ref2);
1369
1359
  const dep = ref2.dep;
1370
1360
  if (dep) {
@@ -1415,12 +1405,12 @@ class RefImpl {
1415
1405
  const oldVal = this._rawValue;
1416
1406
  this._rawValue = newVal;
1417
1407
  this._value = useDirectValue ? newVal : toReactive(newVal);
1418
- triggerRefValue(this, 5, newVal, oldVal);
1408
+ triggerRefValue(this, 4, newVal, oldVal);
1419
1409
  }
1420
1410
  }
1421
1411
  }
1422
1412
  function triggerRef(ref2) {
1423
- triggerRefValue(ref2, 5, !!(process.env.NODE_ENV !== "production") ? ref2.value : void 0);
1413
+ triggerRefValue(ref2, 4, !!(process.env.NODE_ENV !== "production") ? ref2.value : void 0);
1424
1414
  }
1425
1415
  function unref(ref2) {
1426
1416
  return isRef(ref2) ? ref2.value : ref2;
@@ -3273,7 +3263,6 @@ const SuspenseImpl = {
3273
3263
  }
3274
3264
  },
3275
3265
  hydrate: hydrateSuspense,
3276
- create: createSuspenseBoundary,
3277
3266
  normalize: normalizeSuspenseChildren
3278
3267
  };
3279
3268
  const Suspense = SuspenseImpl ;
@@ -5631,7 +5620,7 @@ function createCompatVue$1(createApp, createSingletonApp) {
5631
5620
  return vm;
5632
5621
  }
5633
5622
  }
5634
- Vue.version = `2.6.14-compat:${"3.4.29"}`;
5623
+ Vue.version = `2.6.14-compat:${"3.4.31"}`;
5635
5624
  Vue.config = singletonApp.config;
5636
5625
  Vue.use = (plugin, ...options) => {
5637
5626
  if (plugin && isFunction(plugin.install)) {
@@ -6942,18 +6931,8 @@ function createHydrationFunctions(rendererInternals) {
6942
6931
  let domType = node.nodeType;
6943
6932
  vnode.el = node;
6944
6933
  if (!!(process.env.NODE_ENV !== "production") || __VUE_PROD_DEVTOOLS__) {
6945
- if (!("__vnode" in node)) {
6946
- Object.defineProperty(node, "__vnode", {
6947
- value: vnode,
6948
- enumerable: false
6949
- });
6950
- }
6951
- if (!("__vueParentComponent" in node)) {
6952
- Object.defineProperty(node, "__vueParentComponent", {
6953
- value: parentComponent,
6954
- enumerable: false
6955
- });
6956
- }
6934
+ def(node, "__vnode", vnode, true);
6935
+ def(node, "__vueParentComponent", parentComponent, true);
6957
6936
  }
6958
6937
  if (patchFlag === -2) {
6959
6938
  optimized = false;
@@ -7176,7 +7155,9 @@ Server rendered element contains more child nodes than client vdom.`
7176
7155
  if (props) {
7177
7156
  if (!!(process.env.NODE_ENV !== "production") || __VUE_PROD_HYDRATION_MISMATCH_DETAILS__ || forcePatch || !optimized || patchFlag & (16 | 32)) {
7178
7157
  for (const key in props) {
7179
- if ((!!(process.env.NODE_ENV !== "production") || __VUE_PROD_HYDRATION_MISMATCH_DETAILS__) && propHasMismatch(el, key, props[key], vnode, parentComponent)) {
7158
+ if ((!!(process.env.NODE_ENV !== "production") || __VUE_PROD_HYDRATION_MISMATCH_DETAILS__) && // #11189 skip if this node has directives that have created hooks
7159
+ // as it could have mutated the DOM in any possible way
7160
+ !(dirs && dirs.some((d) => d.dir.created)) && propHasMismatch(el, key, props[key], vnode, parentComponent)) {
7180
7161
  logMismatchError();
7181
7162
  }
7182
7163
  if (forcePatch && (key.endsWith("value") || key === "indeterminate") || isOn(key) && !isReservedProp(key) || // force hydrate v-bind with .prop modifiers
@@ -7361,7 +7342,6 @@ Server rendered element contains fewer child nodes than client vdom.`
7361
7342
  return [hydrate, hydrateNode];
7362
7343
  }
7363
7344
  function propHasMismatch(el, key, clientValue, vnode, instance) {
7364
- var _a;
7365
7345
  let mismatchType;
7366
7346
  let mismatchKey;
7367
7347
  let actual;
@@ -7384,13 +7364,8 @@ function propHasMismatch(el, key, clientValue, vnode, instance) {
7384
7364
  }
7385
7365
  }
7386
7366
  }
7387
- const root = instance == null ? void 0 : instance.subTree;
7388
- if (vnode === root || // eslint-disable-next-line no-restricted-syntax
7389
- (root == null ? void 0 : root.type) === Fragment && root.children.includes(vnode)) {
7390
- const cssVars = (_a = instance == null ? void 0 : instance.getCssVars) == null ? void 0 : _a.call(instance);
7391
- for (const key2 in cssVars) {
7392
- expectedMap.set(`--${key2}`, String(cssVars[key2]));
7393
- }
7367
+ if (instance) {
7368
+ resolveCssVars(instance, vnode, expectedMap);
7394
7369
  }
7395
7370
  if (!isMapEqual(actualMap, expectedMap)) {
7396
7371
  mismatchType = mismatchKey = "style";
@@ -7450,8 +7425,8 @@ function toStyleMap(str) {
7450
7425
  const styleMap = /* @__PURE__ */ new Map();
7451
7426
  for (const item of str.split(";")) {
7452
7427
  let [key, value] = item.split(":");
7453
- key = key == null ? void 0 : key.trim();
7454
- value = value == null ? void 0 : value.trim();
7428
+ key = key.trim();
7429
+ value = value && value.trim();
7455
7430
  if (key && value) {
7456
7431
  styleMap.set(key, value);
7457
7432
  }
@@ -7469,6 +7444,18 @@ function isMapEqual(a, b) {
7469
7444
  }
7470
7445
  return true;
7471
7446
  }
7447
+ function resolveCssVars(instance, vnode, expectedMap) {
7448
+ const root = instance.subTree;
7449
+ if (instance.getCssVars && (vnode === root || root && root.type === Fragment && root.children.includes(vnode))) {
7450
+ const cssVars = instance.getCssVars();
7451
+ for (const key in cssVars) {
7452
+ expectedMap.set(`--${key}`, String(cssVars[key]));
7453
+ }
7454
+ }
7455
+ if (vnode === root && instance.parent) {
7456
+ resolveCssVars(instance.parent, instance.vnode, expectedMap);
7457
+ }
7458
+ }
7472
7459
 
7473
7460
  let supported;
7474
7461
  let perf;
@@ -7813,14 +7800,8 @@ function baseCreateRenderer(options, createHydrationFns) {
7813
7800
  }
7814
7801
  }
7815
7802
  if (!!(process.env.NODE_ENV !== "production") || __VUE_PROD_DEVTOOLS__) {
7816
- Object.defineProperty(el, "__vnode", {
7817
- value: vnode,
7818
- enumerable: false
7819
- });
7820
- Object.defineProperty(el, "__vueParentComponent", {
7821
- value: parentComponent,
7822
- enumerable: false
7823
- });
7803
+ def(el, "__vnode", vnode, true);
7804
+ def(el, "__vueParentComponent", parentComponent, true);
7824
7805
  }
7825
7806
  if (dirs) {
7826
7807
  invokeDirectiveHook(vnode, null, parentComponent, "beforeMount");
@@ -7882,6 +7863,9 @@ function baseCreateRenderer(options, createHydrationFns) {
7882
7863
  };
7883
7864
  const patchElement = (n1, n2, parentComponent, parentSuspense, namespace, slotScopeIds, optimized) => {
7884
7865
  const el = n2.el = n1.el;
7866
+ if (!!(process.env.NODE_ENV !== "production") || __VUE_PROD_DEVTOOLS__) {
7867
+ el.__vnode = n2;
7868
+ }
7885
7869
  let { patchFlag, dynamicChildren, dirs } = n2;
7886
7870
  patchFlag |= n1.patchFlag & 16;
7887
7871
  const oldProps = n1.props || EMPTY_OBJ;
@@ -8812,6 +8796,9 @@ function baseCreateRenderer(options, createHydrationFns) {
8812
8796
  dirs,
8813
8797
  memoIndex
8814
8798
  } = vnode;
8799
+ if (patchFlag === -2) {
8800
+ optimized = false;
8801
+ }
8815
8802
  if (ref != null) {
8816
8803
  setRef(ref, null, parentSuspense, vnode, true);
8817
8804
  }
@@ -8843,7 +8830,6 @@ function baseCreateRenderer(options, createHydrationFns) {
8843
8830
  vnode,
8844
8831
  parentComponent,
8845
8832
  parentSuspense,
8846
- optimized,
8847
8833
  internals,
8848
8834
  doRemove
8849
8835
  );
@@ -10171,7 +10157,7 @@ const TeleportImpl = {
10171
10157
  }
10172
10158
  updateCssVars(n2);
10173
10159
  },
10174
- remove(vnode, parentComponent, parentSuspense, optimized, { um: unmount, o: { remove: hostRemove } }, doRemove) {
10160
+ remove(vnode, parentComponent, parentSuspense, { um: unmount, o: { remove: hostRemove } }, doRemove) {
10175
10161
  const { shapeFlag, children, anchor, targetAnchor, target, props } = vnode;
10176
10162
  if (target) {
10177
10163
  hostRemove(targetAnchor);
@@ -11450,7 +11436,7 @@ function isMemoSame(cached, memo) {
11450
11436
  return true;
11451
11437
  }
11452
11438
 
11453
- const version = "3.4.29";
11439
+ const version = "3.4.31";
11454
11440
  const warn = !!(process.env.NODE_ENV !== "production") ? warn$1 : NOOP;
11455
11441
  const ErrorTypeStrings = ErrorTypeStrings$1 ;
11456
11442
  const devtools = !!(process.env.NODE_ENV !== "production") || true ? devtools$1 : void 0;
@@ -12093,7 +12079,10 @@ function patchAttr(el, key, value, isSVG, instance, isBoolean = isSpecialBoolean
12093
12079
  if (value == null || isBoolean && !includeBooleanAttr(value)) {
12094
12080
  el.removeAttribute(key);
12095
12081
  } else {
12096
- el.setAttribute(key, isBoolean ? "" : String(value));
12082
+ el.setAttribute(
12083
+ key,
12084
+ isBoolean ? "" : isSymbol(value) ? String(value) : value
12085
+ );
12097
12086
  }
12098
12087
  }
12099
12088
  }
@@ -12295,7 +12284,7 @@ const patchProp = (el, key, prevValue, nextValue, namespace, prevChildren, paren
12295
12284
  parentSuspense,
12296
12285
  unmountChildren
12297
12286
  );
12298
- if (key === "value" || key === "checked" || key === "selected") {
12287
+ if (!el.tagName.includes("-") && (key === "value" || key === "checked" || key === "selected")) {
12299
12288
  patchAttr(el, key, nextValue, isSVG, parentComponent, key !== "value");
12300
12289
  }
12301
12290
  } else {
@@ -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
  **/
@@ -263,11 +263,14 @@ var Vue = (function () {
263
263
  return arr.findIndex((item) => looseEqual(item, val));
264
264
  }
265
265
 
266
+ const isRef$1 = (val) => {
267
+ return !!(val && val.__v_isRef === true);
268
+ };
266
269
  const toDisplayString = (val) => {
267
- return isString(val) ? val : val == null ? "" : isArray(val) || isObject(val) && (val.toString === objectToString || !isFunction(val.toString)) ? JSON.stringify(val, replacer, 2) : String(val);
270
+ 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);
268
271
  };
269
272
  const replacer = (_key, val) => {
270
- if (val && val.__v_isRef) {
273
+ if (isRef$1(val)) {
271
274
  return replacer(_key, val.value);
272
275
  } else if (isMap(val)) {
273
276
  return {
@@ -414,7 +417,7 @@ var Vue = (function () {
414
417
  /**
415
418
  * @internal
416
419
  */
417
- this._dirtyLevel = 5;
420
+ this._dirtyLevel = 4;
418
421
  /**
419
422
  * @internal
420
423
  */
@@ -434,18 +437,14 @@ var Vue = (function () {
434
437
  recordEffectScope(this, scope);
435
438
  }
436
439
  get dirty() {
437
- if (this._dirtyLevel === 2)
438
- return false;
439
- if (this._dirtyLevel === 3 || this._dirtyLevel === 4) {
440
+ if (this._dirtyLevel === 2 || this._dirtyLevel === 3) {
440
441
  this._dirtyLevel = 1;
441
442
  pauseTracking();
442
443
  for (let i = 0; i < this._depsLength; i++) {
443
444
  const dep = this.deps[i];
444
445
  if (dep.computed) {
445
- if (dep.computed.effect._dirtyLevel === 2)
446
- return true;
447
446
  triggerComputed(dep.computed);
448
- if (this._dirtyLevel >= 5) {
447
+ if (this._dirtyLevel >= 4) {
449
448
  break;
450
449
  }
451
450
  }
@@ -455,10 +454,10 @@ var Vue = (function () {
455
454
  }
456
455
  resetTracking();
457
456
  }
458
- return this._dirtyLevel >= 5;
457
+ return this._dirtyLevel >= 4;
459
458
  }
460
459
  set dirty(v) {
461
- this._dirtyLevel = v ? 5 : 0;
460
+ this._dirtyLevel = v ? 4 : 0;
462
461
  }
463
462
  run() {
464
463
  this._dirtyLevel = 0;
@@ -579,18 +578,9 @@ var Vue = (function () {
579
578
  var _a;
580
579
  pauseScheduling();
581
580
  for (const effect2 of dep.keys()) {
582
- if (!dep.computed && effect2.computed) {
583
- if (dep.get(effect2) === effect2._trackId && effect2._runnings > 0) {
584
- effect2._dirtyLevel = 2;
585
- continue;
586
- }
587
- }
588
581
  let tracking;
589
582
  if (effect2._dirtyLevel < dirtyLevel && (tracking != null ? tracking : tracking = dep.get(effect2) === effect2._trackId)) {
590
583
  effect2._shouldSchedule || (effect2._shouldSchedule = effect2._dirtyLevel === 0);
591
- if (effect2.computed && effect2._dirtyLevel === 2) {
592
- effect2._shouldSchedule = true;
593
- }
594
584
  effect2._dirtyLevel = dirtyLevel;
595
585
  }
596
586
  if (effect2._shouldSchedule && (tracking != null ? tracking : tracking = dep.get(effect2) === effect2._trackId)) {
@@ -598,7 +588,7 @@ var Vue = (function () {
598
588
  (_a = effect2.onTrigger) == null ? void 0 : _a.call(effect2, extend({ effect: effect2 }, debuggerEventExtraInfo));
599
589
  }
600
590
  effect2.trigger();
601
- if ((!effect2._runnings || effect2.allowRecurse) && effect2._dirtyLevel !== 3) {
591
+ if ((!effect2._runnings || effect2.allowRecurse) && effect2._dirtyLevel !== 2) {
602
592
  effect2._shouldSchedule = false;
603
593
  if (effect2.scheduler) {
604
594
  queueEffectSchedulers.push(effect2.scheduler);
@@ -690,7 +680,7 @@ var Vue = (function () {
690
680
  if (dep) {
691
681
  triggerEffects(
692
682
  dep,
693
- 5,
683
+ 4,
694
684
  {
695
685
  target,
696
686
  type,
@@ -1293,7 +1283,7 @@ var Vue = (function () {
1293
1283
  () => getter(this._value),
1294
1284
  () => triggerRefValue(
1295
1285
  this,
1296
- this.effect._dirtyLevel === 3 ? 3 : 4
1286
+ this.effect._dirtyLevel === 2 ? 2 : 3
1297
1287
  )
1298
1288
  );
1299
1289
  this.effect.computed = this;
@@ -1303,7 +1293,7 @@ var Vue = (function () {
1303
1293
  get value() {
1304
1294
  const self = toRaw(this);
1305
1295
  if ((!self._cacheable || self.effect.dirty) && hasChanged(self._value, self._value = self.effect.run())) {
1306
- triggerRefValue(self, 5);
1296
+ triggerRefValue(self, 4);
1307
1297
  }
1308
1298
  trackRefValue(self);
1309
1299
  if (self.effect._dirtyLevel >= 2) {
@@ -1312,7 +1302,7 @@ var Vue = (function () {
1312
1302
 
1313
1303
  getter: `, this.getter);
1314
1304
  }
1315
- triggerRefValue(self, 3);
1305
+ triggerRefValue(self, 2);
1316
1306
  }
1317
1307
  return self._value;
1318
1308
  }
@@ -1367,7 +1357,7 @@ getter: `, this.getter);
1367
1357
  );
1368
1358
  }
1369
1359
  }
1370
- function triggerRefValue(ref2, dirtyLevel = 5, newVal, oldVal) {
1360
+ function triggerRefValue(ref2, dirtyLevel = 4, newVal, oldVal) {
1371
1361
  ref2 = toRaw(ref2);
1372
1362
  const dep = ref2.dep;
1373
1363
  if (dep) {
@@ -1418,12 +1408,12 @@ getter: `, this.getter);
1418
1408
  const oldVal = this._rawValue;
1419
1409
  this._rawValue = newVal;
1420
1410
  this._value = useDirectValue ? newVal : toReactive(newVal);
1421
- triggerRefValue(this, 5, newVal, oldVal);
1411
+ triggerRefValue(this, 4, newVal, oldVal);
1422
1412
  }
1423
1413
  }
1424
1414
  }
1425
1415
  function triggerRef(ref2) {
1426
- triggerRefValue(ref2, 5, ref2.value );
1416
+ triggerRefValue(ref2, 4, ref2.value );
1427
1417
  }
1428
1418
  function unref(ref2) {
1429
1419
  return isRef(ref2) ? ref2.value : ref2;
@@ -3270,7 +3260,6 @@ If this is a native custom element, make sure to exclude it from component resol
3270
3260
  }
3271
3261
  },
3272
3262
  hydrate: hydrateSuspense,
3273
- create: createSuspenseBoundary,
3274
3263
  normalize: normalizeSuspenseChildren
3275
3264
  };
3276
3265
  const Suspense = SuspenseImpl ;
@@ -5626,7 +5615,7 @@ If this is a native custom element, make sure to exclude it from component resol
5626
5615
  return vm;
5627
5616
  }
5628
5617
  }
5629
- Vue.version = `2.6.14-compat:${"3.4.29"}`;
5618
+ Vue.version = `2.6.14-compat:${"3.4.31"}`;
5630
5619
  Vue.config = singletonApp.config;
5631
5620
  Vue.use = (plugin, ...options) => {
5632
5621
  if (plugin && isFunction(plugin.install)) {
@@ -6935,18 +6924,8 @@ If you want to remount the same app, move your app creation logic into a factory
6935
6924
  let domType = node.nodeType;
6936
6925
  vnode.el = node;
6937
6926
  {
6938
- if (!("__vnode" in node)) {
6939
- Object.defineProperty(node, "__vnode", {
6940
- value: vnode,
6941
- enumerable: false
6942
- });
6943
- }
6944
- if (!("__vueParentComponent" in node)) {
6945
- Object.defineProperty(node, "__vueParentComponent", {
6946
- value: parentComponent,
6947
- enumerable: false
6948
- });
6949
- }
6927
+ def(node, "__vnode", vnode, true);
6928
+ def(node, "__vueParentComponent", parentComponent, true);
6950
6929
  }
6951
6930
  if (patchFlag === -2) {
6952
6931
  optimized = false;
@@ -7169,7 +7148,9 @@ Server rendered element contains more child nodes than client vdom.`
7169
7148
  if (props) {
7170
7149
  {
7171
7150
  for (const key in props) {
7172
- if (propHasMismatch(el, key, props[key], vnode, parentComponent)) {
7151
+ if (// #11189 skip if this node has directives that have created hooks
7152
+ // as it could have mutated the DOM in any possible way
7153
+ !(dirs && dirs.some((d) => d.dir.created)) && propHasMismatch(el, key, props[key], vnode, parentComponent)) {
7173
7154
  logMismatchError();
7174
7155
  }
7175
7156
  if (forcePatch && (key.endsWith("value") || key === "indeterminate") || isOn(key) && !isReservedProp(key) || // force hydrate v-bind with .prop modifiers
@@ -7344,7 +7325,6 @@ Server rendered element contains fewer child nodes than client vdom.`
7344
7325
  return [hydrate, hydrateNode];
7345
7326
  }
7346
7327
  function propHasMismatch(el, key, clientValue, vnode, instance) {
7347
- var _a;
7348
7328
  let mismatchType;
7349
7329
  let mismatchKey;
7350
7330
  let actual;
@@ -7367,13 +7347,8 @@ Server rendered element contains fewer child nodes than client vdom.`
7367
7347
  }
7368
7348
  }
7369
7349
  }
7370
- const root = instance == null ? void 0 : instance.subTree;
7371
- if (vnode === root || // eslint-disable-next-line no-restricted-syntax
7372
- (root == null ? void 0 : root.type) === Fragment && root.children.includes(vnode)) {
7373
- const cssVars = (_a = instance == null ? void 0 : instance.getCssVars) == null ? void 0 : _a.call(instance);
7374
- for (const key2 in cssVars) {
7375
- expectedMap.set(`--${key2}`, String(cssVars[key2]));
7376
- }
7350
+ if (instance) {
7351
+ resolveCssVars(instance, vnode, expectedMap);
7377
7352
  }
7378
7353
  if (!isMapEqual(actualMap, expectedMap)) {
7379
7354
  mismatchType = mismatchKey = "style";
@@ -7433,8 +7408,8 @@ Server rendered element contains fewer child nodes than client vdom.`
7433
7408
  const styleMap = /* @__PURE__ */ new Map();
7434
7409
  for (const item of str.split(";")) {
7435
7410
  let [key, value] = item.split(":");
7436
- key = key == null ? void 0 : key.trim();
7437
- value = value == null ? void 0 : value.trim();
7411
+ key = key.trim();
7412
+ value = value && value.trim();
7438
7413
  if (key && value) {
7439
7414
  styleMap.set(key, value);
7440
7415
  }
@@ -7452,6 +7427,18 @@ Server rendered element contains fewer child nodes than client vdom.`
7452
7427
  }
7453
7428
  return true;
7454
7429
  }
7430
+ function resolveCssVars(instance, vnode, expectedMap) {
7431
+ const root = instance.subTree;
7432
+ if (instance.getCssVars && (vnode === root || root && root.type === Fragment && root.children.includes(vnode))) {
7433
+ const cssVars = instance.getCssVars();
7434
+ for (const key in cssVars) {
7435
+ expectedMap.set(`--${key}`, String(cssVars[key]));
7436
+ }
7437
+ }
7438
+ if (vnode === root && instance.parent) {
7439
+ resolveCssVars(instance.parent, instance.vnode, expectedMap);
7440
+ }
7441
+ }
7455
7442
 
7456
7443
  let supported;
7457
7444
  let perf;
@@ -7769,14 +7756,8 @@ Server rendered element contains fewer child nodes than client vdom.`
7769
7756
  }
7770
7757
  }
7771
7758
  {
7772
- Object.defineProperty(el, "__vnode", {
7773
- value: vnode,
7774
- enumerable: false
7775
- });
7776
- Object.defineProperty(el, "__vueParentComponent", {
7777
- value: parentComponent,
7778
- enumerable: false
7779
- });
7759
+ def(el, "__vnode", vnode, true);
7760
+ def(el, "__vueParentComponent", parentComponent, true);
7780
7761
  }
7781
7762
  if (dirs) {
7782
7763
  invokeDirectiveHook(vnode, null, parentComponent, "beforeMount");
@@ -7838,6 +7819,9 @@ Server rendered element contains fewer child nodes than client vdom.`
7838
7819
  };
7839
7820
  const patchElement = (n1, n2, parentComponent, parentSuspense, namespace, slotScopeIds, optimized) => {
7840
7821
  const el = n2.el = n1.el;
7822
+ {
7823
+ el.__vnode = n2;
7824
+ }
7841
7825
  let { patchFlag, dynamicChildren, dirs } = n2;
7842
7826
  patchFlag |= n1.patchFlag & 16;
7843
7827
  const oldProps = n1.props || EMPTY_OBJ;
@@ -8757,6 +8741,9 @@ Server rendered element contains fewer child nodes than client vdom.`
8757
8741
  dirs,
8758
8742
  memoIndex
8759
8743
  } = vnode;
8744
+ if (patchFlag === -2) {
8745
+ optimized = false;
8746
+ }
8760
8747
  if (ref != null) {
8761
8748
  setRef(ref, null, parentSuspense, vnode, true);
8762
8749
  }
@@ -8788,7 +8775,6 @@ Server rendered element contains fewer child nodes than client vdom.`
8788
8775
  vnode,
8789
8776
  parentComponent,
8790
8777
  parentSuspense,
8791
- optimized,
8792
8778
  internals,
8793
8779
  doRemove
8794
8780
  );
@@ -10083,7 +10069,7 @@ Server rendered element contains fewer child nodes than client vdom.`
10083
10069
  }
10084
10070
  updateCssVars(n2);
10085
10071
  },
10086
- remove(vnode, parentComponent, parentSuspense, optimized, { um: unmount, o: { remove: hostRemove } }, doRemove) {
10072
+ remove(vnode, parentComponent, parentSuspense, { um: unmount, o: { remove: hostRemove } }, doRemove) {
10087
10073
  const { shapeFlag, children, anchor, targetAnchor, target, props } = vnode;
10088
10074
  if (target) {
10089
10075
  hostRemove(targetAnchor);
@@ -11334,7 +11320,7 @@ Component that was made reactive: `,
11334
11320
  return true;
11335
11321
  }
11336
11322
 
11337
- const version = "3.4.29";
11323
+ const version = "3.4.31";
11338
11324
  const warn = warn$1 ;
11339
11325
  const ErrorTypeStrings = ErrorTypeStrings$1 ;
11340
11326
  const devtools = devtools$1 ;
@@ -11961,7 +11947,10 @@ Component that was made reactive: `,
11961
11947
  if (value == null || isBoolean && !includeBooleanAttr(value)) {
11962
11948
  el.removeAttribute(key);
11963
11949
  } else {
11964
- el.setAttribute(key, isBoolean ? "" : String(value));
11950
+ el.setAttribute(
11951
+ key,
11952
+ isBoolean ? "" : isSymbol(value) ? String(value) : value
11953
+ );
11965
11954
  }
11966
11955
  }
11967
11956
  }
@@ -12163,7 +12152,7 @@ Expected function or array of functions, received type ${typeof value}.`
12163
12152
  parentSuspense,
12164
12153
  unmountChildren
12165
12154
  );
12166
- if (key === "value" || key === "checked" || key === "selected") {
12155
+ if (!el.tagName.includes("-") && (key === "value" || key === "checked" || key === "selected")) {
12167
12156
  patchAttr(el, key, nextValue, isSVG, parentComponent, key !== "value");
12168
12157
  }
12169
12158
  } else {