@vue/compat 3.5.1 → 3.5.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @vue/compat v3.5.1
2
+ * @vue/compat v3.5.2
3
3
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
4
4
  * @license MIT
5
5
  **/
@@ -688,9 +688,6 @@ function isDirty(sub) {
688
688
  return false;
689
689
  }
690
690
  function refreshComputed(computed) {
691
- if (computed.flags & 2) {
692
- return false;
693
- }
694
691
  if (computed.flags & 4 && !(computed.flags & 16)) {
695
692
  return;
696
693
  }
@@ -711,7 +708,7 @@ function refreshComputed(computed) {
711
708
  shouldTrack = true;
712
709
  try {
713
710
  prepareDeps(computed);
714
- const value = computed.fn();
711
+ const value = computed.fn(computed._value);
715
712
  if (dep.version === 0 || hasChanged(value, computed._value)) {
716
713
  computed._value = value;
717
714
  dep.version++;
@@ -820,7 +817,7 @@ class Dep {
820
817
  }
821
818
  }
822
819
  track(debugInfo) {
823
- if (!activeSub || !shouldTrack) {
820
+ if (!activeSub || !shouldTrack || activeSub === this.computed) {
824
821
  return;
825
822
  }
826
823
  let link = this.activeLink;
@@ -1843,7 +1840,7 @@ function toValue(source) {
1843
1840
  return isFunction(source) ? source() : unref(source);
1844
1841
  }
1845
1842
  const shallowUnwrapHandlers = {
1846
- get: (target, key, receiver) => unref(Reflect.get(target, key, receiver)),
1843
+ get: (target, key, receiver) => key === "__v_raw" ? target : unref(Reflect.get(target, key, receiver)),
1847
1844
  set: (target, key, value, receiver) => {
1848
1845
  const oldValue = target[key];
1849
1846
  if (isRef(oldValue) && !isRef(value)) {
@@ -1975,8 +1972,8 @@ class ComputedRefImpl {
1975
1972
  * @internal
1976
1973
  */
1977
1974
  notify() {
1975
+ this.flags |= 16;
1978
1976
  if (activeSub !== this) {
1979
- this.flags |= 16;
1980
1977
  this.dep.notify();
1981
1978
  } else if (!!(process.env.NODE_ENV !== "production")) ;
1982
1979
  }
@@ -2550,9 +2547,7 @@ function queueJob(job) {
2550
2547
  } else {
2551
2548
  queue.splice(findInsertionIndex(jobId), 0, job);
2552
2549
  }
2553
- if (!(job.flags & 4)) {
2554
- job.flags |= 1;
2555
- }
2550
+ job.flags |= 1;
2556
2551
  queueFlush();
2557
2552
  }
2558
2553
  }
@@ -2568,9 +2563,7 @@ function queuePostFlushCb(cb) {
2568
2563
  activePostFlushCbs.splice(postFlushIndex + 1, 0, cb);
2569
2564
  } else if (!(cb.flags & 1)) {
2570
2565
  pendingPostFlushCbs.push(cb);
2571
- if (!(cb.flags & 4)) {
2572
- cb.flags |= 1;
2573
- }
2566
+ cb.flags |= 1;
2574
2567
  }
2575
2568
  } else {
2576
2569
  pendingPostFlushCbs.push(...cb);
@@ -2592,6 +2585,9 @@ function flushPreFlushCbs(instance, seen, i = isFlushing ? flushIndex + 1 : 0) {
2592
2585
  }
2593
2586
  queue.splice(i, 1);
2594
2587
  i--;
2588
+ if (cb.flags & 4) {
2589
+ cb.flags &= ~1;
2590
+ }
2595
2591
  cb();
2596
2592
  cb.flags &= ~1;
2597
2593
  }
@@ -2616,6 +2612,9 @@ function flushPostFlushCbs(seen) {
2616
2612
  if (!!(process.env.NODE_ENV !== "production") && checkRecursiveUpdates(seen, cb)) {
2617
2613
  continue;
2618
2614
  }
2615
+ if (cb.flags & 4) {
2616
+ cb.flags &= ~1;
2617
+ }
2619
2618
  if (!(cb.flags & 8)) cb();
2620
2619
  cb.flags &= ~1;
2621
2620
  }
@@ -2638,6 +2637,9 @@ function flushJobs(seen) {
2638
2637
  if (!!(process.env.NODE_ENV !== "production") && check(job)) {
2639
2638
  continue;
2640
2639
  }
2640
+ if (job.flags & 4) {
2641
+ job.flags &= ~1;
2642
+ }
2641
2643
  callWithErrorHandling(
2642
2644
  job,
2643
2645
  job.i,
@@ -2647,6 +2649,12 @@ function flushJobs(seen) {
2647
2649
  }
2648
2650
  }
2649
2651
  } finally {
2652
+ for (; flushIndex < queue.length; flushIndex++) {
2653
+ const job = queue[flushIndex];
2654
+ if (job) {
2655
+ job.flags &= ~1;
2656
+ }
2657
+ }
2650
2658
  flushIndex = 0;
2651
2659
  queue.length = 0;
2652
2660
  flushPostFlushCbs(seen);
@@ -3934,6 +3942,7 @@ const BaseTransitionImpl = {
3934
3942
  if (!(instance.job.flags & 8)) {
3935
3943
  instance.update();
3936
3944
  }
3945
+ delete leavingHooks.afterLeave;
3937
3946
  };
3938
3947
  return emptyPlaceholder(child);
3939
3948
  } else if (mode === "in-out" && innerChild.type !== Comment) {
@@ -4215,6 +4224,34 @@ function markAsyncBoundary(instance) {
4215
4224
  instance.ids = [instance.ids[0] + instance.ids[2]++ + "-", 0, 0];
4216
4225
  }
4217
4226
 
4227
+ const knownTemplateRefs = /* @__PURE__ */ new WeakSet();
4228
+ function useTemplateRef(key) {
4229
+ const i = getCurrentInstance();
4230
+ const r = shallowRef(null);
4231
+ if (i) {
4232
+ const refs = i.refs === EMPTY_OBJ ? i.refs = {} : i.refs;
4233
+ let desc;
4234
+ if (!!(process.env.NODE_ENV !== "production") && (desc = Object.getOwnPropertyDescriptor(refs, key)) && !desc.configurable) {
4235
+ warn$1(`useTemplateRef('${key}') already exists.`);
4236
+ } else {
4237
+ Object.defineProperty(refs, key, {
4238
+ enumerable: true,
4239
+ get: () => r.value,
4240
+ set: (val) => r.value = val
4241
+ });
4242
+ }
4243
+ } else if (!!(process.env.NODE_ENV !== "production")) {
4244
+ warn$1(
4245
+ `useTemplateRef() is called when there is no active component instance to be associated with.`
4246
+ );
4247
+ }
4248
+ const ret = !!(process.env.NODE_ENV !== "production") ? readonly(r) : r;
4249
+ if (!!(process.env.NODE_ENV !== "production")) {
4250
+ knownTemplateRefs.add(ret);
4251
+ }
4252
+ return ret;
4253
+ }
4254
+
4218
4255
  function setRef(rawRef, oldRawRef, parentSuspense, vnode, isUnmount = false) {
4219
4256
  if (isArray(rawRef)) {
4220
4257
  rawRef.forEach(
@@ -4243,7 +4280,13 @@ function setRef(rawRef, oldRawRef, parentSuspense, vnode, isUnmount = false) {
4243
4280
  const oldRef = oldRawRef && oldRawRef.r;
4244
4281
  const refs = owner.refs === EMPTY_OBJ ? owner.refs = {} : owner.refs;
4245
4282
  const setupState = owner.setupState;
4246
- const canSetSetupRef = setupState === EMPTY_OBJ ? () => false : (key) => hasOwn(setupState, key) && !(Object.getOwnPropertyDescriptor(refs, key) || EMPTY_OBJ).get;
4283
+ const rawSetupState = toRaw(setupState);
4284
+ const canSetSetupRef = setupState === EMPTY_OBJ ? () => false : (key) => {
4285
+ if (!!(process.env.NODE_ENV !== "production") && knownTemplateRefs.has(rawSetupState[key])) {
4286
+ return false;
4287
+ }
4288
+ return hasOwn(rawSetupState, key);
4289
+ };
4247
4290
  if (oldRef != null && oldRef !== ref) {
4248
4291
  if (isString(oldRef)) {
4249
4292
  refs[oldRef] = null;
@@ -5311,7 +5354,7 @@ const KeepAliveImpl = {
5311
5354
  return () => {
5312
5355
  pendingCacheKey = null;
5313
5356
  if (!slots.default) {
5314
- return null;
5357
+ return current = null;
5315
5358
  }
5316
5359
  const children = slots.default();
5317
5360
  const rawVNode = children[0];
@@ -7088,7 +7131,7 @@ function createCompatVue$1(createApp, createSingletonApp) {
7088
7131
  return vm;
7089
7132
  }
7090
7133
  }
7091
- Vue.version = `2.6.14-compat:${"3.5.1"}`;
7134
+ Vue.version = `2.6.14-compat:${"3.5.2"}`;
7092
7135
  Vue.config = singletonApp.config;
7093
7136
  Vue.use = (plugin, ...options) => {
7094
7137
  if (plugin && isFunction(plugin.install)) {
@@ -10241,7 +10284,8 @@ function renderComponentRoot(instance) {
10241
10284
  data,
10242
10285
  setupState,
10243
10286
  ctx,
10244
- inheritAttrs
10287
+ inheritAttrs,
10288
+ isMounted
10245
10289
  } = instance;
10246
10290
  const prev = setCurrentRenderingInstance(instance);
10247
10291
  let result;
@@ -10382,7 +10426,7 @@ function renderComponentRoot(instance) {
10382
10426
  `Component inside <Transition> renders non-element root node that cannot be animated.`
10383
10427
  );
10384
10428
  }
10385
- root.transition = vnode.transition;
10429
+ root.transition = isMounted ? vnode.component.subTree.transition : vnode.transition;
10386
10430
  }
10387
10431
  if (!!(process.env.NODE_ENV !== "production") && setRoot) {
10388
10432
  setRoot(root);
@@ -10876,7 +10920,7 @@ function createSuspenseBoundary(vnode, parentSuspense, parentComponent, containe
10876
10920
  };
10877
10921
  }
10878
10922
  if (activeBranch) {
10879
- if (parentNode(activeBranch.el) !== suspense.hiddenContainer) {
10923
+ if (parentNode(activeBranch.el) === container2) {
10880
10924
  anchor = next(activeBranch);
10881
10925
  }
10882
10926
  unmount(activeBranch, parentComponent2, suspense, true);
@@ -12030,29 +12074,6 @@ const computed = (getterOrOptions, debugOptions) => {
12030
12074
  return c;
12031
12075
  };
12032
12076
 
12033
- function useTemplateRef(key) {
12034
- const i = getCurrentInstance();
12035
- const r = shallowRef(null);
12036
- if (i) {
12037
- const refs = i.refs === EMPTY_OBJ ? i.refs = {} : i.refs;
12038
- let desc;
12039
- if (!!(process.env.NODE_ENV !== "production") && (desc = Object.getOwnPropertyDescriptor(refs, key)) && !desc.configurable) {
12040
- warn$1(`useTemplateRef('${key}') already exists.`);
12041
- } else {
12042
- Object.defineProperty(refs, key, {
12043
- enumerable: true,
12044
- get: () => r.value,
12045
- set: (val) => r.value = val
12046
- });
12047
- }
12048
- } else if (!!(process.env.NODE_ENV !== "production")) {
12049
- warn$1(
12050
- `useTemplateRef() is called when there is no active component instance to be associated with.`
12051
- );
12052
- }
12053
- return !!(process.env.NODE_ENV !== "production") ? readonly(r) : r;
12054
- }
12055
-
12056
12077
  function h(type, propsOrChildren, children) {
12057
12078
  const l = arguments.length;
12058
12079
  if (l === 2) {
@@ -12278,7 +12299,7 @@ function isMemoSame(cached, memo) {
12278
12299
  return true;
12279
12300
  }
12280
12301
 
12281
- const version = "3.5.1";
12302
+ const version = "3.5.2";
12282
12303
  const warn = !!(process.env.NODE_ENV !== "production") ? warn$1 : NOOP;
12283
12304
  const ErrorTypeStrings = ErrorTypeStrings$1 ;
12284
12305
  const devtools = !!(process.env.NODE_ENV !== "production") || true ? devtools$1 : void 0;
@@ -16062,7 +16083,7 @@ const tokenizer = new Tokenizer(stack, {
16062
16083
  rawName: raw,
16063
16084
  exp: void 0,
16064
16085
  arg: void 0,
16065
- modifiers: raw === "." ? ["prop"] : [],
16086
+ modifiers: raw === "." ? [createSimpleExpression("prop")] : [],
16066
16087
  loc: getLoc(start)
16067
16088
  };
16068
16089
  if (name === "pre") {
@@ -16105,7 +16126,8 @@ const tokenizer = new Tokenizer(stack, {
16105
16126
  setLocEnd(arg.loc, end);
16106
16127
  }
16107
16128
  } else {
16108
- currentProp.modifiers.push(mod);
16129
+ const exp = createSimpleExpression(mod, true, getLoc(start, end));
16130
+ currentProp.modifiers.push(exp);
16109
16131
  }
16110
16132
  },
16111
16133
  onattribdata(start, end) {
@@ -16168,7 +16190,9 @@ const tokenizer = new Tokenizer(stack, {
16168
16190
  currentProp.forParseResult = parseForExpression(currentProp.exp);
16169
16191
  }
16170
16192
  let syncIndex = -1;
16171
- if (currentProp.name === "bind" && (syncIndex = currentProp.modifiers.indexOf("sync")) > -1 && checkCompatEnabled(
16193
+ if (currentProp.name === "bind" && (syncIndex = currentProp.modifiers.findIndex(
16194
+ (mod) => mod.content === "sync"
16195
+ )) > -1 && checkCompatEnabled(
16172
16196
  "COMPILER_V_BIND_SYNC",
16173
16197
  currentOptions,
16174
16198
  currentProp.loc,
@@ -18158,7 +18182,7 @@ const transformBind = (dir, _node, context) => {
18158
18182
  } else if (!arg.isStatic) {
18159
18183
  arg.content = `${arg.content} || ""`;
18160
18184
  }
18161
- if (modifiers.includes("camel")) {
18185
+ if (modifiers.some((mod) => mod.content === "camel")) {
18162
18186
  if (arg.type === 4) {
18163
18187
  if (arg.isStatic) {
18164
18188
  arg.content = camelize(arg.content);
@@ -18171,10 +18195,10 @@ const transformBind = (dir, _node, context) => {
18171
18195
  }
18172
18196
  }
18173
18197
  if (!context.inSSR) {
18174
- if (modifiers.includes("prop")) {
18198
+ if (modifiers.some((mod) => mod.content === "prop")) {
18175
18199
  injectPrefix(arg, ".");
18176
18200
  }
18177
- if (modifiers.includes("attr")) {
18201
+ if (modifiers.some((mod) => mod.content === "attr")) {
18178
18202
  injectPrefix(arg, "^");
18179
18203
  }
18180
18204
  }
@@ -18987,7 +19011,7 @@ function buildProps(node, context, props = node.props, isComponent, isDynamicCom
18987
19011
  }
18988
19012
  continue;
18989
19013
  }
18990
- if (isVBind && modifiers.includes("prop")) {
19014
+ if (isVBind && modifiers.some((mod) => mod.content === "prop")) {
18991
19015
  patchFlag |= 32;
18992
19016
  }
18993
19017
  const directiveTransform = context.directiveTransforms[name];
@@ -19501,7 +19525,7 @@ const transformModel$1 = (dir, node, context) => {
19501
19525
  createObjectProperty(eventName, assignmentExp)
19502
19526
  ];
19503
19527
  if (dir.modifiers.length && node.tagType === 1) {
19504
- const modifiers = dir.modifiers.map((m) => (isSimpleIdentifier(m) ? m : JSON.stringify(m)) + `: true`).join(`, `);
19528
+ const modifiers = dir.modifiers.map((m) => m.content).map((m) => (isSimpleIdentifier(m) ? m : JSON.stringify(m)) + `: true`).join(`, `);
19505
19529
  const modifiersKey = arg ? isStaticExp(arg) ? `${arg.content}Modifiers` : createCompoundExpression([arg, ' + "Modifiers"']) : `modelModifiers`;
19506
19530
  props.push(
19507
19531
  createObjectProperty(
@@ -20050,7 +20074,7 @@ const resolveModifiers = (key, modifiers, context, loc) => {
20050
20074
  const nonKeyModifiers = [];
20051
20075
  const eventOptionModifiers = [];
20052
20076
  for (let i = 0; i < modifiers.length; i++) {
20053
- const modifier = modifiers[i];
20077
+ const modifier = modifiers[i].content;
20054
20078
  if (modifier === "native" && checkCompatEnabled(
20055
20079
  "COMPILER_V_ON_NATIVE",
20056
20080
  context,
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @vue/compat v3.5.1
2
+ * @vue/compat v3.5.2
3
3
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
4
4
  * @license MIT
5
5
  **/
@@ -691,9 +691,6 @@ var Vue = (function () {
691
691
  return false;
692
692
  }
693
693
  function refreshComputed(computed) {
694
- if (computed.flags & 2) {
695
- return false;
696
- }
697
694
  if (computed.flags & 4 && !(computed.flags & 16)) {
698
695
  return;
699
696
  }
@@ -714,7 +711,7 @@ var Vue = (function () {
714
711
  shouldTrack = true;
715
712
  try {
716
713
  prepareDeps(computed);
717
- const value = computed.fn();
714
+ const value = computed.fn(computed._value);
718
715
  if (dep.version === 0 || hasChanged(value, computed._value)) {
719
716
  computed._value = value;
720
717
  dep.version++;
@@ -823,7 +820,7 @@ var Vue = (function () {
823
820
  }
824
821
  }
825
822
  track(debugInfo) {
826
- if (!activeSub || !shouldTrack) {
823
+ if (!activeSub || !shouldTrack || activeSub === this.computed) {
827
824
  return;
828
825
  }
829
826
  let link = this.activeLink;
@@ -1836,7 +1833,7 @@ var Vue = (function () {
1836
1833
  return isFunction(source) ? source() : unref(source);
1837
1834
  }
1838
1835
  const shallowUnwrapHandlers = {
1839
- get: (target, key, receiver) => unref(Reflect.get(target, key, receiver)),
1836
+ get: (target, key, receiver) => key === "__v_raw" ? target : unref(Reflect.get(target, key, receiver)),
1840
1837
  set: (target, key, value, receiver) => {
1841
1838
  const oldValue = target[key];
1842
1839
  if (isRef(oldValue) && !isRef(value)) {
@@ -1968,8 +1965,8 @@ var Vue = (function () {
1968
1965
  * @internal
1969
1966
  */
1970
1967
  notify() {
1968
+ this.flags |= 16;
1971
1969
  if (activeSub !== this) {
1972
- this.flags |= 16;
1973
1970
  this.dep.notify();
1974
1971
  }
1975
1972
  }
@@ -2538,9 +2535,7 @@ var Vue = (function () {
2538
2535
  } else {
2539
2536
  queue.splice(findInsertionIndex(jobId), 0, job);
2540
2537
  }
2541
- if (!(job.flags & 4)) {
2542
- job.flags |= 1;
2543
- }
2538
+ job.flags |= 1;
2544
2539
  queueFlush();
2545
2540
  }
2546
2541
  }
@@ -2556,9 +2551,7 @@ var Vue = (function () {
2556
2551
  activePostFlushCbs.splice(postFlushIndex + 1, 0, cb);
2557
2552
  } else if (!(cb.flags & 1)) {
2558
2553
  pendingPostFlushCbs.push(cb);
2559
- if (!(cb.flags & 4)) {
2560
- cb.flags |= 1;
2561
- }
2554
+ cb.flags |= 1;
2562
2555
  }
2563
2556
  } else {
2564
2557
  pendingPostFlushCbs.push(...cb);
@@ -2580,6 +2573,9 @@ var Vue = (function () {
2580
2573
  }
2581
2574
  queue.splice(i, 1);
2582
2575
  i--;
2576
+ if (cb.flags & 4) {
2577
+ cb.flags &= ~1;
2578
+ }
2583
2579
  cb();
2584
2580
  cb.flags &= ~1;
2585
2581
  }
@@ -2604,6 +2600,9 @@ var Vue = (function () {
2604
2600
  if (checkRecursiveUpdates(seen, cb)) {
2605
2601
  continue;
2606
2602
  }
2603
+ if (cb.flags & 4) {
2604
+ cb.flags &= ~1;
2605
+ }
2607
2606
  if (!(cb.flags & 8)) cb();
2608
2607
  cb.flags &= ~1;
2609
2608
  }
@@ -2626,6 +2625,9 @@ var Vue = (function () {
2626
2625
  if (check(job)) {
2627
2626
  continue;
2628
2627
  }
2628
+ if (job.flags & 4) {
2629
+ job.flags &= ~1;
2630
+ }
2629
2631
  callWithErrorHandling(
2630
2632
  job,
2631
2633
  job.i,
@@ -2635,6 +2637,12 @@ var Vue = (function () {
2635
2637
  }
2636
2638
  }
2637
2639
  } finally {
2640
+ for (; flushIndex < queue.length; flushIndex++) {
2641
+ const job = queue[flushIndex];
2642
+ if (job) {
2643
+ job.flags &= ~1;
2644
+ }
2645
+ }
2638
2646
  flushIndex = 0;
2639
2647
  queue.length = 0;
2640
2648
  flushPostFlushCbs(seen);
@@ -3919,6 +3927,7 @@ Details: https://v3-migration.vuejs.org/breaking-changes/migration-build.html`
3919
3927
  if (!(instance.job.flags & 8)) {
3920
3928
  instance.update();
3921
3929
  }
3930
+ delete leavingHooks.afterLeave;
3922
3931
  };
3923
3932
  return emptyPlaceholder(child);
3924
3933
  } else if (mode === "in-out" && innerChild.type !== Comment) {
@@ -4199,6 +4208,34 @@ Details: https://v3-migration.vuejs.org/breaking-changes/migration-build.html`
4199
4208
  instance.ids = [instance.ids[0] + instance.ids[2]++ + "-", 0, 0];
4200
4209
  }
4201
4210
 
4211
+ const knownTemplateRefs = /* @__PURE__ */ new WeakSet();
4212
+ function useTemplateRef(key) {
4213
+ const i = getCurrentInstance();
4214
+ const r = shallowRef(null);
4215
+ if (i) {
4216
+ const refs = i.refs === EMPTY_OBJ ? i.refs = {} : i.refs;
4217
+ let desc;
4218
+ if ((desc = Object.getOwnPropertyDescriptor(refs, key)) && !desc.configurable) {
4219
+ warn$1(`useTemplateRef('${key}') already exists.`);
4220
+ } else {
4221
+ Object.defineProperty(refs, key, {
4222
+ enumerable: true,
4223
+ get: () => r.value,
4224
+ set: (val) => r.value = val
4225
+ });
4226
+ }
4227
+ } else {
4228
+ warn$1(
4229
+ `useTemplateRef() is called when there is no active component instance to be associated with.`
4230
+ );
4231
+ }
4232
+ const ret = readonly(r) ;
4233
+ {
4234
+ knownTemplateRefs.add(ret);
4235
+ }
4236
+ return ret;
4237
+ }
4238
+
4202
4239
  function setRef(rawRef, oldRawRef, parentSuspense, vnode, isUnmount = false) {
4203
4240
  if (isArray(rawRef)) {
4204
4241
  rawRef.forEach(
@@ -4227,7 +4264,13 @@ Details: https://v3-migration.vuejs.org/breaking-changes/migration-build.html`
4227
4264
  const oldRef = oldRawRef && oldRawRef.r;
4228
4265
  const refs = owner.refs === EMPTY_OBJ ? owner.refs = {} : owner.refs;
4229
4266
  const setupState = owner.setupState;
4230
- const canSetSetupRef = setupState === EMPTY_OBJ ? () => false : (key) => hasOwn(setupState, key) && !(Object.getOwnPropertyDescriptor(refs, key) || EMPTY_OBJ).get;
4267
+ const rawSetupState = toRaw(setupState);
4268
+ const canSetSetupRef = setupState === EMPTY_OBJ ? () => false : (key) => {
4269
+ if (knownTemplateRefs.has(rawSetupState[key])) {
4270
+ return false;
4271
+ }
4272
+ return hasOwn(rawSetupState, key);
4273
+ };
4231
4274
  if (oldRef != null && oldRef !== ref) {
4232
4275
  if (isString(oldRef)) {
4233
4276
  refs[oldRef] = null;
@@ -5278,7 +5321,7 @@ Server rendered element contains fewer child nodes than client vdom.`
5278
5321
  return () => {
5279
5322
  pendingCacheKey = null;
5280
5323
  if (!slots.default) {
5281
- return null;
5324
+ return current = null;
5282
5325
  }
5283
5326
  const children = slots.default();
5284
5327
  const rawVNode = children[0];
@@ -7050,7 +7093,7 @@ If this is a native custom element, make sure to exclude it from component resol
7050
7093
  return vm;
7051
7094
  }
7052
7095
  }
7053
- Vue.version = `2.6.14-compat:${"3.5.1"}`;
7096
+ Vue.version = `2.6.14-compat:${"3.5.2"}`;
7054
7097
  Vue.config = singletonApp.config;
7055
7098
  Vue.use = (plugin, ...options) => {
7056
7099
  if (plugin && isFunction(plugin.install)) {
@@ -10141,7 +10184,8 @@ If you want to remount the same app, move your app creation logic into a factory
10141
10184
  data,
10142
10185
  setupState,
10143
10186
  ctx,
10144
- inheritAttrs
10187
+ inheritAttrs,
10188
+ isMounted
10145
10189
  } = instance;
10146
10190
  const prev = setCurrentRenderingInstance(instance);
10147
10191
  let result;
@@ -10282,7 +10326,7 @@ If you want to remount the same app, move your app creation logic into a factory
10282
10326
  `Component inside <Transition> renders non-element root node that cannot be animated.`
10283
10327
  );
10284
10328
  }
10285
- root.transition = vnode.transition;
10329
+ root.transition = isMounted ? vnode.component.subTree.transition : vnode.transition;
10286
10330
  }
10287
10331
  if (setRoot) {
10288
10332
  setRoot(root);
@@ -10776,7 +10820,7 @@ If you want to remount the same app, move your app creation logic into a factory
10776
10820
  };
10777
10821
  }
10778
10822
  if (activeBranch) {
10779
- if (parentNode(activeBranch.el) !== suspense.hiddenContainer) {
10823
+ if (parentNode(activeBranch.el) === container2) {
10780
10824
  anchor = next(activeBranch);
10781
10825
  }
10782
10826
  unmount(activeBranch, parentComponent2, suspense, true);
@@ -11902,29 +11946,6 @@ Component that was made reactive: `,
11902
11946
  return c;
11903
11947
  };
11904
11948
 
11905
- function useTemplateRef(key) {
11906
- const i = getCurrentInstance();
11907
- const r = shallowRef(null);
11908
- if (i) {
11909
- const refs = i.refs === EMPTY_OBJ ? i.refs = {} : i.refs;
11910
- let desc;
11911
- if ((desc = Object.getOwnPropertyDescriptor(refs, key)) && !desc.configurable) {
11912
- warn$1(`useTemplateRef('${key}') already exists.`);
11913
- } else {
11914
- Object.defineProperty(refs, key, {
11915
- enumerable: true,
11916
- get: () => r.value,
11917
- set: (val) => r.value = val
11918
- });
11919
- }
11920
- } else {
11921
- warn$1(
11922
- `useTemplateRef() is called when there is no active component instance to be associated with.`
11923
- );
11924
- }
11925
- return readonly(r) ;
11926
- }
11927
-
11928
11949
  function h(type, propsOrChildren, children) {
11929
11950
  const l = arguments.length;
11930
11951
  if (l === 2) {
@@ -12150,7 +12171,7 @@ Component that was made reactive: `,
12150
12171
  return true;
12151
12172
  }
12152
12173
 
12153
- const version = "3.5.1";
12174
+ const version = "3.5.2";
12154
12175
  const warn = warn$1 ;
12155
12176
  const ErrorTypeStrings = ErrorTypeStrings$1 ;
12156
12177
  const devtools = devtools$1 ;
@@ -15870,7 +15891,7 @@ Use a v-bind binding combined with a v-on listener that emits update:x event ins
15870
15891
  rawName: raw,
15871
15892
  exp: void 0,
15872
15893
  arg: void 0,
15873
- modifiers: raw === "." ? ["prop"] : [],
15894
+ modifiers: raw === "." ? [createSimpleExpression("prop")] : [],
15874
15895
  loc: getLoc(start)
15875
15896
  };
15876
15897
  if (name === "pre") {
@@ -15913,7 +15934,8 @@ Use a v-bind binding combined with a v-on listener that emits update:x event ins
15913
15934
  setLocEnd(arg.loc, end);
15914
15935
  }
15915
15936
  } else {
15916
- currentProp.modifiers.push(mod);
15937
+ const exp = createSimpleExpression(mod, true, getLoc(start, end));
15938
+ currentProp.modifiers.push(exp);
15917
15939
  }
15918
15940
  },
15919
15941
  onattribdata(start, end) {
@@ -15976,7 +15998,9 @@ Use a v-bind binding combined with a v-on listener that emits update:x event ins
15976
15998
  currentProp.forParseResult = parseForExpression(currentProp.exp);
15977
15999
  }
15978
16000
  let syncIndex = -1;
15979
- if (currentProp.name === "bind" && (syncIndex = currentProp.modifiers.indexOf("sync")) > -1 && checkCompatEnabled(
16001
+ if (currentProp.name === "bind" && (syncIndex = currentProp.modifiers.findIndex(
16002
+ (mod) => mod.content === "sync"
16003
+ )) > -1 && checkCompatEnabled(
15980
16004
  "COMPILER_V_BIND_SYNC",
15981
16005
  currentOptions,
15982
16006
  currentProp.loc,
@@ -17963,7 +17987,7 @@ Use a v-bind binding combined with a v-on listener that emits update:x event ins
17963
17987
  } else if (!arg.isStatic) {
17964
17988
  arg.content = `${arg.content} || ""`;
17965
17989
  }
17966
- if (modifiers.includes("camel")) {
17990
+ if (modifiers.some((mod) => mod.content === "camel")) {
17967
17991
  if (arg.type === 4) {
17968
17992
  if (arg.isStatic) {
17969
17993
  arg.content = camelize(arg.content);
@@ -17976,10 +18000,10 @@ Use a v-bind binding combined with a v-on listener that emits update:x event ins
17976
18000
  }
17977
18001
  }
17978
18002
  if (!context.inSSR) {
17979
- if (modifiers.includes("prop")) {
18003
+ if (modifiers.some((mod) => mod.content === "prop")) {
17980
18004
  injectPrefix(arg, ".");
17981
18005
  }
17982
- if (modifiers.includes("attr")) {
18006
+ if (modifiers.some((mod) => mod.content === "attr")) {
17983
18007
  injectPrefix(arg, "^");
17984
18008
  }
17985
18009
  }
@@ -18792,7 +18816,7 @@ Use a v-bind binding combined with a v-on listener that emits update:x event ins
18792
18816
  }
18793
18817
  continue;
18794
18818
  }
18795
- if (isVBind && modifiers.includes("prop")) {
18819
+ if (isVBind && modifiers.some((mod) => mod.content === "prop")) {
18796
18820
  patchFlag |= 32;
18797
18821
  }
18798
18822
  const directiveTransform = context.directiveTransforms[name];
@@ -19306,7 +19330,7 @@ Use a v-bind binding combined with a v-on listener that emits update:x event ins
19306
19330
  createObjectProperty(eventName, assignmentExp)
19307
19331
  ];
19308
19332
  if (dir.modifiers.length && node.tagType === 1) {
19309
- const modifiers = dir.modifiers.map((m) => (isSimpleIdentifier(m) ? m : JSON.stringify(m)) + `: true`).join(`, `);
19333
+ const modifiers = dir.modifiers.map((m) => m.content).map((m) => (isSimpleIdentifier(m) ? m : JSON.stringify(m)) + `: true`).join(`, `);
19310
19334
  const modifiersKey = arg ? isStaticExp(arg) ? `${arg.content}Modifiers` : createCompoundExpression([arg, ' + "Modifiers"']) : `modelModifiers`;
19311
19335
  props.push(
19312
19336
  createObjectProperty(
@@ -19855,7 +19879,7 @@ Use a v-bind binding combined with a v-on listener that emits update:x event ins
19855
19879
  const nonKeyModifiers = [];
19856
19880
  const eventOptionModifiers = [];
19857
19881
  for (let i = 0; i < modifiers.length; i++) {
19858
- const modifier = modifiers[i];
19882
+ const modifier = modifiers[i].content;
19859
19883
  if (modifier === "native" && checkCompatEnabled(
19860
19884
  "COMPILER_V_ON_NATIVE",
19861
19885
  context,