@vue/compat 3.5.25 → 3.5.26

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.25
2
+ * @vue/compat v3.5.26
3
3
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
4
4
  * @license MIT
5
5
  **/
@@ -1005,13 +1005,13 @@ var Vue = (function () {
1005
1005
  }
1006
1006
  }
1007
1007
  const targetMap = /* @__PURE__ */ new WeakMap();
1008
- const ITERATE_KEY = Symbol(
1008
+ const ITERATE_KEY = /* @__PURE__ */ Symbol(
1009
1009
  "Object iterate"
1010
1010
  );
1011
- const MAP_KEY_ITERATE_KEY = Symbol(
1011
+ const MAP_KEY_ITERATE_KEY = /* @__PURE__ */ Symbol(
1012
1012
  "Map keys iterate"
1013
1013
  );
1014
- const ARRAY_ITERATE_KEY = Symbol(
1014
+ const ARRAY_ITERATE_KEY = /* @__PURE__ */ Symbol(
1015
1015
  "Array iterate"
1016
1016
  );
1017
1017
  function track(target, type, key) {
@@ -3379,65 +3379,6 @@ Details: https://v3-migration.vuejs.org/breaking-changes/migration-build.html`
3379
3379
  return instance.proxy;
3380
3380
  }
3381
3381
 
3382
- const compatModelEventPrefix = `onModelCompat:`;
3383
- const warnedTypes = /* @__PURE__ */ new WeakSet();
3384
- function convertLegacyVModelProps(vnode) {
3385
- const { type, shapeFlag, props, dynamicProps } = vnode;
3386
- const comp = type;
3387
- if (shapeFlag & 6 && props && "modelValue" in props) {
3388
- if (!isCompatEnabled$1(
3389
- "COMPONENT_V_MODEL",
3390
- // this is a special case where we want to use the vnode component's
3391
- // compat config instead of the current rendering instance (which is the
3392
- // parent of the component that exposes v-model)
3393
- { type }
3394
- )) {
3395
- return;
3396
- }
3397
- if (!warnedTypes.has(comp)) {
3398
- pushWarningContext(vnode);
3399
- warnDeprecation$1("COMPONENT_V_MODEL", { type }, comp);
3400
- popWarningContext();
3401
- warnedTypes.add(comp);
3402
- }
3403
- const model = comp.model || {};
3404
- applyModelFromMixins(model, comp.mixins);
3405
- const { prop = "value", event = "input" } = model;
3406
- if (prop !== "modelValue") {
3407
- props[prop] = props.modelValue;
3408
- delete props.modelValue;
3409
- }
3410
- if (dynamicProps) {
3411
- dynamicProps[dynamicProps.indexOf("modelValue")] = prop;
3412
- }
3413
- props[compatModelEventPrefix + event] = props["onUpdate:modelValue"];
3414
- delete props["onUpdate:modelValue"];
3415
- }
3416
- }
3417
- function applyModelFromMixins(model, mixins) {
3418
- if (mixins) {
3419
- mixins.forEach((m) => {
3420
- if (m.model) extend(model, m.model);
3421
- if (m.mixins) applyModelFromMixins(model, m.mixins);
3422
- });
3423
- }
3424
- }
3425
- function compatModelEmit(instance, event, args) {
3426
- if (!isCompatEnabled$1("COMPONENT_V_MODEL", instance)) {
3427
- return;
3428
- }
3429
- const props = instance.vnode.props;
3430
- const modelHandler = props && props[compatModelEventPrefix + event];
3431
- if (modelHandler) {
3432
- callWithErrorHandling(
3433
- modelHandler,
3434
- instance,
3435
- 6,
3436
- args
3437
- );
3438
- }
3439
- }
3440
-
3441
3382
  let currentRenderingInstance = null;
3442
3383
  let currentScopeId = null;
3443
3384
  function setCurrentRenderingInstance(instance) {
@@ -3588,7 +3529,152 @@ Details: https://v3-migration.vuejs.org/breaking-changes/migration-build.html`
3588
3529
  }
3589
3530
  }
3590
3531
 
3591
- const TeleportEndKey = Symbol("_vte");
3532
+ function provide(key, value) {
3533
+ {
3534
+ if (!currentInstance || currentInstance.isMounted) {
3535
+ warn$1(`provide() can only be used inside setup().`);
3536
+ }
3537
+ }
3538
+ if (currentInstance) {
3539
+ let provides = currentInstance.provides;
3540
+ const parentProvides = currentInstance.parent && currentInstance.parent.provides;
3541
+ if (parentProvides === provides) {
3542
+ provides = currentInstance.provides = Object.create(parentProvides);
3543
+ }
3544
+ provides[key] = value;
3545
+ }
3546
+ }
3547
+ function inject(key, defaultValue, treatDefaultAsFactory = false) {
3548
+ const instance = getCurrentInstance();
3549
+ if (instance || currentApp) {
3550
+ let provides = currentApp ? currentApp._context.provides : instance ? instance.parent == null || instance.ce ? instance.vnode.appContext && instance.vnode.appContext.provides : instance.parent.provides : void 0;
3551
+ if (provides && key in provides) {
3552
+ return provides[key];
3553
+ } else if (arguments.length > 1) {
3554
+ return treatDefaultAsFactory && isFunction(defaultValue) ? defaultValue.call(instance && instance.proxy) : defaultValue;
3555
+ } else {
3556
+ warn$1(`injection "${String(key)}" not found.`);
3557
+ }
3558
+ } else {
3559
+ warn$1(`inject() can only be used inside setup() or functional components.`);
3560
+ }
3561
+ }
3562
+ function hasInjectionContext() {
3563
+ return !!(getCurrentInstance() || currentApp);
3564
+ }
3565
+
3566
+ const ssrContextKey = /* @__PURE__ */ Symbol.for("v-scx");
3567
+ const useSSRContext = () => {
3568
+ {
3569
+ warn$1(`useSSRContext() is not supported in the global build.`);
3570
+ }
3571
+ };
3572
+
3573
+ function watchEffect(effect, options) {
3574
+ return doWatch(effect, null, options);
3575
+ }
3576
+ function watchPostEffect(effect, options) {
3577
+ return doWatch(
3578
+ effect,
3579
+ null,
3580
+ extend({}, options, { flush: "post" })
3581
+ );
3582
+ }
3583
+ function watchSyncEffect(effect, options) {
3584
+ return doWatch(
3585
+ effect,
3586
+ null,
3587
+ extend({}, options, { flush: "sync" })
3588
+ );
3589
+ }
3590
+ function watch(source, cb, options) {
3591
+ if (!isFunction(cb)) {
3592
+ warn$1(
3593
+ `\`watch(fn, options?)\` signature has been moved to a separate API. Use \`watchEffect(fn, options?)\` instead. \`watch\` now only supports \`watch(source, cb, options?) signature.`
3594
+ );
3595
+ }
3596
+ return doWatch(source, cb, options);
3597
+ }
3598
+ function doWatch(source, cb, options = EMPTY_OBJ) {
3599
+ const { immediate, deep, flush, once } = options;
3600
+ if (!cb) {
3601
+ if (immediate !== void 0) {
3602
+ warn$1(
3603
+ `watch() "immediate" option is only respected when using the watch(source, callback, options?) signature.`
3604
+ );
3605
+ }
3606
+ if (deep !== void 0) {
3607
+ warn$1(
3608
+ `watch() "deep" option is only respected when using the watch(source, callback, options?) signature.`
3609
+ );
3610
+ }
3611
+ if (once !== void 0) {
3612
+ warn$1(
3613
+ `watch() "once" option is only respected when using the watch(source, callback, options?) signature.`
3614
+ );
3615
+ }
3616
+ }
3617
+ const baseWatchOptions = extend({}, options);
3618
+ baseWatchOptions.onWarn = warn$1;
3619
+ const instance = currentInstance;
3620
+ baseWatchOptions.call = (fn, type, args) => callWithAsyncErrorHandling(fn, instance, type, args);
3621
+ let isPre = false;
3622
+ if (flush === "post") {
3623
+ baseWatchOptions.scheduler = (job) => {
3624
+ queuePostRenderEffect(job, instance && instance.suspense);
3625
+ };
3626
+ } else if (flush !== "sync") {
3627
+ isPre = true;
3628
+ baseWatchOptions.scheduler = (job, isFirstRun) => {
3629
+ if (isFirstRun) {
3630
+ job();
3631
+ } else {
3632
+ queueJob(job);
3633
+ }
3634
+ };
3635
+ }
3636
+ baseWatchOptions.augmentJob = (job) => {
3637
+ if (cb) {
3638
+ job.flags |= 4;
3639
+ }
3640
+ if (isPre) {
3641
+ job.flags |= 2;
3642
+ if (instance) {
3643
+ job.id = instance.uid;
3644
+ job.i = instance;
3645
+ }
3646
+ }
3647
+ };
3648
+ const watchHandle = watch$1(source, cb, baseWatchOptions);
3649
+ return watchHandle;
3650
+ }
3651
+ function instanceWatch(source, value, options) {
3652
+ const publicThis = this.proxy;
3653
+ const getter = isString(source) ? source.includes(".") ? createPathGetter(publicThis, source) : () => publicThis[source] : source.bind(publicThis, publicThis);
3654
+ let cb;
3655
+ if (isFunction(value)) {
3656
+ cb = value;
3657
+ } else {
3658
+ cb = value.handler;
3659
+ options = value;
3660
+ }
3661
+ const reset = setCurrentInstance(this);
3662
+ const res = doWatch(getter, cb.bind(publicThis), options);
3663
+ reset();
3664
+ return res;
3665
+ }
3666
+ function createPathGetter(ctx, path) {
3667
+ const segments = path.split(".");
3668
+ return () => {
3669
+ let cur = ctx;
3670
+ for (let i = 0; i < segments.length && cur; i++) {
3671
+ cur = cur[segments[i]];
3672
+ }
3673
+ return cur;
3674
+ };
3675
+ }
3676
+
3677
+ const TeleportEndKey = /* @__PURE__ */ Symbol("_vte");
3592
3678
  const isTeleport = (type) => type.__isTeleport;
3593
3679
  const isTeleportDisabled = (props) => props && (props.disabled || props.disabled === "");
3594
3680
  const isTeleportDeferred = (props) => props && (props.defer || props.defer === "");
@@ -3948,8 +4034,8 @@ Details: https://v3-migration.vuejs.org/breaking-changes/migration-build.html`
3948
4034
  return targetAnchor;
3949
4035
  }
3950
4036
 
3951
- const leaveCbKey = Symbol("_leaveCb");
3952
- const enterCbKey$1 = Symbol("_enterCb");
4037
+ const leaveCbKey = /* @__PURE__ */ Symbol("_leaveCb");
4038
+ const enterCbKey$1 = /* @__PURE__ */ Symbol("_enterCb");
3953
4039
  function useTransitionState() {
3954
4040
  const state = {
3955
4041
  isMounted: false,
@@ -5483,7 +5569,9 @@ Server rendered element contains fewer child nodes than client vdom.`
5483
5569
  }
5484
5570
  function pruneCache(filter) {
5485
5571
  cache.forEach((vnode, key) => {
5486
- const name = getComponentName(vnode.type);
5572
+ const name = getComponentName(
5573
+ isAsyncWrapper(vnode) ? vnode.type.__asyncResolved || {} : vnode.type
5574
+ );
5487
5575
  if (name && !filter(name)) {
5488
5576
  pruneCacheEntry(key);
5489
5577
  }
@@ -5750,7 +5838,7 @@ Server rendered element contains fewer child nodes than client vdom.`
5750
5838
  function resolveComponent(name, maybeSelfReference) {
5751
5839
  return resolveAsset(COMPONENTS, name, true, maybeSelfReference) || name;
5752
5840
  }
5753
- const NULL_DYNAMIC_COMPONENT = Symbol.for("v-ndc");
5841
+ const NULL_DYNAMIC_COMPONENT = /* @__PURE__ */ Symbol.for("v-ndc");
5754
5842
  function resolveDynamicComponent(component) {
5755
5843
  if (isString(component)) {
5756
5844
  return resolveAsset(COMPONENTS, component, false) || component;
@@ -7312,7 +7400,7 @@ If this is a native custom element, make sure to exclude it from component resol
7312
7400
  return vm;
7313
7401
  }
7314
7402
  }
7315
- Vue.version = `2.6.14-compat:${"3.5.25"}`;
7403
+ Vue.version = `2.6.14-compat:${"3.5.26"}`;
7316
7404
  Vue.config = singletonApp.config;
7317
7405
  Vue.use = (plugin, ...options) => {
7318
7406
  if (plugin && isFunction(plugin.install)) {
@@ -7889,149 +7977,70 @@ If you want to remount the same app, move your app creation logic into a factory
7889
7977
  }
7890
7978
  let currentApp = null;
7891
7979
 
7892
- function provide(key, value) {
7893
- {
7894
- if (!currentInstance || currentInstance.isMounted) {
7895
- warn$1(`provide() can only be used inside setup().`);
7896
- }
7897
- }
7898
- if (currentInstance) {
7899
- let provides = currentInstance.provides;
7900
- const parentProvides = currentInstance.parent && currentInstance.parent.provides;
7901
- if (parentProvides === provides) {
7902
- provides = currentInstance.provides = Object.create(parentProvides);
7903
- }
7904
- provides[key] = value;
7905
- }
7906
- }
7907
- function inject(key, defaultValue, treatDefaultAsFactory = false) {
7908
- const instance = getCurrentInstance();
7909
- if (instance || currentApp) {
7910
- let provides = currentApp ? currentApp._context.provides : instance ? instance.parent == null || instance.ce ? instance.vnode.appContext && instance.vnode.appContext.provides : instance.parent.provides : void 0;
7911
- if (provides && key in provides) {
7912
- return provides[key];
7913
- } else if (arguments.length > 1) {
7914
- return treatDefaultAsFactory && isFunction(defaultValue) ? defaultValue.call(instance && instance.proxy) : defaultValue;
7915
- } else {
7916
- warn$1(`injection "${String(key)}" not found.`);
7980
+ const compatModelEventPrefix = `onModelCompat:`;
7981
+ const warnedTypes = /* @__PURE__ */ new WeakSet();
7982
+ function convertLegacyVModelProps(vnode) {
7983
+ const { type, shapeFlag, props, dynamicProps } = vnode;
7984
+ const comp = type;
7985
+ if (shapeFlag & 6 && props && "modelValue" in props) {
7986
+ if (!isCompatEnabled$1(
7987
+ "COMPONENT_V_MODEL",
7988
+ // this is a special case where we want to use the vnode component's
7989
+ // compat config instead of the current rendering instance (which is the
7990
+ // parent of the component that exposes v-model)
7991
+ { type }
7992
+ )) {
7993
+ return;
7917
7994
  }
7918
- } else {
7919
- warn$1(`inject() can only be used inside setup() or functional components.`);
7920
- }
7921
- }
7922
- function hasInjectionContext() {
7923
- return !!(getCurrentInstance() || currentApp);
7924
- }
7925
-
7926
- const ssrContextKey = Symbol.for("v-scx");
7927
- const useSSRContext = () => {
7928
- {
7929
- warn$1(`useSSRContext() is not supported in the global build.`);
7930
- }
7931
- };
7932
-
7933
- function watchEffect(effect, options) {
7934
- return doWatch(effect, null, options);
7935
- }
7936
- function watchPostEffect(effect, options) {
7937
- return doWatch(
7938
- effect,
7939
- null,
7940
- extend({}, options, { flush: "post" })
7941
- );
7942
- }
7943
- function watchSyncEffect(effect, options) {
7944
- return doWatch(
7945
- effect,
7946
- null,
7947
- extend({}, options, { flush: "sync" })
7948
- );
7949
- }
7950
- function watch(source, cb, options) {
7951
- if (!isFunction(cb)) {
7952
- warn$1(
7953
- `\`watch(fn, options?)\` signature has been moved to a separate API. Use \`watchEffect(fn, options?)\` instead. \`watch\` now only supports \`watch(source, cb, options?) signature.`
7954
- );
7955
- }
7956
- return doWatch(source, cb, options);
7957
- }
7958
- function doWatch(source, cb, options = EMPTY_OBJ) {
7959
- const { immediate, deep, flush, once } = options;
7960
- if (!cb) {
7961
- if (immediate !== void 0) {
7962
- warn$1(
7963
- `watch() "immediate" option is only respected when using the watch(source, callback, options?) signature.`
7995
+ if (!warnedTypes.has(comp)) {
7996
+ pushWarningContext(vnode);
7997
+ warnDeprecation$1(
7998
+ "COMPONENT_V_MODEL",
7999
+ {
8000
+ type,
8001
+ appContext: vnode.ctx && vnode.ctx.appContext || createAppContext()
8002
+ },
8003
+ comp
7964
8004
  );
8005
+ popWarningContext();
8006
+ warnedTypes.add(comp);
7965
8007
  }
7966
- if (deep !== void 0) {
7967
- warn$1(
7968
- `watch() "deep" option is only respected when using the watch(source, callback, options?) signature.`
7969
- );
8008
+ const model = comp.model || {};
8009
+ applyModelFromMixins(model, comp.mixins);
8010
+ const { prop = "value", event = "input" } = model;
8011
+ if (prop !== "modelValue") {
8012
+ props[prop] = props.modelValue;
8013
+ delete props.modelValue;
7970
8014
  }
7971
- if (once !== void 0) {
7972
- warn$1(
7973
- `watch() "once" option is only respected when using the watch(source, callback, options?) signature.`
7974
- );
8015
+ if (dynamicProps) {
8016
+ dynamicProps[dynamicProps.indexOf("modelValue")] = prop;
7975
8017
  }
8018
+ props[compatModelEventPrefix + event] = props["onUpdate:modelValue"];
8019
+ delete props["onUpdate:modelValue"];
7976
8020
  }
7977
- const baseWatchOptions = extend({}, options);
7978
- baseWatchOptions.onWarn = warn$1;
7979
- const instance = currentInstance;
7980
- baseWatchOptions.call = (fn, type, args) => callWithAsyncErrorHandling(fn, instance, type, args);
7981
- let isPre = false;
7982
- if (flush === "post") {
7983
- baseWatchOptions.scheduler = (job) => {
7984
- queuePostRenderEffect(job, instance && instance.suspense);
7985
- };
7986
- } else if (flush !== "sync") {
7987
- isPre = true;
7988
- baseWatchOptions.scheduler = (job, isFirstRun) => {
7989
- if (isFirstRun) {
7990
- job();
7991
- } else {
7992
- queueJob(job);
7993
- }
7994
- };
7995
- }
7996
- baseWatchOptions.augmentJob = (job) => {
7997
- if (cb) {
7998
- job.flags |= 4;
7999
- }
8000
- if (isPre) {
8001
- job.flags |= 2;
8002
- if (instance) {
8003
- job.id = instance.uid;
8004
- job.i = instance;
8005
- }
8006
- }
8007
- };
8008
- const watchHandle = watch$1(source, cb, baseWatchOptions);
8009
- return watchHandle;
8010
8021
  }
8011
- function instanceWatch(source, value, options) {
8012
- const publicThis = this.proxy;
8013
- const getter = isString(source) ? source.includes(".") ? createPathGetter(publicThis, source) : () => publicThis[source] : source.bind(publicThis, publicThis);
8014
- let cb;
8015
- if (isFunction(value)) {
8016
- cb = value;
8017
- } else {
8018
- cb = value.handler;
8019
- options = value;
8022
+ function applyModelFromMixins(model, mixins) {
8023
+ if (mixins) {
8024
+ mixins.forEach((m) => {
8025
+ if (m.model) extend(model, m.model);
8026
+ if (m.mixins) applyModelFromMixins(model, m.mixins);
8027
+ });
8020
8028
  }
8021
- const reset = setCurrentInstance(this);
8022
- const res = doWatch(getter, cb.bind(publicThis), options);
8023
- reset();
8024
- return res;
8025
8029
  }
8026
- function createPathGetter(ctx, path) {
8027
- const segments = path.split(".");
8028
- return () => {
8029
- let cur = ctx;
8030
- for (let i = 0; i < segments.length && cur; i++) {
8031
- cur = cur[segments[i]];
8032
- }
8033
- return cur;
8034
- };
8030
+ function compatModelEmit(instance, event, args) {
8031
+ if (!isCompatEnabled$1("COMPONENT_V_MODEL", instance)) {
8032
+ return;
8033
+ }
8034
+ const props = instance.vnode.props;
8035
+ const modelHandler = props && props[compatModelEventPrefix + event];
8036
+ if (modelHandler) {
8037
+ callWithErrorHandling(
8038
+ modelHandler,
8039
+ instance,
8040
+ 6,
8041
+ args
8042
+ );
8043
+ }
8035
8044
  }
8036
8045
 
8037
8046
  function useModel(props, name, options = EMPTY_OBJ) {
@@ -9317,7 +9326,15 @@ If you want to remount the same app, move your app creation logic into a factory
9317
9326
  } else {
9318
9327
  const el = n2.el = n1.el;
9319
9328
  if (n2.children !== n1.children) {
9320
- hostSetText(el, n2.children);
9329
+ if (isHmrUpdating && n2.patchFlag === -1 && "__elIndex" in n1) {
9330
+ const childNodes = container.childNodes;
9331
+ const newChild = hostCreateText(n2.children);
9332
+ const oldChild = childNodes[n2.__elIndex = n1.__elIndex];
9333
+ hostInsert(newChild, container, oldChild);
9334
+ hostRemove(oldChild);
9335
+ } else {
9336
+ hostSetText(el, n2.children);
9337
+ }
9321
9338
  }
9322
9339
  }
9323
9340
  };
@@ -9703,7 +9720,7 @@ If you want to remount the same app, move your app creation logic into a factory
9703
9720
  } else {
9704
9721
  if (patchFlag > 0 && patchFlag & 64 && dynamicChildren && // #2715 the previous fragment could've been a BAILed one as a result
9705
9722
  // of renderSlot() with no valid children
9706
- n1.dynamicChildren) {
9723
+ n1.dynamicChildren && n1.dynamicChildren.length === dynamicChildren.length) {
9707
9724
  patchBlockChildren(
9708
9725
  n1.dynamicChildren,
9709
9726
  dynamicChildren,
@@ -10317,8 +10334,8 @@ If you want to remount the same app, move your app creation logic into a factory
10317
10334
  const nextChild = c2[nextIndex];
10318
10335
  const anchorVNode = c2[nextIndex + 1];
10319
10336
  const anchor = nextIndex + 1 < l2 ? (
10320
- // #13559, fallback to el placeholder for unresolved async component
10321
- anchorVNode.el || anchorVNode.placeholder
10337
+ // #13559, #14173 fallback to el placeholder for unresolved async component
10338
+ anchorVNode.el || resolveAsyncComponentPlaceholder(anchorVNode)
10322
10339
  ) : parentAnchor;
10323
10340
  if (newIndexToOldIndexMap[i] === 0) {
10324
10341
  patch(
@@ -10583,9 +10600,11 @@ If you want to remount the same app, move your app creation logic into a factory
10583
10600
  };
10584
10601
  let isFlushing = false;
10585
10602
  const render = (vnode, container, namespace) => {
10603
+ let instance;
10586
10604
  if (vnode == null) {
10587
10605
  if (container._vnode) {
10588
10606
  unmount(container._vnode, null, null, true);
10607
+ instance = container._vnode.component;
10589
10608
  }
10590
10609
  } else {
10591
10610
  patch(
@@ -10601,7 +10620,7 @@ If you want to remount the same app, move your app creation logic into a factory
10601
10620
  container._vnode = vnode;
10602
10621
  if (!isFlushing) {
10603
10622
  isFlushing = true;
10604
- flushPreFlushCbs();
10623
+ flushPreFlushCbs(instance);
10605
10624
  flushPostFlushCbs();
10606
10625
  isFlushing = false;
10607
10626
  }
@@ -10661,9 +10680,13 @@ If you want to remount the same app, move your app creation logic into a factory
10661
10680
  if (!shallow && c2.patchFlag !== -2)
10662
10681
  traverseStaticChildren(c1, c2);
10663
10682
  }
10664
- if (c2.type === Text && // avoid cached text nodes retaining detached dom nodes
10665
- c2.patchFlag !== -1) {
10666
- c2.el = c1.el;
10683
+ if (c2.type === Text) {
10684
+ if (c2.patchFlag !== -1) {
10685
+ c2.el = c1.el;
10686
+ } else {
10687
+ c2.__elIndex = i + // take fragment start anchor into account
10688
+ (n1.type === Fragment ? 1 : 0);
10689
+ }
10667
10690
  }
10668
10691
  if (c2.type === Comment && !c2.el) {
10669
10692
  c2.el = c1.el;
@@ -10730,6 +10753,16 @@ If you want to remount the same app, move your app creation logic into a factory
10730
10753
  hooks[i].flags |= 8;
10731
10754
  }
10732
10755
  }
10756
+ function resolveAsyncComponentPlaceholder(anchorVnode) {
10757
+ if (anchorVnode.placeholder) {
10758
+ return anchorVnode.placeholder;
10759
+ }
10760
+ const instance = anchorVnode.component;
10761
+ if (instance) {
10762
+ return resolveAsyncComponentPlaceholder(instance.subTree);
10763
+ }
10764
+ return null;
10765
+ }
10733
10766
 
10734
10767
  const isSuspense = (type) => type.__isSuspense;
10735
10768
  let suspenseId = 0;
@@ -11389,10 +11422,10 @@ If you want to remount the same app, move your app creation logic into a factory
11389
11422
  return comp;
11390
11423
  }
11391
11424
 
11392
- const Fragment = Symbol.for("v-fgt");
11393
- const Text = Symbol.for("v-txt");
11394
- const Comment = Symbol.for("v-cmt");
11395
- const Static = Symbol.for("v-stc");
11425
+ const Fragment = /* @__PURE__ */ Symbol.for("v-fgt");
11426
+ const Text = /* @__PURE__ */ Symbol.for("v-txt");
11427
+ const Comment = /* @__PURE__ */ Symbol.for("v-cmt");
11428
+ const Static = /* @__PURE__ */ Symbol.for("v-stc");
11396
11429
  const blockStack = [];
11397
11430
  let currentBlock = null;
11398
11431
  function openBlock(disableTracking = false) {
@@ -12444,7 +12477,7 @@ Component that was made reactive: `,
12444
12477
  return true;
12445
12478
  }
12446
12479
 
12447
- const version = "3.5.25";
12480
+ const version = "3.5.26";
12448
12481
  const warn = warn$1 ;
12449
12482
  const ErrorTypeStrings = ErrorTypeStrings$1 ;
12450
12483
  const devtools = devtools$1 ;
@@ -12544,7 +12577,7 @@ Component that was made reactive: `,
12544
12577
 
12545
12578
  const TRANSITION$1 = "transition";
12546
12579
  const ANIMATION = "animation";
12547
- const vtcKey = Symbol("_vtc");
12580
+ const vtcKey = /* @__PURE__ */ Symbol("_vtc");
12548
12581
  const DOMTransitionPropsValidators = {
12549
12582
  name: String,
12550
12583
  type: String,
@@ -12874,8 +12907,8 @@ Component that was made reactive: `,
12874
12907
  }
12875
12908
  }
12876
12909
 
12877
- const vShowOriginalDisplay = Symbol("_vod");
12878
- const vShowHidden = Symbol("_vsh");
12910
+ const vShowOriginalDisplay = /* @__PURE__ */ Symbol("_vod");
12911
+ const vShowHidden = /* @__PURE__ */ Symbol("_vsh");
12879
12912
  const vShow = {
12880
12913
  // used for prop mismatch check during hydration
12881
12914
  name: "show",
@@ -12917,7 +12950,7 @@ Component that was made reactive: `,
12917
12950
  el[vShowHidden] = !value;
12918
12951
  }
12919
12952
 
12920
- const CSS_VAR_TEXT = Symbol("CSS_VAR_TEXT" );
12953
+ const CSS_VAR_TEXT = /* @__PURE__ */ Symbol("CSS_VAR_TEXT" );
12921
12954
  function useCssVars(getter) {
12922
12955
  const instance = getCurrentInstance();
12923
12956
  if (!instance) {
@@ -13115,7 +13148,7 @@ Component that was made reactive: `,
13115
13148
  const isEnumeratedAttr = /* @__PURE__ */ makeMap("contenteditable,draggable,spellcheck") ;
13116
13149
  function compatCoerceAttr(el, key, value, instance = null) {
13117
13150
  if (isEnumeratedAttr(key)) {
13118
- const v2CoercedValue = value === null ? "false" : typeof value !== "boolean" && value !== void 0 ? "true" : null;
13151
+ const v2CoercedValue = value === void 0 ? null : value === null || value === false || value === "false" ? "false" : "true";
13119
13152
  if (v2CoercedValue && compatUtils.softAssertCompatEnabled(
13120
13153
  "ATTR_ENUMERATED_COERCION",
13121
13154
  instance,
@@ -13211,7 +13244,7 @@ Component that was made reactive: `,
13211
13244
  function removeEventListener(el, event, handler, options) {
13212
13245
  el.removeEventListener(event, handler, options);
13213
13246
  }
13214
- const veiKey = Symbol("_vei");
13247
+ const veiKey = /* @__PURE__ */ Symbol("_vei");
13215
13248
  function patchEvent(el, rawName, prevValue, nextValue, instance = null) {
13216
13249
  const invokers = el[veiKey] || (el[veiKey] = {});
13217
13250
  const existingInvoker = invokers[rawName];
@@ -13837,8 +13870,8 @@ Expected function or array of functions, received type ${typeof value}.`
13837
13870
 
13838
13871
  const positionMap = /* @__PURE__ */ new WeakMap();
13839
13872
  const newPositionMap = /* @__PURE__ */ new WeakMap();
13840
- const moveCbKey = Symbol("_moveCb");
13841
- const enterCbKey = Symbol("_enterCb");
13873
+ const moveCbKey = /* @__PURE__ */ Symbol("_moveCb");
13874
+ const enterCbKey = /* @__PURE__ */ Symbol("_enterCb");
13842
13875
  const decorate = (t) => {
13843
13876
  delete t.props.mode;
13844
13877
  {
@@ -14000,7 +14033,7 @@ Expected function or array of functions, received type ${typeof value}.`
14000
14033
  target.dispatchEvent(new Event("input"));
14001
14034
  }
14002
14035
  }
14003
- const assignKey = Symbol("_assign");
14036
+ const assignKey = /* @__PURE__ */ Symbol("_assign");
14004
14037
  function castValue(value, trim, number) {
14005
14038
  if (trim) value = value.trim();
14006
14039
  if (number) value = looseToNumber(value);
@@ -14654,81 +14687,81 @@ Make sure to use the production build (*.prod.js) when deploying for production.
14654
14687
  return Vue;
14655
14688
  }
14656
14689
 
14657
- const FRAGMENT = Symbol(`Fragment` );
14658
- const TELEPORT = Symbol(`Teleport` );
14659
- const SUSPENSE = Symbol(`Suspense` );
14660
- const KEEP_ALIVE = Symbol(`KeepAlive` );
14661
- const BASE_TRANSITION = Symbol(
14690
+ const FRAGMENT = /* @__PURE__ */ Symbol(`Fragment` );
14691
+ const TELEPORT = /* @__PURE__ */ Symbol(`Teleport` );
14692
+ const SUSPENSE = /* @__PURE__ */ Symbol(`Suspense` );
14693
+ const KEEP_ALIVE = /* @__PURE__ */ Symbol(`KeepAlive` );
14694
+ const BASE_TRANSITION = /* @__PURE__ */ Symbol(
14662
14695
  `BaseTransition`
14663
14696
  );
14664
- const OPEN_BLOCK = Symbol(`openBlock` );
14665
- const CREATE_BLOCK = Symbol(`createBlock` );
14666
- const CREATE_ELEMENT_BLOCK = Symbol(
14697
+ const OPEN_BLOCK = /* @__PURE__ */ Symbol(`openBlock` );
14698
+ const CREATE_BLOCK = /* @__PURE__ */ Symbol(`createBlock` );
14699
+ const CREATE_ELEMENT_BLOCK = /* @__PURE__ */ Symbol(
14667
14700
  `createElementBlock`
14668
14701
  );
14669
- const CREATE_VNODE = Symbol(`createVNode` );
14670
- const CREATE_ELEMENT_VNODE = Symbol(
14702
+ const CREATE_VNODE = /* @__PURE__ */ Symbol(`createVNode` );
14703
+ const CREATE_ELEMENT_VNODE = /* @__PURE__ */ Symbol(
14671
14704
  `createElementVNode`
14672
14705
  );
14673
- const CREATE_COMMENT = Symbol(
14706
+ const CREATE_COMMENT = /* @__PURE__ */ Symbol(
14674
14707
  `createCommentVNode`
14675
14708
  );
14676
- const CREATE_TEXT = Symbol(
14709
+ const CREATE_TEXT = /* @__PURE__ */ Symbol(
14677
14710
  `createTextVNode`
14678
14711
  );
14679
- const CREATE_STATIC = Symbol(
14712
+ const CREATE_STATIC = /* @__PURE__ */ Symbol(
14680
14713
  `createStaticVNode`
14681
14714
  );
14682
- const RESOLVE_COMPONENT = Symbol(
14715
+ const RESOLVE_COMPONENT = /* @__PURE__ */ Symbol(
14683
14716
  `resolveComponent`
14684
14717
  );
14685
- const RESOLVE_DYNAMIC_COMPONENT = Symbol(
14718
+ const RESOLVE_DYNAMIC_COMPONENT = /* @__PURE__ */ Symbol(
14686
14719
  `resolveDynamicComponent`
14687
14720
  );
14688
- const RESOLVE_DIRECTIVE = Symbol(
14721
+ const RESOLVE_DIRECTIVE = /* @__PURE__ */ Symbol(
14689
14722
  `resolveDirective`
14690
14723
  );
14691
- const RESOLVE_FILTER = Symbol(
14724
+ const RESOLVE_FILTER = /* @__PURE__ */ Symbol(
14692
14725
  `resolveFilter`
14693
14726
  );
14694
- const WITH_DIRECTIVES = Symbol(
14727
+ const WITH_DIRECTIVES = /* @__PURE__ */ Symbol(
14695
14728
  `withDirectives`
14696
14729
  );
14697
- const RENDER_LIST = Symbol(`renderList` );
14698
- const RENDER_SLOT = Symbol(`renderSlot` );
14699
- const CREATE_SLOTS = Symbol(`createSlots` );
14700
- const TO_DISPLAY_STRING = Symbol(
14730
+ const RENDER_LIST = /* @__PURE__ */ Symbol(`renderList` );
14731
+ const RENDER_SLOT = /* @__PURE__ */ Symbol(`renderSlot` );
14732
+ const CREATE_SLOTS = /* @__PURE__ */ Symbol(`createSlots` );
14733
+ const TO_DISPLAY_STRING = /* @__PURE__ */ Symbol(
14701
14734
  `toDisplayString`
14702
14735
  );
14703
- const MERGE_PROPS = Symbol(`mergeProps` );
14704
- const NORMALIZE_CLASS = Symbol(
14736
+ const MERGE_PROPS = /* @__PURE__ */ Symbol(`mergeProps` );
14737
+ const NORMALIZE_CLASS = /* @__PURE__ */ Symbol(
14705
14738
  `normalizeClass`
14706
14739
  );
14707
- const NORMALIZE_STYLE = Symbol(
14740
+ const NORMALIZE_STYLE = /* @__PURE__ */ Symbol(
14708
14741
  `normalizeStyle`
14709
14742
  );
14710
- const NORMALIZE_PROPS = Symbol(
14743
+ const NORMALIZE_PROPS = /* @__PURE__ */ Symbol(
14711
14744
  `normalizeProps`
14712
14745
  );
14713
- const GUARD_REACTIVE_PROPS = Symbol(
14746
+ const GUARD_REACTIVE_PROPS = /* @__PURE__ */ Symbol(
14714
14747
  `guardReactiveProps`
14715
14748
  );
14716
- const TO_HANDLERS = Symbol(`toHandlers` );
14717
- const CAMELIZE = Symbol(`camelize` );
14718
- const CAPITALIZE = Symbol(`capitalize` );
14719
- const TO_HANDLER_KEY = Symbol(
14749
+ const TO_HANDLERS = /* @__PURE__ */ Symbol(`toHandlers` );
14750
+ const CAMELIZE = /* @__PURE__ */ Symbol(`camelize` );
14751
+ const CAPITALIZE = /* @__PURE__ */ Symbol(`capitalize` );
14752
+ const TO_HANDLER_KEY = /* @__PURE__ */ Symbol(
14720
14753
  `toHandlerKey`
14721
14754
  );
14722
- const SET_BLOCK_TRACKING = Symbol(
14755
+ const SET_BLOCK_TRACKING = /* @__PURE__ */ Symbol(
14723
14756
  `setBlockTracking`
14724
14757
  );
14725
- const PUSH_SCOPE_ID = Symbol(`pushScopeId` );
14726
- const POP_SCOPE_ID = Symbol(`popScopeId` );
14727
- const WITH_CTX = Symbol(`withCtx` );
14728
- const UNREF = Symbol(`unref` );
14729
- const IS_REF = Symbol(`isRef` );
14730
- const WITH_MEMO = Symbol(`withMemo` );
14731
- const IS_MEMO_SAME = Symbol(`isMemoSame` );
14758
+ const PUSH_SCOPE_ID = /* @__PURE__ */ Symbol(`pushScopeId` );
14759
+ const POP_SCOPE_ID = /* @__PURE__ */ Symbol(`popScopeId` );
14760
+ const WITH_CTX = /* @__PURE__ */ Symbol(`withCtx` );
14761
+ const UNREF = /* @__PURE__ */ Symbol(`unref` );
14762
+ const IS_REF = /* @__PURE__ */ Symbol(`isRef` );
14763
+ const WITH_MEMO = /* @__PURE__ */ Symbol(`withMemo` );
14764
+ const IS_MEMO_SAME = /* @__PURE__ */ Symbol(`isMemoSame` );
14732
14765
  const helperNameMap = {
14733
14766
  [FRAGMENT]: `Fragment`,
14734
14767
  [TELEPORT]: `Teleport`,
@@ -15023,14 +15056,28 @@ Make sure to use the production build (*.prod.js) when deploying for production.
15023
15056
  getPos(index) {
15024
15057
  let line = 1;
15025
15058
  let column = index + 1;
15026
- for (let i = this.newlines.length - 1; i >= 0; i--) {
15027
- const newlineIndex = this.newlines[i];
15028
- if (index > newlineIndex) {
15029
- line = i + 2;
15030
- column = index - newlineIndex;
15031
- break;
15059
+ const length = this.newlines.length;
15060
+ let j = -1;
15061
+ if (length > 100) {
15062
+ let l = -1;
15063
+ let r = length;
15064
+ while (l + 1 < r) {
15065
+ const m = l + r >>> 1;
15066
+ this.newlines[m] < index ? l = m : r = m;
15067
+ }
15068
+ j = l;
15069
+ } else {
15070
+ for (let i = length - 1; i >= 0; i--) {
15071
+ if (index > this.newlines[i]) {
15072
+ j = i;
15073
+ break;
15074
+ }
15032
15075
  }
15033
15076
  }
15077
+ if (j >= 0) {
15078
+ line = j + 2;
15079
+ column = index - this.newlines[j];
15080
+ }
15034
15081
  return {
15035
15082
  column,
15036
15083
  line,
@@ -15845,7 +15892,7 @@ Make sure to use the production build (*.prod.js) when deploying for production.
15845
15892
  [32]: `v-for has invalid expression.`,
15846
15893
  [33]: `<template v-for> key should be placed on the <template> tag.`,
15847
15894
  [34]: `v-bind is missing expression.`,
15848
- [52]: `v-bind with same-name shorthand only allows static argument.`,
15895
+ [53]: `v-bind with same-name shorthand only allows static argument.`,
15849
15896
  [35]: `v-on is missing expression.`,
15850
15897
  [36]: `Unexpected custom directive on <slot> outlet.`,
15851
15898
  [37]: `Mixed v-slot usage on both the component and nested <template>. When there are multiple named slots, all slots should use <template> syntax to avoid scope ambiguity.`,
@@ -15857,16 +15904,17 @@ Make sure to use the production build (*.prod.js) when deploying for production.
15857
15904
  [43]: `v-model cannot be used on v-for or v-slot scope variables because they are not writable.`,
15858
15905
  [44]: `v-model cannot be used on a prop, because local prop bindings are not writable.
15859
15906
  Use a v-bind binding combined with a v-on listener that emits update:x event instead.`,
15860
- [45]: `Error parsing JavaScript expression: `,
15861
- [46]: `<KeepAlive> expects exactly one child component.`,
15862
- [51]: `@vnode-* hooks in templates are no longer supported. Use the vue: prefix instead. For example, @vnode-mounted should be changed to @vue:mounted. @vnode-* hooks support has been removed in 3.4.`,
15907
+ [45]: `v-model cannot be used on a const binding because it is not writable.`,
15908
+ [46]: `Error parsing JavaScript expression: `,
15909
+ [47]: `<KeepAlive> expects exactly one child component.`,
15910
+ [52]: `@vnode-* hooks in templates are no longer supported. Use the vue: prefix instead. For example, @vnode-mounted should be changed to @vue:mounted. @vnode-* hooks support has been removed in 3.4.`,
15863
15911
  // generic errors
15864
- [47]: `"prefixIdentifiers" option is not supported in this build of compiler.`,
15865
- [48]: `ES module mode is not supported in this build of compiler.`,
15866
- [49]: `"cacheHandlers" option is only supported when the "prefixIdentifiers" option is enabled.`,
15867
- [50]: `"scopeId" option is only supported in module mode.`,
15912
+ [48]: `"prefixIdentifiers" option is not supported in this build of compiler.`,
15913
+ [49]: `ES module mode is not supported in this build of compiler.`,
15914
+ [50]: `"cacheHandlers" option is only supported when the "prefixIdentifiers" option is enabled.`,
15915
+ [51]: `"scopeId" option is only supported in module mode.`,
15868
15916
  // just to fulfill types
15869
- [53]: ``
15917
+ [54]: ``
15870
15918
  };
15871
15919
 
15872
15920
  const isStaticExp = (p) => p.type === 4 && p.isStatic;
@@ -18052,7 +18100,7 @@ Use a v-bind binding combined with a v-on listener that emits update:x event ins
18052
18100
  }
18053
18101
  context.onError(
18054
18102
  createCompilerError(
18055
- 45,
18103
+ 46,
18056
18104
  node.loc,
18057
18105
  void 0,
18058
18106
  message
@@ -18818,7 +18866,7 @@ Use a v-bind binding combined with a v-on listener that emits update:x event ins
18818
18866
  patchFlag |= 1024;
18819
18867
  if (node.children.length > 1) {
18820
18868
  context.onError(
18821
- createCompilerError(46, {
18869
+ createCompilerError(47, {
18822
18870
  start: node.children[0].loc.start,
18823
18871
  end: node.children[node.children.length - 1].loc.end,
18824
18872
  source: ""
@@ -19405,7 +19453,7 @@ Use a v-bind binding combined with a v-on listener that emits update:x event ins
19405
19453
  if (arg.isStatic) {
19406
19454
  let rawName = arg.content;
19407
19455
  if (rawName.startsWith("vnode")) {
19408
- context.onError(createCompilerError(51, arg.loc));
19456
+ context.onError(createCompilerError(52, arg.loc));
19409
19457
  }
19410
19458
  if (rawName.startsWith("vue:")) {
19411
19459
  rawName = `vnode-${rawName.slice(4)}`;
@@ -19638,6 +19686,10 @@ Use a v-bind binding combined with a v-on listener that emits update:x event ins
19638
19686
  context.onError(createCompilerError(44, exp.loc));
19639
19687
  return createTransformProps();
19640
19688
  }
19689
+ if (bindingType === "literal-const" || bindingType === "setup-const") {
19690
+ context.onError(createCompilerError(45, exp.loc));
19691
+ return createTransformProps();
19692
+ }
19641
19693
  if (!expString.trim() || !isMemberExpression(exp) && true) {
19642
19694
  context.onError(
19643
19695
  createCompilerError(42, exp.loc)
@@ -19866,7 +19918,7 @@ Use a v-bind binding combined with a v-on listener that emits update:x event ins
19866
19918
  if (arg.type !== 4 || !arg.isStatic) {
19867
19919
  context.onError(
19868
19920
  createCompilerError(
19869
- 52,
19921
+ 53,
19870
19922
  arg.loc
19871
19923
  )
19872
19924
  );
@@ -19910,17 +19962,17 @@ Use a v-bind binding combined with a v-on listener that emits update:x event ins
19910
19962
  const isModuleMode = options.mode === "module";
19911
19963
  {
19912
19964
  if (options.prefixIdentifiers === true) {
19913
- onError(createCompilerError(47));
19914
- } else if (isModuleMode) {
19915
19965
  onError(createCompilerError(48));
19966
+ } else if (isModuleMode) {
19967
+ onError(createCompilerError(49));
19916
19968
  }
19917
19969
  }
19918
19970
  const prefixIdentifiers = false;
19919
19971
  if (options.cacheHandlers) {
19920
- onError(createCompilerError(49));
19972
+ onError(createCompilerError(50));
19921
19973
  }
19922
19974
  if (options.scopeId && !isModuleMode) {
19923
- onError(createCompilerError(50));
19975
+ onError(createCompilerError(51));
19924
19976
  }
19925
19977
  const resolvedOptions = extend({}, options, {
19926
19978
  prefixIdentifiers
@@ -19948,26 +20000,26 @@ Use a v-bind binding combined with a v-on listener that emits update:x event ins
19948
20000
 
19949
20001
  const noopDirectiveTransform = () => ({ props: [] });
19950
20002
 
19951
- const V_MODEL_RADIO = Symbol(`vModelRadio` );
19952
- const V_MODEL_CHECKBOX = Symbol(
20003
+ const V_MODEL_RADIO = /* @__PURE__ */ Symbol(`vModelRadio` );
20004
+ const V_MODEL_CHECKBOX = /* @__PURE__ */ Symbol(
19953
20005
  `vModelCheckbox`
19954
20006
  );
19955
- const V_MODEL_TEXT = Symbol(`vModelText` );
19956
- const V_MODEL_SELECT = Symbol(
20007
+ const V_MODEL_TEXT = /* @__PURE__ */ Symbol(`vModelText` );
20008
+ const V_MODEL_SELECT = /* @__PURE__ */ Symbol(
19957
20009
  `vModelSelect`
19958
20010
  );
19959
- const V_MODEL_DYNAMIC = Symbol(
20011
+ const V_MODEL_DYNAMIC = /* @__PURE__ */ Symbol(
19960
20012
  `vModelDynamic`
19961
20013
  );
19962
- const V_ON_WITH_MODIFIERS = Symbol(
20014
+ const V_ON_WITH_MODIFIERS = /* @__PURE__ */ Symbol(
19963
20015
  `vOnModifiersGuard`
19964
20016
  );
19965
- const V_ON_WITH_KEYS = Symbol(
20017
+ const V_ON_WITH_KEYS = /* @__PURE__ */ Symbol(
19966
20018
  `vOnKeysGuard`
19967
20019
  );
19968
- const V_SHOW = Symbol(`vShow` );
19969
- const TRANSITION = Symbol(`Transition` );
19970
- const TRANSITION_GROUP = Symbol(
20020
+ const V_SHOW = /* @__PURE__ */ Symbol(`vShow` );
20021
+ const TRANSITION = /* @__PURE__ */ Symbol(`Transition` );
20022
+ const TRANSITION_GROUP = /* @__PURE__ */ Symbol(
19971
20023
  `TransitionGroup`
19972
20024
  );
19973
20025
  registerRuntimeHelpers({
@@ -20078,29 +20130,29 @@ Use a v-bind binding combined with a v-on listener that emits update:x event ins
20078
20130
  );
20079
20131
  }
20080
20132
  const DOMErrorMessages = {
20081
- [53]: `v-html is missing expression.`,
20082
- [54]: `v-html will override element children.`,
20083
- [55]: `v-text is missing expression.`,
20084
- [56]: `v-text will override element children.`,
20085
- [57]: `v-model can only be used on <input>, <textarea> and <select> elements.`,
20086
- [58]: `v-model argument is not supported on plain elements.`,
20087
- [59]: `v-model cannot be used on file inputs since they are read-only. Use a v-on:change listener instead.`,
20088
- [60]: `Unnecessary value binding used alongside v-model. It will interfere with v-model's behavior.`,
20089
- [61]: `v-show is missing expression.`,
20090
- [62]: `<Transition> expects exactly one child element or component.`,
20091
- [63]: `Tags with side effect (<script> and <style>) are ignored in client component templates.`
20133
+ [54]: `v-html is missing expression.`,
20134
+ [55]: `v-html will override element children.`,
20135
+ [56]: `v-text is missing expression.`,
20136
+ [57]: `v-text will override element children.`,
20137
+ [58]: `v-model can only be used on <input>, <textarea> and <select> elements.`,
20138
+ [59]: `v-model argument is not supported on plain elements.`,
20139
+ [60]: `v-model cannot be used on file inputs since they are read-only. Use a v-on:change listener instead.`,
20140
+ [61]: `Unnecessary value binding used alongside v-model. It will interfere with v-model's behavior.`,
20141
+ [62]: `v-show is missing expression.`,
20142
+ [63]: `<Transition> expects exactly one child element or component.`,
20143
+ [64]: `Tags with side effect (<script> and <style>) are ignored in client component templates.`
20092
20144
  };
20093
20145
 
20094
20146
  const transformVHtml = (dir, node, context) => {
20095
20147
  const { exp, loc } = dir;
20096
20148
  if (!exp) {
20097
20149
  context.onError(
20098
- createDOMCompilerError(53, loc)
20150
+ createDOMCompilerError(54, loc)
20099
20151
  );
20100
20152
  }
20101
20153
  if (node.children.length) {
20102
20154
  context.onError(
20103
- createDOMCompilerError(54, loc)
20155
+ createDOMCompilerError(55, loc)
20104
20156
  );
20105
20157
  node.children.length = 0;
20106
20158
  }
@@ -20118,12 +20170,12 @@ Use a v-bind binding combined with a v-on listener that emits update:x event ins
20118
20170
  const { exp, loc } = dir;
20119
20171
  if (!exp) {
20120
20172
  context.onError(
20121
- createDOMCompilerError(55, loc)
20173
+ createDOMCompilerError(56, loc)
20122
20174
  );
20123
20175
  }
20124
20176
  if (node.children.length) {
20125
20177
  context.onError(
20126
- createDOMCompilerError(56, loc)
20178
+ createDOMCompilerError(57, loc)
20127
20179
  );
20128
20180
  node.children.length = 0;
20129
20181
  }
@@ -20149,7 +20201,7 @@ Use a v-bind binding combined with a v-on listener that emits update:x event ins
20149
20201
  if (dir.arg) {
20150
20202
  context.onError(
20151
20203
  createDOMCompilerError(
20152
- 58,
20204
+ 59,
20153
20205
  dir.arg.loc
20154
20206
  )
20155
20207
  );
@@ -20159,7 +20211,7 @@ Use a v-bind binding combined with a v-on listener that emits update:x event ins
20159
20211
  if (value && isStaticArgOf(value.arg, "value")) {
20160
20212
  context.onError(
20161
20213
  createDOMCompilerError(
20162
- 60,
20214
+ 61,
20163
20215
  value.loc
20164
20216
  )
20165
20217
  );
@@ -20187,7 +20239,7 @@ Use a v-bind binding combined with a v-on listener that emits update:x event ins
20187
20239
  isInvalidType = true;
20188
20240
  context.onError(
20189
20241
  createDOMCompilerError(
20190
- 59,
20242
+ 60,
20191
20243
  dir.loc
20192
20244
  )
20193
20245
  );
@@ -20213,7 +20265,7 @@ Use a v-bind binding combined with a v-on listener that emits update:x event ins
20213
20265
  } else {
20214
20266
  context.onError(
20215
20267
  createDOMCompilerError(
20216
- 57,
20268
+ 58,
20217
20269
  dir.loc
20218
20270
  )
20219
20271
  );
@@ -20321,7 +20373,7 @@ Use a v-bind binding combined with a v-on listener that emits update:x event ins
20321
20373
  const { exp, loc } = dir;
20322
20374
  if (!exp) {
20323
20375
  context.onError(
20324
- createDOMCompilerError(61, loc)
20376
+ createDOMCompilerError(62, loc)
20325
20377
  );
20326
20378
  }
20327
20379
  return {
@@ -20341,7 +20393,7 @@ Use a v-bind binding combined with a v-on listener that emits update:x event ins
20341
20393
  if (hasMultipleChildren(node)) {
20342
20394
  context.onError(
20343
20395
  createDOMCompilerError(
20344
- 62,
20396
+ 63,
20345
20397
  {
20346
20398
  start: node.children[0].loc.start,
20347
20399
  end: node.children[node.children.length - 1].loc.end,
@@ -20380,7 +20432,7 @@ Use a v-bind binding combined with a v-on listener that emits update:x event ins
20380
20432
  if (node.type === 1 && node.tagType === 0 && (node.tag === "script" || node.tag === "style")) {
20381
20433
  context.onError(
20382
20434
  createDOMCompilerError(
20383
- 63,
20435
+ 64,
20384
20436
  node.loc
20385
20437
  )
20386
20438
  );