@fefeding/aicmd 1.0.26 → 1.0.28

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.
Files changed (91) hide show
  1. package/README.md +60 -5
  2. package/README.zh.md +66 -5
  3. package/dist/public/.vite/manifest.json +133 -13
  4. package/dist/public/ai-settings.css +1868 -0
  5. package/dist/public/ai-settings.js +7579 -0
  6. package/dist/public/bootstrap-icons.woff +0 -0
  7. package/dist/public/bootstrap-icons.woff2 +0 -0
  8. package/dist/public/bootstrap.css +1 -1
  9. package/dist/public/bootstrap.js +60 -119
  10. package/dist/public/connection-editor.css +5 -0
  11. package/dist/public/connection-editor.js +831 -0
  12. package/dist/public/connection.js +118 -0
  13. package/dist/public/index.css +0 -381
  14. package/dist/public/index.js +186 -5467
  15. package/dist/public/rdp_client_bg.wasm +0 -0
  16. package/dist/public/selection-copy.css +494 -0
  17. package/dist/public/selection-copy.js +5540 -0
  18. package/dist/public/src/term.html +17 -0
  19. package/dist/public/src/vscode-edit.html +21 -0
  20. package/dist/public/src/vscode-term.html +24 -0
  21. package/dist/public/term.css +14 -0
  22. package/dist/public/term.js +333 -0
  23. package/dist/public/views.css +111 -1515
  24. package/dist/public/views.js +233 -7476
  25. package/dist/public/vscode-clipboard.js +658 -0
  26. package/dist/public/vscode-edit.js +91 -0
  27. package/dist/public/vscode-term.js +116 -0
  28. package/dist/public/vue.js +360 -195
  29. package/dist/public/xterm.js +1647 -10
  30. package/dist/public/zmodem.js +2726 -0
  31. package/dist/server/index.d.ts +12 -2
  32. package/dist/server/index.d.ts.map +1 -1
  33. package/dist/server/index.js +14 -1
  34. package/dist/server/index.js.map +1 -1
  35. package/dist/server/index.ts +14 -1
  36. package/dist/server/model/connection.entity.d.ts +27 -2
  37. package/dist/server/model/connection.entity.d.ts.map +1 -1
  38. package/dist/server/model/connection.entity.js +11 -1
  39. package/dist/server/model/connection.entity.js.map +1 -1
  40. package/dist/server/model/connection.entity.ts +30 -2
  41. package/dist/server/service/ai.service.d.ts +15 -0
  42. package/dist/server/service/ai.service.d.ts.map +1 -1
  43. package/dist/server/service/ai.service.js +38 -6
  44. package/dist/server/service/ai.service.js.map +1 -1
  45. package/dist/server/service/ai.service.ts +43 -6
  46. package/dist/server/service/connection.service.d.ts +1 -1
  47. package/dist/server/service/connection.service.d.ts.map +1 -1
  48. package/dist/server/service/connection.service.js +32 -3
  49. package/dist/server/service/connection.service.js.map +1 -1
  50. package/dist/server/service/connection.service.ts +30 -3
  51. package/dist/server/service/monitor.service.d.ts.map +1 -1
  52. package/dist/server/service/monitor.service.js +8 -1
  53. package/dist/server/service/monitor.service.js.map +1 -1
  54. package/dist/server/service/monitor.service.ts +8 -1
  55. package/dist/server/service/rdp-tunnel.service.d.ts +22 -0
  56. package/dist/server/service/rdp-tunnel.service.d.ts.map +1 -0
  57. package/dist/server/service/rdp-tunnel.service.js +474 -0
  58. package/dist/server/service/rdp-tunnel.service.js.map +1 -0
  59. package/dist/server/service/rdp-tunnel.service.ts +439 -0
  60. package/dist/server/service/rdp.service.d.ts +64 -0
  61. package/dist/server/service/rdp.service.d.ts.map +1 -0
  62. package/dist/server/service/rdp.service.js +324 -0
  63. package/dist/server/service/rdp.service.js.map +1 -0
  64. package/dist/server/service/rdp.service.ts +324 -0
  65. package/dist/server/service/ssh.service.d.ts +57 -1
  66. package/dist/server/service/ssh.service.d.ts.map +1 -1
  67. package/dist/server/service/ssh.service.js +460 -109
  68. package/dist/server/service/ssh.service.js.map +1 -1
  69. package/dist/server/service/ssh.service.ts +455 -107
  70. package/dist/server/utils/ansi.d.ts +20 -0
  71. package/dist/server/utils/ansi.d.ts.map +1 -0
  72. package/dist/server/utils/ansi.js +39 -0
  73. package/dist/server/utils/ansi.js.map +1 -0
  74. package/dist/server/utils/ansi.ts +34 -0
  75. package/dist/server/utils/proxy.d.ts +28 -0
  76. package/dist/server/utils/proxy.d.ts.map +1 -0
  77. package/dist/server/utils/proxy.js +596 -0
  78. package/dist/server/utils/proxy.js.map +1 -0
  79. package/dist/server/utils/proxy.ts +556 -0
  80. package/dist/server/utils/rdp-ws.d.ts +15 -0
  81. package/dist/server/utils/rdp-ws.d.ts.map +1 -0
  82. package/dist/server/utils/rdp-ws.js +28 -0
  83. package/dist/server/utils/rdp-ws.js.map +1 -0
  84. package/dist/server/utils/rdp-ws.ts +32 -0
  85. package/dist/view/index.html +9 -7
  86. package/electron/main.js +118 -3
  87. package/electron/preload.js +4 -0
  88. package/package.json +32 -31
  89. package/public/aicmd.png +0 -0
  90. package/server.js +132 -12
  91. package/dist/public/rolldown-runtime.js +0 -41
@@ -1,7 +1,7 @@
1
- import { n as __esmMin } from "./rolldown-runtime.js";
2
- //#region node_modules/.pnpm/@vue+shared@3.5.42/node_modules/@vue/shared/dist/shared.esm-bundler.js
1
+ import { m as __esmMin } from "./vscode-clipboard.js";
2
+ // node_modules/.pnpm/@vue+shared@3.5.44/node_modules/@vue/shared/dist/shared.esm-bundler.js
3
3
  /**
4
- * @vue/shared v3.5.42
4
+ * @vue/shared v3.5.44
5
5
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
6
6
  * @license MIT
7
7
  **/
@@ -24,7 +24,7 @@ function normalizeStyle(value) {
24
24
  }
25
25
  function parseStringStyle(cssText) {
26
26
  const ret = {};
27
- cssText.replace(styleCommentRE, "").split(listDelimiterRE).forEach((item) => {
27
+ cssText.replace(styleCommentRE, (match) => match.startsWith("/*") ? "" : match).split(listDelimiterRE).forEach((item) => {
28
28
  if (item) {
29
29
  const tmp = item.split(propertyDelimiterRE);
30
30
  tmp.length > 1 && (ret[tmp[0].trim()] = tmp[1].trim());
@@ -47,19 +47,19 @@ function normalizeClass(value) {
47
47
  function includeBooleanAttr(value) {
48
48
  return !!value || value === "";
49
49
  }
50
- function looseCompareArrays(a, b) {
50
+ function looseCompareArrays(a, b, seen) {
51
51
  if (a.length !== b.length) return false;
52
52
  let equal = true;
53
- for (let i = 0; equal && i < a.length; i++) equal = looseEqual(a[i], b[i]);
53
+ for (let i = 0; equal && i < a.length; i++) equal = looseEqual(a[i], b[i], seen);
54
54
  return equal;
55
55
  }
56
- function looseCompareCollections(a, b) {
56
+ function looseCompareCollections(a, b, seen) {
57
57
  if (a.size !== b.size) return false;
58
58
  const candidates = Array.from(b);
59
59
  const matched = new Uint8Array(candidates.length);
60
60
  for (const item of a) {
61
61
  let index = -1;
62
- for (let i = 0; i < candidates.length; i++) if (!matched[i] && looseEqual(item, candidates[i])) {
62
+ for (let i = 0; i < candidates.length; i++) if (!matched[i] && looseEqual(item, candidates[i], seen)) {
63
63
  index = i;
64
64
  break;
65
65
  }
@@ -68,7 +68,33 @@ function looseCompareCollections(a, b) {
68
68
  }
69
69
  return true;
70
70
  }
71
- function looseEqual(a, b) {
71
+ function looseCompareObjects(a, b, seen) {
72
+ let aValidType = isMap(a);
73
+ let bValidType = isMap(b);
74
+ if (aValidType || bValidType) return aValidType && bValidType ? looseCompareCollections(a, b, seen) : false;
75
+ aValidType = isSet(a);
76
+ bValidType = isSet(b);
77
+ if (aValidType || bValidType) return aValidType && bValidType ? looseCompareCollections(a, b, seen) : false;
78
+ if (Object.keys(a).length !== Object.keys(b).length) return false;
79
+ for (const key in a) {
80
+ const aHasKey = a.hasOwnProperty(key);
81
+ const bHasKey = b.hasOwnProperty(key);
82
+ if (aHasKey && !bHasKey || !aHasKey && bHasKey || !looseEqual(a[key], b[key], seen)) return false;
83
+ }
84
+ return String(a) === String(b);
85
+ }
86
+ function looseCompareNested(a, b, seen, compare) {
87
+ if (!seen) seen = [/* @__PURE__ */ new Map(), /* @__PURE__ */ new Map()];
88
+ const [seenA, seenB] = seen;
89
+ if (seenA.has(a) || seenB.has(b)) return seenA.get(a) === b && seenB.get(b) === a;
90
+ seenA.set(a, b);
91
+ seenB.set(b, a);
92
+ const equal = compare(a, b, seen);
93
+ seenA.delete(a);
94
+ seenB.delete(b);
95
+ return equal;
96
+ }
97
+ function looseEqual(a, b, seen) {
72
98
  if (a === b) return true;
73
99
  let aValidType = isDate$1(a);
74
100
  let bValidType = isDate$1(b);
@@ -78,23 +104,12 @@ function looseEqual(a, b) {
78
104
  if (aValidType || bValidType) return a === b;
79
105
  aValidType = isArray$2(a);
80
106
  bValidType = isArray$2(b);
81
- if (aValidType || bValidType) return aValidType && bValidType ? looseCompareArrays(a, b) : false;
107
+ if (aValidType || bValidType) return aValidType && bValidType ? looseCompareNested(a, b, seen, looseCompareArrays) : false;
82
108
  aValidType = isObject$1(a);
83
109
  bValidType = isObject$1(b);
84
110
  if (aValidType || bValidType) {
85
111
  if (!aValidType || !bValidType) return false;
86
- aValidType = isMap(a);
87
- bValidType = isMap(b);
88
- if (aValidType || bValidType) return aValidType && bValidType ? looseCompareCollections(a, b) : false;
89
- aValidType = isSet(a);
90
- bValidType = isSet(b);
91
- if (aValidType || bValidType) return aValidType && bValidType ? looseCompareCollections(a, b) : false;
92
- if (Object.keys(a).length !== Object.keys(b).length) return false;
93
- for (const key in a) {
94
- const aHasKey = a.hasOwnProperty(key);
95
- const bHasKey = b.hasOwnProperty(key);
96
- if (aHasKey && !bHasKey || !aHasKey && bHasKey || !looseEqual(a[key], b[key])) return false;
97
- }
112
+ return looseCompareNested(a, b, seen, looseCompareObjects);
98
113
  }
99
114
  return String(a) === String(b);
100
115
  }
@@ -174,10 +189,9 @@ var init_shared_esm_bundler = __esmMin((() => {
174
189
  };
175
190
  listDelimiterRE = /;(?![^(]*\))/g;
176
191
  propertyDelimiterRE = /:([^]+)/;
177
- styleCommentRE = /\/\*[^]*?\*\//g;
178
- specialBooleanAttrs = `itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly`;
192
+ styleCommentRE = /"(?:[^"\\]|\\[^])*"|'(?:[^'\\]|\\[^])*'|\\[^]|\/\*[^]*?\*\//g;
193
+ specialBooleanAttrs = `itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,playsinline,readonly`;
179
194
  isSpecialBooleanAttr = /* @__PURE__ */ makeMap(specialBooleanAttrs);
180
- specialBooleanAttrs + "";
181
195
  isRef$1 = (val) => {
182
196
  return !!(val && val["__v_isRef"] === true);
183
197
  };
@@ -200,10 +214,9 @@ var init_shared_esm_bundler = __esmMin((() => {
200
214
  return isSymbol(v) ? `Symbol(${(_a = v.description) != null ? _a : i})` : v;
201
215
  };
202
216
  }));
203
- //#endregion
204
- //#region node_modules/.pnpm/@vue+reactivity@3.5.42/node_modules/@vue/reactivity/dist/reactivity.esm-bundler.js
217
+ // node_modules/.pnpm/@vue+reactivity@3.5.44/node_modules/@vue/reactivity/dist/reactivity.esm-bundler.js
205
218
  /**
206
- * @vue/reactivity v3.5.42
219
+ * @vue/reactivity v3.5.44
207
220
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
208
221
  * @license MIT
209
222
  **/
@@ -448,7 +461,9 @@ function reactiveReadArray(array) {
448
461
  const raw = /* @__PURE__ */ toRaw(array);
449
462
  if (raw === array) return raw;
450
463
  track(raw, "iterate", ARRAY_ITERATE_KEY);
451
- return /* @__PURE__ */ isShallow(array) ? raw : raw.map(toReactive);
464
+ if (/* @__PURE__ */ isShallow(array)) return raw;
465
+ if (!/* @__PURE__ */ isReadonly(array)) return raw.map(toReactive);
466
+ return /* @__PURE__ */ isReactive(array) ? raw.map((item) => toReadonly(toReactive(item))) : raw.map(toReadonly);
452
467
  }
453
468
  function shallowReadArray(arr) {
454
469
  track(arr = /* @__PURE__ */ toRaw(arr), "iterate", ARRAY_ITERATE_KEY);
@@ -460,17 +475,33 @@ function toWrapped(target, item) {
460
475
  }
461
476
  function iterator(self, method, wrapValue) {
462
477
  const arr = shallowReadArray(self);
463
- const iter = arr[method]();
478
+ const methodFn = arr[method];
479
+ const iter = methodFn.call(arr);
464
480
  if (arr !== self && !/* @__PURE__ */ isShallow(self)) {
481
+ if (iter[Symbol.toStringTag] === "Array Iterator") {
482
+ const wrapped = Object.create(Object.getPrototypeOf(iter));
483
+ wrapped.next = () => wrapResult(iter.next(), wrapValue);
484
+ if (methodFn !== arrayProto[method]) Object.defineProperties(wrapped, {
485
+ return: { get() {
486
+ const fn = iter.return;
487
+ return typeof fn === "function" ? fn.bind(iter) : fn;
488
+ } },
489
+ throw: { get() {
490
+ const fn = iter.throw;
491
+ return typeof fn === "function" ? fn.bind(iter) : fn;
492
+ } }
493
+ });
494
+ return wrapped;
495
+ }
465
496
  iter._next = iter.next;
466
- iter.next = () => {
467
- const result = iter._next();
468
- if (!result.done) result.value = wrapValue(result.value);
469
- return result;
470
- };
497
+ iter.next = () => wrapResult(iter._next(), wrapValue);
471
498
  }
472
499
  return iter;
473
500
  }
501
+ function wrapResult(result, wrapValue) {
502
+ if (!result.done) result.value = wrapValue(result.value);
503
+ return result;
504
+ }
474
505
  function apply$1(self, method, fn, thisArg, wrappedRetFn, args) {
475
506
  const arr = shallowReadArray(self);
476
507
  const needsWrap = arr !== self && !/* @__PURE__ */ isShallow(self);
@@ -675,6 +706,7 @@ function createInstrumentationGetter(isReadonly2, shallow) {
675
706
  return (target, key, receiver) => {
676
707
  if (key === "__v_isReactive") return !isReadonly2;
677
708
  else if (key === "__v_isReadonly") return isReadonly2;
709
+ else if (key === "__v_isShallow") return shallow;
678
710
  else if (key === "__v_raw") return target;
679
711
  return Reflect.get(hasOwn$1(instrumentations, key) && key in target ? instrumentations : target, key, receiver);
680
712
  };
@@ -863,9 +895,11 @@ function watch$1(source, cb, options = EMPTY_OBJ) {
863
895
  if (once && cb) {
864
896
  const _cb = cb;
865
897
  cb = (...args) => {
866
- const res = _cb(...args);
867
- watchHandle();
868
- return res;
898
+ try {
899
+ return _cb(...args);
900
+ } finally {
901
+ watchHandle();
902
+ }
869
903
  };
870
904
  }
871
905
  let oldValue = isMultiSource ? new Array(source.length).fill(INITIAL_WATCHER_VALUE) : INITIAL_WATCHER_VALUE;
@@ -874,10 +908,11 @@ function watch$1(source, cb, options = EMPTY_OBJ) {
874
908
  if (cb) {
875
909
  const newValue = effect.run();
876
910
  if (immediateFirstRun || deep || forceTrigger || (isMultiSource ? newValue.some((v, i) => hasChanged(v, oldValue[i])) : hasChanged(newValue, oldValue))) {
877
- if (cleanup) cleanup();
878
911
  const currentWatcher = activeWatcher;
879
- activeWatcher = effect;
912
+ pauseTracking();
880
913
  try {
914
+ if (cleanup) cleanup();
915
+ activeWatcher = effect;
881
916
  const args = [
882
917
  newValue,
883
918
  oldValue === INITIAL_WATCHER_VALUE ? void 0 : isMultiSource && oldValue[0] === INITIAL_WATCHER_VALUE ? [] : oldValue,
@@ -887,6 +922,7 @@ function watch$1(source, cb, options = EMPTY_OBJ) {
887
922
  call ? call(cb, 3, args) : cb(...args);
888
923
  } finally {
889
924
  activeWatcher = currentWatcher;
925
+ resetTracking();
890
926
  }
891
927
  }
892
928
  } else effect.run();
@@ -1588,10 +1624,9 @@ var init_reactivity_esm_bundler = __esmMin((() => {
1588
1624
  cleanupMap = /* @__PURE__ */ new WeakMap();
1589
1625
  activeWatcher = void 0;
1590
1626
  }));
1591
- //#endregion
1592
- //#region node_modules/.pnpm/@vue+runtime-core@3.5.42/node_modules/@vue/runtime-core/dist/runtime-core.esm-bundler.js
1627
+ // node_modules/.pnpm/@vue+runtime-core@3.5.44/node_modules/@vue/runtime-core/dist/runtime-core.esm-bundler.js
1593
1628
  /**
1594
- * @vue/runtime-core v3.5.42
1629
+ * @vue/runtime-core v3.5.44
1595
1630
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
1596
1631
  * @license MIT
1597
1632
  **/
@@ -1686,23 +1721,33 @@ function queuePostFlushCb(cb) {
1686
1721
  } else for (let i = 0; i < cb.length; i++) pendingPostFlushCbs.push(cb[i]);
1687
1722
  queueFlush();
1688
1723
  }
1689
- function flushPreFlushCbs(instance, seen, i = flushIndex + 1) {
1724
+ function flushPreFlushCbs(instance, minUid, seen, i = flushIndex + 1) {
1690
1725
  for (; i < queue.length; i++) {
1691
1726
  const cb = queue[i];
1692
1727
  if (cb && cb.flags & 2) {
1693
- if (instance && cb.id !== instance.uid) continue;
1728
+ if (instance && cb.id !== instance.uid || minUid !== void 0 && !(cb.id >= minUid)) continue;
1694
1729
  queue.splice(i, 1);
1695
- i--;
1730
+ i = instance ? i - 1 : flushIndex;
1696
1731
  if (cb.flags & 4) cb.flags &= -2;
1697
1732
  cb();
1698
1733
  if (!(cb.flags & 4)) cb.flags &= -2;
1699
1734
  }
1700
1735
  }
1701
1736
  }
1702
- function flushPostFlushCbs(seen) {
1737
+ function flushPostFlushCbs(seen, skip, minUid = 0) {
1703
1738
  if (pendingPostFlushCbs.length) {
1704
- const deduped = [...new Set(pendingPostFlushCbs)].sort((a, b) => getId(a) - getId(b));
1705
- pendingPostFlushCbs.length = 0;
1739
+ let cbs = pendingPostFlushCbs;
1740
+ let kept = 0;
1741
+ if (skip) {
1742
+ cbs = [];
1743
+ for (let i = 0; i < pendingPostFlushCbs.length; i++) {
1744
+ const cb = pendingPostFlushCbs[i];
1745
+ if (cb.i !== void 0 ? !cb.i || cb.i.uid < minUid : skip.has(cb)) pendingPostFlushCbs[kept++] = cb;
1746
+ else cbs.push(cb);
1747
+ }
1748
+ }
1749
+ const deduped = [...new Set(cbs)].sort((a, b) => getId(a) - getId(b));
1750
+ pendingPostFlushCbs.length = kept;
1706
1751
  if (activePostFlushCbs) {
1707
1752
  for (let i = 0; i < deduped.length; i++) activePostFlushCbs.push(deduped[i]);
1708
1753
  return;
@@ -1718,6 +1763,21 @@ function flushPostFlushCbs(seen) {
1718
1763
  postFlushIndex = 0;
1719
1764
  }
1720
1765
  }
1766
+ function flushOnAppMount(fn, minUid) {
1767
+ if (isFlushing) {
1768
+ fn();
1769
+ return;
1770
+ }
1771
+ const queued = minUid === void 0 ? void 0 : new Set(pendingPostFlushCbs);
1772
+ fn();
1773
+ isFlushing = true;
1774
+ try {
1775
+ flushPreFlushCbs(void 0, minUid);
1776
+ flushPostFlushCbs(void 0, queued, minUid);
1777
+ } finally {
1778
+ isFlushing = false;
1779
+ }
1780
+ }
1721
1781
  function flushJobs(seen) {
1722
1782
  try {
1723
1783
  for (flushIndex = 0; flushIndex < queue.length; flushIndex++) {
@@ -1854,6 +1914,7 @@ function doWatch(source, cb, options = EMPTY_OBJ) {
1854
1914
  baseWatchOptions.call = (fn, type, args) => callWithAsyncErrorHandling(fn, instance, type, args);
1855
1915
  let isPre = false;
1856
1916
  if (flush === "post") baseWatchOptions.scheduler = (job) => {
1917
+ job.i = instance;
1857
1918
  queuePostRenderEffect(job, instance && instance.suspense);
1858
1919
  };
1859
1920
  else if (flush !== "sync") {
@@ -1932,7 +1993,21 @@ function setTransitionHooks(vnode, hooks) {
1932
1993
  } else if (vnode.shapeFlag & 128) {
1933
1994
  vnode.ssContent.transition = hooks.clone(vnode.ssContent);
1934
1995
  vnode.ssFallback.transition = hooks.clone(vnode.ssFallback);
1935
- } else vnode.transition = hooks;
1996
+ } else {
1997
+ vnode.transition = hooks;
1998
+ if (vnode.type === Fragment && isArray$2(vnode.children)) {
1999
+ const child = filterSingleRoot(vnode.children, false);
2000
+ if (child) setTransitionHooks(child, hooks);
2001
+ }
2002
+ }
2003
+ }
2004
+ function getTransitionRoot(vnode) {
2005
+ if (vnode.component) return getTransitionRoot(vnode.component.subTree);
2006
+ if (vnode.type === Fragment) {
2007
+ const child = isArray$2(vnode.children) && filterSingleRoot(vnode.children, false);
2008
+ return child ? getTransitionRoot(child) : void 0;
2009
+ }
2010
+ if (vnode.type !== Comment) return vnode;
1936
2011
  }
1937
2012
  // @__NO_SIDE_EFFECTS__
1938
2013
  function defineComponent(options, extraOptions) {
@@ -2117,8 +2192,11 @@ function renderList(source, renderItem, cache, index) {
2117
2192
  ret = new Array(source.length);
2118
2193
  for (let i = 0, l = source.length; i < l; i++) ret[i] = renderItem(needsWrap ? isReadonlySource ? toReadonly(toReactive(source[i])) : toReactive(source[i]) : source[i], i, void 0, cached && cached[i]);
2119
2194
  } else if (typeof source === "number") {
2120
- ret = new Array(source);
2121
- for (let i = 0; i < source; i++) ret[i] = renderItem(i + 1, i, void 0, cached && cached[i]);
2195
+ if (!Number.isInteger(source) || source < 0) ret = [];
2196
+ else {
2197
+ ret = new Array(source);
2198
+ for (let i = 0; i < source; i++) ret[i] = renderItem(i + 1, i, void 0, cached && cached[i]);
2199
+ }
2122
2200
  } else if (isObject$1(source)) {
2123
2201
  if (source[Symbol.iterator]) ret = Array.from(source, (item, i) => renderItem(item, i, void 0, cached && cached[i]));
2124
2202
  else {
@@ -2550,6 +2628,19 @@ function renderComponentRoot(instance) {
2550
2628
  setCurrentRenderingInstance(prev);
2551
2629
  return result;
2552
2630
  }
2631
+ function filterSingleRoot(children, recurse = true) {
2632
+ let singleRoot;
2633
+ for (let i = 0; i < children.length; i++) {
2634
+ const child = children[i];
2635
+ if (isVNode$1(child)) {
2636
+ if (child.type !== Comment || child.children === "v-if") {
2637
+ if (singleRoot) return;
2638
+ else singleRoot = child;
2639
+ }
2640
+ } else return;
2641
+ }
2642
+ return singleRoot;
2643
+ }
2553
2644
  function shouldUpdateComponent(prevVNode, nextVNode, optimized) {
2554
2645
  const { props: prevProps, children: prevChildren, component } = prevVNode;
2555
2646
  const { props: nextProps, children: nextChildren, patchFlag } = nextVNode;
@@ -2583,7 +2674,7 @@ function hasPropsChanged(prevProps, nextProps, emitsOptions) {
2583
2674
  if (nextKeys.length !== Object.keys(prevProps).length) return true;
2584
2675
  for (let i = 0; i < nextKeys.length; i++) {
2585
2676
  const key = nextKeys[i];
2586
- if (hasPropValueChanged(nextProps, prevProps, key) && !isEmitListener(emitsOptions, key)) return true;
2677
+ if (!hasOwn$1(prevProps, key) || hasPropValueChanged(nextProps, prevProps, key) && !isEmitListener(emitsOptions, key)) return true;
2587
2678
  }
2588
2679
  return false;
2589
2680
  }
@@ -2790,6 +2881,10 @@ function baseCreateRenderer(options, createHydrationFns) {
2790
2881
  optimized = false;
2791
2882
  n2.dynamicChildren = null;
2792
2883
  }
2884
+ if (n2.dynamicChildren && n1 && n1.dynamicChildren && n1.dynamicChildren.hasOnce) {
2885
+ if (n2.dynamicChildren === EMPTY_ARR) n2.dynamicChildren = [];
2886
+ n2.dynamicChildren.hasOnce = true;
2887
+ }
2793
2888
  const { type, ref, shapeFlag } = n2;
2794
2889
  switch (type) {
2795
2890
  case Text:
@@ -2950,7 +3045,8 @@ function baseCreateRenderer(options, createHydrationFns) {
2950
3045
  for (let i = 0; i < newChildren.length; i++) {
2951
3046
  const oldVNode = oldChildren[i];
2952
3047
  const newVNode = newChildren[i];
2953
- const container = oldVNode.el && (oldVNode.type === Fragment || !isSameVNodeType(oldVNode, newVNode) || oldVNode.shapeFlag & 198) ? hostParentNode(oldVNode.el) : fallbackContainer;
3048
+ const oldEl = oldVNode.el || resolveAsyncComponentPlaceholder(oldVNode);
3049
+ const container = oldEl && (oldVNode.type === Fragment || !isSameVNodeType(oldVNode, newVNode) || oldVNode.shapeFlag & 198) ? hostParentNode(oldEl) : fallbackContainer;
2954
3050
  patch(oldVNode, newVNode, container, null, parentComponent, parentSuspense, namespace, slotScopeIds, true);
2955
3051
  }
2956
3052
  };
@@ -2994,7 +3090,7 @@ function baseCreateRenderer(options, createHydrationFns) {
2994
3090
  if (isKeepAlive(initialVNode)) instance.ctx.renderer = internals;
2995
3091
  setupComponent(instance, false, optimized);
2996
3092
  if (instance.asyncDep) {
2997
- parentSuspense && parentSuspense.registerDep(instance, setupRenderEffect, optimized);
3093
+ parentSuspense && parentSuspense.registerDep(instance, setupRenderEffect, optimized, namespace);
2998
3094
  if (!initialVNode.el) {
2999
3095
  const placeholder = instance.subTree = createVNode(Comment);
3000
3096
  processCommentNode(null, placeholder, container, anchor);
@@ -3006,6 +3102,8 @@ function baseCreateRenderer(options, createHydrationFns) {
3006
3102
  const instance = n2.component = n1.component;
3007
3103
  if (shouldUpdateComponent(n1, n2, optimized)) {
3008
3104
  if (instance.asyncDep && !instance.asyncResolved) {
3105
+ n2.el = n1.el;
3106
+ n2.placeholder = n1.placeholder;
3009
3107
  updateComponentPreRender(instance, n2, optimized);
3010
3108
  return;
3011
3109
  } else {
@@ -3014,6 +3112,7 @@ function baseCreateRenderer(options, createHydrationFns) {
3014
3112
  }
3015
3113
  } else {
3016
3114
  n2.el = n1.el;
3115
+ n2.placeholder = n1.placeholder;
3017
3116
  instance.vnode = n2;
3018
3117
  }
3019
3118
  };
@@ -3285,13 +3384,13 @@ function baseCreateRenderer(options, createHydrationFns) {
3285
3384
  };
3286
3385
  const unmount = (vnode, parentComponent, parentSuspense, doRemove = false, optimized = false) => {
3287
3386
  const { type, props, ref, children, dynamicChildren, shapeFlag, patchFlag, dirs, cacheIndex, memo } = vnode;
3288
- if (patchFlag === -2) optimized = false;
3387
+ if (patchFlag === -2 || dynamicChildren && dynamicChildren.hasOnce) optimized = false;
3289
3388
  if (ref != null) {
3290
3389
  pauseTracking();
3291
3390
  setRef(ref, null, parentSuspense, vnode, true);
3292
3391
  resetTracking();
3293
3392
  }
3294
- if (cacheIndex != null) parentComponent.renderCache[cacheIndex] = void 0;
3393
+ if (cacheIndex != null && (!vnode.ctx || vnode.ctx === parentComponent)) parentComponent.renderCache[cacheIndex] = void 0;
3295
3394
  if (shapeFlag & 256) {
3296
3395
  parentComponent.ctx.deactivate(vnode);
3297
3396
  return;
@@ -3321,22 +3420,28 @@ function baseCreateRenderer(options, createHydrationFns) {
3321
3420
  };
3322
3421
  const remove = (vnode) => {
3323
3422
  const { type, el, anchor, transition } = vnode;
3324
- if (type === Fragment) {
3423
+ const isFragment = type === Fragment;
3424
+ if (isFragment && !transition) {
3325
3425
  removeFragment(el, anchor);
3326
3426
  return;
3327
3427
  }
3328
3428
  if (type === Static) {
3329
3429
  removeStaticNode(vnode);
3430
+ if (transition && !transition.persisted && transition.afterLeave) transition.afterLeave();
3330
3431
  return;
3331
3432
  }
3433
+ const leavingNode = isFragment ? getTransitionRoot(vnode) : vnode;
3332
3434
  const performRemove = () => {
3333
- hostRemove(el);
3435
+ if (isFragment) {
3436
+ if (hostParentNode(el)) removeFragment(el, anchor);
3437
+ } else hostRemove(el);
3334
3438
  if (transition && !transition.persisted && transition.afterLeave) transition.afterLeave();
3335
3439
  };
3336
- if (vnode.shapeFlag & 1 && transition && !transition.persisted) {
3440
+ if (leavingNode && leavingNode.shapeFlag & 1 && transition && !transition.persisted) {
3337
3441
  const { leave, delayLeave } = transition;
3338
- const performLeave = () => leave(el, performRemove);
3339
- if (delayLeave) delayLeave(vnode.el, performRemove, performLeave);
3442
+ const leavingEl = leavingNode.el;
3443
+ const performLeave = () => leave(leavingEl, performRemove);
3444
+ if (delayLeave) delayLeave(leavingEl, performRemove, performLeave);
3340
3445
  else performLeave();
3341
3446
  } else performRemove();
3342
3447
  };
@@ -3358,6 +3463,9 @@ function baseCreateRenderer(options, createHydrationFns) {
3358
3463
  if (job) {
3359
3464
  job.flags |= 8;
3360
3465
  unmount(subTree, instance, parentSuspense, doRemove);
3466
+ } else if (instance.vnode.el && subTree) {
3467
+ subTree.transition = instance.vnode.transition;
3468
+ unmount(subTree, instance, parentSuspense, doRemove);
3361
3469
  }
3362
3470
  if (um) queuePostRenderEffect(um, parentSuspense);
3363
3471
  queuePostRenderEffect(() => {
@@ -3374,22 +3482,13 @@ function baseCreateRenderer(options, createHydrationFns) {
3374
3482
  const teleportEnd = el && el[TeleportEndKey];
3375
3483
  return teleportEnd ? hostNextSibling(teleportEnd) : el;
3376
3484
  };
3377
- let isFlushing = false;
3378
3485
  const render = (vnode, container, namespace) => {
3379
- let instance;
3380
- if (vnode == null) {
3381
- if (container._vnode) {
3382
- unmount(container._vnode, null, null, true);
3383
- instance = container._vnode.component;
3384
- }
3385
- } else patch(container._vnode || null, vnode, container, null, null, null, namespace);
3386
- container._vnode = vnode;
3387
- if (!isFlushing) {
3388
- isFlushing = true;
3389
- flushPreFlushCbs(instance);
3390
- flushPostFlushCbs();
3391
- isFlushing = false;
3392
- }
3486
+ flushOnAppMount(() => {
3487
+ if (vnode == null) {
3488
+ if (container._vnode) unmount(container._vnode, null, null, true);
3489
+ } else patch(container._vnode || null, vnode, container, null, null, null, namespace);
3490
+ container._vnode = vnode;
3491
+ }, vnode && container._vnode ? void 0 : vnode && vnode.component ? vnode.component.uid : getNextUid());
3393
3492
  };
3394
3493
  const internals = {
3395
3494
  p: patch,
@@ -3631,7 +3730,8 @@ function cloneVNode(vnode, extraProps, mergeRef = false, cloneTransition = false
3631
3730
  el: vnode.el,
3632
3731
  anchor: vnode.anchor,
3633
3732
  ctx: vnode.ctx,
3634
- ce: vnode.ce
3733
+ ce: vnode.ce,
3734
+ cacheIndex: vnode.cacheIndex
3635
3735
  };
3636
3736
  if (transition && cloneTransition) setTransitionHooks(cloned, transition.clone(cloned));
3637
3737
  return cloned;
@@ -3716,6 +3816,9 @@ function mergeProps(...args) {
3716
3816
  function invokeVNodeHook(hook, instance, vnode, prevVNode = null) {
3717
3817
  callWithAsyncErrorHandling(hook, instance, 7, [vnode, prevVNode]);
3718
3818
  }
3819
+ function getNextUid() {
3820
+ return uid;
3821
+ }
3719
3822
  function createComponentInstance(vnode, parent, suspense) {
3720
3823
  const type = vnode.type;
3721
3824
  const appContext = (parent ? parent.appContext : vnode.appContext) || emptyAppContext;
@@ -3914,7 +4017,7 @@ function h(type, propsOrChildren, children) {
3914
4017
  setBlockTracking(1);
3915
4018
  }
3916
4019
  }
3917
- 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;
4020
+ var queue, flushIndex, pendingPostFlushCbs, activePostFlushCbs, postFlushIndex, resolvedPromise, currentFlushPromise, isFlushing, 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;
3918
4021
  var init_runtime_core_esm_bundler = __esmMin((() => {
3919
4022
  init_reactivity_esm_bundler();
3920
4023
  init_shared_esm_bundler();
@@ -3925,6 +4028,7 @@ var init_runtime_core_esm_bundler = __esmMin((() => {
3925
4028
  postFlushIndex = 0;
3926
4029
  resolvedPromise = /* @__PURE__ */ Promise.resolve();
3927
4030
  currentFlushPromise = null;
4031
+ isFlushing = false;
3928
4032
  getId = (job) => job.id == null ? job.flags & 2 ? -1 : Infinity : job.id;
3929
4033
  currentRenderingInstance = null;
3930
4034
  currentScopeId = null;
@@ -4210,12 +4314,11 @@ var init_runtime_core_esm_bundler = __esmMin((() => {
4210
4314
  computed = (getterOrOptions, debugOptions) => {
4211
4315
  return /* @__PURE__ */ computed$1(getterOrOptions, debugOptions, isInSSRComponentSetup);
4212
4316
  };
4213
- version = "3.5.42";
4317
+ version = "3.5.44";
4214
4318
  }));
4215
- //#endregion
4216
- //#region node_modules/.pnpm/@vue+runtime-dom@3.5.42/node_modules/@vue/runtime-dom/dist/runtime-dom.esm-bundler.js
4319
+ // node_modules/.pnpm/@vue+runtime-dom@3.5.44/node_modules/@vue/runtime-dom/dist/runtime-dom.esm-bundler.js
4217
4320
  /**
4218
- * @vue/runtime-dom v3.5.42
4321
+ * @vue/runtime-dom v3.5.44
4219
4322
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
4220
4323
  * @license MIT
4221
4324
  **/
@@ -4259,7 +4362,7 @@ function patchStyle(el, prev, next) {
4259
4362
  }
4260
4363
  } else if (prev) el.removeAttribute("style");
4261
4364
  if (vShowOriginalDisplay in el) {
4262
- el[vShowOriginalDisplay] = hasControlledDisplay ? style.display : "";
4365
+ if (!isCssString || prev !== next) el[vShowOriginalDisplay] = hasControlledDisplay ? style.display : "";
4263
4366
  if (el[vShowHidden]) style.display = "none";
4264
4367
  }
4265
4368
  }
@@ -4827,26 +4930,44 @@ var init_runtime_dom_esm_bundler = __esmMin((() => {
4827
4930
  return app;
4828
4931
  });
4829
4932
  }));
4830
- //#endregion
4831
- //#region node_modules/.pnpm/vue@3.5.42_typescript@5.9.3/node_modules/vue/dist/vue.runtime.esm-bundler.js
4933
+ // node_modules/.pnpm/vue@3.5.44_typescript@5.9.3/node_modules/vue/dist/vue.runtime.esm-bundler.js
4832
4934
  var init_vue_runtime_esm_bundler = __esmMin((() => {
4833
4935
  init_runtime_dom_esm_bundler();
4834
4936
  }));
4835
4937
  /**
4836
- * vue v3.5.42
4938
+ * vue v3.5.44
4837
4939
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
4838
4940
  * @license MIT
4839
4941
  **/
4840
- //#endregion
4841
- //#region node_modules/.pnpm/@intlify+shared@11.4.10/node_modules/@intlify/shared/dist/shared.mjs
4942
+ // node_modules/.pnpm/@intlify+shared@11.4.16/node_modules/@intlify/shared/dist/shared.mjs
4842
4943
  /*!
4843
- * shared v11.4.10
4944
+ * shared v11.4.16
4844
4945
  * (c) 2026 kazuya kawaguchi
4845
4946
  * Released under the MIT License.
4846
4947
  */
4847
4948
  function hasOwn(obj, key) {
4848
4949
  return hasOwnProperty.call(obj, key);
4849
4950
  }
4951
+ /**
4952
+ * Get `obj[key]` only when `key` is an own property of `obj`, so that a key
4953
+ * such as `constructor` does not read a property inherited from
4954
+ * `Object.prototype`.
4955
+ * The property is read before the check, so that a reactive `obj` tracks
4956
+ * `key` even when it is missing.
4957
+ */
4958
+ function getOwn(obj, key) {
4959
+ const value = obj[key];
4960
+ return hasOwn(obj, key) ? value : void 0;
4961
+ }
4962
+ /**
4963
+ * Whether `key` is a property name of `Object.prototype`, such as `__proto__`,
4964
+ * `constructor` or `toString`.
4965
+ * On a plain object, such a key reads a built-in, and assigning to `__proto__`
4966
+ * replaces the prototype.
4967
+ */
4968
+ function isObjectPrototypeKey(key) {
4969
+ return hasOwn(Object.prototype, key);
4970
+ }
4850
4971
  function join(items, separator = "") {
4851
4972
  return items.reduce((str, item, index) => index === 0 ? str + item : str + separator + item, "");
4852
4973
  }
@@ -4914,11 +5035,12 @@ function sanitizeTranslatedHtml(html) {
4914
5035
  html = html.replace(/([\w:-]+)\s*=\s*"([^"]*)"/g, (_, attrName, attrValue) => `${attrName}="${sanitizeAttributeValue(attrName, attrValue)}"`);
4915
5036
  html = html.replace(/([\w:-]+)\s*=\s*'([^']*)'/g, (_, attrName, attrValue) => `${attrName}='${sanitizeAttributeValue(attrName, attrValue)}'`);
4916
5037
  if (eventHandlerPattern.test(html)) html = html.replace(eventHandlerAttributePattern, "$1&#111;n$2");
5038
+ if (srcdocPattern.test(html)) html = html.replace(srcdocAttributePattern, "$1&#115;$2");
4917
5039
  html = html.replace(unquotedUrlAttributePattern, (match, boundary, prefix, attrValue) => hasJavascriptScheme(attrValue) ? `${boundary}${prefix}about:blank` : match);
4918
5040
  return html;
4919
5041
  }
4920
5042
  function deepCopy(src, des) {
4921
- if (isNotObjectOrIsArray(src) || isNotObjectOrIsArray(des)) throw new Error("Invalid value");
5043
+ if (isNotObjectOrIsArray(src) || isNotObjectOrIsArray(des) || des === Object.prototype) throw new Error("Invalid value");
4922
5044
  const stack = [{
4923
5045
  src,
4924
5046
  des
@@ -4946,7 +5068,7 @@ function deepCopy(src, des) {
4946
5068
  });
4947
5069
  }
4948
5070
  }
4949
- 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;
5071
+ 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, srcdocPattern, srcdocAttributePattern, unquotedUrlAttributePattern, isNotObjectOrIsArray;
4950
5072
  var init_shared$1 = __esmMin((() => {
4951
5073
  inBrowser = typeof window !== "undefined";
4952
5074
  makeSymbol = (name, shareable = false) => !shareable ? Symbol(name) : Symbol.for(name);
@@ -4989,13 +5111,14 @@ var init_shared$1 = __esmMin((() => {
4989
5111
  controlOrWhitespacePattern = /[\u0000-\u0020\u007f-\u009f]/g;
4990
5112
  eventHandlerPattern = /(?:^|[\s"'<>/])on\w+\s*=\s*["']?[^"'>]+["']?/i;
4991
5113
  eventHandlerAttributePattern = /(^|[\s"'<>/])on(\w+\s*=)/gi;
5114
+ srcdocPattern = /(?:^|[\s"'<>/])srcdoc\s*=/i;
5115
+ srcdocAttributePattern = /(^|[\s"'<>/])s(rcdoc\s*=)/gi;
4992
5116
  unquotedUrlAttributePattern = /(^|[\s"'<>/])((?:href|src|action|formaction)\s*=\s*)([^\s"'=<>`]+)/gi;
4993
5117
  isNotObjectOrIsArray = (val) => !isObject(val) || isArray$1(val);
4994
5118
  }));
4995
- //#endregion
4996
- //#region node_modules/.pnpm/@intlify+message-compiler@11.4.10/node_modules/@intlify/message-compiler/dist/message-compiler.mjs
5119
+ // node_modules/.pnpm/@intlify+message-compiler@11.4.16/node_modules/@intlify/message-compiler/dist/message-compiler.mjs
4997
5120
  /*!
4998
- * message-compiler v11.4.10
5121
+ * message-compiler v11.4.16
4999
5122
  * (c) 2026 kazuya kawaguchi
5000
5123
  * Released under the MIT License.
5001
5124
  */
@@ -6166,10 +6289,9 @@ var init_message_compiler = __esmMin((() => {
6166
6289
  };
6167
6290
  };
6168
6291
  }));
6169
- //#endregion
6170
- //#region node_modules/.pnpm/@intlify+core-base@11.4.10/node_modules/@intlify/core-base/dist/core-base.mjs
6292
+ // node_modules/.pnpm/@intlify+core-base@11.4.16/node_modules/@intlify/core-base/dist/core-base.mjs
6171
6293
  /*!
6172
- * core-base v11.4.10
6294
+ * core-base v11.4.16
6173
6295
  * (c) 2026 kazuya kawaguchi
6174
6296
  * Released under the MIT License.
6175
6297
  */
@@ -6297,6 +6419,7 @@ function compile(message, context) {
6297
6419
  const msg = format(ast);
6298
6420
  return !detectError ? compileCache[cacheKey] = msg : msg;
6299
6421
  } else {
6422
+ if (!isMessageAST(message)) return (() => message);
6300
6423
  const cacheKey = message.cacheKey;
6301
6424
  if (cacheKey) {
6302
6425
  const cached = compileCache[cacheKey];
@@ -6363,6 +6486,9 @@ function fallbackWithSimple(ctx, fallback, start) {
6363
6486
  * @remarks
6364
6487
  * A fallback locale function implemented with a fallback chain algorithm. It's used in VueI18n as default.
6365
6488
  *
6489
+ * Chains are cached per fallback identity. If you mutate an object or array fallback in place,
6490
+ * pass a new object or array instead so that the chain is recomputed.
6491
+ *
6366
6492
  * @param ctx - A {@link CoreContext | context}
6367
6493
  * @param fallback - A {@link FallbackLocale | fallback locale}
6368
6494
  * @param start - A starting {@link Locale | locale}
@@ -6376,14 +6502,23 @@ function fallbackWithSimple(ctx, fallback, start) {
6376
6502
  function fallbackWithLocaleChain(ctx, fallback, start) {
6377
6503
  const startLocale = isString(start) ? start : DEFAULT_LOCALE;
6378
6504
  const context = ctx;
6379
- if (!context.__localeChainCache) context.__localeChainCache = /* @__PURE__ */ new Map();
6380
- const fallbackKey = friendlyJSONstringify(fallback);
6381
- let chains = context.__localeChainCache.get(startLocale);
6382
- if (!chains) {
6383
- chains = /* @__PURE__ */ new Map();
6384
- context.__localeChainCache.set(startLocale, chains);
6385
- }
6386
- const cached = chains.get(fallbackKey);
6505
+ let chains;
6506
+ if (isObject(fallback)) {
6507
+ if (!context.__localeChainObjectCache) context.__localeChainObjectCache = /* @__PURE__ */ new WeakMap();
6508
+ chains = context.__localeChainObjectCache.get(fallback);
6509
+ if (!chains) {
6510
+ chains = /* @__PURE__ */ new Map();
6511
+ context.__localeChainObjectCache.set(fallback, chains);
6512
+ }
6513
+ } else {
6514
+ if (!context.__localeChainCache) context.__localeChainCache = /* @__PURE__ */ new Map();
6515
+ chains = context.__localeChainCache.get(fallback);
6516
+ if (!chains) {
6517
+ chains = /* @__PURE__ */ new Map();
6518
+ context.__localeChainCache.set(fallback, chains);
6519
+ }
6520
+ }
6521
+ const cached = chains.get(startLocale);
6387
6522
  if (cached) return cached;
6388
6523
  const chain = [];
6389
6524
  let block = [start];
@@ -6391,7 +6526,7 @@ function fallbackWithLocaleChain(ctx, fallback, start) {
6391
6526
  const defaults = isArray$1(fallback) || !isPlainObject(fallback) ? fallback : fallback["default"] ? fallback["default"] : null;
6392
6527
  block = isString(defaults) ? [defaults] : defaults;
6393
6528
  if (isArray$1(block)) appendBlockToChain(chain, block, false);
6394
- chains.set(fallbackKey, chain);
6529
+ chains.set(startLocale, chain);
6395
6530
  return chain;
6396
6531
  }
6397
6532
  function appendBlockToChain(chain, block, blocks) {
@@ -6553,7 +6688,7 @@ function parse(path) {
6553
6688
  * @VueI18nGeneral
6554
6689
  */
6555
6690
  function resolveWithKeyValue(obj, path) {
6556
- return isObject(obj) ? obj[path] : null;
6691
+ return isObject(obj) ? getOwn(obj, path) : null;
6557
6692
  }
6558
6693
  /**
6559
6694
  * message resolver
@@ -6701,10 +6836,15 @@ function handleMissing(context, key, locale, missingWarn, type) {
6701
6836
  return isString(ret) ? ret : key;
6702
6837
  } else return key;
6703
6838
  }
6839
+ function invalidateLocaleChainCache(ctx, fallback) {
6840
+ const context = ctx;
6841
+ if (isObject(fallback)) context.__localeChainObjectCache?.delete(fallback);
6842
+ else context.__localeChainCache?.delete(fallback);
6843
+ }
6704
6844
  /** @internal */
6705
6845
  function updateFallbackLocale(ctx, locale, fallback) {
6706
- const context = ctx;
6707
- context.__localeChainCache = /* @__PURE__ */ new Map();
6846
+ invalidateLocaleChainCache(ctx, fallback);
6847
+ if (ctx.fallbackContext) invalidateLocaleChainCache(ctx.fallbackContext, fallback);
6708
6848
  ctx.localeFallbacker(ctx, fallback, locale);
6709
6849
  }
6710
6850
  /** @internal */
@@ -6724,7 +6864,7 @@ function resolveFormatLocale(context, key, locale, formats, missingWarn, fallbac
6724
6864
  const locales = localeFallbacker(context, fallbackLocale, locale);
6725
6865
  for (let i = 0; i < locales.length; i++) {
6726
6866
  const targetLocale = locales[i];
6727
- const format = (formats[targetLocale] || {})[key];
6867
+ const format = getOwn(getOwn(formats, targetLocale) || {}, key);
6728
6868
  if (isPlainObject(format) && isString(targetLocale)) return targetLocale;
6729
6869
  handleMissing(context, key, targetLocale, missingWarn, type);
6730
6870
  }
@@ -6866,22 +7006,22 @@ function getPluralIndex(options) {
6866
7006
  function createMessageContext(options = {}) {
6867
7007
  const locale = options.locale;
6868
7008
  const pluralIndex = getPluralIndex(options);
6869
- const pluralRule = isString(locale) && isFunction(options.pluralRules?.[locale]) ? options.pluralRules[locale] : pluralDefault;
7009
+ const pluralRule = isString(locale) && options.pluralRules && isFunction(getOwn(options.pluralRules, locale)) ? options.pluralRules[locale] : pluralDefault;
6870
7010
  const orgPluralRule = pluralRule === pluralDefault ? void 0 : pluralDefault;
6871
7011
  const plural = (messages) => messages[pluralRule(pluralIndex, messages.length, orgPluralRule)];
6872
7012
  const _list = options.list || [];
6873
7013
  const list = (index) => _list[index];
6874
7014
  const _named = options.named || create();
6875
- if (isNumber(options.pluralIndex)) {
6876
- _named.count ||= options.pluralIndex;
6877
- _named.n ||= options.pluralIndex;
6878
- }
6879
- const named = (key) => _named[key];
7015
+ const hasPluralIndex = isNumber(options.pluralIndex);
7016
+ const named = (key) => {
7017
+ const value = isObjectPrototypeKey(key) ? getOwn(_named, key) : _named[key];
7018
+ return hasPluralIndex && !value && (key === "count" || key === "n") ? options.pluralIndex : value;
7019
+ };
6880
7020
  function message(key, useLinked) {
6881
7021
  const msg = isFunction(options.messages) ? options.messages(key, !!useLinked) : isObject(options.messages) ? options.messages[key] : false;
6882
7022
  return !msg ? options.parent ? options.parent.message(key) : DEFAULT_MESSAGE : msg;
6883
7023
  }
6884
- const _modifier = (name) => options.modifiers ? options.modifiers[name] : DEFAULT_MODIFIER;
7024
+ const _modifier = (name) => options.modifiers ? getOwn(options.modifiers, name) : DEFAULT_MODIFIER;
6885
7025
  const normalize = isFunction(options.processor?.normalize) ? options.processor.normalize : DEFAULT_NORMALIZE;
6886
7026
  const interpolate = isFunction(options.processor?.interpolate) ? options.processor.interpolate : DEFAULT_INTERPOLATE;
6887
7027
  const type = isString(options.processor?.type) ? options.processor.type : DEFAULT_MESSAGE_DATA_TYPE;
@@ -6901,7 +7041,10 @@ function createMessageContext(options = {}) {
6901
7041
  const ret = message(key, true)(ctx);
6902
7042
  const resolved = ret === "" || ret === void 0 ? key : ret;
6903
7043
  const msg = type === "vnode" && isArray$1(resolved) && modifier ? resolved[0] : resolved;
6904
- return modifier ? _modifier(modifier)(msg, type) : msg;
7044
+ if (!modifier) return msg;
7045
+ const modify = _modifier(modifier);
7046
+ if (isFunction(modify)) return modify(msg, type);
7047
+ return msg;
6905
7048
  };
6906
7049
  const ctx = {
6907
7050
  ["list"]: list,
@@ -6912,7 +7055,10 @@ function createMessageContext(options = {}) {
6912
7055
  ["type"]: type,
6913
7056
  ["interpolate"]: interpolate,
6914
7057
  ["normalize"]: normalize,
6915
- ["values"]: assign$1(create(), _list, _named)
7058
+ ["values"]: assign$1(create(), _list, _named, hasPluralIndex ? {
7059
+ count: named("count"),
7060
+ n: named("n")
7061
+ } : {})
6916
7062
  };
6917
7063
  return ctx;
6918
7064
  }
@@ -6930,17 +7076,17 @@ function translate(context, ...args) {
6930
7076
  let [formatScope, targetLocale, message] = !resolvedMessage ? resolveMessageFormat(context, key, locale, fallbackLocale, fallbackWarn, missingWarn) : [
6931
7077
  key,
6932
7078
  locale,
6933
- messages[locale] || create()
7079
+ getOwn(messages, locale) || create()
6934
7080
  ];
6935
7081
  let format = formatScope;
6936
7082
  let cacheBaseKey = key;
6937
- if (!resolvedMessage && !(isString(format) || isMessageAST(format) || isMessageFunction(format))) {
7083
+ if (!resolvedMessage && !isMessageFormat(format)) {
6938
7084
  if (enableDefaultMsg) {
6939
7085
  format = defaultMsgOrKey;
6940
7086
  cacheBaseKey = format;
6941
7087
  }
6942
7088
  }
6943
- if (!resolvedMessage && (!(isString(format) || isMessageAST(format) || isMessageFunction(format)) || !isString(targetLocale))) return unresolving ? -1 : key;
7089
+ if (!resolvedMessage && (!isMessageFormat(format) || !isString(targetLocale))) return unresolving ? -1 : key;
6944
7090
  let occurred = false;
6945
7091
  const onError = () => {
6946
7092
  occurred = true;
@@ -6965,9 +7111,15 @@ function translate(context, ...args) {
6965
7111
  }
6966
7112
  function escapeParams(options) {
6967
7113
  if (isArray$1(options.list)) options.list = options.list.map((item) => isString(item) ? escapeHtml(item) : item);
6968
- else if (isObject(options.named)) Object.keys(options.named).forEach((key) => {
6969
- if (isString(options.named[key])) options.named[key] = escapeHtml(options.named[key]);
6970
- });
7114
+ if (isObject(options.named)) {
7115
+ const source = options.named;
7116
+ const named = create();
7117
+ for (const key of Object.keys(source)) {
7118
+ const value = source[key];
7119
+ named[key] = isString(value) ? escapeHtml(value) : value;
7120
+ }
7121
+ options.named = named;
7122
+ }
6971
7123
  }
6972
7124
  function resolveMessageFormat(context, key, locale, fallbackLocale, fallbackWarn, missingWarn) {
6973
7125
  const { messages, onWarn, messageResolver: resolveValue, localeFallbacker } = context;
@@ -6978,9 +7130,9 @@ function resolveMessageFormat(context, key, locale, fallbackLocale, fallbackWarn
6978
7130
  const type = "translate";
6979
7131
  for (let i = 0; i < locales.length; i++) {
6980
7132
  targetLocale = locales[i];
6981
- message = messages[targetLocale] || create();
6982
- if ((format = resolveValue(message, key)) === null) format = message[key];
6983
- if (isString(format) || isMessageAST(format) || isMessageFunction(format)) break;
7133
+ message = getOwn(messages, targetLocale) || create();
7134
+ if ((format = resolveValue(message, key)) === null) format = getOwn(message, key);
7135
+ if (isMessageFormat(format)) break;
6984
7136
  if (!isImplicitFallback(targetLocale, locales)) {
6985
7137
  const missingRet = handleMissing(context, key, targetLocale, missingWarn, type);
6986
7138
  if (missingRet !== key) format = missingRet;
@@ -7072,7 +7224,7 @@ function getMessageContextOptions(context, locale, message, options) {
7072
7224
  if (isNumber(options.plural)) ctxOptions.pluralIndex = options.plural;
7073
7225
  return ctxOptions;
7074
7226
  }
7075
- var PROPS_BODY, PROPS_CASES, PROPS_STATIC, PROPS_ITEMS, PROPS_TYPE, PROPS_VALUE, PROPS_MODIFIER, PROPS_KEY, AST_NODE_PROPS_KEYS, defaultOnCacheKey, compileCache, devtools, translateDevTools, CoreErrorCodes, _resolveLocale, pathStateMachine, literalValueRE, cache, CoreWarnCodes, VERSION$1, DEFAULT_LOCALE, capitalize, _compiler, _resolver, _fallbacker, _additionalMeta, setAdditionalMeta, getAdditionalMeta, _fallbackContext, setFallbackContext, getFallbackContext, _cid, createResources, intlDefined, DATETIME_FORMAT_OPTIONS_KEYS, NUMBER_FORMAT_OPTIONS_KEYS, DEFAULT_MODIFIER, DEFAULT_MESSAGE, DEFAULT_MESSAGE_DATA_TYPE, DEFAULT_NORMALIZE, DEFAULT_INTERPOLATE, NOOP_MESSAGE_FUNCTION, isMessageFunction;
7227
+ var PROPS_BODY, PROPS_CASES, PROPS_STATIC, PROPS_ITEMS, PROPS_TYPE, PROPS_VALUE, PROPS_MODIFIER, PROPS_KEY, AST_NODE_PROPS_KEYS, defaultOnCacheKey, compileCache, devtools, translateDevTools, CoreErrorCodes, _resolveLocale, pathStateMachine, literalValueRE, cache, CoreWarnCodes, VERSION$1, DEFAULT_LOCALE, capitalize, _compiler, _resolver, _fallbacker, _additionalMeta, setAdditionalMeta, getAdditionalMeta, _fallbackContext, setFallbackContext, getFallbackContext, _cid, createResources, intlDefined, DATETIME_FORMAT_OPTIONS_KEYS, NUMBER_FORMAT_OPTIONS_KEYS, DEFAULT_MODIFIER, DEFAULT_MESSAGE, DEFAULT_MESSAGE_DATA_TYPE, DEFAULT_NORMALIZE, DEFAULT_INTERPOLATE, NOOP_MESSAGE_FUNCTION, isMessageFunction, isMessageFormat;
7076
7228
  var init_core_base = __esmMin((() => {
7077
7229
  init_shared$1();
7078
7230
  init_message_compiler();
@@ -7166,7 +7318,7 @@ var init_core_base = __esmMin((() => {
7166
7318
  INVALID_DATE_ARGUMENT: 9
7167
7319
  };
7168
7320
  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;
7169
- VERSION$1 = "11.4.10";
7321
+ VERSION$1 = "11.4.16";
7170
7322
  DEFAULT_LOCALE = "en-US";
7171
7323
  capitalize = (str) => `${str.charAt(0).toLocaleUpperCase()}${str.substr(1)}`;
7172
7324
  _additionalMeta = null;
@@ -7234,12 +7386,12 @@ var init_core_base = __esmMin((() => {
7234
7386
  DEFAULT_INTERPOLATE = toDisplayString;
7235
7387
  NOOP_MESSAGE_FUNCTION = () => "";
7236
7388
  isMessageFunction = (val) => isFunction(val);
7389
+ isMessageFormat = (val) => isString(val) || isMessageAST(val) || isMessageFunction(val);
7237
7390
  initFeatureFlags$1();
7238
7391
  }));
7239
- //#endregion
7240
- //#region node_modules/.pnpm/vue-i18n@11.4.10_vue@3.5.42_typescript@5.9.3_/node_modules/vue-i18n/dist/vue-i18n.mjs
7392
+ // node_modules/.pnpm/vue-i18n@11.4.16_vue@3.5.44_typescript@5.9.3_/node_modules/vue-i18n/dist/vue-i18n.mjs
7241
7393
  /*!
7242
- * vue-i18n v11.4.10
7394
+ * vue-i18n v11.4.16
7243
7395
  * (c) 2026 kazuya kawaguchi
7244
7396
  * Released under the MIT License.
7245
7397
  */
@@ -7257,6 +7409,15 @@ function createI18nError(code, ...args) {
7257
7409
  return createCompileError(code, null, void 0);
7258
7410
  }
7259
7411
  /**
7412
+ * Whether `locale` can't be a key of the locale messages and formats.
7413
+ * A property name of `Object.prototype`, such as `__proto__` or `constructor`,
7414
+ * would read or replace a built-in object, so it is ignored with a warning.
7415
+ */
7416
+ function isUnsafeLocale(locale) {
7417
+ if (isObjectPrototypeKey(locale)) return true;
7418
+ return false;
7419
+ }
7420
+ /**
7260
7421
  * Transform flat json in obj to normal json in obj
7261
7422
  */
7262
7423
  function handleFlatJson(obj) {
@@ -7278,18 +7439,18 @@ function handleFlatJson(obj) {
7278
7439
  hasStringValue = true;
7279
7440
  break;
7280
7441
  }
7442
+ if (isMessageAST(currentObj[subKeys[i]]) && (AST_NODE_PROPS_KEYS.includes(subKeys[i + 1]) || subKeys[i + 1] === "cacheKey")) {
7443
+ hasStringValue = true;
7444
+ break;
7445
+ }
7281
7446
  currentObj = currentObj[subKeys[i]];
7282
7447
  }
7283
7448
  if (!hasStringValue) {
7284
- if (!isMessageAST(currentObj)) {
7285
- currentObj[subKeys[lastIndex]] = obj[key];
7286
- delete obj[key];
7287
- } else if (!AST_NODE_PROPS_KEYS.includes(subKeys[lastIndex])) delete obj[key];
7288
- }
7289
- if (!isMessageAST(currentObj)) {
7290
- const target = currentObj[subKeys[lastIndex]];
7291
- if (isObject(target)) handleFlatJson(target);
7449
+ currentObj[subKeys[lastIndex]] = obj[key];
7450
+ delete obj[key];
7292
7451
  }
7452
+ const target = currentObj[subKeys[lastIndex]];
7453
+ if (isObject(target)) handleFlatJson(target);
7293
7454
  }
7294
7455
  }
7295
7456
  return obj;
@@ -7301,7 +7462,8 @@ function getLocaleMessages(locale, options) {
7301
7462
  if ("locale" in custom && "resource" in custom) {
7302
7463
  const { locale, resource } = custom;
7303
7464
  if (locale) {
7304
- ret[locale] = ret[locale] || create();
7465
+ if (isUnsafeLocale(locale)) return;
7466
+ ret[locale] = getOwn(ret, locale) || create();
7305
7467
  deepCopy(resource, ret[locale]);
7306
7468
  } else deepCopy(resource, ret);
7307
7469
  } else isString(custom) && deepCopy(JSON.parse(custom), ret);
@@ -7399,8 +7561,6 @@ function createComposer(options = {}) {
7399
7561
  };
7400
7562
  ctxOptions.datetimeFormats = _datetimeFormats.value;
7401
7563
  ctxOptions.numberFormats = _numberFormats.value;
7402
- ctxOptions.__datetimeFormatters = isPlainObject(_context) ? _context.__datetimeFormatters : void 0;
7403
- ctxOptions.__numberFormatters = isPlainObject(_context) ? _context.__numberFormatters : void 0;
7404
7564
  const ctx = createCoreContext(ctxOptions);
7405
7565
  _isGlobal && setFallbackContext(ctx);
7406
7566
  return ctx;
@@ -7423,12 +7583,23 @@ function createComposer(options = {}) {
7423
7583
  _locale.value = val;
7424
7584
  }
7425
7585
  });
7586
+ function withRootFallbackContext(fn) {
7587
+ if (!_isGlobal) _context.fallbackContext = getFallbackContext();
7588
+ try {
7589
+ return fn();
7590
+ } finally {
7591
+ if (!_isGlobal) _context.fallbackContext = void 0;
7592
+ }
7593
+ }
7594
+ function updateFallbackLocaleWithRoot(fallback) {
7595
+ withRootFallbackContext(() => updateFallbackLocale(_context, _locale.value, fallback));
7596
+ }
7426
7597
  const fallbackLocale = computed({
7427
7598
  get: () => _fallbackLocale.value,
7428
7599
  set: (val) => {
7429
- _context.fallbackLocale = val;
7430
7600
  _fallbackLocale.value = val;
7431
- updateFallbackLocale(_context, _locale.value, val);
7601
+ _context.fallbackLocale = _fallbackLocale.value;
7602
+ updateFallbackLocaleWithRoot(_fallbackLocale.value);
7432
7603
  }
7433
7604
  });
7434
7605
  const messages = computed(() => _messages.value);
@@ -7454,11 +7625,9 @@ function createComposer(options = {}) {
7454
7625
  let ret;
7455
7626
  try {
7456
7627
  if (__INTLIFY_PROD_DEVTOOLS__) setAdditionalMeta(/* @__PURE__ */ getMetaInfo());
7457
- if (!_isGlobal) _context.fallbackContext = __root ? getFallbackContext() : void 0;
7458
- ret = fn(_context);
7628
+ ret = withRootFallbackContext(() => fn(_context));
7459
7629
  } finally {
7460
7630
  if (__INTLIFY_PROD_DEVTOOLS__) setAdditionalMeta(null);
7461
- if (!_isGlobal) _context.fallbackContext = void 0;
7462
7631
  }
7463
7632
  if (warnType !== "translate exists" && isNumber(ret) && ret === -1 || warnType === "translate exists" && !ret) {
7464
7633
  const [key, arg2] = argumentParser();
@@ -7518,17 +7687,17 @@ function createComposer(options = {}) {
7518
7687
  _pluralRules = rules;
7519
7688
  _context.pluralRules = _pluralRules;
7520
7689
  }
7690
+ function resolveLocaleMessageValue(locale, key) {
7691
+ const message = getLocaleMessage(locale);
7692
+ const value = _context.messageResolver(message, key);
7693
+ return value === null ? getOwn(message, key) : value;
7694
+ }
7521
7695
  function te(key, locale) {
7522
7696
  return wrapWithDeps(() => {
7523
7697
  if (!key) return false;
7524
7698
  const targetLocale = isString(locale) ? locale : _locale.value;
7525
- const locales = isString(locale) ? [targetLocale] : fallbackWithLocaleChain(_context, _fallbackLocale.value, targetLocale);
7526
- for (let i = 0; i < locales.length; i++) {
7527
- const message = getLocaleMessage(locales[i]);
7528
- let resolved = _context.messageResolver(message, key);
7529
- if (resolved === null) resolved = message[key];
7530
- if (isMessageAST(resolved) || isMessageFunction(resolved) || isString(resolved)) return true;
7531
- }
7699
+ const locales = isString(locale) ? [targetLocale] : _context.localeFallbacker(_context, _fallbackLocale.value, targetLocale);
7700
+ for (let i = 0; i < locales.length; i++) if (isMessageFormat(resolveLocaleMessageValue(locales[i], key))) return true;
7532
7701
  return false;
7533
7702
  }, () => [key], "translate exists", (root) => {
7534
7703
  return Reflect.apply(root.te, root, [key, locale]);
@@ -7536,10 +7705,9 @@ function createComposer(options = {}) {
7536
7705
  }
7537
7706
  function resolveMessages(key) {
7538
7707
  let messages = null;
7539
- const locales = fallbackWithLocaleChain(_context, _fallbackLocale.value, _locale.value);
7708
+ const locales = _context.localeFallbacker(_context, _fallbackLocale.value, _locale.value);
7540
7709
  for (let i = 0; i < locales.length; i++) {
7541
- const targetLocaleMessages = _messages.value[locales[i]] || {};
7542
- const messageValue = _context.messageResolver(targetLocaleMessages, key);
7710
+ const messageValue = resolveLocaleMessageValue(locales[i], key);
7543
7711
  if (messageValue != null) {
7544
7712
  messages = messageValue;
7545
7713
  break;
@@ -7552,54 +7720,56 @@ function createComposer(options = {}) {
7552
7720
  return messages != null ? messages : __root ? __root.tm(key) || {} : {};
7553
7721
  }
7554
7722
  function getLocaleMessage(locale) {
7555
- return _messages.value[locale] || {};
7723
+ return getOwn(_messages.value, locale) || {};
7556
7724
  }
7557
7725
  function setLocaleMessage(locale, message) {
7558
- if (flatJson) {
7559
- const _message = { [locale]: message };
7560
- for (const key in _message) if (hasOwn(_message, key)) handleFlatJson(_message[key]);
7561
- message = _message[locale];
7562
- }
7726
+ if (isUnsafeLocale(locale)) return;
7727
+ if (flatJson) handleFlatJson(message);
7563
7728
  _messages.value[locale] = message;
7564
7729
  _context.messages = _messages.value;
7565
7730
  }
7566
7731
  function mergeLocaleMessage(locale, message) {
7567
- _messages.value[locale] = _messages.value[locale] || {};
7568
- const _message = { [locale]: message };
7569
- if (flatJson) {
7570
- for (const key in _message) if (hasOwn(_message, key)) handleFlatJson(_message[key]);
7571
- }
7572
- message = _message[locale];
7732
+ if (isUnsafeLocale(locale)) return;
7733
+ _messages.value[locale] = getOwn(_messages.value, locale) || {};
7734
+ if (flatJson) handleFlatJson(message);
7573
7735
  deepCopy(message, _messages.value[locale]);
7574
7736
  _context.messages = _messages.value;
7575
7737
  }
7576
7738
  function getDateTimeFormat(locale) {
7577
- return _datetimeFormats.value[locale] || {};
7739
+ return getOwn(_datetimeFormats.value, locale) || {};
7578
7740
  }
7579
7741
  function setDateTimeFormat(locale, format) {
7742
+ if (isUnsafeLocale(locale)) return;
7580
7743
  _datetimeFormats.value[locale] = format;
7581
7744
  _context.datetimeFormats = _datetimeFormats.value;
7582
7745
  clearDateTimeFormat(_context, locale, format);
7583
7746
  }
7584
7747
  function mergeDateTimeFormat(locale, format) {
7585
- _datetimeFormats.value[locale] = assign$1(_datetimeFormats.value[locale] || {}, format);
7748
+ if (isUnsafeLocale(locale)) return;
7749
+ _datetimeFormats.value[locale] = assign$1(getOwn(_datetimeFormats.value, locale) || {}, format);
7586
7750
  _context.datetimeFormats = _datetimeFormats.value;
7587
7751
  clearDateTimeFormat(_context, locale, format);
7588
7752
  }
7589
7753
  function getNumberFormat(locale) {
7590
- return _numberFormats.value[locale] || {};
7754
+ return getOwn(_numberFormats.value, locale) || {};
7591
7755
  }
7592
7756
  function setNumberFormat(locale, format) {
7757
+ if (isUnsafeLocale(locale)) return;
7593
7758
  _numberFormats.value[locale] = format;
7594
7759
  _context.numberFormats = _numberFormats.value;
7595
7760
  clearNumberFormat(_context, locale, format);
7596
7761
  }
7597
7762
  function mergeNumberFormat(locale, format) {
7598
- _numberFormats.value[locale] = assign$1(_numberFormats.value[locale] || {}, format);
7763
+ if (isUnsafeLocale(locale)) return;
7764
+ _numberFormats.value[locale] = assign$1(getOwn(_numberFormats.value, locale) || {}, format);
7599
7765
  _context.numberFormats = _numberFormats.value;
7600
7766
  clearNumberFormat(_context, locale, format);
7601
7767
  }
7602
7768
  composerID++;
7769
+ watch(_fallbackLocale, () => updateFallbackLocaleWithRoot(_fallbackLocale.value), {
7770
+ deep: true,
7771
+ flush: "sync"
7772
+ });
7603
7773
  if (__root && inBrowser) {
7604
7774
  watch(__root.locale, (val) => {
7605
7775
  if (_inheritLocale) {
@@ -7611,7 +7781,7 @@ function createComposer(options = {}) {
7611
7781
  watch(__root.fallbackLocale, (val) => {
7612
7782
  if (_inheritLocale) {
7613
7783
  _fallbackLocale.value = val;
7614
- _context.fallbackLocale = val;
7784
+ _context.fallbackLocale = _fallbackLocale.value;
7615
7785
  updateFallbackLocale(_context, _locale.value, _fallbackLocale.value);
7616
7786
  }
7617
7787
  });
@@ -7626,9 +7796,8 @@ function createComposer(options = {}) {
7626
7796
  set inheritLocale(val) {
7627
7797
  _inheritLocale = val;
7628
7798
  if (val && __root) {
7629
- _locale.value = __root.locale.value;
7630
- _fallbackLocale.value = __root.fallbackLocale.value;
7631
- updateFallbackLocale(_context, _locale.value, _fallbackLocale.value);
7799
+ locale.value = __root.locale.value;
7800
+ fallbackLocale.value = __root.fallbackLocale.value;
7632
7801
  }
7633
7802
  },
7634
7803
  get availableLocales() {
@@ -7737,7 +7906,8 @@ function convertComposerOptions(options) {
7737
7906
  if (isPlainObject(options.sharedMessages)) {
7738
7907
  const sharedMessages = options.sharedMessages;
7739
7908
  messages = Object.keys(sharedMessages).reduce((messages, locale) => {
7740
- const message = messages[locale] || (messages[locale] = {});
7909
+ if (isUnsafeLocale(locale)) return messages;
7910
+ const message = getOwn(messages, locale) || (messages[locale] = {});
7741
7911
  assign$1(message, sharedMessages[locale]);
7742
7912
  return messages;
7743
7913
  }, messages || {});
@@ -7922,7 +8092,7 @@ function defineMixin(vuei18n, composer, i18n) {
7922
8092
  if (!instance) throw createI18nError(I18nErrorCodes.UNEXPECTED_ERROR);
7923
8093
  const options = this.$options;
7924
8094
  if (options.i18n) {
7925
- const optionsI18n = options.i18n;
8095
+ const optionsI18n = assign$1({}, options.i18n);
7926
8096
  if (options.__i18n) optionsI18n.__i18n = options.__i18n;
7927
8097
  optionsI18n.__root = composer;
7928
8098
  if (this === this.$root) this.$i18n = mergeToGlobal(vuei18n, optionsI18n);
@@ -8326,7 +8496,7 @@ var init_vue_i18n = __esmMin((() => {
8326
8496
  init_core_base();
8327
8497
  init_shared$1();
8328
8498
  init_vue_runtime_esm_bundler();
8329
- VERSION = "11.4.10";
8499
+ VERSION = "11.4.16";
8330
8500
  I18nErrorCodes = {
8331
8501
  UNEXPECTED_RETURN_TYPE: 24,
8332
8502
  INVALID_ARGUMENT: 25,
@@ -8360,9 +8530,10 @@ var init_vue_i18n = __esmMin((() => {
8360
8530
  * @deprecated will be removed at vue-i18n v12
8361
8531
  */
8362
8532
  DEPRECATE_TRANSLATE_CUSTOME_DIRECTIVE: 14,
8363
- DUPLICATE_USE_I18N_CALLING: 15
8533
+ DUPLICATE_USE_I18N_CALLING: 15,
8534
+ IGNORE_UNSAFE_LOCALE: 16
8364
8535
  };
8365
- 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;
8536
+ 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, I18nWarnCodes.IGNORE_UNSAFE_LOCALE;
8366
8537
  mirroredCurrentInstance = null;
8367
8538
  {
8368
8539
  const setters = getGlobalThis().__VUE_INSTANCE_SETTERS__;
@@ -8480,8 +8651,7 @@ var init_vue_i18n = __esmMin((() => {
8480
8651
  setDevToolsHook(target.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__);
8481
8652
  }
8482
8653
  }));
8483
- //#endregion
8484
- //#region node_modules/.pnpm/vue-router@4.6.4_vue@3.5.42_typescript@5.9.3_/node_modules/vue-router/dist/devtools-EWN81iOl.mjs
8654
+ // node_modules/.pnpm/vue-router@4.6.4_vue@3.5.44_typescript@5.9.3_/node_modules/vue-router/dist/devtools-EWN81iOl.mjs
8485
8655
  /*!
8486
8656
  * vue-router v4.6.4
8487
8657
  * (c) 2025 Eduardo San Martin Morote
@@ -9001,8 +9171,7 @@ var init_devtools_EWN81iOl = __esmMin((() => {
9001
9171
  routeLocationKey = Symbol("");
9002
9172
  routerViewLocationKey = Symbol("");
9003
9173
  }));
9004
- //#endregion
9005
- //#region node_modules/.pnpm/vue-router@4.6.4_vue@3.5.42_typescript@5.9.3_/node_modules/vue-router/dist/vue-router.mjs
9174
+ // node_modules/.pnpm/vue-router@4.6.4_vue@3.5.44_typescript@5.9.3_/node_modules/vue-router/dist/vue-router.mjs
9006
9175
  /*!
9007
9176
  * vue-router v4.6.4
9008
9177
  * (c) 2025 Eduardo San Martin Morote
@@ -10261,8 +10430,7 @@ var init_vue_router = __esmMin((() => {
10261
10430
  });
10262
10431
  RouterView = RouterViewImpl;
10263
10432
  }));
10264
- //#endregion
10265
- //#region node_modules/.pnpm/@vueuse+shared@13.9.0_vue@3.5.42_typescript@5.9.3_/node_modules/@vueuse/shared/index.mjs
10433
+ // node_modules/.pnpm/@vueuse+shared@13.9.0_vue@3.5.44_typescript@5.9.3_/node_modules/@vueuse/shared/index.mjs
10266
10434
  function tryOnScopeDispose(fn) {
10267
10435
  if (getCurrentScope()) {
10268
10436
  onScopeDispose(fn);
@@ -10289,8 +10457,7 @@ var init_shared = __esmMin((() => {
10289
10457
  notNullish = (val) => val != null;
10290
10458
  noop = () => {};
10291
10459
  }));
10292
- //#endregion
10293
- //#region node_modules/.pnpm/@vueuse+core@13.9.0_vue@3.5.42_typescript@5.9.3_/node_modules/@vueuse/core/index.mjs
10460
+ // node_modules/.pnpm/@vueuse+core@13.9.0_vue@3.5.44_typescript@5.9.3_/node_modules/@vueuse/core/index.mjs
10294
10461
  function unrefElement(elRef) {
10295
10462
  var _a;
10296
10463
  const plain = toValue(elRef);
@@ -10384,7 +10551,5 @@ var init_core = __esmMin((() => {
10384
10551
  defaultDocument = isClient ? window.document : void 0;
10385
10552
  isClient && window.navigator;
10386
10553
  isClient && window.location;
10387
- Number.POSITIVE_INFINITY;
10388
10554
  }));
10389
- //#endregion
10390
10555
  export { toRaw as $, hasInjectionContext as A, resolveComponent as B, createBlock as C, createVNode as D, createTextVNode as E, onMounted as F, getCurrentScope as G, withCtx as H, onUnmounted as I, isRef as J, init_reactivity_esm_bundler as K, openBlock as L, inject as M, nextTick as N, defineComponent as O, onBeforeUnmount as P, ref as Q, renderList as R, createBaseVNode as S, createElementBlock as T, withDirectives as U, watch as V, effectScope as W, onScopeDispose as X, markRaw as Y, reactive as Z, vShow as _, init_vue_router as a, toDisplayString$1 as at, Fragment as b, useI18n as c, init_runtime_dom_esm_bundler as d, toRefs as et, vModelCheckbox as f, vModelText as g, vModelSelect as h, createWebHistory as i, normalizeStyle as it, init_runtime_core_esm_bundler as j, getCurrentInstance$1 as k, init_vue_runtime_esm_bundler as l, vModelRadio as m, useTitle as n, init_shared_esm_bundler as nt, createI18n as o, vModelDynamic as p, isReactive as q, createRouter as r, normalizeClass as rt, init_vue_i18n as s, init_core as t, unref as tt, createApp as u, withKeys as v, createCommentVNode as w, computed as x, withModifiers as y, renderSlot as z };