@vue/runtime-dom 3.6.0-beta.7 → 3.6.0-beta.9

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,14 +1,12 @@
1
1
  /**
2
- * @vue/runtime-dom v3.6.0-beta.7
2
+ * @vue/runtime-dom v3.6.0-beta.9
3
3
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
4
4
  * @license MIT
5
5
  **/
6
6
  var VueRuntimeDOM = (function(exports) {
7
-
8
- Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
9
-
10
- //#region packages/shared/src/makeMap.ts
11
- /**
7
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
8
+ //#region packages/shared/src/makeMap.ts
9
+ /**
12
10
  * Make a map and return a function for checking if a key
13
11
  * is in that map.
14
12
  * IMPORTANT: all calls of this function must be prefixed with
@@ -21,9 +19,8 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
21
19
  for (const key of str.split(",")) map[key] = 1;
22
20
  return (val) => val in map;
23
21
  }
24
-
25
- //#endregion
26
- //#region packages/shared/src/general.ts
22
+ //#endregion
23
+ //#region packages/shared/src/general.ts
27
24
  const EMPTY_OBJ = Object.freeze({});
28
25
  const EMPTY_ARR = Object.freeze([]);
29
26
  const NOOP = () => {};
@@ -136,14 +133,9 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
136
133
  function canSetValueDirectly(tagName) {
137
134
  return tagName !== "PROGRESS" && !tagName.includes("-");
138
135
  }
139
-
140
- //#endregion
141
- //#region packages/shared/src/globalsAllowList.ts
142
- const GLOBALS_ALLOWED = "Infinity,undefined,NaN,isFinite,isNaN,parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,BigInt,console,Error,Symbol";
143
- const isGloballyAllowed = /* @__PURE__ */ makeMap(GLOBALS_ALLOWED);
144
-
145
- //#endregion
146
- //#region packages/shared/src/normalizeProp.ts
136
+ const isGloballyAllowed = /* @__PURE__ */ makeMap("Infinity,undefined,NaN,isFinite,isNaN,parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,BigInt,console,Error,Symbol");
137
+ //#endregion
138
+ //#region packages/shared/src/normalizeProp.ts
147
139
  function normalizeStyle(value) {
148
140
  if (isArray(value)) {
149
141
  const res = {};
@@ -200,9 +192,8 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
200
192
  if (style) props.style = normalizeStyle(style);
201
193
  return props;
202
194
  }
203
-
204
- //#endregion
205
- //#region packages/shared/src/domTagConfig.ts
195
+ //#endregion
196
+ //#region packages/shared/src/domTagConfig.ts
206
197
  const HTML_TAGS = "html,body,base,head,link,meta,style,title,address,article,aside,footer,header,hgroup,h1,h2,h3,h4,h5,h6,nav,section,div,dd,dl,dt,figcaption,figure,picture,hr,img,li,main,ol,p,pre,ul,a,b,abbr,bdi,bdo,br,cite,code,data,dfn,em,i,kbd,mark,q,rp,rt,ruby,s,samp,small,span,strong,sub,sup,time,u,var,wbr,area,audio,map,track,video,embed,object,param,source,canvas,script,noscript,del,ins,caption,col,colgroup,table,thead,tbody,td,th,tr,button,datalist,fieldset,form,input,label,legend,meter,optgroup,option,output,progress,select,textarea,details,dialog,menu,summary,template,blockquote,iframe,tfoot";
207
198
  const SVG_TAGS = "svg,animate,animateMotion,animateTransform,circle,clipPath,color-profile,defs,desc,discard,ellipse,feBlend,feColorMatrix,feComponentTransfer,feComposite,feConvolveMatrix,feDiffuseLighting,feDisplacementMap,feDistantLight,feDropShadow,feFlood,feFuncA,feFuncB,feFuncG,feFuncR,feGaussianBlur,feImage,feMerge,feMergeNode,feMorphology,feOffset,fePointLight,feSpecularLighting,feSpotLight,feTile,feTurbulence,filter,foreignObject,g,hatch,hatchpath,image,line,linearGradient,marker,mask,mesh,meshgradient,meshpatch,meshrow,metadata,mpath,path,pattern,polygon,polyline,radialGradient,rect,set,solidcolor,stop,switch,symbol,text,textPath,title,tspan,unknown,use,view";
208
199
  const MATH_TAGS = "annotation,annotation-xml,maction,maligngroup,malignmark,math,menclose,merror,mfenced,mfrac,mfraction,mglyph,mi,mlabeledtr,mlongdiv,mmultiscripts,mn,mo,mover,mpadded,mphantom,mprescripts,mroot,mrow,ms,mscarries,mscarry,msgroup,msline,mspace,msqrt,msrow,mstack,mstyle,msub,msubsup,msup,mtable,mtd,mtext,mtr,munder,munderover,none,semantics";
@@ -221,10 +212,9 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
221
212
  * Do NOT use in runtime code paths unless behind `__DEV__` flag.
222
213
  */
223
214
  const isMathMLTag = /* @__PURE__ */ makeMap(MATH_TAGS);
224
-
225
- //#endregion
226
- //#region packages/shared/src/domAttrConfig.ts
227
- /**
215
+ //#endregion
216
+ //#region packages/shared/src/domAttrConfig.ts
217
+ /**
228
218
  * On the client we only need to offer special cases for boolean attributes that
229
219
  * have different names from their corresponding dom properties:
230
220
  * - itemscope -> N/A
@@ -276,16 +266,14 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
276
266
  if (key === "sandbox" && tagName === "IFRAME") return true;
277
267
  return false;
278
268
  }
279
-
280
- //#endregion
281
- //#region packages/shared/src/escapeHtml.ts
269
+ //#endregion
270
+ //#region packages/shared/src/escapeHtml.ts
282
271
  const cssVarNameEscapeSymbolsRE = /[ !"#$%&'()*+,./:;<=>?@[\\\]^`{|}~]/g;
283
272
  function getEscapedCssVarName(key, doubleEscape) {
284
273
  return key.replace(cssVarNameEscapeSymbolsRE, (s) => doubleEscape ? s === "\"" ? "\\\\\\\"" : `\\\\${s}` : `\\${s}`);
285
274
  }
286
-
287
- //#endregion
288
- //#region packages/shared/src/looseEqual.ts
275
+ //#endregion
276
+ //#region packages/shared/src/looseEqual.ts
289
277
  function looseCompareArrays(a, b) {
290
278
  if (a.length !== b.length) return false;
291
279
  let equal = true;
@@ -319,9 +307,8 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
319
307
  function looseIndexOf(arr, val) {
320
308
  return arr.findIndex((item) => looseEqual(item, val));
321
309
  }
322
-
323
- //#endregion
324
- //#region packages/shared/src/toDisplayString.ts
310
+ //#endregion
311
+ //#region packages/shared/src/toDisplayString.ts
325
312
  const isRef$1 = (val) => {
326
313
  return !!(val && val["__v_isRef"] === true);
327
314
  };
@@ -354,9 +341,8 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
354
341
  var _description;
355
342
  return isSymbol(v) ? `Symbol(${(_description = v.description) !== null && _description !== void 0 ? _description : i})` : v;
356
343
  };
357
-
358
- //#endregion
359
- //#region packages/shared/src/subSequence.ts
344
+ //#endregion
345
+ //#region packages/shared/src/subSequence.ts
360
346
  function getSequence(arr) {
361
347
  const p = arr.slice();
362
348
  const result = [0];
@@ -392,10 +378,9 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
392
378
  }
393
379
  return result;
394
380
  }
395
-
396
- //#endregion
397
- //#region packages/shared/src/cssVars.ts
398
- /**
381
+ //#endregion
382
+ //#region packages/shared/src/cssVars.ts
383
+ /**
399
384
  * Normalize CSS var value created by `v-bind` in `<style>` block
400
385
  * See https://github.com/vuejs/core/pull/12461#issuecomment-2495804664
401
386
  */
@@ -405,9 +390,8 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
405
390
  if (typeof value !== "number" || !Number.isFinite(value)) console.warn("[Vue warn] Invalid value used for CSS binding. Expected a string or a finite number but received:", value);
406
391
  return String(value);
407
392
  }
408
-
409
- //#endregion
410
- //#region packages/reactivity/src/debug.ts
393
+ //#endregion
394
+ //#region packages/reactivity/src/debug.ts
411
395
  const triggerEventInfos = [];
412
396
  function onTrack(sub, debugInfo) {
413
397
  if (sub.onTrack) sub.onTrack(extend({ effect: sub }, debugInfo));
@@ -441,31 +425,11 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
441
425
  }
442
426
  });
443
427
  }
444
-
445
- //#endregion
446
- //#region packages/reactivity/src/warning.ts
428
+ //#endregion
429
+ //#region packages/reactivity/src/warning.ts
447
430
  function warn$2(msg, ...args) {
448
431
  console.warn(`[Vue warn] ${msg}`, ...args);
449
432
  }
450
-
451
- //#endregion
452
- //#region packages/reactivity/src/system.ts
453
- const ReactiveFlags = {
454
- "None": 0,
455
- "0": "None",
456
- "Mutable": 1,
457
- "1": "Mutable",
458
- "Watching": 2,
459
- "2": "Watching",
460
- "RecursedCheck": 4,
461
- "4": "RecursedCheck",
462
- "Recursed": 8,
463
- "8": "Recursed",
464
- "Dirty": 16,
465
- "16": "Dirty",
466
- "Pending": 32,
467
- "32": "Pending"
468
- };
469
433
  const notifyBuffer = [];
470
434
  let batchDepth = 0;
471
435
  let activeSub = void 0;
@@ -673,9 +637,8 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
673
637
  }
674
638
  return false;
675
639
  }
676
-
677
- //#endregion
678
- //#region packages/reactivity/src/dep.ts
640
+ //#endregion
641
+ //#region packages/reactivity/src/dep.ts
679
642
  var Dep = class {
680
643
  constructor(map, key) {
681
644
  this.map = map;
@@ -784,10 +747,9 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
784
747
  const depMap = targetMap.get(object);
785
748
  return depMap && depMap.get(key);
786
749
  }
787
-
788
- //#endregion
789
- //#region packages/reactivity/src/arrayInstrumentations.ts
790
- /**
750
+ //#endregion
751
+ //#region packages/reactivity/src/arrayInstrumentations.ts
752
+ /**
791
753
  * Track array iteration and return:
792
754
  * - if input is reactive: a cloned raw array with reactive values
793
755
  * - if input is non-reactive or shallowReactive: the original raw array
@@ -932,16 +894,25 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
932
894
  }
933
895
  function reduce(self, method, fn, args) {
934
896
  const arr = shallowReadArray(self);
897
+ const needsWrap = arr !== self && !/* @__PURE__ */ isShallow(self);
935
898
  let wrappedFn = fn;
899
+ let wrapInitialAccumulator = false;
936
900
  if (arr !== self) {
937
- if (!/* @__PURE__ */ isShallow(self)) wrappedFn = function(acc, item, index) {
938
- return fn.call(this, acc, toWrapped(self, item), index, self);
939
- };
940
- else if (fn.length > 3) wrappedFn = function(acc, item, index) {
901
+ if (needsWrap) {
902
+ wrapInitialAccumulator = args.length === 0;
903
+ wrappedFn = function(acc, item, index) {
904
+ if (wrapInitialAccumulator) {
905
+ wrapInitialAccumulator = false;
906
+ acc = toWrapped(self, acc);
907
+ }
908
+ return fn.call(this, acc, toWrapped(self, item), index, self);
909
+ };
910
+ } else if (fn.length > 3) wrappedFn = function(acc, item, index) {
941
911
  return fn.call(this, acc, item, index, self);
942
912
  };
943
913
  }
944
- return arr[method](wrappedFn, ...args);
914
+ const result = arr[method](wrappedFn, ...args);
915
+ return wrapInitialAccumulator ? toWrapped(self, result) : result;
945
916
  }
946
917
  function searchProxy(self, method, args) {
947
918
  const arr = /* @__PURE__ */ toRaw(self);
@@ -961,9 +932,8 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
961
932
  endBatch();
962
933
  return res;
963
934
  }
964
-
965
- //#endregion
966
- //#region packages/reactivity/src/baseHandlers.ts
935
+ //#endregion
936
+ //#region packages/reactivity/src/baseHandlers.ts
967
937
  const isNonTrackableKeys = /* @__PURE__ */ makeMap(`__proto__,__v_isRef,__isVue`);
968
938
  const builtInSymbols = new Set(/* @__PURE__ */ Object.getOwnPropertyNames(Symbol).filter((key) => key !== "arguments" && key !== "caller").map((key) => Symbol[key]).filter(isSymbol));
969
939
  function hasOwnProperty(key) {
@@ -1070,9 +1040,8 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
1070
1040
  const readonlyHandlers = /* @__PURE__ */ new ReadonlyReactiveHandler();
1071
1041
  const shallowReactiveHandlers = /* @__PURE__ */ new MutableReactiveHandler(true);
1072
1042
  const shallowReadonlyHandlers = /* @__PURE__ */ new ReadonlyReactiveHandler(true);
1073
-
1074
- //#endregion
1075
- //#region packages/reactivity/src/collectionHandlers.ts
1043
+ //#endregion
1044
+ //#region packages/reactivity/src/collectionHandlers.ts
1076
1045
  const toShallow = (value) => value;
1077
1046
  const getProto = (v) => Reflect.getPrototypeOf(v);
1078
1047
  function createIterableMethod(method, isReadonly, isShallow) {
@@ -1155,11 +1124,13 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
1155
1124
  clear: createReadonlyMethod("clear")
1156
1125
  } : {
1157
1126
  add(value) {
1158
- if (!shallow && !/* @__PURE__ */ isShallow(value) && !/* @__PURE__ */ isReadonly(value)) value = /* @__PURE__ */ toRaw(value);
1159
1127
  const target = /* @__PURE__ */ toRaw(this);
1160
- if (!getProto(target).has.call(target, value)) {
1161
- target.add(value);
1162
- trigger(target, "add", value, value);
1128
+ const proto = getProto(target);
1129
+ const rawValue = /* @__PURE__ */ toRaw(value);
1130
+ const valueToAdd = !shallow && !/* @__PURE__ */ isShallow(value) && !/* @__PURE__ */ isReadonly(value) ? rawValue : value;
1131
+ if (!(proto.has.call(target, valueToAdd) || hasChanged(value, valueToAdd) && proto.has.call(target, value) || hasChanged(rawValue, valueToAdd) && proto.has.call(target, rawValue))) {
1132
+ target.add(valueToAdd);
1133
+ trigger(target, "add", valueToAdd, valueToAdd);
1163
1134
  }
1164
1135
  return this;
1165
1136
  },
@@ -1230,9 +1201,8 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
1230
1201
  warn$2(`Reactive ${type} contains both the raw and reactive versions of the same object${type === `Map` ? ` as keys` : ``}, which can lead to inconsistencies. Avoid differentiating between the raw and reactive versions of an object and only use the reactive version if possible.`);
1231
1202
  }
1232
1203
  }
1233
-
1234
- //#endregion
1235
- //#region packages/reactivity/src/reactive.ts
1204
+ //#endregion
1205
+ //#region packages/reactivity/src/reactive.ts
1236
1206
  const reactiveMap = /* @__PURE__ */ new WeakMap();
1237
1207
  const shallowReactiveMap = /* @__PURE__ */ new WeakMap();
1238
1208
  const readonlyMap = /* @__PURE__ */ new WeakMap();
@@ -1494,9 +1464,8 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
1494
1464
  * @param value - The value for which a readonly proxy shall be created.
1495
1465
  */
1496
1466
  const toReadonly = (value) => isObject(value) ? /* @__PURE__ */ readonly(value) : value;
1497
-
1498
- //#endregion
1499
- //#region packages/reactivity/src/ref.ts
1467
+ //#endregion
1468
+ //#region packages/reactivity/src/ref.ts
1500
1469
  /* @__NO_SIDE_EFFECTS__ */
1501
1470
  function isRef(r) {
1502
1471
  return r ? r["__v_isRef"] === true : false;
@@ -1563,7 +1532,7 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
1563
1532
  }
1564
1533
  }
1565
1534
  update() {
1566
- this.flags &= ~16;
1535
+ this.flags &= -17;
1567
1536
  return hasChanged(this._oldValue, this._oldValue = this._rawValue);
1568
1537
  }
1569
1538
  };
@@ -1715,16 +1684,16 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
1715
1684
  return ret;
1716
1685
  }
1717
1686
  var ObjectRefImpl = class {
1718
- constructor(_object, _key, _defaultValue) {
1687
+ constructor(_object, key, _defaultValue) {
1719
1688
  this._object = _object;
1720
- this._key = _key;
1721
1689
  this._defaultValue = _defaultValue;
1722
1690
  this["__v_isRef"] = true;
1723
1691
  this._value = void 0;
1692
+ this._key = isSymbol(key) ? key : String(key);
1724
1693
  this._raw = /* @__PURE__ */ toRaw(_object);
1725
1694
  let shallow = true;
1726
1695
  let obj = _object;
1727
- if (!isArray(_object) || !isIntegerKey(String(_key))) do
1696
+ if (!isArray(_object) || isSymbol(this._key) || !isIntegerKey(this._key)) do
1728
1697
  shallow = !/* @__PURE__ */ isProxy(obj) || /* @__PURE__ */ isShallow(obj);
1729
1698
  while (shallow && (obj = obj["__v_raw"]));
1730
1699
  this._shallow = shallow;
@@ -1769,9 +1738,8 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
1769
1738
  function propertyToRef(source, key, defaultValue) {
1770
1739
  return new ObjectRefImpl(source, key, defaultValue);
1771
1740
  }
1772
-
1773
- //#endregion
1774
- //#region packages/reactivity/src/effect.ts
1741
+ //#endregion
1742
+ //#region packages/reactivity/src/effect.ts
1775
1743
  var ReactiveEffect = class {
1776
1744
  fn() {}
1777
1745
  constructor(fn) {
@@ -1878,9 +1846,8 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
1878
1846
  sub.cleanupsLength = 0;
1879
1847
  }
1880
1848
  }
1881
-
1882
- //#endregion
1883
- //#region packages/reactivity/src/effectScope.ts
1849
+ //#endregion
1850
+ //#region packages/reactivity/src/effectScope.ts
1884
1851
  let activeEffectScope;
1885
1852
  var EffectScope = class {
1886
1853
  constructor(detached = false) {
@@ -1987,10 +1954,9 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
1987
1954
  if (activeEffectScope !== void 0) activeEffectScope.cleanups[activeEffectScope.cleanupsLength++] = fn;
1988
1955
  else if (!failSilently) warn$2("onScopeDispose() is called when there is no active effect scope to be associated with.");
1989
1956
  }
1990
-
1991
- //#endregion
1992
- //#region packages/reactivity/src/computed.ts
1993
- /**
1957
+ //#endregion
1958
+ //#region packages/reactivity/src/computed.ts
1959
+ /**
1994
1960
  * @private exported by @vue/reactivity for Vue core use, but not exported from
1995
1961
  * the main vue package
1996
1962
  */
@@ -2011,7 +1977,7 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
2011
1977
  if (flags & 32) if (checkDirty(this.deps, this)) {
2012
1978
  this.flags = flags | 16;
2013
1979
  return true;
2014
- } else this.flags = flags & ~32;
1980
+ } else this.flags = flags & -33;
2015
1981
  return false;
2016
1982
  }
2017
1983
  /**
@@ -2020,7 +1986,7 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
2020
1986
  */
2021
1987
  set _dirty(v) {
2022
1988
  if (v) this.flags |= 16;
2023
- else this.flags &= ~(16 | 32);
1989
+ else this.flags &= -49;
2024
1990
  }
2025
1991
  constructor(fn, setter) {
2026
1992
  this.fn = fn;
@@ -2030,7 +1996,7 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
2030
1996
  this.subsTail = void 0;
2031
1997
  this.deps = void 0;
2032
1998
  this.depsTail = void 0;
2033
- this.flags = 1 | 16;
1999
+ this.flags = 17;
2034
2000
  this.__v_isRef = true;
2035
2001
  this["__v_isReadonly"] = !setter;
2036
2002
  }
@@ -2041,7 +2007,7 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
2041
2007
  const subs = this.subs;
2042
2008
  if (subs !== void 0) shallowPropagate(subs);
2043
2009
  }
2044
- } else if (flags & 32) this.flags = flags & ~32;
2010
+ } else if (flags & 32) this.flags = flags & -33;
2045
2011
  if (activeSub !== void 0) {
2046
2012
  onTrack(activeSub, {
2047
2013
  target: this,
@@ -2088,9 +2054,8 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
2088
2054
  }
2089
2055
  return cRef;
2090
2056
  }
2091
-
2092
- //#endregion
2093
- //#region packages/reactivity/src/constants.ts
2057
+ //#endregion
2058
+ //#region packages/reactivity/src/constants.ts
2094
2059
  const TrackOpTypes = {
2095
2060
  "GET": "get",
2096
2061
  "HAS": "has",
@@ -2102,9 +2067,8 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
2102
2067
  "DELETE": "delete",
2103
2068
  "CLEAR": "clear"
2104
2069
  };
2105
-
2106
- //#endregion
2107
- //#region packages/reactivity/src/watch.ts
2070
+ //#endregion
2071
+ //#region packages/reactivity/src/watch.ts
2108
2072
  const INITIAL_WATCHER_VALUE = {};
2109
2073
  let activeWatcher = void 0;
2110
2074
  /**
@@ -2245,9 +2209,8 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
2245
2209
  }
2246
2210
  return value;
2247
2211
  }
2248
-
2249
- //#endregion
2250
- //#region packages/runtime-core/src/warning.ts
2212
+ //#endregion
2213
+ //#region packages/runtime-core/src/warning.ts
2251
2214
  const stack = [];
2252
2215
  /**
2253
2216
  * @internal
@@ -2272,8 +2235,8 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
2272
2235
  const trace = getComponentTrace();
2273
2236
  if (appWarnHandler) callWithErrorHandling(appWarnHandler, instance, 11, [
2274
2237
  msg + args.map((a) => {
2275
- var _a$toString, _a$toString2;
2276
- return (_a$toString = (_a$toString2 = a.toString) === null || _a$toString2 === void 0 ? void 0 : _a$toString2.call(a)) !== null && _a$toString !== void 0 ? _a$toString : JSON.stringify(a);
2238
+ const toString = a.toString;
2239
+ return toString == null ? JSON.stringify(a) : toString.call(a);
2277
2240
  }).join(""),
2278
2241
  instance && instance.proxy || instance,
2279
2242
  trace.map(({ ctx }) => `at <${formatComponentName(instance, ctx.type)}>`).join("\n"),
@@ -2363,9 +2326,8 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
2363
2326
  else if (isNaN(val)) warn$1(`${type} is NaN - the duration expression might be incorrect.`);
2364
2327
  }
2365
2328
  /* v8 ignore stop */
2366
-
2367
- //#endregion
2368
- //#region packages/runtime-core/src/errorHandling.ts
2329
+ //#endregion
2330
+ //#region packages/runtime-core/src/errorHandling.ts
2369
2331
  const ErrorCodes = {
2370
2332
  "SETUP_FUNCTION": 0,
2371
2333
  "0": "SETUP_FUNCTION",
@@ -2486,9 +2448,8 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
2486
2448
  else console.error(err);
2487
2449
  }
2488
2450
  }
2489
-
2490
- //#endregion
2491
- //#region packages/runtime-core/src/scheduler.ts
2451
+ //#endregion
2452
+ //#region packages/runtime-core/src/scheduler.ts
2492
2453
  const jobs = [];
2493
2454
  let postJobs = [];
2494
2455
  let activePostJobs = null;
@@ -2639,10 +2600,16 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
2639
2600
  seen.set(fn, count + 1);
2640
2601
  return false;
2641
2602
  }
2642
-
2643
- //#endregion
2644
- //#region packages/runtime-core/src/hmr.ts
2603
+ //#endregion
2604
+ //#region packages/runtime-core/src/hmr.ts
2645
2605
  let isHmrUpdating = false;
2606
+ const setHmrUpdating = (v) => {
2607
+ try {
2608
+ return isHmrUpdating;
2609
+ } finally {
2610
+ isHmrUpdating = v;
2611
+ }
2612
+ };
2646
2613
  const hmrDirtyComponents = /* @__PURE__ */ new Map();
2647
2614
  const hmrDirtyComponentsMode = /* @__PURE__ */ new Map();
2648
2615
  getGlobalThis().__VUE_HMR_RUNTIME__ = {
@@ -2761,9 +2728,8 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
2761
2728
  }
2762
2729
  };
2763
2730
  }
2764
-
2765
- //#endregion
2766
- //#region packages/runtime-core/src/devtools.ts
2731
+ //#endregion
2732
+ //#region packages/runtime-core/src/devtools.ts
2767
2733
  let devtools$1;
2768
2734
  let buffer = [];
2769
2735
  let devtoolsNotInstalled = false;
@@ -2830,10 +2796,9 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
2830
2796
  function devtoolsComponentEmit(component, event, params) {
2831
2797
  emit$1("component:emit", component.appContext.app, component, event, params);
2832
2798
  }
2833
-
2834
- //#endregion
2835
- //#region packages/runtime-core/src/componentRenderContext.ts
2836
- /**
2799
+ //#endregion
2800
+ //#region packages/runtime-core/src/componentRenderContext.ts
2801
+ /**
2837
2802
  * mark the current rendering instance for asset resolution (e.g.
2838
2803
  * resolveComponent, resolveDirective) during render
2839
2804
  */
@@ -2900,9 +2865,8 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
2900
2865
  renderFnWithContext._d = true;
2901
2866
  return renderFnWithContext;
2902
2867
  }
2903
-
2904
- //#endregion
2905
- //#region packages/runtime-core/src/directives.ts
2868
+ //#endregion
2869
+ //#region packages/runtime-core/src/directives.ts
2906
2870
  function validateDirectiveName(name) {
2907
2871
  if (isBuiltInDirective(name)) warn$1("Do not use built-in directive ids as custom directive id: " + name);
2908
2872
  }
@@ -2955,9 +2919,8 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
2955
2919
  }
2956
2920
  }
2957
2921
  }
2958
-
2959
- //#endregion
2960
- //#region packages/runtime-core/src/apiInject.ts
2922
+ //#endregion
2923
+ //#region packages/runtime-core/src/apiInject.ts
2961
2924
  function provide(key, value) {
2962
2925
  if (!currentInstance || currentInstance.isMounted && !isHmrUpdating) warn$1(`provide() can only be used inside setup().`);
2963
2926
  if (currentInstance) {
@@ -2984,16 +2947,14 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
2984
2947
  function hasInjectionContext() {
2985
2948
  return !!(getCurrentGenericInstance() || currentApp);
2986
2949
  }
2987
-
2988
- //#endregion
2989
- //#region packages/runtime-core/src/helpers/useSsrContext.ts
2950
+ //#endregion
2951
+ //#region packages/runtime-core/src/helpers/useSsrContext.ts
2990
2952
  const ssrContextKey = Symbol.for("v-scx");
2991
2953
  const useSSRContext = () => {
2992
2954
  warn$1(`useSSRContext() is not supported in the global build.`);
2993
2955
  };
2994
-
2995
- //#endregion
2996
- //#region packages/runtime-core/src/apiWatch.ts
2956
+ //#endregion
2957
+ //#region packages/runtime-core/src/apiWatch.ts
2997
2958
  function watchEffect(effect, options) {
2998
2959
  return doWatch(effect, null, options);
2999
2960
  }
@@ -3074,9 +3035,8 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
3074
3035
  return cur;
3075
3036
  };
3076
3037
  }
3077
-
3078
- //#endregion
3079
- //#region packages/runtime-core/src/components/Teleport.ts
3038
+ //#endregion
3039
+ //#region packages/runtime-core/src/components/Teleport.ts
3080
3040
  const TeleportEndKey = Symbol("_vte");
3081
3041
  const isTeleport = (type) => type.__isTeleport;
3082
3042
  const isTeleportDisabled = (props) => props && (props.disabled || props.disabled === "");
@@ -3134,25 +3094,26 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
3134
3094
  mount(container, mainAnchor);
3135
3095
  updateCssVars(n2, true);
3136
3096
  }
3137
- if (isTeleportDeferred(n2.props)) {
3097
+ if (isTeleportDeferred(n2.props) || parentSuspense && parentSuspense.pendingBranch) {
3138
3098
  n2.el.__isMounted = false;
3139
3099
  queuePostRenderEffect(() => {
3100
+ if (n2.el.__isMounted !== false) return;
3140
3101
  mountToTarget();
3141
3102
  delete n2.el.__isMounted;
3142
3103
  }, void 0, parentSuspense);
3143
3104
  } else mountToTarget();
3144
3105
  } else {
3145
- if (isTeleportDeferred(n2.props) && n1.el.__isMounted === false) {
3146
- queuePostRenderEffect(() => {
3147
- TeleportImpl.process(n1, n2, container, anchor, parentComponent, parentSuspense, namespace, slotScopeIds, optimized, internals);
3148
- }, void 0, parentSuspense);
3149
- return;
3150
- }
3151
3106
  n2.el = n1.el;
3152
3107
  n2.targetStart = n1.targetStart;
3153
3108
  const mainAnchor = n2.anchor = n1.anchor;
3154
3109
  const target = n2.target = n1.target;
3155
3110
  const targetAnchor = n2.targetAnchor = n1.targetAnchor;
3111
+ if (n1.el.__isMounted === false) {
3112
+ queuePostRenderEffect(() => {
3113
+ TeleportImpl.process(n1, n2, container, anchor, parentComponent, parentSuspense, namespace, slotScopeIds, optimized, internals);
3114
+ }, void 0, parentSuspense);
3115
+ return;
3116
+ }
3156
3117
  const wasDisabled = isTeleportDisabled(n1.props);
3157
3118
  const currentContainer = wasDisabled ? container : target;
3158
3119
  const currentAnchor = wasDisabled ? mainAnchor : targetAnchor;
@@ -3174,11 +3135,9 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
3174
3135
  }
3175
3136
  },
3176
3137
  remove(vnode, parentComponent, parentSuspense, { um: unmount, o: { remove: hostRemove } }, doRemove) {
3177
- const { shapeFlag, children, anchor, targetStart, targetAnchor, target, props } = vnode;
3178
- if (target) {
3179
- hostRemove(targetStart);
3180
- hostRemove(targetAnchor);
3181
- }
3138
+ const { shapeFlag, children, anchor, targetStart, targetAnchor, props } = vnode;
3139
+ if (targetStart) hostRemove(targetStart);
3140
+ if (targetAnchor) hostRemove(targetAnchor);
3182
3141
  doRemove && hostRemove(anchor);
3183
3142
  if (shapeFlag & 16) {
3184
3143
  const shouldRemove = doRemove || !isTeleportDisabled(props);
@@ -3272,9 +3231,8 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
3272
3231
  }
3273
3232
  return targetAnchor;
3274
3233
  }
3275
-
3276
- //#endregion
3277
- //#region packages/runtime-core/src/components/BaseTransition.ts
3234
+ //#endregion
3235
+ //#region packages/runtime-core/src/components/BaseTransition.ts
3278
3236
  const leaveCbKey = Symbol("_leaveCb");
3279
3237
  const enterCbKey$1 = Symbol("_enterCb");
3280
3238
  function useTransitionState() {
@@ -3438,7 +3396,7 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
3438
3396
  callHook(hook, [el]);
3439
3397
  },
3440
3398
  enter(el) {
3441
- if (isLeaving()) return;
3399
+ if (!isHmrUpdating && isLeaving()) return;
3442
3400
  let hook = onEnter;
3443
3401
  let afterHook = onAfterEnter;
3444
3402
  let cancelHook = onEnterCancelled;
@@ -3535,16 +3493,14 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
3535
3493
  function checkTransitionMode(mode) {
3536
3494
  if (mode && mode !== "in-out" && mode !== "out-in" && mode !== "default") warn$1(`invalid <transition> mode: ${mode}`);
3537
3495
  }
3538
-
3539
- //#endregion
3540
- //#region packages/runtime-core/src/apiDefineComponent.ts
3496
+ //#endregion
3497
+ //#region packages/runtime-core/src/apiDefineComponent.ts
3541
3498
  /* @__NO_SIDE_EFFECTS__ */
3542
3499
  function defineComponent(options, extraOptions) {
3543
3500
  return isFunction(options) ? extend({ name: options.name }, extraOptions, { setup: options }) : options;
3544
3501
  }
3545
-
3546
- //#endregion
3547
- //#region packages/runtime-core/src/helpers/useId.ts
3502
+ //#endregion
3503
+ //#region packages/runtime-core/src/helpers/useId.ts
3548
3504
  function useId() {
3549
3505
  const i = getCurrentGenericInstance();
3550
3506
  if (i) return (i.appContext.config.idPrefix || "v") + "-" + i.ids[0] + i.ids[1]++;
@@ -3564,9 +3520,8 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
3564
3520
  0
3565
3521
  ];
3566
3522
  }
3567
-
3568
- //#endregion
3569
- //#region packages/runtime-core/src/helpers/useTemplateRef.ts
3523
+ //#endregion
3524
+ //#region packages/runtime-core/src/helpers/useTemplateRef.ts
3570
3525
  const knownTemplateRefs = /* @__PURE__ */ new WeakSet();
3571
3526
  function useTemplateRef(key) {
3572
3527
  const i = getCurrentGenericInstance();
@@ -3588,9 +3543,8 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
3588
3543
  let desc;
3589
3544
  return !!((desc = Object.getOwnPropertyDescriptor(refs, key)) && !desc.configurable);
3590
3545
  }
3591
-
3592
- //#endregion
3593
- //#region packages/runtime-core/src/rendererTemplateRef.ts
3546
+ //#endregion
3547
+ //#region packages/runtime-core/src/rendererTemplateRef.ts
3594
3548
  const pendingSetRefMap = /* @__PURE__ */ new WeakMap();
3595
3549
  /**
3596
3550
  * Function for handling a template ref
@@ -3687,20 +3641,12 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
3687
3641
  pendingSetRefMap.delete(rawRef);
3688
3642
  }
3689
3643
  }
3690
-
3691
- //#endregion
3692
- //#region packages/runtime-core/src/hydration.ts
3644
+ //#endregion
3645
+ //#region packages/runtime-core/src/hydration.ts
3693
3646
  let isHydratingEnabled = false;
3694
3647
  function setIsHydratingEnabled(value) {
3695
3648
  isHydratingEnabled = value;
3696
3649
  }
3697
- /**
3698
- * VDOM hydration state.
3699
- * Also used by vapor interop plugin for tree-shaking:
3700
- * In non-hydration builds, this is never set to true, so the logic in
3701
- * vaporInteropImpl's hydrate/hydrateSlot can be tree-shaken.
3702
- */
3703
- let isHydrating = false;
3704
3650
  let hasLoggedMismatchError = false;
3705
3651
  const logMismatchError = () => {
3706
3652
  if (hasLoggedMismatchError) return;
@@ -3726,9 +3672,7 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
3726
3672
  container._vnode = vnode;
3727
3673
  return;
3728
3674
  }
3729
- isHydrating = true;
3730
3675
  hydrateNode(container.firstChild, vnode, null, null, null);
3731
- isHydrating = false;
3732
3676
  flushPostFlushCbs();
3733
3677
  container._vnode = vnode;
3734
3678
  };
@@ -4097,9 +4041,8 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
4097
4041
  return list.includes(MismatchTypeString[allowedType]);
4098
4042
  }
4099
4043
  }
4100
-
4101
- //#endregion
4102
- //#region packages/runtime-core/src/hydrationStrategies.ts
4044
+ //#endregion
4045
+ //#region packages/runtime-core/src/hydrationStrategies.ts
4103
4046
  let requestIdleCallback;
4104
4047
  let cancelIdleCallback;
4105
4048
  function ensureIdleCallbacks() {
@@ -4186,9 +4129,8 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
4186
4129
  }
4187
4130
  } else cb(node);
4188
4131
  }
4189
-
4190
- //#endregion
4191
- //#region packages/runtime-core/src/apiAsyncComponent.ts
4132
+ //#endregion
4133
+ //#region packages/runtime-core/src/apiAsyncComponent.ts
4192
4134
  const isAsyncWrapper = (i) => !!i.type.__asyncLoader;
4193
4135
  /* @__NO_SIDE_EFFECTS__ */
4194
4136
  function defineAsyncComponent(source) {
@@ -4323,11 +4265,10 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
4323
4265
  if (getResolvedComp()) doHydrate();
4324
4266
  else load().then(() => !instance.isUnmounted && doHydrate());
4325
4267
  }
4326
-
4327
- //#endregion
4328
- //#region packages/runtime-core/src/components/KeepAlive.ts
4268
+ //#endregion
4269
+ //#region packages/runtime-core/src/components/KeepAlive.ts
4329
4270
  const isKeepAlive = (vnode) => vnode.type.__isKeepAlive;
4330
- const KeepAliveImpl = {
4271
+ const KeepAlive = {
4331
4272
  name: `KeepAlive`,
4332
4273
  __isKeepAlive: true,
4333
4274
  props: {
@@ -4461,7 +4402,6 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
4461
4402
  };
4462
4403
  }
4463
4404
  };
4464
- const KeepAlive = KeepAliveImpl;
4465
4405
  function matches(pattern, name) {
4466
4406
  if (isArray(pattern)) return pattern.some((p) => matches(p, name));
4467
4407
  else if (isString(pattern)) return pattern.split(",").includes(name);
@@ -4541,9 +4481,8 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
4541
4481
  }, void 0, parentSuspense);
4542
4482
  devtoolsComponentAdded(instance);
4543
4483
  }
4544
-
4545
- //#endregion
4546
- //#region packages/runtime-core/src/apiLifecycle.ts
4484
+ //#endregion
4485
+ //#region packages/runtime-core/src/apiLifecycle.ts
4547
4486
  function injectHook(type, hook, target = currentInstance, prepend = false) {
4548
4487
  if (target) {
4549
4488
  const hooks = target[type] || (target[type] = []);
@@ -4577,23 +4516,19 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
4577
4516
  function onErrorCaptured(hook, target = currentInstance) {
4578
4517
  injectHook("ec", hook, target);
4579
4518
  }
4580
-
4581
- //#endregion
4582
- //#region packages/runtime-core/src/helpers/resolveAssets.ts
4583
- const COMPONENTS = "components";
4584
4519
  const DIRECTIVES = "directives";
4585
4520
  /**
4586
4521
  * @private
4587
4522
  */
4588
4523
  function resolveComponent(name, maybeSelfReference) {
4589
- return resolveAsset(COMPONENTS, name, true, maybeSelfReference) || name;
4524
+ return resolveAsset("components", name, true, maybeSelfReference) || name;
4590
4525
  }
4591
4526
  const NULL_DYNAMIC_COMPONENT = Symbol.for("v-ndc");
4592
4527
  /**
4593
4528
  * @private
4594
4529
  */
4595
4530
  function resolveDynamicComponent(component) {
4596
- if (isString(component)) return resolveAsset(COMPONENTS, component, false) || component;
4531
+ if (isString(component)) return resolveAsset("components", component, false) || component;
4597
4532
  else return component || NULL_DYNAMIC_COMPONENT;
4598
4533
  }
4599
4534
  /**
@@ -4606,14 +4541,14 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
4606
4541
  const instance = currentRenderingInstance || currentInstance;
4607
4542
  if (instance) {
4608
4543
  const Component = instance.type;
4609
- if (type === COMPONENTS) {
4544
+ if (type === "components") {
4610
4545
  const selfName = getComponentName(Component, false);
4611
4546
  if (selfName && (selfName === name || selfName === camelize(name) || selfName === capitalize(camelize(name)))) return Component;
4612
4547
  }
4613
4548
  const res = resolve(instance[type] || Component[type], name) || resolve(instance.appContext[type], name);
4614
4549
  if (!res && maybeSelfReference) return Component;
4615
4550
  if (warnMissing && !res) {
4616
- const extra = type === COMPONENTS ? "\nIf this is a native custom element, make sure to exclude it from component resolution via compilerOptions.isCustomElement." : ``;
4551
+ const extra = type === "components" ? "\nIf this is a native custom element, make sure to exclude it from component resolution via compilerOptions.isCustomElement." : ``;
4617
4552
  warn$1(`Failed to resolve ${type.slice(0, -1)}: ${name}${extra}`);
4618
4553
  }
4619
4554
  return res;
@@ -4622,10 +4557,9 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
4622
4557
  function resolve(registry, name) {
4623
4558
  return registry && (registry[name] || registry[camelize(name)] || registry[capitalize(camelize(name))]);
4624
4559
  }
4625
-
4626
- //#endregion
4627
- //#region packages/runtime-core/src/helpers/renderList.ts
4628
- /**
4560
+ //#endregion
4561
+ //#region packages/runtime-core/src/helpers/renderList.ts
4562
+ /**
4629
4563
  * Actual implementation
4630
4564
  */
4631
4565
  function renderList(source, renderItem, cache, index) {
@@ -4643,11 +4577,14 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
4643
4577
  }
4644
4578
  ret = new Array(source.length);
4645
4579
  for (let i = 0, l = source.length; i < l; i++) ret[i] = renderItem(needsWrap ? isReadonlySource ? toReadonly(toReactive(source[i])) : toReactive(source[i]) : source[i], i, void 0, cached && cached[i]);
4646
- } else if (typeof source === "number") {
4647
- if (!Number.isInteger(source)) warn$1(`The v-for range expect an integer value but got ${source}.`);
4580
+ } else if (typeof source === "number") if (!Number.isInteger(source) || source < 0) {
4581
+ warn$1(`The v-for range expects a positive integer value but got ${source}.`);
4582
+ ret = [];
4583
+ } else {
4648
4584
  ret = new Array(source);
4649
4585
  for (let i = 0; i < source; i++) ret[i] = renderItem(i + 1, i, void 0, cached && cached[i]);
4650
- } else if (isObject(source)) if (source[Symbol.iterator]) ret = Array.from(source, (item, i) => renderItem(item, i, void 0, cached && cached[i]));
4586
+ }
4587
+ else if (isObject(source)) if (source[Symbol.iterator]) ret = Array.from(source, (item, i) => renderItem(item, i, void 0, cached && cached[i]));
4651
4588
  else {
4652
4589
  const keys = Object.keys(source);
4653
4590
  ret = new Array(keys.length);
@@ -4660,10 +4597,9 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
4660
4597
  if (cache) cache[index] = ret;
4661
4598
  return ret;
4662
4599
  }
4663
-
4664
- //#endregion
4665
- //#region packages/runtime-core/src/helpers/createSlots.ts
4666
- /**
4600
+ //#endregion
4601
+ //#region packages/runtime-core/src/helpers/createSlots.ts
4602
+ /**
4667
4603
  * Compiler runtime helper for creating dynamic slots object
4668
4604
  * @private
4669
4605
  */
@@ -4679,10 +4615,9 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
4679
4615
  }
4680
4616
  return slots;
4681
4617
  }
4682
-
4683
- //#endregion
4684
- //#region packages/runtime-core/src/helpers/renderSlot.ts
4685
- /**
4618
+ //#endregion
4619
+ //#region packages/runtime-core/src/helpers/renderSlot.ts
4620
+ /**
4686
4621
  * Compiler runtime helper for rendering `<slot/>`
4687
4622
  * @private
4688
4623
  */
@@ -4730,10 +4665,9 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
4730
4665
  if (!vaporSlot.fallback && fallback) vaporSlot.fallback = fallback;
4731
4666
  }
4732
4667
  }
4733
-
4734
- //#endregion
4735
- //#region packages/runtime-core/src/helpers/toHandlers.ts
4736
- /**
4668
+ //#endregion
4669
+ //#region packages/runtime-core/src/helpers/toHandlers.ts
4670
+ /**
4737
4671
  * For prefixing keys in v-on="obj" with "on"
4738
4672
  * @private
4739
4673
  */
@@ -4746,10 +4680,9 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
4746
4680
  for (const key in obj) ret[preserveCaseIfNecessary && /[A-Z]/.test(key) ? `on:${key}` : toHandlerKey(key)] = obj[key];
4747
4681
  return ret;
4748
4682
  }
4749
-
4750
- //#endregion
4751
- //#region packages/runtime-core/src/componentPublicInstance.ts
4752
- /**
4683
+ //#endregion
4684
+ //#region packages/runtime-core/src/componentPublicInstance.ts
4685
+ /**
4753
4686
  * #2437 In Vue 3, functional components do not have a public instance proxy but
4754
4687
  * they exist in the internal parent chain. For code that relies on traversing
4755
4688
  * public $parent chains, skip functional ones and go to the parent instead.
@@ -4925,9 +4858,8 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
4925
4858
  }
4926
4859
  });
4927
4860
  }
4928
-
4929
- //#endregion
4930
- //#region packages/runtime-core/src/apiSetupHelpers.ts
4861
+ //#endregion
4862
+ //#region packages/runtime-core/src/apiSetupHelpers.ts
4931
4863
  const warnRuntimeUsage = (method) => warn$1(`${method}() is a compiler-hint helper that is only usable inside <script setup> of a single file component. Its arguments should be compiled away and passing it at runtime has no effect.`);
4932
4864
  function defineProps() {
4933
4865
  warnRuntimeUsage(`defineProps`);
@@ -4964,6 +4896,22 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
4964
4896
  function defineOptions(options) {
4965
4897
  warnRuntimeUsage(`defineOptions`);
4966
4898
  }
4899
+ /**
4900
+ * Vue `<script setup>` compiler macro for providing type hints to IDEs for
4901
+ * slot name and slot props type checking.
4902
+ *
4903
+ * Example usage:
4904
+ * ```ts
4905
+ * const slots = defineSlots<{
4906
+ * default(props: { msg: string }): any
4907
+ * }>()
4908
+ * ```
4909
+ *
4910
+ * This is only usable inside `<script setup>`, is compiled away in the
4911
+ * output and should **not** be actually called at runtime.
4912
+ *
4913
+ * @see {@link https://vuejs.org/api/sfc-script-setup.html#defineslots}
4914
+ */
4967
4915
  function defineSlots() {
4968
4916
  warnRuntimeUsage(`defineSlots`);
4969
4917
  return null;
@@ -5080,23 +5028,31 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
5080
5028
  */
5081
5029
  function withAsyncContext(getAwaitable) {
5082
5030
  const ctx = getCurrentGenericInstance();
5031
+ const inSSRSetup = isInSSRComponentSetup;
5083
5032
  if (!ctx) warn$1("withAsyncContext called without active current instance. This is likely a bug.");
5084
5033
  let awaitable = getAwaitable();
5085
5034
  setCurrentInstance(null, void 0);
5086
- const cleanup = () => setCurrentInstance(null, void 0);
5087
- if (isPromise(awaitable)) awaitable = awaitable.catch((e) => {
5035
+ if (inSSRSetup) setInSSRSetupState(false);
5036
+ const restore = () => {
5088
5037
  setCurrentInstance(ctx);
5038
+ if (inSSRSetup) setInSSRSetupState(true);
5039
+ };
5040
+ const cleanup = () => {
5041
+ setCurrentInstance(null, void 0);
5042
+ if (inSSRSetup) setInSSRSetupState(false);
5043
+ };
5044
+ if (isPromise(awaitable)) awaitable = awaitable.catch((e) => {
5045
+ restore();
5089
5046
  Promise.resolve().then(() => Promise.resolve().then(cleanup));
5090
5047
  throw e;
5091
5048
  });
5092
5049
  return [awaitable, () => {
5093
- setCurrentInstance(ctx);
5050
+ restore();
5094
5051
  Promise.resolve().then(cleanup);
5095
5052
  }];
5096
5053
  }
5097
-
5098
- //#endregion
5099
- //#region packages/runtime-core/src/componentOptions.ts
5054
+ //#endregion
5055
+ //#region packages/runtime-core/src/componentOptions.ts
5100
5056
  function createDuplicateChecker() {
5101
5057
  const cache = Object.create(null);
5102
5058
  return (type, key) => {
@@ -5339,9 +5295,8 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
5339
5295
  for (const key in from) merged[key] = mergeAsArray(to[key], from[key]);
5340
5296
  return merged;
5341
5297
  }
5342
-
5343
- //#endregion
5344
- //#region packages/runtime-core/src/apiCreateApp.ts
5298
+ //#endregion
5299
+ //#region packages/runtime-core/src/apiCreateApp.ts
5345
5300
  function createAppContext() {
5346
5301
  return {
5347
5302
  app: null,
@@ -5471,9 +5426,8 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
5471
5426
  * `app.runWithContext()`.
5472
5427
  */
5473
5428
  let currentApp = null;
5474
-
5475
- //#endregion
5476
- //#region packages/runtime-core/src/helpers/useModel.ts
5429
+ //#endregion
5430
+ //#region packages/runtime-core/src/helpers/useModel.ts
5477
5431
  function useModel(props, name, options = EMPTY_OBJ) {
5478
5432
  const i = getCurrentGenericInstance();
5479
5433
  if (!i) {
@@ -5544,9 +5498,8 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
5544
5498
  const getModelModifiers = (props, modelName, getter) => {
5545
5499
  return getter(props, getModifierPropName(modelName)) || getter(props, `${camelize(modelName)}Modifiers`) || getter(props, `${hyphenate(modelName)}Modifiers`);
5546
5500
  };
5547
-
5548
- //#endregion
5549
- //#region packages/runtime-core/src/componentEmits.ts
5501
+ //#endregion
5502
+ //#region packages/runtime-core/src/componentEmits.ts
5550
5503
  function emit(instance, event, ...rawArgs) {
5551
5504
  return baseEmit(instance, instance.vnode.props || EMPTY_OBJ, defaultPropGetter, event, ...rawArgs);
5552
5505
  }
@@ -5634,10 +5587,9 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
5634
5587
  key = key.slice(2).replace(/Once$/, "");
5635
5588
  return hasOwn(options, key[0].toLowerCase() + key.slice(1)) || hasOwn(options, hyphenate(key)) || hasOwn(options, key);
5636
5589
  }
5637
-
5638
- //#endregion
5639
- //#region packages/runtime-core/src/componentRenderUtils.ts
5640
- /**
5590
+ //#endregion
5591
+ //#region packages/runtime-core/src/componentRenderUtils.ts
5592
+ /**
5641
5593
  * dev only flag to track whether $attrs was used during render.
5642
5594
  * If $attrs was used during render then the warning for failed attrs
5643
5595
  * fallthrough can be suppressed.
@@ -5816,20 +5768,23 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
5816
5768
  if (key === "style" && isObject(nextProp) && isObject(prevProp)) return !looseEqual(nextProp, prevProp);
5817
5769
  return nextProp !== prevProp;
5818
5770
  }
5819
- function updateHOCHostEl({ vnode, parent }, el) {
5771
+ function updateHOCHostEl({ vnode, parent, suspense }, el) {
5820
5772
  while (parent && !parent.vapor) {
5821
5773
  const root = parent.subTree;
5822
- if (root.suspense && root.suspense.activeBranch === vnode) root.el = vnode.el;
5774
+ if (root.suspense && root.suspense.activeBranch === vnode) {
5775
+ root.suspense.vnode.el = root.el = el;
5776
+ vnode = root;
5777
+ }
5823
5778
  if (root === vnode) {
5824
5779
  (vnode = parent.vnode).el = el;
5825
5780
  parent = parent.parent;
5826
5781
  } else break;
5827
5782
  }
5783
+ if (suspense && suspense.activeBranch === vnode) suspense.vnode.el = el;
5828
5784
  }
5829
-
5830
- //#endregion
5831
- //#region packages/runtime-core/src/internalObject.ts
5832
- /**
5785
+ //#endregion
5786
+ //#region packages/runtime-core/src/internalObject.ts
5787
+ /**
5833
5788
  * Used during vnode props/slots normalization to check if the vnode props/slots
5834
5789
  * are the internal attrs / slots object of a component via
5835
5790
  * `Object.getPrototypeOf`. This is more performant than defining a
@@ -5838,9 +5793,8 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
5838
5793
  const internalObjectProto = {};
5839
5794
  const createInternalObject = () => Object.create(internalObjectProto);
5840
5795
  const isInternalObject = (obj) => Object.getPrototypeOf(obj) === internalObjectProto;
5841
-
5842
- //#endregion
5843
- //#region packages/runtime-core/src/componentProps.ts
5796
+ //#endregion
5797
+ //#region packages/runtime-core/src/componentProps.ts
5844
5798
  function initProps(instance, rawProps, isStateful, isSSR = false) {
5845
5799
  const props = instance.props = {};
5846
5800
  const attrs = createInternalObject();
@@ -6134,9 +6088,8 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
6134
6088
  function isBoolean(...args) {
6135
6089
  return args.some((elem) => elem.toLowerCase() === "boolean");
6136
6090
  }
6137
-
6138
- //#endregion
6139
- //#region packages/runtime-core/src/componentSlots.ts
6091
+ //#endregion
6092
+ //#region packages/runtime-core/src/componentSlots.ts
6140
6093
  const isInternalKey = (key) => key === "_" || key === "_ctx" || key === "$stable";
6141
6094
  const normalizeSlotValue = (value) => isArray(value) ? value.map(normalizeVNode) : [normalizeVNode(value)];
6142
6095
  const normalizeSlot = (key, rawSlot, ctx) => {
@@ -6203,9 +6156,8 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
6203
6156
  for (const key in slots) if (!isInternalKey(key) && deletionComparisonTarget[key] == null) delete slots[key];
6204
6157
  }
6205
6158
  };
6206
-
6207
- //#endregion
6208
- //#region packages/runtime-core/src/profiling.ts
6159
+ //#endregion
6160
+ //#region packages/runtime-core/src/profiling.ts
6209
6161
  let supported;
6210
6162
  let perf;
6211
6163
  let cachedNow$1 = 0;
@@ -6242,9 +6194,8 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
6242
6194
  } else supported = false;
6243
6195
  return supported;
6244
6196
  }
6245
-
6246
- //#endregion
6247
- //#region packages/runtime-core/src/renderer.ts
6197
+ //#endregion
6198
+ //#region packages/runtime-core/src/renderer.ts
6248
6199
  const MoveType = {
6249
6200
  "ENTER": 0,
6250
6201
  "0": "ENTER",
@@ -6405,10 +6356,19 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
6405
6356
  if (dirs) invokeDirectiveHook(vnode, null, parentComponent, "beforeMount");
6406
6357
  if (transition) performTransitionEnter(el, transition, () => hostInsert(el, container, anchor), parentSuspense);
6407
6358
  else hostInsert(el, container, anchor);
6408
- if ((vnodeHook = props && props.onVnodeMounted) || dirs) queuePostRenderEffect(() => {
6409
- vnodeHook && invokeVNodeHook(vnodeHook, parentComponent, vnode);
6410
- dirs && invokeDirectiveHook(vnode, null, parentComponent, "mounted");
6411
- }, void 0, parentSuspense);
6359
+ if ((vnodeHook = props && props.onVnodeMounted) || dirs) {
6360
+ const isHmr = isHmrUpdating;
6361
+ queuePostRenderEffect(() => {
6362
+ let prev;
6363
+ prev = setHmrUpdating(isHmr);
6364
+ try {
6365
+ vnodeHook && invokeVNodeHook(vnodeHook, parentComponent, vnode);
6366
+ dirs && invokeDirectiveHook(vnode, null, parentComponent, "mounted");
6367
+ } finally {
6368
+ setHmrUpdating(prev);
6369
+ }
6370
+ }, void 0, parentSuspense);
6371
+ }
6412
6372
  };
6413
6373
  const setScopeId = (el, vnode, scopeId, slotScopeIds, parentComponent) => {
6414
6374
  if (scopeId) hostSetScopeId(el, scopeId);
@@ -6630,7 +6590,7 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
6630
6590
  if (isAsyncWrapperVNode && type.__asyncHydrate) type.__asyncHydrate(el, instance, hydrateSubTree);
6631
6591
  else hydrateSubTree();
6632
6592
  } else {
6633
- if (root.ce && root.ce._hasShadowRoot()) root.ce._injectChildStyle(type);
6593
+ if (root.ce && root.ce._hasShadowRoot()) root.ce._injectChildStyle(type, instance.parent ? instance.parent.type : void 0);
6634
6594
  startMeasure(instance, `render`);
6635
6595
  const subTree = instance.subTree = renderComponentRoot(instance);
6636
6596
  endMeasure(instance, `render`);
@@ -6881,7 +6841,7 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
6881
6841
  else hostInsert(el, container, anchor);
6882
6842
  };
6883
6843
  const unmount = (vnode, parentComponent, parentSuspense, doRemove = false, optimized = false) => {
6884
- const { type, props, ref, children, dynamicChildren, shapeFlag, patchFlag, dirs, cacheIndex } = vnode;
6844
+ const { type, props, ref, children, dynamicChildren, shapeFlag, patchFlag, dirs, cacheIndex, memo } = vnode;
6885
6845
  if (patchFlag === -2) optimized = false;
6886
6846
  if (ref != null) {
6887
6847
  const prevSub = setActiveSub();
@@ -6919,9 +6879,11 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
6919
6879
  }
6920
6880
  if (doRemove) remove(vnode);
6921
6881
  }
6922
- if (shouldInvokeVnodeHook && (vnodeHook = props && props.onVnodeUnmounted) || shouldInvokeDirs) queuePostRenderEffect(() => {
6882
+ const shouldInvalidateMemo = memo != null && cacheIndex == null;
6883
+ if (shouldInvokeVnodeHook && (vnodeHook = props && props.onVnodeUnmounted) || shouldInvokeDirs || shouldInvalidateMemo) queuePostRenderEffect(() => {
6923
6884
  vnodeHook && invokeVNodeHook(vnodeHook, parentComponent, vnode);
6924
6885
  shouldInvokeDirs && invokeDirectiveHook(vnode, null, parentComponent, "unmounted");
6886
+ if (shouldInvalidateMemo) vnode.el = null;
6925
6887
  }, void 0, parentSuspense);
6926
6888
  };
6927
6889
  const remove = (vnode) => {
@@ -7144,12 +7106,11 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
7144
7106
  if (instance) return resolveAsyncComponentPlaceholder(instance.subTree);
7145
7107
  return null;
7146
7108
  }
7147
-
7148
- //#endregion
7149
- //#region packages/runtime-core/src/components/Suspense.ts
7109
+ //#endregion
7110
+ //#region packages/runtime-core/src/components/Suspense.ts
7150
7111
  const isSuspense = (type) => type.__isSuspense;
7151
7112
  let suspenseId = 0;
7152
- const SuspenseImpl = {
7113
+ const Suspense = {
7153
7114
  name: "Suspense",
7154
7115
  __isSuspense: true,
7155
7116
  process(n1, n2, container, anchor, parentComponent, parentSuspense, namespace, slotScopeIds, optimized, rendererInternals) {
@@ -7167,7 +7128,6 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
7167
7128
  hydrate: hydrateSuspense,
7168
7129
  normalize: normalizeSuspenseChildren
7169
7130
  };
7170
- const Suspense = SuspenseImpl;
7171
7131
  function triggerEvent(vnode, name) {
7172
7132
  const eventListener = vnode.props && vnode.props[name];
7173
7133
  if (isFunction(eventListener)) eventListener();
@@ -7276,6 +7236,7 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
7276
7236
  pendingId: suspenseId++,
7277
7237
  timeout: typeof timeout === "number" ? timeout : -1,
7278
7238
  activeBranch: null,
7239
+ isFallbackMountPending: false,
7279
7240
  pendingBranch: null,
7280
7241
  isInFallback: !isHydrating,
7281
7242
  isHydrating,
@@ -7296,13 +7257,14 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
7296
7257
  if (isInFallback && vnode.ssFallback) vnode.ssFallback.el = null;
7297
7258
  }
7298
7259
  };
7299
- if (activeBranch) {
7260
+ if (activeBranch && !suspense.isFallbackMountPending) {
7300
7261
  if (parentNode(activeBranch.el) === container) anchor = next(activeBranch);
7301
7262
  unmount(activeBranch, parentComponent, suspense, true);
7302
7263
  if (!delayEnter && isInFallback && vnode.ssFallback) queuePostRenderEffect(() => vnode.ssFallback.el = null, void 0, suspense);
7303
7264
  }
7304
7265
  if (!delayEnter) move(pendingBranch, container, anchor, 0, parentComponent);
7305
7266
  }
7267
+ suspense.isFallbackMountPending = false;
7306
7268
  setActiveBranch(suspense, pendingBranch);
7307
7269
  suspense.pendingBranch = null;
7308
7270
  suspense.isInFallback = false;
@@ -7332,12 +7294,16 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
7332
7294
  triggerEvent(vnode, "onFallback");
7333
7295
  const anchor = next(activeBranch);
7334
7296
  const mountFallback = () => {
7297
+ suspense.isFallbackMountPending = false;
7335
7298
  if (!suspense.isInFallback) return;
7336
7299
  patch(null, fallbackVNode, container, anchor, parentComponent, null, namespace, slotScopeIds, optimized);
7337
7300
  setActiveBranch(suspense, fallbackVNode);
7338
7301
  };
7339
7302
  const delayEnter = fallbackVNode.transition && fallbackVNode.transition.mode === "out-in";
7340
- if (delayEnter) activeBranch.transition.afterLeave = mountFallback;
7303
+ if (delayEnter) {
7304
+ suspense.isFallbackMountPending = true;
7305
+ activeBranch.transition.afterLeave = mountFallback;
7306
+ }
7341
7307
  suspense.isInFallback = true;
7342
7308
  unmount(activeBranch, parentComponent, null, true);
7343
7309
  if (!delayEnter) mountFallback();
@@ -7428,9 +7394,8 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
7428
7394
  const suspensible = vnode.props && vnode.props.suspensible;
7429
7395
  return suspensible != null && suspensible !== false;
7430
7396
  }
7431
-
7432
- //#endregion
7433
- //#region packages/runtime-core/src/vnode.ts
7397
+ //#endregion
7398
+ //#region packages/runtime-core/src/vnode.ts
7434
7399
  const Fragment = Symbol.for("v-fgt");
7435
7400
  const Text = Symbol.for("v-txt");
7436
7401
  const Comment = Symbol.for("v-cmt");
@@ -7739,6 +7704,7 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
7739
7704
  const existing = ret[key];
7740
7705
  const incoming = toMerge[key];
7741
7706
  if (incoming && existing !== incoming && !(isArray(existing) && existing.includes(incoming))) ret[key] = existing ? [].concat(existing, incoming) : incoming;
7707
+ else if (incoming == null && existing == null && !isModelListener(key)) ret[key] = incoming;
7742
7708
  } else if (key !== "") ret[key] = toMerge[key];
7743
7709
  }
7744
7710
  return ret;
@@ -7746,10 +7712,9 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
7746
7712
  function invokeVNodeHook(hook, instance, vnode, prevVNode = null) {
7747
7713
  callWithAsyncErrorHandling(hook, instance, 7, [vnode, prevVNode]);
7748
7714
  }
7749
-
7750
- //#endregion
7751
- //#region packages/runtime-core/src/componentCurrentInstance.ts
7752
- /**
7715
+ //#endregion
7716
+ //#region packages/runtime-core/src/componentCurrentInstance.ts
7717
+ /**
7753
7718
  * @internal
7754
7719
  */
7755
7720
  let currentInstance = null;
@@ -7763,8 +7728,7 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
7763
7728
  /**
7764
7729
  * @internal
7765
7730
  */
7766
- let simpleSetCurrentInstance;
7767
- simpleSetCurrentInstance = (i) => {
7731
+ let simpleSetCurrentInstance = (i) => {
7768
7732
  currentInstance = i;
7769
7733
  };
7770
7734
  setInSSRSetupState = (v) => {
@@ -7806,9 +7770,8 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
7806
7770
  value: instance[key]
7807
7771
  };
7808
7772
  };
7809
-
7810
- //#endregion
7811
- //#region packages/runtime-core/src/component.ts
7773
+ //#endregion
7774
+ //#region packages/runtime-core/src/component.ts
7812
7775
  const emptyAppContext = /* @__PURE__ */ createAppContext();
7813
7776
  let uid = 0;
7814
7777
  function createComponentInstance(vnode, parent, suspense) {
@@ -8101,15 +8064,13 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
8101
8064
  function isClassComponent(value) {
8102
8065
  return isFunction(value) && "__vccOpts" in value;
8103
8066
  }
8104
-
8105
- //#endregion
8106
- //#region packages/runtime-core/src/apiComputed.ts
8067
+ //#endregion
8068
+ //#region packages/runtime-core/src/apiComputed.ts
8107
8069
  const computed = (getterOrOptions, debugOptions) => {
8108
8070
  return /* @__PURE__ */ computed$1(getterOrOptions, debugOptions, isInSSRComponentSetup);
8109
8071
  };
8110
-
8111
- //#endregion
8112
- //#region packages/runtime-core/src/h.ts
8072
+ //#endregion
8073
+ //#region packages/runtime-core/src/h.ts
8113
8074
  function h(type, propsOrChildren, children) {
8114
8075
  try {
8115
8076
  setBlockTracking(-1);
@@ -8127,9 +8088,8 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
8127
8088
  setBlockTracking(1);
8128
8089
  }
8129
8090
  }
8130
-
8131
- //#endregion
8132
- //#region packages/runtime-core/src/customFormatter.ts
8091
+ //#endregion
8092
+ //#region packages/runtime-core/src/customFormatter.ts
8133
8093
  function initCustomFormatter() {
8134
8094
  if (typeof window === "undefined") return;
8135
8095
  const vueStyle = { style: "color:#3ba776" };
@@ -8292,9 +8252,8 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
8292
8252
  if (window.devtoolsFormatters) window.devtoolsFormatters.push(formatter);
8293
8253
  else window.devtoolsFormatters = [formatter];
8294
8254
  }
8295
-
8296
- //#endregion
8297
- //#region packages/runtime-core/src/helpers/withMemo.ts
8255
+ //#endregion
8256
+ //#region packages/runtime-core/src/helpers/withMemo.ts
8298
8257
  function withMemo(memo, render, cache, index) {
8299
8258
  const cached = cache[index];
8300
8259
  if (cached && isMemoSame(cached, memo)) return cached;
@@ -8310,10 +8269,9 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
8310
8269
  if (isBlockTreeEnabled > 0 && currentBlock) currentBlock.push(cached);
8311
8270
  return true;
8312
8271
  }
8313
-
8314
- //#endregion
8315
- //#region packages/runtime-core/src/index.ts
8316
- const version = "3.6.0-beta.7";
8272
+ //#endregion
8273
+ //#region packages/runtime-core/src/index.ts
8274
+ const version = "3.6.0-beta.9";
8317
8275
  const warn = warn$1;
8318
8276
  /**
8319
8277
  * Runtime error messages. Only exposed in dev or esm builds.
@@ -8336,9 +8294,8 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
8336
8294
  */
8337
8295
  const compatUtils = null;
8338
8296
  const DeprecationTypes = null;
8339
-
8340
- //#endregion
8341
- //#region packages/runtime-dom/src/nodeOps.ts
8297
+ //#endregion
8298
+ //#region packages/runtime-dom/src/nodeOps.ts
8342
8299
  let policy = void 0;
8343
8300
  const tt = typeof window !== "undefined" && window.trustedTypes;
8344
8301
  if (tt) try {
@@ -8397,9 +8354,8 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
8397
8354
  return [before ? before.nextSibling : parent.firstChild, anchor ? anchor.previousSibling : parent.lastChild];
8398
8355
  }
8399
8356
  };
8400
-
8401
- //#endregion
8402
- //#region packages/runtime-dom/src/components/Transition.ts
8357
+ //#endregion
8358
+ //#region packages/runtime-dom/src/components/Transition.ts
8403
8359
  const TRANSITION = "transition";
8404
8360
  const ANIMATION = "animation";
8405
8361
  const vtcKey = Symbol("_vtc");
@@ -8636,9 +8592,8 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
8636
8592
  function forceReflow(el) {
8637
8593
  return (el ? el.ownerDocument : document).body.offsetHeight;
8638
8594
  }
8639
-
8640
- //#endregion
8641
- //#region packages/runtime-dom/src/modules/class.ts
8595
+ //#endregion
8596
+ //#region packages/runtime-dom/src/modules/class.ts
8642
8597
  function patchClass(el, value, isSVG) {
8643
8598
  const transitionClasses = el[vtcKey];
8644
8599
  if (transitionClasses) value = (value ? [value, ...transitionClasses] : [...transitionClasses]).join(" ");
@@ -8646,9 +8601,8 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
8646
8601
  else if (isSVG) el.setAttribute("class", value);
8647
8602
  else el.className = value;
8648
8603
  }
8649
-
8650
- //#endregion
8651
- //#region packages/runtime-dom/src/directives/vShow.ts
8604
+ //#endregion
8605
+ //#region packages/runtime-dom/src/directives/vShow.ts
8652
8606
  const vShowOriginalDisplay = Symbol("_vod");
8653
8607
  const vShowHidden = Symbol("_vsh");
8654
8608
  const vShow = {
@@ -8680,9 +8634,8 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
8680
8634
  el.style.display = value ? el[vShowOriginalDisplay] : "none";
8681
8635
  el[vShowHidden] = !value;
8682
8636
  }
8683
-
8684
- //#endregion
8685
- //#region packages/runtime-dom/src/helpers/useCssVars.ts
8637
+ //#endregion
8638
+ //#region packages/runtime-dom/src/helpers/useCssVars.ts
8686
8639
  const CSS_VAR_TEXT = Symbol("CSS_VAR_TEXT");
8687
8640
  /**
8688
8641
  * Runtime helper for SFC's CSS variable injection feature.
@@ -8765,9 +8718,8 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
8765
8718
  style[CSS_VAR_TEXT] = cssText;
8766
8719
  }
8767
8720
  }
8768
-
8769
- //#endregion
8770
- //#region packages/runtime-dom/src/modules/style.ts
8721
+ //#endregion
8722
+ //#region packages/runtime-dom/src/modules/style.ts
8771
8723
  const displayRE = /(?:^|;)\s*display\s*:/;
8772
8724
  function patchStyle(el, prev, next) {
8773
8725
  const style = el.style;
@@ -8830,9 +8782,8 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
8830
8782
  }
8831
8783
  return rawName;
8832
8784
  }
8833
-
8834
- //#endregion
8835
- //#region packages/runtime-dom/src/modules/attrs.ts
8785
+ //#endregion
8786
+ //#region packages/runtime-dom/src/modules/attrs.ts
8836
8787
  const xlinkNS = "http://www.w3.org/1999/xlink";
8837
8788
  function patchAttr(el, key, value, isSVG, instance, isBoolean = isSpecialBooleanAttr(key)) {
8838
8789
  if (isSVG && key.startsWith("xlink:")) if (value == null) el.removeAttributeNS(xlinkNS, key.slice(6, key.length));
@@ -8840,9 +8791,8 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
8840
8791
  else if (value == null || isBoolean && !includeBooleanAttr(value)) el.removeAttribute(key);
8841
8792
  else el.setAttribute(key, isBoolean ? "" : isSymbol(value) ? String(value) : value);
8842
8793
  }
8843
-
8844
- //#endregion
8845
- //#region packages/runtime-dom/src/modules/props.ts
8794
+ //#endregion
8795
+ //#region packages/runtime-dom/src/modules/props.ts
8846
8796
  function patchDOMProp(el, key, value, parentComponent, attrName) {
8847
8797
  if (key === "innerHTML" || key === "textContent") {
8848
8798
  if (value != null) el[key] = key === "innerHTML" ? unsafeToTrustedHTML(value) : value;
@@ -8876,9 +8826,8 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
8876
8826
  }
8877
8827
  needRemove && el.removeAttribute(attrName || key);
8878
8828
  }
8879
-
8880
- //#endregion
8881
- //#region packages/runtime-dom/src/modules/events.ts
8829
+ //#endregion
8830
+ //#region packages/runtime-dom/src/modules/events.ts
8882
8831
  function addEventListener(el, event, handler, options) {
8883
8832
  el.addEventListener(event, handler, options);
8884
8833
  }
@@ -8940,9 +8889,8 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
8940
8889
  return value.map((fn) => (e) => !e._stopped && fn && fn(e));
8941
8890
  } else return value;
8942
8891
  }
8943
-
8944
- //#endregion
8945
- //#region packages/runtime-dom/src/patchProp.ts
8892
+ //#endregion
8893
+ //#region packages/runtime-dom/src/patchProp.ts
8946
8894
  const patchProp = (el, key, prevValue, nextValue, namespace, parentComponent) => {
8947
8895
  const isSVG = namespace === "svg";
8948
8896
  if (key === "class") patchClass(el, nextValue, isSVG);
@@ -8952,7 +8900,7 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
8952
8900
  } else if (key[0] === "." ? (key = key.slice(1), true) : key[0] === "^" ? (key = key.slice(1), false) : shouldSetAsProp(el, key, nextValue, isSVG)) {
8953
8901
  patchDOMProp(el, key, nextValue, parentComponent);
8954
8902
  if (!el.tagName.includes("-") && (key === "value" || key === "checked" || key === "selected")) patchAttr(el, key, nextValue, isSVG, parentComponent, key !== "value");
8955
- } else if (el._isVueCE && (/[A-Z]/.test(key) || !isString(nextValue))) patchDOMProp(el, camelize(key), nextValue, parentComponent, key);
8903
+ } else if (el._isVueCE && (shouldSetAsPropForVueCE(el, key) || el._def.__asyncLoader && (/[A-Z]/.test(key) || !isString(nextValue)))) patchDOMProp(el, camelize(key), nextValue, parentComponent, key);
8956
8904
  else {
8957
8905
  if (key === "true-value") el._trueValue = nextValue;
8958
8906
  else if (key === "false-value") el._falseValue = nextValue;
@@ -8969,9 +8917,14 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
8969
8917
  if (isNativeOn(key) && isString(value)) return false;
8970
8918
  return key in el;
8971
8919
  }
8972
-
8973
- //#endregion
8974
- //#region packages/runtime-dom/src/apiCustomElement.ts
8920
+ function shouldSetAsPropForVueCE(el, key) {
8921
+ const props = el._def.props;
8922
+ if (!props) return false;
8923
+ const camelKey = camelize(key);
8924
+ return Array.isArray(props) ? props.some((prop) => camelize(prop) === camelKey) : Object.keys(props).some((prop) => camelize(prop) === camelKey);
8925
+ }
8926
+ //#endregion
8927
+ //#region packages/runtime-dom/src/apiCustomElement.ts
8975
8928
  const REMOVAL = {};
8976
8929
  /* @__NO_SIDE_EFFECTS__ */
8977
8930
  function defineCustomElement(options, extraOptions, _createApp) {
@@ -8999,6 +8952,7 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
8999
8952
  this._resolved = false;
9000
8953
  this._numberProps = null;
9001
8954
  this._styleChildren = /* @__PURE__ */ new WeakSet();
8955
+ this._styleAnchors = /* @__PURE__ */ new WeakMap();
9002
8956
  this._patching = false;
9003
8957
  this._dirty = false;
9004
8958
  this._ob = null;
@@ -9017,7 +8971,7 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
9017
8971
  if (!this.shadowRoot && !this._resolved) this._parseSlots();
9018
8972
  this._connected = true;
9019
8973
  let parent = this;
9020
- while (parent = parent && (parent.parentNode || parent.host)) if (parent instanceof VueElementBase) {
8974
+ while (parent = parent && (parent.assignedSlot || parent.parentNode || parent.host)) if (parent instanceof VueElementBase) {
9021
8975
  this._parent = parent;
9022
8976
  break;
9023
8977
  }
@@ -9110,6 +9064,7 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
9110
9064
  this._styles.forEach((s) => this._root.removeChild(s));
9111
9065
  this._styles.length = 0;
9112
9066
  }
9067
+ this._styleAnchors.delete(this._def);
9113
9068
  this._applyStyles(newStyles);
9114
9069
  if (!this._instance.vapor) this._instance = null;
9115
9070
  this._update();
@@ -9175,18 +9130,26 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
9175
9130
  }
9176
9131
  }
9177
9132
  }
9178
- _applyStyles(styles, owner) {
9133
+ _applyStyles(styles, owner, parentComp) {
9179
9134
  if (!styles) return;
9180
9135
  if (owner) {
9181
9136
  if (owner === this._def || this._styleChildren.has(owner)) return;
9182
9137
  this._styleChildren.add(owner);
9183
9138
  }
9184
9139
  const nonce = this._nonce;
9140
+ const root = this.shadowRoot;
9141
+ const insertionAnchor = parentComp ? this._getStyleAnchor(parentComp) || this._getStyleAnchor(this._def) : this._getRootStyleInsertionAnchor(root);
9142
+ let last = null;
9185
9143
  for (let i = styles.length - 1; i >= 0; i--) {
9186
9144
  const s = document.createElement("style");
9187
9145
  if (nonce) s.setAttribute("nonce", nonce);
9188
9146
  s.textContent = styles[i];
9189
- this.shadowRoot.prepend(s);
9147
+ root.insertBefore(s, last || insertionAnchor);
9148
+ last = s;
9149
+ if (i === 0) {
9150
+ if (!parentComp) this._styleAnchors.set(this._def, s);
9151
+ if (owner) this._styleAnchors.set(owner, s);
9152
+ }
9190
9153
  if (owner) {
9191
9154
  if (owner.__hmrId) {
9192
9155
  if (!this._childStyles) this._childStyles = /* @__PURE__ */ new Map();
@@ -9197,6 +9160,20 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
9197
9160
  } else (this._styles || (this._styles = [])).push(s);
9198
9161
  }
9199
9162
  }
9163
+ _getStyleAnchor(comp) {
9164
+ if (!comp) return null;
9165
+ const anchor = this._styleAnchors.get(comp);
9166
+ if (anchor && anchor.parentNode === this.shadowRoot) return anchor;
9167
+ if (anchor) this._styleAnchors.delete(comp);
9168
+ return null;
9169
+ }
9170
+ _getRootStyleInsertionAnchor(root) {
9171
+ for (let i = 0; i < root.childNodes.length; i++) {
9172
+ const node = root.childNodes[i];
9173
+ if (!(node instanceof HTMLStyleElement)) return node;
9174
+ }
9175
+ return null;
9176
+ }
9200
9177
  /**
9201
9178
  * Only called when shadowRoot is false
9202
9179
  */
@@ -9259,8 +9236,8 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
9259
9236
  /**
9260
9237
  * @internal
9261
9238
  */
9262
- _injectChildStyle(comp) {
9263
- this._applyStyles(comp.styles, comp);
9239
+ _injectChildStyle(comp, parentComp) {
9240
+ this._applyStyles(comp.styles, comp, parentComp);
9264
9241
  }
9265
9242
  /**
9266
9243
  * @internal
@@ -9287,6 +9264,7 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
9287
9264
  */
9288
9265
  _removeChildStyle(comp) {
9289
9266
  this._styleChildren.delete(comp);
9267
+ this._styleAnchors.delete(comp);
9290
9268
  if (this._childStyles && comp.__hmrId) {
9291
9269
  const oldStyles = this._childStyles.get(comp.__hmrId);
9292
9270
  if (oldStyles) {
@@ -9355,16 +9333,14 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
9355
9333
  const el = useHost("useShadowRoot");
9356
9334
  return el && el.shadowRoot;
9357
9335
  }
9358
-
9359
- //#endregion
9360
- //#region packages/runtime-dom/src/helpers/useCssModule.ts
9336
+ //#endregion
9337
+ //#region packages/runtime-dom/src/helpers/useCssModule.ts
9361
9338
  function useCssModule(name = "$style") {
9362
9339
  warn(`useCssModule() is not supported in the global build.`);
9363
9340
  return EMPTY_OBJ;
9364
9341
  }
9365
-
9366
- //#endregion
9367
- //#region packages/runtime-dom/src/components/TransitionGroup.ts
9342
+ //#endregion
9343
+ //#region packages/runtime-dom/src/components/TransitionGroup.ts
9368
9344
  const positionMap = /* @__PURE__ */ new WeakMap();
9369
9345
  const newPositionMap = /* @__PURE__ */ new WeakMap();
9370
9346
  const moveCbKey = Symbol("_moveCb");
@@ -9377,7 +9353,7 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
9377
9353
  delete t.props.mode;
9378
9354
  return t;
9379
9355
  };
9380
- const TransitionGroupImpl = /* @__PURE__ */ decorate({
9356
+ const TransitionGroup = /* @__PURE__ */ decorate({
9381
9357
  name: "TransitionGroup",
9382
9358
  props: /* @__PURE__ */ extend({}, TransitionPropsValidators, {
9383
9359
  tag: String,
@@ -9428,7 +9404,6 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
9428
9404
  };
9429
9405
  }
9430
9406
  });
9431
- const TransitionGroup = TransitionGroupImpl;
9432
9407
  function callPendingCbs(el) {
9433
9408
  if (el[moveCbKey]) el[moveCbKey]();
9434
9409
  if (el[enterCbKey]) el[enterCbKey]();
@@ -9494,9 +9469,8 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
9494
9469
  };
9495
9470
  el.addEventListener("transitionend", cb);
9496
9471
  };
9497
-
9498
- //#endregion
9499
- //#region packages/runtime-dom/src/directives/vModel.ts
9472
+ //#endregion
9473
+ //#region packages/runtime-dom/src/directives/vModel.ts
9500
9474
  const getModelAssigner = (vnode) => {
9501
9475
  const fn = vnode.props["onUpdate:modelValue"] || false;
9502
9476
  return isArray(fn) ? (value) => invokeArrayFns(fn, value) : fn;
@@ -9555,7 +9529,8 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
9555
9529
  const elValue = (number || el.type === "number") && !/^0\d/.test(el.value) ? looseToNumber(el.value) : el.value;
9556
9530
  const newValue = value == null ? "" : value;
9557
9531
  if (elValue === newValue) return;
9558
- if (document.activeElement === el && el.type !== "range") {
9532
+ const rootNode = el.getRootNode();
9533
+ if ((rootNode instanceof Document || rootNode instanceof ShadowRoot) && rootNode.activeElement === el && el.type !== "range") {
9559
9534
  if (lazy && value === oldValue) return;
9560
9535
  if (trim && el.value.trim() === newValue) return;
9561
9536
  }
@@ -9726,9 +9701,8 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
9726
9701
  const fn = resolveDynamicModel(el.tagName, vnode.props && vnode.props.type)[hook];
9727
9702
  fn && fn(el, binding, vnode, prevVNode);
9728
9703
  }
9729
-
9730
- //#endregion
9731
- //#region packages/runtime-dom/src/directives/vOn.ts
9704
+ //#endregion
9705
+ //#region packages/runtime-dom/src/directives/vOn.ts
9732
9706
  const systemModifiers = [
9733
9707
  "ctrl",
9734
9708
  "shift",
@@ -9784,9 +9758,8 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
9784
9758
  if (modifiers.some((k) => k === eventKey || keyNames[k] === eventKey)) return fn(event);
9785
9759
  }));
9786
9760
  };
9787
-
9788
- //#endregion
9789
- //#region packages/runtime-dom/src/index.ts
9761
+ //#endregion
9762
+ //#region packages/runtime-dom/src/index.ts
9790
9763
  const rendererOptions = /* @__PURE__ */ extend({ patchProp }, nodeOps);
9791
9764
  let renderer;
9792
9765
  let enabledHydration = false;
@@ -9886,182 +9859,181 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
9886
9859
  * @internal
9887
9860
  */
9888
9861
  const initDirectivesForSSR = NOOP;
9889
-
9890
- //#endregion
9891
- exports.BaseTransition = BaseTransition;
9892
- exports.BaseTransitionPropsValidators = BaseTransitionPropsValidators;
9893
- exports.Comment = Comment;
9894
- exports.DeprecationTypes = DeprecationTypes;
9895
- exports.EffectScope = EffectScope;
9896
- exports.ErrorCodes = ErrorCodes;
9897
- exports.ErrorTypeStrings = ErrorTypeStrings;
9898
- exports.Fragment = Fragment;
9899
- exports.KeepAlive = KeepAlive;
9900
- exports.MoveType = MoveType;
9901
- exports.NULL_DYNAMIC_COMPONENT = NULL_DYNAMIC_COMPONENT;
9902
- exports.ReactiveEffect = ReactiveEffect;
9903
- exports.Static = Static;
9904
- exports.Suspense = Suspense;
9905
- exports.Teleport = Teleport;
9906
- exports.Text = Text;
9907
- exports.TrackOpTypes = TrackOpTypes;
9908
- exports.Transition = Transition;
9909
- exports.TransitionGroup = TransitionGroup;
9910
- exports.TriggerOpTypes = TriggerOpTypes;
9911
- exports.VueElement = VueElement;
9912
- exports.VueElementBase = VueElementBase;
9913
- exports.assertNumber = assertNumber;
9914
- exports.callWithAsyncErrorHandling = callWithAsyncErrorHandling;
9915
- exports.callWithErrorHandling = callWithErrorHandling;
9916
- exports.camelize = camelize;
9917
- exports.capitalize = capitalize;
9918
- exports.cloneVNode = cloneVNode;
9919
- exports.compatUtils = compatUtils;
9920
- exports.computed = computed;
9921
- exports.createApp = createApp;
9922
- exports.createBlock = createBlock;
9923
- exports.createCommentVNode = createCommentVNode;
9924
- exports.createElementBlock = createElementBlock;
9925
- exports.createElementVNode = createBaseVNode;
9926
- exports.createHydrationRenderer = createHydrationRenderer;
9927
- exports.createPropsRestProxy = createPropsRestProxy;
9928
- exports.createRenderer = createRenderer;
9929
- exports.createSSRApp = createSSRApp;
9930
- exports.createSlots = createSlots;
9931
- exports.createStaticVNode = createStaticVNode;
9932
- exports.createTextVNode = createTextVNode;
9933
- exports.createVNode = createVNode;
9934
- exports.customRef = customRef;
9935
- exports.defineAsyncComponent = defineAsyncComponent;
9936
- exports.defineComponent = defineComponent;
9937
- exports.defineCustomElement = defineCustomElement;
9938
- exports.defineEmits = defineEmits;
9939
- exports.defineExpose = defineExpose;
9940
- exports.defineModel = defineModel;
9941
- exports.defineOptions = defineOptions;
9942
- exports.defineProps = defineProps;
9943
- exports.defineSSRCustomElement = defineSSRCustomElement;
9944
- exports.defineSlots = defineSlots;
9945
- exports.devtools = devtools;
9946
- exports.effect = effect;
9947
- exports.effectScope = effectScope;
9948
- exports.getCurrentInstance = getCurrentInstance;
9949
- exports.getCurrentScope = getCurrentScope;
9950
- exports.getCurrentWatcher = getCurrentWatcher;
9951
- exports.getTransitionRawChildren = getTransitionRawChildren;
9952
- exports.guardReactiveProps = guardReactiveProps;
9953
- exports.h = h;
9954
- exports.handleError = handleError;
9955
- exports.hasInjectionContext = hasInjectionContext;
9956
- exports.hydrate = hydrate;
9957
- exports.hydrateOnIdle = hydrateOnIdle;
9958
- exports.hydrateOnInteraction = hydrateOnInteraction;
9959
- exports.hydrateOnMediaQuery = hydrateOnMediaQuery;
9960
- exports.hydrateOnVisible = hydrateOnVisible;
9961
- exports.initCustomFormatter = initCustomFormatter;
9962
- exports.initDirectivesForSSR = initDirectivesForSSR;
9963
- exports.inject = inject;
9964
- exports.isMemoSame = isMemoSame;
9965
- exports.isProxy = isProxy;
9966
- exports.isReactive = isReactive;
9967
- exports.isReadonly = isReadonly;
9968
- exports.isRef = isRef;
9969
- exports.isRuntimeOnly = isRuntimeOnly;
9970
- exports.isShallow = isShallow;
9971
- exports.isVNode = isVNode;
9972
- exports.markRaw = markRaw;
9973
- exports.mergeDefaults = mergeDefaults;
9974
- exports.mergeModels = mergeModels;
9975
- exports.mergeProps = mergeProps;
9976
- exports.nextTick = nextTick;
9977
- exports.nodeOps = nodeOps;
9978
- exports.normalizeClass = normalizeClass;
9979
- exports.normalizeProps = normalizeProps;
9980
- exports.normalizeStyle = normalizeStyle;
9981
- exports.onActivated = onActivated;
9982
- exports.onBeforeMount = onBeforeMount;
9983
- exports.onBeforeUnmount = onBeforeUnmount;
9984
- exports.onBeforeUpdate = onBeforeUpdate;
9985
- exports.onDeactivated = onDeactivated;
9986
- exports.onErrorCaptured = onErrorCaptured;
9987
- exports.onMounted = onMounted;
9988
- exports.onRenderTracked = onRenderTracked;
9989
- exports.onRenderTriggered = onRenderTriggered;
9990
- exports.onScopeDispose = onScopeDispose;
9991
- exports.onServerPrefetch = onServerPrefetch;
9992
- exports.onUnmounted = onUnmounted;
9993
- exports.onUpdated = onUpdated;
9994
- exports.onWatcherCleanup = onWatcherCleanup;
9995
- exports.openBlock = openBlock;
9996
- exports.patchProp = patchProp;
9997
- exports.popScopeId = popScopeId;
9998
- exports.provide = provide;
9999
- exports.proxyRefs = proxyRefs;
10000
- exports.pushScopeId = pushScopeId;
10001
- exports.queuePostFlushCb = queuePostFlushCb;
10002
- exports.reactive = reactive;
10003
- exports.readonly = readonly;
10004
- exports.ref = ref;
10005
- exports.registerRuntimeCompiler = registerRuntimeCompiler;
10006
- exports.render = render;
10007
- exports.renderList = renderList;
10008
- exports.renderSlot = renderSlot;
10009
- exports.resolveComponent = resolveComponent;
10010
- exports.resolveDirective = resolveDirective;
10011
- exports.resolveDynamicComponent = resolveDynamicComponent;
10012
- exports.resolveFilter = resolveFilter;
10013
- exports.resolveTransitionHooks = resolveTransitionHooks;
10014
- exports.setBlockTracking = setBlockTracking;
10015
- exports.setDevtoolsHook = setDevtoolsHook;
10016
- exports.setIsHydratingEnabled = setIsHydratingEnabled;
10017
- exports.setTransitionHooks = setTransitionHooks;
10018
- exports.shallowReactive = shallowReactive;
10019
- exports.shallowReadonly = shallowReadonly;
10020
- exports.shallowRef = shallowRef;
10021
- exports.ssrContextKey = ssrContextKey;
10022
- exports.ssrUtils = ssrUtils;
10023
- exports.stop = stop;
10024
- exports.toDisplayString = toDisplayString;
10025
- exports.toHandlerKey = toHandlerKey;
10026
- exports.toHandlers = toHandlers;
10027
- exports.toRaw = toRaw;
10028
- exports.toRef = toRef;
10029
- exports.toRefs = toRefs;
10030
- exports.toValue = toValue;
10031
- exports.transformVNodeArgs = transformVNodeArgs;
10032
- exports.triggerRef = triggerRef;
10033
- exports.unref = unref;
10034
- exports.useAttrs = useAttrs;
10035
- exports.useCssModule = useCssModule;
10036
- exports.useCssVars = useCssVars;
10037
- exports.useHost = useHost;
10038
- exports.useId = useId;
10039
- exports.useInstanceOption = useInstanceOption;
10040
- exports.useModel = useModel;
10041
- exports.useSSRContext = useSSRContext;
10042
- exports.useShadowRoot = useShadowRoot;
10043
- exports.useSlots = useSlots;
10044
- exports.useTemplateRef = useTemplateRef;
10045
- exports.useTransitionState = useTransitionState;
10046
- exports.vModelCheckbox = vModelCheckbox;
10047
- exports.vModelDynamic = vModelDynamic;
10048
- exports.vModelRadio = vModelRadio;
10049
- exports.vModelSelect = vModelSelect;
10050
- exports.vModelText = vModelText;
10051
- exports.vShow = vShow;
10052
- exports.version = version;
10053
- exports.warn = warn;
10054
- exports.watch = watch;
10055
- exports.watchEffect = watchEffect;
10056
- exports.watchPostEffect = watchPostEffect;
10057
- exports.watchSyncEffect = watchSyncEffect;
10058
- exports.withAsyncContext = withAsyncContext;
10059
- exports.withCtx = withCtx;
10060
- exports.withDefaults = withDefaults;
10061
- exports.withDirectives = withDirectives;
10062
- exports.withKeys = withKeys;
10063
- exports.withMemo = withMemo;
10064
- exports.withModifiers = withModifiers;
10065
- exports.withScopeId = withScopeId;
10066
- return exports;
10067
- })({});
9862
+ //#endregion
9863
+ exports.BaseTransition = BaseTransition;
9864
+ exports.BaseTransitionPropsValidators = BaseTransitionPropsValidators;
9865
+ exports.Comment = Comment;
9866
+ exports.DeprecationTypes = DeprecationTypes;
9867
+ exports.EffectScope = EffectScope;
9868
+ exports.ErrorCodes = ErrorCodes;
9869
+ exports.ErrorTypeStrings = ErrorTypeStrings;
9870
+ exports.Fragment = Fragment;
9871
+ exports.KeepAlive = KeepAlive;
9872
+ exports.MoveType = MoveType;
9873
+ exports.NULL_DYNAMIC_COMPONENT = NULL_DYNAMIC_COMPONENT;
9874
+ exports.ReactiveEffect = ReactiveEffect;
9875
+ exports.Static = Static;
9876
+ exports.Suspense = Suspense;
9877
+ exports.Teleport = Teleport;
9878
+ exports.Text = Text;
9879
+ exports.TrackOpTypes = TrackOpTypes;
9880
+ exports.Transition = Transition;
9881
+ exports.TransitionGroup = TransitionGroup;
9882
+ exports.TriggerOpTypes = TriggerOpTypes;
9883
+ exports.VueElement = VueElement;
9884
+ exports.VueElementBase = VueElementBase;
9885
+ exports.assertNumber = assertNumber;
9886
+ exports.callWithAsyncErrorHandling = callWithAsyncErrorHandling;
9887
+ exports.callWithErrorHandling = callWithErrorHandling;
9888
+ exports.camelize = camelize;
9889
+ exports.capitalize = capitalize;
9890
+ exports.cloneVNode = cloneVNode;
9891
+ exports.compatUtils = compatUtils;
9892
+ exports.computed = computed;
9893
+ exports.createApp = createApp;
9894
+ exports.createBlock = createBlock;
9895
+ exports.createCommentVNode = createCommentVNode;
9896
+ exports.createElementBlock = createElementBlock;
9897
+ exports.createElementVNode = createBaseVNode;
9898
+ exports.createHydrationRenderer = createHydrationRenderer;
9899
+ exports.createPropsRestProxy = createPropsRestProxy;
9900
+ exports.createRenderer = createRenderer;
9901
+ exports.createSSRApp = createSSRApp;
9902
+ exports.createSlots = createSlots;
9903
+ exports.createStaticVNode = createStaticVNode;
9904
+ exports.createTextVNode = createTextVNode;
9905
+ exports.createVNode = createVNode;
9906
+ exports.customRef = customRef;
9907
+ exports.defineAsyncComponent = defineAsyncComponent;
9908
+ exports.defineComponent = defineComponent;
9909
+ exports.defineCustomElement = defineCustomElement;
9910
+ exports.defineEmits = defineEmits;
9911
+ exports.defineExpose = defineExpose;
9912
+ exports.defineModel = defineModel;
9913
+ exports.defineOptions = defineOptions;
9914
+ exports.defineProps = defineProps;
9915
+ exports.defineSSRCustomElement = defineSSRCustomElement;
9916
+ exports.defineSlots = defineSlots;
9917
+ exports.devtools = devtools;
9918
+ exports.effect = effect;
9919
+ exports.effectScope = effectScope;
9920
+ exports.getCurrentInstance = getCurrentInstance;
9921
+ exports.getCurrentScope = getCurrentScope;
9922
+ exports.getCurrentWatcher = getCurrentWatcher;
9923
+ exports.getTransitionRawChildren = getTransitionRawChildren;
9924
+ exports.guardReactiveProps = guardReactiveProps;
9925
+ exports.h = h;
9926
+ exports.handleError = handleError;
9927
+ exports.hasInjectionContext = hasInjectionContext;
9928
+ exports.hydrate = hydrate;
9929
+ exports.hydrateOnIdle = hydrateOnIdle;
9930
+ exports.hydrateOnInteraction = hydrateOnInteraction;
9931
+ exports.hydrateOnMediaQuery = hydrateOnMediaQuery;
9932
+ exports.hydrateOnVisible = hydrateOnVisible;
9933
+ exports.initCustomFormatter = initCustomFormatter;
9934
+ exports.initDirectivesForSSR = initDirectivesForSSR;
9935
+ exports.inject = inject;
9936
+ exports.isMemoSame = isMemoSame;
9937
+ exports.isProxy = isProxy;
9938
+ exports.isReactive = isReactive;
9939
+ exports.isReadonly = isReadonly;
9940
+ exports.isRef = isRef;
9941
+ exports.isRuntimeOnly = isRuntimeOnly;
9942
+ exports.isShallow = isShallow;
9943
+ exports.isVNode = isVNode;
9944
+ exports.markRaw = markRaw;
9945
+ exports.mergeDefaults = mergeDefaults;
9946
+ exports.mergeModels = mergeModels;
9947
+ exports.mergeProps = mergeProps;
9948
+ exports.nextTick = nextTick;
9949
+ exports.nodeOps = nodeOps;
9950
+ exports.normalizeClass = normalizeClass;
9951
+ exports.normalizeProps = normalizeProps;
9952
+ exports.normalizeStyle = normalizeStyle;
9953
+ exports.onActivated = onActivated;
9954
+ exports.onBeforeMount = onBeforeMount;
9955
+ exports.onBeforeUnmount = onBeforeUnmount;
9956
+ exports.onBeforeUpdate = onBeforeUpdate;
9957
+ exports.onDeactivated = onDeactivated;
9958
+ exports.onErrorCaptured = onErrorCaptured;
9959
+ exports.onMounted = onMounted;
9960
+ exports.onRenderTracked = onRenderTracked;
9961
+ exports.onRenderTriggered = onRenderTriggered;
9962
+ exports.onScopeDispose = onScopeDispose;
9963
+ exports.onServerPrefetch = onServerPrefetch;
9964
+ exports.onUnmounted = onUnmounted;
9965
+ exports.onUpdated = onUpdated;
9966
+ exports.onWatcherCleanup = onWatcherCleanup;
9967
+ exports.openBlock = openBlock;
9968
+ exports.patchProp = patchProp;
9969
+ exports.popScopeId = popScopeId;
9970
+ exports.provide = provide;
9971
+ exports.proxyRefs = proxyRefs;
9972
+ exports.pushScopeId = pushScopeId;
9973
+ exports.queuePostFlushCb = queuePostFlushCb;
9974
+ exports.reactive = reactive;
9975
+ exports.readonly = readonly;
9976
+ exports.ref = ref;
9977
+ exports.registerRuntimeCompiler = registerRuntimeCompiler;
9978
+ exports.render = render;
9979
+ exports.renderList = renderList;
9980
+ exports.renderSlot = renderSlot;
9981
+ exports.resolveComponent = resolveComponent;
9982
+ exports.resolveDirective = resolveDirective;
9983
+ exports.resolveDynamicComponent = resolveDynamicComponent;
9984
+ exports.resolveFilter = resolveFilter;
9985
+ exports.resolveTransitionHooks = resolveTransitionHooks;
9986
+ exports.setBlockTracking = setBlockTracking;
9987
+ exports.setDevtoolsHook = setDevtoolsHook;
9988
+ exports.setIsHydratingEnabled = setIsHydratingEnabled;
9989
+ exports.setTransitionHooks = setTransitionHooks;
9990
+ exports.shallowReactive = shallowReactive;
9991
+ exports.shallowReadonly = shallowReadonly;
9992
+ exports.shallowRef = shallowRef;
9993
+ exports.ssrContextKey = ssrContextKey;
9994
+ exports.ssrUtils = ssrUtils;
9995
+ exports.stop = stop;
9996
+ exports.toDisplayString = toDisplayString;
9997
+ exports.toHandlerKey = toHandlerKey;
9998
+ exports.toHandlers = toHandlers;
9999
+ exports.toRaw = toRaw;
10000
+ exports.toRef = toRef;
10001
+ exports.toRefs = toRefs;
10002
+ exports.toValue = toValue;
10003
+ exports.transformVNodeArgs = transformVNodeArgs;
10004
+ exports.triggerRef = triggerRef;
10005
+ exports.unref = unref;
10006
+ exports.useAttrs = useAttrs;
10007
+ exports.useCssModule = useCssModule;
10008
+ exports.useCssVars = useCssVars;
10009
+ exports.useHost = useHost;
10010
+ exports.useId = useId;
10011
+ exports.useInstanceOption = useInstanceOption;
10012
+ exports.useModel = useModel;
10013
+ exports.useSSRContext = useSSRContext;
10014
+ exports.useShadowRoot = useShadowRoot;
10015
+ exports.useSlots = useSlots;
10016
+ exports.useTemplateRef = useTemplateRef;
10017
+ exports.useTransitionState = useTransitionState;
10018
+ exports.vModelCheckbox = vModelCheckbox;
10019
+ exports.vModelDynamic = vModelDynamic;
10020
+ exports.vModelRadio = vModelRadio;
10021
+ exports.vModelSelect = vModelSelect;
10022
+ exports.vModelText = vModelText;
10023
+ exports.vShow = vShow;
10024
+ exports.version = version;
10025
+ exports.warn = warn;
10026
+ exports.watch = watch;
10027
+ exports.watchEffect = watchEffect;
10028
+ exports.watchPostEffect = watchPostEffect;
10029
+ exports.watchSyncEffect = watchSyncEffect;
10030
+ exports.withAsyncContext = withAsyncContext;
10031
+ exports.withCtx = withCtx;
10032
+ exports.withDefaults = withDefaults;
10033
+ exports.withDirectives = withDirectives;
10034
+ exports.withKeys = withKeys;
10035
+ exports.withMemo = withMemo;
10036
+ exports.withModifiers = withModifiers;
10037
+ exports.withScopeId = withScopeId;
10038
+ return exports;
10039
+ })({});