@duxweb/dvha-naiveui 1.0.3 → 1.0.5

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 (214) hide show
  1. package/dist/cjs/hooks/menu.cjs +1 -1
  2. package/dist/cjs/hooks/tab.cjs +1 -1
  3. package/dist/cjs/hooks/table.cjs +1 -0
  4. package/dist/cjs/index.cjs +1 -1
  5. package/dist/cjs/node_modules/@vue/reactivity/dist/reactivity.esm-bundler.cjs +1 -1
  6. package/dist/cjs/node_modules/@vue/runtime-core/dist/runtime-core.esm-bundler.cjs +5 -5
  7. package/dist/cjs/node_modules/@vueuse/shared/index.cjs +1 -0
  8. package/dist/cjs/node_modules/lodash-es/_DataView.cjs +1 -0
  9. package/dist/cjs/node_modules/lodash-es/_Hash.cjs +1 -0
  10. package/dist/cjs/node_modules/lodash-es/_ListCache.cjs +1 -0
  11. package/dist/cjs/node_modules/lodash-es/_Map.cjs +1 -0
  12. package/dist/cjs/node_modules/lodash-es/_MapCache.cjs +1 -0
  13. package/dist/cjs/node_modules/lodash-es/_Promise.cjs +1 -0
  14. package/dist/cjs/node_modules/lodash-es/_Set.cjs +1 -0
  15. package/dist/cjs/node_modules/lodash-es/_Stack.cjs +1 -0
  16. package/dist/cjs/node_modules/lodash-es/_Symbol.cjs +1 -0
  17. package/dist/cjs/node_modules/lodash-es/_Uint8Array.cjs +1 -0
  18. package/dist/cjs/node_modules/lodash-es/_WeakMap.cjs +1 -0
  19. package/dist/cjs/node_modules/lodash-es/_arrayEach.cjs +1 -0
  20. package/dist/cjs/node_modules/lodash-es/_arrayFilter.cjs +1 -0
  21. package/dist/cjs/node_modules/lodash-es/_arrayLikeKeys.cjs +1 -0
  22. package/dist/cjs/node_modules/lodash-es/_arrayPush.cjs +1 -0
  23. package/dist/cjs/node_modules/lodash-es/_assignValue.cjs +1 -0
  24. package/dist/cjs/node_modules/lodash-es/_assocIndexOf.cjs +1 -0
  25. package/dist/cjs/node_modules/lodash-es/_baseAssignValue.cjs +1 -0
  26. package/dist/cjs/node_modules/lodash-es/_baseClone.cjs +1 -0
  27. package/dist/cjs/node_modules/lodash-es/_baseCreate.cjs +1 -0
  28. package/dist/cjs/node_modules/lodash-es/_baseGetAllKeys.cjs +1 -0
  29. package/dist/cjs/node_modules/lodash-es/_baseGetTag.cjs +1 -0
  30. package/dist/cjs/node_modules/lodash-es/_baseIsArguments.cjs +1 -0
  31. package/dist/cjs/node_modules/lodash-es/_baseIsMap.cjs +1 -0
  32. package/dist/cjs/node_modules/lodash-es/_baseIsNative.cjs +1 -0
  33. package/dist/cjs/node_modules/lodash-es/_baseIsSet.cjs +1 -0
  34. package/dist/cjs/node_modules/lodash-es/_baseIsTypedArray.cjs +1 -0
  35. package/dist/cjs/node_modules/lodash-es/_baseKeys.cjs +1 -0
  36. package/dist/cjs/node_modules/lodash-es/_baseTimes.cjs +1 -0
  37. package/dist/cjs/node_modules/lodash-es/_baseUnary.cjs +1 -0
  38. package/dist/cjs/node_modules/lodash-es/_cloneArrayBuffer.cjs +1 -0
  39. package/dist/cjs/node_modules/lodash-es/_cloneBuffer.cjs +1 -0
  40. package/dist/cjs/node_modules/lodash-es/_cloneDataView.cjs +1 -0
  41. package/dist/cjs/node_modules/lodash-es/_cloneRegExp.cjs +1 -0
  42. package/dist/cjs/node_modules/lodash-es/_cloneSymbol.cjs +1 -0
  43. package/dist/cjs/node_modules/lodash-es/_cloneTypedArray.cjs +1 -0
  44. package/dist/cjs/node_modules/lodash-es/_coreJsData.cjs +1 -0
  45. package/dist/cjs/node_modules/lodash-es/_defineProperty.cjs +1 -0
  46. package/dist/cjs/node_modules/lodash-es/_freeGlobal.cjs +1 -0
  47. package/dist/cjs/node_modules/lodash-es/_getAllKeys.cjs +1 -0
  48. package/dist/cjs/node_modules/lodash-es/_getMapData.cjs +1 -0
  49. package/dist/cjs/node_modules/lodash-es/_getNative.cjs +1 -0
  50. package/dist/cjs/node_modules/lodash-es/_getPrototype.cjs +1 -0
  51. package/dist/cjs/node_modules/lodash-es/_getRawTag.cjs +1 -0
  52. package/dist/cjs/node_modules/lodash-es/_getSymbols.cjs +1 -0
  53. package/dist/cjs/node_modules/lodash-es/_getTag.cjs +1 -0
  54. package/dist/cjs/node_modules/lodash-es/_getValue.cjs +1 -0
  55. package/dist/cjs/node_modules/lodash-es/_hashClear.cjs +1 -0
  56. package/dist/cjs/node_modules/lodash-es/_hashDelete.cjs +1 -0
  57. package/dist/cjs/node_modules/lodash-es/_hashGet.cjs +1 -0
  58. package/dist/cjs/node_modules/lodash-es/_hashHas.cjs +1 -0
  59. package/dist/cjs/node_modules/lodash-es/_hashSet.cjs +1 -0
  60. package/dist/cjs/node_modules/lodash-es/_initCloneArray.cjs +1 -0
  61. package/dist/cjs/node_modules/lodash-es/_initCloneByTag.cjs +1 -0
  62. package/dist/cjs/node_modules/lodash-es/_initCloneObject.cjs +1 -0
  63. package/dist/cjs/node_modules/lodash-es/_isIndex.cjs +1 -0
  64. package/dist/cjs/node_modules/lodash-es/_isKeyable.cjs +1 -0
  65. package/dist/cjs/node_modules/lodash-es/_isMasked.cjs +1 -0
  66. package/dist/cjs/node_modules/lodash-es/_isPrototype.cjs +1 -0
  67. package/dist/cjs/node_modules/lodash-es/_listCacheClear.cjs +1 -0
  68. package/dist/cjs/node_modules/lodash-es/_listCacheDelete.cjs +1 -0
  69. package/dist/cjs/node_modules/lodash-es/_listCacheGet.cjs +1 -0
  70. package/dist/cjs/node_modules/lodash-es/_listCacheHas.cjs +1 -0
  71. package/dist/cjs/node_modules/lodash-es/_listCacheSet.cjs +1 -0
  72. package/dist/cjs/node_modules/lodash-es/_mapCacheClear.cjs +1 -0
  73. package/dist/cjs/node_modules/lodash-es/_mapCacheDelete.cjs +1 -0
  74. package/dist/cjs/node_modules/lodash-es/_mapCacheGet.cjs +1 -0
  75. package/dist/cjs/node_modules/lodash-es/_mapCacheHas.cjs +1 -0
  76. package/dist/cjs/node_modules/lodash-es/_mapCacheSet.cjs +1 -0
  77. package/dist/cjs/node_modules/lodash-es/_nativeCreate.cjs +1 -0
  78. package/dist/cjs/node_modules/lodash-es/_nativeKeys.cjs +1 -0
  79. package/dist/cjs/node_modules/lodash-es/_nodeUtil.cjs +1 -0
  80. package/dist/cjs/node_modules/lodash-es/_objectToString.cjs +1 -0
  81. package/dist/cjs/node_modules/lodash-es/_overArg.cjs +1 -0
  82. package/dist/cjs/node_modules/lodash-es/_root.cjs +1 -0
  83. package/dist/cjs/node_modules/lodash-es/_stackClear.cjs +1 -0
  84. package/dist/cjs/node_modules/lodash-es/_stackDelete.cjs +1 -0
  85. package/dist/cjs/node_modules/lodash-es/_stackGet.cjs +1 -0
  86. package/dist/cjs/node_modules/lodash-es/_stackHas.cjs +1 -0
  87. package/dist/cjs/node_modules/lodash-es/_stackSet.cjs +1 -0
  88. package/dist/cjs/node_modules/lodash-es/_toSource.cjs +1 -0
  89. package/dist/cjs/node_modules/lodash-es/cloneDeep.cjs +1 -0
  90. package/dist/cjs/node_modules/lodash-es/eq.cjs +1 -0
  91. package/dist/cjs/node_modules/lodash-es/isArguments.cjs +1 -0
  92. package/dist/cjs/node_modules/lodash-es/isArray.cjs +1 -0
  93. package/dist/cjs/node_modules/lodash-es/isArrayLike.cjs +1 -0
  94. package/dist/cjs/node_modules/lodash-es/isBuffer.cjs +1 -0
  95. package/dist/cjs/node_modules/lodash-es/isFunction.cjs +1 -0
  96. package/dist/cjs/node_modules/lodash-es/isLength.cjs +1 -0
  97. package/dist/cjs/node_modules/lodash-es/isMap.cjs +1 -0
  98. package/dist/cjs/node_modules/lodash-es/isObject.cjs +1 -0
  99. package/dist/cjs/node_modules/lodash-es/isObjectLike.cjs +1 -0
  100. package/dist/cjs/node_modules/lodash-es/isSet.cjs +1 -0
  101. package/dist/cjs/node_modules/lodash-es/isTypedArray.cjs +1 -0
  102. package/dist/cjs/node_modules/lodash-es/keys.cjs +1 -0
  103. package/dist/cjs/node_modules/lodash-es/stubArray.cjs +1 -0
  104. package/dist/cjs/node_modules/lodash-es/stubFalse.cjs +1 -0
  105. package/dist/cjs/node_modules/vue/dist/vue.runtime.esm-bundler.cjs +1 -1
  106. package/dist/esm/hooks/menu.js +1 -1
  107. package/dist/esm/hooks/tab.js +17 -16
  108. package/dist/esm/hooks/table.js +132 -0
  109. package/dist/esm/index.js +3 -1
  110. package/dist/esm/node_modules/@vue/reactivity/dist/reactivity.esm-bundler.js +578 -478
  111. package/dist/esm/node_modules/@vue/runtime-core/dist/runtime-core.esm-bundler.js +222 -213
  112. package/dist/esm/node_modules/@vueuse/shared/index.js +70 -0
  113. package/dist/esm/node_modules/lodash-es/_DataView.js +6 -0
  114. package/dist/esm/node_modules/lodash-es/_Hash.js +20 -0
  115. package/dist/esm/node_modules/lodash-es/_ListCache.js +20 -0
  116. package/dist/esm/node_modules/lodash-es/_Map.js +6 -0
  117. package/dist/esm/node_modules/lodash-es/_MapCache.js +20 -0
  118. package/dist/esm/node_modules/lodash-es/_Promise.js +6 -0
  119. package/dist/esm/node_modules/lodash-es/_Set.js +6 -0
  120. package/dist/esm/node_modules/lodash-es/_Stack.js +18 -0
  121. package/dist/esm/node_modules/lodash-es/_Symbol.js +5 -0
  122. package/dist/esm/node_modules/lodash-es/_Uint8Array.js +5 -0
  123. package/dist/esm/node_modules/lodash-es/_WeakMap.js +6 -0
  124. package/dist/esm/node_modules/lodash-es/_arrayEach.js +8 -0
  125. package/dist/esm/node_modules/lodash-es/_arrayFilter.js +10 -0
  126. package/dist/esm/node_modules/lodash-es/_arrayLikeKeys.js +20 -0
  127. package/dist/esm/node_modules/lodash-es/_arrayPush.js +8 -0
  128. package/dist/esm/node_modules/lodash-es/_assignValue.js +10 -0
  129. package/dist/esm/node_modules/lodash-es/_assocIndexOf.js +10 -0
  130. package/dist/esm/node_modules/lodash-es/_baseAssignValue.js +12 -0
  131. package/dist/esm/node_modules/lodash-es/_baseClone.js +55 -0
  132. package/dist/esm/node_modules/lodash-es/_baseCreate.js +17 -0
  133. package/dist/esm/node_modules/lodash-es/_baseGetAllKeys.js +9 -0
  134. package/dist/esm/node_modules/lodash-es/_baseGetTag.js +10 -0
  135. package/dist/esm/node_modules/lodash-es/_baseIsArguments.js +9 -0
  136. package/dist/esm/node_modules/lodash-es/_baseIsMap.js +9 -0
  137. package/dist/esm/node_modules/lodash-es/_baseIsNative.js +16 -0
  138. package/dist/esm/node_modules/lodash-es/_baseIsSet.js +9 -0
  139. package/dist/esm/node_modules/lodash-es/_baseIsTypedArray.js +12 -0
  140. package/dist/esm/node_modules/lodash-es/_baseKeys.js +14 -0
  141. package/dist/esm/node_modules/lodash-es/_baseTimes.js +8 -0
  142. package/dist/esm/node_modules/lodash-es/_baseUnary.js +8 -0
  143. package/dist/esm/node_modules/lodash-es/_cloneArrayBuffer.js +8 -0
  144. package/dist/esm/node_modules/lodash-es/_cloneBuffer.js +9 -0
  145. package/dist/esm/node_modules/lodash-es/_cloneDataView.js +8 -0
  146. package/dist/esm/node_modules/lodash-es/_cloneRegExp.js +8 -0
  147. package/dist/esm/node_modules/lodash-es/_cloneSymbol.js +8 -0
  148. package/dist/esm/node_modules/lodash-es/_cloneTypedArray.js +8 -0
  149. package/dist/esm/node_modules/lodash-es/_coreJsData.js +5 -0
  150. package/dist/esm/node_modules/lodash-es/_defineProperty.js +11 -0
  151. package/dist/esm/node_modules/lodash-es/_freeGlobal.js +4 -0
  152. package/dist/esm/node_modules/lodash-es/_getAllKeys.js +9 -0
  153. package/dist/esm/node_modules/lodash-es/_getMapData.js +8 -0
  154. package/dist/esm/node_modules/lodash-es/_getNative.js +9 -0
  155. package/dist/esm/node_modules/lodash-es/_getPrototype.js +5 -0
  156. package/dist/esm/node_modules/lodash-es/_getRawTag.js +15 -0
  157. package/dist/esm/node_modules/lodash-es/_getSymbols.js +10 -0
  158. package/dist/esm/node_modules/lodash-es/_getTag.js +28 -0
  159. package/dist/esm/node_modules/lodash-es/_getValue.js +6 -0
  160. package/dist/esm/node_modules/lodash-es/_hashClear.js +7 -0
  161. package/dist/esm/node_modules/lodash-es/_hashDelete.js +7 -0
  162. package/dist/esm/node_modules/lodash-es/_hashGet.js +13 -0
  163. package/dist/esm/node_modules/lodash-es/_hashHas.js +9 -0
  164. package/dist/esm/node_modules/lodash-es/_hashSet.js +9 -0
  165. package/dist/esm/node_modules/lodash-es/_initCloneArray.js +8 -0
  166. package/dist/esm/node_modules/lodash-es/_initCloneByTag.js +42 -0
  167. package/dist/esm/node_modules/lodash-es/_initCloneObject.js +9 -0
  168. package/dist/esm/node_modules/lodash-es/_isIndex.js +8 -0
  169. package/dist/esm/node_modules/lodash-es/_isKeyable.js +7 -0
  170. package/dist/esm/node_modules/lodash-es/_isMasked.js +11 -0
  171. package/dist/esm/node_modules/lodash-es/_isPrototype.js +8 -0
  172. package/dist/esm/node_modules/lodash-es/_listCacheClear.js +6 -0
  173. package/dist/esm/node_modules/lodash-es/_listCacheDelete.js +12 -0
  174. package/dist/esm/node_modules/lodash-es/_listCacheGet.js +8 -0
  175. package/dist/esm/node_modules/lodash-es/_listCacheHas.js +7 -0
  176. package/dist/esm/node_modules/lodash-es/_listCacheSet.js +8 -0
  177. package/dist/esm/node_modules/lodash-es/_mapCacheClear.js +13 -0
  178. package/dist/esm/node_modules/lodash-es/_mapCacheDelete.js +8 -0
  179. package/dist/esm/node_modules/lodash-es/_mapCacheGet.js +7 -0
  180. package/dist/esm/node_modules/lodash-es/_mapCacheHas.js +7 -0
  181. package/dist/esm/node_modules/lodash-es/_mapCacheSet.js +8 -0
  182. package/dist/esm/node_modules/lodash-es/_nativeCreate.js +5 -0
  183. package/dist/esm/node_modules/lodash-es/_nativeKeys.js +5 -0
  184. package/dist/esm/node_modules/lodash-es/_nodeUtil.js +11 -0
  185. package/dist/esm/node_modules/lodash-es/_objectToString.js +7 -0
  186. package/dist/esm/node_modules/lodash-es/_overArg.js +8 -0
  187. package/dist/esm/node_modules/lodash-es/_root.js +5 -0
  188. package/dist/esm/node_modules/lodash-es/_stackClear.js +7 -0
  189. package/dist/esm/node_modules/lodash-es/_stackDelete.js +7 -0
  190. package/dist/esm/node_modules/lodash-es/_stackGet.js +6 -0
  191. package/dist/esm/node_modules/lodash-es/_stackHas.js +6 -0
  192. package/dist/esm/node_modules/lodash-es/_stackSet.js +17 -0
  193. package/dist/esm/node_modules/lodash-es/_toSource.js +17 -0
  194. package/dist/esm/node_modules/lodash-es/cloneDeep.js +8 -0
  195. package/dist/esm/node_modules/lodash-es/eq.js +6 -0
  196. package/dist/esm/node_modules/lodash-es/isArguments.js +10 -0
  197. package/dist/esm/node_modules/lodash-es/isArray.js +4 -0
  198. package/dist/esm/node_modules/lodash-es/isArrayLike.js +8 -0
  199. package/dist/esm/node_modules/lodash-es/isBuffer.js +6 -0
  200. package/dist/esm/node_modules/lodash-es/isFunction.js +12 -0
  201. package/dist/esm/node_modules/lodash-es/isLength.js +7 -0
  202. package/dist/esm/node_modules/lodash-es/isMap.js +7 -0
  203. package/dist/esm/node_modules/lodash-es/isObject.js +7 -0
  204. package/dist/esm/node_modules/lodash-es/isObjectLike.js +6 -0
  205. package/dist/esm/node_modules/lodash-es/isSet.js +7 -0
  206. package/dist/esm/node_modules/lodash-es/isTypedArray.js +7 -0
  207. package/dist/esm/node_modules/lodash-es/keys.js +9 -0
  208. package/dist/esm/node_modules/lodash-es/stubArray.js +6 -0
  209. package/dist/esm/node_modules/lodash-es/stubFalse.js +6 -0
  210. package/dist/esm/node_modules/vue/dist/vue.runtime.esm-bundler.js +9 -8
  211. package/dist/types/hooks/index.d.ts +1 -0
  212. package/dist/types/hooks/tab.d.ts +507 -21
  213. package/dist/types/hooks/table.d.ts +45 -0
  214. package/package.json +1 -1
@@ -1,4 +1,4 @@
1
- import { isFunction as q, extend as X, hasChanged as M, isSymbol as L, isObject as W, EMPTY_OBJ as Pe, toRawType as he, isArray as x, hasOwn as Z, isIntegerKey as ie, isMap as O, makeMap as Ke, capitalize as je, NOOP as Le, isSet as We, isPlainObject as He } from "../../shared/dist/shared.esm-bundler.js";
1
+ import { isFunction as $, isObject as P, EMPTY_OBJ as We, isArray as m, hasChanged as x, extend as ne, toRawType as Ee, isSymbol as B, hasOwn as oe, isIntegerKey as ue, isMap as j, makeMap as He, capitalize as Ce, NOOP as $e, isSet as Ye, isPlainObject as ze } from "../../shared/dist/shared.esm-bundler.js";
2
2
  /**
3
3
  * @vue/reactivity v3.5.14
4
4
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
@@ -7,9 +7,9 @@ import { isFunction as q, extend as X, hasChanged as M, isSymbol as L, isObject
7
7
  function D(e, ...t) {
8
8
  console.warn(`[Vue warn] ${e}`, ...t);
9
9
  }
10
- let l;
11
- const J = /* @__PURE__ */ new WeakSet();
12
- class Ce {
10
+ let u;
11
+ const se = /* @__PURE__ */ new WeakSet();
12
+ class Be {
13
13
  constructor(t) {
14
14
  this.fn = t, this.deps = void 0, this.depsTail = void 0, this.flags = 5, this.next = void 0, this.cleanup = void 0, this.scheduler = void 0;
15
15
  }
@@ -17,526 +17,530 @@ class Ce {
17
17
  this.flags |= 64;
18
18
  }
19
19
  resume() {
20
- this.flags & 64 && (this.flags &= -65, J.has(this) && (J.delete(this), this.trigger()));
20
+ this.flags & 64 && (this.flags &= -65, se.has(this) && (se.delete(this), this.trigger()));
21
21
  }
22
22
  /**
23
23
  * @internal
24
24
  */
25
25
  notify() {
26
- this.flags & 2 && !(this.flags & 32) || this.flags & 8 || _e(this);
26
+ this.flags & 2 && !(this.flags & 32) || this.flags & 8 || ye(this);
27
27
  }
28
28
  run() {
29
29
  if (!(this.flags & 1))
30
30
  return this.fn();
31
- this.flags |= 2, le(this), ge(this);
32
- const t = l, n = b;
33
- l = this, b = !0;
31
+ this.flags |= 2, ge(this), De(this);
32
+ const t = u, s = w;
33
+ u = this, w = !0;
34
34
  try {
35
35
  return this.fn();
36
36
  } finally {
37
- process.env.NODE_ENV !== "production" && l !== this && D(
37
+ process.env.NODE_ENV !== "production" && u !== this && D(
38
38
  "Active effect was not restored correctly - this is likely a Vue internal bug."
39
- ), be(this), l = t, b = n, this.flags &= -3;
39
+ ), Ne(this), u = t, w = s, this.flags &= -3;
40
40
  }
41
41
  }
42
42
  stop() {
43
43
  if (this.flags & 1) {
44
44
  for (let t = this.deps; t; t = t.nextDep)
45
- ce(t);
46
- this.deps = this.depsTail = void 0, le(this), this.onStop && this.onStop(), this.flags &= -2;
45
+ de(t);
46
+ this.deps = this.depsTail = void 0, ge(this), this.onStop && this.onStop(), this.flags &= -2;
47
47
  }
48
48
  }
49
49
  trigger() {
50
- this.flags & 64 ? J.add(this) : this.scheduler ? this.scheduler() : this.runIfDirty();
50
+ this.flags & 64 ? se.add(this) : this.scheduler ? this.scheduler() : this.runIfDirty();
51
51
  }
52
52
  /**
53
53
  * @internal
54
54
  */
55
55
  runIfDirty() {
56
- k(this) && this.run();
56
+ ae(this) && this.run();
57
57
  }
58
58
  get dirty() {
59
- return k(this);
59
+ return ae(this);
60
60
  }
61
61
  }
62
- let ve = 0, A, P;
63
- function _e(e, t = !1) {
62
+ let Se = 0, H, C;
63
+ function ye(e, t = !1) {
64
64
  if (e.flags |= 8, t) {
65
- e.next = P, P = e;
65
+ e.next = C, C = e;
66
66
  return;
67
67
  }
68
- e.next = A, A = e;
68
+ e.next = H, H = e;
69
69
  }
70
- function re() {
71
- ve++;
70
+ function he() {
71
+ Se++;
72
72
  }
73
- function oe() {
74
- if (--ve > 0)
73
+ function pe() {
74
+ if (--Se > 0)
75
75
  return;
76
- if (P) {
77
- let t = P;
78
- for (P = void 0; t; ) {
79
- const n = t.next;
80
- t.next = void 0, t.flags &= -9, t = n;
76
+ if (C) {
77
+ let t = C;
78
+ for (C = void 0; t; ) {
79
+ const s = t.next;
80
+ t.next = void 0, t.flags &= -9, t = s;
81
81
  }
82
82
  }
83
83
  let e;
84
- for (; A; ) {
85
- let t = A;
86
- for (A = void 0; t; ) {
87
- const n = t.next;
84
+ for (; H; ) {
85
+ let t = H;
86
+ for (H = void 0; t; ) {
87
+ const s = t.next;
88
88
  if (t.next = void 0, t.flags &= -9, t.flags & 1)
89
89
  try {
90
90
  t.trigger();
91
- } catch (i) {
92
- e || (e = i);
91
+ } catch (r) {
92
+ e || (e = r);
93
93
  }
94
- t = n;
94
+ t = s;
95
95
  }
96
96
  }
97
97
  if (e) throw e;
98
98
  }
99
- function ge(e) {
99
+ function De(e) {
100
100
  for (let t = e.deps; t; t = t.nextDep)
101
101
  t.version = -1, t.prevActiveLink = t.dep.activeLink, t.dep.activeLink = t;
102
102
  }
103
- function be(e) {
104
- let t, n = e.depsTail, i = n;
105
- for (; i; ) {
106
- const s = i.prevDep;
107
- i.version === -1 ? (i === n && (n = s), ce(i), $e(i)) : t = i, i.dep.activeLink = i.prevActiveLink, i.prevActiveLink = void 0, i = s;
103
+ function Ne(e) {
104
+ let t, s = e.depsTail, r = s;
105
+ for (; r; ) {
106
+ const i = r.prevDep;
107
+ r.version === -1 ? (r === s && (s = i), de(r), Fe(r)) : t = r, r.dep.activeLink = r.prevActiveLink, r.prevActiveLink = void 0, r = i;
108
108
  }
109
- e.deps = t, e.depsTail = n;
109
+ e.deps = t, e.depsTail = s;
110
110
  }
111
- function k(e) {
111
+ function ae(e) {
112
112
  for (let t = e.deps; t; t = t.nextDep)
113
- if (t.dep.version !== t.version || t.dep.computed && (we(t.dep.computed) || t.dep.version !== t.version))
113
+ if (t.dep.version !== t.version || t.dep.computed && (Re(t.dep.computed) || t.dep.version !== t.version))
114
114
  return !0;
115
115
  return !!e._dirty;
116
116
  }
117
- function we(e) {
118
- if (e.flags & 4 && !(e.flags & 16) || (e.flags &= -17, e.globalVersion === K) || (e.globalVersion = K, !e.isSSR && e.flags & 128 && (!e.deps && !e._dirty || !k(e))))
117
+ function Re(e) {
118
+ if (e.flags & 4 && !(e.flags & 16) || (e.flags &= -17, e.globalVersion === Y) || (e.globalVersion = Y, !e.isSSR && e.flags & 128 && (!e.deps && !e._dirty || !ae(e))))
119
119
  return;
120
120
  e.flags |= 2;
121
- const t = e.dep, n = l, i = b;
122
- l = e, b = !0;
121
+ const t = e.dep, s = u, r = w;
122
+ u = e, w = !0;
123
123
  try {
124
- ge(e);
125
- const s = e.fn(e._value);
126
- (t.version === 0 || M(s, e._value)) && (e.flags |= 128, e._value = s, t.version++);
127
- } catch (s) {
128
- throw t.version++, s;
124
+ De(e);
125
+ const i = e.fn(e._value);
126
+ (t.version === 0 || x(i, e._value)) && (e.flags |= 128, e._value = i, t.version++);
127
+ } catch (i) {
128
+ throw t.version++, i;
129
129
  } finally {
130
- l = n, b = i, be(e), e.flags &= -3;
130
+ u = s, w = r, Ne(e), e.flags &= -3;
131
131
  }
132
132
  }
133
- function ce(e, t = !1) {
134
- const { dep: n, prevSub: i, nextSub: s } = e;
135
- if (i && (i.nextSub = s, e.prevSub = void 0), s && (s.prevSub = i, e.nextSub = void 0), process.env.NODE_ENV !== "production" && n.subsHead === e && (n.subsHead = s), n.subs === e && (n.subs = i, !i && n.computed)) {
136
- n.computed.flags &= -5;
137
- for (let r = n.computed.deps; r; r = r.nextDep)
138
- ce(r, !0);
133
+ function de(e, t = !1) {
134
+ const { dep: s, prevSub: r, nextSub: i } = e;
135
+ if (r && (r.nextSub = i, e.prevSub = void 0), i && (i.prevSub = r, e.nextSub = void 0), process.env.NODE_ENV !== "production" && s.subsHead === e && (s.subsHead = i), s.subs === e && (s.subs = r, !r && s.computed)) {
136
+ s.computed.flags &= -5;
137
+ for (let n = s.computed.deps; n; n = n.nextDep)
138
+ de(n, !0);
139
139
  }
140
- !t && !--n.sc && n.map && n.map.delete(n.key);
140
+ !t && !--s.sc && s.map && s.map.delete(s.key);
141
141
  }
142
- function $e(e) {
143
- const { prevDep: t, nextDep: n } = e;
144
- t && (t.nextDep = n, e.prevDep = void 0), n && (n.prevDep = t, e.nextDep = void 0);
142
+ function Fe(e) {
143
+ const { prevDep: t, nextDep: s } = e;
144
+ t && (t.nextDep = s, e.prevDep = void 0), s && (s.prevDep = t, e.nextDep = void 0);
145
145
  }
146
- let b = !0;
147
- const Ee = [];
148
- function Se() {
149
- Ee.push(b), b = !1;
146
+ let w = !0;
147
+ const me = [];
148
+ function xe() {
149
+ me.push(w), w = !1;
150
150
  }
151
- function De() {
152
- const e = Ee.pop();
153
- b = e === void 0 ? !0 : e;
151
+ function Oe() {
152
+ const e = me.pop();
153
+ w = e === void 0 ? !0 : e;
154
154
  }
155
- function le(e) {
155
+ function ge(e) {
156
156
  const { cleanup: t } = e;
157
157
  if (e.cleanup = void 0, t) {
158
- const n = l;
159
- l = void 0;
158
+ const s = u;
159
+ u = void 0;
160
160
  try {
161
161
  t();
162
162
  } finally {
163
- l = n;
163
+ u = s;
164
164
  }
165
165
  }
166
166
  }
167
- let K = 0;
168
- class Ye {
169
- constructor(t, n) {
170
- this.sub = t, this.dep = n, this.version = n.version, this.nextDep = this.prevDep = this.nextSub = this.prevSub = this.prevActiveLink = void 0;
167
+ let Y = 0;
168
+ class Ge {
169
+ constructor(t, s) {
170
+ this.sub = t, this.dep = s, this.version = s.version, this.nextDep = this.prevDep = this.nextSub = this.prevSub = this.prevActiveLink = void 0;
171
171
  }
172
172
  }
173
- class Ne {
173
+ class _e {
174
174
  constructor(t) {
175
175
  this.computed = t, this.version = 0, this.activeLink = void 0, this.subs = void 0, this.map = void 0, this.key = void 0, this.sc = 0, process.env.NODE_ENV !== "production" && (this.subsHead = void 0);
176
176
  }
177
177
  track(t) {
178
- if (!l || !b || l === this.computed)
178
+ if (!u || !w || u === this.computed)
179
179
  return;
180
- let n = this.activeLink;
181
- if (n === void 0 || n.sub !== l)
182
- n = this.activeLink = new Ye(l, this), l.deps ? (n.prevDep = l.depsTail, l.depsTail.nextDep = n, l.depsTail = n) : l.deps = l.depsTail = n, xe(n);
183
- else if (n.version === -1 && (n.version = this.version, n.nextDep)) {
184
- const i = n.nextDep;
185
- i.prevDep = n.prevDep, n.prevDep && (n.prevDep.nextDep = i), n.prevDep = l.depsTail, n.nextDep = void 0, l.depsTail.nextDep = n, l.depsTail = n, l.deps === n && (l.deps = i);
180
+ let s = this.activeLink;
181
+ if (s === void 0 || s.sub !== u)
182
+ s = this.activeLink = new Ge(u, this), u.deps ? (s.prevDep = u.depsTail, u.depsTail.nextDep = s, u.depsTail = s) : u.deps = u.depsTail = s, Te(s);
183
+ else if (s.version === -1 && (s.version = this.version, s.nextDep)) {
184
+ const r = s.nextDep;
185
+ r.prevDep = s.prevDep, s.prevDep && (s.prevDep.nextDep = r), s.prevDep = u.depsTail, s.nextDep = void 0, u.depsTail.nextDep = s, u.depsTail = s, u.deps === s && (u.deps = r);
186
186
  }
187
- return process.env.NODE_ENV !== "production" && l.onTrack && l.onTrack(
188
- X(
187
+ return process.env.NODE_ENV !== "production" && u.onTrack && u.onTrack(
188
+ ne(
189
189
  {
190
- effect: l
190
+ effect: u
191
191
  },
192
192
  t
193
193
  )
194
- ), n;
194
+ ), s;
195
195
  }
196
196
  trigger(t) {
197
- this.version++, K++, this.notify(t);
197
+ this.version++, Y++, this.notify(t);
198
198
  }
199
199
  notify(t) {
200
- re();
200
+ he();
201
201
  try {
202
202
  if (process.env.NODE_ENV !== "production")
203
- for (let n = this.subsHead; n; n = n.nextSub)
204
- n.sub.onTrigger && !(n.sub.flags & 8) && n.sub.onTrigger(
205
- X(
203
+ for (let s = this.subsHead; s; s = s.nextSub)
204
+ s.sub.onTrigger && !(s.sub.flags & 8) && s.sub.onTrigger(
205
+ ne(
206
206
  {
207
- effect: n.sub
207
+ effect: s.sub
208
208
  },
209
209
  t
210
210
  )
211
211
  );
212
- for (let n = this.subs; n; n = n.prevSub)
213
- n.sub.notify() && n.sub.dep.notify();
212
+ for (let s = this.subs; s; s = s.prevSub)
213
+ s.sub.notify() && s.sub.dep.notify();
214
214
  } finally {
215
- oe();
215
+ pe();
216
216
  }
217
217
  }
218
218
  }
219
- function xe(e) {
219
+ function Te(e) {
220
220
  if (e.dep.sc++, e.sub.flags & 4) {
221
221
  const t = e.dep.computed;
222
222
  if (t && !e.dep.subs) {
223
223
  t.flags |= 20;
224
- for (let i = t.deps; i; i = i.nextDep)
225
- xe(i);
224
+ for (let r = t.deps; r; r = r.nextDep)
225
+ Te(r);
226
226
  }
227
- const n = e.dep.subs;
228
- n !== e && (e.prevSub = n, n && (n.nextSub = e)), process.env.NODE_ENV !== "production" && e.dep.subsHead === void 0 && (e.dep.subsHead = e), e.dep.subs = e;
227
+ const s = e.dep.subs;
228
+ s !== e && (e.prevSub = s, s && (s.nextSub = e)), process.env.NODE_ENV !== "production" && e.dep.subsHead === void 0 && (e.dep.subsHead = e), e.dep.subs = e;
229
229
  }
230
230
  }
231
- const ee = /* @__PURE__ */ new WeakMap(), m = Symbol(
231
+ const k = /* @__PURE__ */ new WeakMap(), V = Symbol(
232
232
  process.env.NODE_ENV !== "production" ? "Object iterate" : ""
233
- ), te = Symbol(
233
+ ), ce = Symbol(
234
234
  process.env.NODE_ENV !== "production" ? "Map keys iterate" : ""
235
- ), j = Symbol(
235
+ ), z = Symbol(
236
236
  process.env.NODE_ENV !== "production" ? "Array iterate" : ""
237
237
  );
238
- function _(e, t, n) {
239
- if (b && l) {
240
- let i = ee.get(e);
241
- i || ee.set(e, i = /* @__PURE__ */ new Map());
242
- let s = i.get(n);
243
- s || (i.set(n, s = new Ne()), s.map = i, s.key = n), process.env.NODE_ENV !== "production" ? s.track({
238
+ function g(e, t, s) {
239
+ if (w && u) {
240
+ let r = k.get(e);
241
+ r || k.set(e, r = /* @__PURE__ */ new Map());
242
+ let i = r.get(s);
243
+ i || (r.set(s, i = new _e()), i.map = r, i.key = s), process.env.NODE_ENV !== "production" ? i.track({
244
244
  target: e,
245
245
  type: t,
246
- key: n
247
- }) : s.track();
246
+ key: s
247
+ }) : i.track();
248
248
  }
249
249
  }
250
- function N(e, t, n, i, s, r) {
251
- const o = ee.get(e);
250
+ function N(e, t, s, r, i, n) {
251
+ const o = k.get(e);
252
252
  if (!o) {
253
- K++;
253
+ Y++;
254
254
  return;
255
255
  }
256
- const c = (a) => {
257
- a && (process.env.NODE_ENV !== "production" ? a.trigger({
256
+ const a = (c) => {
257
+ c && (process.env.NODE_ENV !== "production" ? c.trigger({
258
258
  target: e,
259
259
  type: t,
260
- key: n,
261
- newValue: i,
262
- oldValue: s,
263
- oldTarget: r
264
- }) : a.trigger());
260
+ key: s,
261
+ newValue: r,
262
+ oldValue: i,
263
+ oldTarget: n
264
+ }) : c.trigger());
265
265
  };
266
- if (re(), t === "clear")
267
- o.forEach(c);
266
+ if (he(), t === "clear")
267
+ o.forEach(a);
268
268
  else {
269
- const a = x(e), d = a && ie(n);
270
- if (a && n === "length") {
271
- const v = Number(i);
272
- o.forEach((f, h) => {
273
- (h === "length" || h === j || !L(h) && h >= v) && c(f);
269
+ const c = m(e), p = c && ue(s);
270
+ if (c && s === "length") {
271
+ const _ = Number(r);
272
+ o.forEach((f, d) => {
273
+ (d === "length" || d === z || !B(d) && d >= _) && a(f);
274
274
  });
275
275
  } else
276
- switch ((n !== void 0 || o.has(void 0)) && c(o.get(n)), d && c(o.get(j)), t) {
276
+ switch ((s !== void 0 || o.has(void 0)) && a(o.get(s)), p && a(o.get(z)), t) {
277
277
  case "add":
278
- a ? d && c(o.get("length")) : (c(o.get(m)), O(e) && c(o.get(te)));
278
+ c ? p && a(o.get("length")) : (a(o.get(V)), j(e) && a(o.get(ce)));
279
279
  break;
280
280
  case "delete":
281
- a || (c(o.get(m)), O(e) && c(o.get(te)));
281
+ c || (a(o.get(V)), j(e) && a(o.get(ce)));
282
282
  break;
283
283
  case "set":
284
- O(e) && c(o.get(m));
284
+ j(e) && a(o.get(V));
285
285
  break;
286
286
  }
287
287
  }
288
- oe();
288
+ pe();
289
289
  }
290
- function R(e) {
291
- const t = p(e);
292
- return t === e ? t : (_(t, "iterate", j), w(e) ? t : t.map(g));
290
+ function Je(e, t) {
291
+ const s = k.get(e);
292
+ return s && s.get(t);
293
293
  }
294
- function ae(e) {
295
- return _(e = p(e), "iterate", j), e;
294
+ function A(e) {
295
+ const t = h(e);
296
+ return t === e ? t : (g(t, "iterate", z), E(e) ? t : t.map(v));
296
297
  }
297
- const ze = {
298
+ function ve(e) {
299
+ return g(e = h(e), "iterate", z), e;
300
+ }
301
+ const Qe = {
298
302
  __proto__: null,
299
303
  [Symbol.iterator]() {
300
- return Q(this, Symbol.iterator, g);
304
+ return ie(this, Symbol.iterator, v);
301
305
  },
302
306
  concat(...e) {
303
- return R(this).concat(
304
- ...e.map((t) => x(t) ? R(t) : t)
307
+ return A(this).concat(
308
+ ...e.map((t) => m(t) ? A(t) : t)
305
309
  );
306
310
  },
307
311
  entries() {
308
- return Q(this, "entries", (e) => (e[1] = g(e[1]), e));
312
+ return ie(this, "entries", (e) => (e[1] = v(e[1]), e));
309
313
  },
310
314
  every(e, t) {
311
- return E(this, "every", e, t, void 0, arguments);
315
+ return y(this, "every", e, t, void 0, arguments);
312
316
  },
313
317
  filter(e, t) {
314
- return E(this, "filter", e, t, (n) => n.map(g), arguments);
318
+ return y(this, "filter", e, t, (s) => s.map(v), arguments);
315
319
  },
316
320
  find(e, t) {
317
- return E(this, "find", e, t, g, arguments);
321
+ return y(this, "find", e, t, v, arguments);
318
322
  },
319
323
  findIndex(e, t) {
320
- return E(this, "findIndex", e, t, void 0, arguments);
324
+ return y(this, "findIndex", e, t, void 0, arguments);
321
325
  },
322
326
  findLast(e, t) {
323
- return E(this, "findLast", e, t, g, arguments);
327
+ return y(this, "findLast", e, t, v, arguments);
324
328
  },
325
329
  findLastIndex(e, t) {
326
- return E(this, "findLastIndex", e, t, void 0, arguments);
330
+ return y(this, "findLastIndex", e, t, void 0, arguments);
327
331
  },
328
332
  // flat, flatMap could benefit from ARRAY_ITERATE but are not straight-forward to implement
329
333
  forEach(e, t) {
330
- return E(this, "forEach", e, t, void 0, arguments);
334
+ return y(this, "forEach", e, t, void 0, arguments);
331
335
  },
332
336
  includes(...e) {
333
- return U(this, "includes", e);
337
+ return re(this, "includes", e);
334
338
  },
335
339
  indexOf(...e) {
336
- return U(this, "indexOf", e);
340
+ return re(this, "indexOf", e);
337
341
  },
338
342
  join(e) {
339
- return R(this).join(e);
343
+ return A(this).join(e);
340
344
  },
341
345
  // keys() iterator only reads `length`, no optimisation required
342
346
  lastIndexOf(...e) {
343
- return U(this, "lastIndexOf", e);
347
+ return re(this, "lastIndexOf", e);
344
348
  },
345
349
  map(e, t) {
346
- return E(this, "map", e, t, void 0, arguments);
350
+ return y(this, "map", e, t, void 0, arguments);
347
351
  },
348
352
  pop() {
349
- return I(this, "pop");
353
+ return W(this, "pop");
350
354
  },
351
355
  push(...e) {
352
- return I(this, "push", e);
356
+ return W(this, "push", e);
353
357
  },
354
358
  reduce(e, ...t) {
355
- return ue(this, "reduce", e, t);
359
+ return be(this, "reduce", e, t);
356
360
  },
357
361
  reduceRight(e, ...t) {
358
- return ue(this, "reduceRight", e, t);
362
+ return be(this, "reduceRight", e, t);
359
363
  },
360
364
  shift() {
361
- return I(this, "shift");
365
+ return W(this, "shift");
362
366
  },
363
367
  // slice could use ARRAY_ITERATE but also seems to beg for range tracking
364
368
  some(e, t) {
365
- return E(this, "some", e, t, void 0, arguments);
369
+ return y(this, "some", e, t, void 0, arguments);
366
370
  },
367
371
  splice(...e) {
368
- return I(this, "splice", e);
372
+ return W(this, "splice", e);
369
373
  },
370
374
  toReversed() {
371
- return R(this).toReversed();
375
+ return A(this).toReversed();
372
376
  },
373
377
  toSorted(e) {
374
- return R(this).toSorted(e);
378
+ return A(this).toSorted(e);
375
379
  },
376
380
  toSpliced(...e) {
377
- return R(this).toSpliced(...e);
381
+ return A(this).toSpliced(...e);
378
382
  },
379
383
  unshift(...e) {
380
- return I(this, "unshift", e);
384
+ return W(this, "unshift", e);
381
385
  },
382
386
  values() {
383
- return Q(this, "values", g);
387
+ return ie(this, "values", v);
384
388
  }
385
389
  };
386
- function Q(e, t, n) {
387
- const i = ae(e), s = i[t]();
388
- return i !== e && !w(e) && (s._next = s.next, s.next = () => {
389
- const r = s._next();
390
- return r.value && (r.value = n(r.value)), r;
391
- }), s;
392
- }
393
- const Be = Array.prototype;
394
- function E(e, t, n, i, s, r) {
395
- const o = ae(e), c = o !== e && !w(e), a = o[t];
396
- if (a !== Be[t]) {
397
- const f = a.apply(e, r);
398
- return c ? g(f) : f;
399
- }
400
- let d = n;
401
- o !== e && (c ? d = function(f, h) {
402
- return n.call(this, g(f), h, e);
403
- } : n.length > 2 && (d = function(f, h) {
404
- return n.call(this, f, h, e);
390
+ function ie(e, t, s) {
391
+ const r = ve(e), i = r[t]();
392
+ return r !== e && !E(e) && (i._next = i.next, i.next = () => {
393
+ const n = i._next();
394
+ return n.value && (n.value = s(n.value)), n;
395
+ }), i;
396
+ }
397
+ const Ue = Array.prototype;
398
+ function y(e, t, s, r, i, n) {
399
+ const o = ve(e), a = o !== e && !E(e), c = o[t];
400
+ if (c !== Ue[t]) {
401
+ const f = c.apply(e, n);
402
+ return a ? v(f) : f;
403
+ }
404
+ let p = s;
405
+ o !== e && (a ? p = function(f, d) {
406
+ return s.call(this, v(f), d, e);
407
+ } : s.length > 2 && (p = function(f, d) {
408
+ return s.call(this, f, d, e);
405
409
  }));
406
- const v = a.call(o, d, i);
407
- return c && s ? s(v) : v;
408
- }
409
- function ue(e, t, n, i) {
410
- const s = ae(e);
411
- let r = n;
412
- return s !== e && (w(e) ? n.length > 3 && (r = function(o, c, a) {
413
- return n.call(this, o, c, a, e);
414
- }) : r = function(o, c, a) {
415
- return n.call(this, o, g(c), a, e);
416
- }), s[t](r, ...i);
417
- }
418
- function U(e, t, n) {
419
- const i = p(e);
420
- _(i, "iterate", j);
421
- const s = i[t](...n);
422
- return (s === -1 || s === !1) && rt(n[0]) ? (n[0] = p(n[0]), i[t](...n)) : s;
423
- }
424
- function I(e, t, n = []) {
425
- Se(), re();
426
- const i = p(e)[t].apply(e, n);
427
- return oe(), De(), i;
428
- }
429
- const Fe = /* @__PURE__ */ Ke("__proto__,__v_isRef,__isVue"), ye = new Set(
430
- /* @__PURE__ */ Object.getOwnPropertyNames(Symbol).filter((e) => e !== "arguments" && e !== "caller").map((e) => Symbol[e]).filter(L)
410
+ const _ = c.call(o, p, r);
411
+ return a && i ? i(_) : _;
412
+ }
413
+ function be(e, t, s, r) {
414
+ const i = ve(e);
415
+ let n = s;
416
+ return i !== e && (E(e) ? s.length > 3 && (n = function(o, a, c) {
417
+ return s.call(this, o, a, c, e);
418
+ }) : n = function(o, a, c) {
419
+ return s.call(this, o, v(a), c, e);
420
+ }), i[t](n, ...r);
421
+ }
422
+ function re(e, t, s) {
423
+ const r = h(e);
424
+ g(r, "iterate", z);
425
+ const i = r[t](...s);
426
+ return (i === -1 || i === !1) && lt(s[0]) ? (s[0] = h(s[0]), r[t](...s)) : i;
427
+ }
428
+ function W(e, t, s = []) {
429
+ xe(), he();
430
+ const r = h(e)[t].apply(e, s);
431
+ return pe(), Oe(), r;
432
+ }
433
+ const qe = /* @__PURE__ */ He("__proto__,__v_isRef,__isVue"), Ve = new Set(
434
+ /* @__PURE__ */ Object.getOwnPropertyNames(Symbol).filter((e) => e !== "arguments" && e !== "caller").map((e) => Symbol[e]).filter(B)
431
435
  );
432
- function Ge(e) {
433
- L(e) || (e = String(e));
434
- const t = p(this);
435
- return _(t, "has", e), t.hasOwnProperty(e);
436
- }
437
- class me {
438
- constructor(t = !1, n = !1) {
439
- this._isReadonly = t, this._isShallow = n;
440
- }
441
- get(t, n, i) {
442
- if (n === "__v_skip") return t.__v_skip;
443
- const s = this._isReadonly, r = this._isShallow;
444
- if (n === "__v_isReactive")
445
- return !s;
446
- if (n === "__v_isReadonly")
447
- return s;
448
- if (n === "__v_isShallow")
449
- return r;
450
- if (n === "__v_raw")
451
- return i === (s ? r ? nt : Te : r ? tt : Oe).get(t) || // receiver is not the reactive proxy, but has the same prototype
436
+ function Xe(e) {
437
+ B(e) || (e = String(e));
438
+ const t = h(this);
439
+ return g(t, "has", e), t.hasOwnProperty(e);
440
+ }
441
+ class Ie {
442
+ constructor(t = !1, s = !1) {
443
+ this._isReadonly = t, this._isShallow = s;
444
+ }
445
+ get(t, s, r) {
446
+ if (s === "__v_skip") return t.__v_skip;
447
+ const i = this._isReadonly, n = this._isShallow;
448
+ if (s === "__v_isReactive")
449
+ return !i;
450
+ if (s === "__v_isReadonly")
451
+ return i;
452
+ if (s === "__v_isShallow")
453
+ return n;
454
+ if (s === "__v_raw")
455
+ return r === (i ? n ? at : je : n ? ot : Ae).get(t) || // receiver is not the reactive proxy, but has the same prototype
452
456
  // this means the receiver is a user proxy of the reactive proxy
453
- Object.getPrototypeOf(t) === Object.getPrototypeOf(i) ? t : void 0;
454
- const o = x(t);
455
- if (!s) {
456
- let a;
457
- if (o && (a = ze[n]))
458
- return a;
459
- if (n === "hasOwnProperty")
460
- return Ge;
457
+ Object.getPrototypeOf(t) === Object.getPrototypeOf(r) ? t : void 0;
458
+ const o = m(t);
459
+ if (!i) {
460
+ let c;
461
+ if (o && (c = Qe[s]))
462
+ return c;
463
+ if (s === "hasOwnProperty")
464
+ return Xe;
461
465
  }
462
- const c = Reflect.get(
466
+ const a = Reflect.get(
463
467
  t,
464
- n,
468
+ s,
465
469
  // if this is a proxy wrapping a ref, return methods using the raw ref
466
470
  // as receiver so that we don't have to call `toRaw` on the ref in all
467
471
  // its class methods
468
- S(t) ? t : i
472
+ b(t) ? t : r
469
473
  );
470
- return (L(n) ? ye.has(n) : Fe(n)) || (s || _(t, "get", n), r) ? c : S(c) ? o && ie(n) ? c : c.value : W(c) ? s ? Ie(c) : Ve(c) : c;
474
+ return (B(s) ? Ve.has(s) : qe(s)) || (i || g(t, "get", s), n) ? a : b(a) ? o && ue(s) ? a : a.value : P(a) ? i ? Ke(a) : Pe(a) : a;
471
475
  }
472
476
  }
473
- class Je extends me {
477
+ class Ze extends Ie {
474
478
  constructor(t = !1) {
475
479
  super(!1, t);
476
480
  }
477
- set(t, n, i, s) {
478
- let r = t[n];
481
+ set(t, s, r, i) {
482
+ let n = t[s];
479
483
  if (!this._isShallow) {
480
- const a = T(r);
481
- if (!w(i) && !T(i) && (r = p(r), i = p(i)), !x(t) && S(r) && !S(i))
482
- return a ? !1 : (r.value = i, !0);
484
+ const c = I(n);
485
+ if (!E(r) && !I(r) && (n = h(n), r = h(r)), !m(t) && b(n) && !b(r))
486
+ return c ? !1 : (n.value = r, !0);
483
487
  }
484
- const o = x(t) && ie(n) ? Number(n) < t.length : Z(t, n), c = Reflect.set(
488
+ const o = m(t) && ue(s) ? Number(s) < t.length : oe(t, s), a = Reflect.set(
485
489
  t,
486
- n,
487
- i,
488
- S(t) ? t : s
490
+ s,
491
+ r,
492
+ b(t) ? t : i
489
493
  );
490
- return t === p(s) && (o ? M(i, r) && N(t, "set", n, i, r) : N(t, "add", n, i)), c;
494
+ return t === h(i) && (o ? x(r, n) && N(t, "set", s, r, n) : N(t, "add", s, r)), a;
491
495
  }
492
- deleteProperty(t, n) {
493
- const i = Z(t, n), s = t[n], r = Reflect.deleteProperty(t, n);
494
- return r && i && N(t, "delete", n, void 0, s), r;
496
+ deleteProperty(t, s) {
497
+ const r = oe(t, s), i = t[s], n = Reflect.deleteProperty(t, s);
498
+ return n && r && N(t, "delete", s, void 0, i), n;
495
499
  }
496
- has(t, n) {
497
- const i = Reflect.has(t, n);
498
- return (!L(n) || !ye.has(n)) && _(t, "has", n), i;
500
+ has(t, s) {
501
+ const r = Reflect.has(t, s);
502
+ return (!B(s) || !Ve.has(s)) && g(t, "has", s), r;
499
503
  }
500
504
  ownKeys(t) {
501
- return _(
505
+ return g(
502
506
  t,
503
507
  "iterate",
504
- x(t) ? "length" : m
508
+ m(t) ? "length" : V
505
509
  ), Reflect.ownKeys(t);
506
510
  }
507
511
  }
508
- class Qe extends me {
512
+ class ke extends Ie {
509
513
  constructor(t = !1) {
510
514
  super(!0, t);
511
515
  }
512
- set(t, n) {
516
+ set(t, s) {
513
517
  return process.env.NODE_ENV !== "production" && D(
514
- `Set operation on key "${String(n)}" failed: target is readonly.`,
518
+ `Set operation on key "${String(s)}" failed: target is readonly.`,
515
519
  t
516
520
  ), !0;
517
521
  }
518
- deleteProperty(t, n) {
522
+ deleteProperty(t, s) {
519
523
  return process.env.NODE_ENV !== "production" && D(
520
- `Delete operation on key "${String(n)}" failed: target is readonly.`,
524
+ `Delete operation on key "${String(s)}" failed: target is readonly.`,
521
525
  t
522
526
  ), !0;
523
527
  }
524
528
  }
525
- const Ue = /* @__PURE__ */ new Je(), qe = /* @__PURE__ */ new Qe(), ne = (e) => e, C = (e) => Reflect.getPrototypeOf(e);
526
- function Xe(e, t, n) {
527
- return function(...i) {
528
- const s = this.__v_raw, r = p(s), o = O(r), c = e === "entries" || e === Symbol.iterator && o, a = e === "keys" && o, d = s[e](...i), v = n ? ne : t ? se : g;
529
- return !t && _(
530
- r,
529
+ const et = /* @__PURE__ */ new Ze(), tt = /* @__PURE__ */ new ke(), fe = (e) => e, U = (e) => Reflect.getPrototypeOf(e);
530
+ function st(e, t, s) {
531
+ return function(...r) {
532
+ const i = this.__v_raw, n = h(i), o = j(n), a = e === "entries" || e === Symbol.iterator && o, c = e === "keys" && o, p = i[e](...r), _ = s ? fe : t ? le : v;
533
+ return !t && g(
534
+ n,
531
535
  "iterate",
532
- a ? te : m
536
+ c ? ce : V
533
537
  ), {
534
538
  // iterator protocol
535
539
  next() {
536
- const { value: f, done: h } = d.next();
537
- return h ? { value: f, done: h } : {
538
- value: c ? [v(f[0]), v(f[1])] : v(f),
539
- done: h
540
+ const { value: f, done: d } = p.next();
541
+ return d ? { value: f, done: d } : {
542
+ value: a ? [_(f[0]), _(f[1])] : _(f),
543
+ done: d
540
544
  };
541
545
  },
542
546
  // iterable protocol
@@ -546,80 +550,80 @@ function Xe(e, t, n) {
546
550
  };
547
551
  };
548
552
  }
549
- function $(e) {
553
+ function q(e) {
550
554
  return function(...t) {
551
555
  if (process.env.NODE_ENV !== "production") {
552
- const n = t[0] ? `on key "${t[0]}" ` : "";
556
+ const s = t[0] ? `on key "${t[0]}" ` : "";
553
557
  D(
554
- `${je(e)} operation ${n}failed: target is readonly.`,
555
- p(this)
558
+ `${Ce(e)} operation ${s}failed: target is readonly.`,
559
+ h(this)
556
560
  );
557
561
  }
558
562
  return e === "delete" ? !1 : e === "clear" ? void 0 : this;
559
563
  };
560
564
  }
561
- function Ze(e, t) {
562
- const n = {
563
- get(s) {
564
- const r = this.__v_raw, o = p(r), c = p(s);
565
- e || (M(s, c) && _(o, "get", s), _(o, "get", c));
566
- const { has: a } = C(o), d = t ? ne : e ? se : g;
567
- if (a.call(o, s))
568
- return d(r.get(s));
569
- if (a.call(o, c))
570
- return d(r.get(c));
571
- r !== o && r.get(s);
565
+ function it(e, t) {
566
+ const s = {
567
+ get(i) {
568
+ const n = this.__v_raw, o = h(n), a = h(i);
569
+ e || (x(i, a) && g(o, "get", i), g(o, "get", a));
570
+ const { has: c } = U(o), p = t ? fe : e ? le : v;
571
+ if (c.call(o, i))
572
+ return p(n.get(i));
573
+ if (c.call(o, a))
574
+ return p(n.get(a));
575
+ n !== o && n.get(i);
572
576
  },
573
577
  get size() {
574
- const s = this.__v_raw;
575
- return !e && _(p(s), "iterate", m), Reflect.get(s, "size", s);
578
+ const i = this.__v_raw;
579
+ return !e && g(h(i), "iterate", V), Reflect.get(i, "size", i);
576
580
  },
577
- has(s) {
578
- const r = this.__v_raw, o = p(r), c = p(s);
579
- return e || (M(s, c) && _(o, "has", s), _(o, "has", c)), s === c ? r.has(s) : r.has(s) || r.has(c);
581
+ has(i) {
582
+ const n = this.__v_raw, o = h(n), a = h(i);
583
+ return e || (x(i, a) && g(o, "has", i), g(o, "has", a)), i === a ? n.has(i) : n.has(i) || n.has(a);
580
584
  },
581
- forEach(s, r) {
582
- const o = this, c = o.__v_raw, a = p(c), d = t ? ne : e ? se : g;
583
- return !e && _(a, "iterate", m), c.forEach((v, f) => s.call(r, d(v), d(f), o));
585
+ forEach(i, n) {
586
+ const o = this, a = o.__v_raw, c = h(a), p = t ? fe : e ? le : v;
587
+ return !e && g(c, "iterate", V), a.forEach((_, f) => i.call(n, p(_), p(f), o));
584
588
  }
585
589
  };
586
- return X(
587
- n,
590
+ return ne(
591
+ s,
588
592
  e ? {
589
- add: $("add"),
590
- set: $("set"),
591
- delete: $("delete"),
592
- clear: $("clear")
593
+ add: q("add"),
594
+ set: q("set"),
595
+ delete: q("delete"),
596
+ clear: q("clear")
593
597
  } : {
594
- add(s) {
595
- !t && !w(s) && !T(s) && (s = p(s));
596
- const r = p(this);
597
- return C(r).has.call(r, s) || (r.add(s), N(r, "add", s, s)), this;
598
+ add(i) {
599
+ !t && !E(i) && !I(i) && (i = h(i));
600
+ const n = h(this);
601
+ return U(n).has.call(n, i) || (n.add(i), N(n, "add", i, i)), this;
598
602
  },
599
- set(s, r) {
600
- !t && !w(r) && !T(r) && (r = p(r));
601
- const o = p(this), { has: c, get: a } = C(o);
602
- let d = c.call(o, s);
603
- d ? process.env.NODE_ENV !== "production" && pe(o, c, s) : (s = p(s), d = c.call(o, s));
604
- const v = a.call(o, s);
605
- return o.set(s, r), d ? M(r, v) && N(o, "set", s, r, v) : N(o, "add", s, r), this;
603
+ set(i, n) {
604
+ !t && !E(n) && !I(n) && (n = h(n));
605
+ const o = h(this), { has: a, get: c } = U(o);
606
+ let p = a.call(o, i);
607
+ p ? process.env.NODE_ENV !== "production" && we(o, a, i) : (i = h(i), p = a.call(o, i));
608
+ const _ = c.call(o, i);
609
+ return o.set(i, n), p ? x(n, _) && N(o, "set", i, n, _) : N(o, "add", i, n), this;
606
610
  },
607
- delete(s) {
608
- const r = p(this), { has: o, get: c } = C(r);
609
- let a = o.call(r, s);
610
- a ? process.env.NODE_ENV !== "production" && pe(r, o, s) : (s = p(s), a = o.call(r, s));
611
- const d = c ? c.call(r, s) : void 0, v = r.delete(s);
612
- return a && N(r, "delete", s, void 0, d), v;
611
+ delete(i) {
612
+ const n = h(this), { has: o, get: a } = U(n);
613
+ let c = o.call(n, i);
614
+ c ? process.env.NODE_ENV !== "production" && we(n, o, i) : (i = h(i), c = o.call(n, i));
615
+ const p = a ? a.call(n, i) : void 0, _ = n.delete(i);
616
+ return c && N(n, "delete", i, void 0, p), _;
613
617
  },
614
618
  clear() {
615
- const s = p(this), r = s.size !== 0, o = process.env.NODE_ENV !== "production" ? O(s) ? new Map(s) : new Set(s) : void 0, c = s.clear();
616
- return r && N(
617
- s,
619
+ const i = h(this), n = i.size !== 0, o = process.env.NODE_ENV !== "production" ? j(i) ? new Map(i) : new Set(i) : void 0, a = i.clear();
620
+ return n && N(
621
+ i,
618
622
  "clear",
619
623
  void 0,
620
624
  void 0,
621
625
  o
622
- ), c;
626
+ ), a;
623
627
  }
624
628
  }
625
629
  ), [
@@ -627,34 +631,34 @@ function Ze(e, t) {
627
631
  "values",
628
632
  "entries",
629
633
  Symbol.iterator
630
- ].forEach((s) => {
631
- n[s] = Xe(s, e, t);
632
- }), n;
633
- }
634
- function Re(e, t) {
635
- const n = Ze(e, t);
636
- return (i, s, r) => s === "__v_isReactive" ? !e : s === "__v_isReadonly" ? e : s === "__v_raw" ? i : Reflect.get(
637
- Z(n, s) && s in i ? n : i,
638
- s,
639
- r
634
+ ].forEach((i) => {
635
+ s[i] = st(i, e, t);
636
+ }), s;
637
+ }
638
+ function Me(e, t) {
639
+ const s = it(e, t);
640
+ return (r, i, n) => i === "__v_isReactive" ? !e : i === "__v_isReadonly" ? e : i === "__v_raw" ? r : Reflect.get(
641
+ oe(s, i) && i in r ? s : r,
642
+ i,
643
+ n
640
644
  );
641
645
  }
642
- const ke = {
643
- get: /* @__PURE__ */ Re(!1, !1)
644
- }, et = {
645
- get: /* @__PURE__ */ Re(!0, !1)
646
+ const rt = {
647
+ get: /* @__PURE__ */ Me(!1, !1)
648
+ }, nt = {
649
+ get: /* @__PURE__ */ Me(!0, !1)
646
650
  };
647
- function pe(e, t, n) {
648
- const i = p(n);
649
- if (i !== n && t.call(e, i)) {
650
- const s = he(e);
651
+ function we(e, t, s) {
652
+ const r = h(s);
653
+ if (r !== s && t.call(e, r)) {
654
+ const i = Ee(e);
651
655
  D(
652
- `Reactive ${s} contains both the raw and reactive versions of the same object${s === "Map" ? " as keys" : ""}, which can lead to inconsistencies. Avoid differentiating between the raw and reactive versions of an object and only use the reactive version if possible.`
656
+ `Reactive ${i} contains both the raw and reactive versions of the same object${i === "Map" ? " as keys" : ""}, which can lead to inconsistencies. Avoid differentiating between the raw and reactive versions of an object and only use the reactive version if possible.`
653
657
  );
654
658
  }
655
659
  }
656
- const Oe = /* @__PURE__ */ new WeakMap(), tt = /* @__PURE__ */ new WeakMap(), Te = /* @__PURE__ */ new WeakMap(), nt = /* @__PURE__ */ new WeakMap();
657
- function st(e) {
660
+ const Ae = /* @__PURE__ */ new WeakMap(), ot = /* @__PURE__ */ new WeakMap(), je = /* @__PURE__ */ new WeakMap(), at = /* @__PURE__ */ new WeakMap();
661
+ function ct(e) {
658
662
  switch (e) {
659
663
  case "Object":
660
664
  case "Array":
@@ -668,29 +672,29 @@ function st(e) {
668
672
  return 0;
669
673
  }
670
674
  }
671
- function it(e) {
672
- return e.__v_skip || !Object.isExtensible(e) ? 0 : st(he(e));
675
+ function ft(e) {
676
+ return e.__v_skip || !Object.isExtensible(e) ? 0 : ct(Ee(e));
673
677
  }
674
- function Ve(e) {
675
- return T(e) ? e : Me(
678
+ function Pe(e) {
679
+ return I(e) ? e : Le(
676
680
  e,
677
681
  !1,
678
- Ue,
679
- ke,
680
- Oe
682
+ et,
683
+ rt,
684
+ Ae
681
685
  );
682
686
  }
683
- function Ie(e) {
684
- return Me(
687
+ function Ke(e) {
688
+ return Le(
685
689
  e,
686
690
  !0,
687
- qe,
688
- et,
689
- Te
691
+ tt,
692
+ nt,
693
+ je
690
694
  );
691
695
  }
692
- function Me(e, t, n, i, s) {
693
- if (!W(e))
696
+ function Le(e, t, s, r, i) {
697
+ if (!P(e))
694
698
  return process.env.NODE_ENV !== "production" && D(
695
699
  `value cannot be made ${t ? "readonly" : "reactive"}: ${String(
696
700
  e
@@ -698,52 +702,113 @@ function Me(e, t, n, i, s) {
698
702
  ), e;
699
703
  if (e.__v_raw && !(t && e.__v_isReactive))
700
704
  return e;
701
- const r = it(e);
702
- if (r === 0)
705
+ const n = ft(e);
706
+ if (n === 0)
703
707
  return e;
704
- const o = s.get(e);
708
+ const o = i.get(e);
705
709
  if (o)
706
710
  return o;
707
- const c = new Proxy(
711
+ const a = new Proxy(
708
712
  e,
709
- r === 2 ? i : n
713
+ n === 2 ? r : s
710
714
  );
711
- return s.set(e, c), c;
715
+ return i.set(e, a), a;
712
716
  }
713
- function Y(e) {
714
- return T(e) ? Y(e.__v_raw) : !!(e && e.__v_isReactive);
717
+ function Z(e) {
718
+ return I(e) ? Z(e.__v_raw) : !!(e && e.__v_isReactive);
715
719
  }
716
- function T(e) {
720
+ function I(e) {
717
721
  return !!(e && e.__v_isReadonly);
718
722
  }
719
- function w(e) {
723
+ function E(e) {
720
724
  return !!(e && e.__v_isShallow);
721
725
  }
722
- function rt(e) {
726
+ function lt(e) {
723
727
  return e ? !!e.__v_raw : !1;
724
728
  }
725
- function p(e) {
729
+ function h(e) {
726
730
  const t = e && e.__v_raw;
727
- return t ? p(t) : e;
731
+ return t ? h(t) : e;
728
732
  }
729
- const g = (e) => W(e) ? Ve(e) : e, se = (e) => W(e) ? Ie(e) : e;
730
- function S(e) {
733
+ const v = (e) => P(e) ? Pe(e) : e, le = (e) => P(e) ? Ke(e) : e;
734
+ function b(e) {
731
735
  return e ? e.__v_isRef === !0 : !1;
732
736
  }
733
- function ft(e) {
734
- return S(e) ? e.value : e;
737
+ function ut(e) {
738
+ return ht(e, !1);
735
739
  }
736
- class ot {
737
- constructor(t, n, i) {
738
- this.fn = t, this.setter = n, this._value = void 0, this.dep = new Ne(this), this.__v_isRef = !0, this.deps = void 0, this.depsTail = void 0, this.flags = 16, this.globalVersion = K - 1, this.next = void 0, this.effect = this, this.__v_isReadonly = !n, this.isSSR = i;
740
+ function ht(e, t) {
741
+ return b(e) ? e : new pt(e, t);
742
+ }
743
+ class pt {
744
+ constructor(t, s) {
745
+ this.dep = new _e(), this.__v_isRef = !0, this.__v_isShallow = !1, this._rawValue = s ? t : h(t), this._value = s ? t : v(t), this.__v_isShallow = s;
746
+ }
747
+ get value() {
748
+ return process.env.NODE_ENV !== "production" ? this.dep.track({
749
+ target: this,
750
+ type: "get",
751
+ key: "value"
752
+ }) : this.dep.track(), this._value;
753
+ }
754
+ set value(t) {
755
+ const s = this._rawValue, r = this.__v_isShallow || E(t) || I(t);
756
+ t = r ? t : h(t), x(t, s) && (this._rawValue = t, this._value = r ? t : v(t), process.env.NODE_ENV !== "production" ? this.dep.trigger({
757
+ target: this,
758
+ type: "set",
759
+ key: "value",
760
+ newValue: t,
761
+ oldValue: s
762
+ }) : this.dep.trigger());
763
+ }
764
+ }
765
+ function dt(e) {
766
+ return b(e) ? e.value : e;
767
+ }
768
+ function St(e) {
769
+ return $(e) ? e() : dt(e);
770
+ }
771
+ class _t {
772
+ constructor(t, s, r) {
773
+ this._object = t, this._key = s, this._defaultValue = r, this.__v_isRef = !0, this._value = void 0;
774
+ }
775
+ get value() {
776
+ const t = this._object[this._key];
777
+ return this._value = t === void 0 ? this._defaultValue : t;
778
+ }
779
+ set value(t) {
780
+ this._object[this._key] = t;
781
+ }
782
+ get dep() {
783
+ return Je(h(this._object), this._key);
784
+ }
785
+ }
786
+ class vt {
787
+ constructor(t) {
788
+ this._getter = t, this.__v_isRef = !0, this.__v_isReadonly = !0, this._value = void 0;
789
+ }
790
+ get value() {
791
+ return this._value = this._getter();
792
+ }
793
+ }
794
+ function yt(e, t, s) {
795
+ return b(e) ? e : $(e) ? new vt(e) : P(e) && arguments.length > 1 ? gt(e, t, s) : ut(e);
796
+ }
797
+ function gt(e, t, s) {
798
+ const r = e[t];
799
+ return b(r) ? r : new _t(e, t, s);
800
+ }
801
+ class bt {
802
+ constructor(t, s, r) {
803
+ this.fn = t, this.setter = s, this._value = void 0, this.dep = new _e(this), this.__v_isRef = !0, this.deps = void 0, this.depsTail = void 0, this.flags = 16, this.globalVersion = Y - 1, this.next = void 0, this.effect = this, this.__v_isReadonly = !s, this.isSSR = r;
739
804
  }
740
805
  /**
741
806
  * @internal
742
807
  */
743
808
  notify() {
744
809
  if (this.flags |= 16, !(this.flags & 8) && // avoid infinite self recursion
745
- l !== this)
746
- return _e(this, !0), !0;
810
+ u !== this)
811
+ return ye(this, !0), !0;
747
812
  process.env.NODE_ENV;
748
813
  }
749
814
  get value() {
@@ -752,124 +817,159 @@ class ot {
752
817
  type: "get",
753
818
  key: "value"
754
819
  }) : this.dep.track();
755
- return we(this), t && (t.version = this.dep.version), this._value;
820
+ return Re(this), t && (t.version = this.dep.version), this._value;
756
821
  }
757
822
  set value(t) {
758
823
  this.setter ? this.setter(t) : process.env.NODE_ENV !== "production" && D("Write operation failed: computed value is readonly");
759
824
  }
760
825
  }
761
- function lt(e, t, n = !1) {
762
- let i, s;
763
- q(e) ? i = e : (i = e.get, s = e.set);
764
- const r = new ot(i, s, n);
765
- return process.env.NODE_ENV, r;
826
+ function Dt(e, t, s = !1) {
827
+ let r, i;
828
+ $(e) ? r = e : (r = e.get, i = e.set);
829
+ const n = new bt(r, i, s);
830
+ return process.env.NODE_ENV, n;
766
831
  }
767
- const de = {}, B = /* @__PURE__ */ new WeakMap();
768
- let z;
769
- function ct(e, t = !1, n = z) {
770
- if (n) {
771
- let i = B.get(n);
772
- i || B.set(n, i = []), i.push(e);
832
+ const X = {}, ee = /* @__PURE__ */ new WeakMap();
833
+ let T;
834
+ function wt(e, t = !1, s = T) {
835
+ if (s) {
836
+ let r = ee.get(s);
837
+ r || ee.set(s, r = []), r.push(e);
773
838
  } else process.env.NODE_ENV !== "production" && !t && D(
774
839
  "onWatcherCleanup() was called when there was no active watcher to associate with."
775
840
  );
776
841
  }
777
- function ut(e, t, n = Pe) {
778
- const { immediate: i, deep: s, once: r, scheduler: o, augmentJob: c, call: a } = n, d = (u) => {
779
- (n.onWarn || D)(
842
+ function Nt(e, t, s = We) {
843
+ const { immediate: r, deep: i, once: n, scheduler: o, augmentJob: a, call: c } = s, p = (l) => {
844
+ (s.onWarn || D)(
780
845
  "Invalid watch source: ",
781
- u,
846
+ l,
782
847
  "A watch source can only be a getter/effect function, a ref, a reactive object, or an array of these types."
783
848
  );
784
- }, v = (u) => s ? u : w(u) || s === !1 || s === 0 ? y(u, 1) : y(u);
785
- let f, h, F, G, fe = !1;
786
- S(e) ? (h = () => e.value, w(e)) : Y(e) ? h = () => v(e) : x(e) ? (fe = !0, e.some((u) => Y(u) || w(u)), h = () => e.map((u) => {
787
- if (S(u))
788
- return u.value;
789
- if (Y(u))
790
- return v(u);
791
- if (q(u))
792
- return a ? a(u, 2) : u();
793
- process.env.NODE_ENV !== "production" && d(u);
794
- })) : q(e) ? h = () => {
795
- if (F) {
796
- Se();
849
+ }, _ = (l) => i ? l : E(l) || i === !1 || i === 0 ? R(l, 1) : R(l);
850
+ let f, d, K, F, G = !1, J = !1;
851
+ if (b(e) ? (d = () => e.value, G = E(e)) : Z(e) ? (d = () => _(e), G = !0) : m(e) ? (J = !0, G = e.some((l) => Z(l) || E(l)), d = () => e.map((l) => {
852
+ if (b(l))
853
+ return l.value;
854
+ if (Z(l))
855
+ return _(l);
856
+ if ($(l))
857
+ return c ? c(l, 2) : l();
858
+ process.env.NODE_ENV !== "production" && p(l);
859
+ })) : $(e) ? t ? d = c ? () => c(e, 2) : e : d = () => {
860
+ if (K) {
861
+ xe();
797
862
  try {
798
- F();
863
+ K();
799
864
  } finally {
800
- De();
865
+ Oe();
801
866
  }
802
867
  }
803
- const u = z;
804
- z = f;
868
+ const l = T;
869
+ T = f;
805
870
  try {
806
- return a ? a(e, 3, [G]) : e(G);
871
+ return c ? c(e, 3, [F]) : e(F);
807
872
  } finally {
808
- z = u;
873
+ T = l;
809
874
  }
810
- } : (h = Le, process.env.NODE_ENV !== "production" && d(e));
811
- const V = () => {
875
+ } : (d = $e, process.env.NODE_ENV !== "production" && p(e)), t && i) {
876
+ const l = d, S = i === !0 ? 1 / 0 : i;
877
+ d = () => R(l(), S);
878
+ }
879
+ const M = () => {
812
880
  f.stop();
813
881
  };
814
- fe && new Array(e.length).fill(de);
815
- const H = (u) => {
816
- !(f.flags & 1) || !f.dirty && !u || f.run();
882
+ if (n && t) {
883
+ const l = t;
884
+ t = (...S) => {
885
+ l(...S), M();
886
+ };
887
+ }
888
+ let O = J ? new Array(e.length).fill(X) : X;
889
+ const L = (l) => {
890
+ if (!(!(f.flags & 1) || !f.dirty && !l))
891
+ if (t) {
892
+ const S = f.run();
893
+ if (i || G || (J ? S.some((te, Q) => x(te, O[Q])) : x(S, O))) {
894
+ K && K();
895
+ const te = T;
896
+ T = f;
897
+ try {
898
+ const Q = [
899
+ S,
900
+ // pass undefined as the old value when it's changed for the first time
901
+ O === X ? void 0 : J && O[0] === X ? [] : O,
902
+ F
903
+ ];
904
+ c ? c(t, 3, Q) : (
905
+ // @ts-expect-error
906
+ t(...Q)
907
+ ), O = S;
908
+ } finally {
909
+ T = te;
910
+ }
911
+ }
912
+ } else
913
+ f.run();
817
914
  };
818
- return c && c(H), f = new Ce(h), f.scheduler = o ? () => o(H, !1) : H, G = (u) => ct(u, !1, f), F = f.onStop = () => {
819
- const u = B.get(f);
820
- if (u) {
821
- if (a)
822
- a(u, 4);
915
+ return a && a(L), f = new Be(d), f.scheduler = o ? () => o(L, !1) : L, F = (l) => wt(l, !1, f), K = f.onStop = () => {
916
+ const l = ee.get(f);
917
+ if (l) {
918
+ if (c)
919
+ c(l, 4);
823
920
  else
824
- for (const Ae of u) Ae();
825
- B.delete(f);
921
+ for (const S of l) S();
922
+ ee.delete(f);
826
923
  }
827
- }, process.env.NODE_ENV !== "production" && (f.onTrack = n.onTrack, f.onTrigger = n.onTrigger), o ? o(H.bind(null, !0), !0) : f.run(), V.pause = f.pause.bind(f), V.resume = f.resume.bind(f), V.stop = V, V;
924
+ }, process.env.NODE_ENV !== "production" && (f.onTrack = s.onTrack, f.onTrigger = s.onTrigger), t ? r ? L(!0) : O = f.run() : o ? o(L.bind(null, !0), !0) : f.run(), M.pause = f.pause.bind(f), M.resume = f.resume.bind(f), M.stop = M, M;
828
925
  }
829
- function y(e, t = 1 / 0, n) {
830
- if (t <= 0 || !W(e) || e.__v_skip || (n = n || /* @__PURE__ */ new Set(), n.has(e)))
926
+ function R(e, t = 1 / 0, s) {
927
+ if (t <= 0 || !P(e) || e.__v_skip || (s = s || /* @__PURE__ */ new Set(), s.has(e)))
831
928
  return e;
832
- if (n.add(e), t--, S(e))
833
- y(e.value, t, n);
834
- else if (x(e))
835
- for (let i = 0; i < e.length; i++)
836
- y(e[i], t, n);
837
- else if (We(e) || O(e))
838
- e.forEach((i) => {
839
- y(i, t, n);
929
+ if (s.add(e), t--, b(e))
930
+ R(e.value, t, s);
931
+ else if (m(e))
932
+ for (let r = 0; r < e.length; r++)
933
+ R(e[r], t, s);
934
+ else if (Ye(e) || j(e))
935
+ e.forEach((r) => {
936
+ R(r, t, s);
840
937
  });
841
- else if (He(e)) {
842
- for (const i in e)
843
- y(e[i], t, n);
844
- for (const i of Object.getOwnPropertySymbols(e))
845
- Object.prototype.propertyIsEnumerable.call(e, i) && y(e[i], t, n);
938
+ else if (ze(e)) {
939
+ for (const r in e)
940
+ R(e[r], t, s);
941
+ for (const r of Object.getOwnPropertySymbols(e))
942
+ Object.prototype.propertyIsEnumerable.call(e, r) && R(e[r], t, s);
846
943
  }
847
944
  return e;
848
945
  }
849
946
  export {
850
- j as ARRAY_ITERATE_KEY,
851
- m as ITERATE_KEY,
852
- te as MAP_KEY_ITERATE_KEY,
853
- Ce as ReactiveEffect,
854
- lt as computed,
855
- rt as isProxy,
856
- Y as isReactive,
857
- T as isReadonly,
858
- S as isRef,
859
- w as isShallow,
860
- ct as onWatcherCleanup,
861
- Se as pauseTracking,
862
- Ve as reactive,
863
- R as reactiveReadArray,
864
- Ie as readonly,
865
- De as resetTracking,
866
- ae as shallowReadArray,
867
- p as toRaw,
868
- g as toReactive,
869
- se as toReadonly,
870
- _ as track,
871
- y as traverse,
947
+ z as ARRAY_ITERATE_KEY,
948
+ V as ITERATE_KEY,
949
+ ce as MAP_KEY_ITERATE_KEY,
950
+ Be as ReactiveEffect,
951
+ Dt as computed,
952
+ lt as isProxy,
953
+ Z as isReactive,
954
+ I as isReadonly,
955
+ b as isRef,
956
+ E as isShallow,
957
+ wt as onWatcherCleanup,
958
+ xe as pauseTracking,
959
+ Pe as reactive,
960
+ A as reactiveReadArray,
961
+ Ke as readonly,
962
+ ut as ref,
963
+ Oe as resetTracking,
964
+ ve as shallowReadArray,
965
+ h as toRaw,
966
+ v as toReactive,
967
+ le as toReadonly,
968
+ yt as toRef,
969
+ St as toValue,
970
+ g as track,
971
+ R as traverse,
872
972
  N as trigger,
873
- ft as unref,
874
- ut as watch
973
+ dt as unref,
974
+ Nt as watch
875
975
  };