@roudanio/awesome-comment 0.10.6 → 0.10.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/awesome-comment.js +149 -149
- package/dist/{vendor-auth0-FyrIO3oS.js → vendor-auth0-DkqbqvnH.js} +1 -1
- package/dist/{vendor-i18n--NfXv8rP.js → vendor-i18n-B4UB934p.js} +34 -34
- package/dist/{vendor-lucide-C7toM1hZ.js → vendor-lucide-Cl8oS5sQ.js} +1 -1
- package/dist/{vendor-pinia-DRSupkuV.js → vendor-pinia-Dzo8X_0B.js} +43 -43
- package/dist/{vendor-vue-njoJvG0v.js → vendor-vue-BTtW1k2s.js} +375 -388
- package/package.json +7 -2
- package/vitest.config.ts +15 -0
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { i as L, a as
|
|
2
|
-
import { e as wt,
|
|
1
|
+
import { i as L, m as M, a as h, b as d, D as Ve, c as y, d as Z, e as U, u as H, f as ee, g as ht, h as P, j as N, k as q, l as te, n as kt, o as p, p as de, q as Ee, r as G, s as Q, A as Ot, t as Nt, v as yt, N as pt, w as xe, x as Pt, y as Ie, C as Mt, z as Fe, B as Le, M as Te, E as Re, F as ve, G as he, H as ke, I as St, J as Dt, K as Ct, L as At, O as Wt, P as Ut, Q as j, R as Vt, S as xt, T as $t } from "./vendor-misc-CwXjvmXA.js";
|
|
2
|
+
import { e as wt, r as Ht, s as Yt, c as Y, w as ne, a as jt, d as ie, h as $e, g as Gt, F as we, i as Bt, o as Xt, b as Jt, f as zt, T as Kt } from "./vendor-vue-BTtW1k2s.js";
|
|
3
3
|
const qt = "11.2.8";
|
|
4
4
|
function Qt() {
|
|
5
5
|
typeof __VUE_I18N_FULL_INSTALL__ != "boolean" && (j().__VUE_I18N_FULL_INSTALL__ = !0), typeof __VUE_I18N_LEGACY_API__ != "boolean" && (j().__VUE_I18N_LEGACY_API__ = !0), typeof __INTLIFY_DROP_MESSAGE_COMPILER__ != "boolean" && (j().__INTLIFY_DROP_MESSAGE_COMPILER__ = !1), typeof __INTLIFY_PROD_DEVTOOLS__ != "boolean" && (j().__INTLIFY_PROD_DEVTOOLS__ = !1);
|
|
@@ -20,8 +20,8 @@ const R = {
|
|
|
20
20
|
// unexpected error
|
|
21
21
|
UNEXPECTED_ERROR: 32
|
|
22
22
|
};
|
|
23
|
-
function
|
|
24
|
-
return
|
|
23
|
+
function k(e, ...t) {
|
|
24
|
+
return ht(e, null, void 0);
|
|
25
25
|
}
|
|
26
26
|
const re = /* @__PURE__ */ M("__translateVNode"), se = /* @__PURE__ */ M("__datetimeParts"), le = /* @__PURE__ */ M("__numberParts"), He = M("__setPluralRules"), Ye = /* @__PURE__ */ M("__injectWithOption"), oe = /* @__PURE__ */ M("__dispose");
|
|
27
27
|
function B(e) {
|
|
@@ -51,7 +51,7 @@ function B(e) {
|
|
|
51
51
|
return e;
|
|
52
52
|
}
|
|
53
53
|
function ue(e, t) {
|
|
54
|
-
const { messages: c, __i18n: l, messageResolver: a, flatJson: r } = t, s =
|
|
54
|
+
const { messages: c, __i18n: l, messageResolver: a, flatJson: r } = t, s = h(c) ? c : y(l) ? N() : { [e]: N() };
|
|
55
55
|
if (y(l) && l.forEach((i) => {
|
|
56
56
|
if ("locale" in i && "resource" in i) {
|
|
57
57
|
const { locale: u, resource: m } = i;
|
|
@@ -108,17 +108,17 @@ const ea = /* @__NO_SIDE_EFFECTS__ */ () => {
|
|
|
108
108
|
return e && (t = je(e)[Ne]) ? { [Ne]: t } : null;
|
|
109
109
|
};
|
|
110
110
|
function _e(e = {}) {
|
|
111
|
-
const { __root: t, __injectWithOption: c } = e, l = t === void 0, a = e.flatJson, r = ee ?
|
|
111
|
+
const { __root: t, __injectWithOption: c } = e, l = t === void 0, a = e.flatJson, r = ee ? Ht : Yt;
|
|
112
112
|
let s = L(e.inheritLocale) ? e.inheritLocale : !0;
|
|
113
113
|
const i = r(
|
|
114
114
|
// prettier-ignore
|
|
115
115
|
t && s ? t.locale.value : d(e.locale) ? e.locale : Ve
|
|
116
116
|
), u = r(
|
|
117
117
|
// prettier-ignore
|
|
118
|
-
t && s ? t.fallbackLocale.value : d(e.fallbackLocale) || y(e.fallbackLocale) ||
|
|
119
|
-
), m = r(ue(i.value, e)), b = r(
|
|
118
|
+
t && s ? t.fallbackLocale.value : d(e.fallbackLocale) || y(e.fallbackLocale) || h(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : i.value
|
|
119
|
+
), m = r(ue(i.value, e)), b = r(h(e.datetimeFormats) ? e.datetimeFormats : { [i.value]: {} }), f = r(h(e.numberFormats) ? e.numberFormats : { [i.value]: {} });
|
|
120
120
|
let E = t ? t.missingWarn : L(e.missingWarn) || Z(e.missingWarn) ? e.missingWarn : !0, T = t ? t.fallbackWarn : L(e.fallbackWarn) || Z(e.fallbackWarn) ? e.fallbackWarn : !0, O = t ? t.fallbackRoot : L(e.fallbackRoot) ? e.fallbackRoot : !0, v = !!e.fallbackFormat, J = U(e.missing) ? e.missing : null, A = U(e.missing) ? Pe(e.missing) : null, S = U(e.postTranslation) ? e.postTranslation : null, V = t ? t.warnHtmlMessage : L(e.warnHtmlMessage) ? e.warnHtmlMessage : !0, x = !!e.escapeParameter;
|
|
121
|
-
const $ = t ? t.modifiers :
|
|
121
|
+
const $ = t ? t.modifiers : h(e.modifiers) ? e.modifiers : {};
|
|
122
122
|
let w = e.pluralRules || t && t.pluralRules, _;
|
|
123
123
|
_ = (() => {
|
|
124
124
|
l && Ie(null);
|
|
@@ -141,8 +141,8 @@ function _e(e = {}) {
|
|
|
141
141
|
messageCompiler: e.messageCompiler,
|
|
142
142
|
__meta: { framework: "vue" }
|
|
143
143
|
};
|
|
144
|
-
n.datetimeFormats = b.value, n.numberFormats = f.value, n.__datetimeFormatters =
|
|
145
|
-
const o =
|
|
144
|
+
n.datetimeFormats = b.value, n.numberFormats = f.value, n.__datetimeFormatters = h(_) ? _.__datetimeFormatters : void 0, n.__numberFormatters = h(_) ? _.__numberFormatters : void 0;
|
|
145
|
+
const o = kt(n);
|
|
146
146
|
return l && Ie(o), o;
|
|
147
147
|
})(), H(_, i.value, u.value);
|
|
148
148
|
function ae() {
|
|
@@ -192,7 +192,7 @@ function _e(e = {}) {
|
|
|
192
192
|
} else {
|
|
193
193
|
if (K(W))
|
|
194
194
|
return W;
|
|
195
|
-
throw
|
|
195
|
+
throw k(R.UNEXPECTED_RETURN_TYPE);
|
|
196
196
|
}
|
|
197
197
|
};
|
|
198
198
|
function ge(...n) {
|
|
@@ -201,14 +201,14 @@ function _e(e = {}) {
|
|
|
201
201
|
function nt(...n) {
|
|
202
202
|
const [o, g, I] = n;
|
|
203
203
|
if (I && !p(I))
|
|
204
|
-
throw
|
|
204
|
+
throw k(R.INVALID_ARGUMENT);
|
|
205
205
|
return ge(o, g, P({ resolvedMessage: !0 }, I || {}));
|
|
206
206
|
}
|
|
207
207
|
function rt(...n) {
|
|
208
208
|
return D((o) => Reflect.apply(ve, null, [o, ...n]), () => Re(...n), "datetime format", (o) => Reflect.apply(o.d, o, [...n]), () => Te, (o) => d(o) || y(o));
|
|
209
209
|
}
|
|
210
210
|
function st(...n) {
|
|
211
|
-
return D((o) => Reflect.apply(
|
|
211
|
+
return D((o) => Reflect.apply(ke, null, [o, ...n]), () => he(...n), "number format", (o) => Reflect.apply(o.n, o, [...n]), () => Te, (o) => d(o) || y(o));
|
|
212
212
|
}
|
|
213
213
|
function lt(n) {
|
|
214
214
|
return n.map((o) => d(o) || G(o) || L(o) ? Oe(String(o)) : o);
|
|
@@ -231,7 +231,7 @@ function _e(e = {}) {
|
|
|
231
231
|
}, () => Fe(...n), "translate", (o) => o[re](...n), (o) => [Oe(o)], (o) => y(o));
|
|
232
232
|
}
|
|
233
233
|
function it(...n) {
|
|
234
|
-
return D((o) => Reflect.apply(
|
|
234
|
+
return D((o) => Reflect.apply(ke, null, [o, ...n]), () => he(...n), "number format", (o) => o[le](...n), ye, (o) => d(o) || y(o));
|
|
235
235
|
}
|
|
236
236
|
function ut(...n) {
|
|
237
237
|
return D((o) => Reflect.apply(ve, null, [o, ...n]), () => Re(...n), "datetime format", (o) => o[se](...n), ye, (o) => d(o) || y(o));
|
|
@@ -378,9 +378,9 @@ function _e(e = {}) {
|
|
|
378
378
|
return F.datetimeFormats = qe, F.numberFormats = Qe, F.rt = nt, F.te = mt, F.tm = gt, F.d = rt, F.n = st, F.getDateTimeFormat = Et, F.setDateTimeFormat = It, F.mergeDateTimeFormat = Ft, F.getNumberFormat = Lt, F.setNumberFormat = Tt, F.mergeNumberFormat = Rt, F[Ye] = c, F[re] = ct, F[se] = ut, F[le] = it, F;
|
|
379
379
|
}
|
|
380
380
|
function ta(e) {
|
|
381
|
-
const t = d(e.locale) ? e.locale : Ve, c = d(e.fallbackLocale) || y(e.fallbackLocale) ||
|
|
381
|
+
const t = d(e.locale) ? e.locale : Ve, c = d(e.fallbackLocale) || y(e.fallbackLocale) || h(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : t, l = U(e.missing) ? e.missing : void 0, a = L(e.silentTranslationWarn) || Z(e.silentTranslationWarn) ? !e.silentTranslationWarn : !0, r = L(e.silentFallbackWarn) || Z(e.silentFallbackWarn) ? !e.silentFallbackWarn : !0, s = L(e.fallbackRoot) ? e.fallbackRoot : !0, i = !!e.formatFallbackMessages, u = h(e.modifiers) ? e.modifiers : {}, m = e.pluralizationRules, b = U(e.postTranslation) ? e.postTranslation : void 0, f = d(e.warnHtmlInMessage) ? e.warnHtmlInMessage !== "off" : !0, E = !!e.escapeParameterHtml, T = L(e.sync) ? e.sync : !0;
|
|
382
382
|
let O = e.messages;
|
|
383
|
-
if (
|
|
383
|
+
if (h(e.sharedMessages)) {
|
|
384
384
|
const $ = e.sharedMessages;
|
|
385
385
|
O = Object.keys($).reduce((_, z) => {
|
|
386
386
|
const ae = _[z] || (_[z] = {});
|
|
@@ -580,7 +580,7 @@ function aa(e, t, c) {
|
|
|
580
580
|
beforeCreate() {
|
|
581
581
|
const l = X();
|
|
582
582
|
if (!l)
|
|
583
|
-
throw
|
|
583
|
+
throw k(R.UNEXPECTED_ERROR);
|
|
584
584
|
const a = this.$options;
|
|
585
585
|
if (a.i18n) {
|
|
586
586
|
const r = a.i18n;
|
|
@@ -613,7 +613,7 @@ function aa(e, t, c) {
|
|
|
613
613
|
unmounted() {
|
|
614
614
|
const l = X();
|
|
615
615
|
if (!l)
|
|
616
|
-
throw
|
|
616
|
+
throw k(R.UNEXPECTED_ERROR);
|
|
617
617
|
const a = this.$i18n;
|
|
618
618
|
delete this.$t, delete this.$rt, delete this.$te, delete this.$d, delete this.$n, delete this.$tm, a.__disposer && (a.__disposer(), delete a.__disposer, delete a.__extender), c.__deleteInstance(l), delete this.$i18n;
|
|
619
619
|
}
|
|
@@ -743,7 +743,7 @@ function ca(e) {
|
|
|
743
743
|
const t = (s) => {
|
|
744
744
|
const { instance: i, value: u } = s;
|
|
745
745
|
if (!i || !i.$)
|
|
746
|
-
throw
|
|
746
|
+
throw k(R.UNEXPECTED_ERROR);
|
|
747
747
|
const m = oa(e, i.$), b = Ce(u);
|
|
748
748
|
return [
|
|
749
749
|
Reflect.apply(m.t, m, [...Ae(b)]),
|
|
@@ -777,23 +777,23 @@ function ca(e) {
|
|
|
777
777
|
function Ce(e) {
|
|
778
778
|
if (d(e))
|
|
779
779
|
return { path: e };
|
|
780
|
-
if (
|
|
780
|
+
if (h(e)) {
|
|
781
781
|
if (!("path" in e))
|
|
782
|
-
throw
|
|
782
|
+
throw k(R.REQUIRED_VALUE, "path");
|
|
783
783
|
return e;
|
|
784
784
|
} else
|
|
785
|
-
throw
|
|
785
|
+
throw k(R.INVALID_VALUE);
|
|
786
786
|
}
|
|
787
787
|
function Ae(e) {
|
|
788
788
|
const { path: t, locale: c, args: l, choice: a, plural: r } = e, s = {}, i = l || {};
|
|
789
789
|
return d(c) && (s.locale = c), G(a) && (s.plural = a), G(r) && (s.plural = r), [t, i, s];
|
|
790
790
|
}
|
|
791
791
|
function ia(e, t, ...c) {
|
|
792
|
-
const l =
|
|
792
|
+
const l = h(c[0]) ? c[0] : {};
|
|
793
793
|
(!L(l.globalInstall) || l.globalInstall) && ([Se.name, "I18nT"].forEach((r) => e.component(r, Se)), [De.name, "I18nN"].forEach((r) => e.component(r, De)), [Ue.name, "I18nD"].forEach((r) => e.component(r, Ue))), e.directive("t", ca(t));
|
|
794
794
|
}
|
|
795
795
|
const ua = /* @__PURE__ */ M("global-vue-i18n");
|
|
796
|
-
function
|
|
796
|
+
function ka(e = {}) {
|
|
797
797
|
const t = __VUE_I18N_LEGACY_API__ && L(e.legacy) ? e.legacy : __VUE_I18N_LEGACY_API__, c = L(e.globalInjection) ? e.globalInjection : !0, l = /* @__PURE__ */ new Map(), [a, r] = _a(e, t), s = /* @__PURE__ */ M("");
|
|
798
798
|
function i(f) {
|
|
799
799
|
return l.get(f) || null;
|
|
@@ -811,7 +811,7 @@ function ha(e = {}) {
|
|
|
811
811
|
},
|
|
812
812
|
// install plugin
|
|
813
813
|
async install(f, ...E) {
|
|
814
|
-
if (f.__VUE_I18N_SYMBOL__ = s, f.provide(f.__VUE_I18N_SYMBOL__, b),
|
|
814
|
+
if (f.__VUE_I18N_SYMBOL__ = s, f.provide(f.__VUE_I18N_SYMBOL__, b), h(E[0])) {
|
|
815
815
|
const v = E[0];
|
|
816
816
|
b.__composerExtend = v.__composerExtend, b.__vueI18nExtend = v.__vueI18nExtend;
|
|
817
817
|
}
|
|
@@ -843,9 +843,9 @@ function ha(e = {}) {
|
|
|
843
843
|
function fe(e = {}) {
|
|
844
844
|
const t = X();
|
|
845
845
|
if (t == null)
|
|
846
|
-
throw
|
|
846
|
+
throw k(R.MUST_BE_CALL_SETUP_TOP);
|
|
847
847
|
if (!t.isCE && t.appContext.app != null && !t.appContext.app.__VUE_I18N_SYMBOL__)
|
|
848
|
-
throw
|
|
848
|
+
throw k(R.NOT_INSTALLED);
|
|
849
849
|
const c = ma(t), l = ga(c), a = je(t), r = fa(e, a);
|
|
850
850
|
if (r === "global")
|
|
851
851
|
return Ge(l, e, a), l;
|
|
@@ -864,13 +864,13 @@ function fe(e = {}) {
|
|
|
864
864
|
function _a(e, t) {
|
|
865
865
|
const c = wt(), l = __VUE_I18N_LEGACY_API__ && t ? c.run(() => ce(e)) : c.run(() => _e(e));
|
|
866
866
|
if (l == null)
|
|
867
|
-
throw
|
|
867
|
+
throw k(R.UNEXPECTED_ERROR);
|
|
868
868
|
return [c, l];
|
|
869
869
|
}
|
|
870
870
|
function ma(e) {
|
|
871
871
|
const t = Bt(e.isCE ? ua : e.appContext.app.__VUE_I18N_SYMBOL__);
|
|
872
872
|
if (!t)
|
|
873
|
-
throw
|
|
873
|
+
throw k(e.isCE ? R.NOT_INSTALLED_WITH_PROVIDE : R.UNEXPECTED_ERROR);
|
|
874
874
|
return t;
|
|
875
875
|
}
|
|
876
876
|
function fa(e, t) {
|
|
@@ -919,8 +919,8 @@ function Fa(e, t) {
|
|
|
919
919
|
return Ia.forEach((a) => {
|
|
920
920
|
const r = Object.getOwnPropertyDescriptor(t, a);
|
|
921
921
|
if (!r)
|
|
922
|
-
throw
|
|
923
|
-
const s =
|
|
922
|
+
throw k(R.UNEXPECTED_ERROR);
|
|
923
|
+
const s = jt(r.value) ? {
|
|
924
924
|
get() {
|
|
925
925
|
return r.value.value;
|
|
926
926
|
},
|
|
@@ -937,7 +937,7 @@ function Fa(e, t) {
|
|
|
937
937
|
}), e.config.globalProperties.$i18n = c, We.forEach((a) => {
|
|
938
938
|
const r = Object.getOwnPropertyDescriptor(t, a);
|
|
939
939
|
if (!r || !r.value)
|
|
940
|
-
throw
|
|
940
|
+
throw k(R.UNEXPECTED_ERROR);
|
|
941
941
|
Object.defineProperty(e.config.globalProperties, `$${a}`, r);
|
|
942
942
|
}), () => {
|
|
943
943
|
delete e.config.globalProperties.$i18n, We.forEach((a) => {
|
|
@@ -979,6 +979,6 @@ if (__INTLIFY_PROD_DEVTOOLS__) {
|
|
|
979
979
|
e.__INTLIFY__ = !0, Vt(e.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__);
|
|
980
980
|
}
|
|
981
981
|
export {
|
|
982
|
-
|
|
982
|
+
ka as c,
|
|
983
983
|
fe as u
|
|
984
984
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { h } from "./vendor-vue-BTtW1k2s.js";
|
|
2
2
|
const m = (t) => t.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), w = (t) => t.replace(
|
|
3
3
|
/^([A-Z])|[\s-_]+(\w)/g,
|
|
4
4
|
(e, o, a) => a ? a.toUpperCase() : o.toLowerCase()
|
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { e as H, r as M, m as V, i as G, j as $, k as T, a as E, l as q, t as tt, n as et, p as nt, w as st, q as ot, u as ct, c as rt } from "./vendor-vue-BTtW1k2s.js";
|
|
2
2
|
let B;
|
|
3
3
|
const R = (t) => B = t, J = (
|
|
4
4
|
/* istanbul ignore next */
|
|
5
5
|
/* @__PURE__ */ Symbol()
|
|
6
6
|
);
|
|
7
|
-
function
|
|
7
|
+
function I(t) {
|
|
8
8
|
return t && typeof t == "object" && Object.prototype.toString.call(t) === "[object Object]" && typeof t.toJSON != "function";
|
|
9
9
|
}
|
|
10
|
-
var
|
|
10
|
+
var g;
|
|
11
11
|
(function(t) {
|
|
12
12
|
t.direct = "direct", t.patchObject = "patch object", t.patchFunction = "patch function";
|
|
13
|
-
})(
|
|
13
|
+
})(g || (g = {}));
|
|
14
14
|
function St() {
|
|
15
|
-
const t =
|
|
15
|
+
const t = H(!0), c = t.run(() => M({}));
|
|
16
16
|
let n = [], e = [];
|
|
17
|
-
const u =
|
|
17
|
+
const u = V({
|
|
18
18
|
install(a) {
|
|
19
19
|
R(u), u._a = a, a.provide(J, u), a.config.globalProperties.$pinia = u, e.forEach((r) => n.push(r)), e = [];
|
|
20
20
|
},
|
|
@@ -38,21 +38,21 @@ function F(t, c, n, e = K) {
|
|
|
38
38
|
const u = () => {
|
|
39
39
|
t.delete(c) && e();
|
|
40
40
|
};
|
|
41
|
-
return !n &&
|
|
41
|
+
return !n && et() && nt(u), u;
|
|
42
42
|
}
|
|
43
43
|
function w(t, ...c) {
|
|
44
44
|
t.forEach((n) => {
|
|
45
45
|
n(...c);
|
|
46
46
|
});
|
|
47
47
|
}
|
|
48
|
-
const ut = (t) => t(), A = /* @__PURE__ */ Symbol(),
|
|
48
|
+
const ut = (t) => t(), A = /* @__PURE__ */ Symbol(), x = /* @__PURE__ */ Symbol();
|
|
49
49
|
function W(t, c) {
|
|
50
50
|
t instanceof Map && c instanceof Map ? c.forEach((n, e) => t.set(e, n)) : t instanceof Set && c instanceof Set && c.forEach(t.add, t);
|
|
51
51
|
for (const n in c) {
|
|
52
52
|
if (!c.hasOwnProperty(n))
|
|
53
53
|
continue;
|
|
54
54
|
const e = c[n], u = t[n];
|
|
55
|
-
|
|
55
|
+
I(u) && I(e) && t.hasOwnProperty(n) && !E(e) && !q(e) ? t[n] = W(u, e) : t[n] = e;
|
|
56
56
|
}
|
|
57
57
|
return t;
|
|
58
58
|
}
|
|
@@ -61,7 +61,7 @@ const at = (
|
|
|
61
61
|
/* @__PURE__ */ Symbol()
|
|
62
62
|
);
|
|
63
63
|
function ft(t) {
|
|
64
|
-
return !
|
|
64
|
+
return !I(t) || !Object.prototype.hasOwnProperty.call(t, at);
|
|
65
65
|
}
|
|
66
66
|
const { assign: h } = Object;
|
|
67
67
|
function lt(t) {
|
|
@@ -72,40 +72,40 @@ function it(t, c, n, e) {
|
|
|
72
72
|
let S;
|
|
73
73
|
function b() {
|
|
74
74
|
P || (n.state.value[t] = u ? u() : {});
|
|
75
|
-
const y =
|
|
76
|
-
return h(y, a, Object.keys(r || {}).reduce((v, d) => (v[d] =
|
|
75
|
+
const y = ct(n.state.value[t]);
|
|
76
|
+
return h(y, a, Object.keys(r || {}).reduce((v, d) => (v[d] = V(rt(() => {
|
|
77
77
|
R(n);
|
|
78
78
|
const m = n._s.get(t);
|
|
79
79
|
return r[d].call(m, m);
|
|
80
80
|
})), v), {}));
|
|
81
81
|
}
|
|
82
|
-
return S =
|
|
82
|
+
return S = z(t, b, c, n, e, !0), S;
|
|
83
83
|
}
|
|
84
|
-
function
|
|
84
|
+
function z(t, c, n = {}, e, u, a) {
|
|
85
85
|
let r;
|
|
86
86
|
const P = h({ actions: {} }, n), S = { deep: !0 };
|
|
87
87
|
let b, y, v = /* @__PURE__ */ new Set(), d = /* @__PURE__ */ new Set(), m;
|
|
88
88
|
const _ = e.state.value[t];
|
|
89
|
-
!a && !_ && (e.state.value[t] = {});
|
|
89
|
+
!a && !_ && (e.state.value[t] = {}), M({});
|
|
90
90
|
let L;
|
|
91
91
|
function N(o) {
|
|
92
92
|
let s;
|
|
93
93
|
b = y = !1, typeof o == "function" ? (o(e.state.value[t]), s = {
|
|
94
|
-
type:
|
|
94
|
+
type: g.patchFunction,
|
|
95
95
|
storeId: t,
|
|
96
96
|
events: m
|
|
97
97
|
}) : (W(e.state.value[t], o), s = {
|
|
98
|
-
type:
|
|
98
|
+
type: g.patchObject,
|
|
99
99
|
payload: o,
|
|
100
100
|
storeId: t,
|
|
101
101
|
events: m
|
|
102
102
|
});
|
|
103
103
|
const f = L = /* @__PURE__ */ Symbol();
|
|
104
|
-
|
|
104
|
+
ot().then(() => {
|
|
105
105
|
L === f && (b = !0);
|
|
106
106
|
}), y = !0, w(v, s, e.state.value[t]);
|
|
107
107
|
}
|
|
108
|
-
const
|
|
108
|
+
const Q = a ? function() {
|
|
109
109
|
const { state: s } = n, f = s ? s() : {};
|
|
110
110
|
this.$patch((j) => {
|
|
111
111
|
h(j, f);
|
|
@@ -114,68 +114,68 @@ function q(t, c, n = {}, e, u, a) {
|
|
|
114
114
|
/* istanbul ignore next */
|
|
115
115
|
K
|
|
116
116
|
);
|
|
117
|
-
function
|
|
117
|
+
function U() {
|
|
118
118
|
r.stop(), v.clear(), d.clear(), e._s.delete(t);
|
|
119
119
|
}
|
|
120
120
|
const D = (o, s = "") => {
|
|
121
121
|
if (A in o)
|
|
122
|
-
return o[
|
|
122
|
+
return o[x] = s, o;
|
|
123
123
|
const f = function() {
|
|
124
124
|
R(e);
|
|
125
|
-
const j = Array.from(arguments), O = /* @__PURE__ */ new Set(),
|
|
126
|
-
function
|
|
125
|
+
const j = Array.from(arguments), O = /* @__PURE__ */ new Set(), k = /* @__PURE__ */ new Set();
|
|
126
|
+
function Y(l) {
|
|
127
127
|
O.add(l);
|
|
128
128
|
}
|
|
129
|
-
function
|
|
130
|
-
|
|
129
|
+
function Z(l) {
|
|
130
|
+
k.add(l);
|
|
131
131
|
}
|
|
132
132
|
w(d, {
|
|
133
133
|
args: j,
|
|
134
|
-
name: f[
|
|
134
|
+
name: f[x],
|
|
135
135
|
store: i,
|
|
136
|
-
after:
|
|
137
|
-
onError:
|
|
136
|
+
after: Y,
|
|
137
|
+
onError: Z
|
|
138
138
|
});
|
|
139
|
-
let
|
|
139
|
+
let p;
|
|
140
140
|
try {
|
|
141
|
-
|
|
141
|
+
p = o.apply(this && this.$id === t ? this : i, j);
|
|
142
142
|
} catch (l) {
|
|
143
|
-
throw w(
|
|
143
|
+
throw w(k, l), l;
|
|
144
144
|
}
|
|
145
|
-
return
|
|
145
|
+
return p instanceof Promise ? p.then((l) => (w(O, l), l)).catch((l) => (w(k, l), Promise.reject(l))) : (w(O, p), p);
|
|
146
146
|
};
|
|
147
|
-
return f[A] = !0, f[
|
|
148
|
-
},
|
|
147
|
+
return f[A] = !0, f[x] = s, f;
|
|
148
|
+
}, X = {
|
|
149
149
|
_p: e,
|
|
150
150
|
// _s: scope,
|
|
151
151
|
$id: t,
|
|
152
152
|
$onAction: F.bind(null, d),
|
|
153
153
|
$patch: N,
|
|
154
|
-
$reset:
|
|
154
|
+
$reset: Q,
|
|
155
155
|
$subscribe(o, s = {}) {
|
|
156
|
-
const f = F(v, o, s.detached, () => j()), j = r.run(() =>
|
|
156
|
+
const f = F(v, o, s.detached, () => j()), j = r.run(() => st(() => e.state.value[t], (O) => {
|
|
157
157
|
(s.flush === "sync" ? y : b) && o({
|
|
158
158
|
storeId: t,
|
|
159
|
-
type:
|
|
159
|
+
type: g.direct,
|
|
160
160
|
events: m
|
|
161
161
|
}, O);
|
|
162
162
|
}, h({}, S, s)));
|
|
163
163
|
return f;
|
|
164
164
|
},
|
|
165
|
-
$dispose:
|
|
166
|
-
}, i =
|
|
165
|
+
$dispose: U
|
|
166
|
+
}, i = T(X);
|
|
167
167
|
e._s.set(t, i);
|
|
168
|
-
const C = (e._a && e._a.runWithContext || ut)(() => e._e.run(() => (r =
|
|
168
|
+
const C = (e._a && e._a.runWithContext || ut)(() => e._e.run(() => (r = H()).run(() => c({ action: D }))));
|
|
169
169
|
for (const o in C) {
|
|
170
170
|
const s = C[o];
|
|
171
|
-
if (E(s) && !lt(s) ||
|
|
171
|
+
if (E(s) && !lt(s) || q(s))
|
|
172
172
|
a || (_ && ft(s) && (E(s) ? s.value = _[o] : W(s, _[o])), e.state.value[t][o] = s);
|
|
173
173
|
else if (typeof s == "function") {
|
|
174
174
|
const f = D(s, o);
|
|
175
175
|
C[o] = f, P.actions[o] = s;
|
|
176
176
|
}
|
|
177
177
|
}
|
|
178
|
-
return h(i, C), h(
|
|
178
|
+
return h(i, C), h(tt(i), C), Object.defineProperty(i, "$state", {
|
|
179
179
|
get: () => e.state.value[t],
|
|
180
180
|
set: (o) => {
|
|
181
181
|
N((s) => {
|
|
@@ -200,7 +200,7 @@ function yt(t, c, n) {
|
|
|
200
200
|
const S = $();
|
|
201
201
|
return r = // in test mode, ignore the argument provided as we can always retrieve a
|
|
202
202
|
// pinia instance with getActivePinia()
|
|
203
|
-
r || (S ? G(J, null) : null), r && R(r), r = B, r._s.has(t) || (u ?
|
|
203
|
+
r || (S ? G(J, null) : null), r && R(r), r = B, r._s.has(t) || (u ? z(t, c, e, r) : it(t, e, r)), r._s.get(t);
|
|
204
204
|
}
|
|
205
205
|
return a.$id = t, a;
|
|
206
206
|
}
|