@valaxyjs/devtools 0.18.7 → 0.18.8

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,51 +1,44 @@
1
- const __vite__fileDeps=["./index-BRTQkmk7.js","./_plugin-vue_export-helper-DgDhiqFL.js","./index-DF84L4of.css","./about-DwWwcIBI.js","./categories-CuWZw3k9.js","./tags-BDSDogY-.js"],__vite__mapDeps=i=>i.map(i=>__vite__fileDeps[i]);
2
1
  true&&(function polyfill() {
3
- const relList = document.createElement('link').relList;
4
- if (relList && relList.supports && relList.supports('modulepreload')) {
5
- return;
6
- }
7
- for (const link of document.querySelectorAll('link[rel="modulepreload"]')) {
8
- processPreload(link);
9
- }
10
- new MutationObserver((mutations) => {
11
- for (const mutation of mutations) {
12
- if (mutation.type !== 'childList') {
13
- continue;
14
- }
15
- for (const node of mutation.addedNodes) {
16
- if (node.tagName === 'LINK' && node.rel === 'modulepreload')
17
- processPreload(node);
18
- }
19
- }
20
- }).observe(document, { childList: true, subtree: true });
21
- function getFetchOpts(link) {
22
- const fetchOpts = {};
23
- if (link.integrity)
24
- fetchOpts.integrity = link.integrity;
25
- if (link.referrerPolicy)
26
- fetchOpts.referrerPolicy = link.referrerPolicy;
27
- if (link.crossOrigin === 'use-credentials')
28
- fetchOpts.credentials = 'include';
29
- else if (link.crossOrigin === 'anonymous')
30
- fetchOpts.credentials = 'omit';
31
- else
32
- fetchOpts.credentials = 'same-origin';
33
- return fetchOpts;
34
- }
35
- function processPreload(link) {
36
- if (link.ep)
37
- // ep marker = processed
38
- return;
39
- link.ep = true;
40
- // prepopulate the load record
41
- const fetchOpts = getFetchOpts(link);
42
- fetch(link.href, fetchOpts);
2
+ const relList = document.createElement("link").relList;
3
+ if (relList && relList.supports && relList.supports("modulepreload")) {
4
+ return;
5
+ }
6
+ for (const link of document.querySelectorAll('link[rel="modulepreload"]')) {
7
+ processPreload(link);
8
+ }
9
+ new MutationObserver((mutations) => {
10
+ for (const mutation of mutations) {
11
+ if (mutation.type !== "childList") {
12
+ continue;
13
+ }
14
+ for (const node of mutation.addedNodes) {
15
+ if (node.tagName === "LINK" && node.rel === "modulepreload")
16
+ processPreload(node);
17
+ }
43
18
  }
19
+ }).observe(document, { childList: true, subtree: true });
20
+ function getFetchOpts(link) {
21
+ const fetchOpts = {};
22
+ if (link.integrity) fetchOpts.integrity = link.integrity;
23
+ if (link.referrerPolicy) fetchOpts.referrerPolicy = link.referrerPolicy;
24
+ if (link.crossOrigin === "use-credentials")
25
+ fetchOpts.credentials = "include";
26
+ else if (link.crossOrigin === "anonymous") fetchOpts.credentials = "omit";
27
+ else fetchOpts.credentials = "same-origin";
28
+ return fetchOpts;
29
+ }
30
+ function processPreload(link) {
31
+ if (link.ep)
32
+ return;
33
+ link.ep = true;
34
+ const fetchOpts = getFetchOpts(link);
35
+ fetch(link.href, fetchOpts);
36
+ }
44
37
  }());
45
38
  /* Injected with object hook! */
46
39
 
47
40
  /**
48
- * @vue/shared v3.4.27
41
+ * @vue/shared v3.4.29
49
42
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
50
43
  * @license MIT
51
44
  **/
@@ -116,9 +109,9 @@ const toHandlerKey = cacheStringFunction((str) => {
116
109
  return s;
117
110
  });
118
111
  const hasChanged = (value, oldValue) => !Object.is(value, oldValue);
119
- const invokeArrayFns = (fns, arg) => {
112
+ const invokeArrayFns = (fns, ...arg) => {
120
113
  for (let i = 0; i < fns.length; i++) {
121
- fns[i](arg);
114
+ fns[i](...arg);
122
115
  }
123
116
  };
124
117
  const def = (obj, key, value, writable = false) => {
@@ -192,46 +185,11 @@ const isSpecialBooleanAttr = /* @__PURE__ */ makeMap(specialBooleanAttrs);
192
185
  function includeBooleanAttr(value) {
193
186
  return !!value || value === "";
194
187
  }
195
- const toDisplayString = (val) => {
196
- return isString(val) ? val : val == null ? "" : isArray$1(val) || isObject(val) && (val.toString === objectToString || !isFunction(val.toString)) ? JSON.stringify(val, replacer, 2) : String(val);
197
- };
198
- const replacer = (_key, val) => {
199
- if (val && val.__v_isRef) {
200
- return replacer(_key, val.value);
201
- } else if (isMap(val)) {
202
- return {
203
- [`Map(${val.size})`]: [...val.entries()].reduce(
204
- (entries, [key, val2], i) => {
205
- entries[stringifySymbol(key, i) + " =>"] = val2;
206
- return entries;
207
- },
208
- {}
209
- )
210
- };
211
- } else if (isSet(val)) {
212
- return {
213
- [`Set(${val.size})`]: [...val.values()].map((v) => stringifySymbol(v))
214
- };
215
- } else if (isSymbol(val)) {
216
- return stringifySymbol(val);
217
- } else if (isObject(val) && !isArray$1(val) && !isPlainObject(val)) {
218
- return String(val);
219
- }
220
- return val;
221
- };
222
- const stringifySymbol = (v, i = "") => {
223
- var _a;
224
- return (
225
- // Symbol.description in es2019+ so we need to cast here to pass
226
- // the lib: es2016 check
227
- isSymbol(v) ? `Symbol(${(_a = v.description) != null ? _a : i})` : v
228
- );
229
- };
230
188
 
231
189
  /* Injected with object hook! */
232
190
 
233
191
  /**
234
- * @vue/reactivity v3.4.27
192
+ * @vue/reactivity v3.4.29
235
193
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
236
194
  * @license MIT
237
195
  **/
@@ -319,7 +277,7 @@ class ReactiveEffect {
319
277
  this.scheduler = scheduler;
320
278
  this.active = true;
321
279
  this.deps = [];
322
- this._dirtyLevel = 4;
280
+ this._dirtyLevel = 5;
323
281
  this._trackId = 0;
324
282
  this._runnings = 0;
325
283
  this._shouldSchedule = false;
@@ -327,14 +285,18 @@ class ReactiveEffect {
327
285
  recordEffectScope(this, scope);
328
286
  }
329
287
  get dirty() {
330
- if (this._dirtyLevel === 2 || this._dirtyLevel === 3) {
288
+ if (this._dirtyLevel === 2)
289
+ return false;
290
+ if (this._dirtyLevel === 3 || this._dirtyLevel === 4) {
331
291
  this._dirtyLevel = 1;
332
292
  pauseTracking();
333
293
  for (let i = 0; i < this._depsLength; i++) {
334
294
  const dep = this.deps[i];
335
295
  if (dep.computed) {
296
+ if (dep.computed.effect._dirtyLevel === 2)
297
+ return true;
336
298
  triggerComputed(dep.computed);
337
- if (this._dirtyLevel >= 4) {
299
+ if (this._dirtyLevel >= 5) {
338
300
  break;
339
301
  }
340
302
  }
@@ -344,10 +306,10 @@ class ReactiveEffect {
344
306
  }
345
307
  resetTracking();
346
308
  }
347
- return this._dirtyLevel >= 4;
309
+ return this._dirtyLevel >= 5;
348
310
  }
349
311
  set dirty(v) {
350
- this._dirtyLevel = v ? 4 : 0;
312
+ this._dirtyLevel = v ? 5 : 0;
351
313
  }
352
314
  run() {
353
315
  this._dirtyLevel = 0;
@@ -440,14 +402,23 @@ const queueEffectSchedulers = [];
440
402
  function triggerEffects(dep, dirtyLevel, debuggerEventExtraInfo) {
441
403
  pauseScheduling();
442
404
  for (const effect2 of dep.keys()) {
405
+ if (!dep.computed && effect2.computed) {
406
+ if (dep.get(effect2) === effect2._trackId && effect2._runnings > 0) {
407
+ effect2._dirtyLevel = 2;
408
+ continue;
409
+ }
410
+ }
443
411
  let tracking;
444
412
  if (effect2._dirtyLevel < dirtyLevel && (tracking != null ? tracking : tracking = dep.get(effect2) === effect2._trackId)) {
445
413
  effect2._shouldSchedule || (effect2._shouldSchedule = effect2._dirtyLevel === 0);
414
+ if (effect2.computed && effect2._dirtyLevel === 2) {
415
+ effect2._shouldSchedule = true;
416
+ }
446
417
  effect2._dirtyLevel = dirtyLevel;
447
418
  }
448
419
  if (effect2._shouldSchedule && (tracking != null ? tracking : tracking = dep.get(effect2) === effect2._trackId)) {
449
420
  effect2.trigger();
450
- if ((!effect2._runnings || effect2.allowRecurse) && effect2._dirtyLevel !== 2) {
421
+ if ((!effect2._runnings || effect2.allowRecurse) && effect2._dirtyLevel !== 3) {
451
422
  effect2._shouldSchedule = false;
452
423
  if (effect2.scheduler) {
453
424
  queueEffectSchedulers.push(effect2.scheduler);
@@ -531,7 +502,7 @@ function trigger(target, type, key, newValue, oldValue, oldTarget) {
531
502
  if (dep) {
532
503
  triggerEffects(
533
504
  dep,
534
- 4);
505
+ 5);
535
506
  }
536
507
  }
537
508
  resetScheduling();
@@ -570,8 +541,7 @@ function createArrayInstrumentations() {
570
541
  return instrumentations;
571
542
  }
572
543
  function hasOwnProperty(key) {
573
- if (!isSymbol(key))
574
- key = String(key);
544
+ if (!isSymbol(key)) key = String(key);
575
545
  const obj = toRaw(this);
576
546
  track(obj, "has", key);
577
547
  return obj.hasOwnProperty(key);
@@ -1077,7 +1047,7 @@ class ComputedRefImpl {
1077
1047
  () => getter(this._value),
1078
1048
  () => triggerRefValue(
1079
1049
  this,
1080
- this.effect._dirtyLevel === 2 ? 2 : 3
1050
+ this.effect._dirtyLevel === 3 ? 3 : 4
1081
1051
  )
1082
1052
  );
1083
1053
  this.effect.computed = this;
@@ -1087,11 +1057,11 @@ class ComputedRefImpl {
1087
1057
  get value() {
1088
1058
  const self = toRaw(this);
1089
1059
  if ((!self._cacheable || self.effect.dirty) && hasChanged(self._value, self._value = self.effect.run())) {
1090
- triggerRefValue(self, 4);
1060
+ triggerRefValue(self, 5);
1091
1061
  }
1092
1062
  trackRefValue(self);
1093
1063
  if (self.effect._dirtyLevel >= 2) {
1094
- triggerRefValue(self, 2);
1064
+ triggerRefValue(self, 3);
1095
1065
  }
1096
1066
  return self._value;
1097
1067
  }
@@ -1133,7 +1103,7 @@ function trackRefValue(ref2) {
1133
1103
  ));
1134
1104
  }
1135
1105
  }
1136
- function triggerRefValue(ref2, dirtyLevel = 4, newVal) {
1106
+ function triggerRefValue(ref2, dirtyLevel = 5, newVal, oldVal) {
1137
1107
  ref2 = toRaw(ref2);
1138
1108
  const dep = ref2.dep;
1139
1109
  if (dep) {
@@ -1173,9 +1143,10 @@ class RefImpl {
1173
1143
  const useDirectValue = this.__v_isShallow || isShallow(newVal) || isReadonly(newVal);
1174
1144
  newVal = useDirectValue ? newVal : toRaw(newVal);
1175
1145
  if (hasChanged(newVal, this._rawValue)) {
1146
+ this._rawValue;
1176
1147
  this._rawValue = newVal;
1177
1148
  this._value = useDirectValue ? newVal : toReactive(newVal);
1178
- triggerRefValue(this, 4);
1149
+ triggerRefValue(this, 5);
1179
1150
  }
1180
1151
  }
1181
1152
  }
@@ -1201,7 +1172,7 @@ function proxyRefs(objectWithRefs) {
1201
1172
  /* Injected with object hook! */
1202
1173
 
1203
1174
  /**
1204
- * @vue/runtime-core v3.4.27
1175
+ * @vue/runtime-core v3.4.29
1205
1176
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
1206
1177
  * @license MIT
1207
1178
  **/
@@ -1217,6 +1188,7 @@ function warn$1(msg, ...args) {
1217
1188
  instance,
1218
1189
  11,
1219
1190
  [
1191
+ // eslint-disable-next-line no-restricted-syntax
1220
1192
  msg + args.map((a) => {
1221
1193
  var _a, _b;
1222
1194
  return (_b = (_a = a.toString) == null ? void 0 : _a.call(a)) != null ? _b : JSON.stringify(a);
@@ -1381,7 +1353,7 @@ function nextTick(fn) {
1381
1353
  const p = currentFlushPromise || resolvedPromise;
1382
1354
  return fn ? p.then(this ? fn.bind(this) : fn) : p;
1383
1355
  }
1384
- function findInsertionIndex(id) {
1356
+ function findInsertionIndex$1(id) {
1385
1357
  let start = flushIndex + 1;
1386
1358
  let end = queue.length;
1387
1359
  while (start < end) {
@@ -1404,7 +1376,7 @@ function queueJob(job) {
1404
1376
  if (job.id == null) {
1405
1377
  queue.push(job);
1406
1378
  } else {
1407
- queue.splice(findInsertionIndex(job.id), 0, job);
1379
+ queue.splice(findInsertionIndex$1(job.id), 0, job);
1408
1380
  }
1409
1381
  queueFlush();
1410
1382
  }
@@ -1459,7 +1431,8 @@ function flushPostFlushCbs(seen) {
1459
1431
  }
1460
1432
  activePostFlushCbs = deduped;
1461
1433
  for (postFlushIndex = 0; postFlushIndex < activePostFlushCbs.length; postFlushIndex++) {
1462
- activePostFlushCbs[postFlushIndex]();
1434
+ const cb = activePostFlushCbs[postFlushIndex];
1435
+ if (cb.active !== false) cb();
1463
1436
  }
1464
1437
  activePostFlushCbs = null;
1465
1438
  postFlushIndex = 0;
@@ -1469,10 +1442,8 @@ const getId = (job) => job.id == null ? Infinity : job.id;
1469
1442
  const comparator = (a, b) => {
1470
1443
  const diff = getId(a) - getId(b);
1471
1444
  if (diff === 0) {
1472
- if (a.pre && !b.pre)
1473
- return -1;
1474
- if (b.pre && !a.pre)
1475
- return 1;
1445
+ if (a.pre && !b.pre) return -1;
1446
+ if (b.pre && !a.pre) return 1;
1476
1447
  }
1477
1448
  return diff;
1478
1449
  };
@@ -1500,8 +1471,7 @@ function flushJobs(seen) {
1500
1471
  }
1501
1472
  }
1502
1473
  function emit(instance, event, ...rawArgs) {
1503
- if (instance.isUnmounted)
1504
- return;
1474
+ if (instance.isUnmounted) return;
1505
1475
  const props = instance.vnode.props || EMPTY_OBJ;
1506
1476
  let args = rawArgs;
1507
1477
  const isModelListener2 = event.startsWith("update:");
@@ -1605,8 +1575,7 @@ function setCurrentRenderingInstance(instance) {
1605
1575
  return prev;
1606
1576
  }
1607
1577
  function withCtx(fn, ctx = currentRenderingInstance, isNonScopedSlot) {
1608
- if (!ctx)
1609
- return fn;
1578
+ if (!ctx) return fn;
1610
1579
  if (fn._n) {
1611
1580
  return fn;
1612
1581
  }
@@ -1868,412 +1837,80 @@ function queueEffectWithSuspense(fn, suspense) {
1868
1837
  queuePostFlushCb(fn);
1869
1838
  }
1870
1839
  }
1871
- const ssrContextKey = Symbol.for("v-scx");
1872
- const useSSRContext = () => {
1873
- {
1874
- const ctx = inject(ssrContextKey);
1875
- return ctx;
1876
- }
1877
- };
1878
- const INITIAL_WATCHER_VALUE = {};
1879
- function watch(source, cb, options) {
1880
- return doWatch(source, cb, options);
1881
- }
1882
- function doWatch(source, cb, {
1883
- immediate,
1884
- deep,
1885
- flush,
1886
- once,
1887
- onTrack,
1888
- onTrigger
1889
- } = EMPTY_OBJ) {
1890
- if (cb && once) {
1891
- const _cb = cb;
1892
- cb = (...args) => {
1893
- _cb(...args);
1894
- unwatch();
1895
- };
1896
- }
1897
- const instance = currentInstance;
1898
- const reactiveGetter = (source2) => deep === true ? source2 : (
1899
- // for deep: false, only traverse root-level properties
1900
- traverse(source2, deep === false ? 1 : void 0)
1901
- );
1902
- let getter;
1903
- let forceTrigger = false;
1904
- let isMultiSource = false;
1905
- if (isRef(source)) {
1906
- getter = () => source.value;
1907
- forceTrigger = isShallow(source);
1908
- } else if (isReactive(source)) {
1909
- getter = () => reactiveGetter(source);
1910
- forceTrigger = true;
1911
- } else if (isArray$1(source)) {
1912
- isMultiSource = true;
1913
- forceTrigger = source.some((s) => isReactive(s) || isShallow(s));
1914
- getter = () => source.map((s) => {
1915
- if (isRef(s)) {
1916
- return s.value;
1917
- } else if (isReactive(s)) {
1918
- return reactiveGetter(s);
1919
- } else if (isFunction(s)) {
1920
- return callWithErrorHandling(s, instance, 2);
1921
- } else ;
1840
+ function injectHook(type, hook, target = currentInstance, prepend = false) {
1841
+ if (target) {
1842
+ const hooks = target[type] || (target[type] = []);
1843
+ const wrappedHook = hook.__weh || (hook.__weh = (...args) => {
1844
+ pauseTracking();
1845
+ const reset = setCurrentInstance(target);
1846
+ const res = callWithAsyncErrorHandling(hook, target, type, args);
1847
+ reset();
1848
+ resetTracking();
1849
+ return res;
1922
1850
  });
1923
- } else if (isFunction(source)) {
1924
- if (cb) {
1925
- getter = () => callWithErrorHandling(source, instance, 2);
1926
- } else {
1927
- getter = () => {
1928
- if (cleanup) {
1929
- cleanup();
1930
- }
1931
- return callWithAsyncErrorHandling(
1932
- source,
1933
- instance,
1934
- 3,
1935
- [onCleanup]
1936
- );
1937
- };
1938
- }
1939
- } else {
1940
- getter = NOOP;
1941
- }
1942
- if (cb && deep) {
1943
- const baseGetter = getter;
1944
- getter = () => traverse(baseGetter());
1945
- }
1946
- let cleanup;
1947
- let onCleanup = (fn) => {
1948
- cleanup = effect2.onStop = () => {
1949
- callWithErrorHandling(fn, instance, 4);
1950
- cleanup = effect2.onStop = void 0;
1951
- };
1952
- };
1953
- let ssrCleanup;
1954
- if (isInSSRComponentSetup) {
1955
- onCleanup = NOOP;
1956
- if (!cb) {
1957
- getter();
1958
- } else if (immediate) {
1959
- callWithAsyncErrorHandling(cb, instance, 3, [
1960
- getter(),
1961
- isMultiSource ? [] : void 0,
1962
- onCleanup
1963
- ]);
1964
- }
1965
- if (flush === "sync") {
1966
- const ctx = useSSRContext();
1967
- ssrCleanup = ctx.__watcherHandles || (ctx.__watcherHandles = []);
1851
+ if (prepend) {
1852
+ hooks.unshift(wrappedHook);
1968
1853
  } else {
1969
- return NOOP;
1854
+ hooks.push(wrappedHook);
1970
1855
  }
1856
+ return wrappedHook;
1971
1857
  }
1972
- let oldValue = isMultiSource ? new Array(source.length).fill(INITIAL_WATCHER_VALUE) : INITIAL_WATCHER_VALUE;
1973
- const job = () => {
1974
- if (!effect2.active || !effect2.dirty) {
1975
- return;
1976
- }
1977
- if (cb) {
1978
- const newValue = effect2.run();
1979
- if (deep || forceTrigger || (isMultiSource ? newValue.some((v, i) => hasChanged(v, oldValue[i])) : hasChanged(newValue, oldValue)) || false) {
1980
- if (cleanup) {
1981
- cleanup();
1982
- }
1983
- callWithAsyncErrorHandling(cb, instance, 3, [
1984
- newValue,
1985
- // pass undefined as the old value when it's changed for the first time
1986
- oldValue === INITIAL_WATCHER_VALUE ? void 0 : isMultiSource && oldValue[0] === INITIAL_WATCHER_VALUE ? [] : oldValue,
1987
- onCleanup
1988
- ]);
1989
- oldValue = newValue;
1990
- }
1991
- } else {
1992
- effect2.run();
1993
- }
1994
- };
1995
- job.allowRecurse = !!cb;
1996
- let scheduler;
1997
- if (flush === "sync") {
1998
- scheduler = job;
1999
- } else if (flush === "post") {
2000
- scheduler = () => queuePostRenderEffect(job, instance && instance.suspense);
2001
- } else {
2002
- job.pre = true;
2003
- if (instance)
2004
- job.id = instance.uid;
2005
- scheduler = () => queueJob(job);
1858
+ }
1859
+ const createHook = (lifecycle) => (hook, target = currentInstance) => {
1860
+ if (!isInSSRComponentSetup || lifecycle === "sp") {
1861
+ injectHook(lifecycle, (...args) => hook(...args), target);
2006
1862
  }
2007
- const effect2 = new ReactiveEffect(getter, NOOP, scheduler);
2008
- const scope = getCurrentScope();
2009
- const unwatch = () => {
2010
- effect2.stop();
2011
- if (scope) {
2012
- remove(scope.effects, effect2);
1863
+ };
1864
+ const onBeforeMount = createHook("bm");
1865
+ const onMounted = createHook("m");
1866
+ const onBeforeUpdate = createHook("bu");
1867
+ const onUpdated = createHook("u");
1868
+ const onBeforeUnmount = createHook("bum");
1869
+ const onUnmounted = createHook("um");
1870
+ const onServerPrefetch = createHook("sp");
1871
+ const onRenderTriggered = createHook(
1872
+ "rtg"
1873
+ );
1874
+ const onRenderTracked = createHook(
1875
+ "rtc"
1876
+ );
1877
+ function onErrorCaptured(hook, target = currentInstance) {
1878
+ injectHook("ec", hook, target);
1879
+ }
1880
+ function invokeDirectiveHook(vnode, prevVNode, instance, name) {
1881
+ const bindings = vnode.dirs;
1882
+ const oldBindings = prevVNode && prevVNode.dirs;
1883
+ for (let i = 0; i < bindings.length; i++) {
1884
+ const binding = bindings[i];
1885
+ if (oldBindings) {
1886
+ binding.oldValue = oldBindings[i].value;
2013
1887
  }
2014
- };
2015
- if (cb) {
2016
- if (immediate) {
2017
- job();
2018
- } else {
2019
- oldValue = effect2.run();
1888
+ let hook = binding.dir[name];
1889
+ if (hook) {
1890
+ pauseTracking();
1891
+ callWithAsyncErrorHandling(hook, instance, 8, [
1892
+ vnode.el,
1893
+ binding,
1894
+ vnode,
1895
+ prevVNode
1896
+ ]);
1897
+ resetTracking();
2020
1898
  }
2021
- } else if (flush === "post") {
2022
- queuePostRenderEffect(
2023
- effect2.run.bind(effect2),
2024
- instance && instance.suspense
2025
- );
2026
- } else {
2027
- effect2.run();
2028
1899
  }
2029
- if (ssrCleanup)
2030
- ssrCleanup.push(unwatch);
2031
- return unwatch;
2032
1900
  }
2033
- function instanceWatch(source, value, options) {
2034
- const publicThis = this.proxy;
2035
- const getter = isString(source) ? source.includes(".") ? createPathGetter(publicThis, source) : () => publicThis[source] : source.bind(publicThis, publicThis);
2036
- let cb;
2037
- if (isFunction(value)) {
2038
- cb = value;
2039
- } else {
2040
- cb = value.handler;
2041
- options = value;
2042
- }
2043
- const reset = setCurrentInstance(this);
2044
- const res = doWatch(getter, cb.bind(publicThis), options);
2045
- reset();
2046
- return res;
2047
- }
2048
- function createPathGetter(ctx, path) {
2049
- const segments = path.split(".");
2050
- return () => {
2051
- let cur = ctx;
2052
- for (let i = 0; i < segments.length && cur; i++) {
2053
- cur = cur[segments[i]];
2054
- }
2055
- return cur;
2056
- };
2057
- }
2058
- function traverse(value, depth = Infinity, seen) {
2059
- if (depth <= 0 || !isObject(value) || value["__v_skip"]) {
2060
- return value;
2061
- }
2062
- seen = seen || /* @__PURE__ */ new Set();
2063
- if (seen.has(value)) {
2064
- return value;
2065
- }
2066
- seen.add(value);
2067
- depth--;
2068
- if (isRef(value)) {
2069
- traverse(value.value, depth, seen);
2070
- } else if (isArray$1(value)) {
2071
- for (let i = 0; i < value.length; i++) {
2072
- traverse(value[i], depth, seen);
2073
- }
2074
- } else if (isSet(value) || isMap(value)) {
2075
- value.forEach((v) => {
2076
- traverse(v, depth, seen);
2077
- });
2078
- } else if (isPlainObject(value)) {
2079
- for (const key in value) {
2080
- traverse(value[key], depth, seen);
2081
- }
2082
- }
2083
- return value;
2084
- }
2085
- function invokeDirectiveHook(vnode, prevVNode, instance, name) {
2086
- const bindings = vnode.dirs;
2087
- const oldBindings = prevVNode && prevVNode.dirs;
2088
- for (let i = 0; i < bindings.length; i++) {
2089
- const binding = bindings[i];
2090
- if (oldBindings) {
2091
- binding.oldValue = oldBindings[i].value;
2092
- }
2093
- let hook = binding.dir[name];
2094
- if (hook) {
2095
- pauseTracking();
2096
- callWithAsyncErrorHandling(hook, instance, 8, [
2097
- vnode.el,
2098
- binding,
2099
- vnode,
2100
- prevVNode
2101
- ]);
2102
- resetTracking();
2103
- }
2104
- }
2105
- }
2106
- /*! #__NO_SIDE_EFFECTS__ */
2107
- // @__NO_SIDE_EFFECTS__
2108
- function defineComponent(options, extraOptions) {
2109
- return isFunction(options) ? (
2110
- // #8326: extend call and options.name access are considered side-effects
2111
- // by Rollup, so we have to wrap it in a pure-annotated IIFE.
2112
- /* @__PURE__ */ (() => extend({ name: options.name }, extraOptions, { setup: options }))()
2113
- ) : options;
1901
+ /*! #__NO_SIDE_EFFECTS__ */
1902
+ // @__NO_SIDE_EFFECTS__
1903
+ function defineComponent(options, extraOptions) {
1904
+ return isFunction(options) ? (
1905
+ // #8326: extend call and options.name access are considered side-effects
1906
+ // by Rollup, so we have to wrap it in a pure-annotated IIFE.
1907
+ /* @__PURE__ */ (() => extend({ name: options.name }, extraOptions, { setup: options }))()
1908
+ ) : options;
2114
1909
  }
2115
1910
  const isAsyncWrapper = (i) => !!i.type.__asyncLoader;
2116
- const isKeepAlive = (vnode) => vnode.type.__isKeepAlive;
2117
- function onActivated(hook, target) {
2118
- registerKeepAliveHook(hook, "a", target);
2119
- }
2120
- function onDeactivated(hook, target) {
2121
- registerKeepAliveHook(hook, "da", target);
2122
- }
2123
- function registerKeepAliveHook(hook, type, target = currentInstance) {
2124
- const wrappedHook = hook.__wdc || (hook.__wdc = () => {
2125
- let current = target;
2126
- while (current) {
2127
- if (current.isDeactivated) {
2128
- return;
2129
- }
2130
- current = current.parent;
2131
- }
2132
- return hook();
2133
- });
2134
- injectHook(type, wrappedHook, target);
2135
- if (target) {
2136
- let current = target.parent;
2137
- while (current && current.parent) {
2138
- if (isKeepAlive(current.parent.vnode)) {
2139
- injectToKeepAliveRoot(wrappedHook, type, target, current);
2140
- }
2141
- current = current.parent;
2142
- }
2143
- }
2144
- }
2145
- function injectToKeepAliveRoot(hook, type, target, keepAliveRoot) {
2146
- const injected = injectHook(
2147
- type,
2148
- hook,
2149
- keepAliveRoot,
2150
- true
2151
- /* prepend */
2152
- );
2153
- onUnmounted(() => {
2154
- remove(keepAliveRoot[type], injected);
2155
- }, target);
2156
- }
2157
- function injectHook(type, hook, target = currentInstance, prepend = false) {
2158
- if (target) {
2159
- const hooks = target[type] || (target[type] = []);
2160
- const wrappedHook = hook.__weh || (hook.__weh = (...args) => {
2161
- if (target.isUnmounted) {
2162
- return;
2163
- }
2164
- pauseTracking();
2165
- const reset = setCurrentInstance(target);
2166
- const res = callWithAsyncErrorHandling(hook, target, type, args);
2167
- reset();
2168
- resetTracking();
2169
- return res;
2170
- });
2171
- if (prepend) {
2172
- hooks.unshift(wrappedHook);
2173
- } else {
2174
- hooks.push(wrappedHook);
2175
- }
2176
- return wrappedHook;
2177
- }
2178
- }
2179
- const createHook = (lifecycle) => (hook, target = currentInstance) => (
2180
- // post-create lifecycle registrations are noops during SSR (except for serverPrefetch)
2181
- (!isInSSRComponentSetup || lifecycle === "sp") && injectHook(lifecycle, (...args) => hook(...args), target)
2182
- );
2183
- const onBeforeMount = createHook("bm");
2184
- const onMounted = createHook("m");
2185
- const onBeforeUpdate = createHook("bu");
2186
- const onUpdated = createHook("u");
2187
- const onBeforeUnmount = createHook("bum");
2188
- const onUnmounted = createHook("um");
2189
- const onServerPrefetch = createHook("sp");
2190
- const onRenderTriggered = createHook(
2191
- "rtg"
2192
- );
2193
- const onRenderTracked = createHook(
2194
- "rtc"
2195
- );
2196
- function onErrorCaptured(hook, target = currentInstance) {
2197
- injectHook("ec", hook, target);
2198
- }
2199
- function renderList(source, renderItem, cache, index) {
2200
- let ret;
2201
- const cached = cache ;
2202
- if (isArray$1(source) || isString(source)) {
2203
- ret = new Array(source.length);
2204
- for (let i = 0, l = source.length; i < l; i++) {
2205
- ret[i] = renderItem(source[i], i, void 0, cached );
2206
- }
2207
- } else if (typeof source === "number") {
2208
- ret = new Array(source);
2209
- for (let i = 0; i < source; i++) {
2210
- ret[i] = renderItem(i + 1, i, void 0, cached );
2211
- }
2212
- } else if (isObject(source)) {
2213
- if (source[Symbol.iterator]) {
2214
- ret = Array.from(
2215
- source,
2216
- (item, i) => renderItem(item, i, void 0, cached )
2217
- );
2218
- } else {
2219
- const keys = Object.keys(source);
2220
- ret = new Array(keys.length);
2221
- for (let i = 0, l = keys.length; i < l; i++) {
2222
- const key = keys[i];
2223
- ret[i] = renderItem(source[key], key, i, cached );
2224
- }
2225
- }
2226
- } else {
2227
- ret = [];
2228
- }
2229
- return ret;
2230
- }
2231
- function renderSlot(slots, name, props = {}, fallback, noSlotted) {
2232
- if (currentRenderingInstance.isCE || currentRenderingInstance.parent && isAsyncWrapper(currentRenderingInstance.parent) && currentRenderingInstance.parent.isCE) {
2233
- if (name !== "default")
2234
- props.name = name;
2235
- return createVNode("slot", props, fallback );
2236
- }
2237
- let slot = slots[name];
2238
- if (slot && slot._c) {
2239
- slot._d = false;
2240
- }
2241
- openBlock();
2242
- const validSlotContent = slot && ensureValidVNode(slot(props));
2243
- const rendered = createBlock(
2244
- Fragment,
2245
- {
2246
- key: props.key || // slot content array of a dynamic conditional slot may have a branch
2247
- // key attached in the `createSlots` helper, respect that
2248
- validSlotContent && validSlotContent.key || `_${name}`
2249
- },
2250
- validSlotContent || ([]),
2251
- validSlotContent && slots._ === 1 ? 64 : -2
2252
- );
2253
- if (rendered.scopeId) {
2254
- rendered.slotScopeIds = [rendered.scopeId + "-s"];
2255
- }
2256
- if (slot && slot._c) {
2257
- slot._d = true;
2258
- }
2259
- return rendered;
2260
- }
2261
- function ensureValidVNode(vnodes) {
2262
- return vnodes.some((child) => {
2263
- if (!isVNode(child))
2264
- return true;
2265
- if (child.type === Comment)
2266
- return false;
2267
- if (child.type === Fragment && !ensureValidVNode(child.children))
2268
- return false;
2269
- return true;
2270
- }) ? vnodes : null;
2271
- }
2272
1911
  const getPublicInstance = (i) => {
2273
- if (!i)
2274
- return null;
2275
- if (isStatefulComponent(i))
2276
- return getExposeProxy(i) || i.proxy;
1912
+ if (!i) return null;
1913
+ if (isStatefulComponent(i)) return getComponentPublicInstance(i);
2277
1914
  return getPublicInstance(i.parent);
2278
1915
  };
2279
1916
  const publicPropertiesMap = (
@@ -2537,10 +2174,8 @@ function applyOptions(instance) {
2537
2174
  if (inheritAttrs != null) {
2538
2175
  instance.inheritAttrs = inheritAttrs;
2539
2176
  }
2540
- if (components)
2541
- instance.components = components;
2542
- if (directives)
2543
- instance.directives = directives;
2177
+ if (components) instance.components = components;
2178
+ if (directives) instance.directives = directives;
2544
2179
  }
2545
2180
  function resolveInjections(injectOptions, ctx, checkDuplicateProperties = NOOP) {
2546
2181
  if (isArray$1(injectOptions)) {
@@ -2728,10 +2363,8 @@ function mergeEmitsOrPropsOptions(to, from) {
2728
2363
  }
2729
2364
  }
2730
2365
  function mergeWatchOptions(to, from) {
2731
- if (!to)
2732
- return from;
2733
- if (!from)
2734
- return to;
2366
+ if (!to) return from;
2367
+ if (!from) return to;
2735
2368
  const merged = extend(/* @__PURE__ */ Object.create(null), to);
2736
2369
  for (const key in from) {
2737
2370
  merged[key] = mergeAsArray(to[key], from[key]);
@@ -2833,7 +2466,7 @@ function createAppAPI(render, hydrate) {
2833
2466
  isMounted = true;
2834
2467
  app._container = rootContainer;
2835
2468
  rootContainer.__vue_app__ = app;
2836
- return getExposeProxy(vnode.component) || vnode.component.proxy;
2469
+ return getComponentPublicInstance(vnode.component);
2837
2470
  }
2838
2471
  },
2839
2472
  unmount() {
@@ -3089,8 +2722,7 @@ function normalizePropsOptions(comp, appContext, asMixin = false) {
3089
2722
  hasExtends = true;
3090
2723
  const [props, keys] = normalizePropsOptions(raw2, appContext, true);
3091
2724
  extend(normalized, props);
3092
- if (keys)
3093
- needCastKeys.push(...keys);
2725
+ if (keys) needCastKeys.push(...keys);
3094
2726
  };
3095
2727
  if (!asMixin && appContext.mixins.length) {
3096
2728
  appContext.mixins.forEach(extendProps);
@@ -3190,8 +2822,7 @@ const normalizeSlot$1 = (key, rawSlot, ctx) => {
3190
2822
  const normalizeObjectSlots = (rawSlots, slots, instance) => {
3191
2823
  const ctx = rawSlots._ctx;
3192
2824
  for (const key in rawSlots) {
3193
- if (isInternalKey(key))
3194
- continue;
2825
+ if (isInternalKey(key)) continue;
3195
2826
  const value = rawSlots[key];
3196
2827
  if (isFunction(value)) {
3197
2828
  slots[key] = normalizeSlot$1(key, value, ctx);
@@ -3267,7 +2898,7 @@ function setRef(rawRef, oldRawRef, parentSuspense, vnode, isUnmount = false) {
3267
2898
  if (isAsyncWrapper(vnode) && !isUnmount) {
3268
2899
  return;
3269
2900
  }
3270
- const refValue = vnode.shapeFlag & 4 ? getExposeProxy(vnode.component) || vnode.component.proxy : vnode.el;
2901
+ const refValue = vnode.shapeFlag & 4 ? getComponentPublicInstance(vnode.component) : vnode.el;
3271
2902
  const value = isUnmount ? null : refValue;
3272
2903
  const { i: owner, r: ref3 } = rawRef;
3273
2904
  const oldRef = oldRawRef && oldRawRef.r;
@@ -3303,8 +2934,7 @@ function setRef(rawRef, oldRawRef, parentSuspense, vnode, isUnmount = false) {
3303
2934
  }
3304
2935
  } else {
3305
2936
  ref3.value = [refValue];
3306
- if (rawRef.k)
3307
- refs[rawRef.k] = ref3.value;
2937
+ if (rawRef.k) refs[rawRef.k] = ref3.value;
3308
2938
  }
3309
2939
  } else if (!existing.includes(refValue)) {
3310
2940
  existing.push(refValue);
@@ -3317,8 +2947,7 @@ function setRef(rawRef, oldRawRef, parentSuspense, vnode, isUnmount = false) {
3317
2947
  }
3318
2948
  } else if (_isRef) {
3319
2949
  ref3.value = value;
3320
- if (rawRef.k)
3321
- refs[rawRef.k] = value;
2950
+ if (rawRef.k) refs[rawRef.k] = value;
3322
2951
  } else ;
3323
2952
  };
3324
2953
  if (value) {
@@ -3789,8 +3418,7 @@ function baseCreateRenderer(options, createHydrationFns) {
3789
3418
  }
3790
3419
  }
3791
3420
  for (const key in newProps) {
3792
- if (isReservedProp(key))
3793
- continue;
3421
+ if (isReservedProp(key)) continue;
3794
3422
  const next = newProps[key];
3795
3423
  const prev = oldProps[key];
3796
3424
  if (next !== prev && key !== "value") {
@@ -3917,7 +3545,7 @@ function baseCreateRenderer(options, createHydrationFns) {
3917
3545
  setupComponent(instance);
3918
3546
  }
3919
3547
  if (instance.asyncDep) {
3920
- parentSuspense && parentSuspense.registerDep(instance, setupRenderEffect);
3548
+ parentSuspense && parentSuspense.registerDep(instance, setupRenderEffect, optimized);
3921
3549
  if (!initialVNode.el) {
3922
3550
  const placeholder = instance.subTree = createVNode(Comment);
3923
3551
  processCommentNode(null, placeholder, container, anchor);
@@ -4312,8 +3940,7 @@ function baseCreateRenderer(options, createHydrationFns) {
4312
3940
  let moved = false;
4313
3941
  let maxNewIndexSoFar = 0;
4314
3942
  const newIndexToOldIndexMap = new Array(toBePatched);
4315
- for (i = 0; i < toBePatched; i++)
4316
- newIndexToOldIndexMap[i] = 0;
3943
+ for (i = 0; i < toBePatched; i++) newIndexToOldIndexMap[i] = 0;
4317
3944
  for (i = s1; i <= e1; i++) {
4318
3945
  const prevChild = c1[i];
4319
3946
  if (patched >= toBePatched) {
@@ -4442,11 +4069,15 @@ function baseCreateRenderer(options, createHydrationFns) {
4442
4069
  dynamicChildren,
4443
4070
  shapeFlag,
4444
4071
  patchFlag,
4445
- dirs
4072
+ dirs,
4073
+ memoIndex
4446
4074
  } = vnode;
4447
4075
  if (ref3 != null) {
4448
4076
  setRef(ref3, null, parentSuspense, vnode, true);
4449
4077
  }
4078
+ if (memoIndex != null) {
4079
+ parentComponent.renderCache[memoIndex] = void 0;
4080
+ }
4450
4081
  if (shapeFlag & 256) {
4451
4082
  parentComponent.ctx.deactivate(vnode);
4452
4083
  return;
@@ -4539,7 +4170,9 @@ function baseCreateRenderer(options, createHydrationFns) {
4539
4170
  hostRemove(end);
4540
4171
  };
4541
4172
  const unmountComponent = (instance, parentSuspense, doRemove) => {
4542
- const { bum, scope, update, subTree, um } = instance;
4173
+ const { bum, scope, update, subTree, um, m, a } = instance;
4174
+ invalidateMount(m);
4175
+ invalidateMount(a);
4543
4176
  if (bum) {
4544
4177
  invokeArrayFns(bum);
4545
4178
  }
@@ -4566,138 +4199,411 @@ function baseCreateRenderer(options, createHydrationFns) {
4566
4199
  unmount(children[i], parentComponent, parentSuspense, doRemove, optimized);
4567
4200
  }
4568
4201
  };
4569
- const getNextHostNode = (vnode) => {
4570
- if (vnode.shapeFlag & 6) {
4571
- return getNextHostNode(vnode.component.subTree);
4202
+ const getNextHostNode = (vnode) => {
4203
+ if (vnode.shapeFlag & 6) {
4204
+ return getNextHostNode(vnode.component.subTree);
4205
+ }
4206
+ if (vnode.shapeFlag & 128) {
4207
+ return vnode.suspense.next();
4208
+ }
4209
+ return hostNextSibling(vnode.anchor || vnode.el);
4210
+ };
4211
+ let isFlushing2 = false;
4212
+ const render = (vnode, container, namespace) => {
4213
+ if (vnode == null) {
4214
+ if (container._vnode) {
4215
+ unmount(container._vnode, null, null, true);
4216
+ }
4217
+ } else {
4218
+ patch(
4219
+ container._vnode || null,
4220
+ vnode,
4221
+ container,
4222
+ null,
4223
+ null,
4224
+ null,
4225
+ namespace
4226
+ );
4227
+ }
4228
+ if (!isFlushing2) {
4229
+ isFlushing2 = true;
4230
+ flushPreFlushCbs();
4231
+ flushPostFlushCbs();
4232
+ isFlushing2 = false;
4233
+ }
4234
+ container._vnode = vnode;
4235
+ };
4236
+ const internals = {
4237
+ p: patch,
4238
+ um: unmount,
4239
+ m: move,
4240
+ r: remove2,
4241
+ mt: mountComponent,
4242
+ mc: mountChildren,
4243
+ pc: patchChildren,
4244
+ pbc: patchBlockChildren,
4245
+ n: getNextHostNode,
4246
+ o: options
4247
+ };
4248
+ let hydrate;
4249
+ let hydrateNode;
4250
+ return {
4251
+ render,
4252
+ hydrate,
4253
+ createApp: createAppAPI(render, hydrate)
4254
+ };
4255
+ }
4256
+ function resolveChildrenNamespace({ type, props }, currentNamespace) {
4257
+ return currentNamespace === "svg" && type === "foreignObject" || currentNamespace === "mathml" && type === "annotation-xml" && props && props.encoding && props.encoding.includes("html") ? void 0 : currentNamespace;
4258
+ }
4259
+ function toggleRecurse({ effect: effect2, update }, allowed) {
4260
+ effect2.allowRecurse = update.allowRecurse = allowed;
4261
+ }
4262
+ function needTransition(parentSuspense, transition) {
4263
+ return (!parentSuspense || parentSuspense && !parentSuspense.pendingBranch) && transition && !transition.persisted;
4264
+ }
4265
+ function traverseStaticChildren(n1, n2, shallow = false) {
4266
+ const ch1 = n1.children;
4267
+ const ch2 = n2.children;
4268
+ if (isArray$1(ch1) && isArray$1(ch2)) {
4269
+ for (let i = 0; i < ch1.length; i++) {
4270
+ const c1 = ch1[i];
4271
+ let c2 = ch2[i];
4272
+ if (c2.shapeFlag & 1 && !c2.dynamicChildren) {
4273
+ if (c2.patchFlag <= 0 || c2.patchFlag === 32) {
4274
+ c2 = ch2[i] = cloneIfMounted(ch2[i]);
4275
+ c2.el = c1.el;
4276
+ }
4277
+ if (!shallow && c2.patchFlag !== -2)
4278
+ traverseStaticChildren(c1, c2);
4279
+ }
4280
+ if (c2.type === Text) {
4281
+ c2.el = c1.el;
4282
+ }
4283
+ }
4284
+ }
4285
+ }
4286
+ function getSequence(arr) {
4287
+ const p = arr.slice();
4288
+ const result = [0];
4289
+ let i, j, u, v, c;
4290
+ const len = arr.length;
4291
+ for (i = 0; i < len; i++) {
4292
+ const arrI = arr[i];
4293
+ if (arrI !== 0) {
4294
+ j = result[result.length - 1];
4295
+ if (arr[j] < arrI) {
4296
+ p[i] = j;
4297
+ result.push(i);
4298
+ continue;
4299
+ }
4300
+ u = 0;
4301
+ v = result.length - 1;
4302
+ while (u < v) {
4303
+ c = u + v >> 1;
4304
+ if (arr[result[c]] < arrI) {
4305
+ u = c + 1;
4306
+ } else {
4307
+ v = c;
4308
+ }
4309
+ }
4310
+ if (arrI < arr[result[u]]) {
4311
+ if (u > 0) {
4312
+ p[i] = result[u - 1];
4313
+ }
4314
+ result[u] = i;
4315
+ }
4316
+ }
4317
+ }
4318
+ u = result.length;
4319
+ v = result[u - 1];
4320
+ while (u-- > 0) {
4321
+ result[u] = v;
4322
+ v = p[v];
4323
+ }
4324
+ return result;
4325
+ }
4326
+ function locateNonHydratedAsyncRoot(instance) {
4327
+ const subComponent = instance.subTree.component;
4328
+ if (subComponent) {
4329
+ if (subComponent.asyncDep && !subComponent.asyncResolved) {
4330
+ return subComponent;
4331
+ } else {
4332
+ return locateNonHydratedAsyncRoot(subComponent);
4333
+ }
4334
+ }
4335
+ }
4336
+ function invalidateMount(hooks) {
4337
+ if (hooks) {
4338
+ for (let i = 0; i < hooks.length; i++) hooks[i].active = false;
4339
+ }
4340
+ }
4341
+ const ssrContextKey = Symbol.for("v-scx");
4342
+ const useSSRContext = () => {
4343
+ {
4344
+ const ctx = inject(ssrContextKey);
4345
+ return ctx;
4346
+ }
4347
+ };
4348
+ const INITIAL_WATCHER_VALUE = {};
4349
+ function watch(source, cb, options) {
4350
+ return doWatch(source, cb, options);
4351
+ }
4352
+ function doWatch(source, cb, {
4353
+ immediate,
4354
+ deep,
4355
+ flush,
4356
+ once,
4357
+ onTrack,
4358
+ onTrigger
4359
+ } = EMPTY_OBJ) {
4360
+ if (cb && once) {
4361
+ const _cb = cb;
4362
+ cb = (...args) => {
4363
+ _cb(...args);
4364
+ unwatch();
4365
+ };
4366
+ }
4367
+ const instance = currentInstance;
4368
+ const reactiveGetter = (source2) => deep === true ? source2 : (
4369
+ // for deep: false, only traverse root-level properties
4370
+ traverse(source2, deep === false ? 1 : void 0)
4371
+ );
4372
+ let getter;
4373
+ let forceTrigger = false;
4374
+ let isMultiSource = false;
4375
+ if (isRef(source)) {
4376
+ getter = () => source.value;
4377
+ forceTrigger = isShallow(source);
4378
+ } else if (isReactive(source)) {
4379
+ getter = () => reactiveGetter(source);
4380
+ forceTrigger = true;
4381
+ } else if (isArray$1(source)) {
4382
+ isMultiSource = true;
4383
+ forceTrigger = source.some((s) => isReactive(s) || isShallow(s));
4384
+ getter = () => source.map((s) => {
4385
+ if (isRef(s)) {
4386
+ return s.value;
4387
+ } else if (isReactive(s)) {
4388
+ return reactiveGetter(s);
4389
+ } else if (isFunction(s)) {
4390
+ return callWithErrorHandling(s, instance, 2);
4391
+ } else ;
4392
+ });
4393
+ } else if (isFunction(source)) {
4394
+ if (cb) {
4395
+ getter = () => callWithErrorHandling(source, instance, 2);
4396
+ } else {
4397
+ getter = () => {
4398
+ if (cleanup) {
4399
+ cleanup();
4400
+ }
4401
+ return callWithAsyncErrorHandling(
4402
+ source,
4403
+ instance,
4404
+ 3,
4405
+ [onCleanup]
4406
+ );
4407
+ };
4408
+ }
4409
+ } else {
4410
+ getter = NOOP;
4411
+ }
4412
+ if (cb && deep) {
4413
+ const baseGetter = getter;
4414
+ getter = () => traverse(baseGetter());
4415
+ }
4416
+ let cleanup;
4417
+ let onCleanup = (fn) => {
4418
+ cleanup = effect2.onStop = () => {
4419
+ callWithErrorHandling(fn, instance, 4);
4420
+ cleanup = effect2.onStop = void 0;
4421
+ };
4422
+ };
4423
+ let ssrCleanup;
4424
+ if (isInSSRComponentSetup) {
4425
+ onCleanup = NOOP;
4426
+ if (!cb) {
4427
+ getter();
4428
+ } else if (immediate) {
4429
+ callWithAsyncErrorHandling(cb, instance, 3, [
4430
+ getter(),
4431
+ isMultiSource ? [] : void 0,
4432
+ onCleanup
4433
+ ]);
4434
+ }
4435
+ if (flush === "sync") {
4436
+ const ctx = useSSRContext();
4437
+ ssrCleanup = ctx.__watcherHandles || (ctx.__watcherHandles = []);
4438
+ } else {
4439
+ return NOOP;
4440
+ }
4441
+ }
4442
+ let oldValue = isMultiSource ? new Array(source.length).fill(INITIAL_WATCHER_VALUE) : INITIAL_WATCHER_VALUE;
4443
+ const job = () => {
4444
+ if (!effect2.active || !effect2.dirty) {
4445
+ return;
4446
+ }
4447
+ if (cb) {
4448
+ const newValue = effect2.run();
4449
+ if (deep || forceTrigger || (isMultiSource ? newValue.some((v, i) => hasChanged(v, oldValue[i])) : hasChanged(newValue, oldValue)) || false) {
4450
+ if (cleanup) {
4451
+ cleanup();
4452
+ }
4453
+ callWithAsyncErrorHandling(cb, instance, 3, [
4454
+ newValue,
4455
+ // pass undefined as the old value when it's changed for the first time
4456
+ oldValue === INITIAL_WATCHER_VALUE ? void 0 : isMultiSource && oldValue[0] === INITIAL_WATCHER_VALUE ? [] : oldValue,
4457
+ onCleanup
4458
+ ]);
4459
+ oldValue = newValue;
4460
+ }
4461
+ } else {
4462
+ effect2.run();
4463
+ }
4464
+ };
4465
+ job.allowRecurse = !!cb;
4466
+ let scheduler;
4467
+ if (flush === "sync") {
4468
+ scheduler = job;
4469
+ } else if (flush === "post") {
4470
+ scheduler = () => queuePostRenderEffect(job, instance && instance.suspense);
4471
+ } else {
4472
+ job.pre = true;
4473
+ if (instance) job.id = instance.uid;
4474
+ scheduler = () => queueJob(job);
4475
+ }
4476
+ const effect2 = new ReactiveEffect(getter, NOOP, scheduler);
4477
+ const scope = getCurrentScope();
4478
+ const unwatch = () => {
4479
+ effect2.stop();
4480
+ if (scope) {
4481
+ remove(scope.effects, effect2);
4482
+ }
4483
+ };
4484
+ if (cb) {
4485
+ if (immediate) {
4486
+ job();
4487
+ } else {
4488
+ oldValue = effect2.run();
4489
+ }
4490
+ } else if (flush === "post") {
4491
+ queuePostRenderEffect(
4492
+ effect2.run.bind(effect2),
4493
+ instance && instance.suspense
4494
+ );
4495
+ } else {
4496
+ effect2.run();
4497
+ }
4498
+ if (ssrCleanup) ssrCleanup.push(unwatch);
4499
+ return unwatch;
4500
+ }
4501
+ function instanceWatch(source, value, options) {
4502
+ const publicThis = this.proxy;
4503
+ const getter = isString(source) ? source.includes(".") ? createPathGetter(publicThis, source) : () => publicThis[source] : source.bind(publicThis, publicThis);
4504
+ let cb;
4505
+ if (isFunction(value)) {
4506
+ cb = value;
4507
+ } else {
4508
+ cb = value.handler;
4509
+ options = value;
4510
+ }
4511
+ const reset = setCurrentInstance(this);
4512
+ const res = doWatch(getter, cb.bind(publicThis), options);
4513
+ reset();
4514
+ return res;
4515
+ }
4516
+ function createPathGetter(ctx, path) {
4517
+ const segments = path.split(".");
4518
+ return () => {
4519
+ let cur = ctx;
4520
+ for (let i = 0; i < segments.length && cur; i++) {
4521
+ cur = cur[segments[i]];
4522
+ }
4523
+ return cur;
4524
+ };
4525
+ }
4526
+ function traverse(value, depth = Infinity, seen) {
4527
+ if (depth <= 0 || !isObject(value) || value["__v_skip"]) {
4528
+ return value;
4529
+ }
4530
+ seen = seen || /* @__PURE__ */ new Set();
4531
+ if (seen.has(value)) {
4532
+ return value;
4533
+ }
4534
+ seen.add(value);
4535
+ depth--;
4536
+ if (isRef(value)) {
4537
+ traverse(value.value, depth, seen);
4538
+ } else if (isArray$1(value)) {
4539
+ for (let i = 0; i < value.length; i++) {
4540
+ traverse(value[i], depth, seen);
4572
4541
  }
4573
- if (vnode.shapeFlag & 128) {
4574
- return vnode.suspense.next();
4542
+ } else if (isSet(value) || isMap(value)) {
4543
+ value.forEach((v) => {
4544
+ traverse(v, depth, seen);
4545
+ });
4546
+ } else if (isPlainObject(value)) {
4547
+ for (const key in value) {
4548
+ traverse(value[key], depth, seen);
4575
4549
  }
4576
- return hostNextSibling(vnode.anchor || vnode.el);
4577
- };
4578
- let isFlushing2 = false;
4579
- const render = (vnode, container, namespace) => {
4580
- if (vnode == null) {
4581
- if (container._vnode) {
4582
- unmount(container._vnode, null, null, true);
4550
+ for (const key of Object.getOwnPropertySymbols(value)) {
4551
+ if (Object.prototype.propertyIsEnumerable.call(value, key)) {
4552
+ traverse(value[key], depth, seen);
4583
4553
  }
4584
- } else {
4585
- patch(
4586
- container._vnode || null,
4587
- vnode,
4588
- container,
4589
- null,
4590
- null,
4591
- null,
4592
- namespace
4593
- );
4594
4554
  }
4595
- if (!isFlushing2) {
4596
- isFlushing2 = true;
4597
- flushPreFlushCbs();
4598
- flushPostFlushCbs();
4599
- isFlushing2 = false;
4600
- }
4601
- container._vnode = vnode;
4602
- };
4603
- const internals = {
4604
- p: patch,
4605
- um: unmount,
4606
- m: move,
4607
- r: remove2,
4608
- mt: mountComponent,
4609
- mc: mountChildren,
4610
- pc: patchChildren,
4611
- pbc: patchBlockChildren,
4612
- n: getNextHostNode,
4613
- o: options
4614
- };
4615
- let hydrate;
4616
- let hydrateNode;
4617
- return {
4618
- render,
4619
- hydrate,
4620
- createApp: createAppAPI(render, hydrate)
4621
- };
4622
- }
4623
- function resolveChildrenNamespace({ type, props }, currentNamespace) {
4624
- return currentNamespace === "svg" && type === "foreignObject" || currentNamespace === "mathml" && type === "annotation-xml" && props && props.encoding && props.encoding.includes("html") ? void 0 : currentNamespace;
4555
+ }
4556
+ return value;
4625
4557
  }
4626
- function toggleRecurse({ effect: effect2, update }, allowed) {
4627
- effect2.allowRecurse = update.allowRecurse = allowed;
4558
+ const isKeepAlive = (vnode) => vnode.type.__isKeepAlive;
4559
+ function onActivated(hook, target) {
4560
+ registerKeepAliveHook(hook, "a", target);
4628
4561
  }
4629
- function needTransition(parentSuspense, transition) {
4630
- return (!parentSuspense || parentSuspense && !parentSuspense.pendingBranch) && transition && !transition.persisted;
4562
+ function onDeactivated(hook, target) {
4563
+ registerKeepAliveHook(hook, "da", target);
4631
4564
  }
4632
- function traverseStaticChildren(n1, n2, shallow = false) {
4633
- const ch1 = n1.children;
4634
- const ch2 = n2.children;
4635
- if (isArray$1(ch1) && isArray$1(ch2)) {
4636
- for (let i = 0; i < ch1.length; i++) {
4637
- const c1 = ch1[i];
4638
- let c2 = ch2[i];
4639
- if (c2.shapeFlag & 1 && !c2.dynamicChildren) {
4640
- if (c2.patchFlag <= 0 || c2.patchFlag === 32) {
4641
- c2 = ch2[i] = cloneIfMounted(ch2[i]);
4642
- c2.el = c1.el;
4643
- }
4644
- if (!shallow)
4645
- traverseStaticChildren(c1, c2);
4646
- }
4647
- if (c2.type === Text) {
4648
- c2.el = c1.el;
4565
+ function registerKeepAliveHook(hook, type, target = currentInstance) {
4566
+ const wrappedHook = hook.__wdc || (hook.__wdc = () => {
4567
+ let current = target;
4568
+ while (current) {
4569
+ if (current.isDeactivated) {
4570
+ return;
4649
4571
  }
4572
+ current = current.parent;
4650
4573
  }
4651
- }
4652
- }
4653
- function getSequence(arr) {
4654
- const p = arr.slice();
4655
- const result = [0];
4656
- let i, j, u, v, c;
4657
- const len = arr.length;
4658
- for (i = 0; i < len; i++) {
4659
- const arrI = arr[i];
4660
- if (arrI !== 0) {
4661
- j = result[result.length - 1];
4662
- if (arr[j] < arrI) {
4663
- p[i] = j;
4664
- result.push(i);
4665
- continue;
4666
- }
4667
- u = 0;
4668
- v = result.length - 1;
4669
- while (u < v) {
4670
- c = u + v >> 1;
4671
- if (arr[result[c]] < arrI) {
4672
- u = c + 1;
4673
- } else {
4674
- v = c;
4675
- }
4676
- }
4677
- if (arrI < arr[result[u]]) {
4678
- if (u > 0) {
4679
- p[i] = result[u - 1];
4680
- }
4681
- result[u] = i;
4574
+ return hook();
4575
+ });
4576
+ injectHook(type, wrappedHook, target);
4577
+ if (target) {
4578
+ let current = target.parent;
4579
+ while (current && current.parent) {
4580
+ if (isKeepAlive(current.parent.vnode)) {
4581
+ injectToKeepAliveRoot(wrappedHook, type, target, current);
4682
4582
  }
4583
+ current = current.parent;
4683
4584
  }
4684
4585
  }
4685
- u = result.length;
4686
- v = result[u - 1];
4687
- while (u-- > 0) {
4688
- result[u] = v;
4689
- v = p[v];
4690
- }
4691
- return result;
4692
4586
  }
4693
- function locateNonHydratedAsyncRoot(instance) {
4694
- const subComponent = instance.subTree.component;
4695
- if (subComponent) {
4696
- if (subComponent.asyncDep && !subComponent.asyncResolved) {
4697
- return subComponent;
4698
- } else {
4699
- return locateNonHydratedAsyncRoot(subComponent);
4700
- }
4587
+ function injectToKeepAliveRoot(hook, type, target, keepAliveRoot) {
4588
+ const injected = injectHook(
4589
+ type,
4590
+ hook,
4591
+ keepAliveRoot,
4592
+ true
4593
+ /* prepend */
4594
+ );
4595
+ onUnmounted(() => {
4596
+ remove(keepAliveRoot[type], injected);
4597
+ }, target);
4598
+ }
4599
+ function setTransitionHooks(vnode, hooks) {
4600
+ if (vnode.shapeFlag & 6 && vnode.component) {
4601
+ setTransitionHooks(vnode.component.subTree, hooks);
4602
+ } else if (vnode.shapeFlag & 128) {
4603
+ vnode.ssContent.transition = hooks.clone(vnode.ssContent);
4604
+ vnode.ssFallback.transition = hooks.clone(vnode.ssFallback);
4605
+ } else {
4606
+ vnode.transition = hooks;
4701
4607
  }
4702
4608
  }
4703
4609
  const isTeleport = (type) => type.__isTeleport;
@@ -4726,19 +4632,6 @@ function setupBlock(vnode) {
4726
4632
  }
4727
4633
  return vnode;
4728
4634
  }
4729
- function createElementBlock(type, props, children, patchFlag, dynamicProps, shapeFlag) {
4730
- return setupBlock(
4731
- createBaseVNode(
4732
- type,
4733
- props,
4734
- children,
4735
- patchFlag,
4736
- dynamicProps,
4737
- shapeFlag,
4738
- true
4739
- )
4740
- );
4741
- }
4742
4635
  function createBlock(type, props, children, patchFlag, dynamicProps) {
4743
4636
  return setupBlock(
4744
4637
  createVNode(
@@ -4840,7 +4733,7 @@ function _createVNode(type, props = null, children = null, patchFlag = 0, dynami
4840
4733
  currentBlock.push(cloned);
4841
4734
  }
4842
4735
  }
4843
- cloned.patchFlag |= -2;
4736
+ cloned.patchFlag = -2;
4844
4737
  return cloned;
4845
4738
  }
4846
4739
  if (isClassComponent(type)) {
@@ -4872,8 +4765,7 @@ function _createVNode(type, props = null, children = null, patchFlag = 0, dynami
4872
4765
  );
4873
4766
  }
4874
4767
  function guardReactiveProps(props) {
4875
- if (!props)
4876
- return null;
4768
+ if (!props) return null;
4877
4769
  return isProxy(props) || isInternalObject(props) ? extend({}, props) : props;
4878
4770
  }
4879
4771
  function cloneVNode(vnode, extraProps, mergeRef = false, cloneTransition = false) {
@@ -4922,16 +4814,16 @@ function cloneVNode(vnode, extraProps, mergeRef = false, cloneTransition = false
4922
4814
  ce: vnode.ce
4923
4815
  };
4924
4816
  if (transition && cloneTransition) {
4925
- cloned.transition = transition.clone(cloned);
4817
+ setTransitionHooks(
4818
+ cloned,
4819
+ transition.clone(cloned)
4820
+ );
4926
4821
  }
4927
4822
  return cloned;
4928
4823
  }
4929
4824
  function createTextVNode(text = " ", flag = 0) {
4930
4825
  return createVNode(Text, null, text, flag);
4931
4826
  }
4932
- function createCommentVNode(text = "", asBlock = false) {
4933
- return asBlock ? (openBlock(), createBlock(Comment, null, text)) : createVNode(Comment, null, text);
4934
- }
4935
4827
  function normalizeVNode(child) {
4936
4828
  if (child == null || typeof child === "boolean") {
4937
4829
  return createVNode(Comment);
@@ -5124,14 +5016,11 @@ let setInSSRSetupState;
5124
5016
  const g = getGlobalThis();
5125
5017
  const registerGlobalSetter = (key, setter) => {
5126
5018
  let setters;
5127
- if (!(setters = g[key]))
5128
- setters = g[key] = [];
5019
+ if (!(setters = g[key])) setters = g[key] = [];
5129
5020
  setters.push(setter);
5130
5021
  return (v) => {
5131
- if (setters.length > 1)
5132
- setters.forEach((set) => set(v));
5133
- else
5134
- setters[0](v);
5022
+ if (setters.length > 1) setters.forEach((set) => set(v));
5023
+ else setters[0](v);
5135
5024
  };
5136
5025
  };
5137
5026
  internalSetCurrentInstance = registerGlobalSetter(
@@ -5274,7 +5163,7 @@ function createSetupContext(instance) {
5274
5163
  };
5275
5164
  }
5276
5165
  }
5277
- function getExposeProxy(instance) {
5166
+ function getComponentPublicInstance(instance) {
5278
5167
  if (instance.exposed) {
5279
5168
  return instance.exposeProxy || (instance.exposeProxy = new Proxy(proxyRefs(markRaw(instance.exposed)), {
5280
5169
  get(target, key) {
@@ -5288,6 +5177,8 @@ function getExposeProxy(instance) {
5288
5177
  return key in target || key in publicPropertiesMap;
5289
5178
  }
5290
5179
  }));
5180
+ } else {
5181
+ return instance.proxy;
5291
5182
  }
5292
5183
  }
5293
5184
  const classifyRE = /(?:^|[-_])(\w)/g;
@@ -5344,12 +5235,12 @@ function h(type, propsOrChildren, children) {
5344
5235
  return createVNode(type, propsOrChildren, children);
5345
5236
  }
5346
5237
  }
5347
- const version = "3.4.27";
5238
+ const version = "3.4.29";
5348
5239
 
5349
5240
  /* Injected with object hook! */
5350
5241
 
5351
5242
  /**
5352
- * @vue/runtime-dom v3.4.27
5243
+ * @vue/runtime-dom v3.4.29
5353
5244
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
5354
5245
  * @license MIT
5355
5246
  **/
@@ -5368,7 +5259,7 @@ const nodeOps = {
5368
5259
  }
5369
5260
  },
5370
5261
  createElement: (tag, namespace, is, props) => {
5371
- const el = namespace === "svg" ? doc.createElementNS(svgNS, tag) : namespace === "mathml" ? doc.createElementNS(mathmlNS, tag) : doc.createElement(tag, is ? { is } : void 0);
5262
+ const el = namespace === "svg" ? doc.createElementNS(svgNS, tag) : namespace === "mathml" ? doc.createElementNS(mathmlNS, tag) : is ? doc.createElement(tag, { is }) : doc.createElement(tag);
5372
5263
  if (tag === "select" && props && props.multiple != null) {
5373
5264
  el.setAttribute("multiple", props.multiple);
5374
5265
  }
@@ -5397,8 +5288,7 @@ const nodeOps = {
5397
5288
  if (start && (start === end || start.nextSibling)) {
5398
5289
  while (true) {
5399
5290
  parent.insertBefore(start.cloneNode(true), anchor);
5400
- if (start === end || !(start = start.nextSibling))
5401
- break;
5291
+ if (start === end || !(start = start.nextSibling)) break;
5402
5292
  }
5403
5293
  } else {
5404
5294
  templateContainer.innerHTML = namespace === "svg" ? `<svg>${content}</svg>` : namespace === "mathml" ? `<math>${content}</math>` : content;
@@ -5491,8 +5381,7 @@ function setStyle(style, name, val) {
5491
5381
  if (isArray$1(val)) {
5492
5382
  val.forEach((v) => setStyle(style, name, v));
5493
5383
  } else {
5494
- if (val == null)
5495
- val = "";
5384
+ if (val == null) val = "";
5496
5385
  if (name.startsWith("--")) {
5497
5386
  style.setProperty(name, val);
5498
5387
  } else {
@@ -5530,7 +5419,7 @@ function autoPrefix(style, rawName) {
5530
5419
  return rawName;
5531
5420
  }
5532
5421
  const xlinkNS = "http://www.w3.org/1999/xlink";
5533
- function patchAttr(el, key, value, isSVG, instance) {
5422
+ function patchAttr(el, key, value, isSVG, instance, isBoolean = isSpecialBooleanAttr(key)) {
5534
5423
  if (isSVG && key.startsWith("xlink:")) {
5535
5424
  if (value == null) {
5536
5425
  el.removeAttributeNS(xlinkNS, key.slice(6, key.length));
@@ -5538,11 +5427,10 @@ function patchAttr(el, key, value, isSVG, instance) {
5538
5427
  el.setAttributeNS(xlinkNS, key, value);
5539
5428
  }
5540
5429
  } else {
5541
- const isBoolean = isSpecialBooleanAttr(key);
5542
5430
  if (value == null || isBoolean && !includeBooleanAttr(value)) {
5543
5431
  el.removeAttribute(key);
5544
5432
  } else {
5545
- el.setAttribute(key, isBoolean ? "" : value);
5433
+ el.setAttribute(key, isBoolean ? "" : String(value));
5546
5434
  }
5547
5435
  }
5548
5436
  }
@@ -5558,7 +5446,7 @@ function patchDOMProp(el, key, value, prevChildren, parentComponent, parentSuspe
5558
5446
  if (key === "value" && tag !== "PROGRESS" && // custom elements may use _value internally
5559
5447
  !tag.includes("-")) {
5560
5448
  const oldValue = tag === "OPTION" ? el.getAttribute("value") || "" : el.value;
5561
- const newValue = value == null ? "" : value;
5449
+ const newValue = value == null ? "" : String(value);
5562
5450
  if (oldValue !== newValue || !("_value" in el)) {
5563
5451
  el.value = newValue;
5564
5452
  }
@@ -5684,6 +5572,9 @@ const patchProp = (el, key, prevValue, nextValue, namespace, prevChildren, paren
5684
5572
  parentSuspense,
5685
5573
  unmountChildren
5686
5574
  );
5575
+ if (key === "value" || key === "checked" || key === "selected") {
5576
+ patchAttr(el, key, nextValue, isSVG, parentComponent, key !== "value");
5577
+ }
5687
5578
  } else {
5688
5579
  if (key === "true-value") {
5689
5580
  el._trueValue = nextValue;
@@ -5736,8 +5627,7 @@ const createApp = (...args) => {
5736
5627
  const { mount } = app;
5737
5628
  app.mount = (containerOrSelector) => {
5738
5629
  const container = normalizeContainer(containerOrSelector);
5739
- if (!container)
5740
- return;
5630
+ if (!container) return;
5741
5631
  const component = app._component;
5742
5632
  if (!isFunction(component) && !component.render && !component.template) {
5743
5633
  component.template = container.innerHTML;
@@ -5770,105 +5660,8 @@ function normalizeContainer(container) {
5770
5660
 
5771
5661
  /* Injected with object hook! */
5772
5662
 
5773
- const scriptRel = 'modulepreload';const assetsURL = function(dep, importerUrl) { return new URL(dep, importerUrl).href };const seen = {};const __vitePreload = function preload(baseModule, deps, importerUrl) {
5774
- let promise = Promise.resolve();
5775
- // @ts-expect-error true will be replaced with boolean later
5776
- if (true && deps && deps.length > 0) {
5777
- const links = document.getElementsByTagName('link');
5778
- const cspNonceMeta = document.querySelector('meta[property=csp-nonce]');
5779
- // `.nonce` should be used to get along with nonce hiding (https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/nonce#accessing_nonces_and_nonce_hiding)
5780
- // Firefox 67-74 uses modern chunks and supports CSP nonce, but does not support `.nonce`
5781
- // in that case fallback to getAttribute
5782
- const cspNonce = cspNonceMeta?.nonce || cspNonceMeta?.getAttribute('nonce');
5783
- promise = Promise.all(deps.map((dep) => {
5784
- // @ts-expect-error assetsURL is declared before preload.toString()
5785
- dep = assetsURL(dep, importerUrl);
5786
- if (dep in seen)
5787
- return;
5788
- seen[dep] = true;
5789
- const isCss = dep.endsWith('.css');
5790
- const cssSelector = isCss ? '[rel="stylesheet"]' : '';
5791
- const isBaseRelative = !!importerUrl;
5792
- // check if the file is already preloaded by SSR markup
5793
- if (isBaseRelative) {
5794
- // When isBaseRelative is true then we have `importerUrl` and `dep` is
5795
- // already converted to an absolute URL by the `assetsURL` function
5796
- for (let i = links.length - 1; i >= 0; i--) {
5797
- const link = links[i];
5798
- // The `links[i].href` is an absolute URL thanks to browser doing the work
5799
- // for us. See https://html.spec.whatwg.org/multipage/common-dom-interfaces.html#reflecting-content-attributes-in-idl-attributes:idl-domstring-5
5800
- if (link.href === dep && (!isCss || link.rel === 'stylesheet')) {
5801
- return;
5802
- }
5803
- }
5804
- }
5805
- else if (document.querySelector(`link[href="${dep}"]${cssSelector}`)) {
5806
- return;
5807
- }
5808
- const link = document.createElement('link');
5809
- link.rel = isCss ? 'stylesheet' : scriptRel;
5810
- if (!isCss) {
5811
- link.as = 'script';
5812
- link.crossOrigin = '';
5813
- }
5814
- link.href = dep;
5815
- if (cspNonce) {
5816
- link.setAttribute('nonce', cspNonce);
5817
- }
5818
- document.head.appendChild(link);
5819
- if (isCss) {
5820
- return new Promise((res, rej) => {
5821
- link.addEventListener('load', res);
5822
- link.addEventListener('error', () => rej(new Error(`Unable to preload CSS for ${dep}`)));
5823
- });
5824
- }
5825
- }));
5826
- }
5827
- return promise
5828
- .then(() => baseModule())
5829
- .catch((err) => {
5830
- const e = new Event('vite:preloadError', { cancelable: true });
5831
- // @ts-expect-error custom payload
5832
- e.payload = err;
5833
- window.dispatchEvent(e);
5834
- if (!e.defaultPrevented) {
5835
- throw err;
5836
- }
5837
- });
5838
- };
5839
- /* Injected with object hook! */
5840
-
5841
- const routes = [
5842
- {
5843
- path: '/',
5844
- name: '/',
5845
- component: () => __vitePreload(() => import('./index-BRTQkmk7.js'),true?__vite__mapDeps([0,1,2]):void 0,import.meta.url),
5846
- /* no children */
5847
- },
5848
- {
5849
- path: '/about',
5850
- name: '/about',
5851
- component: () => __vitePreload(() => import('./about-DwWwcIBI.js'),true?__vite__mapDeps([3,1]):void 0,import.meta.url),
5852
- /* no children */
5853
- },
5854
- {
5855
- path: '/categories',
5856
- name: '/categories',
5857
- component: () => __vitePreload(() => import('./categories-CuWZw3k9.js'),true?__vite__mapDeps([4,1]):void 0,import.meta.url),
5858
- /* no children */
5859
- },
5860
- {
5861
- path: '/tags',
5862
- name: '/tags',
5863
- component: () => __vitePreload(() => import('./tags-BDSDogY-.js'),true?__vite__mapDeps([5,1]):void 0,import.meta.url),
5864
- /* no children */
5865
- }
5866
- ];
5867
-
5868
- /* Injected with object hook! */
5869
-
5870
5663
  /*!
5871
- * vue-router v4.3.2
5664
+ * vue-router v4.3.3
5872
5665
  * (c) 2024 Eduardo San Martin Morote
5873
5666
  * @license MIT
5874
5667
  */
@@ -6658,6 +6451,9 @@ function createRouterMatcher(routes, globalOptions) {
6658
6451
  if (isRootAdd && record.name && !isAliasRecord(matcher))
6659
6452
  removeRoute(record.name);
6660
6453
  }
6454
+ if (isMatchable(matcher)) {
6455
+ insertMatcher(matcher);
6456
+ }
6661
6457
  if (mainNormalizedRecord.children) {
6662
6458
  const children = mainNormalizedRecord.children;
6663
6459
  for (let i = 0; i < children.length; i++) {
@@ -6665,9 +6461,6 @@ function createRouterMatcher(routes, globalOptions) {
6665
6461
  }
6666
6462
  }
6667
6463
  originalRecord = originalRecord || matcher;
6668
- if (matcher.record.components && Object.keys(matcher.record.components).length || matcher.record.name || matcher.record.redirect) {
6669
- insertMatcher(matcher);
6670
- }
6671
6464
  }
6672
6465
  return originalMatcher ? () => {
6673
6466
  removeRoute(originalMatcher);
@@ -6697,12 +6490,8 @@ function createRouterMatcher(routes, globalOptions) {
6697
6490
  return matchers;
6698
6491
  }
6699
6492
  function insertMatcher(matcher) {
6700
- let i = 0;
6701
- while (i < matchers.length && comparePathParserScore(matcher, matchers[i]) >= 0 && // Adding children with empty path should still appear before the parent
6702
- // https://github.com/vuejs/router/issues/1124
6703
- (matcher.record.path !== matchers[i].record.path || !isRecordChildOf(matcher, matchers[i])))
6704
- i++;
6705
- matchers.splice(i, 0, matcher);
6493
+ const index = findInsertionIndex(matcher, matchers);
6494
+ matchers.splice(index, 0, matcher);
6706
6495
  if (matcher.record.name && !isAliasRecord(matcher))
6707
6496
  matcherMap.set(matcher.record.name, matcher);
6708
6497
  }
@@ -6820,8 +6609,35 @@ function mergeOptions(defaults, partialOptions) {
6820
6609
  }
6821
6610
  return options;
6822
6611
  }
6823
- function isRecordChildOf(record, parent) {
6824
- return parent.children.some((child) => child === record || isRecordChildOf(record, child));
6612
+ function findInsertionIndex(matcher, matchers) {
6613
+ let lower = 0;
6614
+ let upper = matchers.length;
6615
+ while (lower !== upper) {
6616
+ const mid = lower + upper >> 1;
6617
+ const sortOrder = comparePathParserScore(matcher, matchers[mid]);
6618
+ if (sortOrder < 0) {
6619
+ upper = mid;
6620
+ } else {
6621
+ lower = mid + 1;
6622
+ }
6623
+ }
6624
+ const insertionAncestor = getInsertionAncestor(matcher);
6625
+ if (insertionAncestor) {
6626
+ upper = matchers.lastIndexOf(insertionAncestor, upper - 1);
6627
+ }
6628
+ return upper;
6629
+ }
6630
+ function getInsertionAncestor(matcher) {
6631
+ let ancestor = matcher;
6632
+ while (ancestor = ancestor.parent) {
6633
+ if (isMatchable(ancestor) && comparePathParserScore(matcher, ancestor) === 0) {
6634
+ return ancestor;
6635
+ }
6636
+ }
6637
+ return;
6638
+ }
6639
+ function isMatchable({ record }) {
6640
+ return !!(record.name || record.components && Object.keys(record.components).length || record.redirect);
6825
6641
  }
6826
6642
  function parseQuery(search) {
6827
6643
  const query = {};
@@ -7675,11 +7491,14 @@ function extractChangingRecords(to, from) {
7675
7491
  /* Injected with object hook! */
7676
7492
 
7677
7493
  function createRouter(options) {
7678
- const { extendRoutes } = options;
7494
+ const { extendRoutes, routes } = options;
7679
7495
  // use Object.assign for better browser support
7496
+ if (extendRoutes) {
7497
+ console.warn('"extendRoutes()" is deprecated, please modify the routes directly. See');
7498
+ }
7680
7499
  const router = createRouter$1(Object.assign(
7681
7500
  options,
7682
- { routes: typeof extendRoutes === 'function' ? extendRoutes(routes) : routes },
7501
+ { routes: typeof extendRoutes === 'function' ? (extendRoutes(routes) || routes) : routes },
7683
7502
  ));
7684
7503
 
7685
7504
  return router
@@ -7694,16 +7513,9 @@ const pageData = ref();
7694
7513
 
7695
7514
  /* Injected with object hook! */
7696
7515
 
7697
- function getAppWindow() {
7698
- return window.parent.parent;
7699
- }
7700
7516
  function getWindowProperty(property) {
7701
7517
  return window.parent.parent[property];
7702
7518
  }
7703
- function getGlobalValaxyProperty(property) {
7704
- const $valaxy = window.parent.parent.$valaxy;
7705
- return $valaxy[property];
7706
- }
7707
7519
 
7708
7520
  /* Injected with object hook! */
7709
7521
 
@@ -7727,7 +7539,7 @@ function initDevtoolsClient() {
7727
7539
 
7728
7540
  /* Injected with object hook! */
7729
7541
 
7730
- const isStaticMode = document.body.getAttribute("data-valaxy-devtools-mode") === "BUILD";
7542
+ document.body.getAttribute("data-valaxy-devtools-mode") === "BUILD";
7731
7543
 
7732
7544
  /* Injected with object hook! */
7733
7545
 
@@ -7764,5 +7576,3 @@ app.mount("#app");
7764
7576
  /* Injected with object hook! */
7765
7577
 
7766
7578
  /* Injected with object hook! */
7767
-
7768
- export { h as A, normalizeStyle as B, isStaticMode as C, Fragment as F, createElementBlock as a, createCommentVNode as b, computed as c, defineComponent as d, ref as e, onMounted as f, getAppWindow as g, createBaseVNode as h, resolveComponent as i, createBlock as j, renderList as k, createTextVNode as l, createVNode as m, normalizeClass as n, openBlock as o, pageData as p, toRaw as q, renderSlot as r, frontmatter as s, toDisplayString as t, unref as u, getWindowProperty as v, withCtx as w, getGlobalValaxyProperty as x, activePath as y, devtoolsRouter as z };