@vue/runtime-dom 3.5.25 → 3.5.27

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/runtime-dom v3.5.25
2
+ * @vue/runtime-dom v3.5.27
3
3
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
4
4
  * @license MIT
5
5
  **/
@@ -932,13 +932,13 @@ var VueRuntimeDOM = (function (exports) {
932
932
  }
933
933
  }
934
934
  const targetMap = /* @__PURE__ */ new WeakMap();
935
- const ITERATE_KEY = Symbol(
935
+ const ITERATE_KEY = /* @__PURE__ */ Symbol(
936
936
  "Object iterate"
937
937
  );
938
- const MAP_KEY_ITERATE_KEY = Symbol(
938
+ const MAP_KEY_ITERATE_KEY = /* @__PURE__ */ Symbol(
939
939
  "Map keys iterate"
940
940
  );
941
- const ARRAY_ITERATE_KEY = Symbol(
941
+ const ARRAY_ITERATE_KEY = /* @__PURE__ */ Symbol(
942
942
  "Array iterate"
943
943
  );
944
944
  function track(target, type, key) {
@@ -1421,20 +1421,20 @@ var VueRuntimeDOM = (function (exports) {
1421
1421
  "iterate",
1422
1422
  isKeyOnly ? MAP_KEY_ITERATE_KEY : ITERATE_KEY
1423
1423
  );
1424
- return {
1425
- // iterator protocol
1426
- next() {
1427
- const { value, done } = innerIterator.next();
1428
- return done ? { value, done } : {
1429
- value: isPair ? [wrap(value[0]), wrap(value[1])] : wrap(value),
1430
- done
1431
- };
1432
- },
1433
- // iterable protocol
1434
- [Symbol.iterator]() {
1435
- return this;
1424
+ return extend(
1425
+ // inheriting all iterator properties
1426
+ Object.create(innerIterator),
1427
+ {
1428
+ // iterator protocol
1429
+ next() {
1430
+ const { value, done } = innerIterator.next();
1431
+ return done ? { value, done } : {
1432
+ value: isPair ? [wrap(value[0]), wrap(value[1])] : wrap(value),
1433
+ done
1434
+ };
1435
+ }
1436
1436
  }
1437
- };
1437
+ );
1438
1438
  };
1439
1439
  }
1440
1440
  function createReadonlyMethod(type) {
@@ -1648,8 +1648,9 @@ var VueRuntimeDOM = (function (exports) {
1648
1648
  function getTargetType(value) {
1649
1649
  return value["__v_skip"] || !Object.isExtensible(value) ? 0 /* INVALID */ : targetTypeMap(toRawType(value));
1650
1650
  }
1651
+ // @__NO_SIDE_EFFECTS__
1651
1652
  function reactive(target) {
1652
- if (isReadonly(target)) {
1653
+ if (/* @__PURE__ */ isReadonly(target)) {
1653
1654
  return target;
1654
1655
  }
1655
1656
  return createReactiveObject(
@@ -1660,6 +1661,7 @@ var VueRuntimeDOM = (function (exports) {
1660
1661
  reactiveMap
1661
1662
  );
1662
1663
  }
1664
+ // @__NO_SIDE_EFFECTS__
1663
1665
  function shallowReactive(target) {
1664
1666
  return createReactiveObject(
1665
1667
  target,
@@ -1669,6 +1671,7 @@ var VueRuntimeDOM = (function (exports) {
1669
1671
  shallowReactiveMap
1670
1672
  );
1671
1673
  }
1674
+ // @__NO_SIDE_EFFECTS__
1672
1675
  function readonly(target) {
1673
1676
  return createReactiveObject(
1674
1677
  target,
@@ -1678,6 +1681,7 @@ var VueRuntimeDOM = (function (exports) {
1678
1681
  readonlyMap
1679
1682
  );
1680
1683
  }
1684
+ // @__NO_SIDE_EFFECTS__
1681
1685
  function shallowReadonly(target) {
1682
1686
  return createReactiveObject(
1683
1687
  target,
@@ -1716,24 +1720,29 @@ var VueRuntimeDOM = (function (exports) {
1716
1720
  proxyMap.set(target, proxy);
1717
1721
  return proxy;
1718
1722
  }
1723
+ // @__NO_SIDE_EFFECTS__
1719
1724
  function isReactive(value) {
1720
- if (isReadonly(value)) {
1721
- return isReactive(value["__v_raw"]);
1725
+ if (/* @__PURE__ */ isReadonly(value)) {
1726
+ return /* @__PURE__ */ isReactive(value["__v_raw"]);
1722
1727
  }
1723
1728
  return !!(value && value["__v_isReactive"]);
1724
1729
  }
1730
+ // @__NO_SIDE_EFFECTS__
1725
1731
  function isReadonly(value) {
1726
1732
  return !!(value && value["__v_isReadonly"]);
1727
1733
  }
1734
+ // @__NO_SIDE_EFFECTS__
1728
1735
  function isShallow(value) {
1729
1736
  return !!(value && value["__v_isShallow"]);
1730
1737
  }
1738
+ // @__NO_SIDE_EFFECTS__
1731
1739
  function isProxy(value) {
1732
1740
  return value ? !!value["__v_raw"] : false;
1733
1741
  }
1742
+ // @__NO_SIDE_EFFECTS__
1734
1743
  function toRaw(observed) {
1735
1744
  const raw = observed && observed["__v_raw"];
1736
- return raw ? toRaw(raw) : observed;
1745
+ return raw ? /* @__PURE__ */ toRaw(raw) : observed;
1737
1746
  }
1738
1747
  function markRaw(value) {
1739
1748
  if (!hasOwn(value, "__v_skip") && Object.isExtensible(value)) {
@@ -1741,20 +1750,23 @@ var VueRuntimeDOM = (function (exports) {
1741
1750
  }
1742
1751
  return value;
1743
1752
  }
1744
- const toReactive = (value) => isObject(value) ? reactive(value) : value;
1745
- const toReadonly = (value) => isObject(value) ? readonly(value) : value;
1753
+ const toReactive = (value) => isObject(value) ? /* @__PURE__ */ reactive(value) : value;
1754
+ const toReadonly = (value) => isObject(value) ? /* @__PURE__ */ readonly(value) : value;
1746
1755
 
1756
+ // @__NO_SIDE_EFFECTS__
1747
1757
  function isRef(r) {
1748
1758
  return r ? r["__v_isRef"] === true : false;
1749
1759
  }
1760
+ // @__NO_SIDE_EFFECTS__
1750
1761
  function ref(value) {
1751
1762
  return createRef(value, false);
1752
1763
  }
1764
+ // @__NO_SIDE_EFFECTS__
1753
1765
  function shallowRef(value) {
1754
1766
  return createRef(value, true);
1755
1767
  }
1756
1768
  function createRef(rawValue, shallow) {
1757
- if (isRef(rawValue)) {
1769
+ if (/* @__PURE__ */ isRef(rawValue)) {
1758
1770
  return rawValue;
1759
1771
  }
1760
1772
  return new RefImpl(rawValue, shallow);
@@ -1810,7 +1822,7 @@ var VueRuntimeDOM = (function (exports) {
1810
1822
  }
1811
1823
  }
1812
1824
  function unref(ref2) {
1813
- return isRef(ref2) ? ref2.value : ref2;
1825
+ return /* @__PURE__ */ isRef(ref2) ? ref2.value : ref2;
1814
1826
  }
1815
1827
  function toValue(source) {
1816
1828
  return isFunction(source) ? source() : unref(source);
@@ -1819,7 +1831,7 @@ var VueRuntimeDOM = (function (exports) {
1819
1831
  get: (target, key, receiver) => key === "__v_raw" ? target : unref(Reflect.get(target, key, receiver)),
1820
1832
  set: (target, key, value, receiver) => {
1821
1833
  const oldValue = target[key];
1822
- if (isRef(oldValue) && !isRef(value)) {
1834
+ if (/* @__PURE__ */ isRef(oldValue) && !/* @__PURE__ */ isRef(value)) {
1823
1835
  oldValue.value = value;
1824
1836
  return true;
1825
1837
  } else {
@@ -1849,6 +1861,7 @@ var VueRuntimeDOM = (function (exports) {
1849
1861
  function customRef(factory) {
1850
1862
  return new CustomRefImpl(factory);
1851
1863
  }
1864
+ // @__NO_SIDE_EFFECTS__
1852
1865
  function toRefs(object) {
1853
1866
  if (!isProxy(object)) {
1854
1867
  warn$2(`toRefs() expects a reactive object but received a plain one.`);
@@ -1884,9 +1897,9 @@ var VueRuntimeDOM = (function (exports) {
1884
1897
  return this._value = val === void 0 ? this._defaultValue : val;
1885
1898
  }
1886
1899
  set value(newVal) {
1887
- if (this._shallow && isRef(this._raw[this._key])) {
1900
+ if (this._shallow && /* @__PURE__ */ isRef(this._raw[this._key])) {
1888
1901
  const nestedRef = this._object[this._key];
1889
- if (isRef(nestedRef)) {
1902
+ if (/* @__PURE__ */ isRef(nestedRef)) {
1890
1903
  nestedRef.value = newVal;
1891
1904
  return;
1892
1905
  }
@@ -1908,15 +1921,16 @@ var VueRuntimeDOM = (function (exports) {
1908
1921
  return this._value = this._getter();
1909
1922
  }
1910
1923
  }
1924
+ // @__NO_SIDE_EFFECTS__
1911
1925
  function toRef(source, key, defaultValue) {
1912
- if (isRef(source)) {
1926
+ if (/* @__PURE__ */ isRef(source)) {
1913
1927
  return source;
1914
1928
  } else if (isFunction(source)) {
1915
1929
  return new GetterRefImpl(source);
1916
1930
  } else if (isObject(source) && arguments.length > 1) {
1917
1931
  return propertyToRef(source, key, defaultValue);
1918
1932
  } else {
1919
- return ref(source);
1933
+ return /* @__PURE__ */ ref(source);
1920
1934
  }
1921
1935
  }
1922
1936
  function propertyToRef(source, key, defaultValue) {
@@ -1997,6 +2011,7 @@ var VueRuntimeDOM = (function (exports) {
1997
2011
  }
1998
2012
  }
1999
2013
  }
2014
+ // @__NO_SIDE_EFFECTS__
2000
2015
  function computed$1(getterOrOptions, debugOptions, isSSR = false) {
2001
2016
  let getter;
2002
2017
  let setter;
@@ -2987,7 +3002,152 @@ var VueRuntimeDOM = (function (exports) {
2987
3002
  }
2988
3003
  }
2989
3004
 
2990
- const TeleportEndKey = Symbol("_vte");
3005
+ function provide(key, value) {
3006
+ {
3007
+ if (!currentInstance || currentInstance.isMounted) {
3008
+ warn$1(`provide() can only be used inside setup().`);
3009
+ }
3010
+ }
3011
+ if (currentInstance) {
3012
+ let provides = currentInstance.provides;
3013
+ const parentProvides = currentInstance.parent && currentInstance.parent.provides;
3014
+ if (parentProvides === provides) {
3015
+ provides = currentInstance.provides = Object.create(parentProvides);
3016
+ }
3017
+ provides[key] = value;
3018
+ }
3019
+ }
3020
+ function inject(key, defaultValue, treatDefaultAsFactory = false) {
3021
+ const instance = getCurrentInstance();
3022
+ if (instance || currentApp) {
3023
+ let provides = currentApp ? currentApp._context.provides : instance ? instance.parent == null || instance.ce ? instance.vnode.appContext && instance.vnode.appContext.provides : instance.parent.provides : void 0;
3024
+ if (provides && key in provides) {
3025
+ return provides[key];
3026
+ } else if (arguments.length > 1) {
3027
+ return treatDefaultAsFactory && isFunction(defaultValue) ? defaultValue.call(instance && instance.proxy) : defaultValue;
3028
+ } else {
3029
+ warn$1(`injection "${String(key)}" not found.`);
3030
+ }
3031
+ } else {
3032
+ warn$1(`inject() can only be used inside setup() or functional components.`);
3033
+ }
3034
+ }
3035
+ function hasInjectionContext() {
3036
+ return !!(getCurrentInstance() || currentApp);
3037
+ }
3038
+
3039
+ const ssrContextKey = /* @__PURE__ */ Symbol.for("v-scx");
3040
+ const useSSRContext = () => {
3041
+ {
3042
+ warn$1(`useSSRContext() is not supported in the global build.`);
3043
+ }
3044
+ };
3045
+
3046
+ function watchEffect(effect, options) {
3047
+ return doWatch(effect, null, options);
3048
+ }
3049
+ function watchPostEffect(effect, options) {
3050
+ return doWatch(
3051
+ effect,
3052
+ null,
3053
+ extend({}, options, { flush: "post" })
3054
+ );
3055
+ }
3056
+ function watchSyncEffect(effect, options) {
3057
+ return doWatch(
3058
+ effect,
3059
+ null,
3060
+ extend({}, options, { flush: "sync" })
3061
+ );
3062
+ }
3063
+ function watch(source, cb, options) {
3064
+ if (!isFunction(cb)) {
3065
+ warn$1(
3066
+ `\`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.`
3067
+ );
3068
+ }
3069
+ return doWatch(source, cb, options);
3070
+ }
3071
+ function doWatch(source, cb, options = EMPTY_OBJ) {
3072
+ const { immediate, deep, flush, once } = options;
3073
+ if (!cb) {
3074
+ if (immediate !== void 0) {
3075
+ warn$1(
3076
+ `watch() "immediate" option is only respected when using the watch(source, callback, options?) signature.`
3077
+ );
3078
+ }
3079
+ if (deep !== void 0) {
3080
+ warn$1(
3081
+ `watch() "deep" option is only respected when using the watch(source, callback, options?) signature.`
3082
+ );
3083
+ }
3084
+ if (once !== void 0) {
3085
+ warn$1(
3086
+ `watch() "once" option is only respected when using the watch(source, callback, options?) signature.`
3087
+ );
3088
+ }
3089
+ }
3090
+ const baseWatchOptions = extend({}, options);
3091
+ baseWatchOptions.onWarn = warn$1;
3092
+ const instance = currentInstance;
3093
+ baseWatchOptions.call = (fn, type, args) => callWithAsyncErrorHandling(fn, instance, type, args);
3094
+ let isPre = false;
3095
+ if (flush === "post") {
3096
+ baseWatchOptions.scheduler = (job) => {
3097
+ queuePostRenderEffect(job, instance && instance.suspense);
3098
+ };
3099
+ } else if (flush !== "sync") {
3100
+ isPre = true;
3101
+ baseWatchOptions.scheduler = (job, isFirstRun) => {
3102
+ if (isFirstRun) {
3103
+ job();
3104
+ } else {
3105
+ queueJob(job);
3106
+ }
3107
+ };
3108
+ }
3109
+ baseWatchOptions.augmentJob = (job) => {
3110
+ if (cb) {
3111
+ job.flags |= 4;
3112
+ }
3113
+ if (isPre) {
3114
+ job.flags |= 2;
3115
+ if (instance) {
3116
+ job.id = instance.uid;
3117
+ job.i = instance;
3118
+ }
3119
+ }
3120
+ };
3121
+ const watchHandle = watch$1(source, cb, baseWatchOptions);
3122
+ return watchHandle;
3123
+ }
3124
+ function instanceWatch(source, value, options) {
3125
+ const publicThis = this.proxy;
3126
+ const getter = isString(source) ? source.includes(".") ? createPathGetter(publicThis, source) : () => publicThis[source] : source.bind(publicThis, publicThis);
3127
+ let cb;
3128
+ if (isFunction(value)) {
3129
+ cb = value;
3130
+ } else {
3131
+ cb = value.handler;
3132
+ options = value;
3133
+ }
3134
+ const reset = setCurrentInstance(this);
3135
+ const res = doWatch(getter, cb.bind(publicThis), options);
3136
+ reset();
3137
+ return res;
3138
+ }
3139
+ function createPathGetter(ctx, path) {
3140
+ const segments = path.split(".");
3141
+ return () => {
3142
+ let cur = ctx;
3143
+ for (let i = 0; i < segments.length && cur; i++) {
3144
+ cur = cur[segments[i]];
3145
+ }
3146
+ return cur;
3147
+ };
3148
+ }
3149
+
3150
+ const TeleportEndKey = /* @__PURE__ */ Symbol("_vte");
2991
3151
  const isTeleport = (type) => type.__isTeleport;
2992
3152
  const isTeleportDisabled = (props) => props && (props.disabled || props.disabled === "");
2993
3153
  const isTeleportDeferred = (props) => props && (props.defer || props.defer === "");
@@ -3347,8 +3507,8 @@ var VueRuntimeDOM = (function (exports) {
3347
3507
  return targetAnchor;
3348
3508
  }
3349
3509
 
3350
- const leaveCbKey = Symbol("_leaveCb");
3351
- const enterCbKey$1 = Symbol("_enterCb");
3510
+ const leaveCbKey = /* @__PURE__ */ Symbol("_leaveCb");
3511
+ const enterCbKey$1 = /* @__PURE__ */ Symbol("_enterCb");
3352
3512
  function useTransitionState() {
3353
3513
  const state = {
3354
3514
  isMounted: false,
@@ -4196,7 +4356,7 @@ Server rendered element contains more child nodes than client vdom.`
4196
4356
  logMismatchError();
4197
4357
  }
4198
4358
  if (forcePatch && (key.endsWith("value") || key === "indeterminate") || isOn(key) && !isReservedProp(key) || // force hydrate v-bind with .prop modifiers
4199
- key[0] === "." || isCustomElement) {
4359
+ key[0] === "." || isCustomElement && !isReservedProp(key)) {
4200
4360
  patchProp(el, key, null, props[key], void 0, parentComponent);
4201
4361
  }
4202
4362
  }
@@ -4879,7 +5039,9 @@ Server rendered element contains fewer child nodes than client vdom.`
4879
5039
  }
4880
5040
  function pruneCache(filter) {
4881
5041
  cache.forEach((vnode, key) => {
4882
- const name = getComponentName(vnode.type);
5042
+ const name = getComponentName(
5043
+ isAsyncWrapper(vnode) ? vnode.type.__asyncResolved || {} : vnode.type
5044
+ );
4883
5045
  if (name && !filter(name)) {
4884
5046
  pruneCacheEntry(key);
4885
5047
  }
@@ -5106,7 +5268,7 @@ Server rendered element contains fewer child nodes than client vdom.`
5106
5268
  function resolveComponent(name, maybeSelfReference) {
5107
5269
  return resolveAsset(COMPONENTS, name, true, maybeSelfReference) || name;
5108
5270
  }
5109
- const NULL_DYNAMIC_COMPONENT = Symbol.for("v-ndc");
5271
+ const NULL_DYNAMIC_COMPONENT = /* @__PURE__ */ Symbol.for("v-ndc");
5110
5272
  function resolveDynamicComponent(component) {
5111
5273
  if (isString(component)) {
5112
5274
  return resolveAsset(COMPONENTS, component, false) || component;
@@ -6267,151 +6429,6 @@ If you want to remount the same app, move your app creation logic into a factory
6267
6429
  }
6268
6430
  let currentApp = null;
6269
6431
 
6270
- function provide(key, value) {
6271
- {
6272
- if (!currentInstance || currentInstance.isMounted) {
6273
- warn$1(`provide() can only be used inside setup().`);
6274
- }
6275
- }
6276
- if (currentInstance) {
6277
- let provides = currentInstance.provides;
6278
- const parentProvides = currentInstance.parent && currentInstance.parent.provides;
6279
- if (parentProvides === provides) {
6280
- provides = currentInstance.provides = Object.create(parentProvides);
6281
- }
6282
- provides[key] = value;
6283
- }
6284
- }
6285
- function inject(key, defaultValue, treatDefaultAsFactory = false) {
6286
- const instance = getCurrentInstance();
6287
- if (instance || currentApp) {
6288
- let provides = currentApp ? currentApp._context.provides : instance ? instance.parent == null || instance.ce ? instance.vnode.appContext && instance.vnode.appContext.provides : instance.parent.provides : void 0;
6289
- if (provides && key in provides) {
6290
- return provides[key];
6291
- } else if (arguments.length > 1) {
6292
- return treatDefaultAsFactory && isFunction(defaultValue) ? defaultValue.call(instance && instance.proxy) : defaultValue;
6293
- } else {
6294
- warn$1(`injection "${String(key)}" not found.`);
6295
- }
6296
- } else {
6297
- warn$1(`inject() can only be used inside setup() or functional components.`);
6298
- }
6299
- }
6300
- function hasInjectionContext() {
6301
- return !!(getCurrentInstance() || currentApp);
6302
- }
6303
-
6304
- const ssrContextKey = Symbol.for("v-scx");
6305
- const useSSRContext = () => {
6306
- {
6307
- warn$1(`useSSRContext() is not supported in the global build.`);
6308
- }
6309
- };
6310
-
6311
- function watchEffect(effect, options) {
6312
- return doWatch(effect, null, options);
6313
- }
6314
- function watchPostEffect(effect, options) {
6315
- return doWatch(
6316
- effect,
6317
- null,
6318
- extend({}, options, { flush: "post" })
6319
- );
6320
- }
6321
- function watchSyncEffect(effect, options) {
6322
- return doWatch(
6323
- effect,
6324
- null,
6325
- extend({}, options, { flush: "sync" })
6326
- );
6327
- }
6328
- function watch(source, cb, options) {
6329
- if (!isFunction(cb)) {
6330
- warn$1(
6331
- `\`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.`
6332
- );
6333
- }
6334
- return doWatch(source, cb, options);
6335
- }
6336
- function doWatch(source, cb, options = EMPTY_OBJ) {
6337
- const { immediate, deep, flush, once } = options;
6338
- if (!cb) {
6339
- if (immediate !== void 0) {
6340
- warn$1(
6341
- `watch() "immediate" option is only respected when using the watch(source, callback, options?) signature.`
6342
- );
6343
- }
6344
- if (deep !== void 0) {
6345
- warn$1(
6346
- `watch() "deep" option is only respected when using the watch(source, callback, options?) signature.`
6347
- );
6348
- }
6349
- if (once !== void 0) {
6350
- warn$1(
6351
- `watch() "once" option is only respected when using the watch(source, callback, options?) signature.`
6352
- );
6353
- }
6354
- }
6355
- const baseWatchOptions = extend({}, options);
6356
- baseWatchOptions.onWarn = warn$1;
6357
- const instance = currentInstance;
6358
- baseWatchOptions.call = (fn, type, args) => callWithAsyncErrorHandling(fn, instance, type, args);
6359
- let isPre = false;
6360
- if (flush === "post") {
6361
- baseWatchOptions.scheduler = (job) => {
6362
- queuePostRenderEffect(job, instance && instance.suspense);
6363
- };
6364
- } else if (flush !== "sync") {
6365
- isPre = true;
6366
- baseWatchOptions.scheduler = (job, isFirstRun) => {
6367
- if (isFirstRun) {
6368
- job();
6369
- } else {
6370
- queueJob(job);
6371
- }
6372
- };
6373
- }
6374
- baseWatchOptions.augmentJob = (job) => {
6375
- if (cb) {
6376
- job.flags |= 4;
6377
- }
6378
- if (isPre) {
6379
- job.flags |= 2;
6380
- if (instance) {
6381
- job.id = instance.uid;
6382
- job.i = instance;
6383
- }
6384
- }
6385
- };
6386
- const watchHandle = watch$1(source, cb, baseWatchOptions);
6387
- return watchHandle;
6388
- }
6389
- function instanceWatch(source, value, options) {
6390
- const publicThis = this.proxy;
6391
- const getter = isString(source) ? source.includes(".") ? createPathGetter(publicThis, source) : () => publicThis[source] : source.bind(publicThis, publicThis);
6392
- let cb;
6393
- if (isFunction(value)) {
6394
- cb = value;
6395
- } else {
6396
- cb = value.handler;
6397
- options = value;
6398
- }
6399
- const reset = setCurrentInstance(this);
6400
- const res = doWatch(getter, cb.bind(publicThis), options);
6401
- reset();
6402
- return res;
6403
- }
6404
- function createPathGetter(ctx, path) {
6405
- const segments = path.split(".");
6406
- return () => {
6407
- let cur = ctx;
6408
- for (let i = 0; i < segments.length && cur; i++) {
6409
- cur = cur[segments[i]];
6410
- }
6411
- return cur;
6412
- };
6413
- }
6414
-
6415
6432
  function useModel(props, name, options = EMPTY_OBJ) {
6416
6433
  const i = getCurrentInstance();
6417
6434
  if (!i) {
@@ -7594,7 +7611,15 @@ If you want to remount the same app, move your app creation logic into a factory
7594
7611
  } else {
7595
7612
  const el = n2.el = n1.el;
7596
7613
  if (n2.children !== n1.children) {
7597
- hostSetText(el, n2.children);
7614
+ if (isHmrUpdating && n2.patchFlag === -1 && "__elIndex" in n1) {
7615
+ const childNodes = container.childNodes;
7616
+ const newChild = hostCreateText(n2.children);
7617
+ const oldChild = childNodes[n2.__elIndex = n1.__elIndex];
7618
+ hostInsert(newChild, container, oldChild);
7619
+ hostRemove(oldChild);
7620
+ } else {
7621
+ hostSetText(el, n2.children);
7622
+ }
7598
7623
  }
7599
7624
  }
7600
7625
  };
@@ -7980,7 +8005,7 @@ If you want to remount the same app, move your app creation logic into a factory
7980
8005
  } else {
7981
8006
  if (patchFlag > 0 && patchFlag & 64 && dynamicChildren && // #2715 the previous fragment could've been a BAILed one as a result
7982
8007
  // of renderSlot() with no valid children
7983
- n1.dynamicChildren) {
8008
+ n1.dynamicChildren && n1.dynamicChildren.length === dynamicChildren.length) {
7984
8009
  patchBlockChildren(
7985
8010
  n1.dynamicChildren,
7986
8011
  dynamicChildren,
@@ -8569,8 +8594,8 @@ If you want to remount the same app, move your app creation logic into a factory
8569
8594
  const nextChild = c2[nextIndex];
8570
8595
  const anchorVNode = c2[nextIndex + 1];
8571
8596
  const anchor = nextIndex + 1 < l2 ? (
8572
- // #13559, fallback to el placeholder for unresolved async component
8573
- anchorVNode.el || anchorVNode.placeholder
8597
+ // #13559, #14173 fallback to el placeholder for unresolved async component
8598
+ anchorVNode.el || resolveAsyncComponentPlaceholder(anchorVNode)
8574
8599
  ) : parentAnchor;
8575
8600
  if (newIndexToOldIndexMap[i] === 0) {
8576
8601
  patch(
@@ -8826,9 +8851,11 @@ If you want to remount the same app, move your app creation logic into a factory
8826
8851
  };
8827
8852
  let isFlushing = false;
8828
8853
  const render = (vnode, container, namespace) => {
8854
+ let instance;
8829
8855
  if (vnode == null) {
8830
8856
  if (container._vnode) {
8831
8857
  unmount(container._vnode, null, null, true);
8858
+ instance = container._vnode.component;
8832
8859
  }
8833
8860
  } else {
8834
8861
  patch(
@@ -8844,7 +8871,7 @@ If you want to remount the same app, move your app creation logic into a factory
8844
8871
  container._vnode = vnode;
8845
8872
  if (!isFlushing) {
8846
8873
  isFlushing = true;
8847
- flushPreFlushCbs();
8874
+ flushPreFlushCbs(instance);
8848
8875
  flushPostFlushCbs();
8849
8876
  isFlushing = false;
8850
8877
  }
@@ -8904,9 +8931,13 @@ If you want to remount the same app, move your app creation logic into a factory
8904
8931
  if (!shallow && c2.patchFlag !== -2)
8905
8932
  traverseStaticChildren(c1, c2);
8906
8933
  }
8907
- if (c2.type === Text && // avoid cached text nodes retaining detached dom nodes
8908
- c2.patchFlag !== -1) {
8909
- c2.el = c1.el;
8934
+ if (c2.type === Text) {
8935
+ if (c2.patchFlag !== -1) {
8936
+ c2.el = c1.el;
8937
+ } else {
8938
+ c2.__elIndex = i + // take fragment start anchor into account
8939
+ (n1.type === Fragment ? 1 : 0);
8940
+ }
8910
8941
  }
8911
8942
  if (c2.type === Comment && !c2.el) {
8912
8943
  c2.el = c1.el;
@@ -8973,6 +9004,16 @@ If you want to remount the same app, move your app creation logic into a factory
8973
9004
  hooks[i].flags |= 8;
8974
9005
  }
8975
9006
  }
9007
+ function resolveAsyncComponentPlaceholder(anchorVnode) {
9008
+ if (anchorVnode.placeholder) {
9009
+ return anchorVnode.placeholder;
9010
+ }
9011
+ const instance = anchorVnode.component;
9012
+ if (instance) {
9013
+ return resolveAsyncComponentPlaceholder(instance.subTree);
9014
+ }
9015
+ return null;
9016
+ }
8976
9017
 
8977
9018
  const isSuspense = (type) => type.__isSuspense;
8978
9019
  let suspenseId = 0;
@@ -9575,10 +9616,10 @@ If you want to remount the same app, move your app creation logic into a factory
9575
9616
  return suspensible != null && suspensible !== false;
9576
9617
  }
9577
9618
 
9578
- const Fragment = Symbol.for("v-fgt");
9579
- const Text = Symbol.for("v-txt");
9580
- const Comment = Symbol.for("v-cmt");
9581
- const Static = Symbol.for("v-stc");
9619
+ const Fragment = /* @__PURE__ */ Symbol.for("v-fgt");
9620
+ const Text = /* @__PURE__ */ Symbol.for("v-txt");
9621
+ const Comment = /* @__PURE__ */ Symbol.for("v-cmt");
9622
+ const Static = /* @__PURE__ */ Symbol.for("v-stc");
9582
9623
  const blockStack = [];
9583
9624
  let currentBlock = null;
9584
9625
  function openBlock(disableTracking = false) {
@@ -10608,7 +10649,7 @@ Component that was made reactive: `,
10608
10649
  return true;
10609
10650
  }
10610
10651
 
10611
- const version = "3.5.25";
10652
+ const version = "3.5.27";
10612
10653
  const warn = warn$1 ;
10613
10654
  const ErrorTypeStrings = ErrorTypeStrings$1 ;
10614
10655
  const devtools = devtools$1 ;
@@ -10701,7 +10742,7 @@ Component that was made reactive: `,
10701
10742
 
10702
10743
  const TRANSITION = "transition";
10703
10744
  const ANIMATION = "animation";
10704
- const vtcKey = Symbol("_vtc");
10745
+ const vtcKey = /* @__PURE__ */ Symbol("_vtc");
10705
10746
  const DOMTransitionPropsValidators = {
10706
10747
  name: String,
10707
10748
  type: String,
@@ -10994,8 +11035,8 @@ Component that was made reactive: `,
10994
11035
  }
10995
11036
  }
10996
11037
 
10997
- const vShowOriginalDisplay = Symbol("_vod");
10998
- const vShowHidden = Symbol("_vsh");
11038
+ const vShowOriginalDisplay = /* @__PURE__ */ Symbol("_vod");
11039
+ const vShowHidden = /* @__PURE__ */ Symbol("_vsh");
10999
11040
  const vShow = {
11000
11041
  // used for prop mismatch check during hydration
11001
11042
  name: "show",
@@ -11037,7 +11078,7 @@ Component that was made reactive: `,
11037
11078
  el[vShowHidden] = !value;
11038
11079
  }
11039
11080
 
11040
- const CSS_VAR_TEXT = Symbol("CSS_VAR_TEXT" );
11081
+ const CSS_VAR_TEXT = /* @__PURE__ */ Symbol("CSS_VAR_TEXT" );
11041
11082
  function useCssVars(getter) {
11042
11083
  const instance = getCurrentInstance();
11043
11084
  if (!instance) {
@@ -11287,7 +11328,7 @@ Component that was made reactive: `,
11287
11328
  function removeEventListener(el, event, handler, options) {
11288
11329
  el.removeEventListener(event, handler, options);
11289
11330
  }
11290
- const veiKey = Symbol("_vei");
11331
+ const veiKey = /* @__PURE__ */ Symbol("_vei");
11291
11332
  function patchEvent(el, rawName, prevValue, nextValue, instance = null) {
11292
11333
  const invokers = el[veiKey] || (el[veiKey] = {});
11293
11334
  const existingInvoker = invokers[rawName];
@@ -11913,8 +11954,8 @@ Expected function or array of functions, received type ${typeof value}.`
11913
11954
 
11914
11955
  const positionMap = /* @__PURE__ */ new WeakMap();
11915
11956
  const newPositionMap = /* @__PURE__ */ new WeakMap();
11916
- const moveCbKey = Symbol("_moveCb");
11917
- const enterCbKey = Symbol("_enterCb");
11957
+ const moveCbKey = /* @__PURE__ */ Symbol("_moveCb");
11958
+ const enterCbKey = /* @__PURE__ */ Symbol("_enterCb");
11918
11959
  const decorate = (t) => {
11919
11960
  delete t.props.mode;
11920
11961
  return t;
@@ -12067,7 +12108,7 @@ Expected function or array of functions, received type ${typeof value}.`
12067
12108
  target.dispatchEvent(new Event("input"));
12068
12109
  }
12069
12110
  }
12070
- const assignKey = Symbol("_assign");
12111
+ const assignKey = /* @__PURE__ */ Symbol("_assign");
12071
12112
  function castValue(value, trim, number) {
12072
12113
  if (trim) value = value.trim();
12073
12114
  if (number) value = looseToNumber(value);