@fefeding/aicmd 1.0.20 → 1.0.22

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,11 +1,11 @@
1
- import { n as __esmMin, r as __exportAll } from "./rolldown-runtime.js";
2
- //#region node_modules/.pnpm/@vue+shared@3.5.34/node_modules/@vue/shared/dist/shared.esm-bundler.js
1
+ import { n as __esmMin } from "./rolldown-runtime.js";
2
+ //#region node_modules/.pnpm/@vue+shared@3.5.41/node_modules/@vue/shared/dist/shared.esm-bundler.js
3
3
  /**
4
- * @vue/shared v3.5.34
4
+ * @vue/shared v3.5.41
5
5
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
6
6
  * @license MIT
7
7
  **/
8
- /* @__NO_SIDE_EFFECTS__ */
8
+ // @__NO_SIDE_EFFECTS__
9
9
  function makeMap(str) {
10
10
  const map = /* @__PURE__ */ Object.create(null);
11
11
  for (const key of str.split(",")) map[key] = 1;
@@ -44,13 +44,6 @@ function normalizeClass(value) {
44
44
  }
45
45
  return res.trim();
46
46
  }
47
- function normalizeProps(props) {
48
- if (!props) return null;
49
- let { class: klass, style } = props;
50
- if (klass && !isString$1(klass)) props.class = normalizeClass(klass);
51
- if (style) props.style = normalizeStyle(style);
52
- return props;
53
- }
54
47
  function includeBooleanAttr(value) {
55
48
  return !!value || value === "";
56
49
  }
@@ -87,13 +80,7 @@ function looseEqual(a, b) {
87
80
  function looseIndexOf(arr, val) {
88
81
  return arr.findIndex((item) => looseEqual(item, val));
89
82
  }
90
- function normalizeCssVarValue(value) {
91
- if (value == null) return "initial";
92
- if (typeof value === "string") return value === "" ? " " : value;
93
- if (typeof value !== "number" || !Number.isFinite(value)) {}
94
- return String(value);
95
- }
96
- var EMPTY_OBJ, EMPTY_ARR, NOOP, NO, isOn, isModelListener, extend, remove, hasOwnProperty$2, hasOwn$1, isArray$2, isMap, isSet, isDate$1, isRegExp$1, isFunction$1, isString$1, isSymbol, isObject$1, isPromise$1, objectToString$1, toTypeString$1, toRawType, isPlainObject$1, isIntegerKey, isReservedProp, cacheStringFunction$1, camelizeRE$1, camelize$1, hyphenateRE$1, hyphenate$1, capitalize$1, toHandlerKey, hasChanged, invokeArrayFns, def, looseToNumber, toNumber, _globalThis$1, getGlobalThis$1, isGloballyAllowed, listDelimiterRE, propertyDelimiterRE, styleCommentRE, specialBooleanAttrs, isSpecialBooleanAttr, isRef$1, toDisplayString$1, replacer, stringifySymbol;
83
+ var EMPTY_OBJ, EMPTY_ARR, NOOP, NO, isOn, isModelListener, extend, remove, hasOwnProperty$2, hasOwn$1, isArray$2, isMap, isSet, isDate$1, isFunction$1, isString$1, isSymbol, isObject$1, isPromise$1, objectToString$1, toTypeString$1, toRawType, isPlainObject$1, isIntegerKey, isReservedProp, cacheStringFunction$1, camelizeRE$1, camelize$1, hyphenateRE$1, hyphenate$1, capitalize$1, toHandlerKey, hasChanged, invokeArrayFns, def, looseToNumber, _globalThis$1, getGlobalThis$1, listDelimiterRE, propertyDelimiterRE, styleCommentRE, specialBooleanAttrs, isSpecialBooleanAttr, isRef$1, toDisplayString$1, replacer, stringifySymbol;
97
84
  var init_shared_esm_bundler = __esmMin((() => {
98
85
  EMPTY_OBJ = {};
99
86
  EMPTY_ARR = [];
@@ -112,7 +99,6 @@ var init_shared_esm_bundler = __esmMin((() => {
112
99
  isMap = (val) => toTypeString$1(val) === "[object Map]";
113
100
  isSet = (val) => toTypeString$1(val) === "[object Set]";
114
101
  isDate$1 = (val) => toTypeString$1(val) === "[object Date]";
115
- isRegExp$1 = (val) => toTypeString$1(val) === "[object RegExp]";
116
102
  isFunction$1 = (val) => typeof val === "function";
117
103
  isString$1 = (val) => typeof val === "string";
118
104
  isSymbol = (val) => typeof val === "symbol";
@@ -162,14 +148,9 @@ var init_shared_esm_bundler = __esmMin((() => {
162
148
  const n = parseFloat(val);
163
149
  return isNaN(n) ? val : n;
164
150
  };
165
- toNumber = (val) => {
166
- const n = isString$1(val) ? Number(val) : NaN;
167
- return isNaN(n) ? val : n;
168
- };
169
151
  getGlobalThis$1 = () => {
170
152
  return _globalThis$1 || (_globalThis$1 = typeof globalThis !== "undefined" ? globalThis : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : typeof global !== "undefined" ? global : {});
171
153
  };
172
- 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");
173
154
  listDelimiterRE = /;(?![^(]*\))/g;
174
155
  propertyDelimiterRE = /:([^]+)/;
175
156
  styleCommentRE = /\/\*[^]*?\*\//g;
@@ -199,9 +180,9 @@ var init_shared_esm_bundler = __esmMin((() => {
199
180
  };
200
181
  }));
201
182
  //#endregion
202
- //#region node_modules/.pnpm/@vue+reactivity@3.5.34/node_modules/@vue/reactivity/dist/reactivity.esm-bundler.js
183
+ //#region node_modules/.pnpm/@vue+reactivity@3.5.41/node_modules/@vue/reactivity/dist/reactivity.esm-bundler.js
203
184
  /**
204
- * @vue/reactivity v3.5.34
185
+ * @vue/reactivity v3.5.41
205
186
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
206
187
  * @license MIT
207
188
  **/
@@ -347,23 +328,6 @@ function removeDep(link) {
347
328
  link.nextDep = void 0;
348
329
  }
349
330
  }
350
- function effect(fn, options) {
351
- if (fn.effect instanceof ReactiveEffect) fn = fn.effect.fn;
352
- const e = new ReactiveEffect(fn);
353
- if (options) extend(e, options);
354
- try {
355
- e.run();
356
- } catch (err) {
357
- e.stop();
358
- throw err;
359
- }
360
- const runner = e.run.bind(e);
361
- runner.effect = e;
362
- return runner;
363
- }
364
- function stop(runner) {
365
- runner.effect.stop();
366
- }
367
331
  function pauseTracking() {
368
332
  trackStack.push(shouldTrack);
369
333
  shouldTrack = false;
@@ -449,9 +413,7 @@ function trigger(target, type, key, newValue, oldValue, oldTarget) {
449
413
  if (isMap(target)) run(depsMap.get(MAP_KEY_ITERATE_KEY));
450
414
  }
451
415
  break;
452
- case "set":
453
- if (isMap(target)) run(depsMap.get(ITERATE_KEY));
454
- break;
416
+ case "set": if (isMap(target)) run(depsMap.get(ITERATE_KEY));
455
417
  }
456
418
  }
457
419
  }
@@ -707,55 +669,49 @@ function targetTypeMap(rawType) {
707
669
  default: return 0;
708
670
  }
709
671
  }
710
- function getTargetType(value) {
711
- return value["__v_skip"] || !Object.isExtensible(value) ? 0 : targetTypeMap(toRawType(value));
712
- }
713
- /* @__NO_SIDE_EFFECTS__ */
672
+ // @__NO_SIDE_EFFECTS__
714
673
  function reactive(target) {
715
674
  if (/* @__PURE__ */ isReadonly(target)) return target;
716
675
  return createReactiveObject(target, false, mutableHandlers, mutableCollectionHandlers, reactiveMap);
717
676
  }
718
- /* @__NO_SIDE_EFFECTS__ */
677
+ // @__NO_SIDE_EFFECTS__
719
678
  function shallowReactive(target) {
720
679
  return createReactiveObject(target, false, shallowReactiveHandlers, shallowCollectionHandlers, shallowReactiveMap);
721
680
  }
722
- /* @__NO_SIDE_EFFECTS__ */
681
+ // @__NO_SIDE_EFFECTS__
723
682
  function readonly(target) {
724
683
  return createReactiveObject(target, true, readonlyHandlers, readonlyCollectionHandlers, readonlyMap);
725
684
  }
726
- /* @__NO_SIDE_EFFECTS__ */
727
- function shallowReadonly(target) {
728
- return createReactiveObject(target, true, shallowReadonlyHandlers, shallowReadonlyCollectionHandlers, shallowReadonlyMap);
729
- }
730
685
  function createReactiveObject(target, isReadonly2, baseHandlers, collectionHandlers, proxyMap) {
731
686
  if (!isObject$1(target)) return target;
732
687
  if (target["__v_raw"] && !(isReadonly2 && target["__v_isReactive"])) return target;
733
- const targetType = getTargetType(target);
734
- if (targetType === 0) return target;
688
+ if (target["__v_skip"] || !Object.isExtensible(target)) return target;
735
689
  const existingProxy = proxyMap.get(target);
736
690
  if (existingProxy) return existingProxy;
691
+ const targetType = targetTypeMap(toRawType(target));
692
+ if (targetType === 0) return target;
737
693
  const proxy = new Proxy(target, targetType === 2 ? collectionHandlers : baseHandlers);
738
694
  proxyMap.set(target, proxy);
739
695
  return proxy;
740
696
  }
741
- /* @__NO_SIDE_EFFECTS__ */
697
+ // @__NO_SIDE_EFFECTS__
742
698
  function isReactive(value) {
743
699
  if (/* @__PURE__ */ isReadonly(value)) return /* @__PURE__ */ isReactive(value["__v_raw"]);
744
700
  return !!(value && value["__v_isReactive"]);
745
701
  }
746
- /* @__NO_SIDE_EFFECTS__ */
702
+ // @__NO_SIDE_EFFECTS__
747
703
  function isReadonly(value) {
748
704
  return !!(value && value["__v_isReadonly"]);
749
705
  }
750
- /* @__NO_SIDE_EFFECTS__ */
706
+ // @__NO_SIDE_EFFECTS__
751
707
  function isShallow(value) {
752
708
  return !!(value && value["__v_isShallow"]);
753
709
  }
754
- /* @__NO_SIDE_EFFECTS__ */
710
+ // @__NO_SIDE_EFFECTS__
755
711
  function isProxy(value) {
756
712
  return value ? !!value["__v_raw"] : false;
757
713
  }
758
- /* @__NO_SIDE_EFFECTS__ */
714
+ // @__NO_SIDE_EFFECTS__
759
715
  function toRaw(observed) {
760
716
  const raw = observed && observed["__v_raw"];
761
717
  return raw ? /* @__PURE__ */ toRaw(raw) : observed;
@@ -764,15 +720,15 @@ function markRaw(value) {
764
720
  if (!hasOwn$1(value, "__v_skip") && Object.isExtensible(value)) def(value, "__v_skip", true);
765
721
  return value;
766
722
  }
767
- /* @__NO_SIDE_EFFECTS__ */
723
+ // @__NO_SIDE_EFFECTS__
768
724
  function isRef(r) {
769
725
  return r ? r["__v_isRef"] === true : false;
770
726
  }
771
- /* @__NO_SIDE_EFFECTS__ */
727
+ // @__NO_SIDE_EFFECTS__
772
728
  function ref(value) {
773
729
  return createRef(value, false);
774
730
  }
775
- /* @__NO_SIDE_EFFECTS__ */
731
+ // @__NO_SIDE_EFFECTS__
776
732
  function shallowRef(value) {
777
733
  return createRef(value, true);
778
734
  }
@@ -780,9 +736,6 @@ function createRef(rawValue, shallow) {
780
736
  if (/* @__PURE__ */ isRef(rawValue)) return rawValue;
781
737
  return new RefImpl(rawValue, shallow);
782
738
  }
783
- function triggerRef(ref2) {
784
- if (ref2.dep) ref2.dep.trigger();
785
- }
786
739
  function unref(ref2) {
787
740
  return /* @__PURE__ */ isRef(ref2) ? ref2.value : ref2;
788
741
  }
@@ -795,13 +748,13 @@ function proxyRefs(objectWithRefs) {
795
748
  function customRef(factory) {
796
749
  return new CustomRefImpl(factory);
797
750
  }
798
- /* @__NO_SIDE_EFFECTS__ */
751
+ // @__NO_SIDE_EFFECTS__
799
752
  function toRefs(object) {
800
753
  const ret = isArray$2(object) ? new Array(object.length) : {};
801
754
  for (const key in object) ret[key] = propertyToRef(object, key);
802
755
  return ret;
803
756
  }
804
- /* @__NO_SIDE_EFFECTS__ */
757
+ // @__NO_SIDE_EFFECTS__
805
758
  function toRef$1(source, key, defaultValue) {
806
759
  if (/* @__PURE__ */ isRef(source)) return source;
807
760
  else if (isFunction$1(source)) return new GetterRefImpl(source);
@@ -811,7 +764,7 @@ function toRef$1(source, key, defaultValue) {
811
764
  function propertyToRef(source, key, defaultValue) {
812
765
  return new ObjectRefImpl(source, key, defaultValue);
813
766
  }
814
- /* @__NO_SIDE_EFFECTS__ */
767
+ // @__NO_SIDE_EFFECTS__
815
768
  function computed$1(getterOrOptions, debugOptions, isSSR = false) {
816
769
  let getter;
817
770
  let setter;
@@ -822,9 +775,6 @@ function computed$1(getterOrOptions, debugOptions, isSSR = false) {
822
775
  }
823
776
  return new ComputedRefImpl(getter, setter, isSSR);
824
777
  }
825
- function getCurrentWatcher() {
826
- return activeWatcher;
827
- }
828
778
  function onWatcherCleanup(cleanupFn, failSilently = false, owner = activeWatcher) {
829
779
  if (owner) {
830
780
  let cleanups = cleanupMap.get(owner);
@@ -859,25 +809,26 @@ function watch$1(source, cb, options = EMPTY_OBJ) {
859
809
  else if (/* @__PURE__ */ isReactive(s)) return reactiveGetter(s);
860
810
  else if (isFunction$1(s)) return call ? call(s, 2) : s();
861
811
  });
862
- } else if (isFunction$1(source)) if (cb) getter = call ? () => call(source, 2) : source;
863
- else getter = () => {
864
- if (cleanup) {
865
- pauseTracking();
812
+ } else if (isFunction$1(source)) {
813
+ if (cb) getter = call ? () => call(source, 2) : source;
814
+ else getter = () => {
815
+ if (cleanup) {
816
+ pauseTracking();
817
+ try {
818
+ cleanup();
819
+ } finally {
820
+ resetTracking();
821
+ }
822
+ }
823
+ const currentEffect = activeWatcher;
824
+ activeWatcher = effect;
866
825
  try {
867
- cleanup();
826
+ return call ? call(source, 3, [boundCleanup]) : source(boundCleanup);
868
827
  } finally {
869
- resetTracking();
828
+ activeWatcher = currentEffect;
870
829
  }
871
- }
872
- const currentEffect = activeWatcher;
873
- activeWatcher = effect;
874
- try {
875
- return call ? call(source, 3, [boundCleanup]) : source(boundCleanup);
876
- } finally {
877
- activeWatcher = currentEffect;
878
- }
879
- };
880
- else getter = NOOP;
830
+ };
831
+ } else getter = NOOP;
881
832
  if (cb && deep) {
882
833
  const baseGetter = getter;
883
834
  const depth = deep === true ? Infinity : deep;
@@ -891,8 +842,9 @@ function watch$1(source, cb, options = EMPTY_OBJ) {
891
842
  if (once && cb) {
892
843
  const _cb = cb;
893
844
  cb = (...args) => {
894
- _cb(...args);
845
+ const res = _cb(...args);
895
846
  watchHandle();
847
+ return res;
896
848
  };
897
849
  }
898
850
  let oldValue = isMultiSource ? new Array(source.length).fill(INITIAL_WATCHER_VALUE) : INITIAL_WATCHER_VALUE;
@@ -900,7 +852,7 @@ function watch$1(source, cb, options = EMPTY_OBJ) {
900
852
  if (!(effect.flags & 1) || !effect.dirty && !immediateFirstRun) return;
901
853
  if (cb) {
902
854
  const newValue = effect.run();
903
- if (deep || forceTrigger || (isMultiSource ? newValue.some((v, i) => hasChanged(v, oldValue[i])) : hasChanged(newValue, oldValue))) {
855
+ if (immediateFirstRun || deep || forceTrigger || (isMultiSource ? newValue.some((v, i) => hasChanged(v, oldValue[i])) : hasChanged(newValue, oldValue))) {
904
856
  if (cleanup) cleanup();
905
857
  const currentWatcher = activeWatcher;
906
858
  activeWatcher = effect;
@@ -930,9 +882,10 @@ function watch$1(source, cb, options = EMPTY_OBJ) {
930
882
  cleanupMap.delete(effect);
931
883
  }
932
884
  };
933
- if (cb) if (immediate) job(true);
934
- else oldValue = effect.run();
935
- else if (scheduler) scheduler(job.bind(null, true), true);
885
+ if (cb) {
886
+ if (immediate) job(true);
887
+ else oldValue = effect.run();
888
+ } else if (scheduler) scheduler(job.bind(null, true), true);
936
889
  else effect.run();
937
890
  watchHandle.pause = effect.pause.bind(effect);
938
891
  watchHandle.resume = effect.resume.bind(effect);
@@ -956,7 +909,7 @@ function traverse(value, depth = Infinity, seen) {
956
909
  }
957
910
  return value;
958
911
  }
959
- var activeEffectScope, EffectScope, activeSub, pausedQueueEffects, ReactiveEffect, batchDepth, batchedSub, batchedComputed, shouldTrack, trackStack, globalVersion, Link, Dep, targetMap, ITERATE_KEY, MAP_KEY_ITERATE_KEY, ARRAY_ITERATE_KEY, arrayInstrumentations, arrayProto, isNonTrackableKeys, builtInSymbols, BaseReactiveHandler, MutableReactiveHandler, ReadonlyReactiveHandler, mutableHandlers, readonlyHandlers, shallowReactiveHandlers, shallowReadonlyHandlers, toShallow, getProto, mutableCollectionHandlers, shallowCollectionHandlers, readonlyCollectionHandlers, shallowReadonlyCollectionHandlers, reactiveMap, shallowReactiveMap, readonlyMap, shallowReadonlyMap, toReactive, toReadonly, RefImpl, shallowUnwrapHandlers, CustomRefImpl, ObjectRefImpl, GetterRefImpl, ComputedRefImpl, TrackOpTypes, TriggerOpTypes, INITIAL_WATCHER_VALUE, cleanupMap, activeWatcher;
912
+ var activeEffectScope, EffectScope, activeSub, pausedQueueEffects, ReactiveEffect, batchDepth, batchedSub, batchedComputed, shouldTrack, trackStack, globalVersion, Link, Dep, targetMap, ITERATE_KEY, MAP_KEY_ITERATE_KEY, ARRAY_ITERATE_KEY, arrayInstrumentations, arrayProto, isNonTrackableKeys, builtInSymbols, BaseReactiveHandler, MutableReactiveHandler, ReadonlyReactiveHandler, mutableHandlers, readonlyHandlers, shallowReactiveHandlers, toShallow, getProto, mutableCollectionHandlers, shallowCollectionHandlers, readonlyCollectionHandlers, reactiveMap, shallowReactiveMap, readonlyMap, shallowReadonlyMap, toReactive, toReadonly, RefImpl, shallowUnwrapHandlers, CustomRefImpl, ObjectRefImpl, GetterRefImpl, ComputedRefImpl, INITIAL_WATCHER_VALUE, cleanupMap, activeWatcher;
960
913
  var init_reactivity_esm_bundler = __esmMin((() => {
961
914
  init_shared_esm_bundler();
962
915
  EffectScope = class {
@@ -981,12 +934,14 @@ var init_reactivity_esm_bundler = __esmMin((() => {
981
934
  this._isPaused = false;
982
935
  this._warnOnRun = true;
983
936
  this.__v_skip = true;
984
- if (!detached && activeEffectScope) if (activeEffectScope.active) {
985
- this.parent = activeEffectScope;
986
- this.index = (activeEffectScope.scopes || (activeEffectScope.scopes = [])).push(this) - 1;
987
- } else {
988
- this._active = false;
989
- this._warnOnRun = false;
937
+ if (!detached && activeEffectScope) {
938
+ if (activeEffectScope.active) {
939
+ this.parent = activeEffectScope;
940
+ this.index = (activeEffectScope.scopes || (activeEffectScope.scopes = [])).push(this) - 1;
941
+ } else {
942
+ this._active = false;
943
+ this._warnOnRun = false;
944
+ }
990
945
  }
991
946
  }
992
947
  get active() {
@@ -996,7 +951,10 @@ var init_reactivity_esm_bundler = __esmMin((() => {
996
951
  if (this._active) {
997
952
  this._isPaused = true;
998
953
  let i, l;
999
- if (this.scopes) for (i = 0, l = this.scopes.length; i < l; i++) this.scopes[i].pause();
954
+ if (this.scopes) {
955
+ const scopes = this.scopes.slice();
956
+ for (i = 0, l = scopes.length; i < l; i++) scopes[i].pause();
957
+ }
1000
958
  for (i = 0, l = this.effects.length; i < l; i++) this.effects[i].pause();
1001
959
  }
1002
960
  }
@@ -1008,8 +966,12 @@ var init_reactivity_esm_bundler = __esmMin((() => {
1008
966
  if (this._isPaused) {
1009
967
  this._isPaused = false;
1010
968
  let i, l;
1011
- if (this.scopes) for (i = 0, l = this.scopes.length; i < l; i++) this.scopes[i].resume();
1012
- for (i = 0, l = this.effects.length; i < l; i++) this.effects[i].resume();
969
+ if (this.scopes) {
970
+ const scopes = this.scopes.slice();
971
+ for (i = 0, l = scopes.length; i < l; i++) scopes[i].resume();
972
+ }
973
+ const effects = this.effects.slice();
974
+ for (i = 0, l = effects.length; i < l; i++) effects[i].resume();
1013
975
  }
1014
976
  }
1015
977
  }
@@ -1063,7 +1025,8 @@ var init_reactivity_esm_bundler = __esmMin((() => {
1063
1025
  for (i = 0, l = this.cleanups.length; i < l; i++) this.cleanups[i]();
1064
1026
  this.cleanups.length = 0;
1065
1027
  if (this.scopes) {
1066
- for (i = 0, l = this.scopes.length; i < l; i++) this.scopes[i].stop(true);
1028
+ const scopes = this.scopes.slice();
1029
+ for (i = 0, l = scopes.length; i < l; i++) scopes[i].stop(true);
1067
1030
  this.scopes.length = 0;
1068
1031
  }
1069
1032
  if (!this.detached && this.parent && !fromParent) {
@@ -1102,8 +1065,10 @@ var init_reactivity_esm_bundler = __esmMin((() => {
1102
1065
  */
1103
1066
  this.cleanup = void 0;
1104
1067
  this.scheduler = void 0;
1105
- if (activeEffectScope) if (activeEffectScope.active) activeEffectScope.effects.push(this);
1106
- else this.flags &= -2;
1068
+ if (activeEffectScope) {
1069
+ if (activeEffectScope.active) activeEffectScope.effects.push(this);
1070
+ else this.flags &= -2;
1071
+ }
1107
1072
  }
1108
1073
  pause() {
1109
1074
  this.flags |= 64;
@@ -1385,15 +1350,17 @@ var init_reactivity_esm_bundler = __esmMin((() => {
1385
1350
  oldValue = /* @__PURE__ */ toRaw(oldValue);
1386
1351
  value = /* @__PURE__ */ toRaw(value);
1387
1352
  }
1388
- if (!isArrayWithIntegerKey && /* @__PURE__ */ isRef(oldValue) && !/* @__PURE__ */ isRef(value)) if (isOldValueReadonly) return true;
1389
- else {
1390
- oldValue.value = value;
1391
- return true;
1353
+ if (!isArrayWithIntegerKey && /* @__PURE__ */ isRef(oldValue) && !/* @__PURE__ */ isRef(value)) {
1354
+ if (isOldValueReadonly) return true;
1355
+ else {
1356
+ oldValue.value = value;
1357
+ return true;
1358
+ }
1392
1359
  }
1393
1360
  }
1394
1361
  const hadKey = isArrayWithIntegerKey ? Number(key) < target.length : hasOwn$1(target, key);
1395
1362
  const result = Reflect.set(target, key, value, /* @__PURE__ */ isRef(target) ? target : receiver);
1396
- if (target === /* @__PURE__ */ toRaw(receiver)) {
1363
+ if (target === /* @__PURE__ */ toRaw(receiver) && result) {
1397
1364
  if (!hadKey) trigger(target, "add", key, value);
1398
1365
  else if (hasChanged(value, oldValue)) trigger(target, "set", key, value, oldValue);
1399
1366
  }
@@ -1430,13 +1397,11 @@ var init_reactivity_esm_bundler = __esmMin((() => {
1430
1397
  mutableHandlers = /* @__PURE__ */ new MutableReactiveHandler();
1431
1398
  readonlyHandlers = /* @__PURE__ */ new ReadonlyReactiveHandler();
1432
1399
  shallowReactiveHandlers = /* @__PURE__ */ new MutableReactiveHandler(true);
1433
- shallowReadonlyHandlers = /* @__PURE__ */ new ReadonlyReactiveHandler(true);
1434
1400
  toShallow = (value) => value;
1435
1401
  getProto = (v) => Reflect.getPrototypeOf(v);
1436
1402
  mutableCollectionHandlers = { get: /* @__PURE__ */ createInstrumentationGetter(false, false) };
1437
1403
  shallowCollectionHandlers = { get: /* @__PURE__ */ createInstrumentationGetter(false, true) };
1438
1404
  readonlyCollectionHandlers = { get: /* @__PURE__ */ createInstrumentationGetter(true, false) };
1439
- shallowReadonlyCollectionHandlers = { get: /* @__PURE__ */ createInstrumentationGetter(true, true) };
1440
1405
  reactiveMap = /* @__PURE__ */ new WeakMap();
1441
1406
  shallowReactiveMap = /* @__PURE__ */ new WeakMap();
1442
1407
  readonlyMap = /* @__PURE__ */ new WeakMap();
@@ -1598,35 +1563,17 @@ var init_reactivity_esm_bundler = __esmMin((() => {
1598
1563
  if (this.setter) this.setter(newValue);
1599
1564
  }
1600
1565
  };
1601
- TrackOpTypes = {
1602
- "GET": "get",
1603
- "HAS": "has",
1604
- "ITERATE": "iterate"
1605
- };
1606
- TriggerOpTypes = {
1607
- "SET": "set",
1608
- "ADD": "add",
1609
- "DELETE": "delete",
1610
- "CLEAR": "clear"
1611
- };
1612
1566
  INITIAL_WATCHER_VALUE = {};
1613
1567
  cleanupMap = /* @__PURE__ */ new WeakMap();
1614
1568
  activeWatcher = void 0;
1615
1569
  }));
1616
1570
  //#endregion
1617
- //#region node_modules/.pnpm/@vue+runtime-core@3.5.34/node_modules/@vue/runtime-core/dist/runtime-core.esm-bundler.js
1571
+ //#region node_modules/.pnpm/@vue+runtime-core@3.5.41/node_modules/@vue/runtime-core/dist/runtime-core.esm-bundler.js
1618
1572
  /**
1619
- * @vue/runtime-core v3.5.34
1573
+ * @vue/runtime-core v3.5.41
1620
1574
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
1621
1575
  * @license MIT
1622
1576
  **/
1623
- function pushWarningContext(vnode) {
1624
- stack.push(vnode);
1625
- }
1626
- function popWarningContext() {
1627
- stack.pop();
1628
- }
1629
- function assertNumber(val, type) {}
1630
1577
  function callWithErrorHandling(fn, instance, type, args) {
1631
1578
  try {
1632
1579
  return args ? fn(...args) : fn();
@@ -1715,7 +1662,7 @@ function queuePostFlushCb(cb) {
1715
1662
  pendingPostFlushCbs.push(cb);
1716
1663
  cb.flags |= 1;
1717
1664
  }
1718
- } else pendingPostFlushCbs.push(...cb);
1665
+ } else for (let i = 0; i < cb.length; i++) pendingPostFlushCbs.push(cb[i]);
1719
1666
  queueFlush();
1720
1667
  }
1721
1668
  function flushPreFlushCbs(instance, seen, i = flushIndex + 1) {
@@ -1736,7 +1683,7 @@ function flushPostFlushCbs(seen) {
1736
1683
  const deduped = [...new Set(pendingPostFlushCbs)].sort((a, b) => getId(a) - getId(b));
1737
1684
  pendingPostFlushCbs.length = 0;
1738
1685
  if (activePostFlushCbs) {
1739
- activePostFlushCbs.push(...deduped);
1686
+ for (let i = 0; i < deduped.length; i++) activePostFlushCbs.push(deduped[i]);
1740
1687
  return;
1741
1688
  }
1742
1689
  activePostFlushCbs = deduped;
@@ -1772,47 +1719,24 @@ function flushJobs(seen) {
1772
1719
  if (queue.length || pendingPostFlushCbs.length) flushJobs(seen);
1773
1720
  }
1774
1721
  }
1775
- function setDevtoolsHook$1(hook, target) {
1776
- var _a, _b;
1777
- devtools$1 = hook;
1778
- if (devtools$1) {
1779
- devtools$1.enabled = true;
1780
- buffer.forEach(({ event, args }) => devtools$1.emit(event, ...args));
1781
- buffer = [];
1782
- } else if (typeof window !== "undefined" && window.HTMLElement && !((_b = (_a = window.navigator) == null ? void 0 : _a.userAgent) == null ? void 0 : _b.includes("jsdom"))) {
1783
- (target.__VUE_DEVTOOLS_HOOK_REPLAY__ = target.__VUE_DEVTOOLS_HOOK_REPLAY__ || []).push((newHook) => {
1784
- setDevtoolsHook$1(newHook, target);
1785
- });
1786
- setTimeout(() => {
1787
- if (!devtools$1) {
1788
- target.__VUE_DEVTOOLS_HOOK_REPLAY__ = null;
1789
- buffer = [];
1790
- }
1791
- }, 3e3);
1792
- } else buffer = [];
1793
- }
1794
1722
  function setCurrentRenderingInstance(instance) {
1795
1723
  const prev = currentRenderingInstance;
1796
1724
  currentRenderingInstance = instance;
1797
1725
  currentScopeId = instance && instance.type.__scopeId || null;
1798
1726
  return prev;
1799
1727
  }
1800
- function pushScopeId(id) {
1801
- currentScopeId = id;
1802
- }
1803
- function popScopeId() {
1804
- currentScopeId = null;
1805
- }
1806
1728
  function withCtx(fn, ctx = currentRenderingInstance, isNonScopedSlot) {
1807
1729
  if (!ctx) return fn;
1808
1730
  if (fn._n) return fn;
1809
1731
  const renderFnWithContext = (...args) => {
1810
1732
  if (renderFnWithContext._d) setBlockTracking(-1);
1811
1733
  const prevInstance = setCurrentRenderingInstance(ctx);
1734
+ const prevStackSize = blockStack.length;
1812
1735
  let res;
1813
1736
  try {
1814
1737
  res = fn(...args);
1815
1738
  } finally {
1739
+ for (let i = blockStack.length; i > prevStackSize; i--) closeBlock();
1816
1740
  setCurrentRenderingInstance(prevInstance);
1817
1741
  if (renderFnWithContext._d) setBlockTracking(1);
1818
1742
  }
@@ -1885,15 +1809,6 @@ function inject(key, defaultValue, treatDefaultAsFactory = false) {
1885
1809
  function hasInjectionContext() {
1886
1810
  return !!(getCurrentInstance$1() || currentApp);
1887
1811
  }
1888
- function watchEffect(effect, options) {
1889
- return doWatch(effect, null, options);
1890
- }
1891
- function watchPostEffect(effect, options) {
1892
- return doWatch(effect, null, { flush: "post" });
1893
- }
1894
- function watchSyncEffect(effect, options) {
1895
- return doWatch(effect, null, { flush: "sync" });
1896
- }
1897
1812
  function watch(source, cb, options) {
1898
1813
  return doWatch(source, cb, options);
1899
1814
  }
@@ -1966,101 +1881,6 @@ function createPathGetter(ctx, path) {
1966
1881
  return cur;
1967
1882
  };
1968
1883
  }
1969
- function moveTeleport(vnode, container, parentAnchor, { o: { insert }, m: move }, moveType = 2) {
1970
- if (moveType === 0) insert(vnode.targetAnchor, container, parentAnchor);
1971
- const { el, anchor, shapeFlag, children, props } = vnode;
1972
- const isReorder = moveType === 2;
1973
- if (isReorder) insert(el, container, parentAnchor);
1974
- if (!pendingMounts.has(vnode) && (!isReorder || isTeleportDisabled(props))) {
1975
- if (shapeFlag & 16) for (let i = 0; i < children.length; i++) move(children[i], container, parentAnchor, 2);
1976
- }
1977
- if (isReorder) insert(anchor, container, parentAnchor);
1978
- }
1979
- function hydrateTeleport(node, vnode, parentComponent, parentSuspense, slotScopeIds, optimized, { o: { nextSibling, parentNode, querySelector, insert, createText } }, hydrateChildren) {
1980
- function hydrateAnchor(target2, targetNode) {
1981
- let targetAnchor = targetNode;
1982
- while (targetAnchor) {
1983
- if (targetAnchor && targetAnchor.nodeType === 8) {
1984
- if (targetAnchor.data === "teleport start anchor") vnode.targetStart = targetAnchor;
1985
- else if (targetAnchor.data === "teleport anchor") {
1986
- vnode.targetAnchor = targetAnchor;
1987
- target2._lpa = vnode.targetAnchor && nextSibling(vnode.targetAnchor);
1988
- break;
1989
- }
1990
- }
1991
- targetAnchor = nextSibling(targetAnchor);
1992
- }
1993
- }
1994
- function hydrateDisabledTeleport(node2, vnode2) {
1995
- vnode2.anchor = hydrateChildren(nextSibling(node2), vnode2, parentNode(node2), parentComponent, parentSuspense, slotScopeIds, optimized);
1996
- }
1997
- const target = vnode.target = resolveTarget(vnode.props, querySelector);
1998
- const disabled = isTeleportDisabled(vnode.props);
1999
- if (target) {
2000
- const targetNode = target._lpa || target.firstChild;
2001
- if (vnode.shapeFlag & 16) if (disabled) {
2002
- hydrateDisabledTeleport(node, vnode);
2003
- hydrateAnchor(target, targetNode);
2004
- if (!vnode.targetAnchor) prepareAnchor(target, vnode, createText, insert, parentNode(node) === target ? node : null);
2005
- } else {
2006
- vnode.anchor = nextSibling(node);
2007
- hydrateAnchor(target, targetNode);
2008
- if (!vnode.targetAnchor) prepareAnchor(target, vnode, createText, insert);
2009
- hydrateChildren(targetNode && nextSibling(targetNode), vnode, target, parentComponent, parentSuspense, slotScopeIds, optimized);
2010
- }
2011
- updateCssVars(vnode, disabled);
2012
- } else if (disabled) {
2013
- if (vnode.shapeFlag & 16) {
2014
- hydrateDisabledTeleport(node, vnode);
2015
- vnode.targetStart = node;
2016
- vnode.targetAnchor = nextSibling(node);
2017
- }
2018
- }
2019
- return vnode.anchor && nextSibling(vnode.anchor);
2020
- }
2021
- function updateCssVars(vnode, isDisabled) {
2022
- const ctx = vnode.ctx;
2023
- if (ctx && ctx.ut) {
2024
- let node, anchor;
2025
- if (isDisabled) {
2026
- node = vnode.el;
2027
- anchor = vnode.anchor;
2028
- } else {
2029
- node = vnode.targetStart;
2030
- anchor = vnode.targetAnchor;
2031
- }
2032
- while (node && node !== anchor) {
2033
- if (node.nodeType === 1) node.setAttribute("data-v-owner", ctx.uid);
2034
- node = node.nextSibling;
2035
- }
2036
- ctx.ut();
2037
- }
2038
- }
2039
- function prepareAnchor(target, vnode, createText, insert, anchor = null) {
2040
- const targetStart = vnode.targetStart = createText("");
2041
- const targetAnchor = vnode.targetAnchor = createText("");
2042
- targetStart[TeleportEndKey] = targetAnchor;
2043
- if (target) {
2044
- insert(targetStart, target, anchor);
2045
- insert(targetAnchor, target, anchor);
2046
- }
2047
- return targetAnchor;
2048
- }
2049
- function useTransitionState() {
2050
- const state = {
2051
- isMounted: false,
2052
- isLeaving: false,
2053
- isUnmounting: false,
2054
- leavingVNodes: /* @__PURE__ */ new Map()
2055
- };
2056
- onMounted(() => {
2057
- state.isMounted = true;
2058
- });
2059
- onBeforeUnmount(() => {
2060
- state.isUnmounting = true;
2061
- });
2062
- return state;
2063
- }
2064
1884
  function findNonCommentChild(children) {
2065
1885
  let child = children[0];
2066
1886
  if (children.length > 1) {
@@ -2071,99 +1891,6 @@ function findNonCommentChild(children) {
2071
1891
  }
2072
1892
  return child;
2073
1893
  }
2074
- function getLeavingNodesForType(state, vnode) {
2075
- const { leavingVNodes } = state;
2076
- let leavingVNodesCache = leavingVNodes.get(vnode.type);
2077
- if (!leavingVNodesCache) {
2078
- leavingVNodesCache = /* @__PURE__ */ Object.create(null);
2079
- leavingVNodes.set(vnode.type, leavingVNodesCache);
2080
- }
2081
- return leavingVNodesCache;
2082
- }
2083
- function resolveTransitionHooks(vnode, props, state, instance, postClone) {
2084
- const { appear, mode, persisted = false, onBeforeEnter, onEnter, onAfterEnter, onEnterCancelled, onBeforeLeave, onLeave, onAfterLeave, onLeaveCancelled, onBeforeAppear, onAppear, onAfterAppear, onAppearCancelled } = props;
2085
- const key = String(vnode.key);
2086
- const leavingVNodesCache = getLeavingNodesForType(state, vnode);
2087
- const callHook = (hook, args) => {
2088
- hook && callWithAsyncErrorHandling(hook, instance, 9, args);
2089
- };
2090
- const callAsyncHook = (hook, args) => {
2091
- const done = args[1];
2092
- callHook(hook, args);
2093
- if (isArray$2(hook)) {
2094
- if (hook.every((hook2) => hook2.length <= 1)) done();
2095
- } else if (hook.length <= 1) done();
2096
- };
2097
- const hooks = {
2098
- mode,
2099
- persisted,
2100
- beforeEnter(el) {
2101
- let hook = onBeforeEnter;
2102
- if (!state.isMounted) if (appear) hook = onBeforeAppear || onBeforeEnter;
2103
- else return;
2104
- if (el[leaveCbKey]) el[leaveCbKey](true);
2105
- const leavingVNode = leavingVNodesCache[key];
2106
- if (leavingVNode && isSameVNodeType(vnode, leavingVNode) && leavingVNode.el[leaveCbKey]) leavingVNode.el[leaveCbKey]();
2107
- callHook(hook, [el]);
2108
- },
2109
- enter(el) {
2110
- if (leavingVNodesCache[key] === vnode) return;
2111
- let hook = onEnter;
2112
- let afterHook = onAfterEnter;
2113
- let cancelHook = onEnterCancelled;
2114
- if (!state.isMounted) if (appear) {
2115
- hook = onAppear || onEnter;
2116
- afterHook = onAfterAppear || onAfterEnter;
2117
- cancelHook = onAppearCancelled || onEnterCancelled;
2118
- } else return;
2119
- let called = false;
2120
- el[enterCbKey$1] = (cancelled) => {
2121
- if (called) return;
2122
- called = true;
2123
- if (cancelled) callHook(cancelHook, [el]);
2124
- else callHook(afterHook, [el]);
2125
- if (hooks.delayedLeave) hooks.delayedLeave();
2126
- el[enterCbKey$1] = void 0;
2127
- };
2128
- const done = el[enterCbKey$1].bind(null, false);
2129
- if (hook) callAsyncHook(hook, [el, done]);
2130
- else done();
2131
- },
2132
- leave(el, remove) {
2133
- const key2 = String(vnode.key);
2134
- if (el[enterCbKey$1]) el[enterCbKey$1](true);
2135
- if (state.isUnmounting) return remove();
2136
- callHook(onBeforeLeave, [el]);
2137
- let called = false;
2138
- el[leaveCbKey] = (cancelled) => {
2139
- if (called) return;
2140
- called = true;
2141
- remove();
2142
- if (cancelled) callHook(onLeaveCancelled, [el]);
2143
- else callHook(onAfterLeave, [el]);
2144
- el[leaveCbKey] = void 0;
2145
- if (leavingVNodesCache[key2] === vnode) delete leavingVNodesCache[key2];
2146
- };
2147
- const done = el[leaveCbKey].bind(null, false);
2148
- leavingVNodesCache[key2] = vnode;
2149
- if (onLeave) callAsyncHook(onLeave, [el, done]);
2150
- else done();
2151
- },
2152
- clone(vnode2) {
2153
- const hooks2 = resolveTransitionHooks(vnode2, props, state, instance, postClone);
2154
- if (postClone) postClone(hooks2);
2155
- return hooks2;
2156
- }
2157
- };
2158
- return hooks;
2159
- }
2160
- function emptyPlaceholder(vnode) {
2161
- if (isKeepAlive(vnode)) {
2162
- vnode = cloneVNode(vnode);
2163
- vnode.children = null;
2164
- return vnode;
2165
- }
2166
- }
2167
1894
  function getInnerChild$1(vnode) {
2168
1895
  if (!isKeepAlive(vnode)) {
2169
1896
  if (isTeleport(vnode.type) && vnode.children) return findNonCommentChild(vnode.children);
@@ -2179,35 +1906,17 @@ function getInnerChild$1(vnode) {
2179
1906
  function setTransitionHooks(vnode, hooks) {
2180
1907
  if (vnode.shapeFlag & 6 && vnode.component) {
2181
1908
  vnode.transition = hooks;
2182
- setTransitionHooks(vnode.component.subTree, hooks);
1909
+ const subTree = vnode.component.subTree;
1910
+ setTransitionHooks(isTeleport(subTree.type) ? getInnerChild$1(subTree) || subTree : subTree, hooks);
2183
1911
  } else if (vnode.shapeFlag & 128) {
2184
1912
  vnode.ssContent.transition = hooks.clone(vnode.ssContent);
2185
1913
  vnode.ssFallback.transition = hooks.clone(vnode.ssFallback);
2186
1914
  } else vnode.transition = hooks;
2187
1915
  }
2188
- function getTransitionRawChildren(children, keepComment = false, parentKey) {
2189
- let ret = [];
2190
- let keyedFragmentCount = 0;
2191
- for (let i = 0; i < children.length; i++) {
2192
- let child = children[i];
2193
- const key = parentKey == null ? child.key : String(parentKey) + String(child.key != null ? child.key : i);
2194
- if (child.type === Fragment) {
2195
- if (child.patchFlag & 128) keyedFragmentCount++;
2196
- ret = ret.concat(getTransitionRawChildren(child.children, keepComment, key));
2197
- } else if (keepComment || child.type !== Comment) ret.push(key != null ? cloneVNode(child, { key }) : child);
2198
- }
2199
- if (keyedFragmentCount > 1) for (let i = 0; i < ret.length; i++) ret[i].patchFlag = -2;
2200
- return ret;
2201
- }
2202
- /* @__NO_SIDE_EFFECTS__ */
1916
+ // @__NO_SIDE_EFFECTS__
2203
1917
  function defineComponent(options, extraOptions) {
2204
1918
  return isFunction$1(options) ? /* @__PURE__ */ (() => extend({ name: options.name }, extraOptions, { setup: options }))() : options;
2205
1919
  }
2206
- function useId() {
2207
- const i = getCurrentInstance$1();
2208
- if (i) return (i.appContext.config.idPrefix || "v") + "-" + i.ids[0] + i.ids[1]++;
2209
- return "";
2210
- }
2211
1920
  function markAsyncBoundary(instance) {
2212
1921
  instance.ids = [
2213
1922
  instance.ids[0] + instance.ids[2]++ + "-",
@@ -2215,19 +1924,6 @@ function markAsyncBoundary(instance) {
2215
1924
  0
2216
1925
  ];
2217
1926
  }
2218
- function useTemplateRef(key) {
2219
- const i = getCurrentInstance$1();
2220
- const r = /* @__PURE__ */ shallowRef(null);
2221
- if (i) {
2222
- const refs = i.refs === EMPTY_OBJ ? i.refs = {} : i.refs;
2223
- Object.defineProperty(refs, key, {
2224
- enumerable: true,
2225
- get: () => r.value,
2226
- set: (val) => r.value = val
2227
- });
2228
- }
2229
- return r;
2230
- }
2231
1927
  function isTemplateRefKey(refs, key) {
2232
1928
  let desc;
2233
1929
  return !!((desc = Object.getOwnPropertyDescriptor(refs, key)) && !desc.configurable);
@@ -2276,15 +1972,16 @@ function setRef(rawRef, oldRawRef, parentSuspense, vnode, isUnmount = false) {
2276
1972
  if (rawRef.f) {
2277
1973
  const existing = _isString ? canSetSetupRef(ref) ? setupState[ref] : refs[ref] : canSetRef(ref) || !rawRef.k ? ref.value : refs[rawRef.k];
2278
1974
  if (isUnmount) isArray$2(existing) && remove(existing, refValue);
2279
- else if (!isArray$2(existing)) if (_isString) {
2280
- refs[ref] = [refValue];
2281
- if (canSetSetupRef(ref)) setupState[ref] = refs[ref];
2282
- } else {
2283
- const newVal = [refValue];
2284
- if (canSetRef(ref, rawRef.k)) ref.value = newVal;
2285
- if (rawRef.k) refs[rawRef.k] = newVal;
2286
- }
2287
- else if (!existing.includes(refValue)) existing.push(refValue);
1975
+ else if (!isArray$2(existing)) {
1976
+ if (_isString) {
1977
+ refs[ref] = [refValue];
1978
+ if (canSetSetupRef(ref)) setupState[ref] = refs[ref];
1979
+ } else {
1980
+ const newVal = [refValue];
1981
+ if (canSetRef(ref, rawRef.k)) ref.value = newVal;
1982
+ if (rawRef.k) refs[rawRef.k] = newVal;
1983
+ }
1984
+ } else if (!existing.includes(refValue)) existing.push(refValue);
2288
1985
  } else if (_isString) {
2289
1986
  refs[ref] = value;
2290
1987
  if (canSetSetupRef(ref)) setupState[ref] = value;
@@ -2315,372 +2012,6 @@ function invalidatePendingSetRef(rawRef) {
2315
2012
  pendingSetRefMap.delete(rawRef);
2316
2013
  }
2317
2014
  }
2318
- function createHydrationFunctions(rendererInternals) {
2319
- const { mt: mountComponent, p: patch, o: { patchProp, createText, nextSibling, parentNode, remove, insert, createComment } } = rendererInternals;
2320
- const hydrate = (vnode, container) => {
2321
- if (!container.hasChildNodes()) {
2322
- patch(null, vnode, container);
2323
- flushPostFlushCbs();
2324
- container._vnode = vnode;
2325
- return;
2326
- }
2327
- hydrateNode(container.firstChild, vnode, null, null, null);
2328
- flushPostFlushCbs();
2329
- container._vnode = vnode;
2330
- };
2331
- const hydrateNode = (node, vnode, parentComponent, parentSuspense, slotScopeIds, optimized = false) => {
2332
- optimized = optimized || !!vnode.dynamicChildren;
2333
- const isFragmentStart = isComment(node) && node.data === "[";
2334
- const onMismatch = () => handleMismatch(node, vnode, parentComponent, parentSuspense, slotScopeIds, isFragmentStart);
2335
- const { type, ref, shapeFlag, patchFlag } = vnode;
2336
- let domType = node.nodeType;
2337
- vnode.el = node;
2338
- if (patchFlag === -2) {
2339
- optimized = false;
2340
- vnode.dynamicChildren = null;
2341
- }
2342
- let nextNode = null;
2343
- switch (type) {
2344
- case Text:
2345
- if (domType !== 3) if (vnode.children === "") {
2346
- insert(vnode.el = createText(""), parentNode(node), node);
2347
- nextNode = node;
2348
- } else nextNode = onMismatch();
2349
- else {
2350
- if (node.data !== vnode.children) {
2351
- logMismatchError();
2352
- node.data = vnode.children;
2353
- }
2354
- nextNode = nextSibling(node);
2355
- }
2356
- break;
2357
- case Comment:
2358
- if (isTemplateNode(node)) {
2359
- nextNode = nextSibling(node);
2360
- replaceNode(vnode.el = node.content.firstChild, node, parentComponent);
2361
- } else if (domType !== 8 || isFragmentStart) nextNode = onMismatch();
2362
- else nextNode = nextSibling(node);
2363
- break;
2364
- case Static:
2365
- if (isFragmentStart) {
2366
- node = nextSibling(node);
2367
- domType = node.nodeType;
2368
- }
2369
- if (domType === 1 || domType === 3) {
2370
- nextNode = node;
2371
- const needToAdoptContent = !vnode.children.length;
2372
- for (let i = 0; i < vnode.staticCount; i++) {
2373
- if (needToAdoptContent) vnode.children += nextNode.nodeType === 1 ? nextNode.outerHTML : nextNode.data;
2374
- if (i === vnode.staticCount - 1) vnode.anchor = nextNode;
2375
- nextNode = nextSibling(nextNode);
2376
- }
2377
- return isFragmentStart ? nextSibling(nextNode) : nextNode;
2378
- } else onMismatch();
2379
- break;
2380
- case Fragment:
2381
- if (!isFragmentStart) nextNode = onMismatch();
2382
- else nextNode = hydrateFragment(node, vnode, parentComponent, parentSuspense, slotScopeIds, optimized);
2383
- break;
2384
- default: if (shapeFlag & 1) if ((domType !== 1 || vnode.type.toLowerCase() !== node.tagName.toLowerCase()) && !isTemplateNode(node)) nextNode = onMismatch();
2385
- else nextNode = hydrateElement(node, vnode, parentComponent, parentSuspense, slotScopeIds, optimized);
2386
- else if (shapeFlag & 6) {
2387
- vnode.slotScopeIds = slotScopeIds;
2388
- const container = parentNode(node);
2389
- if (isFragmentStart) nextNode = locateClosingAnchor(node);
2390
- else if (isComment(node) && node.data === "teleport start") nextNode = locateClosingAnchor(node, node.data, "teleport end");
2391
- else nextNode = nextSibling(node);
2392
- mountComponent(vnode, container, null, parentComponent, parentSuspense, getContainerType(container), optimized);
2393
- if (isAsyncWrapper(vnode) && !vnode.type.__asyncResolved) {
2394
- let subTree;
2395
- if (isFragmentStart) {
2396
- subTree = createVNode(Fragment);
2397
- subTree.anchor = nextNode ? nextNode.previousSibling : container.lastChild;
2398
- } else subTree = node.nodeType === 3 ? createTextVNode("") : createVNode("div");
2399
- subTree.el = node;
2400
- vnode.component.subTree = subTree;
2401
- }
2402
- } else if (shapeFlag & 64) if (domType !== 8) nextNode = onMismatch();
2403
- else nextNode = vnode.type.hydrate(node, vnode, parentComponent, parentSuspense, slotScopeIds, optimized, rendererInternals, hydrateChildren);
2404
- else if (shapeFlag & 128) nextNode = vnode.type.hydrate(node, vnode, parentComponent, parentSuspense, getContainerType(parentNode(node)), slotScopeIds, optimized, rendererInternals, hydrateNode);
2405
- }
2406
- if (ref != null) setRef(ref, null, parentSuspense, vnode);
2407
- return nextNode;
2408
- };
2409
- const hydrateElement = (el, vnode, parentComponent, parentSuspense, slotScopeIds, optimized) => {
2410
- optimized = optimized || !!vnode.dynamicChildren;
2411
- const { type, props, patchFlag, shapeFlag, dirs, transition } = vnode;
2412
- const forcePatch = type === "input" || type === "option";
2413
- if (forcePatch || patchFlag !== -1) {
2414
- if (dirs) invokeDirectiveHook(vnode, null, parentComponent, "created");
2415
- let needCallTransitionHooks = false;
2416
- if (isTemplateNode(el)) {
2417
- needCallTransitionHooks = needTransition(null, transition) && parentComponent && parentComponent.vnode.props && parentComponent.vnode.props.appear;
2418
- const content = el.content.firstChild;
2419
- if (needCallTransitionHooks) {
2420
- const cls = content.getAttribute("class");
2421
- if (cls) content.$cls = cls;
2422
- transition.beforeEnter(content);
2423
- }
2424
- replaceNode(content, el, parentComponent);
2425
- vnode.el = el = content;
2426
- }
2427
- if (shapeFlag & 16 && !(props && (props.innerHTML || props.textContent))) {
2428
- let next = hydrateChildren(el.firstChild, vnode, el, parentComponent, parentSuspense, slotScopeIds, optimized);
2429
- while (next) {
2430
- if (!isMismatchAllowed(el, 1)) logMismatchError();
2431
- const cur = next;
2432
- next = next.nextSibling;
2433
- remove(cur);
2434
- }
2435
- } else if (shapeFlag & 8) {
2436
- let clientText = vnode.children;
2437
- if (clientText[0] === "\n" && (el.tagName === "PRE" || el.tagName === "TEXTAREA")) clientText = clientText.slice(1);
2438
- const { textContent } = el;
2439
- if (textContent !== clientText && textContent !== clientText.replace(/\r\n|\r/g, "\n")) {
2440
- if (!isMismatchAllowed(el, 0)) logMismatchError();
2441
- el.textContent = vnode.children;
2442
- }
2443
- }
2444
- if (props) {
2445
- if (forcePatch || !optimized || patchFlag & 48) {
2446
- const isCustomElement = el.tagName.includes("-");
2447
- for (const key in props) if (forcePatch && (key.endsWith("value") || key === "indeterminate") || isOn(key) && !isReservedProp(key) || key[0] === "." || isCustomElement && !isReservedProp(key)) patchProp(el, key, null, props[key], void 0, parentComponent);
2448
- } else if (props.onClick) patchProp(el, "onClick", null, props.onClick, void 0, parentComponent);
2449
- else if (patchFlag & 4 && /* @__PURE__ */ isReactive(props.style)) for (const key in props.style) props.style[key];
2450
- }
2451
- let vnodeHooks;
2452
- if (vnodeHooks = props && props.onVnodeBeforeMount) invokeVNodeHook(vnodeHooks, parentComponent, vnode);
2453
- if (dirs) invokeDirectiveHook(vnode, null, parentComponent, "beforeMount");
2454
- if ((vnodeHooks = props && props.onVnodeMounted) || dirs || needCallTransitionHooks) queueEffectWithSuspense(() => {
2455
- vnodeHooks && invokeVNodeHook(vnodeHooks, parentComponent, vnode);
2456
- needCallTransitionHooks && transition.enter(el);
2457
- dirs && invokeDirectiveHook(vnode, null, parentComponent, "mounted");
2458
- }, parentSuspense);
2459
- }
2460
- return el.nextSibling;
2461
- };
2462
- const hydrateChildren = (node, parentVNode, container, parentComponent, parentSuspense, slotScopeIds, optimized) => {
2463
- optimized = optimized || !!parentVNode.dynamicChildren;
2464
- const children = parentVNode.children;
2465
- const l = children.length;
2466
- for (let i = 0; i < l; i++) {
2467
- const vnode = optimized ? children[i] : children[i] = normalizeVNode(children[i]);
2468
- const isText = vnode.type === Text;
2469
- if (node) {
2470
- if (isText && !optimized) {
2471
- if (i + 1 < l && normalizeVNode(children[i + 1]).type === Text) {
2472
- insert(createText(node.data.slice(vnode.children.length)), container, nextSibling(node));
2473
- node.data = vnode.children;
2474
- }
2475
- }
2476
- node = hydrateNode(node, vnode, parentComponent, parentSuspense, slotScopeIds, optimized);
2477
- } else if (isText && !vnode.children) insert(vnode.el = createText(""), container);
2478
- else {
2479
- if (!isMismatchAllowed(container, 1)) logMismatchError();
2480
- patch(null, vnode, container, null, parentComponent, parentSuspense, getContainerType(container), slotScopeIds);
2481
- }
2482
- }
2483
- return node;
2484
- };
2485
- const hydrateFragment = (node, vnode, parentComponent, parentSuspense, slotScopeIds, optimized) => {
2486
- const { slotScopeIds: fragmentSlotScopeIds } = vnode;
2487
- if (fragmentSlotScopeIds) slotScopeIds = slotScopeIds ? slotScopeIds.concat(fragmentSlotScopeIds) : fragmentSlotScopeIds;
2488
- const container = parentNode(node);
2489
- const next = hydrateChildren(nextSibling(node), vnode, container, parentComponent, parentSuspense, slotScopeIds, optimized);
2490
- if (next && isComment(next) && next.data === "]") return nextSibling(vnode.anchor = next);
2491
- else {
2492
- logMismatchError();
2493
- insert(vnode.anchor = createComment(`]`), container, next);
2494
- return next;
2495
- }
2496
- };
2497
- const handleMismatch = (node, vnode, parentComponent, parentSuspense, slotScopeIds, isFragment) => {
2498
- if (!isMismatchAllowed(node.parentElement, 1)) logMismatchError();
2499
- vnode.el = null;
2500
- if (isFragment) {
2501
- const end = locateClosingAnchor(node);
2502
- while (true) {
2503
- const next2 = nextSibling(node);
2504
- if (next2 && next2 !== end) remove(next2);
2505
- else break;
2506
- }
2507
- }
2508
- const next = nextSibling(node);
2509
- const container = parentNode(node);
2510
- remove(node);
2511
- patch(null, vnode, container, next, parentComponent, parentSuspense, getContainerType(container), slotScopeIds);
2512
- if (parentComponent) {
2513
- parentComponent.vnode.el = vnode.el;
2514
- updateHOCHostEl(parentComponent, vnode.el);
2515
- }
2516
- return next;
2517
- };
2518
- const locateClosingAnchor = (node, open = "[", close = "]") => {
2519
- let match = 0;
2520
- while (node) {
2521
- node = nextSibling(node);
2522
- if (node && isComment(node)) {
2523
- if (node.data === open) match++;
2524
- if (node.data === close) if (match === 0) return nextSibling(node);
2525
- else match--;
2526
- }
2527
- }
2528
- return node;
2529
- };
2530
- const replaceNode = (newNode, oldNode, parentComponent) => {
2531
- const parentNode2 = oldNode.parentNode;
2532
- if (parentNode2) parentNode2.replaceChild(newNode, oldNode);
2533
- let parent = parentComponent;
2534
- while (parent) {
2535
- if (parent.vnode.el === oldNode) parent.vnode.el = parent.subTree.el = newNode;
2536
- parent = parent.parent;
2537
- }
2538
- };
2539
- const isTemplateNode = (node) => {
2540
- return node.nodeType === 1 && node.tagName === "TEMPLATE";
2541
- };
2542
- return [hydrate, hydrateNode];
2543
- }
2544
- function isMismatchAllowed(el, allowedType) {
2545
- if (allowedType === 0 || allowedType === 1) while (el && !el.hasAttribute(allowMismatchAttr)) el = el.parentElement;
2546
- const allowedAttr = el && el.getAttribute(allowMismatchAttr);
2547
- if (allowedAttr == null) return false;
2548
- else if (allowedAttr === "") return true;
2549
- else {
2550
- const list = allowedAttr.split(",");
2551
- if (allowedType === 0 && list.includes("children")) return true;
2552
- return list.includes(MismatchTypeString[allowedType]);
2553
- }
2554
- }
2555
- function elementIsVisibleInViewport(el) {
2556
- const { top, left, bottom, right } = el.getBoundingClientRect();
2557
- const { innerHeight, innerWidth } = window;
2558
- return (top > 0 && top < innerHeight || bottom > 0 && bottom < innerHeight) && (left > 0 && left < innerWidth || right > 0 && right < innerWidth);
2559
- }
2560
- function forEachElement(node, cb) {
2561
- if (isComment(node) && node.data === "[") {
2562
- let depth = 1;
2563
- let next = node.nextSibling;
2564
- while (next) {
2565
- if (next.nodeType === 1) {
2566
- if (cb(next) === false) break;
2567
- } else if (isComment(next)) {
2568
- if (next.data === "]") {
2569
- if (--depth === 0) break;
2570
- } else if (next.data === "[") depth++;
2571
- }
2572
- next = next.nextSibling;
2573
- }
2574
- } else cb(node);
2575
- }
2576
- /* @__NO_SIDE_EFFECTS__ */
2577
- function defineAsyncComponent(source) {
2578
- if (isFunction$1(source)) source = { loader: source };
2579
- const { loader, loadingComponent, errorComponent, delay = 200, hydrate: hydrateStrategy, timeout, suspensible = true, onError: userOnError } = source;
2580
- let pendingRequest = null;
2581
- let resolvedComp;
2582
- let retries = 0;
2583
- const retry = () => {
2584
- retries++;
2585
- pendingRequest = null;
2586
- return load();
2587
- };
2588
- const load = () => {
2589
- let thisRequest;
2590
- return pendingRequest || (thisRequest = pendingRequest = loader().catch((err) => {
2591
- err = err instanceof Error ? err : new Error(String(err));
2592
- if (userOnError) return new Promise((resolve, reject) => {
2593
- const userRetry = () => resolve(retry());
2594
- const userFail = () => reject(err);
2595
- userOnError(err, userRetry, userFail, retries + 1);
2596
- });
2597
- else throw err;
2598
- }).then((comp) => {
2599
- if (thisRequest !== pendingRequest && pendingRequest) return pendingRequest;
2600
- if (comp && (comp.__esModule || comp[Symbol.toStringTag] === "Module")) comp = comp.default;
2601
- resolvedComp = comp;
2602
- return comp;
2603
- }));
2604
- };
2605
- return /* @__PURE__ */ defineComponent({
2606
- name: "AsyncComponentWrapper",
2607
- __asyncLoader: load,
2608
- __asyncHydrate(el, instance, hydrate) {
2609
- let patched = false;
2610
- (instance.bu || (instance.bu = [])).push(() => patched = true);
2611
- const performHydrate = () => {
2612
- if (patched) return;
2613
- hydrate();
2614
- };
2615
- const doHydrate = hydrateStrategy ? () => {
2616
- const teardown = hydrateStrategy(performHydrate, (cb) => forEachElement(el, cb));
2617
- if (teardown) (instance.bum || (instance.bum = [])).push(teardown);
2618
- } : performHydrate;
2619
- if (resolvedComp) doHydrate();
2620
- else load().then(() => !instance.isUnmounted && doHydrate());
2621
- },
2622
- get __asyncResolved() {
2623
- return resolvedComp;
2624
- },
2625
- setup() {
2626
- const instance = currentInstance;
2627
- markAsyncBoundary(instance);
2628
- if (resolvedComp) return () => createInnerComp(resolvedComp, instance);
2629
- const onError = (err) => {
2630
- pendingRequest = null;
2631
- handleError(err, instance, 13, !errorComponent);
2632
- };
2633
- if (suspensible && instance.suspense || isInSSRComponentSetup) return load().then((comp) => {
2634
- return () => createInnerComp(comp, instance);
2635
- }).catch((err) => {
2636
- onError(err);
2637
- return () => errorComponent ? createVNode(errorComponent, { error: err }) : null;
2638
- });
2639
- const loaded = /* @__PURE__ */ ref(false);
2640
- const error = /* @__PURE__ */ ref();
2641
- const delayed = /* @__PURE__ */ ref(!!delay);
2642
- if (delay) setTimeout(() => {
2643
- delayed.value = false;
2644
- }, delay);
2645
- if (timeout != null) setTimeout(() => {
2646
- if (!loaded.value && !error.value) {
2647
- const err = /* @__PURE__ */ new Error(`Async component timed out after ${timeout}ms.`);
2648
- onError(err);
2649
- error.value = err;
2650
- }
2651
- }, timeout);
2652
- load().then(() => {
2653
- loaded.value = true;
2654
- if (instance.parent && isKeepAlive(instance.parent.vnode)) instance.parent.update();
2655
- }).catch((err) => {
2656
- onError(err);
2657
- error.value = err;
2658
- });
2659
- return () => {
2660
- if (loaded.value && resolvedComp) return createInnerComp(resolvedComp, instance);
2661
- else if (error.value && errorComponent) return createVNode(errorComponent, { error: error.value });
2662
- else if (loadingComponent && !delayed.value) return createInnerComp(loadingComponent, instance);
2663
- };
2664
- }
2665
- });
2666
- }
2667
- function createInnerComp(comp, parent) {
2668
- const { ref: ref2, props, children, ce } = parent.vnode;
2669
- const vnode = createVNode(comp, props, children);
2670
- vnode.ref = ref2;
2671
- vnode.ce = ce;
2672
- delete parent.vnode.ce;
2673
- return vnode;
2674
- }
2675
- function matches(pattern, name) {
2676
- if (isArray$2(pattern)) return pattern.some((p) => matches(p, name));
2677
- else if (isString$1(pattern)) return pattern.split(",").includes(name);
2678
- else if (isRegExp$1(pattern)) {
2679
- pattern.lastIndex = 0;
2680
- return pattern.test(name);
2681
- }
2682
- return false;
2683
- }
2684
2015
  function onActivated(hook, target) {
2685
2016
  registerKeepAliveHook(hook, "a", target);
2686
2017
  }
@@ -2711,13 +2042,6 @@ function injectToKeepAliveRoot(hook, type, target, keepAliveRoot) {
2711
2042
  remove(keepAliveRoot[type], injected);
2712
2043
  }, target);
2713
2044
  }
2714
- function resetShapeFlag(vnode) {
2715
- vnode.shapeFlag &= -257;
2716
- vnode.shapeFlag &= -513;
2717
- }
2718
- function getInnerChild(vnode) {
2719
- return vnode.shapeFlag & 128 ? vnode.ssContent : vnode;
2720
- }
2721
2045
  function injectHook(type, hook, target = currentInstance, prepend = false) {
2722
2046
  if (target) {
2723
2047
  const hooks = target[type] || (target[type] = []);
@@ -2740,13 +2064,6 @@ function onErrorCaptured(hook, target = currentInstance) {
2740
2064
  function resolveComponent(name, maybeSelfReference) {
2741
2065
  return resolveAsset(COMPONENTS, name, true, maybeSelfReference) || name;
2742
2066
  }
2743
- function resolveDynamicComponent(component) {
2744
- if (isString$1(component)) return resolveAsset(COMPONENTS, component, false) || component;
2745
- else return component || NULL_DYNAMIC_COMPONENT;
2746
- }
2747
- function resolveDirective(name) {
2748
- return resolveAsset(DIRECTIVES, name);
2749
- }
2750
2067
  function resolveAsset(type, name, warnMissing = true, maybeSelfReference = false) {
2751
2068
  const instance = currentRenderingInstance || currentInstance;
2752
2069
  if (instance) {
@@ -2781,45 +2098,44 @@ function renderList(source, renderItem, cache, index) {
2781
2098
  } else if (typeof source === "number") {
2782
2099
  ret = new Array(source);
2783
2100
  for (let i = 0; i < source; i++) ret[i] = renderItem(i + 1, i, void 0, cached && cached[i]);
2784
- } else if (isObject$1(source)) if (source[Symbol.iterator]) ret = Array.from(source, (item, i) => renderItem(item, i, void 0, cached && cached[i]));
2785
- else {
2786
- const keys = Object.keys(source);
2787
- ret = new Array(keys.length);
2788
- for (let i = 0, l = keys.length; i < l; i++) {
2789
- const key = keys[i];
2790
- ret[i] = renderItem(source[key], key, i, cached && cached[i]);
2101
+ } else if (isObject$1(source)) {
2102
+ if (source[Symbol.iterator]) ret = Array.from(source, (item, i) => renderItem(item, i, void 0, cached && cached[i]));
2103
+ else {
2104
+ const keys = Object.keys(source);
2105
+ ret = new Array(keys.length);
2106
+ for (let i = 0, l = keys.length; i < l; i++) {
2107
+ const key = keys[i];
2108
+ ret[i] = renderItem(source[key], key, i, cached && cached[i]);
2109
+ }
2791
2110
  }
2792
- }
2793
- else ret = [];
2111
+ } else ret = [];
2794
2112
  if (cache) cache[index] = ret;
2795
2113
  return ret;
2796
2114
  }
2797
- function createSlots(slots, dynamicSlots) {
2798
- for (let i = 0; i < dynamicSlots.length; i++) {
2799
- const slot = dynamicSlots[i];
2800
- if (isArray$2(slot)) for (let j = 0; j < slot.length; j++) slots[slot[j].name] = slot[j].fn;
2801
- else if (slot) slots[slot.name] = slot.key ? (...args) => {
2802
- const res = slot.fn(...args);
2803
- if (res) res.key = slot.key;
2804
- return res;
2805
- } : slot.fn;
2806
- }
2807
- return slots;
2808
- }
2809
- function renderSlot(slots, name, props = {}, fallback, noSlotted) {
2115
+ function renderSlot(slots, name, props, fallback, noSlotted, branchKey) {
2116
+ if (props == null) props = {};
2810
2117
  if (currentRenderingInstance.ce || currentRenderingInstance.parent && isAsyncWrapper(currentRenderingInstance.parent) && currentRenderingInstance.parent.ce) {
2811
- const hasProps = Object.keys(props).length > 0;
2812
- if (name !== "default") props.name = name;
2813
- return openBlock(), createBlock(Fragment, null, [createVNode("slot", props, fallback && fallback())], hasProps ? -2 : 64);
2118
+ const slotProps = branchKey != null && props.key == null ? extend({}, props, { key: branchKey }) : props;
2119
+ const hasProps = Object.keys(slotProps).length > 0;
2120
+ if (name !== "default") slotProps.name = name;
2121
+ return openBlock(), createBlock(Fragment, null, [createVNode("slot", slotProps, fallback && fallback())], hasProps ? -2 : 64);
2814
2122
  }
2815
2123
  let slot = slots[name];
2816
2124
  if (slot && slot._c) slot._d = false;
2125
+ const prevStackSize = blockStack.length;
2817
2126
  openBlock();
2818
- const validSlotContent = slot && ensureValidVNode(slot(props));
2819
- const slotKey = props.key || validSlotContent && validSlotContent.key;
2820
- const rendered = createBlock(Fragment, { key: (slotKey && !isSymbol(slotKey) ? slotKey : `_${name}`) + (!validSlotContent && fallback ? "_fb" : "") }, validSlotContent || (fallback ? fallback() : []), validSlotContent && slots._ === 1 ? 64 : -2);
2127
+ let rendered;
2128
+ try {
2129
+ const validSlotContent = slot && ensureValidVNode(slot(props));
2130
+ const slotKey = props.key || branchKey || validSlotContent && validSlotContent.key;
2131
+ rendered = createBlock(Fragment, { key: (slotKey && !isSymbol(slotKey) ? slotKey : `_${name}`) + (!validSlotContent && fallback ? "_fb" : "") }, validSlotContent || (fallback ? fallback() : []), validSlotContent && slots._ === 1 ? 64 : -2);
2132
+ } catch (err) {
2133
+ for (let i = blockStack.length; i > prevStackSize; i--) closeBlock();
2134
+ throw err;
2135
+ } finally {
2136
+ if (slot && slot._c) slot._d = true;
2137
+ }
2821
2138
  if (!noSlotted && rendered.scopeId) rendered.slotScopeIds = [rendered.scopeId + "-s"];
2822
- if (slot && slot._c) slot._d = true;
2823
2139
  return rendered;
2824
2140
  }
2825
2141
  function ensureValidVNode(vnodes) {
@@ -2830,98 +2146,15 @@ function ensureValidVNode(vnodes) {
2830
2146
  return true;
2831
2147
  }) ? vnodes : null;
2832
2148
  }
2833
- function toHandlers(obj, preserveCaseIfNecessary) {
2834
- const ret = {};
2835
- for (const key in obj) ret[preserveCaseIfNecessary && /[A-Z]/.test(key) ? `on:${key}` : toHandlerKey(key)] = obj[key];
2836
- return ret;
2837
- }
2838
- function defineProps() {
2839
- return null;
2840
- }
2841
- function defineEmits() {
2842
- return null;
2843
- }
2844
- function defineExpose(exposed) {}
2845
- function defineOptions(options) {}
2846
- function defineSlots() {
2847
- return null;
2848
- }
2849
- function defineModel() {}
2850
- function withDefaults(props, defaults) {
2851
- return null;
2852
- }
2853
- function useSlots() {
2854
- return getContext("useSlots").slots;
2855
- }
2856
- function useAttrs() {
2857
- return getContext("useAttrs").attrs;
2858
- }
2859
- function getContext(calledFunctionName) {
2860
- const i = getCurrentInstance$1();
2861
- return i.setupContext || (i.setupContext = createSetupContext(i));
2862
- }
2863
2149
  function normalizePropsOrEmits(props) {
2864
2150
  return isArray$2(props) ? props.reduce((normalized, p) => (normalized[p] = null, normalized), {}) : props;
2865
2151
  }
2866
- function mergeDefaults(raw, defaults) {
2867
- const props = normalizePropsOrEmits(raw);
2868
- for (const key in defaults) {
2869
- if (key.startsWith("__skip")) continue;
2870
- let opt = props[key];
2871
- if (opt) if (isArray$2(opt) || isFunction$1(opt)) opt = props[key] = {
2872
- type: opt,
2873
- default: defaults[key]
2874
- };
2875
- else opt.default = defaults[key];
2876
- else if (opt === null) opt = props[key] = { default: defaults[key] };
2877
- if (opt && defaults[`__skip_${key}`]) opt.skipFactory = true;
2878
- }
2879
- return props;
2880
- }
2881
- function mergeModels(a, b) {
2882
- if (!a || !b) return a || b;
2883
- if (isArray$2(a) && isArray$2(b)) return a.concat(b);
2884
- return extend({}, normalizePropsOrEmits(a), normalizePropsOrEmits(b));
2885
- }
2886
- function createPropsRestProxy(props, excludedKeys) {
2887
- const ret = {};
2888
- for (const key in props) if (!excludedKeys.includes(key)) Object.defineProperty(ret, key, {
2889
- enumerable: true,
2890
- get: () => props[key]
2891
- });
2892
- return ret;
2893
- }
2894
- function withAsyncContext(getAwaitable) {
2895
- const ctx = getCurrentInstance$1();
2896
- const inSSRSetup = isInSSRComponentSetup;
2897
- let awaitable = getAwaitable();
2898
- unsetCurrentInstance();
2899
- if (inSSRSetup) setInSSRSetupState(false);
2900
- const restore = () => {
2901
- setCurrentInstance(ctx);
2902
- if (inSSRSetup) setInSSRSetupState(true);
2903
- };
2904
- const cleanup = () => {
2905
- if (getCurrentInstance$1() !== ctx) ctx.scope.off();
2906
- unsetCurrentInstance();
2907
- if (inSSRSetup) setInSSRSetupState(false);
2908
- };
2909
- if (isPromise$1(awaitable)) awaitable = awaitable.catch((e) => {
2910
- restore();
2911
- Promise.resolve().then(() => Promise.resolve().then(cleanup));
2912
- throw e;
2913
- });
2914
- return [awaitable, () => {
2915
- restore();
2916
- Promise.resolve().then(cleanup);
2917
- }];
2918
- }
2919
2152
  function applyOptions(instance) {
2920
2153
  const options = resolveMergedOptions(instance);
2921
2154
  const publicThis = instance.proxy;
2922
2155
  const ctx = instance.ctx;
2923
2156
  shouldCacheAccess = false;
2924
- if (options.beforeCreate) callHook$1(options.beforeCreate, instance, "bc");
2157
+ if (options.beforeCreate) callHook(options.beforeCreate, instance, "bc");
2925
2158
  const { data: dataOptions, computed: computedOptions, methods, watch: watchOptions, provide: provideOptions, inject: injectOptions, created, beforeMount, mounted, beforeUpdate, updated, activated, deactivated, beforeDestroy, beforeUnmount, destroyed, unmounted, render, renderTracked, renderTriggered, errorCaptured, serverPrefetch, expose, inheritAttrs, components, directives, filters } = options;
2926
2159
  const checkDuplicateProperties = null;
2927
2160
  if (injectOptions) resolveInjections(injectOptions, ctx, checkDuplicateProperties);
@@ -2936,9 +2169,11 @@ function applyOptions(instance) {
2936
2169
  shouldCacheAccess = true;
2937
2170
  if (computedOptions) for (const key in computedOptions) {
2938
2171
  const opt = computedOptions[key];
2172
+ const get = isFunction$1(opt) ? opt.bind(publicThis, publicThis) : isFunction$1(opt.get) ? opt.get.bind(publicThis, publicThis) : NOOP;
2173
+ const set = !isFunction$1(opt) && isFunction$1(opt.set) ? opt.set.bind(publicThis) : NOOP;
2939
2174
  const c = computed({
2940
- get: isFunction$1(opt) ? opt.bind(publicThis, publicThis) : isFunction$1(opt.get) ? opt.get.bind(publicThis, publicThis) : NOOP,
2941
- set: !isFunction$1(opt) && isFunction$1(opt.set) ? opt.set.bind(publicThis) : NOOP
2175
+ get,
2176
+ set
2942
2177
  });
2943
2178
  Object.defineProperty(ctx, key, {
2944
2179
  enumerable: true,
@@ -2954,7 +2189,7 @@ function applyOptions(instance) {
2954
2189
  provide(key, provides[key]);
2955
2190
  });
2956
2191
  }
2957
- if (created) callHook$1(created, instance, "c");
2192
+ if (created) callHook(created, instance, "c");
2958
2193
  function registerLifecycleHook(register, hook) {
2959
2194
  if (isArray$2(hook)) hook.forEach((_hook) => register(_hook.bind(publicThis)));
2960
2195
  else if (hook) register(hook.bind(publicThis));
@@ -2994,9 +2229,10 @@ function resolveInjections(injectOptions, ctx, checkDuplicateProperties = NOOP)
2994
2229
  for (const key in injectOptions) {
2995
2230
  const opt = injectOptions[key];
2996
2231
  let injected;
2997
- if (isObject$1(opt)) if ("default" in opt) injected = inject(opt.from || key, opt.default, true);
2998
- else injected = inject(opt.from || key);
2999
- else injected = inject(opt);
2232
+ if (isObject$1(opt)) {
2233
+ if ("default" in opt) injected = inject(opt.from || key, opt.default, true);
2234
+ else injected = inject(opt.from || key);
2235
+ } else injected = inject(opt);
3000
2236
  if (/* @__PURE__ */ isRef(injected)) Object.defineProperty(ctx, key, {
3001
2237
  enumerable: true,
3002
2238
  configurable: true,
@@ -3006,7 +2242,7 @@ function resolveInjections(injectOptions, ctx, checkDuplicateProperties = NOOP)
3006
2242
  else ctx[key] = injected;
3007
2243
  }
3008
2244
  }
3009
- function callHook$1(hook, instance, type) {
2245
+ function callHook(hook, instance, type) {
3010
2246
  callWithAsyncErrorHandling(isArray$2(hook) ? hook.map((h) => h.bind(instance.proxy)) : hook.bind(instance.proxy), instance, type);
3011
2247
  }
3012
2248
  function createWatcher(raw, ctx, publicThis, key) {
@@ -3015,10 +2251,12 @@ function createWatcher(raw, ctx, publicThis, key) {
3015
2251
  const handler = ctx[raw];
3016
2252
  if (isFunction$1(handler)) watch(getter, handler);
3017
2253
  } else if (isFunction$1(raw)) watch(getter, raw.bind(publicThis));
3018
- else if (isObject$1(raw)) if (isArray$2(raw)) raw.forEach((r) => createWatcher(r, ctx, publicThis, key));
3019
- else {
3020
- const handler = isFunction$1(raw.handler) ? raw.handler.bind(publicThis) : ctx[raw.handler];
3021
- if (isFunction$1(handler)) watch(getter, handler, raw);
2254
+ else if (isObject$1(raw)) {
2255
+ if (isArray$2(raw)) raw.forEach((r) => createWatcher(r, ctx, publicThis, key));
2256
+ else {
2257
+ const handler = isFunction$1(raw.handler) ? raw.handler.bind(publicThis) : ctx[raw.handler];
2258
+ if (isFunction$1(handler)) watch(getter, handler, raw);
2259
+ }
3022
2260
  }
3023
2261
  }
3024
2262
  function resolveMergedOptions(instance) {
@@ -3190,54 +2428,6 @@ function createAppAPI(render, hydrate) {
3190
2428
  return app;
3191
2429
  };
3192
2430
  }
3193
- function useModel(props, name, options = EMPTY_OBJ) {
3194
- const i = getCurrentInstance$1();
3195
- const camelizedName = camelize$1(name);
3196
- const hyphenatedName = hyphenate$1(name);
3197
- const modifiers = getModelModifiers(props, camelizedName);
3198
- const res = customRef((track, trigger) => {
3199
- let localValue;
3200
- let prevSetValue = EMPTY_OBJ;
3201
- let prevEmittedValue;
3202
- watchSyncEffect(() => {
3203
- const propValue = props[camelizedName];
3204
- if (hasChanged(localValue, propValue)) {
3205
- localValue = propValue;
3206
- trigger();
3207
- }
3208
- });
3209
- return {
3210
- get() {
3211
- track();
3212
- return options.get ? options.get(localValue) : localValue;
3213
- },
3214
- set(value) {
3215
- const emittedValue = options.set ? options.set(value) : value;
3216
- if (!hasChanged(emittedValue, localValue) && !(prevSetValue !== EMPTY_OBJ && hasChanged(value, prevSetValue))) return;
3217
- const rawProps = i.vnode.props;
3218
- if (!(rawProps && (name in rawProps || camelizedName in rawProps || hyphenatedName in rawProps) && (`onUpdate:${name}` in rawProps || `onUpdate:${camelizedName}` in rawProps || `onUpdate:${hyphenatedName}` in rawProps))) {
3219
- localValue = value;
3220
- trigger();
3221
- }
3222
- i.emit(`update:${name}`, emittedValue);
3223
- if (hasChanged(value, emittedValue) && hasChanged(value, prevSetValue) && !hasChanged(emittedValue, prevEmittedValue)) trigger();
3224
- prevSetValue = value;
3225
- prevEmittedValue = emittedValue;
3226
- }
3227
- };
3228
- });
3229
- res[Symbol.iterator] = () => {
3230
- let i2 = 0;
3231
- return { next() {
3232
- if (i2 < 2) return {
3233
- value: i2++ ? modifiers || EMPTY_OBJ : res,
3234
- done: false
3235
- };
3236
- else return { done: true };
3237
- } };
3238
- };
3239
- return res;
3240
- }
3241
2431
  function emit(instance, event, ...rawArgs) {
3242
2432
  if (instance.isUnmounted) return;
3243
2433
  const props = instance.vnode.props || EMPTY_OBJ;
@@ -3290,7 +2480,8 @@ function normalizeEmitsOptions(comp, appContext, asMixin = false) {
3290
2480
  }
3291
2481
  function isEmitListener(options, key) {
3292
2482
  if (!options || !isOn(key)) return false;
3293
- key = key.slice(2).replace(/Once$/, "");
2483
+ key = key.slice(2);
2484
+ key = key === "Once" ? key : key.replace(/Once$/, "");
3294
2485
  return hasOwn$1(options, key[0].toLowerCase() + key.slice(1)) || hasOwn$1(options, hyphenate$1(key)) || hasOwn$1(options, key);
3295
2486
  }
3296
2487
  function renderComponentRoot(instance) {
@@ -3333,22 +2524,11 @@ function renderComponentRoot(instance) {
3333
2524
  root = cloneVNode(root, null, false, true);
3334
2525
  root.dirs = root.dirs ? root.dirs.concat(vnode.dirs) : vnode.dirs;
3335
2526
  }
3336
- if (vnode.transition) setTransitionHooks(root, vnode.transition);
2527
+ if (vnode.transition) setTransitionHooks(isTeleport(root.type) ? getInnerChild$1(root) || root : root, vnode.transition);
3337
2528
  result = root;
3338
2529
  setCurrentRenderingInstance(prev);
3339
2530
  return result;
3340
2531
  }
3341
- function filterSingleRoot(children, recurse = true) {
3342
- let singleRoot;
3343
- for (let i = 0; i < children.length; i++) {
3344
- const child = children[i];
3345
- if (isVNode$1(child)) {
3346
- if (child.type !== Comment || child.children === "v-if") if (singleRoot) return;
3347
- else singleRoot = child;
3348
- } else return;
3349
- }
3350
- return singleRoot;
3351
- }
3352
2532
  function shouldUpdateComponent(prevVNode, nextVNode, optimized) {
3353
2533
  const { props: prevProps, children: prevChildren, component } = prevVNode;
3354
2534
  const { props: nextProps, children: nextChildren, patchFlag } = nextVNode;
@@ -3429,16 +2609,17 @@ function updateProps(instance, rawProps, rawPrevProps, optimized) {
3429
2609
  let key = propsToUpdate[i];
3430
2610
  if (isEmitListener(instance.emitsOptions, key)) continue;
3431
2611
  const value = rawProps[key];
3432
- if (options) if (hasOwn$1(attrs, key)) {
3433
- if (value !== attrs[key]) {
3434
- attrs[key] = value;
3435
- hasAttrsChanged = true;
2612
+ if (options) {
2613
+ if (hasOwn$1(attrs, key)) {
2614
+ if (value !== attrs[key]) {
2615
+ attrs[key] = value;
2616
+ hasAttrsChanged = true;
2617
+ }
2618
+ } else {
2619
+ const camelizedKey = camelize$1(key);
2620
+ props[camelizedKey] = resolvePropValue(options, rawCurrentProps, camelizedKey, value, instance, false);
3436
2621
  }
3437
- } else {
3438
- const camelizedKey = camelize$1(key);
3439
- props[camelizedKey] = resolvePropValue(options, rawCurrentProps, camelizedKey, value, instance, false);
3440
- }
3441
- else if (value !== attrs[key]) {
2622
+ } else if (value !== attrs[key]) {
3442
2623
  attrs[key] = value;
3443
2624
  hasAttrsChanged = true;
3444
2625
  }
@@ -3447,9 +2628,11 @@ function updateProps(instance, rawProps, rawPrevProps, optimized) {
3447
2628
  } else {
3448
2629
  if (setFullProps(instance, rawProps, props, attrs)) hasAttrsChanged = true;
3449
2630
  let kebabKey;
3450
- for (const key in rawCurrentProps) if (!rawProps || !hasOwn$1(rawProps, key) && ((kebabKey = hyphenate$1(key)) === key || !hasOwn$1(rawProps, kebabKey))) if (options) {
3451
- if (rawPrevProps && (rawPrevProps[key] !== void 0 || rawPrevProps[kebabKey] !== void 0)) props[key] = resolvePropValue(options, rawCurrentProps, key, void 0, instance, true);
3452
- } else delete props[key];
2631
+ for (const key in rawCurrentProps) if (!rawProps || !hasOwn$1(rawProps, key) && ((kebabKey = hyphenate$1(key)) === key || !hasOwn$1(rawProps, kebabKey))) {
2632
+ if (options) {
2633
+ if (rawPrevProps && (rawPrevProps[key] !== void 0 || rawPrevProps[kebabKey] !== void 0)) props[key] = resolvePropValue(options, rawCurrentProps, key, void 0, instance, true);
2634
+ } else delete props[key];
2635
+ }
3453
2636
  if (attrs !== rawCurrentProps) {
3454
2637
  for (const key in attrs) if (!rawProps || !hasOwn$1(rawProps, key) && true) {
3455
2638
  delete attrs[key];
@@ -3467,9 +2650,10 @@ function setFullProps(instance, rawProps, props, attrs) {
3467
2650
  if (isReservedProp(key)) continue;
3468
2651
  const value = rawProps[key];
3469
2652
  let camelKey;
3470
- if (options && hasOwn$1(options, camelKey = camelize$1(key))) if (!needCastKeys || !needCastKeys.includes(camelKey)) props[camelKey] = value;
3471
- else (rawCastValues || (rawCastValues = {}))[camelKey] = value;
3472
- else if (!isEmitListener(instance.emitsOptions, key)) {
2653
+ if (options && hasOwn$1(options, camelKey = camelize$1(key))) {
2654
+ if (!needCastKeys || !needCastKeys.includes(camelKey)) props[camelKey] = value;
2655
+ else (rawCastValues || (rawCastValues = {}))[camelKey] = value;
2656
+ } else if (!isEmitListener(instance.emitsOptions, key)) {
3473
2657
  if (!(key in attrs) || value !== attrs[key]) {
3474
2658
  attrs[key] = value;
3475
2659
  hasAttrsChanged = true;
@@ -3570,9 +2754,6 @@ function validatePropName(key) {
3570
2754
  function createRenderer(options) {
3571
2755
  return baseCreateRenderer(options);
3572
2756
  }
3573
- function createHydrationRenderer(options) {
3574
- return baseCreateRenderer(options, createHydrationFunctions);
3575
- }
3576
2757
  function baseCreateRenderer(options, createHydrationFns) {
3577
2758
  const target = getGlobalThis$1();
3578
2759
  target.__VUE__ = true;
@@ -3694,7 +2875,10 @@ function baseCreateRenderer(options, createHydrationFns) {
3694
2875
  }
3695
2876
  };
3696
2877
  const mountChildren = (children, container, anchor, parentComponent, parentSuspense, namespace, slotScopeIds, optimized, start = 0) => {
3697
- for (let i = start; i < children.length; i++) patch(null, children[i] = optimized ? cloneIfMounted(children[i]) : normalizeVNode(children[i]), container, anchor, parentComponent, parentSuspense, namespace, slotScopeIds, optimized);
2878
+ for (let i = start; i < children.length; i++) {
2879
+ const child = children[i] = optimized ? cloneIfMounted(children[i]) : normalizeVNode(children[i]);
2880
+ patch(null, child, container, anchor, parentComponent, parentSuspense, namespace, slotScopeIds, optimized);
2881
+ }
3698
2882
  };
3699
2883
  const patchElement = (n1, n2, parentComponent, parentSuspense, namespace, slotScopeIds, optimized) => {
3700
2884
  const el = n2.el = n1.el;
@@ -3707,6 +2891,11 @@ function baseCreateRenderer(options, createHydrationFns) {
3707
2891
  if (vnodeHook = newProps.onVnodeBeforeUpdate) invokeVNodeHook(vnodeHook, parentComponent, n2, n1);
3708
2892
  if (dirs) invokeDirectiveHook(n2, n1, parentComponent, "beforeUpdate");
3709
2893
  parentComponent && toggleRecurse(parentComponent, true);
2894
+ if (dynamicChildren && (!n1.dynamicChildren || n1.dynamicChildren.length !== dynamicChildren.length)) {
2895
+ patchFlag = 0;
2896
+ optimized = false;
2897
+ dynamicChildren = null;
2898
+ }
3710
2899
  if (oldProps.innerHTML && newProps.innerHTML == null || oldProps.textContent && newProps.textContent == null) hostSetElementText(el, "");
3711
2900
  if (dynamicChildren) patchBlockChildren(n1.dynamicChildren, dynamicChildren, el, parentComponent, parentSuspense, resolveChildrenNamespace(n2, namespace), slotScopeIds);
3712
2901
  else if (!optimized) patchChildren(n1, n2, el, null, parentComponent, parentSuspense, resolveChildrenNamespace(n2, namespace), slotScopeIds, false);
@@ -3740,7 +2929,8 @@ function baseCreateRenderer(options, createHydrationFns) {
3740
2929
  for (let i = 0; i < newChildren.length; i++) {
3741
2930
  const oldVNode = oldChildren[i];
3742
2931
  const newVNode = newChildren[i];
3743
- patch(oldVNode, newVNode, oldVNode.el && (oldVNode.type === Fragment || !isSameVNodeType(oldVNode, newVNode) || oldVNode.shapeFlag & 198) ? hostParentNode(oldVNode.el) : fallbackContainer, null, parentComponent, parentSuspense, namespace, slotScopeIds, true);
2932
+ const container = oldVNode.el && (oldVNode.type === Fragment || !isSameVNodeType(oldVNode, newVNode) || oldVNode.shapeFlag & 198) ? hostParentNode(oldVNode.el) : fallbackContainer;
2933
+ patch(oldVNode, newVNode, container, null, parentComponent, parentSuspense, namespace, slotScopeIds, true);
3744
2934
  }
3745
2935
  };
3746
2936
  const patchProps = (el, oldProps, newProps, parentComponent, namespace) => {
@@ -3773,9 +2963,10 @@ function baseCreateRenderer(options, createHydrationFns) {
3773
2963
  };
3774
2964
  const processComponent = (n1, n2, container, anchor, parentComponent, parentSuspense, namespace, slotScopeIds, optimized) => {
3775
2965
  n2.slotScopeIds = slotScopeIds;
3776
- if (n1 == null) if (n2.shapeFlag & 512) parentComponent.ctx.activate(n2, container, anchor, namespace, optimized);
3777
- else mountComponent(n2, container, anchor, parentComponent, parentSuspense, namespace, optimized);
3778
- else updateComponent(n1, n2, optimized);
2966
+ if (n1 == null) {
2967
+ if (n2.shapeFlag & 512) parentComponent.ctx.activate(n2, container, anchor, namespace, optimized);
2968
+ else mountComponent(n2, container, anchor, parentComponent, parentSuspense, namespace, optimized);
2969
+ } else updateComponent(n1, n2, optimized);
3779
2970
  };
3780
2971
  const mountComponent = (initialVNode, container, anchor, parentComponent, parentSuspense, namespace, optimized) => {
3781
2972
  const instance = initialVNode.component = createComponentInstance(initialVNode, parentComponent, parentSuspense);
@@ -3792,14 +2983,15 @@ function baseCreateRenderer(options, createHydrationFns) {
3792
2983
  };
3793
2984
  const updateComponent = (n1, n2, optimized) => {
3794
2985
  const instance = n2.component = n1.component;
3795
- if (shouldUpdateComponent(n1, n2, optimized)) if (instance.asyncDep && !instance.asyncResolved) {
3796
- updateComponentPreRender(instance, n2, optimized);
3797
- return;
2986
+ if (shouldUpdateComponent(n1, n2, optimized)) {
2987
+ if (instance.asyncDep && !instance.asyncResolved) {
2988
+ updateComponentPreRender(instance, n2, optimized);
2989
+ return;
2990
+ } else {
2991
+ instance.next = n2;
2992
+ instance.update();
2993
+ }
3798
2994
  } else {
3799
- instance.next = n2;
3800
- instance.update();
3801
- }
3802
- else {
3803
2995
  n2.el = n1.el;
3804
2996
  instance.vnode = n2;
3805
2997
  }
@@ -3912,9 +3104,10 @@ function baseCreateRenderer(options, createHydrationFns) {
3912
3104
  if (shapeFlag & 8) {
3913
3105
  if (prevShapeFlag & 16) unmountChildren(c1, parentComponent, parentSuspense);
3914
3106
  if (c2 !== c1) hostSetElementText(container, c2);
3915
- } else if (prevShapeFlag & 16) if (shapeFlag & 16) patchKeyedChildren(c1, c2, container, anchor, parentComponent, parentSuspense, namespace, slotScopeIds, optimized);
3916
- else unmountChildren(c1, parentComponent, parentSuspense, true);
3917
- else {
3107
+ } else if (prevShapeFlag & 16) {
3108
+ if (shapeFlag & 16) patchKeyedChildren(c1, c2, container, anchor, parentComponent, parentSuspense, namespace, slotScopeIds, optimized);
3109
+ else unmountChildren(c1, parentComponent, parentSuspense, true);
3110
+ } else {
3918
3111
  if (prevShapeFlag & 8) hostSetElementText(container, "");
3919
3112
  if (shapeFlag & 16) mountChildren(c2, container, anchor, parentComponent, parentSuspense, namespace, slotScopeIds, optimized);
3920
3113
  }
@@ -4010,8 +3203,10 @@ function baseCreateRenderer(options, createHydrationFns) {
4010
3203
  const anchorVNode = c2[nextIndex + 1];
4011
3204
  const anchor = nextIndex + 1 < l2 ? anchorVNode.el || resolveAsyncComponentPlaceholder(anchorVNode) : parentAnchor;
4012
3205
  if (newIndexToOldIndexMap[i] === 0) patch(null, nextChild, container, anchor, parentComponent, parentSuspense, namespace, slotScopeIds, optimized);
4013
- else if (moved) if (j < 0 || i !== increasingNewIndexSequence[j]) move(nextChild, container, anchor, 2);
4014
- else j--;
3206
+ else if (moved) {
3207
+ if (j < 0 || i !== increasingNewIndexSequence[j]) move(nextChild, container, anchor, 2);
3208
+ else j--;
3209
+ }
4015
3210
  }
4016
3211
  }
4017
3212
  };
@@ -4039,27 +3234,33 @@ function baseCreateRenderer(options, createHydrationFns) {
4039
3234
  moveStaticNode(vnode, container, anchor);
4040
3235
  return;
4041
3236
  }
4042
- if (moveType !== 2 && shapeFlag & 1 && transition) if (moveType === 0) {
4043
- transition.beforeEnter(el);
4044
- hostInsert(el, container, anchor);
4045
- queuePostRenderEffect(() => transition.enter(el), parentSuspense);
4046
- } else {
4047
- const { leave, delayLeave, afterLeave } = transition;
4048
- const remove2 = () => {
4049
- if (vnode.ctx.isUnmounted) hostRemove(el);
4050
- else hostInsert(el, container, anchor);
4051
- };
4052
- const performLeave = () => {
4053
- if (el._isLeaving) el[leaveCbKey](true);
4054
- leave(el, () => {
4055
- remove2();
4056
- afterLeave && afterLeave();
4057
- });
4058
- };
4059
- if (delayLeave) delayLeave(el, remove2, performLeave);
4060
- else performLeave();
4061
- }
4062
- else hostInsert(el, container, anchor);
3237
+ if (moveType !== 2 && shapeFlag & 1 && transition) {
3238
+ if (moveType === 0) {
3239
+ if (transition.persisted && !el[leaveCbKey]) hostInsert(el, container, anchor);
3240
+ else {
3241
+ transition.beforeEnter(el);
3242
+ hostInsert(el, container, anchor);
3243
+ queuePostRenderEffect(() => transition.enter(el), parentSuspense);
3244
+ }
3245
+ } else {
3246
+ const { leave, delayLeave, afterLeave } = transition;
3247
+ const remove2 = () => {
3248
+ if (vnode.ctx.isUnmounted) hostRemove(el);
3249
+ else hostInsert(el, container, anchor);
3250
+ };
3251
+ const performLeave = () => {
3252
+ const wasLeaving = el._isLeaving || !!el[leaveCbKey];
3253
+ if (el._isLeaving) el[leaveCbKey](true);
3254
+ if (transition.persisted && !wasLeaving) remove2();
3255
+ else leave(el, () => {
3256
+ remove2();
3257
+ afterLeave && afterLeave();
3258
+ });
3259
+ };
3260
+ if (delayLeave) delayLeave(el, remove2, performLeave);
3261
+ else performLeave();
3262
+ }
3263
+ } else hostInsert(el, container, anchor);
4063
3264
  };
4064
3265
  const unmount = (vnode, parentComponent, parentSuspense, doRemove = false, optimized = false) => {
4065
3266
  const { type, props, ref, children, dynamicChildren, shapeFlag, patchFlag, dirs, cacheIndex, memo } = vnode;
@@ -4262,8 +3463,10 @@ function getSequence(arr) {
4262
3463
  }
4263
3464
  function locateNonHydratedAsyncRoot(instance) {
4264
3465
  const subComponent = instance.subTree.component;
4265
- if (subComponent) if (subComponent.asyncDep && !subComponent.asyncResolved) return subComponent;
4266
- else return locateNonHydratedAsyncRoot(subComponent);
3466
+ if (subComponent) {
3467
+ if (subComponent.asyncDep && !subComponent.asyncResolved) return subComponent;
3468
+ else return locateNonHydratedAsyncRoot(subComponent);
3469
+ }
4267
3470
  }
4268
3471
  function invalidateMount(hooks) {
4269
3472
  if (hooks) for (let i = 0; i < hooks.length; i++) hooks[i].flags |= 8;
@@ -4274,272 +3477,11 @@ function resolveAsyncComponentPlaceholder(anchorVnode) {
4274
3477
  if (instance) return resolveAsyncComponentPlaceholder(instance.subTree);
4275
3478
  return null;
4276
3479
  }
4277
- function triggerEvent(vnode, name) {
4278
- const eventListener = vnode.props && vnode.props[name];
4279
- if (isFunction$1(eventListener)) eventListener();
4280
- }
4281
- function mountSuspense(vnode, container, anchor, parentComponent, parentSuspense, namespace, slotScopeIds, optimized, rendererInternals) {
4282
- const { p: patch, o: { createElement } } = rendererInternals;
4283
- const hiddenContainer = createElement("div");
4284
- const suspense = vnode.suspense = createSuspenseBoundary(vnode, parentSuspense, parentComponent, container, hiddenContainer, anchor, namespace, slotScopeIds, optimized, rendererInternals);
4285
- patch(null, suspense.pendingBranch = vnode.ssContent, hiddenContainer, null, parentComponent, suspense, namespace, slotScopeIds);
4286
- if (suspense.deps > 0) {
4287
- triggerEvent(vnode, "onPending");
4288
- triggerEvent(vnode, "onFallback");
4289
- patch(null, vnode.ssFallback, container, anchor, parentComponent, null, namespace, slotScopeIds);
4290
- setActiveBranch(suspense, vnode.ssFallback);
4291
- } else suspense.resolve(false, true);
4292
- }
4293
- function patchSuspense(n1, n2, container, anchor, parentComponent, namespace, slotScopeIds, optimized, { p: patch, um: unmount, o: { createElement } }) {
4294
- const suspense = n2.suspense = n1.suspense;
4295
- suspense.vnode = n2;
4296
- n2.el = n1.el;
4297
- const newBranch = n2.ssContent;
4298
- const newFallback = n2.ssFallback;
4299
- const { activeBranch, pendingBranch, isInFallback, isHydrating } = suspense;
4300
- if (pendingBranch) {
4301
- suspense.pendingBranch = newBranch;
4302
- if (isSameVNodeType(pendingBranch, newBranch)) {
4303
- patch(pendingBranch, newBranch, suspense.hiddenContainer, null, parentComponent, suspense, namespace, slotScopeIds, optimized);
4304
- if (suspense.deps <= 0) suspense.resolve();
4305
- else if (isInFallback) {
4306
- if (!isHydrating) {
4307
- patch(activeBranch, newFallback, container, anchor, parentComponent, null, namespace, slotScopeIds, optimized);
4308
- setActiveBranch(suspense, newFallback);
4309
- }
4310
- }
4311
- } else {
4312
- suspense.pendingId = suspenseId++;
4313
- if (isHydrating) {
4314
- suspense.isHydrating = false;
4315
- suspense.activeBranch = pendingBranch;
4316
- } else unmount(pendingBranch, parentComponent, suspense);
4317
- suspense.deps = 0;
4318
- suspense.effects.length = 0;
4319
- suspense.hiddenContainer = createElement("div");
4320
- if (isInFallback) {
4321
- patch(null, newBranch, suspense.hiddenContainer, null, parentComponent, suspense, namespace, slotScopeIds, optimized);
4322
- if (suspense.deps <= 0) suspense.resolve();
4323
- else {
4324
- patch(activeBranch, newFallback, container, anchor, parentComponent, null, namespace, slotScopeIds, optimized);
4325
- setActiveBranch(suspense, newFallback);
4326
- }
4327
- } else if (activeBranch && isSameVNodeType(activeBranch, newBranch)) {
4328
- patch(activeBranch, newBranch, container, anchor, parentComponent, suspense, namespace, slotScopeIds, optimized);
4329
- suspense.resolve(true);
4330
- } else {
4331
- patch(null, newBranch, suspense.hiddenContainer, null, parentComponent, suspense, namespace, slotScopeIds, optimized);
4332
- if (suspense.deps <= 0) suspense.resolve();
4333
- }
4334
- }
4335
- } else if (activeBranch && isSameVNodeType(activeBranch, newBranch)) {
4336
- patch(activeBranch, newBranch, container, anchor, parentComponent, suspense, namespace, slotScopeIds, optimized);
4337
- setActiveBranch(suspense, newBranch);
4338
- } else {
4339
- triggerEvent(n2, "onPending");
4340
- suspense.pendingBranch = newBranch;
4341
- if (newBranch.shapeFlag & 512) suspense.pendingId = newBranch.component.suspenseId;
4342
- else suspense.pendingId = suspenseId++;
4343
- patch(null, newBranch, suspense.hiddenContainer, null, parentComponent, suspense, namespace, slotScopeIds, optimized);
4344
- if (suspense.deps <= 0) suspense.resolve();
4345
- else {
4346
- const { timeout, pendingId } = suspense;
4347
- if (timeout > 0) setTimeout(() => {
4348
- if (suspense.pendingId === pendingId) suspense.fallback(newFallback);
4349
- }, timeout);
4350
- else if (timeout === 0) suspense.fallback(newFallback);
4351
- }
4352
- }
4353
- }
4354
- function createSuspenseBoundary(vnode, parentSuspense, parentComponent, container, hiddenContainer, anchor, namespace, slotScopeIds, optimized, rendererInternals, isHydrating = false) {
4355
- const { p: patch, m: move, um: unmount, n: next, o: { parentNode, remove } } = rendererInternals;
4356
- let parentSuspenseId;
4357
- const isSuspensible = isVNodeSuspensible(vnode);
4358
- if (isSuspensible) {
4359
- if (parentSuspense && parentSuspense.pendingBranch) {
4360
- parentSuspenseId = parentSuspense.pendingId;
4361
- parentSuspense.deps++;
4362
- }
4363
- }
4364
- const timeout = vnode.props ? toNumber(vnode.props.timeout) : void 0;
4365
- const initialAnchor = anchor;
4366
- const suspense = {
4367
- vnode,
4368
- parent: parentSuspense,
4369
- parentComponent,
4370
- namespace,
4371
- container,
4372
- hiddenContainer,
4373
- deps: 0,
4374
- pendingId: suspenseId++,
4375
- timeout: typeof timeout === "number" ? timeout : -1,
4376
- activeBranch: null,
4377
- isFallbackMountPending: false,
4378
- pendingBranch: null,
4379
- isInFallback: !isHydrating,
4380
- isHydrating,
4381
- isUnmounted: false,
4382
- effects: [],
4383
- resolve(resume = false, sync = false) {
4384
- const { vnode: vnode2, activeBranch, pendingBranch, pendingId, effects, parentComponent: parentComponent2, container: container2, isInFallback } = suspense;
4385
- let delayEnter = false;
4386
- if (suspense.isHydrating) suspense.isHydrating = false;
4387
- else if (!resume) {
4388
- delayEnter = activeBranch && pendingBranch.transition && pendingBranch.transition.mode === "out-in";
4389
- let hasUpdatedAnchor = false;
4390
- if (delayEnter) activeBranch.transition.afterLeave = () => {
4391
- if (pendingId === suspense.pendingId) {
4392
- move(pendingBranch, container2, anchor === initialAnchor && !hasUpdatedAnchor ? next(activeBranch) : anchor, 0);
4393
- queuePostFlushCb(effects);
4394
- if (isInFallback && vnode2.ssFallback) vnode2.ssFallback.el = null;
4395
- }
4396
- };
4397
- if (activeBranch && !suspense.isFallbackMountPending) {
4398
- if (parentNode(activeBranch.el) === container2) {
4399
- anchor = next(activeBranch);
4400
- hasUpdatedAnchor = true;
4401
- }
4402
- unmount(activeBranch, parentComponent2, suspense, true);
4403
- if (!delayEnter && isInFallback && vnode2.ssFallback) queuePostRenderEffect(() => vnode2.ssFallback.el = null, suspense);
4404
- }
4405
- if (!delayEnter) move(pendingBranch, container2, anchor, 0);
4406
- }
4407
- suspense.isFallbackMountPending = false;
4408
- setActiveBranch(suspense, pendingBranch);
4409
- suspense.pendingBranch = null;
4410
- suspense.isInFallback = false;
4411
- let parent = suspense.parent;
4412
- let hasUnresolvedAncestor = false;
4413
- while (parent) {
4414
- if (parent.pendingBranch) {
4415
- parent.effects.push(...effects);
4416
- hasUnresolvedAncestor = true;
4417
- break;
4418
- }
4419
- parent = parent.parent;
4420
- }
4421
- if (!hasUnresolvedAncestor && !delayEnter) queuePostFlushCb(effects);
4422
- suspense.effects = [];
4423
- if (isSuspensible) {
4424
- if (parentSuspense && parentSuspense.pendingBranch && parentSuspenseId === parentSuspense.pendingId) {
4425
- parentSuspense.deps--;
4426
- if (parentSuspense.deps === 0 && !sync) parentSuspense.resolve();
4427
- }
4428
- }
4429
- triggerEvent(vnode2, "onResolve");
4430
- },
4431
- fallback(fallbackVNode) {
4432
- if (!suspense.pendingBranch) return;
4433
- const { vnode: vnode2, activeBranch, parentComponent: parentComponent2, container: container2, namespace: namespace2 } = suspense;
4434
- triggerEvent(vnode2, "onFallback");
4435
- const anchor2 = next(activeBranch);
4436
- const mountFallback = () => {
4437
- suspense.isFallbackMountPending = false;
4438
- if (!suspense.isInFallback) return;
4439
- patch(null, fallbackVNode, container2, anchor2, parentComponent2, null, namespace2, slotScopeIds, optimized);
4440
- setActiveBranch(suspense, fallbackVNode);
4441
- };
4442
- const delayEnter = fallbackVNode.transition && fallbackVNode.transition.mode === "out-in";
4443
- if (delayEnter) {
4444
- suspense.isFallbackMountPending = true;
4445
- activeBranch.transition.afterLeave = mountFallback;
4446
- }
4447
- suspense.isInFallback = true;
4448
- unmount(activeBranch, parentComponent2, null, true);
4449
- if (!delayEnter) mountFallback();
4450
- },
4451
- move(container2, anchor2, type) {
4452
- suspense.activeBranch && move(suspense.activeBranch, container2, anchor2, type);
4453
- suspense.container = container2;
4454
- },
4455
- next() {
4456
- return suspense.activeBranch && next(suspense.activeBranch);
4457
- },
4458
- registerDep(instance, setupRenderEffect, optimized2) {
4459
- const isInPendingSuspense = !!suspense.pendingBranch;
4460
- if (isInPendingSuspense) suspense.deps++;
4461
- const hydratedEl = instance.vnode.el;
4462
- instance.asyncDep.catch((err) => {
4463
- handleError(err, instance, 0);
4464
- }).then((asyncSetupResult) => {
4465
- if (instance.isUnmounted || suspense.isUnmounted || suspense.pendingId !== instance.suspenseId) return;
4466
- unsetCurrentInstance();
4467
- instance.asyncResolved = true;
4468
- const { vnode: vnode2 } = instance;
4469
- handleSetupResult(instance, asyncSetupResult, false);
4470
- if (hydratedEl) vnode2.el = hydratedEl;
4471
- const placeholder = !hydratedEl && instance.subTree.el;
4472
- setupRenderEffect(instance, vnode2, parentNode(hydratedEl || instance.subTree.el), hydratedEl ? null : next(instance.subTree), suspense, namespace, optimized2);
4473
- if (placeholder) {
4474
- vnode2.placeholder = null;
4475
- remove(placeholder);
4476
- }
4477
- updateHOCHostEl(instance, vnode2.el);
4478
- if (isInPendingSuspense && --suspense.deps === 0) suspense.resolve();
4479
- });
4480
- },
4481
- unmount(parentSuspense2, doRemove) {
4482
- suspense.isUnmounted = true;
4483
- if (suspense.activeBranch) unmount(suspense.activeBranch, parentComponent, parentSuspense2, doRemove);
4484
- if (suspense.pendingBranch) unmount(suspense.pendingBranch, parentComponent, parentSuspense2, doRemove);
4485
- }
4486
- };
4487
- return suspense;
4488
- }
4489
- function hydrateSuspense(node, vnode, parentComponent, parentSuspense, namespace, slotScopeIds, optimized, rendererInternals, hydrateNode) {
4490
- const suspense = vnode.suspense = createSuspenseBoundary(vnode, parentSuspense, parentComponent, node.parentNode, document.createElement("div"), null, namespace, slotScopeIds, optimized, rendererInternals, true);
4491
- const result = hydrateNode(node, suspense.pendingBranch = vnode.ssContent, parentComponent, suspense, slotScopeIds, optimized);
4492
- if (suspense.deps === 0) suspense.resolve(false, true);
4493
- return result;
4494
- }
4495
- function normalizeSuspenseChildren(vnode) {
4496
- const { shapeFlag, children } = vnode;
4497
- const isSlotChildren = shapeFlag & 32;
4498
- vnode.ssContent = normalizeSuspenseSlot(isSlotChildren ? children.default : children);
4499
- vnode.ssFallback = isSlotChildren ? normalizeSuspenseSlot(children.fallback) : createVNode(Comment);
4500
- }
4501
- function normalizeSuspenseSlot(s) {
4502
- let block;
4503
- if (isFunction$1(s)) {
4504
- const trackBlock = isBlockTreeEnabled && s._c;
4505
- if (trackBlock) {
4506
- s._d = false;
4507
- openBlock();
4508
- }
4509
- s = s();
4510
- if (trackBlock) {
4511
- s._d = true;
4512
- block = currentBlock;
4513
- closeBlock();
4514
- }
4515
- }
4516
- if (isArray$2(s)) s = filterSingleRoot(s);
4517
- s = normalizeVNode(s);
4518
- if (block && !s.dynamicChildren) s.dynamicChildren = block.filter((c) => c !== s);
4519
- return s;
4520
- }
4521
3480
  function queueEffectWithSuspense(fn, suspense) {
4522
- if (suspense && suspense.pendingBranch) if (isArray$2(fn)) suspense.effects.push(...fn);
4523
- else suspense.effects.push(fn);
4524
- else queuePostFlushCb(fn);
4525
- }
4526
- function setActiveBranch(suspense, branch) {
4527
- suspense.activeBranch = branch;
4528
- const { vnode, parentComponent } = suspense;
4529
- let el = branch.el;
4530
- while (!el && branch.component) {
4531
- branch = branch.component.subTree;
4532
- el = branch.el;
4533
- }
4534
- vnode.el = el;
4535
- if (parentComponent && parentComponent.subTree === vnode) {
4536
- parentComponent.vnode.el = el;
4537
- updateHOCHostEl(parentComponent, el);
4538
- }
4539
- }
4540
- function isVNodeSuspensible(vnode) {
4541
- const suspensible = vnode.props && vnode.props.suspensible;
4542
- return suspensible != null && suspensible !== false;
3481
+ if (suspense && suspense.pendingBranch) {
3482
+ if (isArray$2(fn)) suspense.effects.push(...fn);
3483
+ else suspense.effects.push(fn);
3484
+ } else queuePostFlushCb(fn);
4543
3485
  }
4544
3486
  function openBlock(disableTracking = false) {
4545
3487
  blockStack.push(currentBlock = disableTracking ? null : []);
@@ -4570,7 +3512,6 @@ function isVNode$1(value) {
4570
3512
  function isSameVNodeType(n1, n2) {
4571
3513
  return n1.type === n2.type && n1.key === n2.key;
4572
3514
  }
4573
- function transformVNodeArgs(transformer) {}
4574
3515
  function createBaseVNode(type, props = null, children = null, patchFlag = 0, dynamicProps = null, shapeFlag = type === Fragment ? 0 : 1, isBlockNode = false, needFullChildrenNormalization = false) {
4575
3516
  const vnode = {
4576
3517
  __v_isVNode: true,
@@ -4613,8 +3554,10 @@ function _createVNode(type, props = null, children = null, patchFlag = 0, dynami
4613
3554
  if (isVNode$1(type)) {
4614
3555
  const cloned = cloneVNode(type, props, true);
4615
3556
  if (children) normalizeChildren(cloned, children);
4616
- if (isBlockTreeEnabled > 0 && !isBlockNode && currentBlock) if (cloned.shapeFlag & 6) currentBlock[currentBlock.indexOf(type)] = cloned;
4617
- else currentBlock.push(cloned);
3557
+ if (isBlockTreeEnabled > 0 && !isBlockNode && currentBlock) {
3558
+ if (cloned.shapeFlag & 6) currentBlock[currentBlock.indexOf(type)] = cloned;
3559
+ else currentBlock.push(cloned);
3560
+ }
4618
3561
  cloned.patchFlag = -2;
4619
3562
  return cloned;
4620
3563
  }
@@ -4675,11 +3618,6 @@ function cloneVNode(vnode, extraProps, mergeRef = false, cloneTransition = false
4675
3618
  function createTextVNode(text = " ", flag = 0) {
4676
3619
  return createVNode(Text, null, text, flag);
4677
3620
  }
4678
- function createStaticVNode(content, numberOfNodes) {
4679
- const vnode = createVNode(Static, null, content);
4680
- vnode.staticCount = numberOfNodes;
4681
- return vnode;
4682
- }
4683
3621
  function createCommentVNode(text = "", asBlock = false) {
4684
3622
  return asBlock ? (openBlock(), createBlock(Comment, null, text)) : createVNode(Comment, null, text);
4685
3623
  }
@@ -4697,25 +3635,32 @@ function normalizeChildren(vnode, children) {
4697
3635
  const { shapeFlag } = vnode;
4698
3636
  if (children == null) children = null;
4699
3637
  else if (isArray$2(children)) type = 16;
4700
- else if (typeof children === "object") if (shapeFlag & 65) {
4701
- const slot = children.default;
4702
- if (slot) {
4703
- slot._c && (slot._d = false);
4704
- normalizeChildren(vnode, slot());
4705
- slot._c && (slot._d = true);
3638
+ else if (typeof children === "object") {
3639
+ if (shapeFlag & 65) {
3640
+ const slot = children.default;
3641
+ if (slot) {
3642
+ slot._c && (slot._d = false);
3643
+ normalizeChildren(vnode, slot());
3644
+ slot._c && (slot._d = true);
3645
+ }
3646
+ return;
3647
+ } else {
3648
+ type = 32;
3649
+ const slotFlag = children._;
3650
+ if (!slotFlag && !isInternalObject(children)) children._ctx = currentRenderingInstance;
3651
+ else if (slotFlag === 3 && currentRenderingInstance) {
3652
+ if (currentRenderingInstance.slots._ === 1) children._ = 1;
3653
+ else {
3654
+ children._ = 2;
3655
+ vnode.patchFlag |= 1024;
3656
+ }
3657
+ }
4706
3658
  }
4707
- return;
4708
- } else {
4709
- type = 32;
4710
- const slotFlag = children._;
4711
- if (!slotFlag && !isInternalObject(children)) children._ctx = currentRenderingInstance;
4712
- else if (slotFlag === 3 && currentRenderingInstance) if (currentRenderingInstance.slots._ === 1) children._ = 1;
4713
- else {
4714
- children._ = 2;
4715
- vnode.patchFlag |= 1024;
3659
+ } else if (isFunction$1(children)) {
3660
+ if (shapeFlag & 65) {
3661
+ normalizeChildren(vnode, { default: children });
3662
+ return;
4716
3663
  }
4717
- }
4718
- else if (isFunction$1(children)) {
4719
3664
  children = {
4720
3665
  default: children,
4721
3666
  _ctx: currentRenderingInstance
@@ -4853,7 +3798,12 @@ function setupStatefulComponent(instance, isSSR) {
4853
3798
  if (isAsyncSetup) {
4854
3799
  setupResult.then(unsetCurrentInstance, unsetCurrentInstance);
4855
3800
  if (isSSR) return setupResult.then((resolvedResult) => {
4856
- handleSetupResult(instance, resolvedResult, isSSR);
3801
+ setInSSRSetupState(true);
3802
+ try {
3803
+ handleSetupResult(instance, resolvedResult, isSSR);
3804
+ } finally {
3805
+ setInSSRSetupState(false);
3806
+ }
4857
3807
  }).catch((e) => {
4858
3808
  handleError(e, instance, 0);
4859
3809
  });
@@ -4862,30 +3812,24 @@ function setupStatefulComponent(instance, isSSR) {
4862
3812
  } else finishComponentSetup(instance, isSSR);
4863
3813
  }
4864
3814
  function handleSetupResult(instance, setupResult, isSSR) {
4865
- if (isFunction$1(setupResult)) if (instance.type.__ssrInlineRender) instance.ssrRender = setupResult;
4866
- else instance.render = setupResult;
4867
- else if (isObject$1(setupResult)) instance.setupState = proxyRefs(setupResult);
3815
+ if (isFunction$1(setupResult)) {
3816
+ if (instance.type.__ssrInlineRender) instance.ssrRender = setupResult;
3817
+ else instance.render = setupResult;
3818
+ } else if (isObject$1(setupResult)) instance.setupState = proxyRefs(setupResult);
4868
3819
  finishComponentSetup(instance, isSSR);
4869
3820
  }
4870
- function registerRuntimeCompiler(_compile) {
4871
- compile$2 = _compile;
4872
- installWithProxy = (i) => {
4873
- if (i.render._rc) i.withProxy = new Proxy(i.ctx, RuntimeCompiledPublicInstanceProxyHandlers);
4874
- };
4875
- }
4876
3821
  function finishComponentSetup(instance, isSSR, skipOptions) {
4877
3822
  const Component = instance.type;
4878
3823
  if (!instance.render) {
4879
- if (!isSSR && compile$2 && !Component.render) {
3824
+ if (!isSSR && compile$1 && !Component.render) {
4880
3825
  const template = Component.template || resolveMergedOptions(instance).template;
4881
3826
  if (template) {
4882
3827
  const { isCustomElement, compilerOptions } = instance.appContext.config;
4883
3828
  const { delimiters, compilerOptions: componentCompilerOptions } = Component;
4884
- const finalCompilerOptions = extend(extend({
3829
+ Component.render = compile$1(template, extend(extend({
4885
3830
  isCustomElement,
4886
3831
  delimiters
4887
- }, compilerOptions), componentCompilerOptions);
4888
- Component.render = compile$2(template, finalCompilerOptions);
3832
+ }, compilerOptions), componentCompilerOptions));
4889
3833
  }
4890
3834
  }
4891
3835
  instance.render = Component.render || NOOP;
@@ -4935,11 +3879,12 @@ function h(type, propsOrChildren, children) {
4935
3879
  try {
4936
3880
  setBlockTracking(-1);
4937
3881
  const l = arguments.length;
4938
- if (l === 2) if (isObject$1(propsOrChildren) && !isArray$2(propsOrChildren)) {
4939
- if (isVNode$1(propsOrChildren)) return createVNode(type, null, [propsOrChildren]);
4940
- return createVNode(type, propsOrChildren);
4941
- } else return createVNode(type, null, propsOrChildren);
4942
- else {
3882
+ if (l === 2) {
3883
+ if (isObject$1(propsOrChildren) && !isArray$2(propsOrChildren)) {
3884
+ if (isVNode$1(propsOrChildren)) return createVNode(type, null, [propsOrChildren]);
3885
+ return createVNode(type, propsOrChildren);
3886
+ } else return createVNode(type, null, propsOrChildren);
3887
+ } else {
4943
3888
  if (l > 3) children = Array.prototype.slice.call(arguments, 2);
4944
3889
  else if (l === 3 && isVNode$1(children)) children = [children];
4945
3890
  return createVNode(type, propsOrChildren, children);
@@ -4948,98 +3893,10 @@ function h(type, propsOrChildren, children) {
4948
3893
  setBlockTracking(1);
4949
3894
  }
4950
3895
  }
4951
- function initCustomFormatter() {
4952
- return;
4953
- function isKeyOfType(Comp, key, type) {
4954
- const opts = Comp[type];
4955
- if (isArray$2(opts) && opts.includes(key) || isObject$1(opts) && key in opts) return true;
4956
- if (Comp.extends && isKeyOfType(Comp.extends, key, type)) return true;
4957
- if (Comp.mixins && Comp.mixins.some((m) => isKeyOfType(m, key, type))) return true;
4958
- }
4959
- }
4960
- function withMemo(memo, render, cache, index) {
4961
- const cached = cache[index];
4962
- if (cached && isMemoSame(cached, memo)) return cached;
4963
- const ret = render();
4964
- ret.memo = memo.slice();
4965
- ret.cacheIndex = index;
4966
- return cache[index] = ret;
4967
- }
4968
- function isMemoSame(cached, memo) {
4969
- const prev = cached.memo;
4970
- if (prev.length != memo.length) return false;
4971
- for (let i = 0; i < prev.length; i++) if (hasChanged(prev[i], memo[i])) return false;
4972
- if (isBlockTreeEnabled > 0 && currentBlock) currentBlock.push(cached);
4973
- return true;
4974
- }
4975
- var stack, ErrorCodes, ErrorTypeStrings$1, queue, flushIndex, pendingPostFlushCbs, activePostFlushCbs, postFlushIndex, resolvedPromise, currentFlushPromise, getId, devtools$1, buffer, currentRenderingInstance, currentScopeId, withScopeId, ssrContextKey, useSSRContext, pendingMounts, TeleportEndKey, isTeleport, isTeleportDisabled, isTeleportDeferred, isTargetSVG, isTargetMathML, resolveTarget, TeleportImpl, Teleport, leaveCbKey, enterCbKey$1, TransitionHookValidator, BaseTransitionPropsValidators, recursiveGetSubtree, BaseTransitionImpl, BaseTransition, pendingSetRefMap, hasLoggedMismatchError, logMismatchError, isSVGContainer, isMathMLContainer, getContainerType, isComment, allowMismatchAttr, MismatchTypeString, requestIdleCallback, cancelIdleCallback, hydrateOnIdle, hydrateOnVisible, hydrateOnMediaQuery, hydrateOnInteraction, isAsyncWrapper, isKeepAlive, KeepAlive, createHook, onBeforeMount, onMounted, onBeforeUpdate, onUpdated, onBeforeUnmount, onUnmounted, onServerPrefetch, onRenderTriggered, onRenderTracked, COMPONENTS, DIRECTIVES, NULL_DYNAMIC_COMPONENT, getPublicInstance, publicPropertiesMap, hasSetupBinding, PublicInstanceProxyHandlers, RuntimeCompiledPublicInstanceProxyHandlers, shouldCacheAccess, internalOptionMergeStrats, uid$1, currentApp, getModelModifiers, mixinEmitsCache, getFunctionalFallthrough, filterModelListeners, internalObjectProto, createInternalObject, isInternalObject, mixinPropsCache, isInternalKey, normalizeSlotValue, normalizeSlot$1, normalizeObjectSlots, normalizeVNodeSlots, assignSlots, initSlots, updateSlots, queuePostRenderEffect, isSuspense, suspenseId, Suspense, Fragment, Text, Comment, Static, blockStack, currentBlock, isBlockTreeEnabled, normalizeKey, normalizeRef, createVNode, emptyAppContext, uid, currentInstance, getCurrentInstance$1, internalSetCurrentInstance, setInSSRSetupState, setCurrentInstance, unsetCurrentInstance, isInSSRComponentSetup, compile$2, installWithProxy, isRuntimeOnly, attrsProxyHandlers, computed, version, warn$1, ErrorTypeStrings, devtools$2, setDevtoolsHook, ssrUtils;
3896
+ var queue, flushIndex, pendingPostFlushCbs, activePostFlushCbs, postFlushIndex, resolvedPromise, currentFlushPromise, getId, currentRenderingInstance, currentScopeId, ssrContextKey, useSSRContext, TeleportEndKey, isTeleport, leaveCbKey, pendingSetRefMap, isAsyncWrapper, isKeepAlive, createHook, onBeforeMount, onMounted, onBeforeUpdate, onUpdated, onBeforeUnmount, onUnmounted, onServerPrefetch, onRenderTriggered, onRenderTracked, COMPONENTS, NULL_DYNAMIC_COMPONENT, getPublicInstance, publicPropertiesMap, hasSetupBinding, PublicInstanceProxyHandlers, shouldCacheAccess, internalOptionMergeStrats, uid$1, currentApp, getModelModifiers, mixinEmitsCache, getFunctionalFallthrough, filterModelListeners, internalObjectProto, createInternalObject, isInternalObject, mixinPropsCache, isInternalKey, normalizeSlotValue, normalizeSlot$1, normalizeObjectSlots, normalizeVNodeSlots, assignSlots, initSlots, updateSlots, queuePostRenderEffect, isSuspense, Fragment, Text, Comment, Static, blockStack, currentBlock, isBlockTreeEnabled, normalizeKey, normalizeRef, createVNode, emptyAppContext, uid, currentInstance, getCurrentInstance$1, internalSetCurrentInstance, setInSSRSetupState, setCurrentInstance, unsetCurrentInstance, isInSSRComponentSetup, compile$1, installWithProxy, attrsProxyHandlers, computed, version;
4976
3897
  var init_runtime_core_esm_bundler = __esmMin((() => {
4977
3898
  init_reactivity_esm_bundler();
4978
3899
  init_shared_esm_bundler();
4979
- stack = [];
4980
- ErrorCodes = {
4981
- "SETUP_FUNCTION": 0,
4982
- "0": "SETUP_FUNCTION",
4983
- "RENDER_FUNCTION": 1,
4984
- "1": "RENDER_FUNCTION",
4985
- "NATIVE_EVENT_HANDLER": 5,
4986
- "5": "NATIVE_EVENT_HANDLER",
4987
- "COMPONENT_EVENT_HANDLER": 6,
4988
- "6": "COMPONENT_EVENT_HANDLER",
4989
- "VNODE_HOOK": 7,
4990
- "7": "VNODE_HOOK",
4991
- "DIRECTIVE_HOOK": 8,
4992
- "8": "DIRECTIVE_HOOK",
4993
- "TRANSITION_HOOK": 9,
4994
- "9": "TRANSITION_HOOK",
4995
- "APP_ERROR_HANDLER": 10,
4996
- "10": "APP_ERROR_HANDLER",
4997
- "APP_WARN_HANDLER": 11,
4998
- "11": "APP_WARN_HANDLER",
4999
- "FUNCTION_REF": 12,
5000
- "12": "FUNCTION_REF",
5001
- "ASYNC_COMPONENT_LOADER": 13,
5002
- "13": "ASYNC_COMPONENT_LOADER",
5003
- "SCHEDULER": 14,
5004
- "14": "SCHEDULER",
5005
- "COMPONENT_UPDATE": 15,
5006
- "15": "COMPONENT_UPDATE",
5007
- "APP_UNMOUNT_CLEANUP": 16,
5008
- "16": "APP_UNMOUNT_CLEANUP"
5009
- };
5010
- ErrorTypeStrings$1 = {
5011
- ["sp"]: "serverPrefetch hook",
5012
- ["bc"]: "beforeCreate hook",
5013
- ["c"]: "created hook",
5014
- ["bm"]: "beforeMount hook",
5015
- ["m"]: "mounted hook",
5016
- ["bu"]: "beforeUpdate hook",
5017
- ["u"]: "updated",
5018
- ["bum"]: "beforeUnmount hook",
5019
- ["um"]: "unmounted hook",
5020
- ["a"]: "activated hook",
5021
- ["da"]: "deactivated hook",
5022
- ["ec"]: "errorCaptured hook",
5023
- ["rtc"]: "renderTracked hook",
5024
- ["rtg"]: "renderTriggered hook",
5025
- [0]: "setup function",
5026
- [1]: "render function",
5027
- [2]: "watcher getter",
5028
- [3]: "watcher callback",
5029
- [4]: "watcher cleanup function",
5030
- [5]: "native event handler",
5031
- [6]: "component event handler",
5032
- [7]: "vnode hook",
5033
- [8]: "directive hook",
5034
- [9]: "transition hook",
5035
- [10]: "app errorHandler",
5036
- [11]: "app warnHandler",
5037
- [12]: "ref function",
5038
- [13]: "async component loader",
5039
- [14]: "scheduler flush",
5040
- [15]: "component update",
5041
- [16]: "app unmount cleanup function"
5042
- };
5043
3900
  queue = [];
5044
3901
  flushIndex = -1;
5045
3902
  pendingPostFlushCbs = [];
@@ -5048,10 +3905,8 @@ var init_runtime_core_esm_bundler = __esmMin((() => {
5048
3905
  resolvedPromise = /* @__PURE__ */ Promise.resolve();
5049
3906
  currentFlushPromise = null;
5050
3907
  getId = (job) => job.id == null ? job.flags & 2 ? -1 : Infinity : job.id;
5051
- buffer = [];
5052
3908
  currentRenderingInstance = null;
5053
3909
  currentScopeId = null;
5054
- withScopeId = (_id) => withCtx;
5055
3910
  ssrContextKey = /* @__PURE__ */ Symbol.for("v-scx");
5056
3911
  useSSRContext = () => {
5057
3912
  {
@@ -5060,430 +3915,14 @@ var init_runtime_core_esm_bundler = __esmMin((() => {
5060
3915
  return ctx;
5061
3916
  }
5062
3917
  };
5063
- pendingMounts = /* @__PURE__ */ new WeakMap();
5064
3918
  TeleportEndKey = /* @__PURE__ */ Symbol("_vte");
5065
3919
  isTeleport = (type) => type.__isTeleport;
5066
- isTeleportDisabled = (props) => props && (props.disabled || props.disabled === "");
5067
- isTeleportDeferred = (props) => props && (props.defer || props.defer === "");
5068
- isTargetSVG = (target) => typeof SVGElement !== "undefined" && target instanceof SVGElement;
5069
- isTargetMathML = (target) => typeof MathMLElement === "function" && target instanceof MathMLElement;
5070
- resolveTarget = (props, select) => {
5071
- const targetSelector = props && props.to;
5072
- if (isString$1(targetSelector)) if (!select) return null;
5073
- else return select(targetSelector);
5074
- else return targetSelector;
5075
- };
5076
- TeleportImpl = {
5077
- name: "Teleport",
5078
- __isTeleport: true,
5079
- process(n1, n2, container, anchor, parentComponent, parentSuspense, namespace, slotScopeIds, optimized, internals) {
5080
- const { mc: mountChildren, pc: patchChildren, pbc: patchBlockChildren, o: { insert, querySelector, createText, createComment, parentNode } } = internals;
5081
- const disabled = isTeleportDisabled(n2.props);
5082
- let { dynamicChildren } = n2;
5083
- const mount = (vnode, container2, anchor2) => {
5084
- if (vnode.shapeFlag & 16) mountChildren(vnode.children, container2, anchor2, parentComponent, parentSuspense, namespace, slotScopeIds, optimized);
5085
- };
5086
- const mountToTarget = (vnode = n2) => {
5087
- const disabled2 = isTeleportDisabled(vnode.props);
5088
- const target = vnode.target = resolveTarget(vnode.props, querySelector);
5089
- const targetAnchor = prepareAnchor(target, vnode, createText, insert);
5090
- if (target) {
5091
- if (namespace !== "svg" && isTargetSVG(target)) namespace = "svg";
5092
- else if (namespace !== "mathml" && isTargetMathML(target)) namespace = "mathml";
5093
- if (parentComponent && parentComponent.isCE) (parentComponent.ce._teleportTargets || (parentComponent.ce._teleportTargets = /* @__PURE__ */ new Set())).add(target);
5094
- if (!disabled2) {
5095
- mount(vnode, target, targetAnchor);
5096
- updateCssVars(vnode, false);
5097
- }
5098
- }
5099
- };
5100
- const queuePendingMount = (vnode) => {
5101
- const mountJob = () => {
5102
- if (pendingMounts.get(vnode) !== mountJob) return;
5103
- pendingMounts.delete(vnode);
5104
- if (isTeleportDisabled(vnode.props)) {
5105
- mount(vnode, parentNode(vnode.el) || container, vnode.anchor);
5106
- updateCssVars(vnode, true);
5107
- }
5108
- mountToTarget(vnode);
5109
- };
5110
- pendingMounts.set(vnode, mountJob);
5111
- queuePostRenderEffect(mountJob, parentSuspense);
5112
- };
5113
- if (n1 == null) {
5114
- const placeholder = n2.el = createText("");
5115
- const mainAnchor = n2.anchor = createText("");
5116
- insert(placeholder, container, anchor);
5117
- insert(mainAnchor, container, anchor);
5118
- if (isTeleportDeferred(n2.props) || parentSuspense && parentSuspense.pendingBranch) {
5119
- queuePendingMount(n2);
5120
- return;
5121
- }
5122
- if (disabled) {
5123
- mount(n2, container, mainAnchor);
5124
- updateCssVars(n2, true);
5125
- }
5126
- mountToTarget();
5127
- } else {
5128
- n2.el = n1.el;
5129
- const mainAnchor = n2.anchor = n1.anchor;
5130
- const pendingMount = pendingMounts.get(n1);
5131
- if (pendingMount) {
5132
- pendingMount.flags |= 8;
5133
- pendingMounts.delete(n1);
5134
- queuePendingMount(n2);
5135
- return;
5136
- }
5137
- n2.targetStart = n1.targetStart;
5138
- const target = n2.target = n1.target;
5139
- const targetAnchor = n2.targetAnchor = n1.targetAnchor;
5140
- const wasDisabled = isTeleportDisabled(n1.props);
5141
- const currentContainer = wasDisabled ? container : target;
5142
- const currentAnchor = wasDisabled ? mainAnchor : targetAnchor;
5143
- if (namespace === "svg" || isTargetSVG(target)) namespace = "svg";
5144
- else if (namespace === "mathml" || isTargetMathML(target)) namespace = "mathml";
5145
- if (dynamicChildren) {
5146
- patchBlockChildren(n1.dynamicChildren, dynamicChildren, currentContainer, parentComponent, parentSuspense, namespace, slotScopeIds);
5147
- traverseStaticChildren(n1, n2, true);
5148
- } else if (!optimized) patchChildren(n1, n2, currentContainer, currentAnchor, parentComponent, parentSuspense, namespace, slotScopeIds, false);
5149
- if (disabled) {
5150
- if (!wasDisabled) moveTeleport(n2, container, mainAnchor, internals, 1);
5151
- else if (n2.props && n1.props && n2.props.to !== n1.props.to) n2.props.to = n1.props.to;
5152
- } else if ((n2.props && n2.props.to) !== (n1.props && n1.props.to)) {
5153
- const nextTarget = n2.target = resolveTarget(n2.props, querySelector);
5154
- if (nextTarget) moveTeleport(n2, nextTarget, null, internals, 0);
5155
- } else if (wasDisabled) moveTeleport(n2, target, targetAnchor, internals, 1);
5156
- updateCssVars(n2, disabled);
5157
- }
5158
- },
5159
- remove(vnode, parentComponent, parentSuspense, { um: unmount, o: { remove: hostRemove } }, doRemove) {
5160
- const { shapeFlag, children, anchor, targetStart, targetAnchor, target, props } = vnode;
5161
- let shouldRemove = doRemove || !isTeleportDisabled(props);
5162
- const pendingMount = pendingMounts.get(vnode);
5163
- if (pendingMount) {
5164
- pendingMount.flags |= 8;
5165
- pendingMounts.delete(vnode);
5166
- shouldRemove = false;
5167
- }
5168
- if (target) {
5169
- hostRemove(targetStart);
5170
- hostRemove(targetAnchor);
5171
- }
5172
- doRemove && hostRemove(anchor);
5173
- if (shapeFlag & 16) for (let i = 0; i < children.length; i++) {
5174
- const child = children[i];
5175
- unmount(child, parentComponent, parentSuspense, shouldRemove, !!child.dynamicChildren);
5176
- }
5177
- },
5178
- move: moveTeleport,
5179
- hydrate: hydrateTeleport
5180
- };
5181
- Teleport = TeleportImpl;
5182
3920
  leaveCbKey = /* @__PURE__ */ Symbol("_leaveCb");
5183
- enterCbKey$1 = /* @__PURE__ */ Symbol("_enterCb");
5184
- TransitionHookValidator = [Function, Array];
5185
- BaseTransitionPropsValidators = {
5186
- mode: String,
5187
- appear: Boolean,
5188
- persisted: Boolean,
5189
- onBeforeEnter: TransitionHookValidator,
5190
- onEnter: TransitionHookValidator,
5191
- onAfterEnter: TransitionHookValidator,
5192
- onEnterCancelled: TransitionHookValidator,
5193
- onBeforeLeave: TransitionHookValidator,
5194
- onLeave: TransitionHookValidator,
5195
- onAfterLeave: TransitionHookValidator,
5196
- onLeaveCancelled: TransitionHookValidator,
5197
- onBeforeAppear: TransitionHookValidator,
5198
- onAppear: TransitionHookValidator,
5199
- onAfterAppear: TransitionHookValidator,
5200
- onAppearCancelled: TransitionHookValidator
5201
- };
5202
- recursiveGetSubtree = (instance) => {
5203
- const subTree = instance.subTree;
5204
- return subTree.component ? recursiveGetSubtree(subTree.component) : subTree;
5205
- };
5206
- BaseTransitionImpl = {
5207
- name: `BaseTransition`,
5208
- props: BaseTransitionPropsValidators,
5209
- setup(props, { slots }) {
5210
- const instance = getCurrentInstance$1();
5211
- const state = useTransitionState();
5212
- return () => {
5213
- const children = slots.default && getTransitionRawChildren(slots.default(), true);
5214
- const child = children && children.length ? findNonCommentChild(children) : instance.subTree ? createCommentVNode() : void 0;
5215
- if (!child) return;
5216
- const rawProps = /* @__PURE__ */ toRaw(props);
5217
- const { mode } = rawProps;
5218
- if (state.isLeaving) return emptyPlaceholder(child);
5219
- const innerChild = getInnerChild$1(child);
5220
- if (!innerChild) return emptyPlaceholder(child);
5221
- let enterHooks = resolveTransitionHooks(innerChild, rawProps, state, instance, (hooks) => enterHooks = hooks);
5222
- if (innerChild.type !== Comment) setTransitionHooks(innerChild, enterHooks);
5223
- let oldInnerChild = instance.subTree && getInnerChild$1(instance.subTree);
5224
- if (oldInnerChild && oldInnerChild.type !== Comment && !isSameVNodeType(oldInnerChild, innerChild) && recursiveGetSubtree(instance).type !== Comment) {
5225
- let leavingHooks = resolveTransitionHooks(oldInnerChild, rawProps, state, instance);
5226
- setTransitionHooks(oldInnerChild, leavingHooks);
5227
- if (mode === "out-in" && innerChild.type !== Comment) {
5228
- state.isLeaving = true;
5229
- leavingHooks.afterLeave = () => {
5230
- state.isLeaving = false;
5231
- if (!(instance.job.flags & 8)) instance.update();
5232
- delete leavingHooks.afterLeave;
5233
- oldInnerChild = void 0;
5234
- };
5235
- return emptyPlaceholder(child);
5236
- } else if (mode === "in-out" && innerChild.type !== Comment) leavingHooks.delayLeave = (el, earlyRemove, delayedLeave) => {
5237
- const leavingVNodesCache = getLeavingNodesForType(state, oldInnerChild);
5238
- leavingVNodesCache[String(oldInnerChild.key)] = oldInnerChild;
5239
- el[leaveCbKey] = () => {
5240
- earlyRemove();
5241
- el[leaveCbKey] = void 0;
5242
- delete enterHooks.delayedLeave;
5243
- oldInnerChild = void 0;
5244
- };
5245
- enterHooks.delayedLeave = () => {
5246
- delayedLeave();
5247
- delete enterHooks.delayedLeave;
5248
- oldInnerChild = void 0;
5249
- };
5250
- };
5251
- else oldInnerChild = void 0;
5252
- } else if (oldInnerChild) oldInnerChild = void 0;
5253
- return child;
5254
- };
5255
- }
5256
- };
5257
- BaseTransition = BaseTransitionImpl;
5258
3921
  pendingSetRefMap = /* @__PURE__ */ new WeakMap();
5259
- hasLoggedMismatchError = false;
5260
- logMismatchError = () => {
5261
- if (hasLoggedMismatchError) return;
5262
- console.error("Hydration completed but contains mismatches.");
5263
- hasLoggedMismatchError = true;
5264
- };
5265
- isSVGContainer = (container) => container.namespaceURI.includes("svg") && container.tagName !== "foreignObject";
5266
- isMathMLContainer = (container) => container.namespaceURI.includes("MathML");
5267
- getContainerType = (container) => {
5268
- if (container.nodeType !== 1) return void 0;
5269
- if (isSVGContainer(container)) return "svg";
5270
- if (isMathMLContainer(container)) return "mathml";
5271
- };
5272
- isComment = (node) => node.nodeType === 8;
5273
- allowMismatchAttr = "data-allow-mismatch";
5274
- MismatchTypeString = {
5275
- [0]: "text",
5276
- [1]: "children",
5277
- [2]: "class",
5278
- [3]: "style",
5279
- [4]: "attribute"
5280
- };
5281
- requestIdleCallback = getGlobalThis$1().requestIdleCallback || ((cb) => setTimeout(cb, 1));
5282
- cancelIdleCallback = getGlobalThis$1().cancelIdleCallback || ((id) => clearTimeout(id));
5283
- hydrateOnIdle = (timeout = 1e4) => (hydrate) => {
5284
- const id = requestIdleCallback(hydrate, { timeout });
5285
- return () => cancelIdleCallback(id);
5286
- };
5287
- hydrateOnVisible = (opts) => (hydrate, forEach) => {
5288
- const ob = new IntersectionObserver((entries) => {
5289
- for (const e of entries) {
5290
- if (!e.isIntersecting) continue;
5291
- ob.disconnect();
5292
- hydrate();
5293
- break;
5294
- }
5295
- }, opts);
5296
- forEach((el) => {
5297
- if (!(el instanceof Element)) return;
5298
- if (elementIsVisibleInViewport(el)) {
5299
- hydrate();
5300
- ob.disconnect();
5301
- return false;
5302
- }
5303
- ob.observe(el);
5304
- });
5305
- return () => ob.disconnect();
5306
- };
5307
- hydrateOnMediaQuery = (query) => (hydrate) => {
5308
- if (query) {
5309
- const mql = matchMedia(query);
5310
- if (mql.matches) hydrate();
5311
- else {
5312
- mql.addEventListener("change", hydrate, { once: true });
5313
- return () => mql.removeEventListener("change", hydrate);
5314
- }
5315
- }
5316
- };
5317
- hydrateOnInteraction = (interactions = []) => (hydrate, forEach) => {
5318
- if (isString$1(interactions)) interactions = [interactions];
5319
- let hasHydrated = false;
5320
- const doHydrate = (e) => {
5321
- if (!hasHydrated) {
5322
- hasHydrated = true;
5323
- teardown();
5324
- hydrate();
5325
- e.target.dispatchEvent(new e.constructor(e.type, e));
5326
- }
5327
- };
5328
- const teardown = () => {
5329
- forEach((el) => {
5330
- for (const i of interactions) el.removeEventListener(i, doHydrate);
5331
- });
5332
- };
5333
- forEach((el) => {
5334
- for (const i of interactions) el.addEventListener(i, doHydrate, { once: true });
5335
- });
5336
- return teardown;
5337
- };
3922
+ getGlobalThis$1().requestIdleCallback;
3923
+ getGlobalThis$1().cancelIdleCallback;
5338
3924
  isAsyncWrapper = (i) => !!i.type.__asyncLoader;
5339
3925
  isKeepAlive = (vnode) => vnode.type.__isKeepAlive;
5340
- KeepAlive = {
5341
- name: `KeepAlive`,
5342
- __isKeepAlive: true,
5343
- props: {
5344
- include: [
5345
- String,
5346
- RegExp,
5347
- Array
5348
- ],
5349
- exclude: [
5350
- String,
5351
- RegExp,
5352
- Array
5353
- ],
5354
- max: [String, Number]
5355
- },
5356
- setup(props, { slots }) {
5357
- const instance = getCurrentInstance$1();
5358
- const sharedContext = instance.ctx;
5359
- if (!sharedContext.renderer) return () => {
5360
- const children = slots.default && slots.default();
5361
- return children && children.length === 1 ? children[0] : children;
5362
- };
5363
- const cache = /* @__PURE__ */ new Map();
5364
- const keys = /* @__PURE__ */ new Set();
5365
- let current = null;
5366
- const parentSuspense = instance.suspense;
5367
- const { renderer: { p: patch, m: move, um: _unmount, o: { createElement } } } = sharedContext;
5368
- const storageContainer = createElement("div");
5369
- sharedContext.activate = (vnode, container, anchor, namespace, optimized) => {
5370
- const instance2 = vnode.component;
5371
- move(vnode, container, anchor, 0, parentSuspense);
5372
- patch(instance2.vnode, vnode, container, anchor, instance2, parentSuspense, namespace, vnode.slotScopeIds, optimized);
5373
- queuePostRenderEffect(() => {
5374
- instance2.isDeactivated = false;
5375
- if (instance2.a) invokeArrayFns(instance2.a);
5376
- const vnodeHook = vnode.props && vnode.props.onVnodeMounted;
5377
- if (vnodeHook) invokeVNodeHook(vnodeHook, instance2.parent, vnode);
5378
- }, parentSuspense);
5379
- };
5380
- sharedContext.deactivate = (vnode) => {
5381
- const instance2 = vnode.component;
5382
- invalidateMount(instance2.m);
5383
- invalidateMount(instance2.a);
5384
- move(vnode, storageContainer, null, 1, parentSuspense);
5385
- queuePostRenderEffect(() => {
5386
- if (instance2.da) invokeArrayFns(instance2.da);
5387
- const vnodeHook = vnode.props && vnode.props.onVnodeUnmounted;
5388
- if (vnodeHook) invokeVNodeHook(vnodeHook, instance2.parent, vnode);
5389
- instance2.isDeactivated = true;
5390
- }, parentSuspense);
5391
- };
5392
- function unmount(vnode) {
5393
- resetShapeFlag(vnode);
5394
- _unmount(vnode, instance, parentSuspense, true);
5395
- }
5396
- function pruneCache(filter) {
5397
- cache.forEach((vnode, key) => {
5398
- const name = getComponentName(isAsyncWrapper(vnode) ? vnode.type.__asyncResolved || {} : vnode.type);
5399
- if (name && !filter(name)) pruneCacheEntry(key);
5400
- });
5401
- }
5402
- function pruneCacheEntry(key) {
5403
- const cached = cache.get(key);
5404
- if (cached && (!current || !isSameVNodeType(cached, current))) unmount(cached);
5405
- else if (current) resetShapeFlag(current);
5406
- cache.delete(key);
5407
- keys.delete(key);
5408
- }
5409
- watch(() => [props.include, props.exclude], ([include, exclude]) => {
5410
- include && pruneCache((name) => matches(include, name));
5411
- exclude && pruneCache((name) => !matches(exclude, name));
5412
- }, {
5413
- flush: "post",
5414
- deep: true
5415
- });
5416
- let pendingCacheKey = null;
5417
- const cacheSubtree = () => {
5418
- if (pendingCacheKey != null) if (isSuspense(instance.subTree.type)) queuePostRenderEffect(() => {
5419
- cache.set(pendingCacheKey, getInnerChild(instance.subTree));
5420
- }, instance.subTree.suspense);
5421
- else cache.set(pendingCacheKey, getInnerChild(instance.subTree));
5422
- };
5423
- onMounted(cacheSubtree);
5424
- onUpdated(cacheSubtree);
5425
- onBeforeUnmount(() => {
5426
- cache.forEach((cached) => {
5427
- const { subTree, suspense } = instance;
5428
- const vnode = getInnerChild(subTree);
5429
- if (cached.type === vnode.type && cached.key === vnode.key) {
5430
- resetShapeFlag(vnode);
5431
- const da = vnode.component.da;
5432
- da && queuePostRenderEffect(da, suspense);
5433
- return;
5434
- }
5435
- unmount(cached);
5436
- });
5437
- });
5438
- return () => {
5439
- pendingCacheKey = null;
5440
- if (!slots.default) return current = null;
5441
- const children = slots.default();
5442
- const rawVNode = children[0];
5443
- if (children.length > 1) {
5444
- current = null;
5445
- return children;
5446
- } else if (!isVNode$1(rawVNode) || !(rawVNode.shapeFlag & 4) && !(rawVNode.shapeFlag & 128)) {
5447
- current = null;
5448
- return rawVNode;
5449
- }
5450
- let vnode = getInnerChild(rawVNode);
5451
- if (vnode.type === Comment) {
5452
- current = null;
5453
- return vnode;
5454
- }
5455
- const comp = vnode.type;
5456
- const name = getComponentName(isAsyncWrapper(vnode) ? vnode.type.__asyncResolved || {} : comp);
5457
- const { include, exclude, max } = props;
5458
- if (include && (!name || !matches(include, name)) || exclude && name && matches(exclude, name)) {
5459
- vnode.shapeFlag &= -257;
5460
- current = vnode;
5461
- return rawVNode;
5462
- }
5463
- const key = vnode.key == null ? comp : vnode.key;
5464
- const cachedVNode = cache.get(key);
5465
- if (vnode.el) {
5466
- vnode = cloneVNode(vnode);
5467
- if (rawVNode.shapeFlag & 128) rawVNode.ssContent = vnode;
5468
- }
5469
- pendingCacheKey = key;
5470
- if (cachedVNode) {
5471
- vnode.el = cachedVNode.el;
5472
- vnode.component = cachedVNode.component;
5473
- if (vnode.transition) setTransitionHooks(vnode, vnode.transition);
5474
- vnode.shapeFlag |= 512;
5475
- keys.delete(key);
5476
- keys.add(key);
5477
- } else {
5478
- keys.add(key);
5479
- if (max && keys.size > parseInt(max, 10)) pruneCacheEntry(keys.values().next().value);
5480
- }
5481
- vnode.shapeFlag |= 256;
5482
- current = vnode;
5483
- return isSuspense(rawVNode.type) ? rawVNode : vnode;
5484
- };
5485
- }
5486
- };
5487
3926
  createHook = (lifecycle) => (hook, target = currentInstance) => {
5488
3927
  if (!isInSSRComponentSetup || lifecycle === "sp") injectHook(lifecycle, (...args) => hook(...args), target);
5489
3928
  };
@@ -5497,7 +3936,6 @@ var init_runtime_core_esm_bundler = __esmMin((() => {
5497
3936
  onRenderTriggered = createHook("rtg");
5498
3937
  onRenderTracked = createHook("rtc");
5499
3938
  COMPONENTS = "components";
5500
- DIRECTIVES = "directives";
5501
3939
  NULL_DYNAMIC_COMPONENT = /* @__PURE__ */ Symbol.for("v-ndc");
5502
3940
  getPublicInstance = (i) => {
5503
3941
  if (!i) return null;
@@ -5584,15 +4022,6 @@ var init_runtime_core_esm_bundler = __esmMin((() => {
5584
4022
  return Reflect.defineProperty(target, key, descriptor);
5585
4023
  }
5586
4024
  };
5587
- RuntimeCompiledPublicInstanceProxyHandlers = /* @__PURE__ */ extend({}, PublicInstanceProxyHandlers, {
5588
- get(target, key) {
5589
- if (key === Symbol.unscopables) return;
5590
- return PublicInstanceProxyHandlers.get(target, key, target);
5591
- },
5592
- has(_, key) {
5593
- return key[0] !== "_" && !isGloballyAllowed(key);
5594
- }
5595
- });
5596
4025
  shouldCacheAccess = true;
5597
4026
  internalOptionMergeStrats = {
5598
4027
  data: mergeDataFn,
@@ -5685,9 +4114,10 @@ var init_runtime_core_esm_bundler = __esmMin((() => {
5685
4114
  let deletionComparisonTarget = EMPTY_OBJ;
5686
4115
  if (vnode.shapeFlag & 32) {
5687
4116
  const type = children._;
5688
- if (type) if (optimized && type === 1) needDeletionCheck = false;
5689
- else assignSlots(slots, children, optimized);
5690
- else {
4117
+ if (type) {
4118
+ if (optimized && type === 1) needDeletionCheck = false;
4119
+ else assignSlots(slots, children, optimized);
4120
+ } else {
5691
4121
  needDeletionCheck = !children.$stable;
5692
4122
  normalizeObjectSlots(children, slots);
5693
4123
  }
@@ -5702,25 +4132,6 @@ var init_runtime_core_esm_bundler = __esmMin((() => {
5702
4132
  };
5703
4133
  queuePostRenderEffect = queueEffectWithSuspense;
5704
4134
  isSuspense = (type) => type.__isSuspense;
5705
- suspenseId = 0;
5706
- Suspense = {
5707
- name: "Suspense",
5708
- __isSuspense: true,
5709
- process(n1, n2, container, anchor, parentComponent, parentSuspense, namespace, slotScopeIds, optimized, rendererInternals) {
5710
- if (n1 == null) mountSuspense(n2, container, anchor, parentComponent, parentSuspense, namespace, slotScopeIds, optimized, rendererInternals);
5711
- else {
5712
- if (parentSuspense && parentSuspense.deps > 0 && !n1.suspense.isInFallback) {
5713
- n2.suspense = n1.suspense;
5714
- n2.suspense.vnode = n2;
5715
- n2.el = n1.el;
5716
- return;
5717
- }
5718
- patchSuspense(n1, n2, container, anchor, parentComponent, namespace, slotScopeIds, optimized, rendererInternals);
5719
- }
5720
- },
5721
- hydrate: hydrateSuspense,
5722
- normalize: normalizeSuspenseChildren
5723
- };
5724
4135
  Fragment = /* @__PURE__ */ Symbol.for("v-fgt");
5725
4136
  Text = /* @__PURE__ */ Symbol.for("v-txt");
5726
4137
  Comment = /* @__PURE__ */ Symbol.for("v-cmt");
@@ -5771,7 +4182,6 @@ var init_runtime_core_esm_bundler = __esmMin((() => {
5771
4182
  internalSetCurrentInstance(null);
5772
4183
  };
5773
4184
  isInSSRComponentSetup = false;
5774
- isRuntimeOnly = () => !compile$2;
5775
4185
  attrsProxyHandlers = { get(target, key) {
5776
4186
  track(target, "get", "");
5777
4187
  return target[key];
@@ -5779,209 +4189,15 @@ var init_runtime_core_esm_bundler = __esmMin((() => {
5779
4189
  computed = (getterOrOptions, debugOptions) => {
5780
4190
  return /* @__PURE__ */ computed$1(getterOrOptions, debugOptions, isInSSRComponentSetup);
5781
4191
  };
5782
- version = "3.5.34";
5783
- warn$1 = NOOP;
5784
- ErrorTypeStrings = ErrorTypeStrings$1;
5785
- devtools$2 = devtools$1;
5786
- setDevtoolsHook = setDevtoolsHook$1;
5787
- ssrUtils = {
5788
- createComponentInstance,
5789
- setupComponent,
5790
- renderComponentRoot,
5791
- setCurrentRenderingInstance,
5792
- isVNode: isVNode$1,
5793
- normalizeVNode,
5794
- getComponentPublicInstance,
5795
- ensureValidVNode,
5796
- pushWarningContext,
5797
- popWarningContext
5798
- };
4192
+ version = "3.5.41";
5799
4193
  }));
5800
4194
  //#endregion
5801
- //#region node_modules/.pnpm/@vue+runtime-dom@3.5.34/node_modules/@vue/runtime-dom/dist/runtime-dom.esm-bundler.js
4195
+ //#region node_modules/.pnpm/@vue+runtime-dom@3.5.41/node_modules/@vue/runtime-dom/dist/runtime-dom.esm-bundler.js
5802
4196
  /**
5803
- * @vue/runtime-dom v3.5.34
4197
+ * @vue/runtime-dom v3.5.41
5804
4198
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
5805
4199
  * @license MIT
5806
4200
  **/
5807
- function resolveTransitionProps(rawProps) {
5808
- const baseProps = {};
5809
- for (const key in rawProps) if (!(key in DOMTransitionPropsValidators)) baseProps[key] = rawProps[key];
5810
- if (rawProps.css === false) return baseProps;
5811
- const { name = "v", type, duration, enterFromClass = `${name}-enter-from`, enterActiveClass = `${name}-enter-active`, enterToClass = `${name}-enter-to`, appearFromClass = enterFromClass, appearActiveClass = enterActiveClass, appearToClass = enterToClass, leaveFromClass = `${name}-leave-from`, leaveActiveClass = `${name}-leave-active`, leaveToClass = `${name}-leave-to` } = rawProps;
5812
- const durations = normalizeDuration(duration);
5813
- const enterDuration = durations && durations[0];
5814
- const leaveDuration = durations && durations[1];
5815
- const { onBeforeEnter, onEnter, onEnterCancelled, onLeave, onLeaveCancelled, onBeforeAppear = onBeforeEnter, onAppear = onEnter, onAppearCancelled = onEnterCancelled } = baseProps;
5816
- const finishEnter = (el, isAppear, done, isCancelled) => {
5817
- el._enterCancelled = isCancelled;
5818
- removeTransitionClass(el, isAppear ? appearToClass : enterToClass);
5819
- removeTransitionClass(el, isAppear ? appearActiveClass : enterActiveClass);
5820
- done && done();
5821
- };
5822
- const finishLeave = (el, done) => {
5823
- el._isLeaving = false;
5824
- removeTransitionClass(el, leaveFromClass);
5825
- removeTransitionClass(el, leaveToClass);
5826
- removeTransitionClass(el, leaveActiveClass);
5827
- done && done();
5828
- };
5829
- const makeEnterHook = (isAppear) => {
5830
- return (el, done) => {
5831
- const hook = isAppear ? onAppear : onEnter;
5832
- const resolve = () => finishEnter(el, isAppear, done);
5833
- callHook(hook, [el, resolve]);
5834
- nextFrame(() => {
5835
- removeTransitionClass(el, isAppear ? appearFromClass : enterFromClass);
5836
- addTransitionClass(el, isAppear ? appearToClass : enterToClass);
5837
- if (!hasExplicitCallback(hook)) whenTransitionEnds(el, type, enterDuration, resolve);
5838
- });
5839
- };
5840
- };
5841
- return extend(baseProps, {
5842
- onBeforeEnter(el) {
5843
- callHook(onBeforeEnter, [el]);
5844
- addTransitionClass(el, enterFromClass);
5845
- addTransitionClass(el, enterActiveClass);
5846
- },
5847
- onBeforeAppear(el) {
5848
- callHook(onBeforeAppear, [el]);
5849
- addTransitionClass(el, appearFromClass);
5850
- addTransitionClass(el, appearActiveClass);
5851
- },
5852
- onEnter: makeEnterHook(false),
5853
- onAppear: makeEnterHook(true),
5854
- onLeave(el, done) {
5855
- el._isLeaving = true;
5856
- const resolve = () => finishLeave(el, done);
5857
- addTransitionClass(el, leaveFromClass);
5858
- if (!el._enterCancelled) {
5859
- forceReflow(el);
5860
- addTransitionClass(el, leaveActiveClass);
5861
- } else {
5862
- addTransitionClass(el, leaveActiveClass);
5863
- forceReflow(el);
5864
- }
5865
- nextFrame(() => {
5866
- if (!el._isLeaving) return;
5867
- removeTransitionClass(el, leaveFromClass);
5868
- addTransitionClass(el, leaveToClass);
5869
- if (!hasExplicitCallback(onLeave)) whenTransitionEnds(el, type, leaveDuration, resolve);
5870
- });
5871
- callHook(onLeave, [el, resolve]);
5872
- },
5873
- onEnterCancelled(el) {
5874
- finishEnter(el, false, void 0, true);
5875
- callHook(onEnterCancelled, [el]);
5876
- },
5877
- onAppearCancelled(el) {
5878
- finishEnter(el, true, void 0, true);
5879
- callHook(onAppearCancelled, [el]);
5880
- },
5881
- onLeaveCancelled(el) {
5882
- finishLeave(el);
5883
- callHook(onLeaveCancelled, [el]);
5884
- }
5885
- });
5886
- }
5887
- function normalizeDuration(duration) {
5888
- if (duration == null) return null;
5889
- else if (isObject$1(duration)) return [NumberOf(duration.enter), NumberOf(duration.leave)];
5890
- else {
5891
- const n = NumberOf(duration);
5892
- return [n, n];
5893
- }
5894
- }
5895
- function NumberOf(val) {
5896
- return toNumber(val);
5897
- }
5898
- function addTransitionClass(el, cls) {
5899
- cls.split(/\s+/).forEach((c) => c && el.classList.add(c));
5900
- (el[vtcKey] || (el[vtcKey] = /* @__PURE__ */ new Set())).add(cls);
5901
- }
5902
- function removeTransitionClass(el, cls) {
5903
- cls.split(/\s+/).forEach((c) => c && el.classList.remove(c));
5904
- const _vtc = el[vtcKey];
5905
- if (_vtc) {
5906
- _vtc.delete(cls);
5907
- if (!_vtc.size) el[vtcKey] = void 0;
5908
- }
5909
- }
5910
- function nextFrame(cb) {
5911
- requestAnimationFrame(() => {
5912
- requestAnimationFrame(cb);
5913
- });
5914
- }
5915
- function whenTransitionEnds(el, expectedType, explicitTimeout, resolve) {
5916
- const id = el._endId = ++endId;
5917
- const resolveIfNotStale = () => {
5918
- if (id === el._endId) resolve();
5919
- };
5920
- if (explicitTimeout != null) return setTimeout(resolveIfNotStale, explicitTimeout);
5921
- const { type, timeout, propCount } = getTransitionInfo(el, expectedType);
5922
- if (!type) return resolve();
5923
- const endEvent = type + "end";
5924
- let ended = 0;
5925
- const end = () => {
5926
- el.removeEventListener(endEvent, onEnd);
5927
- resolveIfNotStale();
5928
- };
5929
- const onEnd = (e) => {
5930
- if (e.target === el && ++ended >= propCount) end();
5931
- };
5932
- setTimeout(() => {
5933
- if (ended < propCount) end();
5934
- }, timeout + 1);
5935
- el.addEventListener(endEvent, onEnd);
5936
- }
5937
- function getTransitionInfo(el, expectedType) {
5938
- const styles = window.getComputedStyle(el);
5939
- const getStyleProperties = (key) => (styles[key] || "").split(", ");
5940
- const transitionDelays = getStyleProperties(`${TRANSITION}Delay`);
5941
- const transitionDurations = getStyleProperties(`${TRANSITION}Duration`);
5942
- const transitionTimeout = getTimeout(transitionDelays, transitionDurations);
5943
- const animationDelays = getStyleProperties(`${ANIMATION}Delay`);
5944
- const animationDurations = getStyleProperties(`${ANIMATION}Duration`);
5945
- const animationTimeout = getTimeout(animationDelays, animationDurations);
5946
- let type = null;
5947
- let timeout = 0;
5948
- let propCount = 0;
5949
- if (expectedType === TRANSITION) {
5950
- if (transitionTimeout > 0) {
5951
- type = TRANSITION;
5952
- timeout = transitionTimeout;
5953
- propCount = transitionDurations.length;
5954
- }
5955
- } else if (expectedType === ANIMATION) {
5956
- if (animationTimeout > 0) {
5957
- type = ANIMATION;
5958
- timeout = animationTimeout;
5959
- propCount = animationDurations.length;
5960
- }
5961
- } else {
5962
- timeout = Math.max(transitionTimeout, animationTimeout);
5963
- type = timeout > 0 ? transitionTimeout > animationTimeout ? TRANSITION : ANIMATION : null;
5964
- propCount = type ? type === TRANSITION ? transitionDurations.length : animationDurations.length : 0;
5965
- }
5966
- const hasTransform = type === TRANSITION && /\b(?:transform|all)(?:,|$)/.test(getStyleProperties(`${TRANSITION}Property`).toString());
5967
- return {
5968
- type,
5969
- timeout,
5970
- propCount,
5971
- hasTransform
5972
- };
5973
- }
5974
- function getTimeout(delays, durations) {
5975
- while (delays.length < durations.length) delays = delays.concat(delays);
5976
- return Math.max(...durations.map((d, i) => toMs(d) + toMs(delays[i])));
5977
- }
5978
- function toMs(s) {
5979
- if (s === "auto") return 0;
5980
- return Number(s.slice(0, -1).replace(",", ".")) * 1e3;
5981
- }
5982
- function forceReflow(el) {
5983
- return (el ? el.ownerDocument : document).body.offsetHeight;
5984
- }
5985
4201
  function patchClass(el, value, isSVG) {
5986
4202
  const transitionClasses = el[vtcKey];
5987
4203
  if (transitionClasses) value = (value ? [value, ...transitionClasses] : [...transitionClasses]).join(" ");
@@ -5993,75 +4209,18 @@ function setDisplay(el, value) {
5993
4209
  el.style.display = value ? el[vShowOriginalDisplay] : "none";
5994
4210
  el[vShowHidden] = !value;
5995
4211
  }
5996
- function initVShowForSSR() {
5997
- vShow.getSSRProps = ({ value }) => {
5998
- if (!value) return { style: { display: "none" } };
5999
- };
6000
- }
6001
- function useCssVars(getter) {
6002
- const instance = getCurrentInstance$1();
6003
- if (!instance) return;
6004
- const updateTeleports = instance.ut = (vars = getter(instance.proxy)) => {
6005
- Array.from(document.querySelectorAll(`[data-v-owner="${instance.uid}"]`)).forEach((node) => setVarsOnNode(node, vars));
6006
- };
6007
- const setVars = () => {
6008
- const vars = getter(instance.proxy);
6009
- if (instance.ce) setVarsOnNode(instance.ce, vars);
6010
- else setVarsOnVNode(instance.subTree, vars);
6011
- updateTeleports(vars);
6012
- };
6013
- onBeforeUpdate(() => {
6014
- queuePostFlushCb(setVars);
6015
- });
6016
- onMounted(() => {
6017
- watch(setVars, NOOP, { flush: "post" });
6018
- const ob = new MutationObserver(setVars);
6019
- ob.observe(instance.subTree.el.parentNode, { childList: true });
6020
- onUnmounted(() => ob.disconnect());
6021
- });
6022
- }
6023
- function setVarsOnVNode(vnode, vars) {
6024
- if (vnode.shapeFlag & 128) {
6025
- const suspense = vnode.suspense;
6026
- vnode = suspense.activeBranch;
6027
- if (suspense.pendingBranch && !suspense.isHydrating) suspense.effects.push(() => {
6028
- setVarsOnVNode(suspense.activeBranch, vars);
6029
- });
6030
- }
6031
- while (vnode.component) vnode = vnode.component.subTree;
6032
- if (vnode.shapeFlag & 1 && vnode.el) setVarsOnNode(vnode.el, vars);
6033
- else if (vnode.type === Fragment) vnode.children.forEach((c) => setVarsOnVNode(c, vars));
6034
- else if (vnode.type === Static) {
6035
- let { el, anchor } = vnode;
6036
- while (el) {
6037
- setVarsOnNode(el, vars);
6038
- if (el === anchor) break;
6039
- el = el.nextSibling;
6040
- }
6041
- }
6042
- }
6043
- function setVarsOnNode(el, vars) {
6044
- if (el.nodeType === 1) {
6045
- const style = el.style;
6046
- let cssText = "";
6047
- for (const key in vars) {
6048
- const value = normalizeCssVarValue(vars[key]);
6049
- style.setProperty(`--${key}`, value);
6050
- cssText += `--${key}: ${value};`;
6051
- }
6052
- style[CSS_VAR_TEXT] = cssText;
6053
- }
6054
- }
6055
4212
  function patchStyle(el, prev, next) {
6056
4213
  const style = el.style;
6057
4214
  const isCssString = isString$1(next);
6058
4215
  let hasControlledDisplay = false;
6059
4216
  if (next && !isCssString) {
6060
- if (prev) if (!isString$1(prev)) {
6061
- for (const key in prev) if (next[key] == null) setStyle(style, key, "");
6062
- } else for (const prevStyle of prev.split(";")) {
6063
- const key = prevStyle.slice(0, prevStyle.indexOf(":")).trim();
6064
- if (next[key] == null) setStyle(style, key, "");
4217
+ if (prev) {
4218
+ if (!isString$1(prev)) {
4219
+ for (const key in prev) if (next[key] == null) setStyle(style, key, "");
4220
+ } else for (const prevStyle of prev.split(";")) {
4221
+ const key = prevStyle.slice(0, prevStyle.indexOf(":")).trim();
4222
+ if (next[key] == null) setStyle(style, key, "");
4223
+ }
6065
4224
  }
6066
4225
  for (const key in next) {
6067
4226
  if (key === "display") hasControlledDisplay = true;
@@ -6111,9 +4270,10 @@ function shouldPreserveTextareaResizeStyle(el, key, prev, next) {
6111
4270
  return el.tagName === "TEXTAREA" && (key === "width" || key === "height") && isString$1(next) && prev === next;
6112
4271
  }
6113
4272
  function patchAttr(el, key, value, isSVG, instance, isBoolean = isSpecialBooleanAttr(key)) {
6114
- if (isSVG && key.startsWith("xlink:")) if (value == null) el.removeAttributeNS(xlinkNS, key.slice(6, key.length));
6115
- else el.setAttributeNS(xlinkNS, key, value);
6116
- else if (value == null || isBoolean && !includeBooleanAttr(value)) el.removeAttribute(key);
4273
+ if (isSVG && key.startsWith("xlink:")) {
4274
+ if (value == null) el.removeAttributeNS(xlinkNS, key.slice(6, key.length));
4275
+ else el.setAttributeNS(xlinkNS, key, value);
4276
+ } else if (value == null || isBoolean && !includeBooleanAttr(value)) el.removeAttribute(key);
6117
4277
  else el.setAttribute(key, isBoolean ? "" : isSymbol(value) ? String(value) : value);
6118
4278
  }
6119
4279
  function patchDOMProp(el, key, value, parentComponent, attrName) {
@@ -6168,13 +4328,11 @@ function patchEvent(el, rawName, prevValue, nextValue, instance = null) {
6168
4328
  }
6169
4329
  function parseName(name) {
6170
4330
  let options;
6171
- if (optionsModifierRE.test(name)) {
6172
- options = {};
6173
- let m;
6174
- while (m = name.match(optionsModifierRE)) {
6175
- name = name.slice(0, name.length - m[0].length);
6176
- options[m[0].toLowerCase()] = true;
6177
- }
4331
+ let m;
4332
+ while ((m = name.match(optionsModifierRE)) && !optionsModifierEventRE.test(name)) {
4333
+ if (!options) options = {};
4334
+ name = name.slice(0, name.length - m[1].length);
4335
+ options[m[1].toLowerCase()] = true;
6178
4336
  }
6179
4337
  return [name[2] === ":" ? name.slice(3) : hyphenate$1(name.slice(2)), options];
6180
4338
  }
@@ -6182,22 +4340,26 @@ function createInvoker(initialValue, instance) {
6182
4340
  const invoker = (e) => {
6183
4341
  if (!e._vts) e._vts = Date.now();
6184
4342
  else if (e._vts <= invoker.attached) return;
6185
- callWithAsyncErrorHandling(patchStopImmediatePropagation(e, invoker.value), instance, 5, [e]);
4343
+ const value = invoker.value;
4344
+ if (isArray$2(value)) {
4345
+ const originalStop = e.stopImmediatePropagation;
4346
+ e.stopImmediatePropagation = () => {
4347
+ originalStop.call(e);
4348
+ e._stopped = true;
4349
+ };
4350
+ const handlers = value.slice();
4351
+ const args = [e];
4352
+ for (let i = 0; i < handlers.length; i++) {
4353
+ if (e._stopped) break;
4354
+ const handler = handlers[i];
4355
+ if (handler) callWithAsyncErrorHandling(handler, instance, 5, args);
4356
+ }
4357
+ } else callWithAsyncErrorHandling(value, instance, 5, [e]);
6186
4358
  };
6187
4359
  invoker.value = initialValue;
6188
4360
  invoker.attached = getNow();
6189
4361
  return invoker;
6190
4362
  }
6191
- function patchStopImmediatePropagation(e, value) {
6192
- if (isArray$2(value)) {
6193
- const originalStop = e.stopImmediatePropagation;
6194
- e.stopImmediatePropagation = () => {
6195
- originalStop.call(e);
6196
- e._stopped = true;
6197
- };
6198
- return value.map((fn) => (e2) => !e2._stopped && fn && fn(e2));
6199
- } else return value;
6200
- }
6201
4363
  function shouldSetAsProp(el, key, value, isSVG) {
6202
4364
  if (isSVG) {
6203
4365
  if (key === "innerHTML" || key === "textContent") return true;
@@ -6210,101 +4372,17 @@ function shouldSetAsProp(el, key, value, isSVG) {
6210
4372
  if (key === "list" && el.tagName === "INPUT") return false;
6211
4373
  if (key === "type" && el.tagName === "TEXTAREA") return false;
6212
4374
  if (key === "width" || key === "height") {
6213
- const tag = el.tagName;
6214
- if (tag === "IMG" || tag === "VIDEO" || tag === "CANVAS" || tag === "SOURCE") return false;
6215
- }
6216
- if (isNativeOn(key) && isString$1(value)) return false;
6217
- return key in el;
6218
- }
6219
- function shouldSetAsPropForVueCE(el, key) {
6220
- const props = el._def.props;
6221
- if (!props) return false;
6222
- const camelKey = camelize$1(key);
6223
- return Array.isArray(props) ? props.some((prop) => camelize$1(prop) === camelKey) : Object.keys(props).some((prop) => camelize$1(prop) === camelKey);
6224
- }
6225
- /* @__NO_SIDE_EFFECTS__ */
6226
- function defineCustomElement(options, extraOptions, _createApp) {
6227
- let Comp = /* @__PURE__ */ defineComponent(options, extraOptions);
6228
- if (isPlainObject$1(Comp)) Comp = extend({}, Comp, extraOptions);
6229
- class VueCustomElement extends VueElement {
6230
- constructor(initialProps) {
6231
- super(Comp, initialProps, _createApp);
6232
- }
6233
- }
6234
- VueCustomElement.def = Comp;
6235
- return VueCustomElement;
6236
- }
6237
- function useHost(caller) {
6238
- const instance = getCurrentInstance$1();
6239
- const el = instance && instance.ce;
6240
- if (el) return el;
6241
- return null;
6242
- }
6243
- function useShadowRoot() {
6244
- const el = useHost();
6245
- return el && el.shadowRoot;
6246
- }
6247
- function useCssModule(name = "$style") {
6248
- {
6249
- const instance = getCurrentInstance$1();
6250
- if (!instance) return EMPTY_OBJ;
6251
- const modules = instance.type.__cssModules;
6252
- if (!modules) return EMPTY_OBJ;
6253
- const mod = modules[name];
6254
- if (!mod) return EMPTY_OBJ;
6255
- return mod;
6256
- }
6257
- }
6258
- function callPendingCbs(c) {
6259
- const el = c.el;
6260
- if (el[moveCbKey]) el[moveCbKey]();
6261
- if (el[enterCbKey]) el[enterCbKey]();
6262
- }
6263
- function recordPosition(c) {
6264
- newPositionMap.set(c, getPosition(c.el));
6265
- }
6266
- function applyTranslation(c) {
6267
- const oldPos = positionMap.get(c);
6268
- const newPos = newPositionMap.get(c);
6269
- const dx = oldPos.left - newPos.left;
6270
- const dy = oldPos.top - newPos.top;
6271
- if (dx || dy) {
6272
- const el = c.el;
6273
- const s = el.style;
6274
- const rect = el.getBoundingClientRect();
6275
- let scaleX = 1;
6276
- let scaleY = 1;
6277
- if (el.offsetWidth) scaleX = rect.width / el.offsetWidth;
6278
- if (el.offsetHeight) scaleY = rect.height / el.offsetHeight;
6279
- if (!Number.isFinite(scaleX) || scaleX === 0) scaleX = 1;
6280
- if (!Number.isFinite(scaleY) || scaleY === 0) scaleY = 1;
6281
- if (Math.abs(scaleX - 1) < .01) scaleX = 1;
6282
- if (Math.abs(scaleY - 1) < .01) scaleY = 1;
6283
- s.transform = s.webkitTransform = `translate(${dx / scaleX}px,${dy / scaleY}px)`;
6284
- s.transitionDuration = "0s";
6285
- return c;
6286
- }
6287
- }
6288
- function getPosition(el) {
6289
- const rect = el.getBoundingClientRect();
6290
- return {
6291
- left: rect.left,
6292
- top: rect.top
6293
- };
4375
+ const tag = el.tagName;
4376
+ if (tag === "IMG" || tag === "VIDEO" || tag === "CANVAS" || tag === "SOURCE") return false;
4377
+ }
4378
+ if (isNativeOn(key) && isString$1(value)) return false;
4379
+ return key in el;
6294
4380
  }
6295
- function hasCSSTransform(el, root, moveClass) {
6296
- const clone = el.cloneNode();
6297
- const _vtc = el[vtcKey];
6298
- if (_vtc) _vtc.forEach((cls) => {
6299
- cls.split(/\s+/).forEach((c) => c && clone.classList.remove(c));
6300
- });
6301
- moveClass.split(/\s+/).forEach((c) => c && clone.classList.add(c));
6302
- clone.style.display = "none";
6303
- const container = root.nodeType === 1 ? root : root.parentNode;
6304
- container.appendChild(clone);
6305
- const { hasTransform } = getTransitionInfo(clone);
6306
- container.removeChild(clone);
6307
- return hasTransform;
4381
+ function shouldSetAsPropForVueCE(el, key) {
4382
+ const props = el._def.props;
4383
+ if (!props) return false;
4384
+ const camelKey = camelize$1(key);
4385
+ return Array.isArray(props) ? props.some((prop) => camelize$1(prop) === camelKey) : Object.keys(props).some((prop) => camelize$1(prop) === camelKey);
6308
4386
  }
6309
4387
  function onCompositionStart(e) {
6310
4388
  e.target.composing = true;
@@ -6339,12 +4417,13 @@ function setSelected(el, value) {
6339
4417
  for (let i = 0, l = el.options.length; i < l; i++) {
6340
4418
  const option = el.options[i];
6341
4419
  const optionValue = getValue(option);
6342
- if (isMultiple) if (isArrayValue) {
6343
- const optionType = typeof optionValue;
6344
- if (optionType === "string" || optionType === "number") option.selected = value.some((v) => String(v) === String(optionValue));
6345
- else option.selected = looseIndexOf(value, optionValue) > -1;
6346
- } else option.selected = value.has(optionValue);
6347
- else if (looseEqual(getValue(option), value)) {
4420
+ if (isMultiple) {
4421
+ if (isArrayValue) {
4422
+ const optionType = typeof optionValue;
4423
+ if (optionType === "string" || optionType === "number") option.selected = value.some((v) => String(v) === String(optionValue));
4424
+ else option.selected = looseIndexOf(value, optionValue) > -1;
4425
+ } else option.selected = value.has(optionValue);
4426
+ } else if (looseEqual(getValue(option), value)) {
6348
4427
  if (el.selectedIndex !== i) el.selectedIndex = i;
6349
4428
  return;
6350
4429
  }
@@ -6373,32 +4452,9 @@ function callModelHook(el, binding, vnode, prevVNode, hook) {
6373
4452
  const fn = resolveDynamicModel(el.tagName, vnode.props && vnode.props.type)[hook];
6374
4453
  fn && fn(el, binding, vnode, prevVNode);
6375
4454
  }
6376
- function initVModelForSSR() {
6377
- vModelText.getSSRProps = ({ value }) => ({ value });
6378
- vModelRadio.getSSRProps = ({ value }, vnode) => {
6379
- if (vnode.props && looseEqual(vnode.props.value, value)) return { checked: true };
6380
- };
6381
- vModelCheckbox.getSSRProps = ({ value }, vnode) => {
6382
- if (isArray$2(value)) {
6383
- if (vnode.props && looseIndexOf(value, vnode.props.value) > -1) return { checked: true };
6384
- } else if (isSet(value)) {
6385
- if (vnode.props && value.has(vnode.props.value)) return { checked: true };
6386
- } else if (value) return { checked: true };
6387
- };
6388
- vModelDynamic.getSSRProps = (binding, vnode) => {
6389
- if (typeof vnode.type !== "string") return;
6390
- const modelToUse = resolveDynamicModel(vnode.type.toUpperCase(), vnode.props && vnode.props.type);
6391
- if (modelToUse.getSSRProps) return modelToUse.getSSRProps(binding, vnode);
6392
- };
6393
- }
6394
4455
  function ensureRenderer() {
6395
4456
  return renderer || (renderer = createRenderer(rendererOptions));
6396
4457
  }
6397
- function ensureHydrationRenderer() {
6398
- renderer = enabledHydration ? renderer : createHydrationRenderer(rendererOptions);
6399
- enabledHydration = true;
6400
- return renderer;
6401
- }
6402
4458
  function resolveRootNamespace(container) {
6403
4459
  if (container instanceof SVGElement) return "svg";
6404
4460
  if (typeof MathMLElement === "function" && container instanceof MathMLElement) return "mathml";
@@ -6407,7 +4463,7 @@ function normalizeContainer(container) {
6407
4463
  if (isString$1(container)) return document.querySelector(container);
6408
4464
  return container;
6409
4465
  }
6410
- var policy, tt, unsafeToTrustedHTML, svgNS, mathmlNS, doc, templateContainer, nodeOps, TRANSITION, ANIMATION, vtcKey, DOMTransitionPropsValidators, TransitionPropsValidators, decorate$1, Transition, callHook, hasExplicitCallback, endId, vShowOriginalDisplay, vShowHidden, vShow, CSS_VAR_TEXT, displayRE, importantRE, prefixes, prefixCache, xlinkNS, veiKey, optionsModifierRE, cachedNow, p, getNow, isNativeOn, patchProp, REMOVAL, defineSSRCustomElement, BaseClass, VueElement, positionMap, newPositionMap, moveCbKey, enterCbKey, decorate, TransitionGroup, getModelAssigner, assignKey, vModelText, vModelCheckbox, vModelRadio, vModelSelect, vModelDynamic, systemModifiers, modifierGuards, withModifiers, keyNames, withKeys, rendererOptions, renderer, enabledHydration, render, hydrate, createApp, createSSRApp, ssrDirectiveInitialized, initDirectivesForSSR;
4466
+ var policy, tt, unsafeToTrustedHTML, svgNS, mathmlNS, doc, templateContainer, nodeOps, vtcKey, vShowOriginalDisplay, vShowHidden, vShow, CSS_VAR_TEXT, displayRE, importantRE, prefixes, prefixCache, xlinkNS, veiKey, optionsModifierRE, optionsModifierEventRE, cachedNow, p, getNow, isNativeOn, patchProp, getModelAssigner, assignKey, initialValueKey, vModelText, vModelCheckbox, vModelRadio, vModelSelect, vModelDynamic, systemModifiers, modifierGuards, withModifiers, keyNames, withKeys, rendererOptions, renderer, createApp;
6411
4467
  var init_runtime_dom_esm_bundler = __esmMin((() => {
6412
4468
  init_runtime_core_esm_bundler();
6413
4469
  init_runtime_core_esm_bundler();
@@ -6468,46 +4524,7 @@ var init_runtime_dom_esm_bundler = __esmMin((() => {
6468
4524
  return [before ? before.nextSibling : parent.firstChild, anchor ? anchor.previousSibling : parent.lastChild];
6469
4525
  }
6470
4526
  };
6471
- TRANSITION = "transition";
6472
- ANIMATION = "animation";
6473
4527
  vtcKey = /* @__PURE__ */ Symbol("_vtc");
6474
- DOMTransitionPropsValidators = {
6475
- name: String,
6476
- type: String,
6477
- css: {
6478
- type: Boolean,
6479
- default: true
6480
- },
6481
- duration: [
6482
- String,
6483
- Number,
6484
- Object
6485
- ],
6486
- enterFromClass: String,
6487
- enterActiveClass: String,
6488
- enterToClass: String,
6489
- appearFromClass: String,
6490
- appearActiveClass: String,
6491
- appearToClass: String,
6492
- leaveFromClass: String,
6493
- leaveActiveClass: String,
6494
- leaveToClass: String
6495
- };
6496
- TransitionPropsValidators = /* @__PURE__ */ extend({}, BaseTransitionPropsValidators, DOMTransitionPropsValidators);
6497
- decorate$1 = (t) => {
6498
- t.displayName = "Transition";
6499
- t.props = TransitionPropsValidators;
6500
- return t;
6501
- };
6502
- Transition = /* @__PURE__ */ decorate$1((props, { slots }) => h(BaseTransition, resolveTransitionProps(props), slots));
6503
- callHook = (hook, args = []) => {
6504
- if (isArray$2(hook)) hook.forEach((h2) => h2(...args));
6505
- else if (hook) hook(...args);
6506
- };
6507
- hasExplicitCallback = (hook) => {
6508
- return hook ? isArray$2(hook) ? hook.some((h2) => h2.length > 1) : hook.length > 1 : false;
6509
- };
6510
- endId = 0;
6511
4528
  vShowOriginalDisplay = /* @__PURE__ */ Symbol("_vod");
6512
4529
  vShowHidden = /* @__PURE__ */ Symbol("_vsh");
6513
4530
  vShow = {
@@ -6522,14 +4539,15 @@ var init_runtime_dom_esm_bundler = __esmMin((() => {
6522
4539
  },
6523
4540
  updated(el, { value, oldValue }, { transition }) {
6524
4541
  if (!value === !oldValue) return;
6525
- if (transition) if (value) {
6526
- transition.beforeEnter(el);
6527
- setDisplay(el, true);
6528
- transition.enter(el);
6529
- } else transition.leave(el, () => {
6530
- setDisplay(el, false);
6531
- });
6532
- else setDisplay(el, value);
4542
+ if (transition) {
4543
+ if (value) {
4544
+ transition.beforeEnter(el);
4545
+ setDisplay(el, true);
4546
+ transition.enter(el);
4547
+ } else transition.leave(el, () => {
4548
+ setDisplay(el, false);
4549
+ });
4550
+ } else setDisplay(el, value);
6533
4551
  },
6534
4552
  beforeUnmount(el, { value }) {
6535
4553
  setDisplay(el, value);
@@ -6546,7 +4564,8 @@ var init_runtime_dom_esm_bundler = __esmMin((() => {
6546
4564
  prefixCache = {};
6547
4565
  xlinkNS = "http://www.w3.org/1999/xlink";
6548
4566
  veiKey = /* @__PURE__ */ Symbol("_vei");
6549
- optionsModifierRE = /(?:Once|Passive|Capture)$/;
4567
+ optionsModifierRE = /(Once|Passive|Capture)$/;
4568
+ optionsModifierEventRE = /^on:?(?:Once|Passive|Capture)$/;
6550
4569
  cachedNow = 0;
6551
4570
  p = /* @__PURE__ */ Promise.resolve();
6552
4571
  getNow = () => cachedNow || (p.then(() => cachedNow = 0), cachedNow = Date.now());
@@ -6567,401 +4586,18 @@ var init_runtime_dom_esm_bundler = __esmMin((() => {
6567
4586
  patchAttr(el, key, nextValue, isSVG);
6568
4587
  }
6569
4588
  };
6570
- REMOVAL = {};
6571
- defineSSRCustomElement = /* @__NO_SIDE_EFFECTS__ */ ((options, extraOptions) => {
6572
- return /* @__PURE__ */ defineCustomElement(options, extraOptions, createSSRApp);
6573
- });
6574
- BaseClass = typeof HTMLElement !== "undefined" ? HTMLElement : class {};
6575
- VueElement = class VueElement extends BaseClass {
6576
- constructor(_def, _props = {}, _createApp = createApp) {
6577
- super();
6578
- this._def = _def;
6579
- this._props = _props;
6580
- this._createApp = _createApp;
6581
- this._isVueCE = true;
6582
- /**
6583
- * @internal
6584
- */
6585
- this._instance = null;
6586
- /**
6587
- * @internal
6588
- */
6589
- this._app = null;
6590
- /**
6591
- * @internal
6592
- */
6593
- this._nonce = this._def.nonce;
6594
- this._connected = false;
6595
- this._resolved = false;
6596
- this._patching = false;
6597
- this._dirty = false;
6598
- this._numberProps = null;
6599
- this._styleChildren = /* @__PURE__ */ new WeakSet();
6600
- this._styleAnchors = /* @__PURE__ */ new WeakMap();
6601
- this._ob = null;
6602
- if (this.shadowRoot && _createApp !== createApp) this._root = this.shadowRoot;
6603
- else if (_def.shadowRoot !== false) {
6604
- this.attachShadow(extend({}, _def.shadowRootOptions, { mode: "open" }));
6605
- this._root = this.shadowRoot;
6606
- } else this._root = this;
6607
- }
6608
- connectedCallback() {
6609
- if (!this.isConnected) return;
6610
- if (!this.shadowRoot && !this._resolved) this._parseSlots();
6611
- this._connected = true;
6612
- let parent = this;
6613
- while (parent = parent && (parent.assignedSlot || parent.parentNode || parent.host)) if (parent instanceof VueElement) {
6614
- this._parent = parent;
6615
- break;
6616
- }
6617
- if (!this._instance) if (this._resolved) this._mount(this._def);
6618
- else if (parent && parent._pendingResolve) this._pendingResolve = parent._pendingResolve.then(() => {
6619
- this._pendingResolve = void 0;
6620
- this._resolveDef();
6621
- });
6622
- else this._resolveDef();
6623
- }
6624
- _setParent(parent = this._parent) {
6625
- if (parent) {
6626
- this._instance.parent = parent._instance;
6627
- this._inheritParentContext(parent);
6628
- }
6629
- }
6630
- _inheritParentContext(parent = this._parent) {
6631
- if (parent && this._app) Object.setPrototypeOf(this._app._context.provides, parent._instance.provides);
6632
- }
6633
- disconnectedCallback() {
6634
- this._connected = false;
6635
- nextTick(() => {
6636
- if (!this._connected) {
6637
- if (this._ob) {
6638
- this._ob.disconnect();
6639
- this._ob = null;
6640
- }
6641
- this._app && this._app.unmount();
6642
- if (this._instance) this._instance.ce = void 0;
6643
- this._app = this._instance = null;
6644
- if (this._teleportTargets) {
6645
- this._teleportTargets.clear();
6646
- this._teleportTargets = void 0;
6647
- }
6648
- }
6649
- });
6650
- }
6651
- _processMutations(mutations) {
6652
- for (const m of mutations) this._setAttr(m.attributeName);
6653
- }
6654
- /**
6655
- * resolve inner component definition (handle possible async component)
6656
- */
6657
- _resolveDef() {
6658
- if (this._pendingResolve) return;
6659
- for (let i = 0; i < this.attributes.length; i++) this._setAttr(this.attributes[i].name);
6660
- this._ob = new MutationObserver(this._processMutations.bind(this));
6661
- this._ob.observe(this, { attributes: true });
6662
- const resolve = (def, isAsync = false) => {
6663
- this._resolved = true;
6664
- this._pendingResolve = void 0;
6665
- const { props, styles } = def;
6666
- let numberProps;
6667
- if (props && !isArray$2(props)) for (const key in props) {
6668
- const opt = props[key];
6669
- if (opt === Number || opt && opt.type === Number) {
6670
- if (key in this._props) this._props[key] = toNumber(this._props[key]);
6671
- (numberProps || (numberProps = /* @__PURE__ */ Object.create(null)))[camelize$1(key)] = true;
6672
- }
6673
- }
6674
- this._numberProps = numberProps;
6675
- this._resolveProps(def);
6676
- if (this.shadowRoot) this._applyStyles(styles);
6677
- this._mount(def);
6678
- };
6679
- const asyncDef = this._def.__asyncLoader;
6680
- if (asyncDef) this._pendingResolve = asyncDef().then((def) => {
6681
- def.configureApp = this._def.configureApp;
6682
- resolve(this._def = def, true);
6683
- });
6684
- else resolve(this._def);
6685
- }
6686
- _mount(def) {
6687
- this._app = this._createApp(def);
6688
- this._inheritParentContext();
6689
- if (def.configureApp) def.configureApp(this._app);
6690
- this._app._ceVNode = this._createVNode();
6691
- this._app.mount(this._root);
6692
- const exposed = this._instance && this._instance.exposed;
6693
- if (!exposed) return;
6694
- for (const key in exposed) if (!hasOwn$1(this, key)) Object.defineProperty(this, key, { get: () => unref(exposed[key]) });
6695
- }
6696
- _resolveProps(def) {
6697
- const { props } = def;
6698
- const declaredPropKeys = isArray$2(props) ? props : Object.keys(props || {});
6699
- for (const key of Object.keys(this)) if (key[0] !== "_" && declaredPropKeys.includes(key)) this._setProp(key, this[key]);
6700
- for (const key of declaredPropKeys.map(camelize$1)) Object.defineProperty(this, key, {
6701
- get() {
6702
- return this._getProp(key);
6703
- },
6704
- set(val) {
6705
- this._setProp(key, val, true, !this._patching);
6706
- }
6707
- });
6708
- }
6709
- _setAttr(key) {
6710
- if (key.startsWith("data-v-")) return;
6711
- const has = this.hasAttribute(key);
6712
- let value = has ? this.getAttribute(key) : REMOVAL;
6713
- const camelKey = camelize$1(key);
6714
- if (has && this._numberProps && this._numberProps[camelKey]) value = toNumber(value);
6715
- this._setProp(camelKey, value, false, true);
6716
- }
6717
- /**
6718
- * @internal
6719
- */
6720
- _getProp(key) {
6721
- return this._props[key];
6722
- }
6723
- /**
6724
- * @internal
6725
- */
6726
- _setProp(key, val, shouldReflect = true, shouldUpdate = false) {
6727
- if (val !== this._props[key]) {
6728
- this._dirty = true;
6729
- if (val === REMOVAL) delete this._props[key];
6730
- else {
6731
- this._props[key] = val;
6732
- if (key === "key" && this._app) this._app._ceVNode.key = val;
6733
- }
6734
- if (shouldUpdate && this._instance) this._update();
6735
- if (shouldReflect) {
6736
- const ob = this._ob;
6737
- if (ob) {
6738
- this._processMutations(ob.takeRecords());
6739
- ob.disconnect();
6740
- }
6741
- if (val === true) this.setAttribute(hyphenate$1(key), "");
6742
- else if (typeof val === "string" || typeof val === "number") this.setAttribute(hyphenate$1(key), val + "");
6743
- else if (!val) this.removeAttribute(hyphenate$1(key));
6744
- ob && ob.observe(this, { attributes: true });
6745
- }
6746
- }
6747
- }
6748
- _update() {
6749
- const vnode = this._createVNode();
6750
- if (this._app) vnode.appContext = this._app._context;
6751
- render(vnode, this._root);
6752
- }
6753
- _createVNode() {
6754
- const baseProps = {};
6755
- if (!this.shadowRoot) baseProps.onVnodeMounted = baseProps.onVnodeUpdated = this._renderSlots.bind(this);
6756
- const vnode = createVNode(this._def, extend(baseProps, this._props));
6757
- if (!this._instance) vnode.ce = (instance) => {
6758
- this._instance = instance;
6759
- instance.ce = this;
6760
- instance.isCE = true;
6761
- const dispatch = (event, args) => {
6762
- this.dispatchEvent(new CustomEvent(event, isPlainObject$1(args[0]) ? extend({ detail: args }, args[0]) : { detail: args }));
6763
- };
6764
- instance.emit = (event, ...args) => {
6765
- dispatch(event, args);
6766
- if (hyphenate$1(event) !== event) dispatch(hyphenate$1(event), args);
6767
- };
6768
- this._setParent();
6769
- };
6770
- return vnode;
6771
- }
6772
- _applyStyles(styles, owner, parentComp) {
6773
- if (!styles) return;
6774
- if (owner) {
6775
- if (owner === this._def || this._styleChildren.has(owner)) return;
6776
- this._styleChildren.add(owner);
6777
- }
6778
- const nonce = this._nonce;
6779
- const root = this.shadowRoot;
6780
- const insertionAnchor = parentComp ? this._getStyleAnchor(parentComp) || this._getStyleAnchor(this._def) : this._getRootStyleInsertionAnchor(root);
6781
- let last = null;
6782
- for (let i = styles.length - 1; i >= 0; i--) {
6783
- const s = document.createElement("style");
6784
- if (nonce) s.setAttribute("nonce", nonce);
6785
- s.textContent = styles[i];
6786
- root.insertBefore(s, last || insertionAnchor);
6787
- last = s;
6788
- if (i === 0) {
6789
- if (!parentComp) this._styleAnchors.set(this._def, s);
6790
- if (owner) this._styleAnchors.set(owner, s);
6791
- }
6792
- }
6793
- }
6794
- _getStyleAnchor(comp) {
6795
- if (!comp) return null;
6796
- const anchor = this._styleAnchors.get(comp);
6797
- if (anchor && anchor.parentNode === this.shadowRoot) return anchor;
6798
- if (anchor) this._styleAnchors.delete(comp);
6799
- return null;
6800
- }
6801
- _getRootStyleInsertionAnchor(root) {
6802
- for (let i = 0; i < root.childNodes.length; i++) {
6803
- const node = root.childNodes[i];
6804
- if (!(node instanceof HTMLStyleElement)) return node;
6805
- }
6806
- return null;
6807
- }
6808
- /**
6809
- * Only called when shadowRoot is false
6810
- */
6811
- _parseSlots() {
6812
- const slots = this._slots = {};
6813
- let n;
6814
- while (n = this.firstChild) {
6815
- const slotName = n.nodeType === 1 && n.getAttribute("slot") || "default";
6816
- (slots[slotName] || (slots[slotName] = [])).push(n);
6817
- this.removeChild(n);
6818
- }
6819
- }
6820
- /**
6821
- * Only called when shadowRoot is false
6822
- */
6823
- _renderSlots() {
6824
- const outlets = this._getSlots();
6825
- const scopeId = this._instance.type.__scopeId;
6826
- for (let i = 0; i < outlets.length; i++) {
6827
- const o = outlets[i];
6828
- const slotName = o.getAttribute("name") || "default";
6829
- const content = this._slots[slotName];
6830
- const parent = o.parentNode;
6831
- if (content) for (const n of content) {
6832
- if (scopeId && n.nodeType === 1) {
6833
- const id = scopeId + "-s";
6834
- const walker = document.createTreeWalker(n, 1);
6835
- n.setAttribute(id, "");
6836
- let child;
6837
- while (child = walker.nextNode()) child.setAttribute(id, "");
6838
- }
6839
- parent.insertBefore(n, o);
6840
- }
6841
- else while (o.firstChild) parent.insertBefore(o.firstChild, o);
6842
- parent.removeChild(o);
6843
- }
6844
- }
6845
- /**
6846
- * @internal
6847
- */
6848
- _getSlots() {
6849
- const roots = [this];
6850
- if (this._teleportTargets) roots.push(...this._teleportTargets);
6851
- const slots = /* @__PURE__ */ new Set();
6852
- for (const root of roots) {
6853
- const found = root.querySelectorAll("slot");
6854
- for (let i = 0; i < found.length; i++) slots.add(found[i]);
6855
- }
6856
- return Array.from(slots);
6857
- }
6858
- /**
6859
- * @internal
6860
- */
6861
- _injectChildStyle(comp, parentComp) {
6862
- this._applyStyles(comp.styles, comp, parentComp);
6863
- }
6864
- /**
6865
- * @internal
6866
- */
6867
- _beginPatch() {
6868
- this._patching = true;
6869
- this._dirty = false;
6870
- }
6871
- /**
6872
- * @internal
6873
- */
6874
- _endPatch() {
6875
- this._patching = false;
6876
- if (this._dirty && this._instance) this._update();
6877
- }
6878
- /**
6879
- * @internal
6880
- */
6881
- _hasShadowRoot() {
6882
- return this._def.shadowRoot !== false;
6883
- }
6884
- /**
6885
- * @internal
6886
- */
6887
- _removeChildStyle(comp) {}
6888
- };
6889
- positionMap = /* @__PURE__ */ new WeakMap();
6890
- newPositionMap = /* @__PURE__ */ new WeakMap();
6891
- moveCbKey = /* @__PURE__ */ Symbol("_moveCb");
6892
- enterCbKey = /* @__PURE__ */ Symbol("_enterCb");
6893
- decorate = (t) => {
6894
- delete t.props.mode;
6895
- return t;
6896
- };
6897
- TransitionGroup = /* @__PURE__ */ decorate({
6898
- name: "TransitionGroup",
6899
- props: /* @__PURE__ */ extend({}, TransitionPropsValidators, {
6900
- tag: String,
6901
- moveClass: String
6902
- }),
6903
- setup(props, { slots }) {
6904
- const instance = getCurrentInstance$1();
6905
- const state = useTransitionState();
6906
- let prevChildren;
6907
- let children;
6908
- onUpdated(() => {
6909
- if (!prevChildren.length) return;
6910
- const moveClass = props.moveClass || `${props.name || "v"}-move`;
6911
- if (!hasCSSTransform(prevChildren[0].el, instance.vnode.el, moveClass)) {
6912
- prevChildren = [];
6913
- return;
6914
- }
6915
- prevChildren.forEach(callPendingCbs);
6916
- prevChildren.forEach(recordPosition);
6917
- const movedChildren = prevChildren.filter(applyTranslation);
6918
- forceReflow(instance.vnode.el);
6919
- movedChildren.forEach((c) => {
6920
- const el = c.el;
6921
- const style = el.style;
6922
- addTransitionClass(el, moveClass);
6923
- style.transform = style.webkitTransform = style.transitionDuration = "";
6924
- const cb = el[moveCbKey] = (e) => {
6925
- if (e && e.target !== el) return;
6926
- if (!e || e.propertyName.endsWith("transform")) {
6927
- el.removeEventListener("transitionend", cb);
6928
- el[moveCbKey] = null;
6929
- removeTransitionClass(el, moveClass);
6930
- }
6931
- };
6932
- el.addEventListener("transitionend", cb);
6933
- });
6934
- prevChildren = [];
6935
- });
6936
- return () => {
6937
- const rawProps = /* @__PURE__ */ toRaw(props);
6938
- const cssTransitionProps = resolveTransitionProps(rawProps);
6939
- let tag = rawProps.tag || Fragment;
6940
- prevChildren = [];
6941
- if (children) for (let i = 0; i < children.length; i++) {
6942
- const child = children[i];
6943
- if (child.el && child.el instanceof Element) {
6944
- prevChildren.push(child);
6945
- setTransitionHooks(child, resolveTransitionHooks(child, cssTransitionProps, state, instance));
6946
- positionMap.set(child, getPosition(child.el));
6947
- }
6948
- }
6949
- children = slots.default ? getTransitionRawChildren(slots.default()) : [];
6950
- for (let i = 0; i < children.length; i++) {
6951
- const child = children[i];
6952
- if (child.key != null) setTransitionHooks(child, resolveTransitionHooks(child, cssTransitionProps, state, instance));
6953
- }
6954
- return createVNode(tag, null, children);
6955
- };
6956
- }
6957
- });
6958
4589
  getModelAssigner = (vnode) => {
6959
4590
  const fn = vnode.props["onUpdate:modelValue"] || false;
6960
4591
  return isArray$2(fn) ? (value) => invokeArrayFns(fn, value) : fn;
6961
4592
  };
6962
4593
  assignKey = /* @__PURE__ */ Symbol("_assign");
4594
+ initialValueKey = /* @__PURE__ */ Symbol("_initialValue");
6963
4595
  vModelText = {
6964
4596
  created(el, { modifiers: { lazy, trim, number } }, vnode) {
4597
+ if (el.parentNode) {
4598
+ if (el.type === "text") el[initialValueKey] = el.defaultValue.replace(/[\r\n]/g, "");
4599
+ else if (el.type === "textarea") el[initialValueKey] = el.defaultValue.replace(/\r\n?/g, "\n");
4600
+ }
6965
4601
  el[assignKey] = getModelAssigner(vnode);
6966
4602
  const castToNumber = number || vnode.props && vnode.props.type === "number";
6967
4603
  addEventListener(el, lazy ? "change" : "input", (e) => {
@@ -6977,8 +4613,12 @@ var init_runtime_dom_esm_bundler = __esmMin((() => {
6977
4613
  addEventListener(el, "change", onCompositionEnd);
6978
4614
  }
6979
4615
  },
6980
- mounted(el, { value }) {
6981
- el.value = value == null ? "" : value;
4616
+ mounted(el, { value, modifiers: { trim, number } }) {
4617
+ const newValue = value == null ? "" : value;
4618
+ const initialValue = el[initialValueKey];
4619
+ delete el[initialValueKey];
4620
+ if (initialValue !== void 0 && (el.type === "text" || el.type === "textarea") && el.value !== initialValue) el[assignKey](castValue(el.value, trim, number));
4621
+ else el.value = newValue;
6982
4622
  },
6983
4623
  beforeUpdate(el, { value, oldValue, modifiers: { lazy, trim, number } }, vnode) {
6984
4624
  el[assignKey] = getModelAssigner(vnode);
@@ -7042,10 +4682,10 @@ var init_runtime_dom_esm_bundler = __esmMin((() => {
7042
4682
  vModelSelect = {
7043
4683
  deep: true,
7044
4684
  created(el, { value, modifiers: { number } }, vnode) {
7045
- const isSetModel = isSet(value);
4685
+ el._modelValue = value;
7046
4686
  addEventListener(el, "change", () => {
7047
4687
  const selectedVal = Array.prototype.filter.call(el.options, (o) => o.selected).map((o) => number ? looseToNumber(getValue(o)) : getValue(o));
7048
- el[assignKey](el.multiple ? isSetModel ? new Set(selectedVal) : selectedVal : selectedVal[0]);
4688
+ el[assignKey](el.multiple ? isSet(el._modelValue) ? new Set(selectedVal) : selectedVal : selectedVal[0]);
7049
4689
  el._assigning = true;
7050
4690
  nextTick(() => {
7051
4691
  el._assigning = false;
@@ -7056,7 +4696,8 @@ var init_runtime_dom_esm_bundler = __esmMin((() => {
7056
4696
  mounted(el, { value }) {
7057
4697
  setSelected(el, value);
7058
4698
  },
7059
- beforeUpdate(el, _binding, vnode) {
4699
+ beforeUpdate(el, { value }, vnode) {
4700
+ el._modelValue = value;
7060
4701
  el[assignKey] = getModelAssigner(vnode);
7061
4702
  },
7062
4703
  updated(el, { value }) {
@@ -7127,13 +4768,6 @@ var init_runtime_dom_esm_bundler = __esmMin((() => {
7127
4768
  }));
7128
4769
  };
7129
4770
  rendererOptions = /* @__PURE__ */ extend({ patchProp }, nodeOps);
7130
- enabledHydration = false;
7131
- render = ((...args) => {
7132
- ensureRenderer().render(...args);
7133
- });
7134
- hydrate = ((...args) => {
7135
- ensureHydrationRenderer().hydrate(...args);
7136
- });
7137
4771
  createApp = ((...args) => {
7138
4772
  const app = ensureRenderer().createApp(...args);
7139
4773
  const { mount } = app;
@@ -7152,217 +4786,30 @@ var init_runtime_dom_esm_bundler = __esmMin((() => {
7152
4786
  };
7153
4787
  return app;
7154
4788
  });
7155
- createSSRApp = ((...args) => {
7156
- const app = ensureHydrationRenderer().createApp(...args);
7157
- const { mount } = app;
7158
- app.mount = (containerOrSelector) => {
7159
- const container = normalizeContainer(containerOrSelector);
7160
- if (container) return mount(container, true, resolveRootNamespace(container));
7161
- };
7162
- return app;
7163
- });
7164
- ssrDirectiveInitialized = false;
7165
- initDirectivesForSSR = () => {
7166
- if (!ssrDirectiveInitialized) {
7167
- ssrDirectiveInitialized = true;
7168
- initVModelForSSR();
7169
- initVShowForSSR();
7170
- }
7171
- };
7172
4789
  }));
7173
4790
  //#endregion
7174
- //#region node_modules/.pnpm/vue@3.5.34_typescript@5.9.3/node_modules/vue/dist/vue.runtime.esm-bundler.js
7175
- var vue_runtime_esm_bundler_exports = /* @__PURE__ */ __exportAll({
7176
- BaseTransition: () => BaseTransition,
7177
- BaseTransitionPropsValidators: () => BaseTransitionPropsValidators,
7178
- Comment: () => Comment,
7179
- DeprecationTypes: () => null,
7180
- EffectScope: () => EffectScope,
7181
- ErrorCodes: () => ErrorCodes,
7182
- ErrorTypeStrings: () => ErrorTypeStrings,
7183
- Fragment: () => Fragment,
7184
- KeepAlive: () => KeepAlive,
7185
- ReactiveEffect: () => ReactiveEffect,
7186
- Static: () => Static,
7187
- Suspense: () => Suspense,
7188
- Teleport: () => Teleport,
7189
- Text: () => Text,
7190
- TrackOpTypes: () => TrackOpTypes,
7191
- Transition: () => Transition,
7192
- TransitionGroup: () => TransitionGroup,
7193
- TriggerOpTypes: () => TriggerOpTypes,
7194
- VueElement: () => VueElement,
7195
- assertNumber: () => assertNumber,
7196
- callWithAsyncErrorHandling: () => callWithAsyncErrorHandling,
7197
- callWithErrorHandling: () => callWithErrorHandling,
7198
- camelize: () => camelize$1,
7199
- capitalize: () => capitalize$1,
7200
- cloneVNode: () => cloneVNode,
7201
- compatUtils: () => null,
7202
- compile: () => compile$1,
7203
- computed: () => computed,
7204
- createApp: () => createApp,
7205
- createBlock: () => createBlock,
7206
- createCommentVNode: () => createCommentVNode,
7207
- createElementBlock: () => createElementBlock,
7208
- createElementVNode: () => createBaseVNode,
7209
- createHydrationRenderer: () => createHydrationRenderer,
7210
- createPropsRestProxy: () => createPropsRestProxy,
7211
- createRenderer: () => createRenderer,
7212
- createSSRApp: () => createSSRApp,
7213
- createSlots: () => createSlots,
7214
- createStaticVNode: () => createStaticVNode,
7215
- createTextVNode: () => createTextVNode,
7216
- createVNode: () => createVNode,
7217
- customRef: () => customRef,
7218
- defineAsyncComponent: () => defineAsyncComponent,
7219
- defineComponent: () => defineComponent,
7220
- defineCustomElement: () => defineCustomElement,
7221
- defineEmits: () => defineEmits,
7222
- defineExpose: () => defineExpose,
7223
- defineModel: () => defineModel,
7224
- defineOptions: () => defineOptions,
7225
- defineProps: () => defineProps,
7226
- defineSSRCustomElement: () => defineSSRCustomElement,
7227
- defineSlots: () => defineSlots,
7228
- devtools: () => devtools$2,
7229
- effect: () => effect,
7230
- effectScope: () => effectScope,
7231
- getCurrentInstance: () => getCurrentInstance$1,
7232
- getCurrentScope: () => getCurrentScope,
7233
- getCurrentWatcher: () => getCurrentWatcher,
7234
- getTransitionRawChildren: () => getTransitionRawChildren,
7235
- guardReactiveProps: () => guardReactiveProps,
7236
- h: () => h,
7237
- handleError: () => handleError,
7238
- hasInjectionContext: () => hasInjectionContext,
7239
- hydrate: () => hydrate,
7240
- hydrateOnIdle: () => hydrateOnIdle,
7241
- hydrateOnInteraction: () => hydrateOnInteraction,
7242
- hydrateOnMediaQuery: () => hydrateOnMediaQuery,
7243
- hydrateOnVisible: () => hydrateOnVisible,
7244
- initCustomFormatter: () => initCustomFormatter,
7245
- initDirectivesForSSR: () => initDirectivesForSSR,
7246
- inject: () => inject,
7247
- isMemoSame: () => isMemoSame,
7248
- isProxy: () => isProxy,
7249
- isReactive: () => isReactive,
7250
- isReadonly: () => isReadonly,
7251
- isRef: () => isRef,
7252
- isRuntimeOnly: () => isRuntimeOnly,
7253
- isShallow: () => isShallow,
7254
- isVNode: () => isVNode$1,
7255
- markRaw: () => markRaw,
7256
- mergeDefaults: () => mergeDefaults,
7257
- mergeModels: () => mergeModels,
7258
- mergeProps: () => mergeProps,
7259
- nextTick: () => nextTick,
7260
- nodeOps: () => nodeOps,
7261
- normalizeClass: () => normalizeClass,
7262
- normalizeProps: () => normalizeProps,
7263
- normalizeStyle: () => normalizeStyle,
7264
- onActivated: () => onActivated,
7265
- onBeforeMount: () => onBeforeMount,
7266
- onBeforeUnmount: () => onBeforeUnmount,
7267
- onBeforeUpdate: () => onBeforeUpdate,
7268
- onDeactivated: () => onDeactivated,
7269
- onErrorCaptured: () => onErrorCaptured,
7270
- onMounted: () => onMounted,
7271
- onRenderTracked: () => onRenderTracked,
7272
- onRenderTriggered: () => onRenderTriggered,
7273
- onScopeDispose: () => onScopeDispose,
7274
- onServerPrefetch: () => onServerPrefetch,
7275
- onUnmounted: () => onUnmounted,
7276
- onUpdated: () => onUpdated,
7277
- onWatcherCleanup: () => onWatcherCleanup,
7278
- openBlock: () => openBlock,
7279
- patchProp: () => patchProp,
7280
- popScopeId: () => popScopeId,
7281
- provide: () => provide,
7282
- proxyRefs: () => proxyRefs,
7283
- pushScopeId: () => pushScopeId,
7284
- queuePostFlushCb: () => queuePostFlushCb,
7285
- reactive: () => reactive,
7286
- readonly: () => readonly,
7287
- ref: () => ref,
7288
- registerRuntimeCompiler: () => registerRuntimeCompiler,
7289
- render: () => render,
7290
- renderList: () => renderList,
7291
- renderSlot: () => renderSlot,
7292
- resolveComponent: () => resolveComponent,
7293
- resolveDirective: () => resolveDirective,
7294
- resolveDynamicComponent: () => resolveDynamicComponent,
7295
- resolveFilter: () => null,
7296
- resolveTransitionHooks: () => resolveTransitionHooks,
7297
- setBlockTracking: () => setBlockTracking,
7298
- setDevtoolsHook: () => setDevtoolsHook,
7299
- setTransitionHooks: () => setTransitionHooks,
7300
- shallowReactive: () => shallowReactive,
7301
- shallowReadonly: () => shallowReadonly,
7302
- shallowRef: () => shallowRef,
7303
- ssrContextKey: () => ssrContextKey,
7304
- ssrUtils: () => ssrUtils,
7305
- stop: () => stop,
7306
- toDisplayString: () => toDisplayString$1,
7307
- toHandlerKey: () => toHandlerKey,
7308
- toHandlers: () => toHandlers,
7309
- toRaw: () => toRaw,
7310
- toRef: () => toRef$1,
7311
- toRefs: () => toRefs,
7312
- toValue: () => toValue,
7313
- transformVNodeArgs: () => transformVNodeArgs,
7314
- triggerRef: () => triggerRef,
7315
- unref: () => unref,
7316
- useAttrs: () => useAttrs,
7317
- useCssModule: () => useCssModule,
7318
- useCssVars: () => useCssVars,
7319
- useHost: () => useHost,
7320
- useId: () => useId,
7321
- useModel: () => useModel,
7322
- useSSRContext: () => useSSRContext,
7323
- useShadowRoot: () => useShadowRoot,
7324
- useSlots: () => useSlots,
7325
- useTemplateRef: () => useTemplateRef,
7326
- useTransitionState: () => useTransitionState,
7327
- vModelCheckbox: () => vModelCheckbox,
7328
- vModelDynamic: () => vModelDynamic,
7329
- vModelRadio: () => vModelRadio,
7330
- vModelSelect: () => vModelSelect,
7331
- vModelText: () => vModelText,
7332
- vShow: () => vShow,
7333
- version: () => version,
7334
- warn: () => warn$1,
7335
- watch: () => watch,
7336
- watchEffect: () => watchEffect,
7337
- watchPostEffect: () => watchPostEffect,
7338
- watchSyncEffect: () => watchSyncEffect,
7339
- withAsyncContext: () => withAsyncContext,
7340
- withCtx: () => withCtx,
7341
- withDefaults: () => withDefaults,
7342
- withDirectives: () => withDirectives,
7343
- withKeys: () => withKeys,
7344
- withMemo: () => withMemo,
7345
- withModifiers: () => withModifiers,
7346
- withScopeId: () => withScopeId
7347
- });
7348
- var compile$1;
4791
+ //#region node_modules/.pnpm/vue@3.5.41_typescript@5.9.3/node_modules/vue/dist/vue.runtime.esm-bundler.js
7349
4792
  var init_vue_runtime_esm_bundler = __esmMin((() => {
7350
4793
  init_runtime_dom_esm_bundler();
7351
- compile$1 = () => {
7352
- /**
7353
- * vue v3.5.34
7354
- * (c) 2018-present Yuxi (Evan) You and Vue contributors
7355
- * @license MIT
7356
- **/
7357
- };
7358
4794
  }));
4795
+ /**
4796
+ * vue v3.5.41
4797
+ * (c) 2018-present Yuxi (Evan) You and Vue contributors
4798
+ * @license MIT
4799
+ **/
7359
4800
  //#endregion
7360
- //#region node_modules/.pnpm/@intlify+shared@11.4.4/node_modules/@intlify/shared/dist/shared.mjs
4801
+ //#region node_modules/.pnpm/@intlify+shared@11.4.9/node_modules/@intlify/shared/dist/shared.mjs
7361
4802
  /*!
7362
- * shared v11.4.4
4803
+ * shared v11.4.9
7363
4804
  * (c) 2026 kazuya kawaguchi
7364
4805
  * Released under the MIT License.
7365
4806
  */
4807
+ function hasOwn(obj, key) {
4808
+ return hasOwnProperty.call(obj, key);
4809
+ }
4810
+ function join(items, separator = "") {
4811
+ return items.reduce((str, item, index) => index === 0 ? str + item : str + separator + item, "");
4812
+ }
7366
4813
  function warn(msg, err) {
7367
4814
  if (typeof console !== "undefined") {
7368
4815
  console.warn(`[intlify] ` + msg);
@@ -7374,10 +4821,17 @@ function escapeHtml(rawText) {
7374
4821
  return rawText.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;").replace(/"/g, "&quot;").replace(/'/g, "&apos;").replace(/\//g, "&#x2F;").replace(/=/g, "&#x3D;");
7375
4822
  }
7376
4823
  function escapeAttributeValue(value) {
7377
- return value.replace(/&(?![a-zA-Z0-9#]{2,6};)/g, "&amp;").replace(/"/g, "&quot;").replace(/'/g, "&apos;").replace(/</g, "&lt;").replace(/>/g, "&gt;");
4824
+ return value.replace(/&(?![a-z0-9#]{2,6};)/gi, "&amp;").replace(/"/g, "&quot;").replace(/'/g, "&apos;").replace(/</g, "&lt;").replace(/>/g, "&gt;");
4825
+ }
4826
+ function decodeNumericCharacterReference(match, hex, decimal) {
4827
+ const digits = hex || decimal;
4828
+ if (!digits) return match;
4829
+ const codePoint = Number.parseInt(digits, hex ? 16 : 10);
4830
+ return codePoint <= 127 ? String.fromCharCode(codePoint) : match;
7378
4831
  }
7379
4832
  function hasJavascriptScheme(value) {
7380
- return javascriptSchemePattern.test(value);
4833
+ const normalized = value.replace(numericCharacterReferencePattern, decodeNumericCharacterReference).replace(namedWhitespaceCharacterReferencePattern, "").replace(colonCharacterReferencePattern, ":").replace(controlOrWhitespacePattern, "");
4834
+ return javascriptSchemePattern.test(normalized);
7381
4835
  }
7382
4836
  function sanitizeStyleValue(value) {
7383
4837
  const urlPattern = /url\s*\(/gi;
@@ -7419,16 +4873,10 @@ function sanitizeAttributeValue(attrName, value) {
7419
4873
  function sanitizeTranslatedHtml(html) {
7420
4874
  html = html.replace(/([\w:-]+)\s*=\s*"([^"]*)"/g, (_, attrName, attrValue) => `${attrName}="${sanitizeAttributeValue(attrName, attrValue)}"`);
7421
4875
  html = html.replace(/([\w:-]+)\s*=\s*'([^']*)'/g, (_, attrName, attrValue) => `${attrName}='${sanitizeAttributeValue(attrName, attrValue)}'`);
7422
- if (/\s*on\w+\s*=\s*["']?[^"'>]+["']?/gi.test(html)) html = html.replace(/(\s+)(on)(\w+\s*=)/gi, "$1&#111;n$3");
7423
- html = html.replace(/(\s+(?:href|src|action|formaction)\s*=\s*)([^\s"'=<>`]+)/gi, (match, prefix, attrValue) => hasJavascriptScheme(attrValue) ? `${prefix}about:blank` : match);
4876
+ if (eventHandlerPattern.test(html)) html = html.replace(eventHandlerAttributePattern, "$1&#111;n$2");
4877
+ html = html.replace(unquotedUrlAttributePattern, (match, boundary, prefix, attrValue) => hasJavascriptScheme(attrValue) ? `${boundary}${prefix}about:blank` : match);
7424
4878
  return html;
7425
4879
  }
7426
- function hasOwn(obj, key) {
7427
- return hasOwnProperty.call(obj, key);
7428
- }
7429
- function join(items, separator = "") {
7430
- return items.reduce((str, item, index) => index === 0 ? str + item : str + separator + item, "");
7431
- }
7432
4880
  function deepCopy(src, des) {
7433
4881
  if (isNotObjectOrIsArray(src) || isNotObjectOrIsArray(des)) throw new Error("Invalid value");
7434
4882
  const stack = [{
@@ -7439,16 +4887,26 @@ function deepCopy(src, des) {
7439
4887
  const { src, des } = stack.pop();
7440
4888
  Object.keys(src).forEach((key) => {
7441
4889
  if (key === "__proto__") return;
7442
- if (isObject(src[key]) && !isObject(des[key])) des[key] = Array.isArray(src[key]) ? [] : create();
7443
- if (isNotObjectOrIsArray(des[key]) || isNotObjectOrIsArray(src[key])) des[key] = src[key];
7444
- else stack.push({
7445
- src: src[key],
7446
- des: des[key]
7447
- });
4890
+ const value = src[key];
4891
+ if (isArray$1(value)) {
4892
+ const copied = [];
4893
+ copied.length = value.length;
4894
+ des[key] = copied;
4895
+ stack.push({
4896
+ src: value,
4897
+ des: copied
4898
+ });
4899
+ } else if (isObject(value)) {
4900
+ if (!isObject(des[key]) || isArray$1(des[key])) des[key] = create();
4901
+ stack.push({
4902
+ src: value,
4903
+ des: des[key]
4904
+ });
4905
+ } else des[key] = value;
7448
4906
  });
7449
4907
  }
7450
4908
  }
7451
- var inBrowser, makeSymbol, generateFormatCacheKey, friendlyJSONstringify, isNumber, isDate, isRegExp, isEmptyObject, assign$1, _create, create, _globalThis, getGlobalThis, javascriptSchemePattern, urlAttributePattern, hasOwnProperty, isArray$1, isFunction, isString, isBoolean, isObject, isPromise, objectToString, toTypeString, isPlainObject, toDisplayString, isNotObjectOrIsArray;
4909
+ var inBrowser, makeSymbol, generateFormatCacheKey, friendlyJSONstringify, isNumber, isDate, isRegExp, isEmptyObject, assign$1, _create, create, _globalThis, getGlobalThis, hasOwnProperty, isArray$1, isFunction, isString, isBoolean, isObject, isPromise, objectToString, toTypeString, isPlainObject, toDisplayString, javascriptSchemePattern, urlAttributePattern, numericCharacterReferencePattern, namedWhitespaceCharacterReferencePattern, colonCharacterReferencePattern, controlOrWhitespacePattern, eventHandlerPattern, eventHandlerAttributePattern, unquotedUrlAttributePattern, isNotObjectOrIsArray;
7452
4910
  var init_shared$1 = __esmMin((() => {
7453
4911
  inBrowser = typeof window !== "undefined";
7454
4912
  makeSymbol = (name, shareable = false) => !shareable ? Symbol(name) : Symbol.for(name);
@@ -7468,8 +4926,6 @@ var init_shared$1 = __esmMin((() => {
7468
4926
  getGlobalThis = () => {
7469
4927
  return _globalThis || (_globalThis = typeof globalThis !== "undefined" ? globalThis : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : typeof global !== "undefined" ? global : create());
7470
4928
  };
7471
- javascriptSchemePattern = /^\s*javascript\s*(?::|&#0*58;?|&#x0*3a;?|&colon;?)/i;
7472
- urlAttributePattern = /^(?:href|src|action|formaction)$/i;
7473
4929
  hasOwnProperty = Object.prototype.hasOwnProperty;
7474
4930
  isArray$1 = Array.isArray;
7475
4931
  isFunction = (val) => typeof val === "function";
@@ -7485,12 +4941,21 @@ var init_shared$1 = __esmMin((() => {
7485
4941
  toDisplayString = (val) => {
7486
4942
  return val == null ? "" : isArray$1(val) || isPlainObject(val) && val.toString === objectToString ? JSON.stringify(val, null, 2) : String(val);
7487
4943
  };
4944
+ javascriptSchemePattern = /^javascript:/i;
4945
+ urlAttributePattern = /^(?:href|src|action|formaction)$/i;
4946
+ numericCharacterReferencePattern = /&#(?:x([0-9a-f]+)|(\d+));?/gi;
4947
+ namedWhitespaceCharacterReferencePattern = /&(?:Tab|NewLine);/g;
4948
+ colonCharacterReferencePattern = /&colon;?/gi;
4949
+ controlOrWhitespacePattern = /[\u0000-\u0020\u007f-\u009f]/g;
4950
+ eventHandlerPattern = /(?:^|[\s"'<>/])on\w+\s*=\s*["']?[^"'>]+["']?/i;
4951
+ eventHandlerAttributePattern = /(^|[\s"'<>/])on(\w+\s*=)/gi;
4952
+ unquotedUrlAttributePattern = /(^|[\s"'<>/])((?:href|src|action|formaction)\s*=\s*)([^\s"'=<>`]+)/gi;
7488
4953
  isNotObjectOrIsArray = (val) => !isObject(val) || isArray$1(val);
7489
4954
  }));
7490
4955
  //#endregion
7491
- //#region node_modules/.pnpm/@intlify+message-compiler@11.4.4/node_modules/@intlify/message-compiler/dist/message-compiler.mjs
4956
+ //#region node_modules/.pnpm/@intlify+message-compiler@11.4.9/node_modules/@intlify/message-compiler/dist/message-compiler.mjs
7492
4957
  /*!
7493
- * message-compiler v11.4.4
4958
+ * message-compiler v11.4.9
7494
4959
  * (c) 2026 kazuya kawaguchi
7495
4960
  * Released under the MIT License.
7496
4961
  */
@@ -7610,10 +5075,13 @@ function createTokenizer(source, options = {}) {
7610
5075
  const ctx = context();
7611
5076
  pos.column += offset;
7612
5077
  pos.offset += offset;
7613
- if (onError) onError(createCompileError(code, location ? createLocation(ctx.startLoc, pos) : null, {
7614
- domain: ERROR_DOMAIN$3,
7615
- args
7616
- }));
5078
+ if (onError) {
5079
+ const err = createCompileError(code, location ? createLocation(ctx.startLoc, pos) : null, {
5080
+ domain: ERROR_DOMAIN$3,
5081
+ args
5082
+ });
5083
+ onError(err);
5084
+ }
7617
5085
  }
7618
5086
  function getToken(context, type, value) {
7619
5087
  context.endLoc = currentPosition();
@@ -7803,15 +5271,16 @@ function createTokenizer(source, options = {}) {
7803
5271
  scnr.next();
7804
5272
  }
7805
5273
  } else if (ch === "{" || ch === "}" || ch === "@" || ch === "|" || !ch) break;
7806
- else if (ch === CHAR_SP || ch === CHAR_LF) if (isTextStart(scnr)) {
7807
- buf += ch;
7808
- scnr.next();
7809
- } else if (isPluralStart(scnr)) break;
7810
- else {
7811
- buf += ch;
7812
- scnr.next();
7813
- }
7814
- else {
5274
+ else if (ch === CHAR_SP || ch === CHAR_LF) {
5275
+ if (isTextStart(scnr)) {
5276
+ buf += ch;
5277
+ scnr.next();
5278
+ } else if (isPluralStart(scnr)) break;
5279
+ else {
5280
+ buf += ch;
5281
+ scnr.next();
5282
+ }
5283
+ } else {
7815
5284
  buf += ch;
7816
5285
  scnr.next();
7817
5286
  }
@@ -8059,7 +5528,6 @@ function createTokenizer(source, options = {}) {
8059
5528
  return token;
8060
5529
  }
8061
5530
  if (isTextStart(scnr)) return getToken(context, 0, readText(scnr));
8062
- break;
8063
5531
  }
8064
5532
  return token;
8065
5533
  }
@@ -8102,10 +5570,13 @@ function createParser(options = {}) {
8102
5570
  const end = tokenzer.currentPosition();
8103
5571
  end.offset += offset;
8104
5572
  end.column += offset;
8105
- if (onError) onError(createCompileError(code, location ? createLocation(start, end) : null, {
8106
- domain: ERROR_DOMAIN$2,
8107
- args
8108
- }));
5573
+ if (onError) {
5574
+ const err = createCompileError(code, location ? createLocation(start, end) : null, {
5575
+ domain: ERROR_DOMAIN$2,
5576
+ args
5577
+ });
5578
+ onError(err);
5579
+ }
8109
5580
  }
8110
5581
  function startNode(type, offset, loc) {
8111
5582
  const node = { type };
@@ -8343,7 +5814,6 @@ function traverseNode(node, transformer) {
8343
5814
  case 4:
8344
5815
  transformer.helper("interpolate");
8345
5816
  transformer.helper("named");
8346
- break;
8347
5817
  }
8348
5818
  }
8349
5819
  function transform(ast, options = {}) {
@@ -8448,7 +5918,6 @@ function minify(node) {
8448
5918
  delete named.key;
8449
5919
  break;
8450
5920
  }
8451
- default:
8452
5921
  }
8453
5922
  delete node.type;
8454
5923
  }
@@ -8571,10 +6040,7 @@ function generateNode(generator, node) {
8571
6040
  case 9:
8572
6041
  generator.push(JSON.stringify(node.value), node);
8573
6042
  break;
8574
- case 3:
8575
- generator.push(JSON.stringify(node.value), node);
8576
- break;
8577
- default:
6043
+ case 3: generator.push(JSON.stringify(node.value), node);
8578
6044
  }
8579
6045
  }
8580
6046
  function baseCompile$1(source, options = {}) {
@@ -8661,9 +6127,9 @@ var init_message_compiler = __esmMin((() => {
8661
6127
  };
8662
6128
  }));
8663
6129
  //#endregion
8664
- //#region node_modules/.pnpm/@intlify+core-base@11.4.4/node_modules/@intlify/core-base/dist/core-base.mjs
6130
+ //#region node_modules/.pnpm/@intlify+core-base@11.4.9/node_modules/@intlify/core-base/dist/core-base.mjs
8665
6131
  /*!
8666
- * core-base v11.4.4
6132
+ * core-base v11.4.9
8667
6133
  * (c) 2026 kazuya kawaguchi
8668
6134
  * Released under the MIT License.
8669
6135
  */
@@ -8776,7 +6242,7 @@ function baseCompile(message, options = {}) {
8776
6242
  detectError
8777
6243
  };
8778
6244
  }
8779
- /* @__NO_SIDE_EFFECTS__ */
6245
+ /* #__NO_SIDE_EFFECTS__ */
8780
6246
  function compile(message, context) {
8781
6247
  if (!__INTLIFY_DROP_MESSAGE_COMPILER__ && isString(message)) {
8782
6248
  isBoolean(context.warnHtmlMessage) && context.warnHtmlMessage;
@@ -8823,13 +6289,14 @@ function getLocale(context, options) {
8823
6289
  /** @internal */
8824
6290
  function resolveLocale(locale) {
8825
6291
  if (isString(locale)) return locale;
8826
- else if (isFunction(locale)) if (locale.resolvedOnce && _resolveLocale != null) return _resolveLocale;
8827
- else if (locale.constructor.name === "Function") {
8828
- const resolve = locale();
8829
- if (isPromise(resolve)) throw createCoreError(CoreErrorCodes.NOT_SUPPORT_LOCALE_PROMISE_VALUE);
8830
- return _resolveLocale = resolve;
8831
- } else throw createCoreError(CoreErrorCodes.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION);
8832
- else throw createCoreError(CoreErrorCodes.NOT_SUPPORT_LOCALE_TYPE);
6292
+ else if (isFunction(locale)) {
6293
+ if (locale.resolvedOnce && _resolveLocale != null) return _resolveLocale;
6294
+ else if (locale.constructor.name === "Function") {
6295
+ const resolve = locale();
6296
+ if (isPromise(resolve)) throw createCoreError(CoreErrorCodes.NOT_SUPPORT_LOCALE_PROMISE_VALUE);
6297
+ return _resolveLocale = resolve;
6298
+ } else throw createCoreError(CoreErrorCodes.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION);
6299
+ } else throw createCoreError(CoreErrorCodes.NOT_SUPPORT_LOCALE_TYPE);
8833
6300
  }
8834
6301
  /**
8835
6302
  * Fallback with simple implemenation
@@ -8837,7 +6304,7 @@ function resolveLocale(locale) {
8837
6304
  * @remarks
8838
6305
  * A fallback locale function implemented with a simple fallback algorithm.
8839
6306
  *
8840
- * Basically, it returns the value as specified in the `fallbackLocale` props, and is processed with the fallback inside intlify.
6307
+ * Basically, the chain consists of `start` plus the specified fallback: for a string or array `fallbackLocale`, the value as specified in the props is used; for a map `fallbackLocale`, the map's **keys** are used and the `default` key is skipped since it is not a locale name.
8841
6308
  *
8842
6309
  * @param ctx - A {@link CoreContext | context}
8843
6310
  * @param fallback - A {@link FallbackLocale | fallback locale}
@@ -8848,7 +6315,7 @@ function resolveLocale(locale) {
8848
6315
  * @VueI18nGeneral
8849
6316
  */
8850
6317
  function fallbackWithSimple(ctx, fallback, start) {
8851
- return [...new Set([start, ...isArray$1(fallback) ? fallback : isObject(fallback) ? Object.keys(fallback) : isString(fallback) ? [fallback] : [start]])];
6318
+ return [.../* @__PURE__ */ new Set([start, ...isArray$1(fallback) ? fallback : isObject(fallback) ? Object.keys(fallback).filter((locale) => locale !== "default") : isString(fallback) ? [fallback] : [start]])];
8852
6319
  }
8853
6320
  /**
8854
6321
  * Fallback with locale chain
@@ -8870,16 +6337,21 @@ function fallbackWithLocaleChain(ctx, fallback, start) {
8870
6337
  const startLocale = isString(start) ? start : DEFAULT_LOCALE;
8871
6338
  const context = ctx;
8872
6339
  if (!context.__localeChainCache) context.__localeChainCache = /* @__PURE__ */ new Map();
8873
- let chain = context.__localeChainCache.get(startLocale);
8874
- if (!chain) {
8875
- chain = [];
8876
- let block = [start];
8877
- while (isArray$1(block)) block = appendBlockToChain(chain, block, fallback);
8878
- const defaults = isArray$1(fallback) || !isPlainObject(fallback) ? fallback : fallback["default"] ? fallback["default"] : null;
8879
- block = isString(defaults) ? [defaults] : defaults;
8880
- if (isArray$1(block)) appendBlockToChain(chain, block, false);
8881
- context.__localeChainCache.set(startLocale, chain);
6340
+ const fallbackKey = friendlyJSONstringify(fallback);
6341
+ let chains = context.__localeChainCache.get(startLocale);
6342
+ if (!chains) {
6343
+ chains = /* @__PURE__ */ new Map();
6344
+ context.__localeChainCache.set(startLocale, chains);
8882
6345
  }
6346
+ const cached = chains.get(fallbackKey);
6347
+ if (cached) return cached;
6348
+ const chain = [];
6349
+ let block = [start];
6350
+ while (isArray$1(block)) block = appendBlockToChain(chain, block, fallback);
6351
+ const defaults = isArray$1(fallback) || !isPlainObject(fallback) ? fallback : fallback["default"] ? fallback["default"] : null;
6352
+ block = isString(defaults) ? [defaults] : defaults;
6353
+ if (isArray$1(block)) appendBlockToChain(chain, block, false);
6354
+ chains.set(fallbackKey, chain);
8883
6355
  return chain;
8884
6356
  }
8885
6357
  function appendBlockToChain(chain, block, blocks) {
@@ -9207,31 +6679,58 @@ function isImplicitFallback(targetLocale, locales) {
9207
6679
  for (let i = index + 1; i < locales.length; i++) if (isAlmostSameLocale(targetLocale, locales[i])) return true;
9208
6680
  return false;
9209
6681
  }
6682
+ function resolveFormatLocale(context, key, locale, formats, missingWarn, fallbackWarn, type) {
6683
+ const { fallbackLocale, localeFallbacker, onWarn } = context;
6684
+ const locales = localeFallbacker(context, fallbackLocale, locale);
6685
+ for (let i = 0; i < locales.length; i++) {
6686
+ const targetLocale = locales[i];
6687
+ const format = (formats[targetLocale] || {})[key];
6688
+ if (isPlainObject(format) && isString(targetLocale)) return targetLocale;
6689
+ handleMissing(context, key, targetLocale, missingWarn, type);
6690
+ }
6691
+ return null;
6692
+ }
6693
+ function getFormatterCacheKey(locale, key, overrides) {
6694
+ let id = `${locale}__${key}`;
6695
+ if (isPlainObject(overrides) && !isEmptyObject(overrides)) id = `${id}__${JSON.stringify(overrides)}`;
6696
+ return id;
6697
+ }
6698
+ function clearFormatCache(formatters, locale, format) {
6699
+ for (const key in format) {
6700
+ const prefix = `${locale}__${key}`;
6701
+ for (const id of formatters.keys()) if (id === prefix || id.startsWith(`${prefix}__`)) formatters.delete(id);
6702
+ }
6703
+ }
6704
+ function parseFormatArgs(args, options, initialOverrides, optionsKeys) {
6705
+ const [, arg2, arg3, arg4] = args;
6706
+ let overrides = initialOverrides;
6707
+ if (isString(arg2)) options.key = arg2;
6708
+ else if (isPlainObject(arg2)) Object.keys(arg2).forEach((key) => {
6709
+ if (optionsKeys.includes(key)) overrides[key] = arg2[key];
6710
+ else options[key] = arg2[key];
6711
+ });
6712
+ if (isString(arg3)) options.locale = arg3;
6713
+ else if (isPlainObject(arg3)) overrides = arg3;
6714
+ if (isPlainObject(arg4)) overrides = arg4;
6715
+ return overrides;
6716
+ }
9210
6717
  function datetime(context, ...args) {
9211
- const { datetimeFormats, unresolving, fallbackLocale, onWarn, localeFallbacker } = context;
6718
+ const { datetimeFormats, unresolving, onWarn } = context;
9212
6719
  const { __datetimeFormatters } = context;
9213
6720
  if (!isString(args[0]) && !isDate(args[0]) && !isNumber(args[0])) return "";
9214
6721
  const [key, value, options, overrides] = parseDateTimeArgs(...args);
9215
6722
  const missingWarn = isBoolean(options.missingWarn) ? options.missingWarn : context.missingWarn;
9216
- isBoolean(options.fallbackWarn) ? options.fallbackWarn : context.fallbackWarn;
6723
+ const fallbackWarn = isBoolean(options.fallbackWarn) ? options.fallbackWarn : context.fallbackWarn;
9217
6724
  const part = !!options.part;
9218
6725
  const locale = getLocale(context, options);
9219
- const locales = localeFallbacker(context, fallbackLocale, locale);
9220
- if (!isString(key) || key === "") return new Intl.DateTimeFormat(locale.replace(/!/g, ""), overrides).format(value);
9221
- let datetimeFormat = {};
9222
- let targetLocale;
9223
- let format = null;
9224
- const type = "datetime format";
9225
- for (let i = 0; i < locales.length; i++) {
9226
- targetLocale = locales[i];
9227
- datetimeFormat = datetimeFormats[targetLocale] || {};
9228
- format = datetimeFormat[key];
9229
- if (isPlainObject(format)) break;
9230
- handleMissing(context, key, targetLocale, missingWarn, type);
9231
- }
9232
- if (!isPlainObject(format) || !isString(targetLocale)) return unresolving ? -1 : key;
9233
- let id = `${targetLocale}__${key}`;
9234
- if (!isEmptyObject(overrides)) id = `${id}__${JSON.stringify(overrides)}`;
6726
+ if (!isString(key) || key === "") {
6727
+ const formatter = new Intl.DateTimeFormat(locale.replace(/!/g, ""), overrides);
6728
+ return !part ? formatter.format(value) : formatter.formatToParts(value);
6729
+ }
6730
+ const targetLocale = resolveFormatLocale(context, key, locale, datetimeFormats, missingWarn, fallbackWarn, "datetime format");
6731
+ if (!isString(targetLocale)) return unresolving ? -1 : key;
6732
+ const format = datetimeFormats[targetLocale][key];
6733
+ const id = getFormatterCacheKey(targetLocale, key, overrides);
9235
6734
  let formatter = __datetimeFormatters.get(id);
9236
6735
  if (!formatter) {
9237
6736
  formatter = new Intl.DateTimeFormat(targetLocale, assign$1({}, format, overrides));
@@ -9241,9 +6740,9 @@ function datetime(context, ...args) {
9241
6740
  }
9242
6741
  /** @internal */
9243
6742
  function parseDateTimeArgs(...args) {
9244
- const [arg1, arg2, arg3, arg4] = args;
6743
+ const [arg1] = args;
9245
6744
  const options = create();
9246
- let overrides = create();
6745
+ const initialOverrides = create();
9247
6746
  let value;
9248
6747
  if (isString(arg1)) {
9249
6748
  const matches = arg1.match(/(\d{4}-\d{2}-\d{2})(T|\s)?(.*)/);
@@ -9260,14 +6759,7 @@ function parseDateTimeArgs(...args) {
9260
6759
  value = arg1;
9261
6760
  } else if (isNumber(arg1)) value = arg1;
9262
6761
  else throw createCoreError(CoreErrorCodes.INVALID_ARGUMENT);
9263
- if (isString(arg2)) options.key = arg2;
9264
- else if (isPlainObject(arg2)) Object.keys(arg2).forEach((key) => {
9265
- if (DATETIME_FORMAT_OPTIONS_KEYS.includes(key)) overrides[key] = arg2[key];
9266
- else options[key] = arg2[key];
9267
- });
9268
- if (isString(arg3)) options.locale = arg3;
9269
- else if (isPlainObject(arg3)) overrides = arg3;
9270
- if (isPlainObject(arg4)) overrides = arg4;
6762
+ const overrides = parseFormatArgs(args, options, initialOverrides, DATETIME_FORMAT_OPTIONS_KEYS);
9271
6763
  return [
9272
6764
  options.key || "",
9273
6765
  value,
@@ -9277,38 +6769,25 @@ function parseDateTimeArgs(...args) {
9277
6769
  }
9278
6770
  /** @internal */
9279
6771
  function clearDateTimeFormat(ctx, locale, format) {
9280
- const context = ctx;
9281
- for (const key in format) {
9282
- const id = `${locale}__${key}`;
9283
- if (!context.__datetimeFormatters.has(id)) continue;
9284
- context.__datetimeFormatters.delete(id);
9285
- }
6772
+ clearFormatCache(ctx.__datetimeFormatters, locale, format);
9286
6773
  }
9287
6774
  function number(context, ...args) {
9288
- const { numberFormats, unresolving, fallbackLocale, onWarn, localeFallbacker } = context;
6775
+ const { numberFormats, unresolving, onWarn } = context;
9289
6776
  const { __numberFormatters } = context;
9290
6777
  if (!isNumber(args[0])) return "";
9291
6778
  const [key, value, options, overrides] = parseNumberArgs(...args);
9292
6779
  const missingWarn = isBoolean(options.missingWarn) ? options.missingWarn : context.missingWarn;
9293
- isBoolean(options.fallbackWarn) ? options.fallbackWarn : context.fallbackWarn;
6780
+ const fallbackWarn = isBoolean(options.fallbackWarn) ? options.fallbackWarn : context.fallbackWarn;
9294
6781
  const part = !!options.part;
9295
6782
  const locale = getLocale(context, options);
9296
- const locales = localeFallbacker(context, fallbackLocale, locale);
9297
- if (!isString(key) || key === "") return new Intl.NumberFormat(locale.replace(/!/g, ""), overrides).format(value);
9298
- let numberFormat = {};
9299
- let targetLocale;
9300
- let format = null;
9301
- const type = "number format";
9302
- for (let i = 0; i < locales.length; i++) {
9303
- targetLocale = locales[i];
9304
- numberFormat = numberFormats[targetLocale] || {};
9305
- format = numberFormat[key];
9306
- if (isPlainObject(format)) break;
9307
- handleMissing(context, key, targetLocale, missingWarn, type);
9308
- }
9309
- if (!isPlainObject(format) || !isString(targetLocale)) return unresolving ? -1 : key;
9310
- let id = `${targetLocale}__${key}`;
9311
- if (!isEmptyObject(overrides)) id = `${id}__${JSON.stringify(overrides)}`;
6783
+ if (!isString(key) || key === "") {
6784
+ const formatter = new Intl.NumberFormat(locale.replace(/!/g, ""), overrides);
6785
+ return !part ? formatter.format(value) : formatter.formatToParts(value);
6786
+ }
6787
+ const targetLocale = resolveFormatLocale(context, key, locale, numberFormats, missingWarn, fallbackWarn, "number format");
6788
+ if (!isString(targetLocale)) return unresolving ? -1 : key;
6789
+ const format = numberFormats[targetLocale][key];
6790
+ const id = getFormatterCacheKey(targetLocale, key, overrides);
9312
6791
  let formatter = __numberFormatters.get(id);
9313
6792
  if (!formatter) {
9314
6793
  formatter = new Intl.NumberFormat(targetLocale, assign$1({}, format, overrides));
@@ -9318,19 +6797,12 @@ function number(context, ...args) {
9318
6797
  }
9319
6798
  /** @internal */
9320
6799
  function parseNumberArgs(...args) {
9321
- const [arg1, arg2, arg3, arg4] = args;
6800
+ const [arg1] = args;
9322
6801
  const options = create();
9323
- let overrides = create();
6802
+ const initialOverrides = create();
9324
6803
  if (!isNumber(arg1)) throw createCoreError(CoreErrorCodes.INVALID_ARGUMENT);
9325
6804
  const value = arg1;
9326
- if (isString(arg2)) options.key = arg2;
9327
- else if (isPlainObject(arg2)) Object.keys(arg2).forEach((key) => {
9328
- if (NUMBER_FORMAT_OPTIONS_KEYS.includes(key)) overrides[key] = arg2[key];
9329
- else options[key] = arg2[key];
9330
- });
9331
- if (isString(arg3)) options.locale = arg3;
9332
- else if (isPlainObject(arg3)) overrides = arg3;
9333
- if (isPlainObject(arg4)) overrides = arg4;
6805
+ const overrides = parseFormatArgs(args, options, initialOverrides, NUMBER_FORMAT_OPTIONS_KEYS);
9334
6806
  return [
9335
6807
  options.key || "",
9336
6808
  value,
@@ -9340,12 +6812,7 @@ function parseNumberArgs(...args) {
9340
6812
  }
9341
6813
  /** @internal */
9342
6814
  function clearNumberFormat(ctx, locale, format) {
9343
- const context = ctx;
9344
- for (const key in format) {
9345
- const id = `${locale}__${key}`;
9346
- if (!context.__numberFormatters.has(id)) continue;
9347
- context.__numberFormatters.delete(id);
9348
- }
6815
+ clearFormatCache(ctx.__numberFormatters, locale, format);
9349
6816
  }
9350
6817
  function pluralDefault(choice, choicesLength) {
9351
6818
  choice = Math.abs(choice);
@@ -9590,7 +7057,7 @@ var init_core_base = __esmMin((() => {
9590
7057
  defaultOnCacheKey = (message) => message;
9591
7058
  compileCache = create();
9592
7059
  devtools = null;
9593
- translateDevTools = /* @__PURE__ */ createDevToolsHook("function:translate");
7060
+ translateDevTools = /* #__PURE__*/ createDevToolsHook("function:translate");
9594
7061
  CoreErrorCodes = {
9595
7062
  INVALID_ARGUMENT: 17,
9596
7063
  INVALID_DATE_ARGUMENT: 18,
@@ -9659,7 +7126,7 @@ var init_core_base = __esmMin((() => {
9659
7126
  INVALID_DATE_ARGUMENT: 9
9660
7127
  };
9661
7128
  CoreWarnCodes.NOT_FOUND_KEY, CoreWarnCodes.FALLBACK_TO_TRANSLATE, CoreWarnCodes.CANNOT_FORMAT_NUMBER, CoreWarnCodes.FALLBACK_TO_NUMBER_FORMAT, CoreWarnCodes.CANNOT_FORMAT_DATE, CoreWarnCodes.FALLBACK_TO_DATE_FORMAT, CoreWarnCodes.EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER, CoreWarnCodes.INVALID_NUMBER_ARGUMENT, CoreWarnCodes.INVALID_DATE_ARGUMENT;
9662
- VERSION$1 = "11.4.4";
7129
+ VERSION$1 = "11.4.9";
9663
7130
  DEFAULT_LOCALE = "en-US";
9664
7131
  capitalize = (str) => `${str.charAt(0).toLocaleUpperCase()}${str.substr(1)}`;
9665
7132
  _additionalMeta = null;
@@ -9730,9 +7197,9 @@ var init_core_base = __esmMin((() => {
9730
7197
  initFeatureFlags$1();
9731
7198
  }));
9732
7199
  //#endregion
9733
- //#region node_modules/.pnpm/vue-i18n@11.4.4_vue@3.5.34_typescript@5.9.3_/node_modules/vue-i18n/dist/vue-i18n.mjs
7200
+ //#region node_modules/.pnpm/vue-i18n@11.4.9_vue@3.5.41_typescript@5.9.3_/node_modules/vue-i18n/dist/vue-i18n.mjs
9734
7201
  /*!
9735
- * vue-i18n v11.4.4
7202
+ * vue-i18n v11.4.9
9736
7203
  * (c) 2026 kazuya kawaguchi
9737
7204
  * Released under the MIT License.
9738
7205
  */
@@ -9834,9 +7301,7 @@ function createTextNode(key) {
9834
7301
  return createVNode(Text, null, key, 0);
9835
7302
  }
9836
7303
  function getCurrentInstance() {
9837
- const key = "currentInstance";
9838
- if (key in vue_runtime_esm_bundler_exports) return vue_runtime_esm_bundler_exports[key];
9839
- else return getCurrentInstance$1();
7304
+ return mirroredCurrentInstance ?? getCurrentInstance$1();
9840
7305
  }
9841
7306
  function defineCoreMissingHandler(missing) {
9842
7307
  return ((ctx, locale, key, type) => {
@@ -9927,8 +7392,8 @@ function createComposer(options = {}) {
9927
7392
  }
9928
7393
  });
9929
7394
  const messages = computed(() => _messages.value);
9930
- const datetimeFormats = /* @__PURE__ */ computed(() => _datetimeFormats.value);
9931
- const numberFormats = /* @__PURE__ */ computed(() => _numberFormats.value);
7395
+ const datetimeFormats = /* #__PURE__*/ computed(() => _datetimeFormats.value);
7396
+ const numberFormats = /* #__PURE__*/ computed(() => _numberFormats.value);
9932
7397
  function getPostTranslationHandler() {
9933
7398
  return isFunction(_postTranslation) ? _postTranslation : null;
9934
7399
  }
@@ -10232,7 +7697,8 @@ function convertComposerOptions(options) {
10232
7697
  if (isPlainObject(options.sharedMessages)) {
10233
7698
  const sharedMessages = options.sharedMessages;
10234
7699
  messages = Object.keys(sharedMessages).reduce((messages, locale) => {
10235
- assign$1(messages[locale] || (messages[locale] = {}), sharedMessages[locale]);
7700
+ const message = messages[locale] || (messages[locale] = {});
7701
+ assign$1(message, sharedMessages[locale]);
10236
7702
  return messages;
10237
7703
  }, messages || {});
10238
7704
  }
@@ -10427,18 +7893,19 @@ function defineMixin(vuei18n, composer, i18n) {
10427
7893
  const _vueI18n = this.$i18n;
10428
7894
  if (_vueI18n.__extender) _vueI18n.__disposer = _vueI18n.__extender(this.$i18n);
10429
7895
  }
10430
- } else if (options.__i18n) if (this === this.$root) this.$i18n = mergeToGlobal(vuei18n, options);
10431
- else {
10432
- this.$i18n = createVueI18n({
10433
- __i18n: options.__i18n,
10434
- __injectWithOption: true,
10435
- __extender: i18n.__vueI18nExtend,
10436
- __root: composer
10437
- });
10438
- const _vueI18n = this.$i18n;
10439
- if (_vueI18n.__extender) _vueI18n.__disposer = _vueI18n.__extender(this.$i18n);
10440
- }
10441
- else this.$i18n = vuei18n;
7896
+ } else if (options.__i18n) {
7897
+ if (this === this.$root) this.$i18n = mergeToGlobal(vuei18n, options);
7898
+ else {
7899
+ this.$i18n = createVueI18n({
7900
+ __i18n: options.__i18n,
7901
+ __injectWithOption: true,
7902
+ __extender: i18n.__vueI18nExtend,
7903
+ __root: composer
7904
+ });
7905
+ const _vueI18n = this.$i18n;
7906
+ if (_vueI18n.__extender) _vueI18n.__disposer = _vueI18n.__extender(this.$i18n);
7907
+ }
7908
+ } else this.$i18n = vuei18n;
10442
7909
  if (options.__i18nGlobal) adjustI18nResources(composer, options, options);
10443
7910
  this.$t = (...args) => this.$i18n.t(...args);
10444
7911
  this.$rt = (...args) => this.$i18n.rt(...args);
@@ -10454,13 +7921,14 @@ function defineMixin(vuei18n, composer, i18n) {
10454
7921
  /* istanbul ignore if */
10455
7922
  if (!instance) throw createI18nError(I18nErrorCodes.UNEXPECTED_ERROR);
10456
7923
  const _vueI18n = this.$i18n;
7924
+ if (!_vueI18n) return;
10457
7925
  delete this.$t;
10458
7926
  delete this.$rt;
10459
7927
  delete this.$te;
10460
7928
  delete this.$d;
10461
7929
  delete this.$n;
10462
7930
  delete this.$tm;
10463
- if (_vueI18n.__disposer) {
7931
+ if (_vueI18n?.__disposer) {
10464
7932
  _vueI18n.__disposer();
10465
7933
  delete _vueI18n.__disposer;
10466
7934
  delete _vueI18n.__extender;
@@ -10636,7 +8104,7 @@ function createI18n(options = {}) {
10636
8104
  const __globalInjection = isBoolean(options.globalInjection) ? options.globalInjection : true;
10637
8105
  const __instances = /* @__PURE__ */ new Map();
10638
8106
  const [globalScope, __global] = createGlobal(options, __legacyMode);
10639
- const symbol = /* @__PURE__ */ makeSymbol("");
8107
+ const symbol = /* #__PURE__*/ makeSymbol("");
10640
8108
  function __getInstance(component) {
10641
8109
  return __instances.get(component) || null;
10642
8110
  }
@@ -10813,12 +8281,12 @@ function injectGlobalFields(app, composer) {
10813
8281
  };
10814
8282
  return dispose;
10815
8283
  }
10816
- var VERSION, I18nErrorCodes, TranslateVNodeSymbol, DatetimePartsSymbol, NumberPartsSymbol, SetPluralRulesSymbol, InejctWithOptionSymbol, DisposeSymbol, I18nWarnCodes, DEVTOOLS_META, NOOP_RETURN_ARRAY, NOOP_RETURN_FALSE, composerID, getMetaInfo, baseFormatProps, Translation, NumberFormat, I18nInjectionKey, globalExportProps, globalExportMethods, DatetimeFormat;
8284
+ var VERSION, I18nErrorCodes, TranslateVNodeSymbol, DatetimePartsSymbol, NumberPartsSymbol, SetPluralRulesSymbol, InejctWithOptionSymbol, DisposeSymbol, I18nWarnCodes, mirroredCurrentInstance, DEVTOOLS_META, NOOP_RETURN_ARRAY, NOOP_RETURN_FALSE, composerID, getMetaInfo, baseFormatProps, Translation, NumberFormat, I18nInjectionKey, globalExportProps, globalExportMethods, DatetimeFormat;
10817
8285
  var init_vue_i18n = __esmMin((() => {
10818
8286
  init_core_base();
10819
8287
  init_shared$1();
10820
8288
  init_vue_runtime_esm_bundler();
10821
- VERSION = "11.4.4";
8289
+ VERSION = "11.4.9";
10822
8290
  I18nErrorCodes = {
10823
8291
  UNEXPECTED_RETURN_TYPE: 24,
10824
8292
  INVALID_ARGUMENT: 25,
@@ -10833,13 +8301,13 @@ var init_vue_i18n = __esmMin((() => {
10833
8301
  NOT_AVAILABLE_COMPOSITION_IN_LEGACY: 34
10834
8302
  };
10835
8303
  I18nErrorCodes.UNEXPECTED_RETURN_TYPE, I18nErrorCodes.INVALID_ARGUMENT, I18nErrorCodes.MUST_BE_CALL_SETUP_TOP, I18nErrorCodes.NOT_INSTALLED, I18nErrorCodes.UNEXPECTED_ERROR, I18nErrorCodes.REQUIRED_VALUE, I18nErrorCodes.INVALID_VALUE, I18nErrorCodes.CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN, I18nErrorCodes.NOT_INSTALLED_WITH_PROVIDE, I18nErrorCodes.NOT_COMPATIBLE_LEGACY_VUE_I18N, I18nErrorCodes.NOT_AVAILABLE_COMPOSITION_IN_LEGACY;
10836
- TranslateVNodeSymbol = /* @__PURE__ */ makeSymbol("__translateVNode");
10837
- DatetimePartsSymbol = /* @__PURE__ */ makeSymbol("__datetimeParts");
10838
- NumberPartsSymbol = /* @__PURE__ */ makeSymbol("__numberParts");
8304
+ TranslateVNodeSymbol = /* #__PURE__*/ makeSymbol("__translateVNode");
8305
+ DatetimePartsSymbol = /* #__PURE__*/ makeSymbol("__datetimeParts");
8306
+ NumberPartsSymbol = /* #__PURE__*/ makeSymbol("__numberParts");
10839
8307
  SetPluralRulesSymbol = makeSymbol("__setPluralRules");
10840
8308
  makeSymbol("__intlifyMeta");
10841
- InejctWithOptionSymbol = /* @__PURE__ */ makeSymbol("__injectWithOption");
10842
- DisposeSymbol = /* @__PURE__ */ makeSymbol("__dispose");
8309
+ InejctWithOptionSymbol = /* #__PURE__*/ makeSymbol("__injectWithOption");
8310
+ DisposeSymbol = /* #__PURE__*/ makeSymbol("__dispose");
10843
8311
  I18nWarnCodes = {
10844
8312
  FALLBACK_TO_ROOT: 10,
10845
8313
  NOT_FOUND_PARENT_SCOPE: 11,
@@ -10855,6 +8323,13 @@ var init_vue_i18n = __esmMin((() => {
10855
8323
  DUPLICATE_USE_I18N_CALLING: 15
10856
8324
  };
10857
8325
  I18nWarnCodes.FALLBACK_TO_ROOT, I18nWarnCodes.NOT_FOUND_PARENT_SCOPE, I18nWarnCodes.IGNORE_OBJ_FLATTEN, I18nWarnCodes.DEPRECATE_LEGACY_MODE, I18nWarnCodes.DEPRECATE_TRANSLATE_CUSTOME_DIRECTIVE, I18nWarnCodes.DUPLICATE_USE_I18N_CALLING;
8326
+ mirroredCurrentInstance = null;
8327
+ {
8328
+ const setters = getGlobalThis().__VUE_INSTANCE_SETTERS__;
8329
+ if (isArray$1(setters)) setters.push((instance) => {
8330
+ mirroredCurrentInstance = instance;
8331
+ });
8332
+ }
10858
8333
  DEVTOOLS_META = "__INTLIFY_META__";
10859
8334
  NOOP_RETURN_ARRAY = () => [];
10860
8335
  NOOP_RETURN_FALSE = () => false;
@@ -10924,7 +8399,7 @@ var init_vue_i18n = __esmMin((() => {
10924
8399
  return renderFormatter(props, context, NUMBER_FORMAT_OPTIONS_KEYS, (...args) => i18n[NumberPartsSymbol](...args));
10925
8400
  }
10926
8401
  });
10927
- I18nInjectionKey = /* @__PURE__ */ makeSymbol("global-vue-i18n");
8402
+ I18nInjectionKey = /* #__PURE__*/ makeSymbol("global-vue-i18n");
10928
8403
  globalExportProps = [
10929
8404
  "locale",
10930
8405
  "fallbackLocale",
@@ -10966,7 +8441,7 @@ var init_vue_i18n = __esmMin((() => {
10966
8441
  }
10967
8442
  }));
10968
8443
  //#endregion
10969
- //#region node_modules/.pnpm/vue-router@4.6.4_vue@3.5.34_typescript@5.9.3_/node_modules/vue-router/dist/devtools-EWN81iOl.mjs
8444
+ //#region node_modules/.pnpm/vue-router@4.6.4_vue@3.5.41_typescript@5.9.3_/node_modules/vue-router/dist/devtools-EWN81iOl.mjs
10970
8445
  /*!
10971
8446
  * vue-router v4.6.4
10972
8447
  * (c) 2025 Eduardo San Martin Morote
@@ -11487,7 +8962,7 @@ var init_devtools_EWN81iOl = __esmMin((() => {
11487
8962
  routerViewLocationKey = Symbol("");
11488
8963
  }));
11489
8964
  //#endregion
11490
- //#region node_modules/.pnpm/vue-router@4.6.4_vue@3.5.34_typescript@5.9.3_/node_modules/vue-router/dist/vue-router.mjs
8965
+ //#region node_modules/.pnpm/vue-router@4.6.4_vue@3.5.41_typescript@5.9.3_/node_modules/vue-router/dist/vue-router.mjs
11491
8966
  /*!
11492
8967
  * vue-router v4.6.4
11493
8968
  * (c) 2025 Eduardo San Martin Morote
@@ -11745,9 +9220,7 @@ function tokenizePath(path) {
11745
9220
  if (char !== "*" && char !== "?" && char !== "+") i--;
11746
9221
  customRe = "";
11747
9222
  break;
11748
- default:
11749
- crash("Unknown state");
11750
- break;
9223
+ default: crash("Unknown state");
11751
9224
  }
11752
9225
  }
11753
9226
  if (state === TokenizerState.ParamRegExp) crash(`Unfinished custom RegExp for param "${buffer}"`);
@@ -11907,7 +9380,8 @@ function isLastScoreNegative(score) {
11907
9380
  return score.length > 0 && last[last.length - 1] < 0;
11908
9381
  }
11909
9382
  function createRouteRecordMatcher(record, parent, options) {
11910
- const matcher = assign(tokensToParser(tokenizePath(record.path), options), {
9383
+ const parser = tokensToParser(tokenizePath(record.path), options);
9384
+ const matcher = assign(parser, {
11911
9385
  record,
11912
9386
  parent,
11913
9387
  children: [],
@@ -12748,7 +10222,7 @@ var init_vue_router = __esmMin((() => {
12748
10222
  RouterView = RouterViewImpl;
12749
10223
  }));
12750
10224
  //#endregion
12751
- //#region node_modules/.pnpm/@vueuse+shared@13.9.0_vue@3.5.34_typescript@5.9.3_/node_modules/@vueuse/shared/index.mjs
10225
+ //#region node_modules/.pnpm/@vueuse+shared@13.9.0_vue@3.5.41_typescript@5.9.3_/node_modules/@vueuse/shared/index.mjs
12752
10226
  function tryOnScopeDispose(fn) {
12753
10227
  if (getCurrentScope()) {
12754
10228
  onScopeDispose(fn);
@@ -12776,13 +10250,13 @@ var init_shared = __esmMin((() => {
12776
10250
  noop = () => {};
12777
10251
  }));
12778
10252
  //#endregion
12779
- //#region node_modules/.pnpm/@vueuse+core@13.9.0_vue@3.5.34_typescript@5.9.3_/node_modules/@vueuse/core/index.mjs
10253
+ //#region node_modules/.pnpm/@vueuse+core@13.9.0_vue@3.5.41_typescript@5.9.3_/node_modules/@vueuse/core/index.mjs
12780
10254
  function unrefElement(elRef) {
12781
10255
  var _a;
12782
10256
  const plain = toValue(elRef);
12783
10257
  return (_a = plain == null ? void 0 : plain.$el) != null ? _a : plain;
12784
10258
  }
12785
- /* @__NO_SIDE_EFFECTS__ */
10259
+ // @__NO_SIDE_EFFECTS__
12786
10260
  function useMounted() {
12787
10261
  const isMounted = /* @__PURE__ */ shallowRef(false);
12788
10262
  const instance = getCurrentInstance$1();
@@ -12791,7 +10265,7 @@ function useMounted() {
12791
10265
  }, instance);
12792
10266
  return isMounted;
12793
10267
  }
12794
- /* @__NO_SIDE_EFFECTS__ */
10268
+ // @__NO_SIDE_EFFECTS__
12795
10269
  function useSupported(callback) {
12796
10270
  const isMounted = /* @__PURE__ */ useMounted();
12797
10271
  return computed(() => {