pinia-plugin-subscription 0.1.4-beta.0 → 0.1.4
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.
- package/CHANGELOG.md +2 -1
- package/README.md +4 -5
- package/dist/pinia-plugin-subscription.js +127 -123
- package/dist/pinia-plugin-subscription.umd.cjs +4 -4
- package/dist/types/index.d.ts +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -5,7 +5,7 @@ All notable changes to this project will be documented in this file.
|
|
|
5
5
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
|
6
6
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
7
7
|
|
|
8
|
-
## [0.1.4
|
|
8
|
+
## [0.1.4]
|
|
9
9
|
|
|
10
10
|
### Added
|
|
11
11
|
- Added `defineAStoreCtx()` with mandatory setup context argument for improved developer experience.
|
|
@@ -15,6 +15,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
15
15
|
### Changed
|
|
16
16
|
- `getDefineAStoreSetupContext()` now falls back to store ID lookup during plugin execution timing.
|
|
17
17
|
- Public exports now include `defineAStoreCtx`, `getEnhancedStore`, and `setEnhancedStore`.
|
|
18
|
+
- GitHub Actions now publishes GitHub pre-releases to npm with the `beta` dist-tag.
|
|
18
19
|
|
|
19
20
|
### Deprecated
|
|
20
21
|
- `ctx.extensions.extending` is deprecated. Use `ctx.extensions.enhancedStore`.
|
package/README.md
CHANGED
|
@@ -81,7 +81,7 @@ export const myStoreSubscriber: PluginSubscriberInterface = {
|
|
|
81
81
|
|
|
82
82
|
## Advanced Features
|
|
83
83
|
|
|
84
|
-
- **Debug mode:**
|
|
84
|
+
- **Debug mode:** Specifies the name of the plugin(s) to debug as the second argument to `createPlugin` to enable detailed logging.
|
|
85
85
|
- **Reset callbacks:** Define `resetStoreCallback` to run custom logic when a store is reset.
|
|
86
86
|
|
|
87
87
|
## API Reference
|
|
@@ -92,7 +92,7 @@ Creates and returns a Pinia plugin from the provided `subscribers`. Each subscri
|
|
|
92
92
|
|
|
93
93
|
### `defineAStoreCtx(id, setup, options?)`
|
|
94
94
|
|
|
95
|
-
Use
|
|
95
|
+
Use actions or access the state, added by one or more plugins, when defining the store.
|
|
96
96
|
|
|
97
97
|
```typescript
|
|
98
98
|
import { defineAStoreCtx, getEnhancedStore } from 'pinia-plugin-subscription'
|
|
@@ -109,8 +109,7 @@ export const useMyStore = defineAStoreCtx('myStore', (ctx) => {
|
|
|
109
109
|
```
|
|
110
110
|
|
|
111
111
|
`ctx.extensions` now supports:
|
|
112
|
-
- `enhancedStore`
|
|
113
|
-
- `extending` (deprecated alias for backward compatibility)
|
|
112
|
+
- `enhancedStore`
|
|
114
113
|
|
|
115
114
|
### `PluginSubscriberInterface`
|
|
116
115
|
|
|
@@ -176,4 +175,4 @@ MIT
|
|
|
176
175
|
|
|
177
176
|
## Publishing
|
|
178
177
|
|
|
179
|
-
Releases are published to npm via GitHub Actions. The workflow uses npm provenance for better supply-chain security and requires a `NPM_TOKEN` secret in the repository settings.
|
|
178
|
+
Releases are published to npm via GitHub Actions. GitHub releases marked as pre-releases are published with the `beta` dist-tag using `npm publish --tag beta`; stable releases use the default `latest` tag. The workflow uses npm provenance for better supply-chain security and requires a `NPM_TOKEN` secret in the repository settings.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineStore as Mt } from "pinia";
|
|
2
|
-
class
|
|
2
|
+
class Bn {
|
|
3
3
|
_console;
|
|
4
4
|
_createInstance;
|
|
5
5
|
_name;
|
|
@@ -133,7 +133,7 @@ function gt(t) {
|
|
|
133
133
|
return t ? Array.isArray(t) ? t.length === 0 : typeof t == "object" ? Object.keys(t).length === 0 : typeof t == "string" ? t.trim() === "" : !1 : !(typeof t == "boolean" || typeof t == "number");
|
|
134
134
|
}
|
|
135
135
|
const It = "PluginSubscription";
|
|
136
|
-
class
|
|
136
|
+
class we extends Pt {
|
|
137
137
|
_className = It;
|
|
138
138
|
_pluginDebug;
|
|
139
139
|
_resetStoreCallback = [];
|
|
@@ -224,13 +224,13 @@ class Oe extends Pt {
|
|
|
224
224
|
{ store: e, options: { ...n, ...u } },
|
|
225
225
|
this.debug
|
|
226
226
|
), this._subscriptionsDelivered.add(`${s}-${e.$id}`), gt(l) || l?.forEach(
|
|
227
|
-
(
|
|
227
|
+
(p) => i.invoke(
|
|
228
228
|
{
|
|
229
|
-
store:
|
|
229
|
+
store: p,
|
|
230
230
|
options: {
|
|
231
231
|
...n,
|
|
232
232
|
...u,
|
|
233
|
-
...
|
|
233
|
+
...p?.storeOptions ?? {}
|
|
234
234
|
}
|
|
235
235
|
},
|
|
236
236
|
this.debug
|
|
@@ -243,7 +243,7 @@ class Oe extends Pt {
|
|
|
243
243
|
}
|
|
244
244
|
}
|
|
245
245
|
// @__NO_SIDE_EFFECTS__
|
|
246
|
-
function
|
|
246
|
+
function Oe(t) {
|
|
247
247
|
const e = /* @__PURE__ */ Object.create(null);
|
|
248
248
|
for (const n of t.split(",")) e[n] = 1;
|
|
249
249
|
return (n) => n in e;
|
|
@@ -258,11 +258,11 @@ const kt = () => {
|
|
|
258
258
|
}, xe = Ae((t) => t.charAt(0).toUpperCase() + t.slice(1)), $ = (t, e) => !Object.is(t, e);
|
|
259
259
|
let $t;
|
|
260
260
|
const ct = () => $t || ($t = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : typeof global < "u" ? global : {});
|
|
261
|
-
function
|
|
261
|
+
function Ot(t) {
|
|
262
262
|
if (d(t)) {
|
|
263
263
|
const e = {};
|
|
264
264
|
for (let n = 0; n < t.length; n++) {
|
|
265
|
-
const r = t[n], s = R(r) ? Ve(r) :
|
|
265
|
+
const r = t[n], s = R(r) ? Ve(r) : Ot(r);
|
|
266
266
|
if (s)
|
|
267
267
|
for (const o in s)
|
|
268
268
|
e[o] = s[o];
|
|
@@ -398,9 +398,9 @@ function x(t, e, n, r, s, o) {
|
|
|
398
398
|
else {
|
|
399
399
|
const l = d(t), u = l && it(n);
|
|
400
400
|
if (l && n === "length") {
|
|
401
|
-
const
|
|
401
|
+
const p = Number(r);
|
|
402
402
|
i.forEach((a, f) => {
|
|
403
|
-
(f === "length" || f === U || !T(f) && f >=
|
|
403
|
+
(f === "length" || f === U || !T(f) && f >= p) && c(a);
|
|
404
404
|
});
|
|
405
405
|
} else
|
|
406
406
|
switch ((n !== void 0 || i.has(void 0)) && c(i.get(n)), u && c(i.get(U)), e) {
|
|
@@ -422,19 +422,19 @@ function Me(t, e) {
|
|
|
422
422
|
return n && n.get(e);
|
|
423
423
|
}
|
|
424
424
|
function P(t) {
|
|
425
|
-
const e = /* @__PURE__ */
|
|
425
|
+
const e = /* @__PURE__ */ h(t);
|
|
426
426
|
return e === t ? e : (_(e, "iterate", U), /* @__PURE__ */ y(t) ? e : e.map(C));
|
|
427
427
|
}
|
|
428
428
|
function Ct(t) {
|
|
429
|
-
return _(t = /* @__PURE__ */
|
|
429
|
+
return _(t = /* @__PURE__ */ h(t), "iterate", U), t;
|
|
430
430
|
}
|
|
431
|
-
function
|
|
432
|
-
return /* @__PURE__ */
|
|
431
|
+
function w(t, e) {
|
|
432
|
+
return /* @__PURE__ */ O(t) ? B(/* @__PURE__ */ At(t) ? C(e) : e) : C(e);
|
|
433
433
|
}
|
|
434
434
|
const Pe = {
|
|
435
435
|
__proto__: null,
|
|
436
436
|
[Symbol.iterator]() {
|
|
437
|
-
return ft(this, Symbol.iterator, (t) =>
|
|
437
|
+
return ft(this, Symbol.iterator, (t) => w(this, t));
|
|
438
438
|
},
|
|
439
439
|
concat(...t) {
|
|
440
440
|
return P(this).concat(
|
|
@@ -442,7 +442,7 @@ const Pe = {
|
|
|
442
442
|
);
|
|
443
443
|
},
|
|
444
444
|
entries() {
|
|
445
|
-
return ft(this, "entries", (t) => (t[1] =
|
|
445
|
+
return ft(this, "entries", (t) => (t[1] = w(this, t[1]), t));
|
|
446
446
|
},
|
|
447
447
|
every(t, e) {
|
|
448
448
|
return N(this, "every", t, e, void 0, arguments);
|
|
@@ -453,7 +453,7 @@ const Pe = {
|
|
|
453
453
|
"filter",
|
|
454
454
|
t,
|
|
455
455
|
e,
|
|
456
|
-
(n) => n.map((r) =>
|
|
456
|
+
(n) => n.map((r) => w(this, r)),
|
|
457
457
|
arguments
|
|
458
458
|
);
|
|
459
459
|
},
|
|
@@ -463,7 +463,7 @@ const Pe = {
|
|
|
463
463
|
"find",
|
|
464
464
|
t,
|
|
465
465
|
e,
|
|
466
|
-
(n) =>
|
|
466
|
+
(n) => w(this, n),
|
|
467
467
|
arguments
|
|
468
468
|
);
|
|
469
469
|
},
|
|
@@ -476,7 +476,7 @@ const Pe = {
|
|
|
476
476
|
"findLast",
|
|
477
477
|
t,
|
|
478
478
|
e,
|
|
479
|
-
(n) =>
|
|
479
|
+
(n) => w(this, n),
|
|
480
480
|
arguments
|
|
481
481
|
);
|
|
482
482
|
},
|
|
@@ -488,17 +488,17 @@ const Pe = {
|
|
|
488
488
|
return N(this, "forEach", t, e, void 0, arguments);
|
|
489
489
|
},
|
|
490
490
|
includes(...t) {
|
|
491
|
-
return
|
|
491
|
+
return ht(this, "includes", t);
|
|
492
492
|
},
|
|
493
493
|
indexOf(...t) {
|
|
494
|
-
return
|
|
494
|
+
return ht(this, "indexOf", t);
|
|
495
495
|
},
|
|
496
496
|
join(t) {
|
|
497
497
|
return P(this).join(t);
|
|
498
498
|
},
|
|
499
499
|
// keys() iterator only reads `length`, no optimization required
|
|
500
500
|
lastIndexOf(...t) {
|
|
501
|
-
return
|
|
501
|
+
return ht(this, "lastIndexOf", t);
|
|
502
502
|
},
|
|
503
503
|
map(t, e) {
|
|
504
504
|
return N(this, "map", t, e, void 0, arguments);
|
|
@@ -538,7 +538,7 @@ const Pe = {
|
|
|
538
538
|
return W(this, "unshift", t);
|
|
539
539
|
},
|
|
540
540
|
values() {
|
|
541
|
-
return ft(this, "values", (t) =>
|
|
541
|
+
return ft(this, "values", (t) => w(this, t));
|
|
542
542
|
}
|
|
543
543
|
};
|
|
544
544
|
function ft(t, e, n) {
|
|
@@ -557,41 +557,41 @@ function N(t, e, n, r, s, o) {
|
|
|
557
557
|
}
|
|
558
558
|
let u = n;
|
|
559
559
|
i !== t && (c ? u = function(a, f) {
|
|
560
|
-
return n.call(this,
|
|
560
|
+
return n.call(this, w(t, a), f, t);
|
|
561
561
|
} : n.length > 2 && (u = function(a, f) {
|
|
562
562
|
return n.call(this, a, f, t);
|
|
563
563
|
}));
|
|
564
|
-
const
|
|
565
|
-
return c && s ? s(
|
|
564
|
+
const p = l.call(i, u, r);
|
|
565
|
+
return c && s ? s(p) : p;
|
|
566
566
|
}
|
|
567
567
|
function Dt(t, e, n, r) {
|
|
568
568
|
const s = Ct(t), o = s !== t && !/* @__PURE__ */ y(t);
|
|
569
569
|
let i = n, c = !1;
|
|
570
|
-
s !== t && (o ? (c = r.length === 0, i = function(u,
|
|
571
|
-
return c && (c = !1, u =
|
|
572
|
-
}) : n.length > 3 && (i = function(u,
|
|
573
|
-
return n.call(this, u,
|
|
570
|
+
s !== t && (o ? (c = r.length === 0, i = function(u, p, a) {
|
|
571
|
+
return c && (c = !1, u = w(t, u)), n.call(this, u, w(t, p), a, t);
|
|
572
|
+
}) : n.length > 3 && (i = function(u, p, a) {
|
|
573
|
+
return n.call(this, u, p, a, t);
|
|
574
574
|
}));
|
|
575
575
|
const l = s[e](i, ...r);
|
|
576
|
-
return c ?
|
|
576
|
+
return c ? w(t, l) : l;
|
|
577
577
|
}
|
|
578
|
-
function
|
|
579
|
-
const r = /* @__PURE__ */
|
|
578
|
+
function ht(t, e, n) {
|
|
579
|
+
const r = /* @__PURE__ */ h(t);
|
|
580
580
|
_(r, "iterate", U);
|
|
581
581
|
const s = r[e](...n);
|
|
582
|
-
return (s === -1 || s === !1) && /* @__PURE__ */ q(n[0]) ? (n[0] = /* @__PURE__ */
|
|
582
|
+
return (s === -1 || s === !1) && /* @__PURE__ */ q(n[0]) ? (n[0] = /* @__PURE__ */ h(n[0]), r[e](...n)) : s;
|
|
583
583
|
}
|
|
584
584
|
function W(t, e, n = []) {
|
|
585
585
|
at(), vt();
|
|
586
|
-
const r = (/* @__PURE__ */
|
|
586
|
+
const r = (/* @__PURE__ */ h(t))[e].apply(t, n);
|
|
587
587
|
return Rt(), lt(), r;
|
|
588
588
|
}
|
|
589
|
-
const ke = /* @__PURE__ */
|
|
589
|
+
const ke = /* @__PURE__ */ Oe("__proto__,__v_isRef,__isVue"), zt = new Set(
|
|
590
590
|
/* @__PURE__ */ Object.getOwnPropertyNames(Symbol).filter((t) => t !== "arguments" && t !== "caller").map((t) => Symbol[t]).filter(T)
|
|
591
591
|
);
|
|
592
592
|
function je(t) {
|
|
593
593
|
T(t) || (t = String(t));
|
|
594
|
-
const e = /* @__PURE__ */
|
|
594
|
+
const e = /* @__PURE__ */ h(this);
|
|
595
595
|
return _(e, "has", t), e.hasOwnProperty(t);
|
|
596
596
|
}
|
|
597
597
|
class Ut {
|
|
@@ -644,8 +644,8 @@ class Ke extends Ut {
|
|
|
644
644
|
let o = e[n];
|
|
645
645
|
const i = d(e) && it(n);
|
|
646
646
|
if (!this._isShallow) {
|
|
647
|
-
const u = /* @__PURE__ */
|
|
648
|
-
if (!/* @__PURE__ */ y(r) && !/* @__PURE__ */
|
|
647
|
+
const u = /* @__PURE__ */ O(o);
|
|
648
|
+
if (!/* @__PURE__ */ y(r) && !/* @__PURE__ */ O(r) && (o = /* @__PURE__ */ h(o), r = /* @__PURE__ */ h(r)), !i && /* @__PURE__ */ b(o) && !/* @__PURE__ */ b(r))
|
|
649
649
|
return u ? (process.env.NODE_ENV !== "production" && K(
|
|
650
650
|
`Set operation on key "${String(n)}" failed: target is readonly.`,
|
|
651
651
|
e[n]
|
|
@@ -657,7 +657,7 @@ class Ke extends Ut {
|
|
|
657
657
|
r,
|
|
658
658
|
/* @__PURE__ */ b(e) ? e : s
|
|
659
659
|
);
|
|
660
|
-
return e === /* @__PURE__ */
|
|
660
|
+
return e === /* @__PURE__ */ h(s) && l && (c ? $(r, o) && x(e, "set", n, r, o) : x(e, "add", n, r)), l;
|
|
661
661
|
}
|
|
662
662
|
deleteProperty(e, n) {
|
|
663
663
|
const r = mt(e, n), s = e[n], o = Reflect.deleteProperty(e, n);
|
|
@@ -695,7 +695,7 @@ class He extends Ut {
|
|
|
695
695
|
const Le = /* @__PURE__ */ new Ke(), We = /* @__PURE__ */ new He(), yt = (t) => t, Y = (t) => Reflect.getPrototypeOf(t);
|
|
696
696
|
function ze(t, e, n) {
|
|
697
697
|
return function(...r) {
|
|
698
|
-
const s = this.__v_raw, o = /* @__PURE__ */
|
|
698
|
+
const s = this.__v_raw, o = /* @__PURE__ */ h(s), i = z(o), c = t === "entries" || t === Symbol.iterator && i, l = t === "keys" && i, u = s[t](...r), p = n ? yt : e ? B : C;
|
|
699
699
|
return !e && _(
|
|
700
700
|
o,
|
|
701
701
|
"iterate",
|
|
@@ -708,7 +708,7 @@ function ze(t, e, n) {
|
|
|
708
708
|
next() {
|
|
709
709
|
const { value: a, done: f } = u.next();
|
|
710
710
|
return f ? { value: a, done: f } : {
|
|
711
|
-
value: c ? [
|
|
711
|
+
value: c ? [p(a[0]), p(a[1])] : p(a),
|
|
712
712
|
done: f
|
|
713
713
|
};
|
|
714
714
|
}
|
|
@@ -722,7 +722,7 @@ function G(t) {
|
|
|
722
722
|
const n = e[0] ? `on key "${e[0]}" ` : "";
|
|
723
723
|
K(
|
|
724
724
|
`${xe(t)} operation ${n}failed: target is readonly.`,
|
|
725
|
-
/* @__PURE__ */
|
|
725
|
+
/* @__PURE__ */ h(this)
|
|
726
726
|
);
|
|
727
727
|
}
|
|
728
728
|
return t === "delete" ? !1 : t === "clear" ? void 0 : this;
|
|
@@ -731,7 +731,7 @@ function G(t) {
|
|
|
731
731
|
function Ue(t, e) {
|
|
732
732
|
const n = {
|
|
733
733
|
get(s) {
|
|
734
|
-
const o = this.__v_raw, i = /* @__PURE__ */
|
|
734
|
+
const o = this.__v_raw, i = /* @__PURE__ */ h(o), c = /* @__PURE__ */ h(s);
|
|
735
735
|
t || ($(s, c) && _(i, "get", s), _(i, "get", c));
|
|
736
736
|
const { has: l } = Y(i), u = e ? yt : t ? B : C;
|
|
737
737
|
if (l.call(i, s))
|
|
@@ -742,15 +742,15 @@ function Ue(t, e) {
|
|
|
742
742
|
},
|
|
743
743
|
get size() {
|
|
744
744
|
const s = this.__v_raw;
|
|
745
|
-
return !t && _(/* @__PURE__ */
|
|
745
|
+
return !t && _(/* @__PURE__ */ h(s), "iterate", D), s.size;
|
|
746
746
|
},
|
|
747
747
|
has(s) {
|
|
748
|
-
const o = this.__v_raw, i = /* @__PURE__ */
|
|
748
|
+
const o = this.__v_raw, i = /* @__PURE__ */ h(o), c = /* @__PURE__ */ h(s);
|
|
749
749
|
return t || ($(s, c) && _(i, "has", s), _(i, "has", c)), s === c ? o.has(s) : o.has(s) || o.has(c);
|
|
750
750
|
},
|
|
751
751
|
forEach(s, o) {
|
|
752
|
-
const i = this, c = i.__v_raw, l = /* @__PURE__ */
|
|
753
|
-
return !t && _(l, "iterate", D), c.forEach((
|
|
752
|
+
const i = this, c = i.__v_raw, l = /* @__PURE__ */ h(c), u = e ? yt : t ? B : C;
|
|
753
|
+
return !t && _(l, "iterate", D), c.forEach((p, a) => s.call(o, u(p), u(a), i));
|
|
754
754
|
}
|
|
755
755
|
};
|
|
756
756
|
return M(
|
|
@@ -762,26 +762,26 @@ function Ue(t, e) {
|
|
|
762
762
|
clear: G("clear")
|
|
763
763
|
} : {
|
|
764
764
|
add(s) {
|
|
765
|
-
const o = /* @__PURE__ */
|
|
765
|
+
const o = /* @__PURE__ */ h(this), i = Y(o), c = /* @__PURE__ */ h(s), l = !e && !/* @__PURE__ */ y(s) && !/* @__PURE__ */ O(s) ? c : s;
|
|
766
766
|
return i.has.call(o, l) || $(s, l) && i.has.call(o, s) || $(c, l) && i.has.call(o, c) || (o.add(l), x(o, "add", l, l)), this;
|
|
767
767
|
},
|
|
768
768
|
set(s, o) {
|
|
769
|
-
!e && !/* @__PURE__ */ y(o) && !/* @__PURE__ */
|
|
770
|
-
const i = /* @__PURE__ */
|
|
769
|
+
!e && !/* @__PURE__ */ y(o) && !/* @__PURE__ */ O(o) && (o = /* @__PURE__ */ h(o));
|
|
770
|
+
const i = /* @__PURE__ */ h(this), { has: c, get: l } = Y(i);
|
|
771
771
|
let u = c.call(i, s);
|
|
772
|
-
u ? process.env.NODE_ENV !== "production" && Vt(i, c, s) : (s = /* @__PURE__ */
|
|
773
|
-
const
|
|
774
|
-
return i.set(s, o), u ? $(o,
|
|
772
|
+
u ? process.env.NODE_ENV !== "production" && Vt(i, c, s) : (s = /* @__PURE__ */ h(s), u = c.call(i, s));
|
|
773
|
+
const p = l.call(i, s);
|
|
774
|
+
return i.set(s, o), u ? $(o, p) && x(i, "set", s, o, p) : x(i, "add", s, o), this;
|
|
775
775
|
},
|
|
776
776
|
delete(s) {
|
|
777
|
-
const o = /* @__PURE__ */
|
|
777
|
+
const o = /* @__PURE__ */ h(this), { has: i, get: c } = Y(o);
|
|
778
778
|
let l = i.call(o, s);
|
|
779
|
-
l ? process.env.NODE_ENV !== "production" && Vt(o, i, s) : (s = /* @__PURE__ */
|
|
780
|
-
const u = c ? c.call(o, s) : void 0,
|
|
781
|
-
return l && x(o, "delete", s, void 0, u),
|
|
779
|
+
l ? process.env.NODE_ENV !== "production" && Vt(o, i, s) : (s = /* @__PURE__ */ h(s), l = i.call(o, s));
|
|
780
|
+
const u = c ? c.call(o, s) : void 0, p = o.delete(s);
|
|
781
|
+
return l && x(o, "delete", s, void 0, u), p;
|
|
782
782
|
},
|
|
783
783
|
clear() {
|
|
784
|
-
const s = /* @__PURE__ */
|
|
784
|
+
const s = /* @__PURE__ */ h(this), o = s.size !== 0, i = process.env.NODE_ENV !== "production" ? z(s) ? new Map(s) : new Set(s) : void 0, c = s.clear();
|
|
785
785
|
return o && x(
|
|
786
786
|
s,
|
|
787
787
|
"clear",
|
|
@@ -814,7 +814,7 @@ const qe = {
|
|
|
814
814
|
get: /* @__PURE__ */ qt(!0, !1)
|
|
815
815
|
};
|
|
816
816
|
function Vt(t, e, n) {
|
|
817
|
-
const r = /* @__PURE__ */
|
|
817
|
+
const r = /* @__PURE__ */ h(n);
|
|
818
818
|
if (r !== n && e.call(t, r)) {
|
|
819
819
|
const s = Kt(t);
|
|
820
820
|
K(
|
|
@@ -839,7 +839,7 @@ function Ge(t) {
|
|
|
839
839
|
}
|
|
840
840
|
// @__NO_SIDE_EFFECTS__
|
|
841
841
|
function Yt(t) {
|
|
842
|
-
return /* @__PURE__ */
|
|
842
|
+
return /* @__PURE__ */ O(t) ? t : Gt(
|
|
843
843
|
t,
|
|
844
844
|
!1,
|
|
845
845
|
Le,
|
|
@@ -880,10 +880,10 @@ function Gt(t, e, n, r, s) {
|
|
|
880
880
|
}
|
|
881
881
|
// @__NO_SIDE_EFFECTS__
|
|
882
882
|
function At(t) {
|
|
883
|
-
return /* @__PURE__ */
|
|
883
|
+
return /* @__PURE__ */ O(t) ? /* @__PURE__ */ At(t.__v_raw) : !!(t && t.__v_isReactive);
|
|
884
884
|
}
|
|
885
885
|
// @__NO_SIDE_EFFECTS__
|
|
886
|
-
function
|
|
886
|
+
function O(t) {
|
|
887
887
|
return !!(t && t.__v_isReadonly);
|
|
888
888
|
}
|
|
889
889
|
// @__NO_SIDE_EFFECTS__
|
|
@@ -895,9 +895,9 @@ function q(t) {
|
|
|
895
895
|
return t ? !!t.__v_raw : !1;
|
|
896
896
|
}
|
|
897
897
|
// @__NO_SIDE_EFFECTS__
|
|
898
|
-
function
|
|
898
|
+
function h(t) {
|
|
899
899
|
const e = t && t.__v_raw;
|
|
900
|
-
return e ? /* @__PURE__ */
|
|
900
|
+
return e ? /* @__PURE__ */ h(e) : t;
|
|
901
901
|
}
|
|
902
902
|
const C = (t) => g(t) ? /* @__PURE__ */ Yt(t) : t, B = (t) => g(t) ? /* @__PURE__ */ Et(t) : t;
|
|
903
903
|
// @__NO_SIDE_EFFECTS__
|
|
@@ -913,7 +913,7 @@ function Qe(t, e) {
|
|
|
913
913
|
}
|
|
914
914
|
class Xe {
|
|
915
915
|
constructor(e, n) {
|
|
916
|
-
this.dep = new Wt(), this.__v_isRef = !0, this.__v_isShallow = !1, this._rawValue = n ? e : /* @__PURE__ */
|
|
916
|
+
this.dep = new Wt(), this.__v_isRef = !0, this.__v_isShallow = !1, this._rawValue = n ? e : /* @__PURE__ */ h(e), this._value = n ? e : C(e), this.__v_isShallow = n;
|
|
917
917
|
}
|
|
918
918
|
get value() {
|
|
919
919
|
return process.env.NODE_ENV !== "production" ? this.dep.track({
|
|
@@ -923,8 +923,8 @@ class Xe {
|
|
|
923
923
|
}) : this.dep.track(), this._value;
|
|
924
924
|
}
|
|
925
925
|
set value(e) {
|
|
926
|
-
const n = this._rawValue, r = this.__v_isShallow || /* @__PURE__ */ y(e) || /* @__PURE__ */
|
|
927
|
-
e = r ? e : /* @__PURE__ */
|
|
926
|
+
const n = this._rawValue, r = this.__v_isShallow || /* @__PURE__ */ y(e) || /* @__PURE__ */ O(e);
|
|
927
|
+
e = r ? e : /* @__PURE__ */ h(e), $(e, n) && (this._rawValue = e, this._value = r ? e : C(e), process.env.NODE_ENV !== "production" ? this.dep.trigger({
|
|
928
928
|
target: this,
|
|
929
929
|
type: "set",
|
|
930
930
|
key: "value",
|
|
@@ -938,7 +938,7 @@ function Ze(t) {
|
|
|
938
938
|
}
|
|
939
939
|
class tn {
|
|
940
940
|
constructor(e, n, r) {
|
|
941
|
-
this._object = e, this._defaultValue = r, this.__v_isRef = !0, this._value = void 0, this._key = T(n) ? n : String(n), this._raw = /* @__PURE__ */
|
|
941
|
+
this._object = e, this._defaultValue = r, this.__v_isRef = !0, this._value = void 0, this._key = T(n) ? n : String(n), this._raw = /* @__PURE__ */ h(e);
|
|
942
942
|
let s = !0, o = e;
|
|
943
943
|
if (!d(e) || T(this._key) || !it(this._key))
|
|
944
944
|
do
|
|
@@ -986,10 +986,10 @@ function rn(t) {
|
|
|
986
986
|
function on() {
|
|
987
987
|
V.pop();
|
|
988
988
|
}
|
|
989
|
-
let
|
|
989
|
+
let pt = !1;
|
|
990
990
|
function H(t, ...e) {
|
|
991
|
-
if (
|
|
992
|
-
|
|
991
|
+
if (pt) return;
|
|
992
|
+
pt = !0, at();
|
|
993
993
|
const n = V.length ? V[V.length - 1].component : null, r = n && n.appContext.config.warnHandler, s = cn();
|
|
994
994
|
if (r)
|
|
995
995
|
xt(
|
|
@@ -1004,7 +1004,7 @@ function H(t, ...e) {
|
|
|
1004
1004
|
}).join(""),
|
|
1005
1005
|
n && n.proxy,
|
|
1006
1006
|
s.map(
|
|
1007
|
-
({ vnode: o }) => `at <${
|
|
1007
|
+
({ vnode: o }) => `at <${he(n, o.type)}>`
|
|
1008
1008
|
).join(`
|
|
1009
1009
|
`),
|
|
1010
1010
|
s
|
|
@@ -1015,7 +1015,7 @@ function H(t, ...e) {
|
|
|
1015
1015
|
s.length && o.push(`
|
|
1016
1016
|
`, ...an(s)), console.warn(...o);
|
|
1017
1017
|
}
|
|
1018
|
-
lt(),
|
|
1018
|
+
lt(), pt = !1;
|
|
1019
1019
|
}
|
|
1020
1020
|
function cn() {
|
|
1021
1021
|
let t = V[V.length - 1];
|
|
@@ -1041,7 +1041,7 @@ function an(t) {
|
|
|
1041
1041
|
}), e;
|
|
1042
1042
|
}
|
|
1043
1043
|
function ln({ vnode: t, recurseCount: e }) {
|
|
1044
|
-
const n = e > 0 ? `... (${e} recursive calls)` : "", r = t.component ? t.component.parent == null : !1, s = ` at <${
|
|
1044
|
+
const n = e > 0 ? `... (${e} recursive calls)` : "", r = t.component ? t.component.parent == null : !1, s = ` at <${he(
|
|
1045
1045
|
t.component,
|
|
1046
1046
|
t.type,
|
|
1047
1047
|
r
|
|
@@ -1055,7 +1055,7 @@ function un(t) {
|
|
|
1055
1055
|
}), n.length > 3 && e.push(" ..."), e;
|
|
1056
1056
|
}
|
|
1057
1057
|
function Xt(t, e, n) {
|
|
1058
|
-
return R(e) ? (e = JSON.stringify(e), n ? e : [`${t}=${e}`]) : typeof e == "number" || typeof e == "boolean" || e == null ? n ? e : [`${t}=${e}`] : /* @__PURE__ */ b(e) ? (e = Xt(t, /* @__PURE__ */
|
|
1058
|
+
return R(e) ? (e = JSON.stringify(e), n ? e : [`${t}=${e}`]) : typeof e == "number" || typeof e == "boolean" || e == null ? n ? e : [`${t}=${e}`] : /* @__PURE__ */ b(e) ? (e = Xt(t, /* @__PURE__ */ h(e.value), !0), n ? e : [`${t}=Ref<`, e, ">"]) : I(e) ? [`${t}=fn${e.name ? `<${e.name}>` : ""}`] : (e = /* @__PURE__ */ h(e), n ? e : [`${t}=`, e]);
|
|
1059
1059
|
}
|
|
1060
1060
|
const Zt = {
|
|
1061
1061
|
sp: "serverPrefetch hook",
|
|
@@ -1103,10 +1103,10 @@ function te(t, e, n, r = !0) {
|
|
|
1103
1103
|
let c = e.parent;
|
|
1104
1104
|
const l = e.proxy, u = process.env.NODE_ENV !== "production" ? Zt[n] : `https://vuejs.org/error-reference/#runtime-${n}`;
|
|
1105
1105
|
for (; c; ) {
|
|
1106
|
-
const
|
|
1107
|
-
if (
|
|
1108
|
-
for (let a = 0; a <
|
|
1109
|
-
if (
|
|
1106
|
+
const p = c.ec;
|
|
1107
|
+
if (p) {
|
|
1108
|
+
for (let a = 0; a < p.length; a++)
|
|
1109
|
+
if (p[a](t, l, u) === !1)
|
|
1110
1110
|
return;
|
|
1111
1111
|
}
|
|
1112
1112
|
c = c.parent;
|
|
@@ -1138,9 +1138,9 @@ const S = [];
|
|
|
1138
1138
|
let v = -1;
|
|
1139
1139
|
const j = [];
|
|
1140
1140
|
let A = null, F = 0;
|
|
1141
|
-
const
|
|
1142
|
-
let
|
|
1143
|
-
const
|
|
1141
|
+
const hn = /* @__PURE__ */ Promise.resolve();
|
|
1142
|
+
let wt = null;
|
|
1143
|
+
const pn = 100;
|
|
1144
1144
|
function dn(t) {
|
|
1145
1145
|
let e = v + 1, n = S.length;
|
|
1146
1146
|
for (; e < n; ) {
|
|
@@ -1157,7 +1157,7 @@ function _n(t) {
|
|
|
1157
1157
|
}
|
|
1158
1158
|
}
|
|
1159
1159
|
function ee() {
|
|
1160
|
-
|
|
1160
|
+
wt || (wt = hn.then(ne));
|
|
1161
1161
|
}
|
|
1162
1162
|
function gn(t) {
|
|
1163
1163
|
d(t) ? j.push(...t) : A && t.id === -1 ? A.splice(F + 1, 0, t) : t.flags & 1 || (j.push(t), t.flags |= 1), ee();
|
|
@@ -1200,12 +1200,12 @@ function ne(t) {
|
|
|
1200
1200
|
const n = S[v];
|
|
1201
1201
|
n && (n.flags &= -2);
|
|
1202
1202
|
}
|
|
1203
|
-
v = -1, S.length = 0, bn(t),
|
|
1203
|
+
v = -1, S.length = 0, bn(t), wt = null, (S.length || j.length) && ne(t);
|
|
1204
1204
|
}
|
|
1205
1205
|
}
|
|
1206
1206
|
function se(t, e) {
|
|
1207
1207
|
const n = t.get(e) || 0;
|
|
1208
|
-
if (n >
|
|
1208
|
+
if (n > pn) {
|
|
1209
1209
|
const r = e.i, s = r && fe(r.type);
|
|
1210
1210
|
return te(
|
|
1211
1211
|
`Maximum recursive updates exceeded${s ? ` in component <${s}>` : ""}. This means you have a reactive effect that is mutating its own dependencies and thus recursively triggering itself. Possible sources include component template, render function, updated hook or watcher source function.`,
|
|
@@ -1229,7 +1229,7 @@ function mn(t, e) {
|
|
|
1229
1229
|
}), !0);
|
|
1230
1230
|
}
|
|
1231
1231
|
function nt(t) {
|
|
1232
|
-
return
|
|
1232
|
+
return pe(t) ? t.__vccOpts : t;
|
|
1233
1233
|
}
|
|
1234
1234
|
function Sn(t, e) {
|
|
1235
1235
|
const n = et.get(t);
|
|
@@ -1284,13 +1284,13 @@ function re(t, e) {
|
|
|
1284
1284
|
}, 3e3)) : Q = [];
|
|
1285
1285
|
}
|
|
1286
1286
|
let st = null, En = null;
|
|
1287
|
-
const
|
|
1287
|
+
const wn = (t) => t.__isTeleport;
|
|
1288
1288
|
function oe(t, e) {
|
|
1289
1289
|
t.shapeFlag & 6 && t.component ? (t.transition = e, oe(t.component.subTree, e)) : t.shapeFlag & 128 ? (t.ssContent.transition = e.clone(t.ssContent), t.ssFallback.transition = e.clone(t.ssFallback)) : t.transition = e;
|
|
1290
1290
|
}
|
|
1291
1291
|
ct().requestIdleCallback;
|
|
1292
1292
|
ct().cancelIdleCallback;
|
|
1293
|
-
const
|
|
1293
|
+
const On = /* @__PURE__ */ Symbol.for("v-ndc"), Nn = {};
|
|
1294
1294
|
process.env.NODE_ENV !== "production" && (Nn.ownKeys = (t) => (H(
|
|
1295
1295
|
"Avoid app logic that relies on enumerating keys on a component instance. The keys will be empty in production mode to avoid performance overhead."
|
|
1296
1296
|
), Reflect.ownKeys(t)));
|
|
@@ -1339,7 +1339,7 @@ function $n(t, e = null, n = null, r = 0, s = null, o = t === ce ? 0 : 1, i = !1
|
|
|
1339
1339
|
}
|
|
1340
1340
|
const Dn = process.env.NODE_ENV !== "production" ? In : le;
|
|
1341
1341
|
function le(t, e = null, n = null, r = 0, s = null, o = !1) {
|
|
1342
|
-
if ((!t || t ===
|
|
1342
|
+
if ((!t || t === On) && (process.env.NODE_ENV !== "production" && !t && H(`Invalid vnode type when creating vnode: ${t}.`), t = An), xn(t)) {
|
|
1343
1343
|
const c = rt(
|
|
1344
1344
|
t,
|
|
1345
1345
|
e,
|
|
@@ -1348,13 +1348,13 @@ function le(t, e = null, n = null, r = 0, s = null, o = !1) {
|
|
|
1348
1348
|
);
|
|
1349
1349
|
return n && ot(c, n), c.patchFlag = -2, c;
|
|
1350
1350
|
}
|
|
1351
|
-
if (
|
|
1351
|
+
if (pe(t) && (t = t.__vccOpts), e) {
|
|
1352
1352
|
e = Vn(e);
|
|
1353
1353
|
let { class: c, style: l } = e;
|
|
1354
|
-
c && !R(c) && (e.class = Nt(c)), g(l) && (/* @__PURE__ */ q(l) && !d(l) && (l = M({}, l)), e.style =
|
|
1354
|
+
c && !R(c) && (e.class = Nt(c)), g(l) && (/* @__PURE__ */ q(l) && !d(l) && (l = M({}, l)), e.style = Ot(l));
|
|
1355
1355
|
}
|
|
1356
|
-
const i = R(t) ? 1 : Rn(t) ? 128 :
|
|
1357
|
-
return process.env.NODE_ENV !== "production" && i & 4 && /* @__PURE__ */ q(t) && (t = /* @__PURE__ */
|
|
1356
|
+
const i = R(t) ? 1 : Rn(t) ? 128 : wn(t) ? 64 : g(t) ? 4 : I(t) ? 2 : 0;
|
|
1357
|
+
return process.env.NODE_ENV !== "production" && i & 4 && /* @__PURE__ */ q(t) && (t = /* @__PURE__ */ h(t), H(
|
|
1358
1358
|
"Vue received a Component that was made a reactive object. This can lead to unnecessary performance overhead and should be avoided by marking the component with `markRaw` or using `shallowRef` instead of `ref`.",
|
|
1359
1359
|
`
|
|
1360
1360
|
Component that was made reactive: `,
|
|
@@ -1374,7 +1374,7 @@ function Vn(t) {
|
|
|
1374
1374
|
return t ? /* @__PURE__ */ q(t) || ie(t) ? M({}, t) : t : null;
|
|
1375
1375
|
}
|
|
1376
1376
|
function rt(t, e, n = !1, r = !1) {
|
|
1377
|
-
const { props: s, ref: o, patchFlag: i, children: c, transition: l } = t, u = e ? Mn(s || {}, e) : s,
|
|
1377
|
+
const { props: s, ref: o, patchFlag: i, children: c, transition: l } = t, u = e ? Mn(s || {}, e) : s, p = {
|
|
1378
1378
|
__v_isVNode: !0,
|
|
1379
1379
|
__v_skip: !0,
|
|
1380
1380
|
type: t.type,
|
|
@@ -1419,9 +1419,9 @@ function rt(t, e, n = !1, r = !1) {
|
|
|
1419
1419
|
ce: t.ce
|
|
1420
1420
|
};
|
|
1421
1421
|
return l && r && oe(
|
|
1422
|
-
|
|
1423
|
-
l.clone(
|
|
1424
|
-
),
|
|
1422
|
+
p,
|
|
1423
|
+
l.clone(p)
|
|
1424
|
+
), p;
|
|
1425
1425
|
}
|
|
1426
1426
|
function ue(t) {
|
|
1427
1427
|
const e = rt(t);
|
|
@@ -1462,7 +1462,7 @@ function Mn(...t) {
|
|
|
1462
1462
|
if (s === "class")
|
|
1463
1463
|
e.class !== r.class && (e.class = Nt([e.class, r.class]));
|
|
1464
1464
|
else if (s === "style")
|
|
1465
|
-
e.style =
|
|
1465
|
+
e.style = Ot([e.style, r.style]);
|
|
1466
1466
|
else if (Ne(s)) {
|
|
1467
1467
|
const o = e[s], i = r[s];
|
|
1468
1468
|
i && o !== i && !(d(o) && o.includes(i)) ? e[s] = o ? [].concat(o, i) : i : i == null && o == null && // mergeProps({ 'onUpdate:modelValue': undefined }) should not retain
|
|
@@ -1492,7 +1492,7 @@ const Pn = /(?:^|[-_])\w/g, Fn = (t) => t.replace(Pn, (e) => e.toUpperCase()).re
|
|
|
1492
1492
|
function fe(t, e = !0) {
|
|
1493
1493
|
return I(t) ? t.displayName || t.name : t.name || e && t.__name;
|
|
1494
1494
|
}
|
|
1495
|
-
function
|
|
1495
|
+
function he(t, e, n = !1) {
|
|
1496
1496
|
let r = fe(e);
|
|
1497
1497
|
if (!r && e.__file) {
|
|
1498
1498
|
const s = e.__file.match(/([^/\\]+)\.\w+$/);
|
|
@@ -1510,7 +1510,7 @@ function pe(t, e, n = !1) {
|
|
|
1510
1510
|
}
|
|
1511
1511
|
return r ? Fn(r) : n ? "App" : "Anonymous";
|
|
1512
1512
|
}
|
|
1513
|
-
function
|
|
1513
|
+
function pe(t) {
|
|
1514
1514
|
return I(t) && "__vccOpts" in t;
|
|
1515
1515
|
}
|
|
1516
1516
|
function kn() {
|
|
@@ -1529,7 +1529,7 @@ function kn() {
|
|
|
1529
1529
|
return lt(), [
|
|
1530
1530
|
"div",
|
|
1531
1531
|
{},
|
|
1532
|
-
["span", t,
|
|
1532
|
+
["span", t, p(a)],
|
|
1533
1533
|
"<",
|
|
1534
1534
|
c(f),
|
|
1535
1535
|
">"
|
|
@@ -1542,9 +1542,9 @@ function kn() {
|
|
|
1542
1542
|
["span", t, /* @__PURE__ */ y(a) ? "ShallowReactive" : "Reactive"],
|
|
1543
1543
|
"<",
|
|
1544
1544
|
c(a),
|
|
1545
|
-
`>${/* @__PURE__ */
|
|
1545
|
+
`>${/* @__PURE__ */ O(a) ? " (readonly)" : ""}`
|
|
1546
1546
|
];
|
|
1547
|
-
if (/* @__PURE__ */
|
|
1547
|
+
if (/* @__PURE__ */ O(a))
|
|
1548
1548
|
return [
|
|
1549
1549
|
"div",
|
|
1550
1550
|
{},
|
|
@@ -1570,7 +1570,7 @@ function kn() {
|
|
|
1570
1570
|
};
|
|
1571
1571
|
function o(a) {
|
|
1572
1572
|
const f = [];
|
|
1573
|
-
a.type.props && a.props && f.push(i("props", /* @__PURE__ */
|
|
1573
|
+
a.type.props && a.props && f.push(i("props", /* @__PURE__ */ h(a.props))), a.setupState !== bt && f.push(i("setup", a.setupState)), a.data !== bt && f.push(i("data", /* @__PURE__ */ h(a.data)));
|
|
1574
1574
|
const m = l(a, "computed");
|
|
1575
1575
|
m && f.push(i("computed", m));
|
|
1576
1576
|
const E = l(a, "inject");
|
|
@@ -1613,7 +1613,7 @@ function kn() {
|
|
|
1613
1613
|
] : ["span", {}];
|
|
1614
1614
|
}
|
|
1615
1615
|
function c(a, f = !0) {
|
|
1616
|
-
return typeof a == "number" ? ["span", e, a] : typeof a == "string" ? ["span", n, JSON.stringify(a)] : typeof a == "boolean" ? ["span", r, a] : g(a) ? ["object", { object: f ? /* @__PURE__ */
|
|
1616
|
+
return typeof a == "number" ? ["span", e, a] : typeof a == "string" ? ["span", n, JSON.stringify(a)] : typeof a == "boolean" ? ["span", r, a] : g(a) ? ["object", { object: f ? /* @__PURE__ */ h(a) : a }] : ["span", n, String(a)];
|
|
1617
1617
|
}
|
|
1618
1618
|
function l(a, f) {
|
|
1619
1619
|
const m = a.type;
|
|
@@ -1629,7 +1629,7 @@ function kn() {
|
|
|
1629
1629
|
if (d(E) && E.includes(f) || g(E) && f in E || a.extends && u(a.extends, f, m) || a.mixins && a.mixins.some((L) => u(L, f, m)))
|
|
1630
1630
|
return !0;
|
|
1631
1631
|
}
|
|
1632
|
-
function
|
|
1632
|
+
function p(a) {
|
|
1633
1633
|
return /* @__PURE__ */ y(a) ? "ShallowRef" : a.effect ? "ComputedRef" : "Ref";
|
|
1634
1634
|
}
|
|
1635
1635
|
window.devtoolsFormatters ? window.devtoolsFormatters.push(s) : window.devtoolsFormatters = [s];
|
|
@@ -1642,7 +1642,7 @@ function jn() {
|
|
|
1642
1642
|
}
|
|
1643
1643
|
process.env.NODE_ENV !== "production" && jn();
|
|
1644
1644
|
const de = /* @__PURE__ */ new WeakMap(), _e = /* @__PURE__ */ new Map();
|
|
1645
|
-
function
|
|
1645
|
+
function Jn(t, e, n) {
|
|
1646
1646
|
const r = n ? { storeOptions: n } : {};
|
|
1647
1647
|
return typeof e == "function" ? ge(
|
|
1648
1648
|
t,
|
|
@@ -1654,11 +1654,12 @@ function qn(t, e, n) {
|
|
|
1654
1654
|
r
|
|
1655
1655
|
);
|
|
1656
1656
|
}
|
|
1657
|
-
function
|
|
1657
|
+
function Yn(t, e, n) {
|
|
1658
|
+
const r = n ? { storeOptions: { ...n, enhanceStore: !0 } } : {};
|
|
1658
1659
|
return ge(
|
|
1659
1660
|
t,
|
|
1660
1661
|
e,
|
|
1661
|
-
|
|
1662
|
+
r
|
|
1662
1663
|
);
|
|
1663
1664
|
}
|
|
1664
1665
|
function ge(t, e, n) {
|
|
@@ -1680,20 +1681,20 @@ const Hn = /* @__PURE__ */ new Set(["_", "$"]);
|
|
|
1680
1681
|
function Ln(t) {
|
|
1681
1682
|
return Hn.has(t[0]);
|
|
1682
1683
|
}
|
|
1683
|
-
function
|
|
1684
|
+
function Wn(t) {
|
|
1684
1685
|
return de.get(t) ?? (typeof t?.$id == "string" ? _e.get(t.$id) : void 0);
|
|
1685
1686
|
}
|
|
1686
|
-
function
|
|
1687
|
+
function zn(t) {
|
|
1687
1688
|
const e = t.extensions.enhancedStore ?? t.extensions.extending;
|
|
1688
1689
|
if (!e)
|
|
1689
1690
|
throw new Error(`${t.id}Store - getEnhancedStore - Error: enhanced store is required`);
|
|
1690
1691
|
return e;
|
|
1691
1692
|
}
|
|
1692
|
-
function
|
|
1693
|
+
function Un(t, e) {
|
|
1693
1694
|
t.extensions.enhancedStore = e, t.extensions.extending = e;
|
|
1694
1695
|
}
|
|
1695
1696
|
function Gn(t) {
|
|
1696
|
-
return
|
|
1697
|
+
return zn(t);
|
|
1697
1698
|
}
|
|
1698
1699
|
class Qn extends Pt {
|
|
1699
1700
|
_className = "Store";
|
|
@@ -1736,7 +1737,10 @@ class Qn extends Pt {
|
|
|
1736
1737
|
this._storeSubscribe = e;
|
|
1737
1738
|
}
|
|
1738
1739
|
constructor(e, n, r = !1, s) {
|
|
1739
|
-
super(r, s), this._options = n.storeOptions, this._store = e
|
|
1740
|
+
if (super(r, s), this._options = n.storeOptions, this._store = e, this._options?.enhanceStore) {
|
|
1741
|
+
const o = Wn(this.store);
|
|
1742
|
+
o && Un(o, this.store);
|
|
1743
|
+
}
|
|
1740
1744
|
}
|
|
1741
1745
|
/**
|
|
1742
1746
|
* Add property to state
|
|
@@ -1790,21 +1794,21 @@ class Qn extends Pt {
|
|
|
1790
1794
|
}
|
|
1791
1795
|
}
|
|
1792
1796
|
function Xn(t, e) {
|
|
1793
|
-
const n = new
|
|
1797
|
+
const n = new we(t, e);
|
|
1794
1798
|
return n.plugin.bind(n);
|
|
1795
1799
|
}
|
|
1796
1800
|
export {
|
|
1797
1801
|
Se as CustomConsole,
|
|
1798
1802
|
Ft as PLUGIN_NAME,
|
|
1799
|
-
|
|
1800
|
-
|
|
1803
|
+
Bn as PluginSubscriber,
|
|
1804
|
+
we as PluginSubscription,
|
|
1801
1805
|
Qn as Store,
|
|
1802
1806
|
Xn as createPlugin,
|
|
1803
|
-
|
|
1804
|
-
|
|
1805
|
-
|
|
1806
|
-
|
|
1807
|
+
Jn as defineAStore,
|
|
1808
|
+
Yn as defineAStoreCtx,
|
|
1809
|
+
Wn as getDefineAStoreSetupContext,
|
|
1810
|
+
zn as getEnhancedStore,
|
|
1807
1811
|
Gn as getExtendingStore,
|
|
1808
1812
|
gt as isEmpty,
|
|
1809
|
-
|
|
1813
|
+
Un as setEnhancedStore
|
|
1810
1814
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
(function(d,F){typeof exports=="object"&&typeof module<"u"?F(exports,require("pinia")):typeof define=="function"&&define.amd?define(["exports","pinia"],F):(d=typeof globalThis<"u"?globalThis:d||self,F(d["pinia-plugin-subscription"]={},d.Pinia))})(this,(function(d,F){"use strict";class Ee{_console;_createInstance;_name;_pluginOptions;_storeInstance;_resetStoreCallback;_storeOnActionSubscription;_storeMutationSubscription;_subscriptions;pluginCreated;get console(){return this._console??console}get name(){return this._name}get pluginOptions(){return this._pluginOptions??{}}set pluginOptions(e){this._pluginOptions=e}get resetStoreCallback(){return this._resetStoreCallback}get storeOnActionSubscription(){return this._storeOnActionSubscription}get storeMutationSubscription(){return this._storeMutationSubscription}get subscriptions(){return this._subscriptions}set subscriptions(e){this._subscriptions=e}constructor(e,n,r){this._name=e,this._createInstance=n,r&&(this._console=r)}invoke({store:e,options:n},r){return this._storeInstance=this._createInstance(e,{...n,...this.pluginOptions},r,this.console),this._storeInstance?(this._subscriptions=this._storeInstance.getSubscriptions(),this._storeMutationSubscription=this._storeInstance.storeSubscribe,this._storeOnActionSubscription=this._storeInstance.onAction,this.pluginCreated&&this.pluginCreated(e),!0):!1}}class xt{_console;_debug=!1;get console(){return this._console??console}set console(e){this._console=e}get debug(){return this._debug}set debug(e){this._debug=e}constructor(e,n){this._debug=e,n&&(this._console=n)}debugLog(...e){this._debug&&(Array.isArray(e)&&(e[0]=`${this._className} - ${e[0]}`),this.console.log(...e))}logError(...e){this.console.error(...e)}}const pt="pinia-plugin-subscription",Oe=(t,e="white")=>`background-color: ${t}; color: ${e}; padding: 1px; margin-right: 5px; font-size: 12px`;function we(t,e){if(!t)throw new Error("Style instructions are required");console.log("%c%s",t,e.shift(),...e)}class Tt{_bgColor="#ffec73";_color="green";_icon="🍍⚡";_errorBgColor="#d24545";_errorColor="white";_errorIcon="🍍⚠️";_styles={error:{bgColor:this._errorBgColor,color:this._errorColor,icon:this._errorIcon},info:{bgColor:this._bgColor,color:this._color,icon:this._icon}};formatMessage(e,n){return` [${n} ${pt}] - ${e} `}generateStyle(e){return Oe(e.bgColor,e.color)}getStyleDefinition(e){return this._styles[e??"info"]}log(...e){this.useLog(this.getStyleDefinition(),e)}error(...e){this.useLog(this.getStyleDefinition("error"),e)}rebuildArgs(e,n){if(typeof e=="string")return[this.formatMessage(e,n)];if(Array.isArray(e))return[this.formatMessage(e.shift(),n),...e??[]]}useLog(e,n){we(this.generateStyle(e),this.rebuildArgs(n,e.icon))}}class Ne extends Tt{_pluginName=pt}const ve=new Ne;function Q(t){return t?Array.isArray(t)?t.length===0:typeof t=="object"?Object.keys(t).length===0:typeof t=="string"?t.trim()==="":!1:!(typeof t=="boolean"||typeof t=="number")}const Mt="PluginSubscription";class Pt extends xt{_className=Mt;_pluginDebug;_resetStoreCallback=[];_subscribers=[];_subscribersDelivered=new Set;_subscriptions=[];_subscriptionsDelivered=new Set;set subscribers(e){this._subscribers=e}get subscriptions(){if(!Q(this._subscriptions))return this._subscriptions}constructor(e,n){super(Array.isArray(n)&&!!n?.includes(Mt),ve),this._pluginDebug=Array.isArray(n)?n:void 0,this._subscribers=e}addResetStoreCallback(e){this._resetStoreCallback.push(e)}definePluginDebug(e){return!!this._pluginDebug?.includes(e.name)}executeResetStoreCallbacks(e){this._resetStoreCallback.forEach(n=>n(e))}plugin({store:e,options:n}){if(this._subscribers.length){this.debugLog(`plugin() - ${e.$id}`,["subscriber:",this._subscribers,"store:",e,"options:",n]);try{this._subscribers.forEach(r=>{this._subscribersDelivered.has(`${r.name}-${e.$id}`)||r.invoke({store:e,options:n},this.definePluginDebug(r))&&(this._subscribersDelivered.add(`${r.name}-${e.$id}`),r.subscriptions&&this.subscriptionDelivery({store:e,options:n},r.subscriptions),r.storeMutationSubscription&&this.storeMutationSubscription(r.storeMutationSubscription),r.storeOnActionSubscription&&this.storeOnActionSubscription(r.storeOnActionSubscription),r.resetStoreCallback&&this.addResetStoreCallback(r.resetStoreCallback))}),this.rewriteResetStore({store:e},JSON.stringify(e.$state),Object.assign({},e))}catch(r){this.logError(r,e,n)}}}rewriteResetStore({store:e},n,r){e.$reset=()=>{this.debugLog("rewriteResetStore()",{initState:n,store:e,customStore:r}),this.executeResetStoreCallbacks(e),e.$patch(JSON.parse(n))}}storeOnActionSubscription(e){const{store:n,callback:r}=e();n.$onAction(({after:s,args:i,name:o})=>{this.debugLog(`storeOnActionSubscription ${n.$id}`,{after:s,args:i,name:o,store:n}),r({after:s,args:i,name:o})})}storeMutationSubscription(e){const{store:n,callback:r}=e();n.$subscribe(s=>{this.debugLog(`$subscribe ${n.$id}`,{mutation:s,store:n}),r(s)})}subscriptionDelivery({store:e,options:n},r){Object.entries(r).forEach(([s,i])=>{try{if(this._subscriptionsDelivered.has(`${s}-${e.$id}`))return;const{subscription:o,subscriptionOptions:c,stores:l}=i;this.debugLog(`subscriptionDelivery() - store: ${e.$id}`,["pluginName:",s,"subscription:",o,"options:",i,"stores:",l]);const u={storeOptions:{...n?.storeOptions??{},...c}};o.invoke({store:e,options:{...n,...u}},this.debug),this._subscriptionsDelivered.add(`${s}-${e.$id}`),Q(l)||l?.forEach(p=>o.invoke({store:p,options:{...n,...u,...p?.storeOptions??{}}},this.debug))}catch(o){this.logError("subscriptionDelivery()",o,e,n)}})}}function Re(t){const e=Object.create(null);for(const n of t.split(","))e[n]=1;return n=>n in e}const dt=process.env.NODE_ENV!=="production"?Object.freeze({}):{};process.env.NODE_ENV!=="production"&&Object.freeze([]);const Ft=()=>{},Ce=t=>t.charCodeAt(0)===111&&t.charCodeAt(1)===110&&(t.charCodeAt(2)>122||t.charCodeAt(2)<97),Ae=t=>t.startsWith("onUpdate:"),V=Object.assign,Ie=Object.prototype.hasOwnProperty,_t=(t,e)=>Ie.call(t,e),_=Array.isArray,z=t=>kt(t)==="[object Map]",I=t=>typeof t=="function",v=t=>typeof t=="string",x=t=>typeof t=="symbol",b=t=>t!==null&&typeof t=="object",$e=Object.prototype.toString,kt=t=>$e.call(t),jt=t=>kt(t).slice(8,-1),X=t=>v(t)&&t!=="NaN"&&t[0]!=="-"&&""+parseInt(t,10)===t,De=(t=>{const e=Object.create(null);return(n=>e[n]||(e[n]=t(n)))})(t=>t.charAt(0).toUpperCase()+t.slice(1)),T=(t,e)=>!Object.is(t,e);let Kt;const Z=()=>Kt||(Kt=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function gt(t){if(_(t)){const e={};for(let n=0;n<t.length;n++){const r=t[n],s=v(r)?Me(r):gt(r);if(s)for(const i in s)e[i]=s[i]}return e}else if(v(t)||b(t))return t}const Ve=/;(?![^(]*\))/g,xe=/:([^]+)/,Te=/\/\*[^]*?\*\//g;function Me(t){const e={};return t.replace(Te,"").split(Ve).forEach(n=>{if(n){const r=n.split(xe);r.length>1&&(e[r[0].trim()]=r[1].trim())}}),e}function bt(t){let e="";if(v(t))e=t;else if(_(t))for(let n=0;n<t.length;n++){const r=bt(t[n]);r&&(e+=r+" ")}else if(b(t))for(const n in t)t[n]&&(e+=n+" ");return e.trim()}function k(t,...e){console.warn(`[Vue warn] ${t}`,...e)}let Pe,Ht=0,mt;function St(){Ht++}function yt(){if(--Ht>0)return;let t;for(;mt;){let e=mt;for(mt=void 0;e;){const n=e.next;if(e.next=void 0,e.flags&=-9,e.flags&1)try{e.trigger()}catch(r){t||(t=r)}e=n}}if(t)throw t}let tt=!0;const Lt=[];function et(){Lt.push(tt),tt=!1}function nt(){const t=Lt.pop();tt=t===void 0?!0:t}class Wt{constructor(e){this.computed=e,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0,this.__v_skip=!0,process.env.NODE_ENV!=="production"&&(this.subsHead=void 0)}track(e){}trigger(e){this.version++,this.notify(e)}notify(e){St();try{if(process.env.NODE_ENV!=="production")for(let n=this.subsHead;n;n=n.nextSub)n.sub.onTrigger&&!(n.sub.flags&8)&&n.sub.onTrigger(V({effect:n.sub},e));for(let n=this.subs;n;n=n.prevSub)n.sub.notify()&&n.sub.dep.notify()}finally{yt()}}}const st=new WeakMap,M=Symbol(process.env.NODE_ENV!=="production"?"Object iterate":""),Et=Symbol(process.env.NODE_ENV!=="production"?"Map keys iterate":""),U=Symbol(process.env.NODE_ENV!=="production"?"Array iterate":"");function g(t,e,n){if(tt&&Pe){let r=st.get(t);r||st.set(t,r=new Map);let s=r.get(n);s||(r.set(n,s=new Wt),s.map=r,s.key=n),process.env.NODE_ENV!=="production"?s.track({target:t,type:e,key:n}):s.track()}}function $(t,e,n,r,s,i){const o=st.get(t);if(!o)return;const c=l=>{l&&(process.env.NODE_ENV!=="production"?l.trigger({target:t,type:e,key:n,newValue:r,oldValue:s,oldTarget:i}):l.trigger())};if(St(),e==="clear")o.forEach(c);else{const l=_(t),u=l&&X(n);if(l&&n==="length"){const p=Number(r);o.forEach((a,f)=>{(f==="length"||f===U||!x(f)&&f>=p)&&c(a)})}else switch((n!==void 0||o.has(void 0))&&c(o.get(n)),u&&c(o.get(U)),e){case"add":l?u&&c(o.get("length")):(c(o.get(M)),z(t)&&c(o.get(Et)));break;case"delete":l||(c(o.get(M)),z(t)&&c(o.get(Et)));break;case"set":z(t)&&c(o.get(M));break}}yt()}function Fe(t,e){const n=st.get(t);return n&&n.get(e)}function j(t){const e=h(t);return e===t?e:(g(e,"iterate",U),S(t)?e:e.map(C))}function Ot(t){return g(t=h(t),"iterate",U),t}function O(t,e){return w(t)?J(Ct(t)?C(e):e):C(e)}const ke={__proto__:null,[Symbol.iterator](){return wt(this,Symbol.iterator,t=>O(this,t))},concat(...t){return j(this).concat(...t.map(e=>_(e)?j(e):e))},entries(){return wt(this,"entries",t=>(t[1]=O(this,t[1]),t))},every(t,e){return R(this,"every",t,e,void 0,arguments)},filter(t,e){return R(this,"filter",t,e,n=>n.map(r=>O(this,r)),arguments)},find(t,e){return R(this,"find",t,e,n=>O(this,n),arguments)},findIndex(t,e){return R(this,"findIndex",t,e,void 0,arguments)},findLast(t,e){return R(this,"findLast",t,e,n=>O(this,n),arguments)},findLastIndex(t,e){return R(this,"findLastIndex",t,e,void 0,arguments)},forEach(t,e){return R(this,"forEach",t,e,void 0,arguments)},includes(...t){return Nt(this,"includes",t)},indexOf(...t){return Nt(this,"indexOf",t)},join(t){return j(this).join(t)},lastIndexOf(...t){return Nt(this,"lastIndexOf",t)},map(t,e){return R(this,"map",t,e,void 0,arguments)},pop(){return q(this,"pop")},push(...t){return q(this,"push",t)},reduce(t,...e){return zt(this,"reduce",t,e)},reduceRight(t,...e){return zt(this,"reduceRight",t,e)},shift(){return q(this,"shift")},some(t,e){return R(this,"some",t,e,void 0,arguments)},splice(...t){return q(this,"splice",t)},toReversed(){return j(this).toReversed()},toSorted(t){return j(this).toSorted(t)},toSpliced(...t){return j(this).toSpliced(...t)},unshift(...t){return q(this,"unshift",t)},values(){return wt(this,"values",t=>O(this,t))}};function wt(t,e,n){const r=Ot(t),s=r[e]();return r!==t&&!S(t)&&(s._next=s.next,s.next=()=>{const i=s._next();return i.done||(i.value=n(i.value)),i}),s}const je=Array.prototype;function R(t,e,n,r,s,i){const o=Ot(t),c=o!==t&&!S(t),l=o[e];if(l!==je[e]){const a=l.apply(t,i);return c?C(a):a}let u=n;o!==t&&(c?u=function(a,f){return n.call(this,O(t,a),f,t)}:n.length>2&&(u=function(a,f){return n.call(this,a,f,t)}));const p=l.call(o,u,r);return c&&s?s(p):p}function zt(t,e,n,r){const s=Ot(t),i=s!==t&&!S(t);let o=n,c=!1;s!==t&&(i?(c=r.length===0,o=function(u,p,a){return c&&(c=!1,u=O(t,u)),n.call(this,u,O(t,p),a,t)}):n.length>3&&(o=function(u,p,a){return n.call(this,u,p,a,t)}));const l=s[e](o,...r);return c?O(t,l):l}function Nt(t,e,n){const r=h(t);g(r,"iterate",U);const s=r[e](...n);return(s===-1||s===!1)&&B(n[0])?(n[0]=h(n[0]),r[e](...n)):s}function q(t,e,n=[]){et(),St();const r=h(t)[e].apply(t,n);return yt(),nt(),r}const Ke=Re("__proto__,__v_isRef,__isVue"),Ut=new Set(Object.getOwnPropertyNames(Symbol).filter(t=>t!=="arguments"&&t!=="caller").map(t=>Symbol[t]).filter(x));function He(t){x(t)||(t=String(t));const e=h(this);return g(e,"has",t),e.hasOwnProperty(t)}class qt{constructor(e=!1,n=!1){this._isReadonly=e,this._isShallow=n}get(e,n,r){if(n==="__v_skip")return e.__v_skip;const s=this._isReadonly,i=this._isShallow;if(n==="__v_isReactive")return!s;if(n==="__v_isReadonly")return s;if(n==="__v_isShallow")return i;if(n==="__v_raw")return r===(s?i?Qe:Gt:i?Ge:Yt).get(e)||Object.getPrototypeOf(e)===Object.getPrototypeOf(r)?e:void 0;const o=_(e);if(!s){let l;if(o&&(l=ke[n]))return l;if(n==="hasOwnProperty")return He}const c=Reflect.get(e,n,m(e)?e:r);if((x(n)?Ut.has(n):Ke(n))||(s||g(e,"get",n),i))return c;if(m(c)){const l=o&&X(n)?c:c.value;return s&&b(l)?Rt(l):l}return b(c)?s?Rt(c):Qt(c):c}}class Le extends qt{constructor(e=!1){super(!1,e)}set(e,n,r,s){let i=e[n];const o=_(e)&&X(n);if(!this._isShallow){const u=w(i);if(!S(r)&&!w(r)&&(i=h(i),r=h(r)),!o&&m(i)&&!m(r))return u?(process.env.NODE_ENV!=="production"&&k(`Set operation on key "${String(n)}" failed: target is readonly.`,e[n]),!0):(i.value=r,!0)}const c=o?Number(n)<e.length:_t(e,n),l=Reflect.set(e,n,r,m(e)?e:s);return e===h(s)&&l&&(c?T(r,i)&&$(e,"set",n,r,i):$(e,"add",n,r)),l}deleteProperty(e,n){const r=_t(e,n),s=e[n],i=Reflect.deleteProperty(e,n);return i&&r&&$(e,"delete",n,void 0,s),i}has(e,n){const r=Reflect.has(e,n);return(!x(n)||!Ut.has(n))&&g(e,"has",n),r}ownKeys(e){return g(e,"iterate",_(e)?"length":M),Reflect.ownKeys(e)}}class We extends qt{constructor(e=!1){super(!0,e)}set(e,n){return process.env.NODE_ENV!=="production"&&k(`Set operation on key "${String(n)}" failed: target is readonly.`,e),!0}deleteProperty(e,n){return process.env.NODE_ENV!=="production"&&k(`Delete operation on key "${String(n)}" failed: target is readonly.`,e),!0}}const ze=new Le,Ue=new We,vt=t=>t,rt=t=>Reflect.getPrototypeOf(t);function qe(t,e,n){return function(...r){const s=this.__v_raw,i=h(s),o=z(i),c=t==="entries"||t===Symbol.iterator&&o,l=t==="keys"&&o,u=s[t](...r),p=n?vt:e?J:C;return!e&&g(i,"iterate",l?Et:M),V(Object.create(u),{next(){const{value:a,done:f}=u.next();return f?{value:a,done:f}:{value:c?[p(a[0]),p(a[1])]:p(a),done:f}}})}}function it(t){return function(...e){if(process.env.NODE_ENV!=="production"){const n=e[0]?`on key "${e[0]}" `:"";k(`${De(t)} operation ${n}failed: target is readonly.`,h(this))}return t==="delete"?!1:t==="clear"?void 0:this}}function Be(t,e){const n={get(s){const i=this.__v_raw,o=h(i),c=h(s);t||(T(s,c)&&g(o,"get",s),g(o,"get",c));const{has:l}=rt(o),u=e?vt:t?J:C;if(l.call(o,s))return u(i.get(s));if(l.call(o,c))return u(i.get(c));i!==o&&i.get(s)},get size(){const s=this.__v_raw;return!t&&g(h(s),"iterate",M),s.size},has(s){const i=this.__v_raw,o=h(i),c=h(s);return t||(T(s,c)&&g(o,"has",s),g(o,"has",c)),s===c?i.has(s):i.has(s)||i.has(c)},forEach(s,i){const o=this,c=o.__v_raw,l=h(c),u=e?vt:t?J:C;return!t&&g(l,"iterate",M),c.forEach((p,a)=>s.call(i,u(p),u(a),o))}};return V(n,t?{add:it("add"),set:it("set"),delete:it("delete"),clear:it("clear")}:{add(s){const i=h(this),o=rt(i),c=h(s),l=!e&&!S(s)&&!w(s)?c:s;return o.has.call(i,l)||T(s,l)&&o.has.call(i,s)||T(c,l)&&o.has.call(i,c)||(i.add(l),$(i,"add",l,l)),this},set(s,i){!e&&!S(i)&&!w(i)&&(i=h(i));const o=h(this),{has:c,get:l}=rt(o);let u=c.call(o,s);u?process.env.NODE_ENV!=="production"&&Jt(o,c,s):(s=h(s),u=c.call(o,s));const p=l.call(o,s);return o.set(s,i),u?T(i,p)&&$(o,"set",s,i,p):$(o,"add",s,i),this},delete(s){const i=h(this),{has:o,get:c}=rt(i);let l=o.call(i,s);l?process.env.NODE_ENV!=="production"&&Jt(i,o,s):(s=h(s),l=o.call(i,s));const u=c?c.call(i,s):void 0,p=i.delete(s);return l&&$(i,"delete",s,void 0,u),p},clear(){const s=h(this),i=s.size!==0,o=process.env.NODE_ENV!=="production"?z(s)?new Map(s):new Set(s):void 0,c=s.clear();return i&&$(s,"clear",void 0,void 0,o),c}}),["keys","values","entries",Symbol.iterator].forEach(s=>{n[s]=qe(s,t,e)}),n}function Bt(t,e){const n=Be(t,e);return(r,s,i)=>s==="__v_isReactive"?!t:s==="__v_isReadonly"?t:s==="__v_raw"?r:Reflect.get(_t(n,s)&&s in r?n:r,s,i)}const Je={get:Bt(!1,!1)},Ye={get:Bt(!0,!1)};function Jt(t,e,n){const r=h(n);if(r!==n&&e.call(t,r)){const s=jt(t);k(`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.`)}}const Yt=new WeakMap,Ge=new WeakMap,Gt=new WeakMap,Qe=new WeakMap;function Xe(t){switch(t){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Qt(t){return w(t)?t:Xt(t,!1,ze,Je,Yt)}function Rt(t){return Xt(t,!0,Ue,Ye,Gt)}function Xt(t,e,n,r,s){if(!b(t))return process.env.NODE_ENV!=="production"&&k(`value cannot be made ${e?"readonly":"reactive"}: ${String(t)}`),t;if(t.__v_raw&&!(e&&t.__v_isReactive)||t.__v_skip||!Object.isExtensible(t))return t;const i=s.get(t);if(i)return i;const o=Xe(jt(t));if(o===0)return t;const c=new Proxy(t,o===2?r:n);return s.set(t,c),c}function Ct(t){return w(t)?Ct(t.__v_raw):!!(t&&t.__v_isReactive)}function w(t){return!!(t&&t.__v_isReadonly)}function S(t){return!!(t&&t.__v_isShallow)}function B(t){return t?!!t.__v_raw:!1}function h(t){const e=t&&t.__v_raw;return e?h(e):t}const C=t=>b(t)?Qt(t):t,J=t=>b(t)?Rt(t):t;function m(t){return t?t.__v_isRef===!0:!1}function Zt(t){return Ze(t,!1)}function Ze(t,e){return m(t)?t:new tn(t,e)}class tn{constructor(e,n){this.dep=new Wt,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=n?e:h(e),this._value=n?e:C(e),this.__v_isShallow=n}get value(){return process.env.NODE_ENV!=="production"?this.dep.track({target:this,type:"get",key:"value"}):this.dep.track(),this._value}set value(e){const n=this._rawValue,r=this.__v_isShallow||S(e)||w(e);e=r?e:h(e),T(e,n)&&(this._rawValue=e,this._value=r?e:C(e),process.env.NODE_ENV!=="production"?this.dep.trigger({target:this,type:"set",key:"value",newValue:e,oldValue:n}):this.dep.trigger())}}function en(t){return m(t)?t.value:t}class nn{constructor(e,n,r){this._object=e,this._defaultValue=r,this.__v_isRef=!0,this._value=void 0,this._key=x(n)?n:String(n),this._raw=h(e);let s=!0,i=e;if(!_(e)||x(this._key)||!X(this._key))do s=!B(i)||S(i);while(s&&(i=i.__v_raw));this._shallow=s}get value(){let e=this._object[this._key];return this._shallow&&(e=en(e)),this._value=e===void 0?this._defaultValue:e}set value(e){if(this._shallow&&m(this._raw[this._key])){const n=this._object[this._key];if(m(n)){n.value=e;return}}this._object[this._key]=e}get dep(){return Fe(this._raw,this._key)}}class sn{constructor(e){this._getter=e,this.__v_isRef=!0,this.__v_isReadonly=!0,this._value=void 0}get value(){return this._value=this._getter()}}function rn(t,e,n){return m(t)?t:I(t)?new sn(t):b(t)&&arguments.length>1?on(t,e,n):Zt(t)}function on(t,e,n){return new nn(t,e,n)}const P=[];function cn(t){P.push(t)}function an(){P.pop()}let At=!1;function K(t,...e){if(At)return;At=!0,et();const n=P.length?P[P.length-1].component:null,r=n&&n.appContext.config.warnHandler,s=ln();if(r)It(r,n,11,[t+e.map(i=>{var o,c;return(c=(o=i.toString)==null?void 0:o.call(i))!=null?c:JSON.stringify(i)}).join(""),n&&n.proxy,s.map(({vnode:i})=>`at <${_e(n,i.type)}>`).join(`
|
|
1
|
+
(function(d,F){typeof exports=="object"&&typeof module<"u"?F(exports,require("pinia")):typeof define=="function"&&define.amd?define(["exports","pinia"],F):(d=typeof globalThis<"u"?globalThis:d||self,F(d["pinia-plugin-subscription"]={},d.Pinia))})(this,(function(d,F){"use strict";class we{_console;_createInstance;_name;_pluginOptions;_storeInstance;_resetStoreCallback;_storeOnActionSubscription;_storeMutationSubscription;_subscriptions;pluginCreated;get console(){return this._console??console}get name(){return this._name}get pluginOptions(){return this._pluginOptions??{}}set pluginOptions(e){this._pluginOptions=e}get resetStoreCallback(){return this._resetStoreCallback}get storeOnActionSubscription(){return this._storeOnActionSubscription}get storeMutationSubscription(){return this._storeMutationSubscription}get subscriptions(){return this._subscriptions}set subscriptions(e){this._subscriptions=e}constructor(e,n,r){this._name=e,this._createInstance=n,r&&(this._console=r)}invoke({store:e,options:n},r){return this._storeInstance=this._createInstance(e,{...n,...this.pluginOptions},r,this.console),this._storeInstance?(this._subscriptions=this._storeInstance.getSubscriptions(),this._storeMutationSubscription=this._storeInstance.storeSubscribe,this._storeOnActionSubscription=this._storeInstance.onAction,this.pluginCreated&&this.pluginCreated(e),!0):!1}}class xt{_console;_debug=!1;get console(){return this._console??console}set console(e){this._console=e}get debug(){return this._debug}set debug(e){this._debug=e}constructor(e,n){this._debug=e,n&&(this._console=n)}debugLog(...e){this._debug&&(Array.isArray(e)&&(e[0]=`${this._className} - ${e[0]}`),this.console.log(...e))}logError(...e){this.console.error(...e)}}const pt="pinia-plugin-subscription",Ne=(t,e="white")=>`background-color: ${t}; color: ${e}; padding: 1px; margin-right: 5px; font-size: 12px`;function ve(t,e){if(!t)throw new Error("Style instructions are required");console.log("%c%s",t,e.shift(),...e)}class Tt{_bgColor="#ffec73";_color="green";_icon="🍍⚡";_errorBgColor="#d24545";_errorColor="white";_errorIcon="🍍⚠️";_styles={error:{bgColor:this._errorBgColor,color:this._errorColor,icon:this._errorIcon},info:{bgColor:this._bgColor,color:this._color,icon:this._icon}};formatMessage(e,n){return` [${n} ${pt}] - ${e} `}generateStyle(e){return Ne(e.bgColor,e.color)}getStyleDefinition(e){return this._styles[e??"info"]}log(...e){this.useLog(this.getStyleDefinition(),e)}error(...e){this.useLog(this.getStyleDefinition("error"),e)}rebuildArgs(e,n){if(typeof e=="string")return[this.formatMessage(e,n)];if(Array.isArray(e))return[this.formatMessage(e.shift(),n),...e??[]]}useLog(e,n){ve(this.generateStyle(e),this.rebuildArgs(n,e.icon))}}class Re extends Tt{_pluginName=pt}const Ce=new Re;function Q(t){return t?Array.isArray(t)?t.length===0:typeof t=="object"?Object.keys(t).length===0:typeof t=="string"?t.trim()==="":!1:!(typeof t=="boolean"||typeof t=="number")}const Mt="PluginSubscription";class Pt extends xt{_className=Mt;_pluginDebug;_resetStoreCallback=[];_subscribers=[];_subscribersDelivered=new Set;_subscriptions=[];_subscriptionsDelivered=new Set;set subscribers(e){this._subscribers=e}get subscriptions(){if(!Q(this._subscriptions))return this._subscriptions}constructor(e,n){super(Array.isArray(n)&&!!n?.includes(Mt),Ce),this._pluginDebug=Array.isArray(n)?n:void 0,this._subscribers=e}addResetStoreCallback(e){this._resetStoreCallback.push(e)}definePluginDebug(e){return!!this._pluginDebug?.includes(e.name)}executeResetStoreCallbacks(e){this._resetStoreCallback.forEach(n=>n(e))}plugin({store:e,options:n}){if(this._subscribers.length){this.debugLog(`plugin() - ${e.$id}`,["subscriber:",this._subscribers,"store:",e,"options:",n]);try{this._subscribers.forEach(r=>{this._subscribersDelivered.has(`${r.name}-${e.$id}`)||r.invoke({store:e,options:n},this.definePluginDebug(r))&&(this._subscribersDelivered.add(`${r.name}-${e.$id}`),r.subscriptions&&this.subscriptionDelivery({store:e,options:n},r.subscriptions),r.storeMutationSubscription&&this.storeMutationSubscription(r.storeMutationSubscription),r.storeOnActionSubscription&&this.storeOnActionSubscription(r.storeOnActionSubscription),r.resetStoreCallback&&this.addResetStoreCallback(r.resetStoreCallback))}),this.rewriteResetStore({store:e},JSON.stringify(e.$state),Object.assign({},e))}catch(r){this.logError(r,e,n)}}}rewriteResetStore({store:e},n,r){e.$reset=()=>{this.debugLog("rewriteResetStore()",{initState:n,store:e,customStore:r}),this.executeResetStoreCallbacks(e),e.$patch(JSON.parse(n))}}storeOnActionSubscription(e){const{store:n,callback:r}=e();n.$onAction(({after:s,args:i,name:o})=>{this.debugLog(`storeOnActionSubscription ${n.$id}`,{after:s,args:i,name:o,store:n}),r({after:s,args:i,name:o})})}storeMutationSubscription(e){const{store:n,callback:r}=e();n.$subscribe(s=>{this.debugLog(`$subscribe ${n.$id}`,{mutation:s,store:n}),r(s)})}subscriptionDelivery({store:e,options:n},r){Object.entries(r).forEach(([s,i])=>{try{if(this._subscriptionsDelivered.has(`${s}-${e.$id}`))return;const{subscription:o,subscriptionOptions:c,stores:u}=i;this.debugLog(`subscriptionDelivery() - store: ${e.$id}`,["pluginName:",s,"subscription:",o,"options:",i,"stores:",u]);const l={storeOptions:{...n?.storeOptions??{},...c}};o.invoke({store:e,options:{...n,...l}},this.debug),this._subscriptionsDelivered.add(`${s}-${e.$id}`),Q(u)||u?.forEach(p=>o.invoke({store:p,options:{...n,...l,...p?.storeOptions??{}}},this.debug))}catch(o){this.logError("subscriptionDelivery()",o,e,n)}})}}function Ae(t){const e=Object.create(null);for(const n of t.split(","))e[n]=1;return n=>n in e}const dt=process.env.NODE_ENV!=="production"?Object.freeze({}):{};process.env.NODE_ENV!=="production"&&Object.freeze([]);const Ft=()=>{},Ie=t=>t.charCodeAt(0)===111&&t.charCodeAt(1)===110&&(t.charCodeAt(2)>122||t.charCodeAt(2)<97),$e=t=>t.startsWith("onUpdate:"),V=Object.assign,De=Object.prototype.hasOwnProperty,_t=(t,e)=>De.call(t,e),_=Array.isArray,z=t=>kt(t)==="[object Map]",I=t=>typeof t=="function",v=t=>typeof t=="string",x=t=>typeof t=="symbol",b=t=>t!==null&&typeof t=="object",Ve=Object.prototype.toString,kt=t=>Ve.call(t),jt=t=>kt(t).slice(8,-1),X=t=>v(t)&&t!=="NaN"&&t[0]!=="-"&&""+parseInt(t,10)===t,xe=(t=>{const e=Object.create(null);return(n=>e[n]||(e[n]=t(n)))})(t=>t.charAt(0).toUpperCase()+t.slice(1)),T=(t,e)=>!Object.is(t,e);let Kt;const Z=()=>Kt||(Kt=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function gt(t){if(_(t)){const e={};for(let n=0;n<t.length;n++){const r=t[n],s=v(r)?Fe(r):gt(r);if(s)for(const i in s)e[i]=s[i]}return e}else if(v(t)||b(t))return t}const Te=/;(?![^(]*\))/g,Me=/:([^]+)/,Pe=/\/\*[^]*?\*\//g;function Fe(t){const e={};return t.replace(Pe,"").split(Te).forEach(n=>{if(n){const r=n.split(Me);r.length>1&&(e[r[0].trim()]=r[1].trim())}}),e}function bt(t){let e="";if(v(t))e=t;else if(_(t))for(let n=0;n<t.length;n++){const r=bt(t[n]);r&&(e+=r+" ")}else if(b(t))for(const n in t)t[n]&&(e+=n+" ");return e.trim()}function k(t,...e){console.warn(`[Vue warn] ${t}`,...e)}let ke,Ht=0,mt;function St(){Ht++}function yt(){if(--Ht>0)return;let t;for(;mt;){let e=mt;for(mt=void 0;e;){const n=e.next;if(e.next=void 0,e.flags&=-9,e.flags&1)try{e.trigger()}catch(r){t||(t=r)}e=n}}if(t)throw t}let tt=!0;const Lt=[];function et(){Lt.push(tt),tt=!1}function nt(){const t=Lt.pop();tt=t===void 0?!0:t}class Wt{constructor(e){this.computed=e,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0,this.__v_skip=!0,process.env.NODE_ENV!=="production"&&(this.subsHead=void 0)}track(e){}trigger(e){this.version++,this.notify(e)}notify(e){St();try{if(process.env.NODE_ENV!=="production")for(let n=this.subsHead;n;n=n.nextSub)n.sub.onTrigger&&!(n.sub.flags&8)&&n.sub.onTrigger(V({effect:n.sub},e));for(let n=this.subs;n;n=n.prevSub)n.sub.notify()&&n.sub.dep.notify()}finally{yt()}}}const st=new WeakMap,M=Symbol(process.env.NODE_ENV!=="production"?"Object iterate":""),Et=Symbol(process.env.NODE_ENV!=="production"?"Map keys iterate":""),U=Symbol(process.env.NODE_ENV!=="production"?"Array iterate":"");function g(t,e,n){if(tt&&ke){let r=st.get(t);r||st.set(t,r=new Map);let s=r.get(n);s||(r.set(n,s=new Wt),s.map=r,s.key=n),process.env.NODE_ENV!=="production"?s.track({target:t,type:e,key:n}):s.track()}}function $(t,e,n,r,s,i){const o=st.get(t);if(!o)return;const c=u=>{u&&(process.env.NODE_ENV!=="production"?u.trigger({target:t,type:e,key:n,newValue:r,oldValue:s,oldTarget:i}):u.trigger())};if(St(),e==="clear")o.forEach(c);else{const u=_(t),l=u&&X(n);if(u&&n==="length"){const p=Number(r);o.forEach((a,f)=>{(f==="length"||f===U||!x(f)&&f>=p)&&c(a)})}else switch((n!==void 0||o.has(void 0))&&c(o.get(n)),l&&c(o.get(U)),e){case"add":u?l&&c(o.get("length")):(c(o.get(M)),z(t)&&c(o.get(Et)));break;case"delete":u||(c(o.get(M)),z(t)&&c(o.get(Et)));break;case"set":z(t)&&c(o.get(M));break}}yt()}function je(t,e){const n=st.get(t);return n&&n.get(e)}function j(t){const e=h(t);return e===t?e:(g(e,"iterate",U),S(t)?e:e.map(C))}function Ot(t){return g(t=h(t),"iterate",U),t}function O(t,e){return w(t)?J(Ct(t)?C(e):e):C(e)}const Ke={__proto__:null,[Symbol.iterator](){return wt(this,Symbol.iterator,t=>O(this,t))},concat(...t){return j(this).concat(...t.map(e=>_(e)?j(e):e))},entries(){return wt(this,"entries",t=>(t[1]=O(this,t[1]),t))},every(t,e){return R(this,"every",t,e,void 0,arguments)},filter(t,e){return R(this,"filter",t,e,n=>n.map(r=>O(this,r)),arguments)},find(t,e){return R(this,"find",t,e,n=>O(this,n),arguments)},findIndex(t,e){return R(this,"findIndex",t,e,void 0,arguments)},findLast(t,e){return R(this,"findLast",t,e,n=>O(this,n),arguments)},findLastIndex(t,e){return R(this,"findLastIndex",t,e,void 0,arguments)},forEach(t,e){return R(this,"forEach",t,e,void 0,arguments)},includes(...t){return Nt(this,"includes",t)},indexOf(...t){return Nt(this,"indexOf",t)},join(t){return j(this).join(t)},lastIndexOf(...t){return Nt(this,"lastIndexOf",t)},map(t,e){return R(this,"map",t,e,void 0,arguments)},pop(){return q(this,"pop")},push(...t){return q(this,"push",t)},reduce(t,...e){return zt(this,"reduce",t,e)},reduceRight(t,...e){return zt(this,"reduceRight",t,e)},shift(){return q(this,"shift")},some(t,e){return R(this,"some",t,e,void 0,arguments)},splice(...t){return q(this,"splice",t)},toReversed(){return j(this).toReversed()},toSorted(t){return j(this).toSorted(t)},toSpliced(...t){return j(this).toSpliced(...t)},unshift(...t){return q(this,"unshift",t)},values(){return wt(this,"values",t=>O(this,t))}};function wt(t,e,n){const r=Ot(t),s=r[e]();return r!==t&&!S(t)&&(s._next=s.next,s.next=()=>{const i=s._next();return i.done||(i.value=n(i.value)),i}),s}const He=Array.prototype;function R(t,e,n,r,s,i){const o=Ot(t),c=o!==t&&!S(t),u=o[e];if(u!==He[e]){const a=u.apply(t,i);return c?C(a):a}let l=n;o!==t&&(c?l=function(a,f){return n.call(this,O(t,a),f,t)}:n.length>2&&(l=function(a,f){return n.call(this,a,f,t)}));const p=u.call(o,l,r);return c&&s?s(p):p}function zt(t,e,n,r){const s=Ot(t),i=s!==t&&!S(t);let o=n,c=!1;s!==t&&(i?(c=r.length===0,o=function(l,p,a){return c&&(c=!1,l=O(t,l)),n.call(this,l,O(t,p),a,t)}):n.length>3&&(o=function(l,p,a){return n.call(this,l,p,a,t)}));const u=s[e](o,...r);return c?O(t,u):u}function Nt(t,e,n){const r=h(t);g(r,"iterate",U);const s=r[e](...n);return(s===-1||s===!1)&&B(n[0])?(n[0]=h(n[0]),r[e](...n)):s}function q(t,e,n=[]){et(),St();const r=h(t)[e].apply(t,n);return yt(),nt(),r}const Le=Ae("__proto__,__v_isRef,__isVue"),Ut=new Set(Object.getOwnPropertyNames(Symbol).filter(t=>t!=="arguments"&&t!=="caller").map(t=>Symbol[t]).filter(x));function We(t){x(t)||(t=String(t));const e=h(this);return g(e,"has",t),e.hasOwnProperty(t)}class qt{constructor(e=!1,n=!1){this._isReadonly=e,this._isShallow=n}get(e,n,r){if(n==="__v_skip")return e.__v_skip;const s=this._isReadonly,i=this._isShallow;if(n==="__v_isReactive")return!s;if(n==="__v_isReadonly")return s;if(n==="__v_isShallow")return i;if(n==="__v_raw")return r===(s?i?Ze:Gt:i?Xe:Yt).get(e)||Object.getPrototypeOf(e)===Object.getPrototypeOf(r)?e:void 0;const o=_(e);if(!s){let u;if(o&&(u=Ke[n]))return u;if(n==="hasOwnProperty")return We}const c=Reflect.get(e,n,m(e)?e:r);if((x(n)?Ut.has(n):Le(n))||(s||g(e,"get",n),i))return c;if(m(c)){const u=o&&X(n)?c:c.value;return s&&b(u)?Rt(u):u}return b(c)?s?Rt(c):Qt(c):c}}class ze extends qt{constructor(e=!1){super(!1,e)}set(e,n,r,s){let i=e[n];const o=_(e)&&X(n);if(!this._isShallow){const l=w(i);if(!S(r)&&!w(r)&&(i=h(i),r=h(r)),!o&&m(i)&&!m(r))return l?(process.env.NODE_ENV!=="production"&&k(`Set operation on key "${String(n)}" failed: target is readonly.`,e[n]),!0):(i.value=r,!0)}const c=o?Number(n)<e.length:_t(e,n),u=Reflect.set(e,n,r,m(e)?e:s);return e===h(s)&&u&&(c?T(r,i)&&$(e,"set",n,r,i):$(e,"add",n,r)),u}deleteProperty(e,n){const r=_t(e,n),s=e[n],i=Reflect.deleteProperty(e,n);return i&&r&&$(e,"delete",n,void 0,s),i}has(e,n){const r=Reflect.has(e,n);return(!x(n)||!Ut.has(n))&&g(e,"has",n),r}ownKeys(e){return g(e,"iterate",_(e)?"length":M),Reflect.ownKeys(e)}}class Ue extends qt{constructor(e=!1){super(!0,e)}set(e,n){return process.env.NODE_ENV!=="production"&&k(`Set operation on key "${String(n)}" failed: target is readonly.`,e),!0}deleteProperty(e,n){return process.env.NODE_ENV!=="production"&&k(`Delete operation on key "${String(n)}" failed: target is readonly.`,e),!0}}const qe=new ze,Be=new Ue,vt=t=>t,rt=t=>Reflect.getPrototypeOf(t);function Je(t,e,n){return function(...r){const s=this.__v_raw,i=h(s),o=z(i),c=t==="entries"||t===Symbol.iterator&&o,u=t==="keys"&&o,l=s[t](...r),p=n?vt:e?J:C;return!e&&g(i,"iterate",u?Et:M),V(Object.create(l),{next(){const{value:a,done:f}=l.next();return f?{value:a,done:f}:{value:c?[p(a[0]),p(a[1])]:p(a),done:f}}})}}function it(t){return function(...e){if(process.env.NODE_ENV!=="production"){const n=e[0]?`on key "${e[0]}" `:"";k(`${xe(t)} operation ${n}failed: target is readonly.`,h(this))}return t==="delete"?!1:t==="clear"?void 0:this}}function Ye(t,e){const n={get(s){const i=this.__v_raw,o=h(i),c=h(s);t||(T(s,c)&&g(o,"get",s),g(o,"get",c));const{has:u}=rt(o),l=e?vt:t?J:C;if(u.call(o,s))return l(i.get(s));if(u.call(o,c))return l(i.get(c));i!==o&&i.get(s)},get size(){const s=this.__v_raw;return!t&&g(h(s),"iterate",M),s.size},has(s){const i=this.__v_raw,o=h(i),c=h(s);return t||(T(s,c)&&g(o,"has",s),g(o,"has",c)),s===c?i.has(s):i.has(s)||i.has(c)},forEach(s,i){const o=this,c=o.__v_raw,u=h(c),l=e?vt:t?J:C;return!t&&g(u,"iterate",M),c.forEach((p,a)=>s.call(i,l(p),l(a),o))}};return V(n,t?{add:it("add"),set:it("set"),delete:it("delete"),clear:it("clear")}:{add(s){const i=h(this),o=rt(i),c=h(s),u=!e&&!S(s)&&!w(s)?c:s;return o.has.call(i,u)||T(s,u)&&o.has.call(i,s)||T(c,u)&&o.has.call(i,c)||(i.add(u),$(i,"add",u,u)),this},set(s,i){!e&&!S(i)&&!w(i)&&(i=h(i));const o=h(this),{has:c,get:u}=rt(o);let l=c.call(o,s);l?process.env.NODE_ENV!=="production"&&Jt(o,c,s):(s=h(s),l=c.call(o,s));const p=u.call(o,s);return o.set(s,i),l?T(i,p)&&$(o,"set",s,i,p):$(o,"add",s,i),this},delete(s){const i=h(this),{has:o,get:c}=rt(i);let u=o.call(i,s);u?process.env.NODE_ENV!=="production"&&Jt(i,o,s):(s=h(s),u=o.call(i,s));const l=c?c.call(i,s):void 0,p=i.delete(s);return u&&$(i,"delete",s,void 0,l),p},clear(){const s=h(this),i=s.size!==0,o=process.env.NODE_ENV!=="production"?z(s)?new Map(s):new Set(s):void 0,c=s.clear();return i&&$(s,"clear",void 0,void 0,o),c}}),["keys","values","entries",Symbol.iterator].forEach(s=>{n[s]=Je(s,t,e)}),n}function Bt(t,e){const n=Ye(t,e);return(r,s,i)=>s==="__v_isReactive"?!t:s==="__v_isReadonly"?t:s==="__v_raw"?r:Reflect.get(_t(n,s)&&s in r?n:r,s,i)}const Ge={get:Bt(!1,!1)},Qe={get:Bt(!0,!1)};function Jt(t,e,n){const r=h(n);if(r!==n&&e.call(t,r)){const s=jt(t);k(`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.`)}}const Yt=new WeakMap,Xe=new WeakMap,Gt=new WeakMap,Ze=new WeakMap;function tn(t){switch(t){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Qt(t){return w(t)?t:Xt(t,!1,qe,Ge,Yt)}function Rt(t){return Xt(t,!0,Be,Qe,Gt)}function Xt(t,e,n,r,s){if(!b(t))return process.env.NODE_ENV!=="production"&&k(`value cannot be made ${e?"readonly":"reactive"}: ${String(t)}`),t;if(t.__v_raw&&!(e&&t.__v_isReactive)||t.__v_skip||!Object.isExtensible(t))return t;const i=s.get(t);if(i)return i;const o=tn(jt(t));if(o===0)return t;const c=new Proxy(t,o===2?r:n);return s.set(t,c),c}function Ct(t){return w(t)?Ct(t.__v_raw):!!(t&&t.__v_isReactive)}function w(t){return!!(t&&t.__v_isReadonly)}function S(t){return!!(t&&t.__v_isShallow)}function B(t){return t?!!t.__v_raw:!1}function h(t){const e=t&&t.__v_raw;return e?h(e):t}const C=t=>b(t)?Qt(t):t,J=t=>b(t)?Rt(t):t;function m(t){return t?t.__v_isRef===!0:!1}function Zt(t){return en(t,!1)}function en(t,e){return m(t)?t:new nn(t,e)}class nn{constructor(e,n){this.dep=new Wt,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=n?e:h(e),this._value=n?e:C(e),this.__v_isShallow=n}get value(){return process.env.NODE_ENV!=="production"?this.dep.track({target:this,type:"get",key:"value"}):this.dep.track(),this._value}set value(e){const n=this._rawValue,r=this.__v_isShallow||S(e)||w(e);e=r?e:h(e),T(e,n)&&(this._rawValue=e,this._value=r?e:C(e),process.env.NODE_ENV!=="production"?this.dep.trigger({target:this,type:"set",key:"value",newValue:e,oldValue:n}):this.dep.trigger())}}function sn(t){return m(t)?t.value:t}class rn{constructor(e,n,r){this._object=e,this._defaultValue=r,this.__v_isRef=!0,this._value=void 0,this._key=x(n)?n:String(n),this._raw=h(e);let s=!0,i=e;if(!_(e)||x(this._key)||!X(this._key))do s=!B(i)||S(i);while(s&&(i=i.__v_raw));this._shallow=s}get value(){let e=this._object[this._key];return this._shallow&&(e=sn(e)),this._value=e===void 0?this._defaultValue:e}set value(e){if(this._shallow&&m(this._raw[this._key])){const n=this._object[this._key];if(m(n)){n.value=e;return}}this._object[this._key]=e}get dep(){return je(this._raw,this._key)}}class on{constructor(e){this._getter=e,this.__v_isRef=!0,this.__v_isReadonly=!0,this._value=void 0}get value(){return this._value=this._getter()}}function cn(t,e,n){return m(t)?t:I(t)?new on(t):b(t)&&arguments.length>1?an(t,e,n):Zt(t)}function an(t,e,n){return new rn(t,e,n)}const P=[];function un(t){P.push(t)}function ln(){P.pop()}let At=!1;function K(t,...e){if(At)return;At=!0,et();const n=P.length?P[P.length-1].component:null,r=n&&n.appContext.config.warnHandler,s=fn();if(r)It(r,n,11,[t+e.map(i=>{var o,c;return(c=(o=i.toString)==null?void 0:o.call(i))!=null?c:JSON.stringify(i)}).join(""),n&&n.proxy,s.map(({vnode:i})=>`at <${_e(n,i.type)}>`).join(`
|
|
2
2
|
`),s]);else{const i=[`[Vue warn]: ${t}`,...e];s.length&&i.push(`
|
|
3
|
-
`,...
|
|
4
|
-
`],...
|
|
5
|
-
Component that was made reactive: `,t)),
|
|
3
|
+
`,...hn(s)),console.warn(...i)}nt(),At=!1}function fn(){let t=P[P.length-1];if(!t)return[];const e=[];for(;t;){const n=e[0];n&&n.vnode===t?n.recurseCount++:e.push({vnode:t,recurseCount:0});const r=t.component&&t.component.parent;t=r&&r.vnode}return e}function hn(t){const e=[];return t.forEach((n,r)=>{e.push(...r===0?[]:[`
|
|
4
|
+
`],...pn(n))}),e}function pn({vnode:t,recurseCount:e}){const n=e>0?`... (${e} recursive calls)`:"",r=t.component?t.component.parent==null:!1,s=` at <${_e(t.component,t.type,r)}`,i=">"+n;return t.props?[s,...dn(t.props),i]:[s+i]}function dn(t){const e=[],n=Object.keys(t);return n.slice(0,3).forEach(r=>{e.push(...te(r,t[r]))}),n.length>3&&e.push(" ..."),e}function te(t,e,n){return v(e)?(e=JSON.stringify(e),n?e:[`${t}=${e}`]):typeof e=="number"||typeof e=="boolean"||e==null?n?e:[`${t}=${e}`]:m(e)?(e=te(t,h(e.value),!0),n?e:[`${t}=Ref<`,e,">"]):I(e)?[`${t}=fn${e.name?`<${e.name}>`:""}`]:(e=h(e),n?e:[`${t}=`,e])}const ee={sp:"serverPrefetch hook",bc:"beforeCreate hook",c:"created hook",bm:"beforeMount hook",m:"mounted hook",bu:"beforeUpdate hook",u:"updated",bum:"beforeUnmount hook",um:"unmounted hook",a:"activated hook",da:"deactivated hook",ec:"errorCaptured hook",rtc:"renderTracked hook",rtg:"renderTriggered hook",0:"setup function",1:"render function",2:"watcher getter",3:"watcher callback",4:"watcher cleanup function",5:"native event handler",6:"component event handler",7:"vnode hook",8:"directive hook",9:"transition hook",10:"app errorHandler",11:"app warnHandler",12:"ref function",13:"async component loader",14:"scheduler flush",15:"component update",16:"app unmount cleanup function"};function It(t,e,n,r){try{return r?t(...r):t()}catch(s){ne(s,e,n)}}function ne(t,e,n,r=!0){const s=e?e.vnode:null,{errorHandler:i,throwUnhandledErrorInProduction:o}=e&&e.appContext.config||dt;if(e){let c=e.parent;const u=e.proxy,l=process.env.NODE_ENV!=="production"?ee[n]:`https://vuejs.org/error-reference/#runtime-${n}`;for(;c;){const p=c.ec;if(p){for(let a=0;a<p.length;a++)if(p[a](t,u,l)===!1)return}c=c.parent}if(i){et(),It(i,null,10,[t,u,l]),nt();return}}_n(t,n,s,r,o)}function _n(t,e,n,r=!0,s=!1){if(process.env.NODE_ENV!=="production"){const i=ee[e];if(n&&un(n),K(`Unhandled error${i?` during execution of ${i}`:""}`),n&&ln(),r)throw t;console.error(t)}else{if(s)throw t;console.error(t)}}const y=[];let A=-1;const H=[];let D=null,L=0;const gn=Promise.resolve();let $t=null;const bn=100;function mn(t){let e=A+1,n=y.length;for(;e<n;){const r=e+n>>>1,s=y[r],i=Y(s);i<t||i===t&&s.flags&2?e=r+1:n=r}return e}function Sn(t){if(!(t.flags&1)){const e=Y(t),n=y[y.length-1];!n||!(t.flags&2)&&e>=Y(n)?y.push(t):y.splice(mn(e),0,t),t.flags|=1,se()}}function se(){$t||($t=gn.then(re))}function yn(t){_(t)?H.push(...t):D&&t.id===-1?D.splice(L+1,0,t):t.flags&1||(H.push(t),t.flags|=1),se()}function En(t){if(H.length){const e=[...new Set(H)].sort((n,r)=>Y(n)-Y(r));if(H.length=0,D){D.push(...e);return}for(D=e,process.env.NODE_ENV!=="production"&&(t=t||new Map),L=0;L<D.length;L++){const n=D[L];process.env.NODE_ENV!=="production"&&ie(t,n)||(n.flags&4&&(n.flags&=-2),n.flags&8||n(),n.flags&=-2)}D=null,L=0}}const Y=t=>t.id==null?t.flags&2?-1:1/0:t.id;function re(t){process.env.NODE_ENV!=="production"&&(t=t||new Map);const e=process.env.NODE_ENV!=="production"?n=>ie(t,n):Ft;try{for(A=0;A<y.length;A++){const n=y[A];if(n&&!(n.flags&8)){if(process.env.NODE_ENV!=="production"&&e(n))continue;n.flags&4&&(n.flags&=-2),It(n,n.i,n.i?15:14),n.flags&4||(n.flags&=-2)}}}finally{for(;A<y.length;A++){const n=y[A];n&&(n.flags&=-2)}A=-1,y.length=0,En(t),$t=null,(y.length||H.length)&&re(t)}}function ie(t,e){const n=t.get(e)||0;if(n>bn){const r=e.i,s=r&&de(r.type);return ne(`Maximum recursive updates exceeded${s?` in component <${s}>`:""}. This means you have a reactive effect that is mutating its own dependencies and thus recursively triggering itself. Possible sources include component template, render function, updated hook or watcher source function.`,null,10),!0}return t.set(e,n+1),!1}const Dt=new Map;process.env.NODE_ENV!=="production"&&(Z().__VUE_HMR_RUNTIME__={createRecord:Vt(On),rerender:Vt(wn),reload:Vt(Nn)});const ot=new Map;function On(t,e){return ot.has(t)?!1:(ot.set(t,{initialDef:ct(e),instances:new Set}),!0)}function ct(t){return ge(t)?t.__vccOpts:t}function wn(t,e){const n=ot.get(t);n&&(n.initialDef.render=e,[...n.instances].forEach(r=>{e&&(r.render=e,ct(r.type).render=e),r.renderCache=[],r.job.flags&8||r.update()}))}function Nn(t,e){const n=ot.get(t);if(!n)return;e=ct(e),oe(n.initialDef,e);const r=[...n.instances];for(let s=0;s<r.length;s++){const i=r[s],o=ct(i.type);let c=Dt.get(o);c||(o!==n.initialDef&&oe(o,e),Dt.set(o,c=new Set)),c.add(i),i.appContext.propsCache.delete(i.type),i.appContext.emitsCache.delete(i.type),i.appContext.optionsCache.delete(i.type),i.ceReload?(c.add(i),i.ceReload(e.styles),c.delete(i)):i.parent?Sn(()=>{i.job.flags&8||(i.parent.update(),c.delete(i))}):i.appContext.reload?i.appContext.reload():typeof window<"u"?window.location.reload():console.warn("[HMR] Root or manually mounted instance modified. Full reload required."),i.root.ce&&i!==i.root&&i.root.ce._removeChildStyle(o)}yn(()=>{Dt.clear()})}function oe(t,e){V(t,e);for(const n in t)n!=="__file"&&!(n in e)&&delete t[n]}function Vt(t){return(e,n)=>{try{return t(e,n)}catch(r){console.error(r),console.warn("[HMR] Something went wrong during Vue component hot-reload. Full reload required.")}}}let W,at=[];function ce(t,e){var n,r;W=t,W?(W.enabled=!0,at.forEach(({event:s,args:i})=>W.emit(s,...i)),at=[]):typeof window<"u"&&window.HTMLElement&&!((r=(n=window.navigator)==null?void 0:n.userAgent)!=null&&r.includes("jsdom"))?((e.__VUE_DEVTOOLS_HOOK_REPLAY__=e.__VUE_DEVTOOLS_HOOK_REPLAY__||[]).push(i=>{ce(i,e)}),setTimeout(()=>{W||(e.__VUE_DEVTOOLS_HOOK_REPLAY__=null,at=[])},3e3)):at=[]}let ut=null,vn=null;const Rn=t=>t.__isTeleport;function ae(t,e){t.shapeFlag&6&&t.component?(t.transition=e,ae(t.component.subTree,e)):t.shapeFlag&128?(t.ssContent.transition=e.clone(t.ssContent),t.ssFallback.transition=e.clone(t.ssFallback)):t.transition=e}Z().requestIdleCallback,Z().cancelIdleCallback;const Cn=Symbol.for("v-ndc"),An={};process.env.NODE_ENV!=="production"&&(An.ownKeys=t=>(K("Avoid app logic that relies on enumerating keys on a component instance. The keys will be empty in production mode to avoid performance overhead."),Reflect.ownKeys(t)));const In={},ue=t=>Object.getPrototypeOf(t)===In,$n=t=>t.__isSuspense,le=Symbol.for("v-fgt"),Dn=Symbol.for("v-txt"),Vn=Symbol.for("v-cmt");function xn(t){return t?t.__v_isVNode===!0:!1}const Tn=(...t)=>he(...t),fe=({key:t})=>t??null,lt=({ref:t,ref_key:e,ref_for:n})=>(typeof t=="number"&&(t=""+t),t!=null?v(t)||m(t)||I(t)?{i:ut,r:t,k:e,f:!!n}:t:null);function Mn(t,e=null,n=null,r=0,s=null,i=t===le?0:1,o=!1,c=!1){const u={__v_isVNode:!0,__v_skip:!0,type:t,props:e,key:e&&fe(e),ref:e&<(e),scopeId:vn,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:i,patchFlag:r,dynamicProps:s,dynamicChildren:null,appContext:null,ctx:ut};return c?(ht(u,n),i&128&&t.normalize(u)):n&&(u.shapeFlag|=v(n)?8:16),process.env.NODE_ENV!=="production"&&u.key!==u.key&&K("VNode created with invalid key (NaN). VNode type:",u.type),u}const Pn=process.env.NODE_ENV!=="production"?Tn:he;function he(t,e=null,n=null,r=0,s=null,i=!1){if((!t||t===Cn)&&(process.env.NODE_ENV!=="production"&&!t&&K(`Invalid vnode type when creating vnode: ${t}.`),t=Vn),xn(t)){const c=ft(t,e,!0);return n&&ht(c,n),c.patchFlag=-2,c}if(ge(t)&&(t=t.__vccOpts),e){e=Fn(e);let{class:c,style:u}=e;c&&!v(c)&&(e.class=bt(c)),b(u)&&(B(u)&&!_(u)&&(u=V({},u)),e.style=gt(u))}const o=v(t)?1:$n(t)?128:Rn(t)?64:b(t)?4:I(t)?2:0;return process.env.NODE_ENV!=="production"&&o&4&&B(t)&&(t=h(t),K("Vue received a Component that was made a reactive object. This can lead to unnecessary performance overhead and should be avoided by marking the component with `markRaw` or using `shallowRef` instead of `ref`.",`
|
|
5
|
+
Component that was made reactive: `,t)),Mn(t,e,n,r,s,o,i,!0)}function Fn(t){return t?B(t)||ue(t)?V({},t):t:null}function ft(t,e,n=!1,r=!1){const{props:s,ref:i,patchFlag:o,children:c,transition:u}=t,l=e?jn(s||{},e):s,p={__v_isVNode:!0,__v_skip:!0,type:t.type,props:l,key:l&&fe(l),ref:e&&e.ref?n&&i?_(i)?i.concat(lt(e)):[i,lt(e)]:lt(e):i,scopeId:t.scopeId,slotScopeIds:t.slotScopeIds,children:process.env.NODE_ENV!=="production"&&o===-1&&_(c)?c.map(pe):c,target:t.target,targetStart:t.targetStart,targetAnchor:t.targetAnchor,staticCount:t.staticCount,shapeFlag:t.shapeFlag,patchFlag:e&&t.type!==le?o===-1?16:o|16:o,dynamicProps:t.dynamicProps,dynamicChildren:t.dynamicChildren,appContext:t.appContext,dirs:t.dirs,transition:u,component:t.component,suspense:t.suspense,ssContent:t.ssContent&&ft(t.ssContent),ssFallback:t.ssFallback&&ft(t.ssFallback),placeholder:t.placeholder,el:t.el,anchor:t.anchor,ctx:t.ctx,ce:t.ce};return u&&r&&ae(p,u.clone(p)),p}function pe(t){const e=ft(t);return _(t.children)&&(e.children=t.children.map(pe)),e}function kn(t=" ",e=0){return Pn(Dn,null,t,e)}function ht(t,e){let n=0;const{shapeFlag:r}=t;if(e==null)e=null;else if(_(e))n=16;else if(typeof e=="object")if(r&65){const s=e.default;s&&(s._c&&(s._d=!1),ht(t,s()),s._c&&(s._d=!0));return}else n=32,!e._&&!ue(e)&&(e._ctx=ut);else if(I(e)){if(r&65){ht(t,{default:e});return}e={default:e,_ctx:ut},n=32}else e=String(e),r&64?(n=16,e=[kn(e)]):n=8;t.children=e,t.shapeFlag|=n}function jn(...t){const e={};for(let n=0;n<t.length;n++){const r=t[n];for(const s in r)if(s==="class")e.class!==r.class&&(e.class=bt([e.class,r.class]));else if(s==="style")e.style=gt([e.style,r.style]);else if(Ie(s)){const i=e[s],o=r[s];o&&i!==o&&!(_(i)&&i.includes(o))?e[s]=i?[].concat(i,o):o:o==null&&i==null&&!$e(s)&&(e[s]=o)}else s!==""&&(e[s]=r[s])}return e}{const t=Z(),e=(n,r)=>{let s;return(s=t[n])||(s=t[n]=[]),s.push(r),i=>{s.length>1?s.forEach(o=>o(i)):s[0](i)}};e("__VUE_INSTANCE_SETTERS__",n=>n),e("__VUE_SSR_SETTERS__",n=>n)}process.env.NODE_ENV;const Kn=/(?:^|[-_])\w/g,Hn=t=>t.replace(Kn,e=>e.toUpperCase()).replace(/[-_]/g,"");function de(t,e=!0){return I(t)?t.displayName||t.name:t.name||e&&t.__name}function _e(t,e,n=!1){let r=de(e);if(!r&&e.__file){const s=e.__file.match(/([^/\\]+)\.\w+$/);s&&(r=s[1])}if(!r&&t){const s=i=>{for(const o in i)if(i[o]===e)return o};r=s(t.components)||t.parent&&s(t.parent.type.components)||s(t.appContext.components)}return r?Hn(r):n?"App":"Anonymous"}function ge(t){return I(t)&&"__vccOpts"in t}function Ln(){if(process.env.NODE_ENV==="production"||typeof window>"u")return;const t={style:"color:#3ba776"},e={style:"color:#1677ff"},n={style:"color:#f5222d"},r={style:"color:#eb2f96"},s={__vue_custom_formatter:!0,header(a){if(!b(a))return null;if(a.__isVue)return["div",t,"VueInstance"];if(m(a)){et();const f=a.value;return nt(),["div",{},["span",t,p(a)],"<",c(f),">"]}else{if(Ct(a))return["div",{},["span",t,S(a)?"ShallowReactive":"Reactive"],"<",c(a),`>${w(a)?" (readonly)":""}`];if(w(a))return["div",{},["span",t,S(a)?"ShallowReadonly":"Readonly"],"<",c(a),">"]}return null},hasBody(a){return a&&a.__isVue},body(a){if(a&&a.__isVue)return["div",{},...i(a.$)]}};function i(a){const f=[];a.type.props&&a.props&&f.push(o("props",h(a.props))),a.setupState!==dt&&f.push(o("setup",a.setupState)),a.data!==dt&&f.push(o("data",h(a.data)));const E=u(a,"computed");E&&f.push(o("computed",E));const N=u(a,"inject");return N&&f.push(o("injected",N)),f.push(["div",{},["span",{style:r.style+";opacity:0.66"},"$ (internal): "],["object",{object:a}]]),f}function o(a,f){return f=V({},f),Object.keys(f).length?["div",{style:"line-height:1.25em;margin-bottom:0.6em"},["div",{style:"color:#476582"},a],["div",{style:"padding-left:1.25em"},...Object.keys(f).map(E=>["div",{},["span",r,E+": "],c(f[E],!1)])]]:["span",{}]}function c(a,f=!0){return typeof a=="number"?["span",e,a]:typeof a=="string"?["span",n,JSON.stringify(a)]:typeof a=="boolean"?["span",r,a]:b(a)?["object",{object:f?h(a):a}]:["span",n,String(a)]}function u(a,f){const E=a.type;if(I(E))return;const N={};for(const G in a.ctx)l(E,G,f)&&(N[G]=a.ctx[G]);return N}function l(a,f,E){const N=a[E];if(_(N)&&N.includes(f)||b(N)&&f in N||a.extends&&l(a.extends,f,E)||a.mixins&&a.mixins.some(G=>l(G,f,E)))return!0}function p(a){return S(a)?"ShallowRef":a.effect?"ComputedRef":"Ref"}window.devtoolsFormatters?window.devtoolsFormatters.push(s):window.devtoolsFormatters=[s]}process.env.NODE_ENV,process.env.NODE_ENV,process.env.NODE_ENV;function Wn(){Ln()}process.env.NODE_ENV!=="production"&&Wn();const be=new WeakMap,me=new Map;function zn(t,e,n){const r=n?{storeOptions:n}:{};return typeof e=="function"?Se(t,e,r):qn(t,e,r)}function Un(t,e,n){const r=n?{storeOptions:{...n,enhanceStore:!0}}:{};return Se(t,e,r)}function Se(t,e,n){const r={id:t,extensions:{}};me.set(t,r);const s=F.defineStore(t,()=>e(r),n);return Object.assign(((...i)=>{const o=s(...i);return be.set(o,r),o}),s)}function qn(t,e,n){return n&&(e={...e,...n??{}}),F.defineStore(t,e)}const Bn=new Set(["_","$"]);function Jn(t){return Bn.has(t[0])}function ye(t){return be.get(t)??(typeof t?.$id=="string"?me.get(t.$id):void 0)}function Ee(t){const e=t.extensions.enhancedStore??t.extensions.extending;if(!e)throw new Error(`${t.id}Store - getEnhancedStore - Error: enhanced store is required`);return e}function Oe(t,e){t.extensions.enhancedStore=e,t.extensions.extending=e}function Yn(t){return Ee(t)}class Gn extends xt{_className="Store";_onAction;_options;_store;_subscriptions={};_storeSubscribe;static _requiredKeys;get onAction(){if(this._onAction)return()=>({store:this.store,callback:this._onAction})}set onAction(e){this._onAction=e}get options(){return this._options}get state(){return this._store.$state}set state(e){this._store.$state=e}get store(){return this._store}get storeSubscribe(){if(this._storeSubscribe)return()=>({store:this.store,callback:this._storeSubscribe})}set storeSubscribe(e){this._storeSubscribe=e}constructor(e,n,r=!1,s){if(super(r,s),this._options=n.storeOptions,this._store=e,this._options?.enhanceStore){const i=ye(this.store);i&&Oe(i,this.store)}}addToState(e,n){this.isOptionApi()||n?.value||(n=Zt(n)),this.state[e]=n,this.store[e]=cn(this.state,e)}addSubscription(e,n,r){this._subscriptions[e]={subscription:n,...r??{}}}static customizeStore(e,n,r=!1,s){if(n.storeOptions&&this.hasRequiredKeys(n.storeOptions))return new this(e,n,r,s)}hasDeniedFirstChar(e){return Jn(e[0])}static hasRequiredKeys(e){return this._requiredKeys!==void 0&&this._requiredKeys?.every(n=>!!e[n])}getOption(e){return this.options&&this.options[e]}getStatePropertyValue(e){return this.getValue(this.state[e])}getSubscriptions(){if(!Q(this._subscriptions))return this._subscriptions}getValue(e){return e?.__v_isRef?e.value:e}isOptionApi(){return this.store._isOptionsAPI}stateHas(e){return this.state.hasOwnProperty(e)}storeHas(e){return this.store.hasOwnProperty(e)}}function Qn(t,e){const n=new Pt(t,e);return n.plugin.bind(n)}d.CustomConsole=Tt,d.PLUGIN_NAME=pt,d.PluginSubscriber=we,d.PluginSubscription=Pt,d.Store=Gn,d.createPlugin=Qn,d.defineAStore=zn,d.defineAStoreCtx=Un,d.getDefineAStoreSetupContext=ye,d.getEnhancedStore=Ee,d.getExtendingStore=Yn,d.isEmpty=Q,d.setEnhancedStore=Oe,Object.defineProperty(d,Symbol.toStringTag,{value:"Module"})}));
|
package/dist/types/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { DefineStoreOptions, PiniaCustomProperties, PiniaPlugin, PiniaPluginContext, StateTree, Store as PiniaStore, SubscriptionCallbackMutation, StoreDefinition } from "pinia";
|
|
2
2
|
import type { Ref } from "vue";
|
|
3
3
|
export interface AnyObject {
|
|
4
|
-
[key: number | string | symbol]:
|
|
4
|
+
[key: number | string | symbol]: any;
|
|
5
5
|
}
|
|
6
6
|
export interface SearchCollectionCriteria {
|
|
7
7
|
[key: number | string | symbol]: boolean | number | string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pinia-plugin-subscription",
|
|
3
|
-
"version": "0.1.4
|
|
3
|
+
"version": "0.1.4",
|
|
4
4
|
"description": "Pinia plugin for Vue.js that helps building Pinia plugins by centralizing subscriber registration and providing a Store base class for store helpers.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"sideEffects": false,
|