@solar-taro/ui-vant 1.4.2 → 1.5.0

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 (113) hide show
  1. package/CHANGELOG.md +10 -0
  2. package/cascader/index.vue.d.ts +2 -2
  3. package/cascader-picker/index.vue.d.ts +4 -4
  4. package/date-range-picker/index.vue.d.ts +1 -1
  5. package/index100.js +5 -5
  6. package/index101.js +5 -7
  7. package/index102.js +7 -17
  8. package/index103.js +17 -10
  9. package/index104.js +10 -5
  10. package/index105.js +4 -3
  11. package/index106.js +4 -4
  12. package/index107.js +4 -5
  13. package/index108.js +5 -6
  14. package/index109.js +7 -10
  15. package/index110.js +10 -32
  16. package/index111.js +1 -1
  17. package/index117.js +2 -2
  18. package/index118.js +2 -2
  19. package/index122.js +1 -1
  20. package/index124.js +1 -1
  21. package/index133.js +1 -1
  22. package/index140.js +1 -1
  23. package/index17.js +1 -1
  24. package/index18.js +1 -1
  25. package/index19.js +1 -1
  26. package/index20.js +1 -1
  27. package/index21.js +1 -1
  28. package/index22.js +1 -1
  29. package/index23.js +1 -1
  30. package/index24.js +1 -1
  31. package/index25.js +1 -1
  32. package/index26.js +1 -1
  33. package/index27.js +13 -5
  34. package/index28.js +9 -13
  35. package/index29.js +7 -8
  36. package/index3.js +1 -1
  37. package/index30.js +5 -8
  38. package/index32.js +6 -62
  39. package/index33.js +793 -3
  40. package/index34.js +63 -8
  41. package/index35.js +3 -6
  42. package/index36.js +8 -4
  43. package/index37.js +7 -2
  44. package/index38.js +2 -4
  45. package/index39.js +2 -10
  46. package/index4.js +1 -1
  47. package/index40.js +5 -4
  48. package/index41.js +10 -4
  49. package/index42.js +4 -2
  50. package/index43.js +4 -4
  51. package/index44.js +3 -8
  52. package/index45.js +3 -4
  53. package/index46.js +7 -4
  54. package/index47.js +4 -6
  55. package/index48.js +5 -6
  56. package/index49.js +7 -9
  57. package/index50.js +6 -5
  58. package/index51.js +9 -7
  59. package/index52.js +5 -5
  60. package/index53.js +6 -9
  61. package/index54.js +4 -6
  62. package/index55.js +9 -17
  63. package/index56.js +4 -9
  64. package/index57.js +17 -6
  65. package/index58.js +9 -10
  66. package/index59.js +6 -3
  67. package/index60.js +11 -10
  68. package/index61.js +3 -7
  69. package/index62.js +31 -9
  70. package/index63.js +7 -5
  71. package/index64.js +9 -6
  72. package/index65.js +10 -792
  73. package/index66.js +5 -5
  74. package/index67.js +6 -9
  75. package/index68.js +9 -16
  76. package/index69.js +15 -5
  77. package/index7.js +13 -16
  78. package/index70.js +5 -5
  79. package/index71.js +5 -8
  80. package/index72.js +8 -6
  81. package/index73.js +6 -5
  82. package/index74.js +4 -4
  83. package/index75.js +5 -6
  84. package/index76.js +5 -5
  85. package/index77.js +7 -26
  86. package/index78.js +26 -6
  87. package/index79.js +5 -39
  88. package/index80.js +39 -6
  89. package/index81.js +6 -5
  90. package/index82.js +6 -15
  91. package/index83.js +14 -7
  92. package/index84.js +8 -2
  93. package/index85.js +2 -3
  94. package/index86.js +3 -13
  95. package/index87.js +12 -4
  96. package/index88.js +5 -3
  97. package/index89.js +3 -4
  98. package/index9.js +2 -2
  99. package/index90.js +4 -4
  100. package/index91.js +3 -3
  101. package/index92.js +4 -4
  102. package/index93.js +4 -4
  103. package/index94.js +3 -14
  104. package/index95.js +14 -13
  105. package/index96.js +13 -8
  106. package/index97.js +9 -3
  107. package/index98.js +3 -6
  108. package/index99.js +5 -5
  109. package/list/index.vue.d.ts +1 -1
  110. package/modal/index.vue.d.ts +2 -2
  111. package/package.json +1 -1
  112. package/select-picker/index.vue.d.ts +4 -4
  113. package/selector/index.vue.d.ts +2 -2
package/index33.js CHANGED
@@ -1,6 +1,796 @@
1
- function t(n, f) {
2
- return n === f || n !== n && f !== f;
1
+ import { isSymbol as A, hasChanged as x, extend as C, isObject as j, toRawType as re, isArray as R, isIntegerKey as q, hasOwn as Y, isMap as y, makeMap as be, capitalize as we } from "./index62.js";
2
+ /**
3
+ * @vue/reactivity v3.5.13
4
+ * (c) 2018-present Yuxi (Evan) You and Vue contributors
5
+ * @license MIT
6
+ **/
7
+ function m(e, ...t) {
8
+ console.warn(`[Vue warn] ${e}`, ...t);
9
+ }
10
+ let f;
11
+ const H = /* @__PURE__ */ new WeakSet();
12
+ class k {
13
+ constructor(t) {
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
+ }
16
+ pause() {
17
+ this.flags |= 64;
18
+ }
19
+ resume() {
20
+ this.flags & 64 && (this.flags &= -65, H.has(this) && (H.delete(this), this.trigger()));
21
+ }
22
+ /**
23
+ * @internal
24
+ */
25
+ notify() {
26
+ this.flags & 2 && !(this.flags & 32) || this.flags & 8 || Ee(this);
27
+ }
28
+ run() {
29
+ if (!(this.flags & 1))
30
+ return this.fn();
31
+ this.flags |= 2, ee(this), ie(this);
32
+ const t = f, s = g;
33
+ f = this, g = !0;
34
+ try {
35
+ return this.fn();
36
+ } finally {
37
+ process.env.NODE_ENV !== "production" && f !== this && m(
38
+ "Active effect was not restored correctly - this is likely a Vue internal bug."
39
+ ), oe(this), f = t, g = s, this.flags &= -3;
40
+ }
41
+ }
42
+ stop() {
43
+ if (this.flags & 1) {
44
+ for (let t = this.deps; t; t = t.nextDep)
45
+ X(t);
46
+ this.deps = this.depsTail = void 0, ee(this), this.onStop && this.onStop(), this.flags &= -2;
47
+ }
48
+ }
49
+ trigger() {
50
+ this.flags & 64 ? H.add(this) : this.scheduler ? this.scheduler() : this.runIfDirty();
51
+ }
52
+ /**
53
+ * @internal
54
+ */
55
+ runIfDirty() {
56
+ z(this) && this.run();
57
+ }
58
+ get dirty() {
59
+ return z(this);
60
+ }
61
+ }
62
+ let ne = 0, M, I;
63
+ function Ee(e, t = !1) {
64
+ if (e.flags |= 8, t) {
65
+ e.next = I, I = e;
66
+ return;
67
+ }
68
+ e.next = M, M = e;
69
+ }
70
+ function J() {
71
+ ne++;
72
+ }
73
+ function U() {
74
+ if (--ne > 0)
75
+ return;
76
+ if (I) {
77
+ let t = I;
78
+ for (I = void 0; t; ) {
79
+ const s = t.next;
80
+ t.next = void 0, t.flags &= -9, t = s;
81
+ }
82
+ }
83
+ let e;
84
+ for (; M; ) {
85
+ let t = M;
86
+ for (M = void 0; t; ) {
87
+ const s = t.next;
88
+ if (t.next = void 0, t.flags &= -9, t.flags & 1)
89
+ try {
90
+ t.trigger();
91
+ } catch (n) {
92
+ e || (e = n);
93
+ }
94
+ t = s;
95
+ }
96
+ }
97
+ if (e) throw e;
98
+ }
99
+ function ie(e) {
100
+ for (let t = e.deps; t; t = t.nextDep)
101
+ t.version = -1, t.prevActiveLink = t.dep.activeLink, t.dep.activeLink = t;
102
+ }
103
+ function oe(e) {
104
+ let t, s = e.depsTail, n = s;
105
+ for (; n; ) {
106
+ const r = n.prevDep;
107
+ n.version === -1 ? (n === s && (s = r), X(n), De(n)) : t = n, n.dep.activeLink = n.prevActiveLink, n.prevActiveLink = void 0, n = r;
108
+ }
109
+ e.deps = t, e.depsTail = s;
110
+ }
111
+ function z(e) {
112
+ for (let t = e.deps; t; t = t.nextDep)
113
+ if (t.dep.version !== t.version || t.dep.computed && (Se(t.dep.computed) || t.dep.version !== t.version))
114
+ return !0;
115
+ return !!e._dirty;
116
+ }
117
+ function Se(e) {
118
+ if (e.flags & 4 && !(e.flags & 16) || (e.flags &= -17, e.globalVersion === L))
119
+ return;
120
+ e.globalVersion = L;
121
+ const t = e.dep;
122
+ if (e.flags |= 2, t.version > 0 && !e.isSSR && e.deps && !z(e)) {
123
+ e.flags &= -3;
124
+ return;
125
+ }
126
+ const s = f, n = g;
127
+ f = e, g = !0;
128
+ try {
129
+ ie(e);
130
+ const r = e.fn(e._value);
131
+ (t.version === 0 || x(r, e._value)) && (e._value = r, t.version++);
132
+ } catch (r) {
133
+ throw t.version++, r;
134
+ } finally {
135
+ f = s, g = n, oe(e), e.flags &= -3;
136
+ }
137
+ }
138
+ function X(e, t = !1) {
139
+ const { dep: s, prevSub: n, nextSub: r } = e;
140
+ if (n && (n.nextSub = r, e.prevSub = void 0), r && (r.prevSub = n, e.nextSub = void 0), process.env.NODE_ENV !== "production" && s.subsHead === e && (s.subsHead = r), s.subs === e && (s.subs = n, !n && s.computed)) {
141
+ s.computed.flags &= -5;
142
+ for (let i = s.computed.deps; i; i = i.nextDep)
143
+ X(i, !0);
144
+ }
145
+ !t && !--s.sc && s.map && s.map.delete(s.key);
146
+ }
147
+ function De(e) {
148
+ const { prevDep: t, nextDep: s } = e;
149
+ t && (t.nextDep = s, e.prevDep = void 0), s && (s.prevDep = t, e.nextDep = void 0);
150
+ }
151
+ function Ge(e, t) {
152
+ e.effect instanceof k && (e = e.effect.fn);
153
+ const s = new k(e);
154
+ try {
155
+ s.run();
156
+ } catch (r) {
157
+ throw s.stop(), r;
158
+ }
159
+ const n = s.run.bind(s);
160
+ return n.effect = s, n;
161
+ }
162
+ let g = !0;
163
+ const ce = [];
164
+ function xe() {
165
+ ce.push(g), g = !1;
166
+ }
167
+ function Re() {
168
+ const e = ce.pop();
169
+ g = e === void 0 ? !0 : e;
170
+ }
171
+ function ee(e) {
172
+ const { cleanup: t } = e;
173
+ if (e.cleanup = void 0, t) {
174
+ const s = f;
175
+ f = void 0;
176
+ try {
177
+ t();
178
+ } finally {
179
+ f = s;
180
+ }
181
+ }
182
+ }
183
+ let L = 0;
184
+ class Ne {
185
+ constructor(t, s) {
186
+ this.sub = t, this.dep = s, this.version = s.version, this.nextDep = this.prevDep = this.nextSub = this.prevSub = this.prevActiveLink = void 0;
187
+ }
188
+ }
189
+ class ae {
190
+ constructor(t) {
191
+ 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);
192
+ }
193
+ track(t) {
194
+ if (!f || !g || f === this.computed)
195
+ return;
196
+ let s = this.activeLink;
197
+ if (s === void 0 || s.sub !== f)
198
+ s = this.activeLink = new Ne(f, this), f.deps ? (s.prevDep = f.depsTail, f.depsTail.nextDep = s, f.depsTail = s) : f.deps = f.depsTail = s, fe(s);
199
+ else if (s.version === -1 && (s.version = this.version, s.nextDep)) {
200
+ const n = s.nextDep;
201
+ n.prevDep = s.prevDep, s.prevDep && (s.prevDep.nextDep = n), s.prevDep = f.depsTail, s.nextDep = void 0, f.depsTail.nextDep = s, f.depsTail = s, f.deps === s && (f.deps = n);
202
+ }
203
+ return process.env.NODE_ENV !== "production" && f.onTrack && f.onTrack(
204
+ C(
205
+ {
206
+ effect: f
207
+ },
208
+ t
209
+ )
210
+ ), s;
211
+ }
212
+ trigger(t) {
213
+ this.version++, L++, this.notify(t);
214
+ }
215
+ notify(t) {
216
+ J();
217
+ try {
218
+ if (process.env.NODE_ENV !== "production")
219
+ for (let s = this.subsHead; s; s = s.nextSub)
220
+ s.sub.onTrigger && !(s.sub.flags & 8) && s.sub.onTrigger(
221
+ C(
222
+ {
223
+ effect: s.sub
224
+ },
225
+ t
226
+ )
227
+ );
228
+ for (let s = this.subs; s; s = s.prevSub)
229
+ s.sub.notify() && s.sub.dep.notify();
230
+ } finally {
231
+ U();
232
+ }
233
+ }
234
+ }
235
+ function fe(e) {
236
+ if (e.dep.sc++, e.sub.flags & 4) {
237
+ const t = e.dep.computed;
238
+ if (t && !e.dep.subs) {
239
+ t.flags |= 20;
240
+ for (let n = t.deps; n; n = n.nextDep)
241
+ fe(n);
242
+ }
243
+ const s = e.dep.subs;
244
+ 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;
245
+ }
246
+ }
247
+ const B = /* @__PURE__ */ new WeakMap(), S = Symbol(
248
+ process.env.NODE_ENV !== "production" ? "Object iterate" : ""
249
+ ), F = Symbol(
250
+ process.env.NODE_ENV !== "production" ? "Map keys iterate" : ""
251
+ ), V = Symbol(
252
+ process.env.NODE_ENV !== "production" ? "Array iterate" : ""
253
+ );
254
+ function v(e, t, s) {
255
+ if (g && f) {
256
+ let n = B.get(e);
257
+ n || B.set(e, n = /* @__PURE__ */ new Map());
258
+ let r = n.get(s);
259
+ r || (n.set(s, r = new ae()), r.map = n, r.key = s), process.env.NODE_ENV !== "production" ? r.track({
260
+ target: e,
261
+ type: t,
262
+ key: s
263
+ }) : r.track();
264
+ }
265
+ }
266
+ function w(e, t, s, n, r, i) {
267
+ const o = B.get(e);
268
+ if (!o) {
269
+ L++;
270
+ return;
271
+ }
272
+ const c = (a) => {
273
+ a && (process.env.NODE_ENV !== "production" ? a.trigger({
274
+ target: e,
275
+ type: t,
276
+ key: s,
277
+ newValue: n,
278
+ oldValue: r,
279
+ oldTarget: i
280
+ }) : a.trigger());
281
+ };
282
+ if (J(), t === "clear")
283
+ o.forEach(c);
284
+ else {
285
+ const a = R(e), l = a && q(s);
286
+ if (a && s === "length") {
287
+ const p = Number(n);
288
+ o.forEach((d, _) => {
289
+ (_ === "length" || _ === V || !A(_) && _ >= p) && c(d);
290
+ });
291
+ } else
292
+ switch ((s !== void 0 || o.has(void 0)) && c(o.get(s)), l && c(o.get(V)), t) {
293
+ case "add":
294
+ a ? l && c(o.get("length")) : (c(o.get(S)), y(e) && c(o.get(F)));
295
+ break;
296
+ case "delete":
297
+ a || (c(o.get(S)), y(e) && c(o.get(F)));
298
+ break;
299
+ case "set":
300
+ y(e) && c(o.get(S));
301
+ break;
302
+ }
303
+ }
304
+ U();
305
+ }
306
+ function D(e) {
307
+ const t = u(e);
308
+ return t === e ? t : (v(t, "iterate", V), E(e) ? t : t.map(h));
309
+ }
310
+ function Z(e) {
311
+ return v(e = u(e), "iterate", V), e;
312
+ }
313
+ const me = {
314
+ __proto__: null,
315
+ [Symbol.iterator]() {
316
+ return $(this, Symbol.iterator, h);
317
+ },
318
+ concat(...e) {
319
+ return D(this).concat(
320
+ ...e.map((t) => R(t) ? D(t) : t)
321
+ );
322
+ },
323
+ entries() {
324
+ return $(this, "entries", (e) => (e[1] = h(e[1]), e));
325
+ },
326
+ every(e, t) {
327
+ return b(this, "every", e, t, void 0, arguments);
328
+ },
329
+ filter(e, t) {
330
+ return b(this, "filter", e, t, (s) => s.map(h), arguments);
331
+ },
332
+ find(e, t) {
333
+ return b(this, "find", e, t, h, arguments);
334
+ },
335
+ findIndex(e, t) {
336
+ return b(this, "findIndex", e, t, void 0, arguments);
337
+ },
338
+ findLast(e, t) {
339
+ return b(this, "findLast", e, t, h, arguments);
340
+ },
341
+ findLastIndex(e, t) {
342
+ return b(this, "findLastIndex", e, t, void 0, arguments);
343
+ },
344
+ // flat, flatMap could benefit from ARRAY_ITERATE but are not straight-forward to implement
345
+ forEach(e, t) {
346
+ return b(this, "forEach", e, t, void 0, arguments);
347
+ },
348
+ includes(...e) {
349
+ return W(this, "includes", e);
350
+ },
351
+ indexOf(...e) {
352
+ return W(this, "indexOf", e);
353
+ },
354
+ join(e) {
355
+ return D(this).join(e);
356
+ },
357
+ // keys() iterator only reads `length`, no optimisation required
358
+ lastIndexOf(...e) {
359
+ return W(this, "lastIndexOf", e);
360
+ },
361
+ map(e, t) {
362
+ return b(this, "map", e, t, void 0, arguments);
363
+ },
364
+ pop() {
365
+ return T(this, "pop");
366
+ },
367
+ push(...e) {
368
+ return T(this, "push", e);
369
+ },
370
+ reduce(e, ...t) {
371
+ return te(this, "reduce", e, t);
372
+ },
373
+ reduceRight(e, ...t) {
374
+ return te(this, "reduceRight", e, t);
375
+ },
376
+ shift() {
377
+ return T(this, "shift");
378
+ },
379
+ // slice could use ARRAY_ITERATE but also seems to beg for range tracking
380
+ some(e, t) {
381
+ return b(this, "some", e, t, void 0, arguments);
382
+ },
383
+ splice(...e) {
384
+ return T(this, "splice", e);
385
+ },
386
+ toReversed() {
387
+ return D(this).toReversed();
388
+ },
389
+ toSorted(e) {
390
+ return D(this).toSorted(e);
391
+ },
392
+ toSpliced(...e) {
393
+ return D(this).toSpliced(...e);
394
+ },
395
+ unshift(...e) {
396
+ return T(this, "unshift", e);
397
+ },
398
+ values() {
399
+ return $(this, "values", h);
400
+ }
401
+ };
402
+ function $(e, t, s) {
403
+ const n = Z(e), r = n[t]();
404
+ return n !== e && !E(e) && (r._next = r.next, r.next = () => {
405
+ const i = r._next();
406
+ return i.value && (i.value = s(i.value)), i;
407
+ }), r;
408
+ }
409
+ const Oe = Array.prototype;
410
+ function b(e, t, s, n, r, i) {
411
+ const o = Z(e), c = o !== e && !E(e), a = o[t];
412
+ if (a !== Oe[t]) {
413
+ const d = a.apply(e, i);
414
+ return c ? h(d) : d;
415
+ }
416
+ let l = s;
417
+ o !== e && (c ? l = function(d, _) {
418
+ return s.call(this, h(d), _, e);
419
+ } : s.length > 2 && (l = function(d, _) {
420
+ return s.call(this, d, _, e);
421
+ }));
422
+ const p = a.call(o, l, n);
423
+ return c && r ? r(p) : p;
424
+ }
425
+ function te(e, t, s, n) {
426
+ const r = Z(e);
427
+ let i = s;
428
+ return r !== e && (E(e) ? s.length > 3 && (i = function(o, c, a) {
429
+ return s.call(this, o, c, a, e);
430
+ }) : i = function(o, c, a) {
431
+ return s.call(this, o, h(c), a, e);
432
+ }), r[t](i, ...n);
433
+ }
434
+ function W(e, t, s) {
435
+ const n = u(e);
436
+ v(n, "iterate", V);
437
+ const r = n[t](...s);
438
+ return (r === -1 || r === !1) && Ye(s[0]) ? (s[0] = u(s[0]), n[t](...s)) : r;
439
+ }
440
+ function T(e, t, s = []) {
441
+ xe(), J();
442
+ const n = u(e)[t].apply(e, s);
443
+ return U(), Re(), n;
444
+ }
445
+ const Te = /* @__PURE__ */ be("__proto__,__v_isRef,__isVue"), ue = new Set(
446
+ /* @__PURE__ */ Object.getOwnPropertyNames(Symbol).filter((e) => e !== "arguments" && e !== "caller").map((e) => Symbol[e]).filter(A)
447
+ );
448
+ function ye(e) {
449
+ A(e) || (e = String(e));
450
+ const t = u(this);
451
+ return v(t, "has", e), t.hasOwnProperty(e);
452
+ }
453
+ class le {
454
+ constructor(t = !1, s = !1) {
455
+ this._isReadonly = t, this._isShallow = s;
456
+ }
457
+ get(t, s, n) {
458
+ if (s === "__v_skip") return t.__v_skip;
459
+ const r = this._isReadonly, i = this._isShallow;
460
+ if (s === "__v_isReactive")
461
+ return !r;
462
+ if (s === "__v_isReadonly")
463
+ return r;
464
+ if (s === "__v_isShallow")
465
+ return i;
466
+ if (s === "__v_raw")
467
+ return n === (r ? i ? $e : he : i ? He : de).get(t) || // receiver is not the reactive proxy, but has the same prototype
468
+ // this means the receiver is a user proxy of the reactive proxy
469
+ Object.getPrototypeOf(t) === Object.getPrototypeOf(n) ? t : void 0;
470
+ const o = R(t);
471
+ if (!r) {
472
+ let a;
473
+ if (o && (a = me[s]))
474
+ return a;
475
+ if (s === "hasOwnProperty")
476
+ return ye;
477
+ }
478
+ const c = Reflect.get(
479
+ t,
480
+ s,
481
+ // if this is a proxy wrapping a ref, return methods using the raw ref
482
+ // as receiver so that we don't have to call `toRaw` on the ref in all
483
+ // its class methods
484
+ N(t) ? t : n
485
+ );
486
+ return (A(s) ? ue.has(s) : Te(s)) || (r || v(t, "get", s), i) ? c : N(c) ? o && q(s) ? c : c.value : j(c) ? r ? _e(c) : ve(c) : c;
487
+ }
488
+ }
489
+ class Me extends le {
490
+ constructor(t = !1) {
491
+ super(!1, t);
492
+ }
493
+ set(t, s, n, r) {
494
+ let i = t[s];
495
+ if (!this._isShallow) {
496
+ const a = O(i);
497
+ if (!E(n) && !O(n) && (i = u(i), n = u(n)), !R(t) && N(i) && !N(n))
498
+ return a ? !1 : (i.value = n, !0);
499
+ }
500
+ const o = R(t) && q(s) ? Number(s) < t.length : Y(t, s), c = Reflect.set(
501
+ t,
502
+ s,
503
+ n,
504
+ N(t) ? t : r
505
+ );
506
+ return t === u(r) && (o ? x(n, i) && w(t, "set", s, n, i) : w(t, "add", s, n)), c;
507
+ }
508
+ deleteProperty(t, s) {
509
+ const n = Y(t, s), r = t[s], i = Reflect.deleteProperty(t, s);
510
+ return i && n && w(t, "delete", s, void 0, r), i;
511
+ }
512
+ has(t, s) {
513
+ const n = Reflect.has(t, s);
514
+ return (!A(s) || !ue.has(s)) && v(t, "has", s), n;
515
+ }
516
+ ownKeys(t) {
517
+ return v(
518
+ t,
519
+ "iterate",
520
+ R(t) ? "length" : S
521
+ ), Reflect.ownKeys(t);
522
+ }
523
+ }
524
+ class Ie extends le {
525
+ constructor(t = !1) {
526
+ super(!0, t);
527
+ }
528
+ set(t, s) {
529
+ return process.env.NODE_ENV !== "production" && m(
530
+ `Set operation on key "${String(s)}" failed: target is readonly.`,
531
+ t
532
+ ), !0;
533
+ }
534
+ deleteProperty(t, s) {
535
+ return process.env.NODE_ENV !== "production" && m(
536
+ `Delete operation on key "${String(s)}" failed: target is readonly.`,
537
+ t
538
+ ), !0;
539
+ }
540
+ }
541
+ const Ve = /* @__PURE__ */ new Me(), Ae = /* @__PURE__ */ new Ie(), G = (e) => e, K = (e) => Reflect.getPrototypeOf(e);
542
+ function Ke(e, t, s) {
543
+ return function(...n) {
544
+ const r = this.__v_raw, i = u(r), o = y(i), c = e === "entries" || e === Symbol.iterator && o, a = e === "keys" && o, l = r[e](...n), p = s ? G : t ? Q : h;
545
+ return !t && v(
546
+ i,
547
+ "iterate",
548
+ a ? F : S
549
+ ), {
550
+ // iterator protocol
551
+ next() {
552
+ const { value: d, done: _ } = l.next();
553
+ return _ ? { value: d, done: _ } : {
554
+ value: c ? [p(d[0]), p(d[1])] : p(d),
555
+ done: _
556
+ };
557
+ },
558
+ // iterable protocol
559
+ [Symbol.iterator]() {
560
+ return this;
561
+ }
562
+ };
563
+ };
564
+ }
565
+ function P(e) {
566
+ return function(...t) {
567
+ if (process.env.NODE_ENV !== "production") {
568
+ const s = t[0] ? `on key "${t[0]}" ` : "";
569
+ m(
570
+ `${we(e)} operation ${s}failed: target is readonly.`,
571
+ u(this)
572
+ );
573
+ }
574
+ return e === "delete" ? !1 : e === "clear" ? void 0 : this;
575
+ };
576
+ }
577
+ function Pe(e, t) {
578
+ const s = {
579
+ get(r) {
580
+ const i = this.__v_raw, o = u(i), c = u(r);
581
+ e || (x(r, c) && v(o, "get", r), v(o, "get", c));
582
+ const { has: a } = K(o), l = t ? G : e ? Q : h;
583
+ if (a.call(o, r))
584
+ return l(i.get(r));
585
+ if (a.call(o, c))
586
+ return l(i.get(c));
587
+ i !== o && i.get(r);
588
+ },
589
+ get size() {
590
+ const r = this.__v_raw;
591
+ return !e && v(u(r), "iterate", S), Reflect.get(r, "size", r);
592
+ },
593
+ has(r) {
594
+ const i = this.__v_raw, o = u(i), c = u(r);
595
+ return e || (x(r, c) && v(o, "has", r), v(o, "has", c)), r === c ? i.has(r) : i.has(r) || i.has(c);
596
+ },
597
+ forEach(r, i) {
598
+ const o = this, c = o.__v_raw, a = u(c), l = t ? G : e ? Q : h;
599
+ return !e && v(a, "iterate", S), c.forEach((p, d) => r.call(i, l(p), l(d), o));
600
+ }
601
+ };
602
+ return C(
603
+ s,
604
+ e ? {
605
+ add: P("add"),
606
+ set: P("set"),
607
+ delete: P("delete"),
608
+ clear: P("clear")
609
+ } : {
610
+ add(r) {
611
+ !t && !E(r) && !O(r) && (r = u(r));
612
+ const i = u(this);
613
+ return K(i).has.call(i, r) || (i.add(r), w(i, "add", r, r)), this;
614
+ },
615
+ set(r, i) {
616
+ !t && !E(i) && !O(i) && (i = u(i));
617
+ const o = u(this), { has: c, get: a } = K(o);
618
+ let l = c.call(o, r);
619
+ l ? process.env.NODE_ENV !== "production" && se(o, c, r) : (r = u(r), l = c.call(o, r));
620
+ const p = a.call(o, r);
621
+ return o.set(r, i), l ? x(i, p) && w(o, "set", r, i, p) : w(o, "add", r, i), this;
622
+ },
623
+ delete(r) {
624
+ const i = u(this), { has: o, get: c } = K(i);
625
+ let a = o.call(i, r);
626
+ a ? process.env.NODE_ENV !== "production" && se(i, o, r) : (r = u(r), a = o.call(i, r));
627
+ const l = c ? c.call(i, r) : void 0, p = i.delete(r);
628
+ return a && w(i, "delete", r, void 0, l), p;
629
+ },
630
+ clear() {
631
+ const r = u(this), i = r.size !== 0, o = process.env.NODE_ENV !== "production" ? y(r) ? new Map(r) : new Set(r) : void 0, c = r.clear();
632
+ return i && w(
633
+ r,
634
+ "clear",
635
+ void 0,
636
+ void 0,
637
+ o
638
+ ), c;
639
+ }
640
+ }
641
+ ), [
642
+ "keys",
643
+ "values",
644
+ "entries",
645
+ Symbol.iterator
646
+ ].forEach((r) => {
647
+ s[r] = Ke(r, e, t);
648
+ }), s;
649
+ }
650
+ function pe(e, t) {
651
+ const s = Pe(e, t);
652
+ return (n, r, i) => r === "__v_isReactive" ? !e : r === "__v_isReadonly" ? e : r === "__v_raw" ? n : Reflect.get(
653
+ Y(s, r) && r in n ? s : n,
654
+ r,
655
+ i
656
+ );
657
+ }
658
+ const Le = {
659
+ get: /* @__PURE__ */ pe(!1, !1)
660
+ }, je = {
661
+ get: /* @__PURE__ */ pe(!0, !1)
662
+ };
663
+ function se(e, t, s) {
664
+ const n = u(s);
665
+ if (n !== s && t.call(e, n)) {
666
+ const r = re(e);
667
+ m(
668
+ `Reactive ${r} contains both the raw and reactive versions of the same object${r === "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.`
669
+ );
670
+ }
671
+ }
672
+ const de = /* @__PURE__ */ new WeakMap(), He = /* @__PURE__ */ new WeakMap(), he = /* @__PURE__ */ new WeakMap(), $e = /* @__PURE__ */ new WeakMap();
673
+ function We(e) {
674
+ switch (e) {
675
+ case "Object":
676
+ case "Array":
677
+ return 1;
678
+ case "Map":
679
+ case "Set":
680
+ case "WeakMap":
681
+ case "WeakSet":
682
+ return 2;
683
+ default:
684
+ return 0;
685
+ }
686
+ }
687
+ function Ce(e) {
688
+ return e.__v_skip || !Object.isExtensible(e) ? 0 : We(re(e));
689
+ }
690
+ function ve(e) {
691
+ return O(e) ? e : ge(
692
+ e,
693
+ !1,
694
+ Ve,
695
+ Le,
696
+ de
697
+ );
698
+ }
699
+ function _e(e) {
700
+ return ge(
701
+ e,
702
+ !0,
703
+ Ae,
704
+ je,
705
+ he
706
+ );
707
+ }
708
+ function ge(e, t, s, n, r) {
709
+ if (!j(e))
710
+ return process.env.NODE_ENV !== "production" && m(
711
+ `value cannot be made ${t ? "readonly" : "reactive"}: ${String(
712
+ e
713
+ )}`
714
+ ), e;
715
+ if (e.__v_raw && !(t && e.__v_isReactive))
716
+ return e;
717
+ const i = r.get(e);
718
+ if (i)
719
+ return i;
720
+ const o = Ce(e);
721
+ if (o === 0)
722
+ return e;
723
+ const c = new Proxy(
724
+ e,
725
+ o === 2 ? n : s
726
+ );
727
+ return r.set(e, c), c;
728
+ }
729
+ function O(e) {
730
+ return !!(e && e.__v_isReadonly);
731
+ }
732
+ function E(e) {
733
+ return !!(e && e.__v_isShallow);
734
+ }
735
+ function Ye(e) {
736
+ return e ? !!e.__v_raw : !1;
737
+ }
738
+ function u(e) {
739
+ const t = e && e.__v_raw;
740
+ return t ? u(t) : e;
741
+ }
742
+ const h = (e) => j(e) ? ve(e) : e, Q = (e) => j(e) ? _e(e) : e;
743
+ function N(e) {
744
+ return e ? e.__v_isRef === !0 : !1;
745
+ }
746
+ function Qe(e) {
747
+ return ze(e, !1);
748
+ }
749
+ function ze(e, t) {
750
+ return N(e) ? e : new Be(e, t);
751
+ }
752
+ class Be {
753
+ constructor(t, s) {
754
+ this.dep = new ae(), this.__v_isRef = !0, this.__v_isShallow = !1, this._rawValue = s ? t : u(t), this._value = s ? t : h(t), this.__v_isShallow = s;
755
+ }
756
+ get value() {
757
+ return process.env.NODE_ENV !== "production" ? this.dep.track({
758
+ target: this,
759
+ type: "get",
760
+ key: "value"
761
+ }) : this.dep.track(), this._value;
762
+ }
763
+ set value(t) {
764
+ const s = this._rawValue, n = this.__v_isShallow || E(t) || O(t);
765
+ t = n ? t : u(t), x(t, s) && (this._rawValue = t, this._value = n ? t : h(t), process.env.NODE_ENV !== "production" ? this.dep.trigger({
766
+ target: this,
767
+ type: "set",
768
+ key: "value",
769
+ newValue: t,
770
+ oldValue: s
771
+ }) : this.dep.trigger());
772
+ }
3
773
  }
4
774
  export {
5
- t as default
775
+ V as ARRAY_ITERATE_KEY,
776
+ S as ITERATE_KEY,
777
+ F as MAP_KEY_ITERATE_KEY,
778
+ k as ReactiveEffect,
779
+ Ge as effect,
780
+ Ye as isProxy,
781
+ O as isReadonly,
782
+ N as isRef,
783
+ E as isShallow,
784
+ xe as pauseTracking,
785
+ ve as reactive,
786
+ D as reactiveReadArray,
787
+ _e as readonly,
788
+ Qe as ref,
789
+ Re as resetTracking,
790
+ Z as shallowReadArray,
791
+ u as toRaw,
792
+ h as toReactive,
793
+ Q as toReadonly,
794
+ v as track,
795
+ w as trigger
6
796
  };