@stonecrop/stonecrop 0.4.36 → 0.4.37
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/composable.js +2 -3
- package/dist/exceptions.js +5 -11
- package/dist/src/composable.d.ts.map +1 -1
- package/dist/src/exceptions.d.ts +2 -3
- package/dist/src/exceptions.d.ts.map +1 -1
- package/dist/src/stonecrop.d.ts.map +1 -1
- package/dist/stonecrop.js +601 -608
- package/dist/stonecrop.js.map +1 -1
- package/dist/stonecrop.umd.cjs +7 -7
- package/dist/stonecrop.umd.cjs.map +1 -1
- package/package.json +16 -15
- package/src/composable.ts +2 -4
- package/src/exceptions.ts +5 -12
- package/src/stonecrop.ts +4 -0
package/dist/stonecrop.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { effectScope as
|
|
2
|
-
function
|
|
1
|
+
import { effectScope as Fr, ref as ye, markRaw as se, toRaw as Me, watch as jr, unref as ms, hasInjectionContext as Es, inject as Hr, getCurrentInstance as vs, reactive as ys, isRef as Be, isReactive as Ut, toRef as pt, nextTick as gn, computed as zr, getCurrentScope as Ss, onScopeDispose as bs, toRefs as mn, onMounted as As } from "vue";
|
|
2
|
+
function ws() {
|
|
3
3
|
if (typeof globalThis < "u")
|
|
4
4
|
return globalThis;
|
|
5
5
|
if (typeof self < "u")
|
|
@@ -9,18 +9,18 @@ function Os() {
|
|
|
9
9
|
if (typeof global < "u")
|
|
10
10
|
return global;
|
|
11
11
|
}
|
|
12
|
-
function
|
|
13
|
-
const e =
|
|
12
|
+
function Os() {
|
|
13
|
+
const e = ws();
|
|
14
14
|
if (e.__xstate__)
|
|
15
15
|
return e.__xstate__;
|
|
16
16
|
}
|
|
17
|
-
const
|
|
17
|
+
const Ts = (e) => {
|
|
18
18
|
if (typeof window > "u")
|
|
19
19
|
return;
|
|
20
|
-
const t =
|
|
20
|
+
const t = Os();
|
|
21
21
|
t && t.register(e);
|
|
22
22
|
};
|
|
23
|
-
class
|
|
23
|
+
class En {
|
|
24
24
|
constructor(t) {
|
|
25
25
|
this._process = t, this._active = !1, this._current = null, this._last = null;
|
|
26
26
|
}
|
|
@@ -49,8 +49,8 @@ class vn {
|
|
|
49
49
|
this._last = null;
|
|
50
50
|
}
|
|
51
51
|
}
|
|
52
|
-
const
|
|
53
|
-
function
|
|
52
|
+
const Kr = ".", Is = "", Gr = "", Cs = "#", ks = "*", Wr = "xstate.init", At = "xstate.stop";
|
|
53
|
+
function Ds(e, t) {
|
|
54
54
|
return {
|
|
55
55
|
type: `xstate.after.${e}.${t}`
|
|
56
56
|
};
|
|
@@ -61,23 +61,23 @@ function wt(e, t) {
|
|
|
61
61
|
output: t
|
|
62
62
|
};
|
|
63
63
|
}
|
|
64
|
-
function
|
|
64
|
+
function xs(e, t) {
|
|
65
65
|
return {
|
|
66
66
|
type: `xstate.done.actor.${e}`,
|
|
67
67
|
output: t,
|
|
68
68
|
actorId: e
|
|
69
69
|
};
|
|
70
70
|
}
|
|
71
|
-
function
|
|
71
|
+
function Ps(e, t) {
|
|
72
72
|
return {
|
|
73
73
|
type: `xstate.error.actor.${e}`,
|
|
74
74
|
error: t,
|
|
75
75
|
actorId: e
|
|
76
76
|
};
|
|
77
77
|
}
|
|
78
|
-
function
|
|
78
|
+
function Yr(e) {
|
|
79
79
|
return {
|
|
80
|
-
type:
|
|
80
|
+
type: Wr,
|
|
81
81
|
input: e
|
|
82
82
|
};
|
|
83
83
|
}
|
|
@@ -86,13 +86,13 @@ function W(e) {
|
|
|
86
86
|
throw e;
|
|
87
87
|
});
|
|
88
88
|
}
|
|
89
|
-
const
|
|
90
|
-
function
|
|
91
|
-
const n =
|
|
92
|
-
return typeof r == "string" ? typeof n == "string" ? r === n : !1 : typeof n == "string" ? n in r : Object.keys(n).every((o) => o in r ?
|
|
89
|
+
const Rs = typeof Symbol == "function" && Symbol.observable || "@@observable";
|
|
90
|
+
function qr(e, t) {
|
|
91
|
+
const n = vn(e), r = vn(t);
|
|
92
|
+
return typeof r == "string" ? typeof n == "string" ? r === n : !1 : typeof n == "string" ? n in r : Object.keys(n).every((o) => o in r ? qr(n[o], r[o]) : !1);
|
|
93
93
|
}
|
|
94
|
-
function
|
|
95
|
-
if (
|
|
94
|
+
function Ft(e) {
|
|
95
|
+
if (Xr(e))
|
|
96
96
|
return e;
|
|
97
97
|
const t = [];
|
|
98
98
|
let n = "";
|
|
@@ -111,15 +111,15 @@ function jt(e) {
|
|
|
111
111
|
}
|
|
112
112
|
return t.push(n), t;
|
|
113
113
|
}
|
|
114
|
-
function
|
|
115
|
-
if (
|
|
114
|
+
function vn(e) {
|
|
115
|
+
if (hi(e))
|
|
116
116
|
return e.value;
|
|
117
117
|
if (typeof e != "string")
|
|
118
118
|
return e;
|
|
119
|
-
const t =
|
|
120
|
-
return
|
|
119
|
+
const t = Ft(e);
|
|
120
|
+
return Ns(t);
|
|
121
121
|
}
|
|
122
|
-
function
|
|
122
|
+
function Ns(e) {
|
|
123
123
|
if (e.length === 1)
|
|
124
124
|
return e[0];
|
|
125
125
|
const t = {};
|
|
@@ -133,7 +133,7 @@ function Vs(e) {
|
|
|
133
133
|
}
|
|
134
134
|
return t;
|
|
135
135
|
}
|
|
136
|
-
function
|
|
136
|
+
function yn(e, t) {
|
|
137
137
|
const n = {}, r = Object.keys(e);
|
|
138
138
|
for (let o = 0; o < r.length; o++) {
|
|
139
139
|
const s = r[o];
|
|
@@ -141,11 +141,11 @@ function Sn(e, t) {
|
|
|
141
141
|
}
|
|
142
142
|
return n;
|
|
143
143
|
}
|
|
144
|
-
function
|
|
145
|
-
return
|
|
144
|
+
function Jr(e) {
|
|
145
|
+
return Xr(e) ? e : [e];
|
|
146
146
|
}
|
|
147
147
|
function Z(e) {
|
|
148
|
-
return e === void 0 ? [] :
|
|
148
|
+
return e === void 0 ? [] : Jr(e);
|
|
149
149
|
}
|
|
150
150
|
function Ot(e, t, n, r) {
|
|
151
151
|
return typeof e == "function" ? e({
|
|
@@ -154,19 +154,19 @@ function Ot(e, t, n, r) {
|
|
|
154
154
|
self: r
|
|
155
155
|
}) : e;
|
|
156
156
|
}
|
|
157
|
-
function
|
|
157
|
+
function Xr(e) {
|
|
158
158
|
return Array.isArray(e);
|
|
159
159
|
}
|
|
160
|
-
function
|
|
160
|
+
function Vs(e) {
|
|
161
161
|
return e.type.startsWith("xstate.error.actor");
|
|
162
162
|
}
|
|
163
163
|
function ge(e) {
|
|
164
|
-
return
|
|
164
|
+
return Jr(e).map((t) => typeof t > "u" || typeof t == "string" ? {
|
|
165
165
|
target: t
|
|
166
166
|
} : t);
|
|
167
167
|
}
|
|
168
|
-
function
|
|
169
|
-
if (!(e === void 0 || e ===
|
|
168
|
+
function Zr(e) {
|
|
169
|
+
if (!(e === void 0 || e === Is))
|
|
170
170
|
return Z(e);
|
|
171
171
|
}
|
|
172
172
|
function Tt(e, t, n) {
|
|
@@ -177,21 +177,21 @@ function Tt(e, t, n) {
|
|
|
177
177
|
complete: (r ? e.complete : n)?.bind(o)
|
|
178
178
|
};
|
|
179
179
|
}
|
|
180
|
-
function
|
|
180
|
+
function Sn(e, t) {
|
|
181
181
|
return `${t}.${e}`;
|
|
182
182
|
}
|
|
183
|
-
function
|
|
183
|
+
function jt(e, t) {
|
|
184
184
|
const n = t.match(/^xstate\.invoke\.(\d+)\.(.*)/);
|
|
185
185
|
if (!n)
|
|
186
186
|
return e.implementations.actors[t];
|
|
187
187
|
const [, r, o] = n, i = e.getStateNodeById(o).config.invoke;
|
|
188
188
|
return (Array.isArray(i) ? i[r] : i).src;
|
|
189
189
|
}
|
|
190
|
-
function
|
|
190
|
+
function bn(e, t) {
|
|
191
191
|
return `${e.sessionId}.${t}`;
|
|
192
192
|
}
|
|
193
|
-
let
|
|
194
|
-
function
|
|
193
|
+
let Ls = 0;
|
|
194
|
+
function Ms(e, t) {
|
|
195
195
|
const n = /* @__PURE__ */ new Map(), r = /* @__PURE__ */ new Map(), o = /* @__PURE__ */ new WeakMap(), s = /* @__PURE__ */ new Set(), i = {}, {
|
|
196
196
|
clock: u,
|
|
197
197
|
logger: a
|
|
@@ -204,7 +204,7 @@ function Bs(e, t) {
|
|
|
204
204
|
delay: m,
|
|
205
205
|
id: g,
|
|
206
206
|
startedAt: Date.now()
|
|
207
|
-
}, w =
|
|
207
|
+
}, w = bn(f, g);
|
|
208
208
|
l._snapshot._scheduledEvents[w] = E;
|
|
209
209
|
const O = u.setTimeout(() => {
|
|
210
210
|
delete i[w], delete l._snapshot._scheduledEvents[w], l._relay(f, d, h);
|
|
@@ -212,7 +212,7 @@ function Bs(e, t) {
|
|
|
212
212
|
i[w] = O;
|
|
213
213
|
},
|
|
214
214
|
cancel: (f, d) => {
|
|
215
|
-
const h =
|
|
215
|
+
const h = bn(f, d), m = i[h];
|
|
216
216
|
delete i[h], delete l._snapshot._scheduledEvents[h], m !== void 0 && u.clearTimeout(m);
|
|
217
217
|
},
|
|
218
218
|
cancelAll: (f) => {
|
|
@@ -233,7 +233,7 @@ function Bs(e, t) {
|
|
|
233
233
|
_snapshot: {
|
|
234
234
|
_scheduledEvents: (t?.snapshot && t.snapshot.scheduler) ?? {}
|
|
235
235
|
},
|
|
236
|
-
_bookId: () => `x:${
|
|
236
|
+
_bookId: () => `x:${Ls++}`,
|
|
237
237
|
_register: (f, d) => (n.set(f, d), f),
|
|
238
238
|
_unregister: (f) => {
|
|
239
239
|
n.delete(f.sessionId);
|
|
@@ -290,11 +290,11 @@ function Bs(e, t) {
|
|
|
290
290
|
return l;
|
|
291
291
|
}
|
|
292
292
|
let _t = !1;
|
|
293
|
-
const
|
|
293
|
+
const Ht = 1;
|
|
294
294
|
let L = /* @__PURE__ */ (function(e) {
|
|
295
295
|
return e[e.NotStarted = 0] = "NotStarted", e[e.Running = 1] = "Running", e[e.Stopped = 2] = "Stopped", e;
|
|
296
296
|
})({});
|
|
297
|
-
const
|
|
297
|
+
const Bs = {
|
|
298
298
|
clock: {
|
|
299
299
|
setTimeout: (e, t) => setTimeout(e, t),
|
|
300
300
|
clearTimeout: (e) => clearTimeout(e)
|
|
@@ -302,7 +302,7 @@ const $s = {
|
|
|
302
302
|
logger: console.log.bind(console),
|
|
303
303
|
devTools: !1
|
|
304
304
|
};
|
|
305
|
-
class
|
|
305
|
+
class $s {
|
|
306
306
|
/**
|
|
307
307
|
* Creates a new actor instance for the given logic with the provided options,
|
|
308
308
|
* if any.
|
|
@@ -311,9 +311,9 @@ class Us {
|
|
|
311
311
|
* @param options Actor options
|
|
312
312
|
*/
|
|
313
313
|
constructor(t, n) {
|
|
314
|
-
this.logic = t, this._snapshot = void 0, this.clock = void 0, this.options = void 0, this.id = void 0, this.mailbox = new
|
|
314
|
+
this.logic = t, this._snapshot = void 0, this.clock = void 0, this.options = void 0, this.id = void 0, this.mailbox = new En(this._process.bind(this)), this.observers = /* @__PURE__ */ new Set(), this.eventListeners = /* @__PURE__ */ new Map(), this.logger = void 0, this._processingStatus = L.NotStarted, this._parent = void 0, this._syncSnapshot = void 0, this.ref = void 0, this._actorScope = void 0, this._systemId = void 0, this.sessionId = void 0, this.system = void 0, this._doneEvent = void 0, this.src = void 0, this._deferred = [];
|
|
315
315
|
const r = {
|
|
316
|
-
|
|
316
|
+
...Bs,
|
|
317
317
|
...n
|
|
318
318
|
}, {
|
|
319
319
|
clock: o,
|
|
@@ -324,7 +324,7 @@ class Us {
|
|
|
324
324
|
systemId: c,
|
|
325
325
|
inspect: p
|
|
326
326
|
} = r;
|
|
327
|
-
this.system = i ? i.system :
|
|
327
|
+
this.system = i ? i.system : Ms(this, {
|
|
328
328
|
clock: o,
|
|
329
329
|
logger: s
|
|
330
330
|
}), p && !i && this.system.inspect(Tt(p)), this.sessionId = this.system._bookId(), this.id = a ?? this.sessionId, this.logger = n?.logger ?? this.system._logger, this.clock = n?.clock ?? this.system._clock, this._parent = i, this._syncSnapshot = u, this.options = r, this.src = r.src ?? t, this.ref = this, this._actorScope = {
|
|
@@ -414,7 +414,7 @@ class Us {
|
|
|
414
414
|
} catch (s) {
|
|
415
415
|
W(s);
|
|
416
416
|
}
|
|
417
|
-
this._stopProcedure(), this._complete(), this._doneEvent =
|
|
417
|
+
this._stopProcedure(), this._complete(), this._doneEvent = xs(this.id, this._snapshot.output), this._parent && this.system._relay(this, this._parent, this._doneEvent);
|
|
418
418
|
break;
|
|
419
419
|
case "error":
|
|
420
420
|
this._error(this._snapshot.error);
|
|
@@ -542,7 +542,7 @@ class Us {
|
|
|
542
542
|
error: () => {
|
|
543
543
|
}
|
|
544
544
|
}), this.system._register(this.sessionId, this), this._systemId && this.system._set(this._systemId, this), this._processingStatus = L.Running;
|
|
545
|
-
const t =
|
|
545
|
+
const t = Yr(this.options.input);
|
|
546
546
|
switch (this.system._sendInspectionEvent({
|
|
547
547
|
type: "@xstate.event",
|
|
548
548
|
sourceRef: this._parent,
|
|
@@ -626,7 +626,7 @@ class Us {
|
|
|
626
626
|
this.observers.clear(), n && W(t);
|
|
627
627
|
}
|
|
628
628
|
_error(t) {
|
|
629
|
-
this._stopProcedure(), this._reportError(t), this._parent && this.system._relay(this, this._parent,
|
|
629
|
+
this._stopProcedure(), this._reportError(t), this._parent && this.system._relay(this, this._parent, Ps(this.id, t));
|
|
630
630
|
}
|
|
631
631
|
// TODO: atm children don't belong entirely to the actor so
|
|
632
632
|
// in a way - it's not even super aware of them
|
|
@@ -634,7 +634,7 @@ class Us {
|
|
|
634
634
|
// right now, they are being stopped within the machine's transition
|
|
635
635
|
// but that could throw and leave us with "orphaned" active actors
|
|
636
636
|
_stopProcedure() {
|
|
637
|
-
return this._processingStatus !== L.Running ? this : (this.system.scheduler.cancelAll(this), this.mailbox.clear(), this.mailbox = new
|
|
637
|
+
return this._processingStatus !== L.Running ? this : (this.system.scheduler.cancelAll(this), this.mailbox.clear(), this.mailbox = new En(this._process.bind(this)), this._processingStatus = L.Stopped, this.system._unregister(this), this);
|
|
638
638
|
}
|
|
639
639
|
/** @internal */
|
|
640
640
|
_send(t) {
|
|
@@ -652,11 +652,11 @@ class Us {
|
|
|
652
652
|
const {
|
|
653
653
|
devTools: t
|
|
654
654
|
} = this.options;
|
|
655
|
-
t && (typeof t == "function" ? t :
|
|
655
|
+
t && (typeof t == "function" ? t : Ts)(this);
|
|
656
656
|
}
|
|
657
657
|
toJSON() {
|
|
658
658
|
return {
|
|
659
|
-
xstate$$type:
|
|
659
|
+
xstate$$type: Ht,
|
|
660
660
|
id: this.id
|
|
661
661
|
};
|
|
662
662
|
}
|
|
@@ -676,7 +676,7 @@ class Us {
|
|
|
676
676
|
getPersistedSnapshot(t) {
|
|
677
677
|
return this.logic.getPersistedSnapshot(this._snapshot, t);
|
|
678
678
|
}
|
|
679
|
-
[
|
|
679
|
+
[Rs]() {
|
|
680
680
|
return this;
|
|
681
681
|
}
|
|
682
682
|
/**
|
|
@@ -698,9 +698,9 @@ class Us {
|
|
|
698
698
|
}
|
|
699
699
|
}
|
|
700
700
|
function $e(e, ...[t]) {
|
|
701
|
-
return new
|
|
701
|
+
return new $s(e, t);
|
|
702
702
|
}
|
|
703
|
-
function
|
|
703
|
+
function Us(e, t, n, r, {
|
|
704
704
|
sendId: o
|
|
705
705
|
}) {
|
|
706
706
|
const s = typeof o == "function" ? o(n, r) : o;
|
|
@@ -708,24 +708,24 @@ function Fs(e, t, n, r, {
|
|
|
708
708
|
sendId: s
|
|
709
709
|
}, void 0];
|
|
710
710
|
}
|
|
711
|
-
function
|
|
711
|
+
function Fs(e, t) {
|
|
712
712
|
e.defer(() => {
|
|
713
713
|
e.system.scheduler.cancel(e.self, t.sendId);
|
|
714
714
|
});
|
|
715
715
|
}
|
|
716
|
-
function
|
|
716
|
+
function js(e) {
|
|
717
717
|
function t(n, r) {
|
|
718
718
|
}
|
|
719
|
-
return t.type = "xstate.cancel", t.sendId = e, t.resolve =
|
|
719
|
+
return t.type = "xstate.cancel", t.sendId = e, t.resolve = Us, t.execute = Fs, t;
|
|
720
720
|
}
|
|
721
|
-
function
|
|
721
|
+
function Hs(e, t, n, r, {
|
|
722
722
|
id: o,
|
|
723
723
|
systemId: s,
|
|
724
724
|
src: i,
|
|
725
725
|
input: u,
|
|
726
726
|
syncSnapshot: a
|
|
727
727
|
}) {
|
|
728
|
-
const c = typeof i == "string" ?
|
|
728
|
+
const c = typeof i == "string" ? jt(t.machine, i) : i, p = typeof o == "function" ? o(n) : o;
|
|
729
729
|
let l, f;
|
|
730
730
|
return c && (f = typeof u == "function" ? u({
|
|
731
731
|
context: t.context,
|
|
@@ -751,14 +751,14 @@ function zs(e, t, n, r, {
|
|
|
751
751
|
input: f
|
|
752
752
|
}, void 0];
|
|
753
753
|
}
|
|
754
|
-
function
|
|
754
|
+
function zs(e, {
|
|
755
755
|
actorRef: t
|
|
756
756
|
}) {
|
|
757
757
|
t && e.defer(() => {
|
|
758
758
|
t._processingStatus !== L.Stopped && t.start();
|
|
759
759
|
});
|
|
760
760
|
}
|
|
761
|
-
function
|
|
761
|
+
function Ks(...[e, {
|
|
762
762
|
id: t,
|
|
763
763
|
systemId: n,
|
|
764
764
|
input: r,
|
|
@@ -766,9 +766,9 @@ function Gs(...[e, {
|
|
|
766
766
|
} = {}]) {
|
|
767
767
|
function s(i, u) {
|
|
768
768
|
}
|
|
769
|
-
return s.type = "xstate.spawnChild", s.id = t, s.systemId = n, s.src = e, s.input = r, s.syncSnapshot = o, s.resolve =
|
|
769
|
+
return s.type = "xstate.spawnChild", s.id = t, s.systemId = n, s.src = e, s.input = r, s.syncSnapshot = o, s.resolve = Hs, s.execute = zs, s;
|
|
770
770
|
}
|
|
771
|
-
function
|
|
771
|
+
function Gs(e, t, n, r, {
|
|
772
772
|
actorRef: o
|
|
773
773
|
}) {
|
|
774
774
|
const s = typeof o == "function" ? o(n, r) : o, i = typeof s == "string" ? t.children[s] : s;
|
|
@@ -779,7 +779,7 @@ function Ws(e, t, n, r, {
|
|
|
779
779
|
children: u
|
|
780
780
|
}), i, void 0];
|
|
781
781
|
}
|
|
782
|
-
function
|
|
782
|
+
function Ws(e, t) {
|
|
783
783
|
if (t) {
|
|
784
784
|
if (e.system._unregister(t), t._processingStatus !== L.Running) {
|
|
785
785
|
e.stopChild(t);
|
|
@@ -790,19 +790,19 @@ function Ys(e, t) {
|
|
|
790
790
|
});
|
|
791
791
|
}
|
|
792
792
|
}
|
|
793
|
-
function
|
|
793
|
+
function Qr(e) {
|
|
794
794
|
function t(n, r) {
|
|
795
795
|
}
|
|
796
|
-
return t.type = "xstate.stopChild", t.actorRef = e, t.resolve =
|
|
796
|
+
return t.type = "xstate.stopChild", t.actorRef = e, t.resolve = Gs, t.execute = Ws, t;
|
|
797
797
|
}
|
|
798
|
-
function
|
|
798
|
+
function zt(e, t, n, r) {
|
|
799
799
|
const {
|
|
800
800
|
machine: o
|
|
801
801
|
} = r, s = typeof e == "function", i = s ? e : o.implementations.guards[typeof e == "string" ? e : e.type];
|
|
802
802
|
if (!s && !i)
|
|
803
803
|
throw new Error(`Guard '${typeof e == "string" ? e : e.type}' is not implemented.'.`);
|
|
804
804
|
if (typeof i != "function")
|
|
805
|
-
return
|
|
805
|
+
return zt(i, t, n, r);
|
|
806
806
|
const u = {
|
|
807
807
|
context: t,
|
|
808
808
|
event: n
|
|
@@ -817,7 +817,7 @@ function Kt(e, t, n, r) {
|
|
|
817
817
|
// this holds all params
|
|
818
818
|
) : i(u, a);
|
|
819
819
|
}
|
|
820
|
-
const
|
|
820
|
+
const Kt = (e) => e.type === "atomic" || e.type === "final";
|
|
821
821
|
function Se(e) {
|
|
822
822
|
return Object.values(e.states).filter((t) => t.type !== "history");
|
|
823
823
|
}
|
|
@@ -831,14 +831,14 @@ function Ke(e, t) {
|
|
|
831
831
|
return n;
|
|
832
832
|
}
|
|
833
833
|
function nt(e) {
|
|
834
|
-
const t = new Set(e), n =
|
|
834
|
+
const t = new Set(e), n = to(t);
|
|
835
835
|
for (const r of t)
|
|
836
836
|
if (r.type === "compound" && (!n.get(r) || !n.get(r).length))
|
|
837
|
-
|
|
837
|
+
An(r).forEach((o) => t.add(o));
|
|
838
838
|
else if (r.type === "parallel") {
|
|
839
839
|
for (const o of Se(r))
|
|
840
840
|
if (o.type !== "history" && !t.has(o)) {
|
|
841
|
-
const s =
|
|
841
|
+
const s = An(o);
|
|
842
842
|
for (const i of s)
|
|
843
843
|
t.add(i);
|
|
844
844
|
}
|
|
@@ -850,40 +850,40 @@ function nt(e) {
|
|
|
850
850
|
}
|
|
851
851
|
return t;
|
|
852
852
|
}
|
|
853
|
-
function
|
|
853
|
+
function eo(e, t) {
|
|
854
854
|
const n = t.get(e);
|
|
855
855
|
if (!n)
|
|
856
856
|
return {};
|
|
857
857
|
if (e.type === "compound") {
|
|
858
858
|
const o = n[0];
|
|
859
859
|
if (o) {
|
|
860
|
-
if (
|
|
860
|
+
if (Kt(o))
|
|
861
861
|
return o.key;
|
|
862
862
|
} else
|
|
863
863
|
return {};
|
|
864
864
|
}
|
|
865
865
|
const r = {};
|
|
866
866
|
for (const o of n)
|
|
867
|
-
r[o.key] =
|
|
867
|
+
r[o.key] = eo(o, t);
|
|
868
868
|
return r;
|
|
869
869
|
}
|
|
870
|
-
function
|
|
870
|
+
function to(e) {
|
|
871
871
|
const t = /* @__PURE__ */ new Map();
|
|
872
872
|
for (const n of e)
|
|
873
873
|
t.has(n) || t.set(n, []), n.parent && (t.has(n.parent) || t.set(n.parent, []), t.get(n.parent).push(n));
|
|
874
874
|
return t;
|
|
875
875
|
}
|
|
876
|
-
function
|
|
876
|
+
function no(e, t) {
|
|
877
877
|
const n = nt(t);
|
|
878
|
-
return
|
|
878
|
+
return eo(e, to(n));
|
|
879
879
|
}
|
|
880
|
-
function
|
|
881
|
-
return t.type === "compound" ? Se(t).some((n) => n.type === "final" && e.has(n)) : t.type === "parallel" ? Se(t).every((n) =>
|
|
880
|
+
function Gt(e, t) {
|
|
881
|
+
return t.type === "compound" ? Se(t).some((n) => n.type === "final" && e.has(n)) : t.type === "parallel" ? Se(t).every((n) => Gt(e, n)) : t.type === "final";
|
|
882
882
|
}
|
|
883
|
-
const at = (e) => e[0] ===
|
|
884
|
-
function
|
|
883
|
+
const at = (e) => e[0] === Cs;
|
|
884
|
+
function Ys(e, t) {
|
|
885
885
|
return e.transitions.get(t) || [...e.transitions.keys()].filter((r) => {
|
|
886
|
-
if (r ===
|
|
886
|
+
if (r === ks)
|
|
887
887
|
return !0;
|
|
888
888
|
if (!r.endsWith(".*"))
|
|
889
889
|
return !1;
|
|
@@ -898,16 +898,16 @@ function qs(e, t) {
|
|
|
898
898
|
return !0;
|
|
899
899
|
}).sort((r, o) => o.length - r.length).flatMap((r) => e.transitions.get(r));
|
|
900
900
|
}
|
|
901
|
-
function
|
|
901
|
+
function qs(e) {
|
|
902
902
|
const t = e.config.after;
|
|
903
903
|
if (!t)
|
|
904
904
|
return [];
|
|
905
905
|
const n = (o) => {
|
|
906
|
-
const s =
|
|
907
|
-
return e.entry.push(
|
|
906
|
+
const s = Ds(o, e.id), i = s.type;
|
|
907
|
+
return e.entry.push(Ai(s, {
|
|
908
908
|
id: i,
|
|
909
909
|
delay: o
|
|
910
|
-
})), e.exit.push(
|
|
910
|
+
})), e.exit.push(js(i)), i;
|
|
911
911
|
};
|
|
912
912
|
return Object.keys(t).flatMap((o) => {
|
|
913
913
|
const s = t[o], i = typeof s == "string" ? {
|
|
@@ -929,7 +929,7 @@ function Js(e) {
|
|
|
929
929
|
});
|
|
930
930
|
}
|
|
931
931
|
function oe(e, t, n) {
|
|
932
|
-
const r =
|
|
932
|
+
const r = Zr(n.target), o = n.reenter ?? !1, s = Zs(e, r), i = {
|
|
933
933
|
...n,
|
|
934
934
|
actions: Z(n.actions),
|
|
935
935
|
guard: n.guard,
|
|
@@ -945,11 +945,11 @@ function oe(e, t, n) {
|
|
|
945
945
|
};
|
|
946
946
|
return i;
|
|
947
947
|
}
|
|
948
|
-
function
|
|
948
|
+
function Js(e) {
|
|
949
949
|
const t = /* @__PURE__ */ new Map();
|
|
950
950
|
if (e.config.on)
|
|
951
951
|
for (const n of Object.keys(e.config.on)) {
|
|
952
|
-
if (n ===
|
|
952
|
+
if (n === Gr)
|
|
953
953
|
throw new Error('Null events ("") cannot be specified as a transition key. Use `always: { ... }` instead.');
|
|
954
954
|
const r = e.config.on[n];
|
|
955
955
|
t.set(n, ge(r).map((o) => oe(e, n, o)));
|
|
@@ -978,7 +978,7 @@ function Xs(e) {
|
|
|
978
978
|
}
|
|
979
979
|
return t;
|
|
980
980
|
}
|
|
981
|
-
function
|
|
981
|
+
function Xs(e, t) {
|
|
982
982
|
const n = typeof t == "string" ? e.states[t] : t ? e.states[t.target] : void 0;
|
|
983
983
|
if (!n && t)
|
|
984
984
|
throw new Error(
|
|
@@ -999,14 +999,14 @@ function Zs(e, t) {
|
|
|
999
999
|
};
|
|
1000
1000
|
return r;
|
|
1001
1001
|
}
|
|
1002
|
-
function
|
|
1002
|
+
function Zs(e, t) {
|
|
1003
1003
|
if (t !== void 0)
|
|
1004
1004
|
return t.map((n) => {
|
|
1005
1005
|
if (typeof n != "string")
|
|
1006
1006
|
return n;
|
|
1007
1007
|
if (at(n))
|
|
1008
1008
|
return e.machine.getStateNodeById(n);
|
|
1009
|
-
const r = n[0] ===
|
|
1009
|
+
const r = n[0] === Kr;
|
|
1010
1010
|
if (r && !e.parent)
|
|
1011
1011
|
return rt(e, n.slice(1));
|
|
1012
1012
|
const o = r ? e.key + n : n;
|
|
@@ -1021,8 +1021,8 @@ ${s.message}`);
|
|
|
1021
1021
|
throw new Error(`Invalid target: "${n}" is not a valid target from the root node. Did you mean ".${n}"?`);
|
|
1022
1022
|
});
|
|
1023
1023
|
}
|
|
1024
|
-
function
|
|
1025
|
-
const t =
|
|
1024
|
+
function ro(e) {
|
|
1025
|
+
const t = Zr(e.config.target);
|
|
1026
1026
|
return t ? {
|
|
1027
1027
|
target: t.map((n) => typeof n == "string" ? rt(e.parent, n) : n)
|
|
1028
1028
|
} : e.parent.initial;
|
|
@@ -1030,14 +1030,14 @@ function oo(e) {
|
|
|
1030
1030
|
function ie(e) {
|
|
1031
1031
|
return e.type === "history";
|
|
1032
1032
|
}
|
|
1033
|
-
function
|
|
1034
|
-
const t =
|
|
1033
|
+
function An(e) {
|
|
1034
|
+
const t = oo(e);
|
|
1035
1035
|
for (const n of t)
|
|
1036
1036
|
for (const r of Ke(n, e))
|
|
1037
1037
|
t.add(r);
|
|
1038
1038
|
return t;
|
|
1039
1039
|
}
|
|
1040
|
-
function
|
|
1040
|
+
function oo(e) {
|
|
1041
1041
|
const t = /* @__PURE__ */ new Set();
|
|
1042
1042
|
function n(r) {
|
|
1043
1043
|
if (!t.has(r)) {
|
|
@@ -1066,7 +1066,7 @@ function rt(e, t) {
|
|
|
1066
1066
|
return e.machine.getStateNodeById(t);
|
|
1067
1067
|
} catch {
|
|
1068
1068
|
}
|
|
1069
|
-
const n =
|
|
1069
|
+
const n = Ft(t).slice();
|
|
1070
1070
|
let r = e;
|
|
1071
1071
|
for (; n.length; ) {
|
|
1072
1072
|
const o = n.shift();
|
|
@@ -1092,29 +1092,29 @@ function ot(e, t) {
|
|
|
1092
1092
|
return o.concat(u);
|
|
1093
1093
|
}, []));
|
|
1094
1094
|
}
|
|
1095
|
-
function
|
|
1095
|
+
function Qs(e, t, n, r) {
|
|
1096
1096
|
const s = be(e, t).next(n, r);
|
|
1097
1097
|
return !s || !s.length ? e.next(n, r) : s;
|
|
1098
1098
|
}
|
|
1099
|
-
function
|
|
1100
|
-
const o = Object.keys(t), s = be(e, o[0]), i =
|
|
1099
|
+
function ei(e, t, n, r) {
|
|
1100
|
+
const o = Object.keys(t), s = be(e, o[0]), i = Wt(s, t[o[0]], n, r);
|
|
1101
1101
|
return !i || !i.length ? e.next(n, r) : i;
|
|
1102
1102
|
}
|
|
1103
|
-
function
|
|
1103
|
+
function ti(e, t, n, r) {
|
|
1104
1104
|
const o = [];
|
|
1105
1105
|
for (const s of Object.keys(t)) {
|
|
1106
1106
|
const i = t[s];
|
|
1107
1107
|
if (!i)
|
|
1108
1108
|
continue;
|
|
1109
|
-
const u = be(e, s), a =
|
|
1109
|
+
const u = be(e, s), a = Wt(u, i, n, r);
|
|
1110
1110
|
a && o.push(...a);
|
|
1111
1111
|
}
|
|
1112
1112
|
return o.length ? o : e.next(n, r);
|
|
1113
1113
|
}
|
|
1114
|
-
function
|
|
1115
|
-
return typeof t == "string" ?
|
|
1114
|
+
function Wt(e, t, n, r) {
|
|
1115
|
+
return typeof t == "string" ? Qs(e, t, n, r) : Object.keys(t).length === 1 ? ei(e, t, n, r) : ti(e, t, n, r);
|
|
1116
1116
|
}
|
|
1117
|
-
function
|
|
1117
|
+
function ni(e) {
|
|
1118
1118
|
return Object.keys(e.states).map((t) => e.states[t]).filter((t) => t.type === "history");
|
|
1119
1119
|
}
|
|
1120
1120
|
function te(e, t) {
|
|
@@ -1123,7 +1123,7 @@ function te(e, t) {
|
|
|
1123
1123
|
n = n.parent;
|
|
1124
1124
|
return n.parent === t;
|
|
1125
1125
|
}
|
|
1126
|
-
function
|
|
1126
|
+
function ri(e, t) {
|
|
1127
1127
|
const n = new Set(e), r = new Set(t);
|
|
1128
1128
|
for (const o of n)
|
|
1129
1129
|
if (r.has(o))
|
|
@@ -1133,13 +1133,13 @@ function oi(e, t) {
|
|
|
1133
1133
|
return !0;
|
|
1134
1134
|
return !1;
|
|
1135
1135
|
}
|
|
1136
|
-
function
|
|
1136
|
+
function so(e, t, n) {
|
|
1137
1137
|
const r = /* @__PURE__ */ new Set();
|
|
1138
1138
|
for (const o of e) {
|
|
1139
1139
|
let s = !1;
|
|
1140
1140
|
const i = /* @__PURE__ */ new Set();
|
|
1141
1141
|
for (const u of r)
|
|
1142
|
-
if (
|
|
1142
|
+
if (ri(It([o], t, n), It([u], t, n)))
|
|
1143
1143
|
if (te(o.source, u.source))
|
|
1144
1144
|
i.add(u);
|
|
1145
1145
|
else {
|
|
@@ -1154,13 +1154,13 @@ function io(e, t, n) {
|
|
|
1154
1154
|
}
|
|
1155
1155
|
return Array.from(r);
|
|
1156
1156
|
}
|
|
1157
|
-
function
|
|
1157
|
+
function oi(e) {
|
|
1158
1158
|
const [t, ...n] = e;
|
|
1159
1159
|
for (const r of Ke(t, void 0))
|
|
1160
1160
|
if (n.every((o) => te(o, r)))
|
|
1161
1161
|
return r;
|
|
1162
1162
|
}
|
|
1163
|
-
function
|
|
1163
|
+
function Yt(e, t) {
|
|
1164
1164
|
if (!e.target)
|
|
1165
1165
|
return [];
|
|
1166
1166
|
const n = /* @__PURE__ */ new Set();
|
|
@@ -1170,19 +1170,19 @@ function qt(e, t) {
|
|
|
1170
1170
|
for (const o of t[r.id])
|
|
1171
1171
|
n.add(o);
|
|
1172
1172
|
else
|
|
1173
|
-
for (const o of
|
|
1173
|
+
for (const o of Yt(ro(r), t))
|
|
1174
1174
|
n.add(o);
|
|
1175
1175
|
else
|
|
1176
1176
|
n.add(r);
|
|
1177
1177
|
return [...n];
|
|
1178
1178
|
}
|
|
1179
|
-
function
|
|
1180
|
-
const n =
|
|
1179
|
+
function io(e, t) {
|
|
1180
|
+
const n = Yt(e, t);
|
|
1181
1181
|
if (!n)
|
|
1182
1182
|
return;
|
|
1183
1183
|
if (!e.reenter && n.every((o) => o === e.source || te(o, e.source)))
|
|
1184
1184
|
return e.source;
|
|
1185
|
-
const r =
|
|
1185
|
+
const r = oi(n.concat(e.source));
|
|
1186
1186
|
if (r)
|
|
1187
1187
|
return r;
|
|
1188
1188
|
if (!e.reenter)
|
|
@@ -1192,14 +1192,14 @@ function It(e, t, n) {
|
|
|
1192
1192
|
const r = /* @__PURE__ */ new Set();
|
|
1193
1193
|
for (const o of e)
|
|
1194
1194
|
if (o.target?.length) {
|
|
1195
|
-
const s =
|
|
1195
|
+
const s = io(o, n);
|
|
1196
1196
|
o.reenter && o.source === s && r.add(s);
|
|
1197
1197
|
for (const i of t)
|
|
1198
1198
|
te(i, s) && r.add(i);
|
|
1199
1199
|
}
|
|
1200
1200
|
return [...r];
|
|
1201
1201
|
}
|
|
1202
|
-
function
|
|
1202
|
+
function si(e, t) {
|
|
1203
1203
|
if (e.length !== t.size)
|
|
1204
1204
|
return !1;
|
|
1205
1205
|
for (const n of e)
|
|
@@ -1212,13 +1212,13 @@ function Ct(e, t, n, r, o, s) {
|
|
|
1212
1212
|
return t;
|
|
1213
1213
|
const i = new Set(t._nodes);
|
|
1214
1214
|
let u = t.historyValue;
|
|
1215
|
-
const a =
|
|
1215
|
+
const a = so(e, i, u);
|
|
1216
1216
|
let c = t;
|
|
1217
|
-
o || ([c, u] =
|
|
1217
|
+
o || ([c, u] = ci(c, r, n, a, i, u, s, n.actionExecutor)), c = Ae(c, r, n, a.flatMap((l) => l.actions), s, void 0), c = ui(c, r, n, a, i, s, u, o);
|
|
1218
1218
|
const p = [...i];
|
|
1219
1219
|
c.status === "done" && (c = Ae(c, r, n, p.sort((l, f) => f.order - l.order).flatMap((l) => l.exit), s, void 0));
|
|
1220
1220
|
try {
|
|
1221
|
-
return u === t.historyValue &&
|
|
1221
|
+
return u === t.historyValue && si(t._nodes, i) ? c : ce(c, {
|
|
1222
1222
|
_nodes: p,
|
|
1223
1223
|
historyValue: u
|
|
1224
1224
|
});
|
|
@@ -1226,23 +1226,23 @@ function Ct(e, t, n, r, o, s) {
|
|
|
1226
1226
|
throw l;
|
|
1227
1227
|
}
|
|
1228
1228
|
}
|
|
1229
|
-
function
|
|
1229
|
+
function ii(e, t, n, r, o) {
|
|
1230
1230
|
if (r.output === void 0)
|
|
1231
1231
|
return;
|
|
1232
1232
|
const s = wt(o.id, o.output !== void 0 && o.parent ? Ot(o.output, e.context, t, n.self) : void 0);
|
|
1233
1233
|
return Ot(r.output, e.context, s, n.self);
|
|
1234
1234
|
}
|
|
1235
|
-
function
|
|
1235
|
+
function ui(e, t, n, r, o, s, i, u) {
|
|
1236
1236
|
let a = e;
|
|
1237
1237
|
const c = /* @__PURE__ */ new Set(), p = /* @__PURE__ */ new Set();
|
|
1238
|
-
|
|
1238
|
+
ai(r, i, p, c), u && p.add(e.machine.root);
|
|
1239
1239
|
const l = /* @__PURE__ */ new Set();
|
|
1240
1240
|
for (const f of [...c].sort((d, h) => d.order - h.order)) {
|
|
1241
1241
|
o.add(f);
|
|
1242
1242
|
const d = [];
|
|
1243
1243
|
d.push(...f.entry);
|
|
1244
1244
|
for (const h of f.invoke)
|
|
1245
|
-
d.push(
|
|
1245
|
+
d.push(Ks(h.src, {
|
|
1246
1246
|
...h,
|
|
1247
1247
|
syncSnapshot: !!h.onSnapshot
|
|
1248
1248
|
}));
|
|
@@ -1253,31 +1253,31 @@ function ai(e, t, n, r, o, s, i, u) {
|
|
|
1253
1253
|
if (a = Ae(a, t, n, d, s, f.invoke.map((h) => h.id)), f.type === "final") {
|
|
1254
1254
|
const h = f.parent;
|
|
1255
1255
|
let m = h?.type === "parallel" ? h : h?.parent, g = m || f;
|
|
1256
|
-
for (h?.type === "compound" && s.push(wt(h.id, f.output !== void 0 ? Ot(f.output, a.context, t, n.self) : void 0)); m?.type === "parallel" && !l.has(m) &&
|
|
1256
|
+
for (h?.type === "compound" && s.push(wt(h.id, f.output !== void 0 ? Ot(f.output, a.context, t, n.self) : void 0)); m?.type === "parallel" && !l.has(m) && Gt(o, m); )
|
|
1257
1257
|
l.add(m), s.push(wt(m.id)), g = m, m = m.parent;
|
|
1258
1258
|
if (m)
|
|
1259
1259
|
continue;
|
|
1260
1260
|
a = ce(a, {
|
|
1261
1261
|
status: "done",
|
|
1262
|
-
output:
|
|
1262
|
+
output: ii(a, t, n, a.machine.root, g)
|
|
1263
1263
|
});
|
|
1264
1264
|
}
|
|
1265
1265
|
}
|
|
1266
1266
|
return a;
|
|
1267
1267
|
}
|
|
1268
|
-
function
|
|
1268
|
+
function ai(e, t, n, r) {
|
|
1269
1269
|
for (const o of e) {
|
|
1270
|
-
const s =
|
|
1270
|
+
const s = io(o, t);
|
|
1271
1271
|
for (const u of o.target || [])
|
|
1272
1272
|
!ie(u) && // if the target is different than the source then it will *definitely* be entered
|
|
1273
1273
|
(o.source !== u || // we know that the domain can't lie within the source
|
|
1274
1274
|
// if it's different than the source then it's outside of it and it means that the target has to be entered as well
|
|
1275
1275
|
o.source !== s || // reentering transitions always enter the target, even if it's the source itself
|
|
1276
1276
|
o.reenter) && (r.add(u), n.add(u)), me(u, t, n, r);
|
|
1277
|
-
const i =
|
|
1277
|
+
const i = Yt(o, t);
|
|
1278
1278
|
for (const u of i) {
|
|
1279
1279
|
const a = Ke(u, s);
|
|
1280
|
-
s?.type === "parallel" && a.push(s),
|
|
1280
|
+
s?.type === "parallel" && a.push(s), uo(r, t, n, a, !o.source.parent && o.reenter ? void 0 : s);
|
|
1281
1281
|
}
|
|
1282
1282
|
}
|
|
1283
1283
|
}
|
|
@@ -1290,7 +1290,7 @@ function me(e, t, n, r) {
|
|
|
1290
1290
|
for (const s of o)
|
|
1291
1291
|
gt(s, e.parent, r, t, n);
|
|
1292
1292
|
} else {
|
|
1293
|
-
const o =
|
|
1293
|
+
const o = ro(e);
|
|
1294
1294
|
for (const s of o.target)
|
|
1295
1295
|
r.add(s), o === e.parent?.initial && n.add(e.parent), me(s, t, n, r);
|
|
1296
1296
|
for (const s of o.target)
|
|
@@ -1303,35 +1303,35 @@ function me(e, t, n, r) {
|
|
|
1303
1303
|
for (const o of Se(e).filter((s) => !ie(s)))
|
|
1304
1304
|
[...r].some((s) => te(s, o)) || (ie(o) || (r.add(o), n.add(o)), me(o, t, n, r));
|
|
1305
1305
|
}
|
|
1306
|
-
function
|
|
1306
|
+
function uo(e, t, n, r, o) {
|
|
1307
1307
|
for (const s of r)
|
|
1308
1308
|
if ((!o || te(s, o)) && e.add(s), s.type === "parallel")
|
|
1309
1309
|
for (const i of Se(s).filter((u) => !ie(u)))
|
|
1310
1310
|
[...e].some((u) => te(u, i)) || (e.add(i), me(i, t, n, e));
|
|
1311
1311
|
}
|
|
1312
1312
|
function gt(e, t, n, r, o) {
|
|
1313
|
-
|
|
1313
|
+
uo(n, r, o, Ke(e, t));
|
|
1314
1314
|
}
|
|
1315
|
-
function
|
|
1315
|
+
function ci(e, t, n, r, o, s, i, u) {
|
|
1316
1316
|
let a = e;
|
|
1317
1317
|
const c = It(r, o, s);
|
|
1318
1318
|
c.sort((l, f) => f.order - l.order);
|
|
1319
1319
|
let p;
|
|
1320
1320
|
for (const l of c)
|
|
1321
|
-
for (const f of
|
|
1321
|
+
for (const f of ni(l)) {
|
|
1322
1322
|
let d;
|
|
1323
|
-
f.history === "deep" ? d = (h) =>
|
|
1323
|
+
f.history === "deep" ? d = (h) => Kt(h) && te(h, l) : d = (h) => h.parent === l, p ??= {
|
|
1324
1324
|
...s
|
|
1325
1325
|
}, p[f.id] = Array.from(o).filter(d);
|
|
1326
1326
|
}
|
|
1327
1327
|
for (const l of c)
|
|
1328
|
-
a = Ae(a, t, n, [...l.exit, ...l.invoke.map((f) =>
|
|
1328
|
+
a = Ae(a, t, n, [...l.exit, ...l.invoke.map((f) => Qr(f.id))], i, void 0), o.delete(l);
|
|
1329
1329
|
return [a, p || s];
|
|
1330
1330
|
}
|
|
1331
|
-
function
|
|
1331
|
+
function li(e, t) {
|
|
1332
1332
|
return e.implementations.actions[t];
|
|
1333
1333
|
}
|
|
1334
|
-
function
|
|
1334
|
+
function ao(e, t, n, r, o, s) {
|
|
1335
1335
|
const {
|
|
1336
1336
|
machine: i
|
|
1337
1337
|
} = e;
|
|
@@ -1341,7 +1341,7 @@ function co(e, t, n, r, o, s) {
|
|
|
1341
1341
|
// the existing type of `.actions` assumes non-nullable `TExpressionAction`
|
|
1342
1342
|
// it's fine to cast this here to get a common type and lack of errors in the rest of the code
|
|
1343
1343
|
// our logic below makes sure that we call those 2 "variants" correctly
|
|
1344
|
-
|
|
1344
|
+
li(i, typeof a == "string" ? a : a.type)
|
|
1345
1345
|
), l = {
|
|
1346
1346
|
context: u.context,
|
|
1347
1347
|
event: t,
|
|
@@ -1374,12 +1374,12 @@ function co(e, t, n, r, o, s) {
|
|
|
1374
1374
|
info: l,
|
|
1375
1375
|
params: m,
|
|
1376
1376
|
exec: d.execute.bind(null, n, m)
|
|
1377
|
-
}), g && (u =
|
|
1377
|
+
}), g && (u = ao(u, t, n, g, o, s));
|
|
1378
1378
|
}
|
|
1379
1379
|
return u;
|
|
1380
1380
|
}
|
|
1381
1381
|
function Ae(e, t, n, r, o, s) {
|
|
1382
|
-
const i = s ? [] : void 0, u =
|
|
1382
|
+
const i = s ? [] : void 0, u = ao(e, t, n, r, {
|
|
1383
1383
|
internalQueue: o,
|
|
1384
1384
|
deferredActorIds: s
|
|
1385
1385
|
}, i);
|
|
@@ -1400,15 +1400,15 @@ function mt(e, t, n, r) {
|
|
|
1400
1400
|
}), s.push(c);
|
|
1401
1401
|
}
|
|
1402
1402
|
if (t.type === At)
|
|
1403
|
-
return o = ce(
|
|
1403
|
+
return o = ce(wn(o, t, n), {
|
|
1404
1404
|
status: "stopped"
|
|
1405
1405
|
}), i(o, t, []), {
|
|
1406
1406
|
snapshot: o,
|
|
1407
1407
|
microstates: s
|
|
1408
1408
|
};
|
|
1409
1409
|
let u = t;
|
|
1410
|
-
if (u.type !==
|
|
1411
|
-
const c = u, p =
|
|
1410
|
+
if (u.type !== Wr) {
|
|
1411
|
+
const c = u, p = Vs(c), l = On(c, o);
|
|
1412
1412
|
if (p && !l.length)
|
|
1413
1413
|
return o = ce(e, {
|
|
1414
1414
|
status: "error",
|
|
@@ -1429,55 +1429,55 @@ function mt(e, t, n, r) {
|
|
|
1429
1429
|
}
|
|
1430
1430
|
let a = !0;
|
|
1431
1431
|
for (; o.status === "active"; ) {
|
|
1432
|
-
let c = a ?
|
|
1432
|
+
let c = a ? fi(o, u) : [];
|
|
1433
1433
|
const p = c.length ? o : void 0;
|
|
1434
1434
|
if (!c.length) {
|
|
1435
1435
|
if (!r.length)
|
|
1436
1436
|
break;
|
|
1437
|
-
u = r.shift(), c =
|
|
1437
|
+
u = r.shift(), c = On(u, o);
|
|
1438
1438
|
}
|
|
1439
1439
|
o = Ct(c, o, n, u, !1, r), a = o !== p, i(o, u, c);
|
|
1440
1440
|
}
|
|
1441
|
-
return o.status !== "active" &&
|
|
1441
|
+
return o.status !== "active" && wn(o, u, n), {
|
|
1442
1442
|
snapshot: o,
|
|
1443
1443
|
microstates: s
|
|
1444
1444
|
};
|
|
1445
1445
|
}
|
|
1446
|
-
function
|
|
1447
|
-
return Ae(e, t, n, Object.values(e.children).map((r) =>
|
|
1446
|
+
function wn(e, t, n) {
|
|
1447
|
+
return Ae(e, t, n, Object.values(e.children).map((r) => Qr(r)), [], void 0);
|
|
1448
1448
|
}
|
|
1449
|
-
function
|
|
1449
|
+
function On(e, t) {
|
|
1450
1450
|
return t.machine.getTransitionData(t, e);
|
|
1451
1451
|
}
|
|
1452
|
-
function
|
|
1453
|
-
const n = /* @__PURE__ */ new Set(), r = e._nodes.filter(
|
|
1452
|
+
function fi(e, t) {
|
|
1453
|
+
const n = /* @__PURE__ */ new Set(), r = e._nodes.filter(Kt);
|
|
1454
1454
|
for (const o of r)
|
|
1455
1455
|
e: for (const s of [o].concat(Ke(o, void 0)))
|
|
1456
1456
|
if (s.always) {
|
|
1457
1457
|
for (const i of s.always)
|
|
1458
|
-
if (i.guard === void 0 ||
|
|
1458
|
+
if (i.guard === void 0 || zt(i.guard, e.context, t, e)) {
|
|
1459
1459
|
n.add(i);
|
|
1460
1460
|
break e;
|
|
1461
1461
|
}
|
|
1462
1462
|
}
|
|
1463
|
-
return
|
|
1463
|
+
return so(Array.from(n), new Set(e._nodes), e.historyValue);
|
|
1464
1464
|
}
|
|
1465
|
-
function
|
|
1465
|
+
function di(e, t) {
|
|
1466
1466
|
const n = nt(ot(e, t));
|
|
1467
|
-
return
|
|
1467
|
+
return no(e, [...n]);
|
|
1468
1468
|
}
|
|
1469
|
-
function
|
|
1469
|
+
function hi(e) {
|
|
1470
1470
|
return !!e && typeof e == "object" && "machine" in e && "value" in e;
|
|
1471
1471
|
}
|
|
1472
|
-
const
|
|
1473
|
-
return
|
|
1474
|
-
},
|
|
1472
|
+
const pi = function(t) {
|
|
1473
|
+
return qr(t, this.value);
|
|
1474
|
+
}, _i = function(t) {
|
|
1475
1475
|
return this.tags.has(t);
|
|
1476
|
-
},
|
|
1476
|
+
}, gi = function(t) {
|
|
1477
1477
|
const n = this.machine.getTransitionData(this, t);
|
|
1478
1478
|
return !!n?.length && // Check that at least one transition is not forbidden
|
|
1479
1479
|
n.some((r) => r.target !== void 0 || r.actions.length);
|
|
1480
|
-
},
|
|
1480
|
+
}, mi = function() {
|
|
1481
1481
|
const {
|
|
1482
1482
|
_nodes: t,
|
|
1483
1483
|
tags: n,
|
|
@@ -1493,7 +1493,7 @@ const _i = function(t) {
|
|
|
1493
1493
|
...c,
|
|
1494
1494
|
tags: Array.from(n)
|
|
1495
1495
|
};
|
|
1496
|
-
},
|
|
1496
|
+
}, Ei = function() {
|
|
1497
1497
|
return this._nodes.reduce((t, n) => (n.meta !== void 0 && (t[n.id] = n.meta), t), {});
|
|
1498
1498
|
};
|
|
1499
1499
|
function qe(e, t) {
|
|
@@ -1504,15 +1504,15 @@ function qe(e, t) {
|
|
|
1504
1504
|
machine: t,
|
|
1505
1505
|
context: e.context,
|
|
1506
1506
|
_nodes: e._nodes,
|
|
1507
|
-
value:
|
|
1507
|
+
value: no(t.root, e._nodes),
|
|
1508
1508
|
tags: new Set(e._nodes.flatMap((n) => n.tags)),
|
|
1509
1509
|
children: e.children,
|
|
1510
1510
|
historyValue: e.historyValue || {},
|
|
1511
|
-
matches:
|
|
1512
|
-
hasTag:
|
|
1513
|
-
can:
|
|
1514
|
-
getMeta:
|
|
1515
|
-
toJSON:
|
|
1511
|
+
matches: pi,
|
|
1512
|
+
hasTag: _i,
|
|
1513
|
+
can: gi,
|
|
1514
|
+
getMeta: Ei,
|
|
1515
|
+
toJSON: mi
|
|
1516
1516
|
};
|
|
1517
1517
|
}
|
|
1518
1518
|
function ce(e, t = {}) {
|
|
@@ -1521,7 +1521,7 @@ function ce(e, t = {}) {
|
|
|
1521
1521
|
...t
|
|
1522
1522
|
}, e.machine);
|
|
1523
1523
|
}
|
|
1524
|
-
function
|
|
1524
|
+
function vi(e) {
|
|
1525
1525
|
if (typeof e != "object" || e === null)
|
|
1526
1526
|
return {};
|
|
1527
1527
|
const t = {};
|
|
@@ -1533,7 +1533,7 @@ function yi(e) {
|
|
|
1533
1533
|
}
|
|
1534
1534
|
return t;
|
|
1535
1535
|
}
|
|
1536
|
-
function
|
|
1536
|
+
function yi(e, t) {
|
|
1537
1537
|
const {
|
|
1538
1538
|
_nodes: n,
|
|
1539
1539
|
tags: r,
|
|
@@ -1558,12 +1558,12 @@ function Si(e, t) {
|
|
|
1558
1558
|
}
|
|
1559
1559
|
return {
|
|
1560
1560
|
...f,
|
|
1561
|
-
context:
|
|
1561
|
+
context: co(i),
|
|
1562
1562
|
children: d,
|
|
1563
|
-
historyValue:
|
|
1563
|
+
historyValue: vi(f.historyValue)
|
|
1564
1564
|
};
|
|
1565
1565
|
}
|
|
1566
|
-
function
|
|
1566
|
+
function co(e) {
|
|
1567
1567
|
let t;
|
|
1568
1568
|
for (const n in e) {
|
|
1569
1569
|
const r = e[n];
|
|
@@ -1572,11 +1572,11 @@ function lo(e) {
|
|
|
1572
1572
|
t ??= Array.isArray(e) ? e.slice() : {
|
|
1573
1573
|
...e
|
|
1574
1574
|
}, t[n] = {
|
|
1575
|
-
xstate$$type:
|
|
1575
|
+
xstate$$type: Ht,
|
|
1576
1576
|
id: r.id
|
|
1577
1577
|
};
|
|
1578
1578
|
else {
|
|
1579
|
-
const o =
|
|
1579
|
+
const o = co(r);
|
|
1580
1580
|
o !== r && (t ??= Array.isArray(e) ? e.slice() : {
|
|
1581
1581
|
...e
|
|
1582
1582
|
}, t[n] = o);
|
|
@@ -1584,7 +1584,7 @@ function lo(e) {
|
|
|
1584
1584
|
}
|
|
1585
1585
|
return t ?? e;
|
|
1586
1586
|
}
|
|
1587
|
-
function
|
|
1587
|
+
function Si(e, t, n, r, {
|
|
1588
1588
|
event: o,
|
|
1589
1589
|
id: s,
|
|
1590
1590
|
delay: i
|
|
@@ -1610,7 +1610,7 @@ function bi(e, t, n, r, {
|
|
|
1610
1610
|
delay: p
|
|
1611
1611
|
}, void 0];
|
|
1612
1612
|
}
|
|
1613
|
-
function
|
|
1613
|
+
function bi(e, t) {
|
|
1614
1614
|
const {
|
|
1615
1615
|
event: n,
|
|
1616
1616
|
delay: r,
|
|
@@ -1624,18 +1624,18 @@ function Ai(e, t) {
|
|
|
1624
1624
|
return;
|
|
1625
1625
|
}
|
|
1626
1626
|
}
|
|
1627
|
-
function
|
|
1627
|
+
function Ai(e, t) {
|
|
1628
1628
|
function n(r, o) {
|
|
1629
1629
|
}
|
|
1630
|
-
return n.type = "xstate.raise", n.event = e, n.id = t?.id, n.delay = t?.delay, n.resolve =
|
|
1630
|
+
return n.type = "xstate.raise", n.event = e, n.id = t?.id, n.delay = t?.delay, n.resolve = Si, n.execute = bi, n;
|
|
1631
1631
|
}
|
|
1632
|
-
function
|
|
1632
|
+
function wi(e, {
|
|
1633
1633
|
machine: t,
|
|
1634
1634
|
context: n
|
|
1635
1635
|
}, r, o) {
|
|
1636
1636
|
const s = (i, u) => {
|
|
1637
1637
|
if (typeof i == "string") {
|
|
1638
|
-
const a =
|
|
1638
|
+
const a = jt(t, i);
|
|
1639
1639
|
if (!a)
|
|
1640
1640
|
throw new Error(`Actor logic '${i}' not implemented in machine '${t.id}'`);
|
|
1641
1641
|
const c = $e(a, {
|
|
@@ -1668,7 +1668,7 @@ function Oi(e, {
|
|
|
1668
1668
|
}), a;
|
|
1669
1669
|
};
|
|
1670
1670
|
}
|
|
1671
|
-
function
|
|
1671
|
+
function Oi(e, t, n, r, {
|
|
1672
1672
|
assignment: o
|
|
1673
1673
|
}) {
|
|
1674
1674
|
if (!t.context)
|
|
@@ -1676,7 +1676,7 @@ function Ti(e, t, n, r, {
|
|
|
1676
1676
|
const s = {}, i = {
|
|
1677
1677
|
context: t.context,
|
|
1678
1678
|
event: n.event,
|
|
1679
|
-
spawn:
|
|
1679
|
+
spawn: wi(e, t, n.event, s),
|
|
1680
1680
|
self: e.self,
|
|
1681
1681
|
system: e.system
|
|
1682
1682
|
};
|
|
@@ -1697,19 +1697,19 @@ function Ti(e, t, n, r, {
|
|
|
1697
1697
|
} : t.children
|
|
1698
1698
|
}), void 0, void 0];
|
|
1699
1699
|
}
|
|
1700
|
-
function
|
|
1700
|
+
function Ti(e) {
|
|
1701
1701
|
function t(n, r) {
|
|
1702
1702
|
}
|
|
1703
|
-
return t.type = "xstate.assign", t.assignment = e, t.resolve =
|
|
1703
|
+
return t.type = "xstate.assign", t.assignment = e, t.resolve = Oi, t;
|
|
1704
1704
|
}
|
|
1705
|
-
const
|
|
1705
|
+
const Tn = /* @__PURE__ */ new WeakMap();
|
|
1706
1706
|
function pe(e, t, n) {
|
|
1707
|
-
let r =
|
|
1707
|
+
let r = Tn.get(e);
|
|
1708
1708
|
return r ? t in r || (r[t] = n()) : (r = {
|
|
1709
1709
|
[t]: n()
|
|
1710
|
-
},
|
|
1710
|
+
}, Tn.set(e, r)), r[t];
|
|
1711
1711
|
}
|
|
1712
|
-
const
|
|
1712
|
+
const Ii = {}, xe = (e) => typeof e == "string" ? {
|
|
1713
1713
|
type: e
|
|
1714
1714
|
} : typeof e == "function" ? "resolve" in e ? {
|
|
1715
1715
|
type: e.type
|
|
@@ -1718,17 +1718,17 @@ const Ci = {}, xe = (e) => typeof e == "string" ? {
|
|
|
1718
1718
|
} : e;
|
|
1719
1719
|
class st {
|
|
1720
1720
|
constructor(t, n) {
|
|
1721
|
-
if (this.config = t, this.key = void 0, this.id = void 0, this.type = void 0, this.path = void 0, this.states = void 0, this.history = void 0, this.entry = void 0, this.exit = void 0, this.parent = void 0, this.machine = void 0, this.meta = void 0, this.output = void 0, this.order = -1, this.description = void 0, this.tags = [], this.transitions = void 0, this.always = void 0, this.parent = n._parent, this.key = n._key, this.machine = n._machine, this.path = this.parent ? this.parent.path.concat(this.key) : [], this.id = this.config.id || [this.machine.id, ...this.path].join(
|
|
1721
|
+
if (this.config = t, this.key = void 0, this.id = void 0, this.type = void 0, this.path = void 0, this.states = void 0, this.history = void 0, this.entry = void 0, this.exit = void 0, this.parent = void 0, this.machine = void 0, this.meta = void 0, this.output = void 0, this.order = -1, this.description = void 0, this.tags = [], this.transitions = void 0, this.always = void 0, this.parent = n._parent, this.key = n._key, this.machine = n._machine, this.path = this.parent ? this.parent.path.concat(this.key) : [], this.id = this.config.id || [this.machine.id, ...this.path].join(Kr), this.type = this.config.type || (this.config.states && Object.keys(this.config.states).length ? "compound" : this.config.history ? "history" : "atomic"), this.description = this.config.description, this.order = this.machine.idMap.size, this.machine.idMap.set(this.id, this), this.states = this.config.states ? yn(this.config.states, (r, o) => new st(r, {
|
|
1722
1722
|
_parent: this,
|
|
1723
1723
|
_key: o,
|
|
1724
1724
|
_machine: this.machine
|
|
1725
|
-
})) :
|
|
1725
|
+
})) : Ii, this.type === "compound" && !this.config.initial)
|
|
1726
1726
|
throw new Error(`No initial state specified for compound state node "#${this.id}". Try adding { initial: "${Object.keys(this.states)[0]}" } to the state config.`);
|
|
1727
1727
|
this.history = this.config.history === !0 ? "shallow" : this.config.history || !1, this.entry = Z(this.config.entry).slice(), this.exit = Z(this.config.exit).slice(), this.meta = this.config.meta, this.output = this.type === "final" || !this.parent ? this.config.output : void 0, this.tags = Z(t.tags).slice();
|
|
1728
1728
|
}
|
|
1729
1729
|
/** @internal */
|
|
1730
1730
|
_initialize() {
|
|
1731
|
-
this.transitions =
|
|
1731
|
+
this.transitions = Js(this), this.config.always && (this.always = ge(this.config.always).map((t) => oe(this, Gr, t))), Object.keys(this.states).forEach((t) => {
|
|
1732
1732
|
this.states[t]._initialize();
|
|
1733
1733
|
});
|
|
1734
1734
|
}
|
|
@@ -1753,7 +1753,7 @@ class st {
|
|
|
1753
1753
|
})
|
|
1754
1754
|
} : void 0,
|
|
1755
1755
|
history: this.history,
|
|
1756
|
-
states:
|
|
1756
|
+
states: yn(this.states, (t) => t.definition),
|
|
1757
1757
|
on: this.on,
|
|
1758
1758
|
transitions: [...this.transitions.values()].flat().map((t) => ({
|
|
1759
1759
|
...t,
|
|
@@ -1779,7 +1779,7 @@ class st {
|
|
|
1779
1779
|
const {
|
|
1780
1780
|
src: r,
|
|
1781
1781
|
systemId: o
|
|
1782
|
-
} = t, s = t.id ??
|
|
1782
|
+
} = t, s = t.id ?? Sn(this.id, n), i = typeof r == "string" ? r : `xstate.invoke.${Sn(this.id, n)}`;
|
|
1783
1783
|
return {
|
|
1784
1784
|
...t,
|
|
1785
1785
|
src: i,
|
|
@@ -1806,23 +1806,23 @@ class st {
|
|
|
1806
1806
|
return pe(this, "on", () => [...this.transitions].flatMap(([n, r]) => r.map((o) => [n, o])).reduce((n, [r, o]) => (n[r] = n[r] || [], n[r].push(o), n), {}));
|
|
1807
1807
|
}
|
|
1808
1808
|
get after() {
|
|
1809
|
-
return pe(this, "delayedTransitions", () =>
|
|
1809
|
+
return pe(this, "delayedTransitions", () => qs(this));
|
|
1810
1810
|
}
|
|
1811
1811
|
get initial() {
|
|
1812
|
-
return pe(this, "initial", () =>
|
|
1812
|
+
return pe(this, "initial", () => Xs(this, this.config.initial));
|
|
1813
1813
|
}
|
|
1814
1814
|
/** @internal */
|
|
1815
1815
|
next(t, n) {
|
|
1816
1816
|
const r = n.type, o = [];
|
|
1817
1817
|
let s;
|
|
1818
|
-
const i = pe(this, `candidates-${r}`, () =>
|
|
1818
|
+
const i = pe(this, `candidates-${r}`, () => Ys(this, r));
|
|
1819
1819
|
for (const u of i) {
|
|
1820
1820
|
const {
|
|
1821
1821
|
guard: a
|
|
1822
1822
|
} = u, c = t.context;
|
|
1823
1823
|
let p = !1;
|
|
1824
1824
|
try {
|
|
1825
|
-
p = !a ||
|
|
1825
|
+
p = !a || zt(a, c, n, t);
|
|
1826
1826
|
} catch (l) {
|
|
1827
1827
|
const f = typeof a == "string" ? a : typeof a == "object" ? a.type : void 0;
|
|
1828
1828
|
throw new Error(`Unable to evaluate guard ${f ? `'${f}' ` : ""}in transition for event '${r}' in state node '${this.id}':
|
|
@@ -1861,8 +1861,8 @@ ${l.message}`);
|
|
|
1861
1861
|
return Array.from(t);
|
|
1862
1862
|
}
|
|
1863
1863
|
}
|
|
1864
|
-
const
|
|
1865
|
-
class
|
|
1864
|
+
const Ci = "#";
|
|
1865
|
+
class qt {
|
|
1866
1866
|
constructor(t, n) {
|
|
1867
1867
|
this.config = t, this.version = void 0, this.schemas = void 0, this.implementations = void 0, this.__xstatenode = !0, this.idMap = /* @__PURE__ */ new Map(), this.root = void 0, this.id = void 0, this.states = void 0, this.events = void 0, this.id = t.id || "(machine)", this.implementations = {
|
|
1868
1868
|
actors: n?.actors ?? {},
|
|
@@ -1888,7 +1888,7 @@ class Jt {
|
|
|
1888
1888
|
actors: o,
|
|
1889
1889
|
delays: s
|
|
1890
1890
|
} = this.implementations;
|
|
1891
|
-
return new
|
|
1891
|
+
return new qt(this.config, {
|
|
1892
1892
|
actions: {
|
|
1893
1893
|
...n,
|
|
1894
1894
|
...t.actions
|
|
@@ -1908,12 +1908,12 @@ class Jt {
|
|
|
1908
1908
|
});
|
|
1909
1909
|
}
|
|
1910
1910
|
resolveState(t) {
|
|
1911
|
-
const n =
|
|
1911
|
+
const n = di(this.root, t.value), r = nt(ot(this.root, n));
|
|
1912
1912
|
return qe({
|
|
1913
1913
|
_nodes: [...r],
|
|
1914
1914
|
context: t.context || {},
|
|
1915
1915
|
children: {},
|
|
1916
|
-
status:
|
|
1916
|
+
status: Gt(r, this.root) ? "done" : t.status || "active",
|
|
1917
1917
|
output: t.output,
|
|
1918
1918
|
error: t.error,
|
|
1919
1919
|
historyValue: t.historyValue
|
|
@@ -1940,7 +1940,7 @@ class Jt {
|
|
|
1940
1940
|
return mt(t, n, r, []).microstates;
|
|
1941
1941
|
}
|
|
1942
1942
|
getTransitionData(t, n) {
|
|
1943
|
-
return
|
|
1943
|
+
return Wt(this.root, t.value, t, n) || [];
|
|
1944
1944
|
}
|
|
1945
1945
|
/**
|
|
1946
1946
|
* The initial state _before_ evaluating any microsteps. This "pre-initial"
|
|
@@ -1955,7 +1955,7 @@ class Jt {
|
|
|
1955
1955
|
children: {},
|
|
1956
1956
|
status: "active"
|
|
1957
1957
|
}, this);
|
|
1958
|
-
return typeof o == "function" ? Ae(s, n, t, [
|
|
1958
|
+
return typeof o == "function" ? Ae(s, n, t, [Ti(({
|
|
1959
1959
|
spawn: u,
|
|
1960
1960
|
event: a,
|
|
1961
1961
|
self: c
|
|
@@ -1970,8 +1970,8 @@ class Jt {
|
|
|
1970
1970
|
* `ActorRef`.
|
|
1971
1971
|
*/
|
|
1972
1972
|
getInitialSnapshot(t, n) {
|
|
1973
|
-
const r =
|
|
1974
|
-
target: [...
|
|
1973
|
+
const r = Yr(n), o = [], s = this.getPreInitialState(t, r, o), i = Ct([{
|
|
1974
|
+
target: [...oo(this.root)],
|
|
1975
1975
|
source: this.root,
|
|
1976
1976
|
reenter: !0,
|
|
1977
1977
|
actions: [],
|
|
@@ -1989,7 +1989,7 @@ class Jt {
|
|
|
1989
1989
|
});
|
|
1990
1990
|
}
|
|
1991
1991
|
getStateNodeById(t) {
|
|
1992
|
-
const n =
|
|
1992
|
+
const n = Ft(t), r = n.slice(1), o = at(n[0]) ? n[0].slice(Ci.length) : n[0], s = this.idMap.get(o);
|
|
1993
1993
|
if (!s)
|
|
1994
1994
|
throw new Error(`Child state node '#${o}' does not exist on machine '${this.id}'`);
|
|
1995
1995
|
return rt(s, r);
|
|
@@ -2001,12 +2001,12 @@ class Jt {
|
|
|
2001
2001
|
return this.definition;
|
|
2002
2002
|
}
|
|
2003
2003
|
getPersistedSnapshot(t, n) {
|
|
2004
|
-
return
|
|
2004
|
+
return yi(t, n);
|
|
2005
2005
|
}
|
|
2006
2006
|
restoreSnapshot(t, n) {
|
|
2007
2007
|
const r = {}, o = t.children;
|
|
2008
2008
|
Object.keys(o).forEach((l) => {
|
|
2009
|
-
const f = o[l], d = f.snapshot, h = f.src, m = typeof h == "string" ?
|
|
2009
|
+
const f = o[l], d = f.snapshot, h = f.src, m = typeof h == "string" ? jt(this, h) : h;
|
|
2010
2010
|
if (!m)
|
|
2011
2011
|
return;
|
|
2012
2012
|
const g = $e(m, {
|
|
@@ -2052,7 +2052,7 @@ class Jt {
|
|
|
2052
2052
|
for (const d in l) {
|
|
2053
2053
|
const h = l[d];
|
|
2054
2054
|
if (h && typeof h == "object") {
|
|
2055
|
-
if ("xstate$$type" in h && h.xstate$$type ===
|
|
2055
|
+
if ("xstate$$type" in h && h.xstate$$type === Ht) {
|
|
2056
2056
|
l[d] = f[h.id];
|
|
2057
2057
|
continue;
|
|
2058
2058
|
}
|
|
@@ -2064,21 +2064,14 @@ class Jt {
|
|
|
2064
2064
|
return p(a.context, r), a;
|
|
2065
2065
|
}
|
|
2066
2066
|
}
|
|
2067
|
-
function
|
|
2068
|
-
return new
|
|
2069
|
-
}
|
|
2070
|
-
function kt(e) {
|
|
2071
|
-
this.message = e || "";
|
|
2067
|
+
function ki(e, t) {
|
|
2068
|
+
return new qt(e, t);
|
|
2072
2069
|
}
|
|
2073
|
-
|
|
2074
|
-
constructor
|
|
2075
|
-
|
|
2076
|
-
stack: {
|
|
2077
|
-
get: function() {
|
|
2078
|
-
return new Error().stack;
|
|
2079
|
-
}
|
|
2070
|
+
class Di extends Error {
|
|
2071
|
+
constructor(t = "") {
|
|
2072
|
+
super(t), this.name = "NotImplemented";
|
|
2080
2073
|
}
|
|
2081
|
-
}
|
|
2074
|
+
}
|
|
2082
2075
|
class Ne {
|
|
2083
2076
|
/**
|
|
2084
2077
|
* The root Stonecrop instance
|
|
@@ -2157,7 +2150,7 @@ class Ne {
|
|
|
2157
2150
|
*/
|
|
2158
2151
|
async getMeta(t) {
|
|
2159
2152
|
if (!this.registry.getMeta)
|
|
2160
|
-
throw new
|
|
2153
|
+
throw new Di(`getMeta function is not implemented for ${t} in the registry`);
|
|
2161
2154
|
return await this.registry.getMeta(t);
|
|
2162
2155
|
}
|
|
2163
2156
|
/**
|
|
@@ -2225,28 +2218,28 @@ class Ne {
|
|
|
2225
2218
|
runAction(t, n, r) {
|
|
2226
2219
|
const o = this.registry.registry[t.slug], s = o.actions?.get(n), i = o.workflow;
|
|
2227
2220
|
if (i) {
|
|
2228
|
-
const u =
|
|
2221
|
+
const u = ki(i), a = $e(u);
|
|
2229
2222
|
a.start(), a.send({ type: n, id: r }), s && s.length > 0 && s.forEach((c) => {
|
|
2230
2223
|
new Function(c)(r);
|
|
2231
2224
|
});
|
|
2232
2225
|
}
|
|
2233
2226
|
}
|
|
2234
2227
|
}
|
|
2235
|
-
var xi = Object.create,
|
|
2236
|
-
return e && (t = (0, e[
|
|
2228
|
+
var xi = Object.create, lo = Object.defineProperty, Pi = Object.getOwnPropertyDescriptor, Jt = Object.getOwnPropertyNames, Ri = Object.getPrototypeOf, Ni = Object.prototype.hasOwnProperty, Vi = (e, t) => function() {
|
|
2229
|
+
return e && (t = (0, e[Jt(e)[0]])(e = 0)), t;
|
|
2237
2230
|
}, Li = (e, t) => function() {
|
|
2238
|
-
return t || (0, e[
|
|
2231
|
+
return t || (0, e[Jt(e)[0]])((t = { exports: {} }).exports, t), t.exports;
|
|
2239
2232
|
}, Mi = (e, t, n, r) => {
|
|
2240
2233
|
if (t && typeof t == "object" || typeof t == "function")
|
|
2241
|
-
for (let o of
|
|
2242
|
-
!Ni.call(e, o) && o !== n &&
|
|
2234
|
+
for (let o of Jt(t))
|
|
2235
|
+
!Ni.call(e, o) && o !== n && lo(e, o, { get: () => t[o], enumerable: !(r = Pi(t, o)) || r.enumerable });
|
|
2243
2236
|
return e;
|
|
2244
2237
|
}, Bi = (e, t, n) => (n = e != null ? xi(Ri(e)) : {}, Mi(
|
|
2245
2238
|
// If the importer is in node compatibility mode or this is not an ESM
|
|
2246
2239
|
// file that has been converted to a CommonJS file using a Babel-
|
|
2247
2240
|
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
2248
2241
|
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
2249
|
-
|
|
2242
|
+
lo(n, "default", { value: e, enumerable: !0 }),
|
|
2250
2243
|
e
|
|
2251
2244
|
)), Ge = Vi({
|
|
2252
2245
|
"../../node_modules/.pnpm/tsup@8.4.0_@microsoft+api-extractor@7.51.1_@types+node@22.13.14__jiti@2.4.2_postcss@8.5_96eb05a9d65343021e53791dd83f3773/node_modules/tsup/assets/esm_shims.js"() {
|
|
@@ -2374,11 +2367,11 @@ var xi = Object.create, fo = Object.defineProperty, Pi = Object.getOwnPropertyDe
|
|
|
2374
2367
|
Ge();
|
|
2375
2368
|
Ge();
|
|
2376
2369
|
Ge();
|
|
2377
|
-
var
|
|
2370
|
+
var fo = typeof navigator < "u", v = typeof window < "u" ? window : typeof globalThis < "u" ? globalThis : typeof global < "u" ? global : {};
|
|
2378
2371
|
typeof v.chrome < "u" && v.chrome.devtools;
|
|
2379
|
-
|
|
2380
|
-
var
|
|
2381
|
-
typeof navigator < "u" && ((
|
|
2372
|
+
fo && (v.self, v.top);
|
|
2373
|
+
var In;
|
|
2374
|
+
typeof navigator < "u" && ((In = navigator.userAgent) == null || In.toLowerCase().includes("electron"));
|
|
2382
2375
|
Ge();
|
|
2383
2376
|
var Ui = Bi($i()), Fi = /(?:^|[-_/])(\w)/g;
|
|
2384
2377
|
function ji(e, t) {
|
|
@@ -2396,7 +2389,7 @@ function zi(e, t) {
|
|
|
2396
2389
|
return o.substring(0, s);
|
|
2397
2390
|
}
|
|
2398
2391
|
}
|
|
2399
|
-
var
|
|
2392
|
+
var Cn = (0, Ui.default)({ circles: !0 });
|
|
2400
2393
|
const Ki = {
|
|
2401
2394
|
trailing: !0
|
|
2402
2395
|
};
|
|
@@ -2426,23 +2419,23 @@ function we(e, t = 25, n = {}) {
|
|
|
2426
2419
|
async function Gi(e, t, n) {
|
|
2427
2420
|
return await e.apply(t, n);
|
|
2428
2421
|
}
|
|
2429
|
-
function
|
|
2422
|
+
function kt(e, t = {}, n) {
|
|
2430
2423
|
for (const r in e) {
|
|
2431
2424
|
const o = e[r], s = n ? `${n}:${r}` : r;
|
|
2432
|
-
typeof o == "object" && o !== null ?
|
|
2425
|
+
typeof o == "object" && o !== null ? kt(o, t, s) : typeof o == "function" && (t[s] = o);
|
|
2433
2426
|
}
|
|
2434
2427
|
return t;
|
|
2435
2428
|
}
|
|
2436
|
-
const Wi = { run: (e) => e() }, Yi = () => Wi,
|
|
2429
|
+
const Wi = { run: (e) => e() }, Yi = () => Wi, ho = typeof console.createTask < "u" ? console.createTask : Yi;
|
|
2437
2430
|
function qi(e, t) {
|
|
2438
|
-
const n = t.shift(), r =
|
|
2431
|
+
const n = t.shift(), r = ho(n);
|
|
2439
2432
|
return e.reduce(
|
|
2440
2433
|
(o, s) => o.then(() => r.run(() => s(...t))),
|
|
2441
2434
|
Promise.resolve()
|
|
2442
2435
|
);
|
|
2443
2436
|
}
|
|
2444
2437
|
function Ji(e, t) {
|
|
2445
|
-
const n = t.shift(), r =
|
|
2438
|
+
const n = t.shift(), r = ho(n);
|
|
2446
2439
|
return Promise.all(e.map((o) => r.run(() => o(...t))));
|
|
2447
2440
|
}
|
|
2448
2441
|
function Et(e, t) {
|
|
@@ -2500,7 +2493,7 @@ class Xi {
|
|
|
2500
2493
|
this.deprecateHook(n, t[n]);
|
|
2501
2494
|
}
|
|
2502
2495
|
addHooks(t) {
|
|
2503
|
-
const n =
|
|
2496
|
+
const n = kt(t), r = Object.keys(n).map(
|
|
2504
2497
|
(o) => this.hook(o, n[o])
|
|
2505
2498
|
);
|
|
2506
2499
|
return () => {
|
|
@@ -2509,7 +2502,7 @@ class Xi {
|
|
|
2509
2502
|
};
|
|
2510
2503
|
}
|
|
2511
2504
|
removeHooks(t) {
|
|
2512
|
-
const n =
|
|
2505
|
+
const n = kt(t);
|
|
2513
2506
|
for (const r in n)
|
|
2514
2507
|
this.removeHook(r, n[r]);
|
|
2515
2508
|
}
|
|
@@ -2551,29 +2544,29 @@ class Xi {
|
|
|
2551
2544
|
};
|
|
2552
2545
|
}
|
|
2553
2546
|
}
|
|
2554
|
-
function
|
|
2547
|
+
function po() {
|
|
2555
2548
|
return new Xi();
|
|
2556
2549
|
}
|
|
2557
|
-
var Zi = Object.create,
|
|
2558
|
-
return e && (t = (0, e[
|
|
2559
|
-
},
|
|
2560
|
-
return t || (0, e[
|
|
2550
|
+
var Zi = Object.create, _o = Object.defineProperty, Qi = Object.getOwnPropertyDescriptor, Xt = Object.getOwnPropertyNames, eu = Object.getPrototypeOf, tu = Object.prototype.hasOwnProperty, nu = (e, t) => function() {
|
|
2551
|
+
return e && (t = (0, e[Xt(e)[0]])(e = 0)), t;
|
|
2552
|
+
}, go = (e, t) => function() {
|
|
2553
|
+
return t || (0, e[Xt(e)[0]])((t = { exports: {} }).exports, t), t.exports;
|
|
2561
2554
|
}, ru = (e, t, n, r) => {
|
|
2562
2555
|
if (t && typeof t == "object" || typeof t == "function")
|
|
2563
|
-
for (let o of
|
|
2564
|
-
!tu.call(e, o) && o !== n &&
|
|
2556
|
+
for (let o of Xt(t))
|
|
2557
|
+
!tu.call(e, o) && o !== n && _o(e, o, { get: () => t[o], enumerable: !(r = Qi(t, o)) || r.enumerable });
|
|
2565
2558
|
return e;
|
|
2566
2559
|
}, ou = (e, t, n) => (n = e != null ? Zi(eu(e)) : {}, ru(
|
|
2567
2560
|
// If the importer is in node compatibility mode or this is not an ESM
|
|
2568
2561
|
// file that has been converted to a CommonJS file using a Babel-
|
|
2569
2562
|
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
2570
2563
|
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
2571
|
-
|
|
2564
|
+
_o(n, "default", { value: e, enumerable: !0 }),
|
|
2572
2565
|
e
|
|
2573
2566
|
)), _ = nu({
|
|
2574
2567
|
"../../node_modules/.pnpm/tsup@8.4.0_@microsoft+api-extractor@7.51.1_@types+node@22.13.14__jiti@2.4.2_postcss@8.5_96eb05a9d65343021e53791dd83f3773/node_modules/tsup/assets/esm_shims.js"() {
|
|
2575
2568
|
}
|
|
2576
|
-
}), su =
|
|
2569
|
+
}), su = go({
|
|
2577
2570
|
"../../node_modules/.pnpm/speakingurl@14.0.1/node_modules/speakingurl/lib/speakingurl.js"(e, t) {
|
|
2578
2571
|
_(), (function(n) {
|
|
2579
2572
|
var r = {
|
|
@@ -3927,8 +3920,8 @@ var Zi = Object.create, go = Object.defineProperty, Qi = Object.getOwnPropertyDe
|
|
|
3927
3920
|
}
|
|
3928
3921
|
for (X += w, X = d(X), g = g.replace(/(^\s+|\s+$)/g, ""), C = !1, he = !1, F = 0, z = g.length; F < z; F++)
|
|
3929
3922
|
A = g[F], h(A, B) ? C = !1 : $[A] ? (A = C && $[A].match(/[A-Za-z0-9]/) ? " " + $[A] : $[A], C = !1) : A in r ? (F + 1 < z && o.indexOf(g[F + 1]) >= 0 ? (N += A, A = "") : he === !0 ? (A = s[N] + r[A], N = "") : A = C && r[A].match(/[A-Za-z0-9]/) ? " " + r[A] : r[A], C = !1, he = !1) : A in s ? (N += A, A = "", F === z - 1 && (A = s[N]), he = !0) : /* process symbol chars */ D[A] && !(S && a.indexOf(A) !== -1) && !(y && c.indexOf(A) !== -1) ? (A = C || O.substr(-1).match(/[A-Za-z0-9]/) ? w + D[A] : D[A], A += g[F + 1] !== void 0 && g[F + 1].match(/[A-Za-z0-9]/) ? w : "", C = !0) : (he === !0 ? (A = s[N] + A, N = "", he = !1) : C && (/[A-Za-z0-9]/.test(A) || O.substr(-1).match(/A-Za-z0-9]/)) && (A = " " + A), C = !1), O += A.replace(new RegExp("[^\\w\\s" + X + "_-]", "g"), w);
|
|
3930
|
-
return ke && (O = O.replace(/(\w)(\S*)/g, function(j, De,
|
|
3931
|
-
var ht = De.toUpperCase() + (
|
|
3923
|
+
return ke && (O = O.replace(/(\w)(\S*)/g, function(j, De, _n) {
|
|
3924
|
+
var ht = De.toUpperCase() + (_n !== null ? _n : "");
|
|
3932
3925
|
return Object.keys(B).indexOf(ht.toLowerCase()) < 0 ? ht : ht.toLowerCase();
|
|
3933
3926
|
})), O = O.replace(/\s+/g, w).replace(new RegExp("\\" + w + "+", "g"), w).replace(new RegExp("(^\\" + w + "+|\\" + w + "+$)", "g"), ""), V && O.length > V && (de = O.charAt(V) === w, O = O.slice(0, V), de || (O = O.slice(0, O.lastIndexOf(w)))), !b && !ke && (O = O.toLowerCase()), O;
|
|
3934
3927
|
}, f = function(g) {
|
|
@@ -3957,7 +3950,7 @@ var Zi = Object.create, go = Object.defineProperty, Qi = Object.getOwnPropertyDe
|
|
|
3957
3950
|
}
|
|
3958
3951
|
})(e);
|
|
3959
3952
|
}
|
|
3960
|
-
}), iu =
|
|
3953
|
+
}), iu = go({
|
|
3961
3954
|
"../../node_modules/.pnpm/speakingurl@14.0.1/node_modules/speakingurl/index.js"(e, t) {
|
|
3962
3955
|
_(), t.exports = su();
|
|
3963
3956
|
}
|
|
@@ -3980,18 +3973,18 @@ function au(e) {
|
|
|
3980
3973
|
if (t)
|
|
3981
3974
|
return Hi(zi(t, ".vue"));
|
|
3982
3975
|
}
|
|
3983
|
-
function
|
|
3976
|
+
function kn(e, t) {
|
|
3984
3977
|
return e.type.__VUE_DEVTOOLS_COMPONENT_GUSSED_NAME__ = t, t;
|
|
3985
3978
|
}
|
|
3986
|
-
function
|
|
3979
|
+
function Zt(e) {
|
|
3987
3980
|
if (e.__VUE_DEVTOOLS_NEXT_APP_RECORD__)
|
|
3988
3981
|
return e.__VUE_DEVTOOLS_NEXT_APP_RECORD__;
|
|
3989
3982
|
if (e.root)
|
|
3990
3983
|
return e.appContext.app.__VUE_DEVTOOLS_NEXT_APP_RECORD__;
|
|
3991
3984
|
}
|
|
3992
|
-
function
|
|
3985
|
+
function mo(e) {
|
|
3993
3986
|
var t, n;
|
|
3994
|
-
const r = (t = e.subTree) == null ? void 0 : t.type, o =
|
|
3987
|
+
const r = (t = e.subTree) == null ? void 0 : t.type, o = Zt(e);
|
|
3995
3988
|
return o ? ((n = o?.types) == null ? void 0 : n.Fragment) === r : !1;
|
|
3996
3989
|
}
|
|
3997
3990
|
function ct(e) {
|
|
@@ -4003,10 +3996,10 @@ function ct(e) {
|
|
|
4003
3996
|
return "Root";
|
|
4004
3997
|
for (const i in (n = (t = e.parent) == null ? void 0 : t.type) == null ? void 0 : n.components)
|
|
4005
3998
|
if (e.parent.type.components[i] === e?.type)
|
|
4006
|
-
return
|
|
3999
|
+
return kn(e, i);
|
|
4007
4000
|
for (const i in (r = e.appContext) == null ? void 0 : r.components)
|
|
4008
4001
|
if (e.appContext.components[i] === e?.type)
|
|
4009
|
-
return
|
|
4002
|
+
return kn(e, i);
|
|
4010
4003
|
const s = au(e?.type || {});
|
|
4011
4004
|
return s || "Anonymous Component";
|
|
4012
4005
|
}
|
|
@@ -4015,7 +4008,7 @@ function cu(e) {
|
|
|
4015
4008
|
const o = (r = (n = (t = e?.appContext) == null ? void 0 : t.app) == null ? void 0 : n.__VUE_DEVTOOLS_NEXT_APP_RECORD_ID__) != null ? r : 0, s = e === e?.root ? "root" : e.uid;
|
|
4016
4009
|
return `${o}:${s}`;
|
|
4017
4010
|
}
|
|
4018
|
-
function
|
|
4011
|
+
function Dt(e, t) {
|
|
4019
4012
|
return t = t || `${e.id}:root`, e.instanceMap.get(t) || e.instanceMap.get(":root");
|
|
4020
4013
|
}
|
|
4021
4014
|
function lu() {
|
|
@@ -4057,7 +4050,7 @@ function du(e) {
|
|
|
4057
4050
|
function hu(e, t) {
|
|
4058
4051
|
return (!e.top || t.top < e.top) && (e.top = t.top), (!e.bottom || t.bottom > e.bottom) && (e.bottom = t.bottom), (!e.left || t.left < e.left) && (e.left = t.left), (!e.right || t.right > e.right) && (e.right = t.right), e;
|
|
4059
4052
|
}
|
|
4060
|
-
var
|
|
4053
|
+
var Dn = {
|
|
4061
4054
|
top: 0,
|
|
4062
4055
|
left: 0,
|
|
4063
4056
|
right: 0,
|
|
@@ -4067,21 +4060,21 @@ var xn = {
|
|
|
4067
4060
|
};
|
|
4068
4061
|
function le(e) {
|
|
4069
4062
|
const t = e.subTree.el;
|
|
4070
|
-
return typeof window > "u" ?
|
|
4063
|
+
return typeof window > "u" ? Dn : mo(e) ? du(e.subTree) : t?.nodeType === 1 ? t?.getBoundingClientRect() : e.subTree.component ? le(e.subTree.component) : Dn;
|
|
4071
4064
|
}
|
|
4072
4065
|
_();
|
|
4073
|
-
function
|
|
4074
|
-
return
|
|
4066
|
+
function Qt(e) {
|
|
4067
|
+
return mo(e) ? pu(e.subTree) : e.subTree ? [e.subTree.el] : [];
|
|
4075
4068
|
}
|
|
4076
4069
|
function pu(e) {
|
|
4077
4070
|
if (!e.children)
|
|
4078
4071
|
return [];
|
|
4079
4072
|
const t = [];
|
|
4080
4073
|
return e.children.forEach((n) => {
|
|
4081
|
-
n.component ? t.push(...
|
|
4074
|
+
n.component ? t.push(...Qt(n.component)) : n?.el && t.push(n.el);
|
|
4082
4075
|
}), t;
|
|
4083
4076
|
}
|
|
4084
|
-
var
|
|
4077
|
+
var Eo = "__vue-devtools-component-inspector__", vo = "__vue-devtools-component-inspector__card__", yo = "__vue-devtools-component-inspector__name__", So = "__vue-devtools-component-inspector__indicator__", bo = {
|
|
4085
4078
|
display: "block",
|
|
4086
4079
|
zIndex: 2147483640,
|
|
4087
4080
|
position: "fixed",
|
|
@@ -4111,18 +4104,18 @@ var vo = "__vue-devtools-component-inspector__", yo = "__vue-devtools-component-
|
|
|
4111
4104
|
opacity: 0.7
|
|
4112
4105
|
};
|
|
4113
4106
|
function Ie() {
|
|
4114
|
-
return document.getElementById(
|
|
4107
|
+
return document.getElementById(Eo);
|
|
4115
4108
|
}
|
|
4116
4109
|
function mu() {
|
|
4117
|
-
return document.getElementById(
|
|
4110
|
+
return document.getElementById(vo);
|
|
4118
4111
|
}
|
|
4119
4112
|
function Eu() {
|
|
4120
|
-
return document.getElementById(
|
|
4113
|
+
return document.getElementById(So);
|
|
4121
4114
|
}
|
|
4122
4115
|
function vu() {
|
|
4123
|
-
return document.getElementById(
|
|
4116
|
+
return document.getElementById(yo);
|
|
4124
4117
|
}
|
|
4125
|
-
function
|
|
4118
|
+
function en(e) {
|
|
4126
4119
|
return {
|
|
4127
4120
|
left: `${Math.round(e.left * 100) / 100}px`,
|
|
4128
4121
|
top: `${Math.round(e.top * 100) / 100}px`,
|
|
@@ -4130,29 +4123,29 @@ function tn(e) {
|
|
|
4130
4123
|
height: `${Math.round(e.height * 100) / 100}px`
|
|
4131
4124
|
};
|
|
4132
4125
|
}
|
|
4133
|
-
function
|
|
4126
|
+
function tn(e) {
|
|
4134
4127
|
var t;
|
|
4135
4128
|
const n = document.createElement("div");
|
|
4136
|
-
n.id = (t = e.elementId) != null ? t :
|
|
4137
|
-
...
|
|
4138
|
-
...
|
|
4129
|
+
n.id = (t = e.elementId) != null ? t : Eo, Object.assign(n.style, {
|
|
4130
|
+
...bo,
|
|
4131
|
+
...en(e.bounds),
|
|
4139
4132
|
...e.style
|
|
4140
4133
|
});
|
|
4141
4134
|
const r = document.createElement("span");
|
|
4142
|
-
r.id =
|
|
4135
|
+
r.id = vo, Object.assign(r.style, {
|
|
4143
4136
|
..._u,
|
|
4144
4137
|
top: e.bounds.top < 35 ? 0 : "-35px"
|
|
4145
4138
|
});
|
|
4146
4139
|
const o = document.createElement("span");
|
|
4147
|
-
o.id =
|
|
4140
|
+
o.id = yo, o.innerHTML = `<${e.name}> `;
|
|
4148
4141
|
const s = document.createElement("i");
|
|
4149
|
-
return s.id =
|
|
4142
|
+
return s.id = So, s.innerHTML = `${Math.round(e.bounds.width * 100) / 100} x ${Math.round(e.bounds.height * 100) / 100}`, Object.assign(s.style, gu), r.appendChild(o), r.appendChild(s), n.appendChild(r), document.body.appendChild(n), n;
|
|
4150
4143
|
}
|
|
4151
|
-
function
|
|
4144
|
+
function nn(e) {
|
|
4152
4145
|
const t = Ie(), n = mu(), r = vu(), o = Eu();
|
|
4153
4146
|
t && (Object.assign(t.style, {
|
|
4154
|
-
...
|
|
4155
|
-
...
|
|
4147
|
+
...bo,
|
|
4148
|
+
...en(e.bounds)
|
|
4156
4149
|
}), Object.assign(n.style, {
|
|
4157
4150
|
top: e.bounds.top < 35 ? 0 : "-35px"
|
|
4158
4151
|
}), r.innerHTML = `<${e.name}> `, o.innerHTML = `${Math.round(e.bounds.width * 100) / 100} x ${Math.round(e.bounds.height * 100) / 100}`);
|
|
@@ -4162,38 +4155,38 @@ function yu(e) {
|
|
|
4162
4155
|
if (!t.width && !t.height)
|
|
4163
4156
|
return;
|
|
4164
4157
|
const n = ct(e);
|
|
4165
|
-
Ie() ?
|
|
4158
|
+
Ie() ? nn({ bounds: t, name: n }) : tn({ bounds: t, name: n });
|
|
4166
4159
|
}
|
|
4167
|
-
function
|
|
4160
|
+
function Ao() {
|
|
4168
4161
|
const e = Ie();
|
|
4169
4162
|
e && (e.style.display = "none");
|
|
4170
4163
|
}
|
|
4171
|
-
var
|
|
4172
|
-
function
|
|
4164
|
+
var xt = null;
|
|
4165
|
+
function Pt(e) {
|
|
4173
4166
|
const t = e.target;
|
|
4174
4167
|
if (t) {
|
|
4175
4168
|
const n = t.__vueParentComponent;
|
|
4176
|
-
if (n && (
|
|
4169
|
+
if (n && (xt = n, n.vnode.el)) {
|
|
4177
4170
|
const o = le(n), s = ct(n);
|
|
4178
|
-
Ie() ?
|
|
4171
|
+
Ie() ? nn({ bounds: o, name: s }) : tn({ bounds: o, name: s });
|
|
4179
4172
|
}
|
|
4180
4173
|
}
|
|
4181
4174
|
}
|
|
4182
4175
|
function Su(e, t) {
|
|
4183
|
-
if (e.preventDefault(), e.stopPropagation(),
|
|
4184
|
-
const n = cu(
|
|
4176
|
+
if (e.preventDefault(), e.stopPropagation(), xt) {
|
|
4177
|
+
const n = cu(xt);
|
|
4185
4178
|
t(n);
|
|
4186
4179
|
}
|
|
4187
4180
|
}
|
|
4188
4181
|
var it = null;
|
|
4189
4182
|
function bu() {
|
|
4190
|
-
|
|
4183
|
+
Ao(), window.removeEventListener("mouseover", Pt), window.removeEventListener("click", it, !0), it = null;
|
|
4191
4184
|
}
|
|
4192
4185
|
function Au() {
|
|
4193
|
-
return window.addEventListener("mouseover",
|
|
4186
|
+
return window.addEventListener("mouseover", Pt), new Promise((e) => {
|
|
4194
4187
|
function t(n) {
|
|
4195
4188
|
n.preventDefault(), n.stopPropagation(), Su(n, (r) => {
|
|
4196
|
-
window.removeEventListener("click", t, !0), it = null, window.removeEventListener("mouseover",
|
|
4189
|
+
window.removeEventListener("click", t, !0), it = null, window.removeEventListener("mouseover", Pt);
|
|
4197
4190
|
const o = Ie();
|
|
4198
4191
|
o && (o.style.display = "none"), e(JSON.stringify({ id: r }));
|
|
4199
4192
|
});
|
|
@@ -4202,16 +4195,16 @@ function Au() {
|
|
|
4202
4195
|
});
|
|
4203
4196
|
}
|
|
4204
4197
|
function wu(e) {
|
|
4205
|
-
const t =
|
|
4198
|
+
const t = Dt(R.value, e.id);
|
|
4206
4199
|
if (t) {
|
|
4207
|
-
const [n] =
|
|
4200
|
+
const [n] = Qt(t);
|
|
4208
4201
|
if (typeof n.scrollIntoView == "function")
|
|
4209
4202
|
n.scrollIntoView({
|
|
4210
4203
|
behavior: "smooth"
|
|
4211
4204
|
});
|
|
4212
4205
|
else {
|
|
4213
4206
|
const r = le(t), o = document.createElement("div"), s = {
|
|
4214
|
-
...
|
|
4207
|
+
...en(r),
|
|
4215
4208
|
position: "absolute"
|
|
4216
4209
|
};
|
|
4217
4210
|
Object.assign(o.style, s), document.body.appendChild(o), o.scrollIntoView({
|
|
@@ -4224,7 +4217,7 @@ function wu(e) {
|
|
|
4224
4217
|
const r = le(t);
|
|
4225
4218
|
if (r.width || r.height) {
|
|
4226
4219
|
const o = ct(t), s = Ie();
|
|
4227
|
-
s ?
|
|
4220
|
+
s ? nn({ ...e, name: o, bounds: r }) : tn({ ...e, name: o, bounds: r }), setTimeout(() => {
|
|
4228
4221
|
s && (s.style.display = "none");
|
|
4229
4222
|
}, 1500);
|
|
4230
4223
|
}
|
|
@@ -4232,8 +4225,8 @@ function wu(e) {
|
|
|
4232
4225
|
}
|
|
4233
4226
|
}
|
|
4234
4227
|
_();
|
|
4235
|
-
var
|
|
4236
|
-
(
|
|
4228
|
+
var xn, Pn;
|
|
4229
|
+
(Pn = (xn = v).__VUE_DEVTOOLS_COMPONENT_INSPECTOR_ENABLED__) != null || (xn.__VUE_DEVTOOLS_COMPONENT_INSPECTOR_ENABLED__ = !0);
|
|
4237
4230
|
function Ou(e) {
|
|
4238
4231
|
let t = 0;
|
|
4239
4232
|
const n = setInterval(() => {
|
|
@@ -4262,8 +4255,8 @@ _();
|
|
|
4262
4255
|
function Cu(e) {
|
|
4263
4256
|
return !!(e && e.__v_isReadonly);
|
|
4264
4257
|
}
|
|
4265
|
-
function
|
|
4266
|
-
return Cu(e) ?
|
|
4258
|
+
function wo(e) {
|
|
4259
|
+
return Cu(e) ? wo(e.__v_raw) : !!(e && e.__v_isReactive);
|
|
4267
4260
|
}
|
|
4268
4261
|
function vt(e) {
|
|
4269
4262
|
return !!(e && e.__v_isRef === !0);
|
|
@@ -4337,7 +4330,7 @@ var ku = class {
|
|
|
4337
4330
|
return vt(e) ? e.value : e;
|
|
4338
4331
|
}
|
|
4339
4332
|
isRef(e) {
|
|
4340
|
-
return vt(e) ||
|
|
4333
|
+
return vt(e) || wo(e);
|
|
4341
4334
|
}
|
|
4342
4335
|
};
|
|
4343
4336
|
_();
|
|
@@ -4345,7 +4338,7 @@ _();
|
|
|
4345
4338
|
_();
|
|
4346
4339
|
var xu = "__VUE_DEVTOOLS_KIT_TIMELINE_LAYERS_STATE__";
|
|
4347
4340
|
function Pu() {
|
|
4348
|
-
if (!
|
|
4341
|
+
if (!fo || typeof localStorage > "u" || localStorage === null)
|
|
4349
4342
|
return {
|
|
4350
4343
|
recordingState: !1,
|
|
4351
4344
|
mouseEventEnabled: !1,
|
|
@@ -4367,8 +4360,8 @@ function Pu() {
|
|
|
4367
4360
|
_();
|
|
4368
4361
|
_();
|
|
4369
4362
|
_();
|
|
4370
|
-
var
|
|
4371
|
-
(
|
|
4363
|
+
var Rn, Nn;
|
|
4364
|
+
(Nn = (Rn = v).__VUE_DEVTOOLS_KIT_TIMELINE_LAYERS) != null || (Rn.__VUE_DEVTOOLS_KIT_TIMELINE_LAYERS = []);
|
|
4372
4365
|
var Ru = new Proxy(v.__VUE_DEVTOOLS_KIT_TIMELINE_LAYERS, {
|
|
4373
4366
|
get(e, t, n) {
|
|
4374
4367
|
return Reflect.get(e, t, n);
|
|
@@ -4378,32 +4371,32 @@ function Nu(e, t) {
|
|
|
4378
4371
|
k.timelineLayersState[t.id] = !1, Ru.push({
|
|
4379
4372
|
...e,
|
|
4380
4373
|
descriptorId: t.id,
|
|
4381
|
-
appRecord:
|
|
4374
|
+
appRecord: Zt(t.app)
|
|
4382
4375
|
});
|
|
4383
4376
|
}
|
|
4384
|
-
var
|
|
4385
|
-
(
|
|
4386
|
-
var
|
|
4377
|
+
var Vn, Ln;
|
|
4378
|
+
(Ln = (Vn = v).__VUE_DEVTOOLS_KIT_INSPECTOR__) != null || (Vn.__VUE_DEVTOOLS_KIT_INSPECTOR__ = []);
|
|
4379
|
+
var rn = new Proxy(v.__VUE_DEVTOOLS_KIT_INSPECTOR__, {
|
|
4387
4380
|
get(e, t, n) {
|
|
4388
4381
|
return Reflect.get(e, t, n);
|
|
4389
4382
|
}
|
|
4390
|
-
}),
|
|
4391
|
-
Ce.hooks.callHook("sendInspectorToClient",
|
|
4383
|
+
}), Oo = we(() => {
|
|
4384
|
+
Ce.hooks.callHook("sendInspectorToClient", To());
|
|
4392
4385
|
});
|
|
4393
4386
|
function Vu(e, t) {
|
|
4394
4387
|
var n, r;
|
|
4395
|
-
|
|
4388
|
+
rn.push({
|
|
4396
4389
|
options: e,
|
|
4397
4390
|
descriptor: t,
|
|
4398
4391
|
treeFilterPlaceholder: (n = e.treeFilterPlaceholder) != null ? n : "Search tree...",
|
|
4399
4392
|
stateFilterPlaceholder: (r = e.stateFilterPlaceholder) != null ? r : "Search state...",
|
|
4400
4393
|
treeFilter: "",
|
|
4401
4394
|
selectedNodeId: "",
|
|
4402
|
-
appRecord:
|
|
4403
|
-
}),
|
|
4395
|
+
appRecord: Zt(t.app)
|
|
4396
|
+
}), Oo();
|
|
4404
4397
|
}
|
|
4405
|
-
function
|
|
4406
|
-
return
|
|
4398
|
+
function To() {
|
|
4399
|
+
return rn.filter((e) => e.descriptor.app === R.value.app).filter((e) => e.descriptor.id !== "components").map((e) => {
|
|
4407
4400
|
var t;
|
|
4408
4401
|
const n = e.descriptor, r = e.options;
|
|
4409
4402
|
return {
|
|
@@ -4418,10 +4411,10 @@ function Io() {
|
|
|
4418
4411
|
});
|
|
4419
4412
|
}
|
|
4420
4413
|
function Je(e, t) {
|
|
4421
|
-
return
|
|
4414
|
+
return rn.find((n) => n.options.id === e && (t ? n.descriptor.app === t : !0));
|
|
4422
4415
|
}
|
|
4423
4416
|
function Lu() {
|
|
4424
|
-
const e =
|
|
4417
|
+
const e = po();
|
|
4425
4418
|
e.hook("addInspector", ({ inspector: r, plugin: o }) => {
|
|
4426
4419
|
Vu(r, o.descriptor);
|
|
4427
4420
|
});
|
|
@@ -4512,19 +4505,19 @@ function Lu() {
|
|
|
4512
4505
|
const o = R.value.instanceMap.get(r);
|
|
4513
4506
|
o && yu(o);
|
|
4514
4507
|
}), e.hook("componentUnhighlight", () => {
|
|
4515
|
-
|
|
4508
|
+
Ao();
|
|
4516
4509
|
}), e;
|
|
4517
4510
|
}
|
|
4518
|
-
var
|
|
4519
|
-
(
|
|
4520
|
-
var
|
|
4521
|
-
(
|
|
4522
|
-
var
|
|
4523
|
-
(
|
|
4524
|
-
var
|
|
4525
|
-
(
|
|
4526
|
-
var
|
|
4527
|
-
(
|
|
4511
|
+
var Mn, Bn;
|
|
4512
|
+
(Bn = (Mn = v).__VUE_DEVTOOLS_KIT_APP_RECORDS__) != null || (Mn.__VUE_DEVTOOLS_KIT_APP_RECORDS__ = []);
|
|
4513
|
+
var $n, Un;
|
|
4514
|
+
(Un = ($n = v).__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD__) != null || ($n.__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD__ = {});
|
|
4515
|
+
var Fn, jn;
|
|
4516
|
+
(jn = (Fn = v).__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD_ID__) != null || (Fn.__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD_ID__ = "");
|
|
4517
|
+
var Hn, zn;
|
|
4518
|
+
(zn = (Hn = v).__VUE_DEVTOOLS_KIT_CUSTOM_TABS__) != null || (Hn.__VUE_DEVTOOLS_KIT_CUSTOM_TABS__ = []);
|
|
4519
|
+
var Kn, Gn;
|
|
4520
|
+
(Gn = (Kn = v).__VUE_DEVTOOLS_KIT_CUSTOM_COMMANDS__) != null || (Kn.__VUE_DEVTOOLS_KIT_CUSTOM_COMMANDS__ = []);
|
|
4528
4521
|
var ue = "__VUE_DEVTOOLS_KIT_GLOBAL_STATE__";
|
|
4529
4522
|
function Mu() {
|
|
4530
4523
|
return {
|
|
@@ -4541,8 +4534,8 @@ function Mu() {
|
|
|
4541
4534
|
timelineLayersState: Pu()
|
|
4542
4535
|
};
|
|
4543
4536
|
}
|
|
4544
|
-
var
|
|
4545
|
-
(
|
|
4537
|
+
var Wn, Yn;
|
|
4538
|
+
(Yn = (Wn = v)[ue]) != null || (Wn[ue] = Mu());
|
|
4546
4539
|
var Bu = we((e) => {
|
|
4547
4540
|
Ce.hooks.callHook("devtoolsStateUpdated", { state: e });
|
|
4548
4541
|
});
|
|
@@ -4558,7 +4551,7 @@ var lt = new Proxy(v.__VUE_DEVTOOLS_KIT_APP_RECORDS__, {
|
|
|
4558
4551
|
return t === "value" ? v.__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD__ : t === "id" ? v.__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD_ID__ : v.__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD__[t];
|
|
4559
4552
|
}
|
|
4560
4553
|
});
|
|
4561
|
-
function
|
|
4554
|
+
function Io() {
|
|
4562
4555
|
Bu({
|
|
4563
4556
|
...v[ue],
|
|
4564
4557
|
appRecords: lt.value,
|
|
@@ -4568,10 +4561,10 @@ function Co() {
|
|
|
4568
4561
|
});
|
|
4569
4562
|
}
|
|
4570
4563
|
function $u(e) {
|
|
4571
|
-
v.__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD__ = e,
|
|
4564
|
+
v.__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD__ = e, Io();
|
|
4572
4565
|
}
|
|
4573
4566
|
function Uu(e) {
|
|
4574
|
-
v.__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD_ID__ = e,
|
|
4567
|
+
v.__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD_ID__ = e, Io();
|
|
4575
4568
|
}
|
|
4576
4569
|
var k = new Proxy(v[ue], {
|
|
4577
4570
|
get(e, t) {
|
|
@@ -4607,50 +4600,50 @@ _();
|
|
|
4607
4600
|
_();
|
|
4608
4601
|
_();
|
|
4609
4602
|
_();
|
|
4610
|
-
var
|
|
4611
|
-
(
|
|
4612
|
-
var
|
|
4603
|
+
var qn, Jn;
|
|
4604
|
+
(Jn = (qn = v).__VUE_DEVTOOLS_KIT_PLUGIN_BUFFER__) != null || (qn.__VUE_DEVTOOLS_KIT_PLUGIN_BUFFER__ = []);
|
|
4605
|
+
var on = new Proxy(v.__VUE_DEVTOOLS_KIT_PLUGIN_BUFFER__, {
|
|
4613
4606
|
get(e, t, n) {
|
|
4614
4607
|
return Reflect.get(e, t, n);
|
|
4615
4608
|
}
|
|
4616
4609
|
});
|
|
4617
|
-
function
|
|
4610
|
+
function Rt(e) {
|
|
4618
4611
|
const t = {};
|
|
4619
4612
|
return Object.keys(e).forEach((n) => {
|
|
4620
4613
|
t[n] = e[n].defaultValue;
|
|
4621
4614
|
}), t;
|
|
4622
4615
|
}
|
|
4623
|
-
function
|
|
4616
|
+
function sn(e) {
|
|
4624
4617
|
return `__VUE_DEVTOOLS_NEXT_PLUGIN_SETTINGS__${e}__`;
|
|
4625
4618
|
}
|
|
4626
4619
|
function ju(e) {
|
|
4627
4620
|
var t, n, r;
|
|
4628
|
-
const o = (n = (t =
|
|
4621
|
+
const o = (n = (t = on.find((s) => {
|
|
4629
4622
|
var i;
|
|
4630
4623
|
return s[0].id === e && !!((i = s[0]) != null && i.settings);
|
|
4631
4624
|
})) == null ? void 0 : t[0]) != null ? n : null;
|
|
4632
4625
|
return (r = o?.settings) != null ? r : null;
|
|
4633
4626
|
}
|
|
4634
|
-
function
|
|
4627
|
+
function Co(e, t) {
|
|
4635
4628
|
var n, r, o;
|
|
4636
|
-
const s =
|
|
4629
|
+
const s = sn(e);
|
|
4637
4630
|
if (s) {
|
|
4638
4631
|
const i = localStorage.getItem(s);
|
|
4639
4632
|
if (i)
|
|
4640
4633
|
return JSON.parse(i);
|
|
4641
4634
|
}
|
|
4642
4635
|
if (e) {
|
|
4643
|
-
const i = (r = (n =
|
|
4644
|
-
return
|
|
4636
|
+
const i = (r = (n = on.find((u) => u[0].id === e)) == null ? void 0 : n[0]) != null ? r : null;
|
|
4637
|
+
return Rt((o = i?.settings) != null ? o : {});
|
|
4645
4638
|
}
|
|
4646
|
-
return
|
|
4639
|
+
return Rt(t);
|
|
4647
4640
|
}
|
|
4648
4641
|
function Hu(e, t) {
|
|
4649
|
-
const n =
|
|
4650
|
-
localStorage.getItem(n) || localStorage.setItem(n, JSON.stringify(
|
|
4642
|
+
const n = sn(e);
|
|
4643
|
+
localStorage.getItem(n) || localStorage.setItem(n, JSON.stringify(Rt(t)));
|
|
4651
4644
|
}
|
|
4652
4645
|
function zu(e, t, n) {
|
|
4653
|
-
const r =
|
|
4646
|
+
const r = sn(e), o = localStorage.getItem(r), s = JSON.parse(o || "{}"), i = {
|
|
4654
4647
|
...s,
|
|
4655
4648
|
[t]: n
|
|
4656
4649
|
};
|
|
@@ -4679,7 +4672,7 @@ _();
|
|
|
4679
4672
|
_();
|
|
4680
4673
|
_();
|
|
4681
4674
|
_();
|
|
4682
|
-
var
|
|
4675
|
+
var Xn, Zn, M = (Zn = (Xn = v).__VUE_DEVTOOLS_HOOK) != null ? Zn : Xn.__VUE_DEVTOOLS_HOOK = po(), Ku = {
|
|
4683
4676
|
vueAppInit(e) {
|
|
4684
4677
|
M.hook("app:init", e);
|
|
4685
4678
|
},
|
|
@@ -4710,7 +4703,7 @@ var Zn, Qn, M = (Qn = (Zn = v).__VUE_DEVTOOLS_HOOK) != null ? Qn : Zn.__VUE_DEVT
|
|
|
4710
4703
|
perfEnd(e) {
|
|
4711
4704
|
return M.hook("perf:end", e);
|
|
4712
4705
|
}
|
|
4713
|
-
},
|
|
4706
|
+
}, ko = {
|
|
4714
4707
|
on: Ku,
|
|
4715
4708
|
setupDevToolsPlugin(e, t) {
|
|
4716
4709
|
return M.callHook("devtools-plugin:setup", e, t);
|
|
@@ -4759,7 +4752,7 @@ var Zn, Qn, M = (Qn = (Zn = v).__VUE_DEVTOOLS_HOOK) != null ? Qn : Zn.__VUE_DEVT
|
|
|
4759
4752
|
var t;
|
|
4760
4753
|
if (k.highPerfModeEnabled)
|
|
4761
4754
|
return;
|
|
4762
|
-
const n =
|
|
4755
|
+
const n = To().find((r) => r.packageName === this.plugin.descriptor.packageName);
|
|
4763
4756
|
if (n?.id) {
|
|
4764
4757
|
if (e) {
|
|
4765
4758
|
const r = [
|
|
@@ -4805,7 +4798,7 @@ var Zn, Qn, M = (Qn = (Zn = v).__VUE_DEVTOOLS_HOOK) != null ? Qn : Zn.__VUE_DEVT
|
|
|
4805
4798
|
}
|
|
4806
4799
|
// settings
|
|
4807
4800
|
getSettings(e) {
|
|
4808
|
-
return
|
|
4801
|
+
return Co(e ?? this.plugin.descriptor.id, this.plugin.descriptor.settings);
|
|
4809
4802
|
}
|
|
4810
4803
|
// utilities
|
|
4811
4804
|
getComponentInstances(e) {
|
|
@@ -4847,10 +4840,10 @@ _();
|
|
|
4847
4840
|
_();
|
|
4848
4841
|
_();
|
|
4849
4842
|
_();
|
|
4850
|
-
var
|
|
4851
|
-
(
|
|
4852
|
-
function
|
|
4853
|
-
return
|
|
4843
|
+
var Qn, er;
|
|
4844
|
+
(er = (Qn = v).__VUE_DEVTOOLS_KIT__REGISTERED_PLUGIN_APPS__) != null || (Qn.__VUE_DEVTOOLS_KIT__REGISTERED_PLUGIN_APPS__ = /* @__PURE__ */ new Set());
|
|
4845
|
+
function Do(e, t) {
|
|
4846
|
+
return ko.setupDevToolsPlugin(e, t);
|
|
4854
4847
|
}
|
|
4855
4848
|
function Qu(e, t) {
|
|
4856
4849
|
const [n, r] = e;
|
|
@@ -4867,20 +4860,20 @@ function Qu(e, t) {
|
|
|
4867
4860
|
o.sendInspectorState(s.inspectorId);
|
|
4868
4861
|
}), r(o);
|
|
4869
4862
|
}
|
|
4870
|
-
function
|
|
4871
|
-
v.__VUE_DEVTOOLS_KIT__REGISTERED_PLUGIN_APPS__.has(e) || k.highPerfModeEnabled && !t?.inspectingComponent || (v.__VUE_DEVTOOLS_KIT__REGISTERED_PLUGIN_APPS__.add(e),
|
|
4863
|
+
function xo(e, t) {
|
|
4864
|
+
v.__VUE_DEVTOOLS_KIT__REGISTERED_PLUGIN_APPS__.has(e) || k.highPerfModeEnabled && !t?.inspectingComponent || (v.__VUE_DEVTOOLS_KIT__REGISTERED_PLUGIN_APPS__.add(e), on.forEach((n) => {
|
|
4872
4865
|
Qu(n, e);
|
|
4873
4866
|
}));
|
|
4874
4867
|
}
|
|
4875
4868
|
_();
|
|
4876
4869
|
_();
|
|
4877
|
-
var Ue = "__VUE_DEVTOOLS_ROUTER__", Oe = "__VUE_DEVTOOLS_ROUTER_INFO__",
|
|
4878
|
-
(
|
|
4870
|
+
var Ue = "__VUE_DEVTOOLS_ROUTER__", Oe = "__VUE_DEVTOOLS_ROUTER_INFO__", tr, nr;
|
|
4871
|
+
(nr = (tr = v)[Oe]) != null || (tr[Oe] = {
|
|
4879
4872
|
currentRoute: null,
|
|
4880
4873
|
routes: []
|
|
4881
4874
|
});
|
|
4882
|
-
var
|
|
4883
|
-
(
|
|
4875
|
+
var rr, or;
|
|
4876
|
+
(or = (rr = v)[Ue]) != null || (rr[Ue] = {});
|
|
4884
4877
|
new Proxy(v[Oe], {
|
|
4885
4878
|
get(e, t) {
|
|
4886
4879
|
return v[Oe][t];
|
|
@@ -4896,10 +4889,10 @@ function ea(e) {
|
|
|
4896
4889
|
const t = /* @__PURE__ */ new Map();
|
|
4897
4890
|
return (e?.getRoutes() || []).filter((n) => !t.has(n.path) && t.set(n.path, 1));
|
|
4898
4891
|
}
|
|
4899
|
-
function
|
|
4892
|
+
function un(e) {
|
|
4900
4893
|
return e.map((t) => {
|
|
4901
4894
|
let { path: n, name: r, children: o, meta: s } = t;
|
|
4902
|
-
return o?.length && (o =
|
|
4895
|
+
return o?.length && (o = un(o)), {
|
|
4903
4896
|
path: n,
|
|
4904
4897
|
name: r,
|
|
4905
4898
|
children: o,
|
|
@@ -4918,7 +4911,7 @@ function ta(e) {
|
|
|
4918
4911
|
name: s,
|
|
4919
4912
|
params: u,
|
|
4920
4913
|
query: a,
|
|
4921
|
-
matched:
|
|
4914
|
+
matched: un(i)
|
|
4922
4915
|
};
|
|
4923
4916
|
}
|
|
4924
4917
|
return e;
|
|
@@ -4926,14 +4919,14 @@ function ta(e) {
|
|
|
4926
4919
|
function na(e, t) {
|
|
4927
4920
|
function n() {
|
|
4928
4921
|
var r;
|
|
4929
|
-
const o = (r = e.app) == null ? void 0 : r.config.globalProperties.$router, s = ta(o?.currentRoute.value), i =
|
|
4922
|
+
const o = (r = e.app) == null ? void 0 : r.config.globalProperties.$router, s = ta(o?.currentRoute.value), i = un(ea(o)), u = console.warn;
|
|
4930
4923
|
console.warn = () => {
|
|
4931
4924
|
}, v[Oe] = {
|
|
4932
|
-
currentRoute: s ?
|
|
4933
|
-
routes:
|
|
4925
|
+
currentRoute: s ? Cn(s) : {},
|
|
4926
|
+
routes: Cn(i)
|
|
4934
4927
|
}, v[Ue] = o, console.warn = u;
|
|
4935
4928
|
}
|
|
4936
|
-
n(),
|
|
4929
|
+
n(), ko.on.componentUpdated(we(() => {
|
|
4937
4930
|
var r;
|
|
4938
4931
|
((r = t.value) == null ? void 0 : r.app) === e.app && (n(), !k.highPerfModeEnabled && Ce.hooks.callHook("routerInfoUpdated", { state: v[Oe] }));
|
|
4939
4932
|
}, 200));
|
|
@@ -5011,7 +5004,7 @@ function ra(e) {
|
|
|
5011
5004
|
},
|
|
5012
5005
|
// get component render code
|
|
5013
5006
|
getComponentRenderCode(t) {
|
|
5014
|
-
const n =
|
|
5007
|
+
const n = Dt(R.value, t);
|
|
5015
5008
|
if (n)
|
|
5016
5009
|
return typeof n?.type != "function" ? n.render.toString() : n.type.toString();
|
|
5017
5010
|
},
|
|
@@ -5026,13 +5019,13 @@ function ra(e) {
|
|
|
5026
5019
|
// toggle app
|
|
5027
5020
|
toggleApp(t, n) {
|
|
5028
5021
|
const r = lt.value.find((o) => o.id === t);
|
|
5029
|
-
r && (Uu(t), $u(r), na(r, R),
|
|
5022
|
+
r && (Uu(t), $u(r), na(r, R), Oo(), xo(r.app, n));
|
|
5030
5023
|
},
|
|
5031
5024
|
// inspect dom
|
|
5032
5025
|
inspectDOM(t) {
|
|
5033
|
-
const n =
|
|
5026
|
+
const n = Dt(R.value, t);
|
|
5034
5027
|
if (n) {
|
|
5035
|
-
const [r] =
|
|
5028
|
+
const [r] = Qt(n);
|
|
5036
5029
|
r && (v.__VUE_DEVTOOLS_INSPECT_DOM_TARGET__ = r);
|
|
5037
5030
|
}
|
|
5038
5031
|
},
|
|
@@ -5042,19 +5035,19 @@ function ra(e) {
|
|
|
5042
5035
|
getPluginSettings(t) {
|
|
5043
5036
|
return {
|
|
5044
5037
|
options: ju(t),
|
|
5045
|
-
values:
|
|
5038
|
+
values: Co(t)
|
|
5046
5039
|
};
|
|
5047
5040
|
}
|
|
5048
5041
|
};
|
|
5049
5042
|
}
|
|
5050
5043
|
_();
|
|
5051
|
-
var
|
|
5052
|
-
(
|
|
5044
|
+
var sr, ir;
|
|
5045
|
+
(ir = (sr = v).__VUE_DEVTOOLS_ENV__) != null || (sr.__VUE_DEVTOOLS_ENV__ = {
|
|
5053
5046
|
vitePluginDetected: !1
|
|
5054
5047
|
});
|
|
5055
|
-
var
|
|
5056
|
-
(
|
|
5057
|
-
hooks:
|
|
5048
|
+
var ur = Lu(), ar, cr;
|
|
5049
|
+
(cr = (ar = v).__VUE_DEVTOOLS_KIT_CONTEXT__) != null || (ar.__VUE_DEVTOOLS_KIT_CONTEXT__ = {
|
|
5050
|
+
hooks: ur,
|
|
5058
5051
|
get state() {
|
|
5059
5052
|
return {
|
|
5060
5053
|
...k,
|
|
@@ -5063,20 +5056,20 @@ var ar = Lu(), cr, lr;
|
|
|
5063
5056
|
appRecords: lt.value
|
|
5064
5057
|
};
|
|
5065
5058
|
},
|
|
5066
|
-
api: ra(
|
|
5059
|
+
api: ra(ur)
|
|
5067
5060
|
});
|
|
5068
5061
|
var Ce = v.__VUE_DEVTOOLS_KIT_CONTEXT__;
|
|
5069
5062
|
_();
|
|
5070
5063
|
ou(iu());
|
|
5071
|
-
var
|
|
5072
|
-
(
|
|
5064
|
+
var lr, fr;
|
|
5065
|
+
(fr = (lr = v).__VUE_DEVTOOLS_NEXT_APP_RECORD_INFO__) != null || (lr.__VUE_DEVTOOLS_NEXT_APP_RECORD_INFO__ = {
|
|
5073
5066
|
id: 0,
|
|
5074
5067
|
appIds: /* @__PURE__ */ new Set()
|
|
5075
5068
|
});
|
|
5076
5069
|
_();
|
|
5077
5070
|
_();
|
|
5078
5071
|
function oa(e) {
|
|
5079
|
-
k.highPerfModeEnabled = e ?? !k.highPerfModeEnabled, !e && R.value &&
|
|
5072
|
+
k.highPerfModeEnabled = e ?? !k.highPerfModeEnabled, !e && R.value && xo(R.value.app);
|
|
5080
5073
|
}
|
|
5081
5074
|
_();
|
|
5082
5075
|
_();
|
|
@@ -5089,8 +5082,8 @@ function sa(e) {
|
|
|
5089
5082
|
const t = Object.values(k.devtoolsClientDetected).some(Boolean);
|
|
5090
5083
|
oa(!t);
|
|
5091
5084
|
}
|
|
5092
|
-
var
|
|
5093
|
-
(
|
|
5085
|
+
var dr, hr;
|
|
5086
|
+
(hr = (dr = v).__VUE_DEVTOOLS_UPDATE_CLIENT_DETECTED__) != null || (dr.__VUE_DEVTOOLS_UPDATE_CLIENT_DETECTED__ = sa);
|
|
5094
5087
|
_();
|
|
5095
5088
|
_();
|
|
5096
5089
|
_();
|
|
@@ -5114,7 +5107,7 @@ var ia = class {
|
|
|
5114
5107
|
clear() {
|
|
5115
5108
|
this.keyToValue.clear(), this.valueToKey.clear();
|
|
5116
5109
|
}
|
|
5117
|
-
},
|
|
5110
|
+
}, Po = class {
|
|
5118
5111
|
constructor(t) {
|
|
5119
5112
|
this.generateIdentifier = t, this.kv = new ia();
|
|
5120
5113
|
}
|
|
@@ -5130,7 +5123,7 @@ var ia = class {
|
|
|
5130
5123
|
getValue(t) {
|
|
5131
5124
|
return this.kv.getByKey(t);
|
|
5132
5125
|
}
|
|
5133
|
-
}, ua = class extends
|
|
5126
|
+
}, ua = class extends Po {
|
|
5134
5127
|
constructor() {
|
|
5135
5128
|
super((e) => e.name), this.classToAllowedProps = /* @__PURE__ */ new Map();
|
|
5136
5129
|
}
|
|
@@ -5168,7 +5161,7 @@ function Te(e, t) {
|
|
|
5168
5161
|
function Xe(e, t) {
|
|
5169
5162
|
return e.indexOf(t) !== -1;
|
|
5170
5163
|
}
|
|
5171
|
-
function
|
|
5164
|
+
function pr(e, t) {
|
|
5172
5165
|
for (let n = 0; n < e.length; n++) {
|
|
5173
5166
|
const r = e[n];
|
|
5174
5167
|
if (t(r))
|
|
@@ -5191,9 +5184,9 @@ var la = class {
|
|
|
5191
5184
|
};
|
|
5192
5185
|
_();
|
|
5193
5186
|
_();
|
|
5194
|
-
var fa = (e) => Object.prototype.toString.call(e).slice(8, -1),
|
|
5187
|
+
var fa = (e) => Object.prototype.toString.call(e).slice(8, -1), Ro = (e) => typeof e > "u", da = (e) => e === null, Fe = (e) => typeof e != "object" || e === null || e === Object.prototype ? !1 : Object.getPrototypeOf(e) === null ? !0 : Object.getPrototypeOf(e) === Object.prototype, Nt = (e) => Fe(e) && Object.keys(e).length === 0, ne = (e) => Array.isArray(e), ha = (e) => typeof e == "string", pa = (e) => typeof e == "number" && !isNaN(e), _a = (e) => typeof e == "boolean", ga = (e) => e instanceof RegExp, je = (e) => e instanceof Map, He = (e) => e instanceof Set, No = (e) => fa(e) === "Symbol", ma = (e) => e instanceof Date && !isNaN(e.valueOf()), Ea = (e) => e instanceof Error, _r = (e) => typeof e == "number" && isNaN(e), va = (e) => _a(e) || da(e) || Ro(e) || pa(e) || ha(e) || No(e), ya = (e) => typeof e == "bigint", Sa = (e) => e === 1 / 0 || e === -1 / 0, ba = (e) => ArrayBuffer.isView(e) && !(e instanceof DataView), Aa = (e) => e instanceof URL;
|
|
5195
5188
|
_();
|
|
5196
|
-
var
|
|
5189
|
+
var Vo = (e) => e.replace(/\./g, "\\."), yt = (e) => e.map(String).map(Vo).join("."), Ve = (e) => {
|
|
5197
5190
|
const t = [];
|
|
5198
5191
|
let n = "";
|
|
5199
5192
|
for (let o = 0; o < e.length; o++) {
|
|
@@ -5220,8 +5213,8 @@ function K(e, t, n, r) {
|
|
|
5220
5213
|
untransform: r
|
|
5221
5214
|
};
|
|
5222
5215
|
}
|
|
5223
|
-
var
|
|
5224
|
-
K(
|
|
5216
|
+
var Lo = [
|
|
5217
|
+
K(Ro, "undefined", () => null, () => {
|
|
5225
5218
|
}),
|
|
5226
5219
|
K(ya, "bigint", (e) => e.toString(), (e) => typeof BigInt < "u" ? BigInt(e) : (console.error("Please add a BigInt polyfill."), e)),
|
|
5227
5220
|
K(ma, "Date", (e) => e.toISOString(), (e) => new Date(e)),
|
|
@@ -5252,7 +5245,7 @@ var Mo = [
|
|
|
5252
5245
|
(e) => new Set(e)
|
|
5253
5246
|
),
|
|
5254
5247
|
K(je, "map", (e) => [...e.entries()], (e) => new Map(e)),
|
|
5255
|
-
K((e) =>
|
|
5248
|
+
K((e) => _r(e) || Sa(e), "number", (e) => _r(e) ? "NaN" : e > 0 ? "Infinity" : "-Infinity", Number),
|
|
5256
5249
|
K((e) => e === 0 && 1 / e === -1 / 0, "number", () => "-0", Number),
|
|
5257
5250
|
K(Aa, "URL", (e) => e.toString(), (e) => new URL(e))
|
|
5258
5251
|
];
|
|
@@ -5264,7 +5257,7 @@ function ft(e, t, n, r) {
|
|
|
5264
5257
|
untransform: r
|
|
5265
5258
|
};
|
|
5266
5259
|
}
|
|
5267
|
-
var
|
|
5260
|
+
var Mo = ft((e, t) => No(e) ? !!t.symbolRegistry.getIdentifier(e) : !1, (e, t) => ["symbol", t.symbolRegistry.getIdentifier(e)], (e) => e.description, (e, t, n) => {
|
|
5268
5261
|
const r = n.symbolRegistry.getValue(t[1]);
|
|
5269
5262
|
if (!r)
|
|
5270
5263
|
throw new Error("Trying to deserialize unknown symbol");
|
|
@@ -5279,16 +5272,16 @@ var Bo = ft((e, t) => Vo(e) ? !!t.symbolRegistry.getIdentifier(e) : !1, (e, t) =
|
|
|
5279
5272
|
Float32Array,
|
|
5280
5273
|
Float64Array,
|
|
5281
5274
|
Uint8ClampedArray
|
|
5282
|
-
].reduce((e, t) => (e[t.name] = t, e), {}),
|
|
5275
|
+
].reduce((e, t) => (e[t.name] = t, e), {}), Bo = ft(ba, (e) => ["typed-array", e.constructor.name], (e) => [...e], (e, t) => {
|
|
5283
5276
|
const n = wa[t[1]];
|
|
5284
5277
|
if (!n)
|
|
5285
5278
|
throw new Error("Trying to deserialize unknown typed array");
|
|
5286
5279
|
return new n(e);
|
|
5287
5280
|
});
|
|
5288
|
-
function
|
|
5281
|
+
function $o(e, t) {
|
|
5289
5282
|
return e?.constructor ? !!t.classRegistry.getIdentifier(e.constructor) : !1;
|
|
5290
5283
|
}
|
|
5291
|
-
var
|
|
5284
|
+
var Uo = ft($o, (e, t) => ["class", t.classRegistry.getIdentifier(e.constructor)], (e, t) => {
|
|
5292
5285
|
const n = t.classRegistry.getAllowedProps(e.constructor);
|
|
5293
5286
|
if (!n)
|
|
5294
5287
|
return { ...e };
|
|
@@ -5301,44 +5294,44 @@ var Fo = ft(Uo, (e, t) => ["class", t.classRegistry.getIdentifier(e.constructor)
|
|
|
5301
5294
|
if (!r)
|
|
5302
5295
|
throw new Error(`Trying to deserialize unknown class '${t[1]}' - check https://github.com/blitz-js/superjson/issues/116#issuecomment-773996564`);
|
|
5303
5296
|
return Object.assign(Object.create(r.prototype), e);
|
|
5304
|
-
}),
|
|
5297
|
+
}), Fo = ft((e, t) => !!t.customTransformerRegistry.findApplicable(e), (e, t) => ["custom", t.customTransformerRegistry.findApplicable(e).name], (e, t) => t.customTransformerRegistry.findApplicable(e).serialize(e), (e, t, n) => {
|
|
5305
5298
|
const r = n.customTransformerRegistry.findByName(t[1]);
|
|
5306
5299
|
if (!r)
|
|
5307
5300
|
throw new Error("Trying to deserialize unknown custom value");
|
|
5308
5301
|
return r.deserialize(e);
|
|
5309
|
-
}), Oa = [
|
|
5310
|
-
const n =
|
|
5302
|
+
}), Oa = [Uo, Mo, Fo, Bo], gr = (e, t) => {
|
|
5303
|
+
const n = pr(Oa, (o) => o.isApplicable(e, t));
|
|
5311
5304
|
if (n)
|
|
5312
5305
|
return {
|
|
5313
5306
|
value: n.transform(e, t),
|
|
5314
5307
|
type: n.annotation(e, t)
|
|
5315
5308
|
};
|
|
5316
|
-
const r =
|
|
5309
|
+
const r = pr(Lo, (o) => o.isApplicable(e, t));
|
|
5317
5310
|
if (r)
|
|
5318
5311
|
return {
|
|
5319
5312
|
value: r.transform(e, t),
|
|
5320
5313
|
type: r.annotation
|
|
5321
5314
|
};
|
|
5322
|
-
},
|
|
5323
|
-
|
|
5324
|
-
|
|
5315
|
+
}, jo = {};
|
|
5316
|
+
Lo.forEach((e) => {
|
|
5317
|
+
jo[e.annotation] = e;
|
|
5325
5318
|
});
|
|
5326
5319
|
var Ta = (e, t, n) => {
|
|
5327
5320
|
if (ne(t))
|
|
5328
5321
|
switch (t[0]) {
|
|
5329
5322
|
case "symbol":
|
|
5330
|
-
return
|
|
5323
|
+
return Mo.untransform(e, t, n);
|
|
5331
5324
|
case "class":
|
|
5332
|
-
return
|
|
5325
|
+
return Uo.untransform(e, t, n);
|
|
5333
5326
|
case "custom":
|
|
5334
|
-
return
|
|
5327
|
+
return Fo.untransform(e, t, n);
|
|
5335
5328
|
case "typed-array":
|
|
5336
|
-
return
|
|
5329
|
+
return Bo.untransform(e, t, n);
|
|
5337
5330
|
default:
|
|
5338
5331
|
throw new Error("Unknown transformation: " + t);
|
|
5339
5332
|
}
|
|
5340
5333
|
else {
|
|
5341
|
-
const r =
|
|
5334
|
+
const r = jo[t];
|
|
5342
5335
|
if (!r)
|
|
5343
5336
|
throw new Error("Unknown transformation: " + t);
|
|
5344
5337
|
return r.untransform(e, n);
|
|
@@ -5353,7 +5346,7 @@ var Ee = (e, t) => {
|
|
|
5353
5346
|
n.next(), t--;
|
|
5354
5347
|
return n.next().value;
|
|
5355
5348
|
};
|
|
5356
|
-
function
|
|
5349
|
+
function Ho(e) {
|
|
5357
5350
|
if (Xe(e, "__proto__"))
|
|
5358
5351
|
throw new Error("__proto__ is not allowed as a property");
|
|
5359
5352
|
if (Xe(e, "prototype"))
|
|
@@ -5362,7 +5355,7 @@ function zo(e) {
|
|
|
5362
5355
|
throw new Error("constructor is not allowed as a property");
|
|
5363
5356
|
}
|
|
5364
5357
|
var Ia = (e, t) => {
|
|
5365
|
-
|
|
5358
|
+
Ho(t);
|
|
5366
5359
|
for (let n = 0; n < t.length; n++) {
|
|
5367
5360
|
const r = t[n];
|
|
5368
5361
|
if (He(e))
|
|
@@ -5381,8 +5374,8 @@ var Ia = (e, t) => {
|
|
|
5381
5374
|
e = e[r];
|
|
5382
5375
|
}
|
|
5383
5376
|
return e;
|
|
5384
|
-
},
|
|
5385
|
-
if (
|
|
5377
|
+
}, Vt = (e, t, n) => {
|
|
5378
|
+
if (Ho(t), t.length === 0)
|
|
5386
5379
|
return n(e);
|
|
5387
5380
|
let r = e;
|
|
5388
5381
|
for (let s = 0; s < t.length - 1; s++) {
|
|
@@ -5430,40 +5423,40 @@ var Ia = (e, t) => {
|
|
|
5430
5423
|
}
|
|
5431
5424
|
return e;
|
|
5432
5425
|
};
|
|
5433
|
-
function
|
|
5426
|
+
function Lt(e, t, n = []) {
|
|
5434
5427
|
if (!e)
|
|
5435
5428
|
return;
|
|
5436
5429
|
if (!ne(e)) {
|
|
5437
|
-
Te(e, (s, i) =>
|
|
5430
|
+
Te(e, (s, i) => Lt(s, t, [...n, ...Ve(i)]));
|
|
5438
5431
|
return;
|
|
5439
5432
|
}
|
|
5440
5433
|
const [r, o] = e;
|
|
5441
5434
|
o && Te(o, (s, i) => {
|
|
5442
|
-
|
|
5435
|
+
Lt(s, t, [...n, ...Ve(i)]);
|
|
5443
5436
|
}), t(r, n);
|
|
5444
5437
|
}
|
|
5445
5438
|
function Ca(e, t, n) {
|
|
5446
|
-
return
|
|
5447
|
-
e =
|
|
5439
|
+
return Lt(t, (r, o) => {
|
|
5440
|
+
e = Vt(e, o, (s) => Ta(s, r, n));
|
|
5448
5441
|
}), e;
|
|
5449
5442
|
}
|
|
5450
5443
|
function ka(e, t) {
|
|
5451
5444
|
function n(r, o) {
|
|
5452
5445
|
const s = Ia(e, Ve(o));
|
|
5453
5446
|
r.map(Ve).forEach((i) => {
|
|
5454
|
-
e =
|
|
5447
|
+
e = Vt(e, i, () => s);
|
|
5455
5448
|
});
|
|
5456
5449
|
}
|
|
5457
5450
|
if (ne(t)) {
|
|
5458
5451
|
const [r, o] = t;
|
|
5459
5452
|
r.forEach((s) => {
|
|
5460
|
-
e =
|
|
5453
|
+
e = Vt(e, Ve(s), () => e);
|
|
5461
5454
|
}), o && Te(o, n);
|
|
5462
5455
|
} else
|
|
5463
5456
|
Te(t, n);
|
|
5464
5457
|
return e;
|
|
5465
5458
|
}
|
|
5466
|
-
var Da = (e, t) => Fe(e) || ne(e) || je(e) || He(e) ||
|
|
5459
|
+
var Da = (e, t) => Fe(e) || ne(e) || je(e) || He(e) || $o(e, t);
|
|
5467
5460
|
function xa(e, t, n) {
|
|
5468
5461
|
const r = n.get(e);
|
|
5469
5462
|
r ? r.push(t) : n.set(e, [t]);
|
|
@@ -5477,9 +5470,9 @@ function Pa(e, t) {
|
|
|
5477
5470
|
t || (o = o.map((u) => u.map(String)).sort((u, a) => u.length - a.length));
|
|
5478
5471
|
const [s, ...i] = o;
|
|
5479
5472
|
s.length === 0 ? r = i.map(yt) : n[yt(s)] = i.map(yt);
|
|
5480
|
-
}), r ?
|
|
5473
|
+
}), r ? Nt(n) ? [r] : [r, n] : Nt(n) ? void 0 : n;
|
|
5481
5474
|
}
|
|
5482
|
-
var
|
|
5475
|
+
var zo = (e, t, n, r, o = [], s = [], i = /* @__PURE__ */ new Map()) => {
|
|
5483
5476
|
var u;
|
|
5484
5477
|
const a = va(e);
|
|
5485
5478
|
if (!a) {
|
|
@@ -5491,7 +5484,7 @@ var Ko = (e, t, n, r, o = [], s = [], i = /* @__PURE__ */ new Map()) => {
|
|
|
5491
5484
|
} : h;
|
|
5492
5485
|
}
|
|
5493
5486
|
if (!Da(e, n)) {
|
|
5494
|
-
const h =
|
|
5487
|
+
const h = gr(e, n), m = h ? {
|
|
5495
5488
|
transformedValue: h.value,
|
|
5496
5489
|
annotations: [h.type]
|
|
5497
5490
|
} : {
|
|
@@ -5503,16 +5496,16 @@ var Ko = (e, t, n, r, o = [], s = [], i = /* @__PURE__ */ new Map()) => {
|
|
|
5503
5496
|
return {
|
|
5504
5497
|
transformedValue: null
|
|
5505
5498
|
};
|
|
5506
|
-
const c =
|
|
5499
|
+
const c = gr(e, n), p = (u = c?.value) != null ? u : e, l = ne(p) ? [] : {}, f = {};
|
|
5507
5500
|
Te(p, (h, m) => {
|
|
5508
5501
|
if (m === "__proto__" || m === "constructor" || m === "prototype")
|
|
5509
5502
|
throw new Error(`Detected property ${m}. This is a prototype pollution risk, please remove it from your object.`);
|
|
5510
|
-
const g =
|
|
5503
|
+
const g = zo(h, t, n, r, [...o, m], [...s, e], i);
|
|
5511
5504
|
l[m] = g.transformedValue, ne(g.annotations) ? f[m] = g.annotations : Fe(g.annotations) && Te(g.annotations, (E, w) => {
|
|
5512
|
-
f[
|
|
5505
|
+
f[Vo(m) + "." + w] = E;
|
|
5513
5506
|
});
|
|
5514
5507
|
});
|
|
5515
|
-
const d =
|
|
5508
|
+
const d = Nt(f) ? {
|
|
5516
5509
|
transformedValue: l,
|
|
5517
5510
|
annotations: c ? [c.type] : void 0
|
|
5518
5511
|
} : {
|
|
@@ -5523,14 +5516,14 @@ var Ko = (e, t, n, r, o = [], s = [], i = /* @__PURE__ */ new Map()) => {
|
|
|
5523
5516
|
};
|
|
5524
5517
|
_();
|
|
5525
5518
|
_();
|
|
5526
|
-
function
|
|
5519
|
+
function Ko(e) {
|
|
5527
5520
|
return Object.prototype.toString.call(e).slice(8, -1);
|
|
5528
5521
|
}
|
|
5529
|
-
function
|
|
5530
|
-
return
|
|
5522
|
+
function mr(e) {
|
|
5523
|
+
return Ko(e) === "Array";
|
|
5531
5524
|
}
|
|
5532
5525
|
function Ra(e) {
|
|
5533
|
-
if (
|
|
5526
|
+
if (Ko(e) !== "Object")
|
|
5534
5527
|
return !1;
|
|
5535
5528
|
const t = Object.getPrototypeOf(e);
|
|
5536
5529
|
return !!t && t.constructor === Object && t === Object.prototype;
|
|
@@ -5544,16 +5537,16 @@ function Na(e, t, n, r, o) {
|
|
|
5544
5537
|
configurable: !0
|
|
5545
5538
|
});
|
|
5546
5539
|
}
|
|
5547
|
-
function
|
|
5548
|
-
if (
|
|
5549
|
-
return e.map((o) =>
|
|
5540
|
+
function Mt(e, t = {}) {
|
|
5541
|
+
if (mr(e))
|
|
5542
|
+
return e.map((o) => Mt(o, t));
|
|
5550
5543
|
if (!Ra(e))
|
|
5551
5544
|
return e;
|
|
5552
5545
|
const n = Object.getOwnPropertyNames(e), r = Object.getOwnPropertySymbols(e);
|
|
5553
5546
|
return [...n, ...r].reduce((o, s) => {
|
|
5554
|
-
if (
|
|
5547
|
+
if (mr(t.props) && !t.props.includes(s))
|
|
5555
5548
|
return o;
|
|
5556
|
-
const i = e[s], u =
|
|
5549
|
+
const i = e[s], u = Mt(i, t);
|
|
5557
5550
|
return Na(o, s, u, e, t.nonenumerable), o;
|
|
5558
5551
|
}, {});
|
|
5559
5552
|
}
|
|
@@ -5562,13 +5555,13 @@ var I = class {
|
|
|
5562
5555
|
* @param dedupeReferentialEqualities If true, SuperJSON will make sure only one instance of referentially equal objects are serialized and the rest are replaced with `null`.
|
|
5563
5556
|
*/
|
|
5564
5557
|
constructor({ dedupe: e = !1 } = {}) {
|
|
5565
|
-
this.classRegistry = new ua(), this.symbolRegistry = new
|
|
5558
|
+
this.classRegistry = new ua(), this.symbolRegistry = new Po((t) => {
|
|
5566
5559
|
var n;
|
|
5567
5560
|
return (n = t.description) != null ? n : "";
|
|
5568
5561
|
}), this.customTransformerRegistry = new la(), this.allowedErrorProps = [], this.dedupe = e;
|
|
5569
5562
|
}
|
|
5570
5563
|
serialize(e) {
|
|
5571
|
-
const t = /* @__PURE__ */ new Map(), n =
|
|
5564
|
+
const t = /* @__PURE__ */ new Map(), n = zo(e, t, this, this.dedupe), r = {
|
|
5572
5565
|
json: n.transformedValue
|
|
5573
5566
|
};
|
|
5574
5567
|
n.annotations && (r.meta = {
|
|
@@ -5583,7 +5576,7 @@ var I = class {
|
|
|
5583
5576
|
}
|
|
5584
5577
|
deserialize(e) {
|
|
5585
5578
|
const { json: t, meta: n } = e;
|
|
5586
|
-
let r =
|
|
5579
|
+
let r = Mt(t);
|
|
5587
5580
|
return n?.values && (r = Ca(r, n.values, this)), n?.referentialEqualities && (r = ka(r, n.referentialEqualities)), r;
|
|
5588
5581
|
}
|
|
5589
5582
|
stringify(e) {
|
|
@@ -5640,18 +5633,18 @@ _();
|
|
|
5640
5633
|
_();
|
|
5641
5634
|
_();
|
|
5642
5635
|
_();
|
|
5643
|
-
var
|
|
5644
|
-
(
|
|
5645
|
-
var
|
|
5646
|
-
(
|
|
5647
|
-
var
|
|
5648
|
-
(
|
|
5649
|
-
var
|
|
5650
|
-
(
|
|
5651
|
-
var
|
|
5652
|
-
(
|
|
5653
|
-
var
|
|
5654
|
-
(
|
|
5636
|
+
var Er, vr;
|
|
5637
|
+
(vr = (Er = v).__VUE_DEVTOOLS_KIT_MESSAGE_CHANNELS__) != null || (Er.__VUE_DEVTOOLS_KIT_MESSAGE_CHANNELS__ = []);
|
|
5638
|
+
var yr, Sr;
|
|
5639
|
+
(Sr = (yr = v).__VUE_DEVTOOLS_KIT_RPC_CLIENT__) != null || (yr.__VUE_DEVTOOLS_KIT_RPC_CLIENT__ = null);
|
|
5640
|
+
var br, Ar;
|
|
5641
|
+
(Ar = (br = v).__VUE_DEVTOOLS_KIT_RPC_SERVER__) != null || (br.__VUE_DEVTOOLS_KIT_RPC_SERVER__ = null);
|
|
5642
|
+
var wr, Or;
|
|
5643
|
+
(Or = (wr = v).__VUE_DEVTOOLS_KIT_VITE_RPC_CLIENT__) != null || (wr.__VUE_DEVTOOLS_KIT_VITE_RPC_CLIENT__ = null);
|
|
5644
|
+
var Tr, Ir;
|
|
5645
|
+
(Ir = (Tr = v).__VUE_DEVTOOLS_KIT_VITE_RPC_SERVER__) != null || (Tr.__VUE_DEVTOOLS_KIT_VITE_RPC_SERVER__ = null);
|
|
5646
|
+
var Cr, kr;
|
|
5647
|
+
(kr = (Cr = v).__VUE_DEVTOOLS_KIT_BROADCAST_RPC_SERVER__) != null || (Cr.__VUE_DEVTOOLS_KIT_BROADCAST_RPC_SERVER__ = null);
|
|
5655
5648
|
_();
|
|
5656
5649
|
_();
|
|
5657
5650
|
_();
|
|
@@ -5665,7 +5658,7 @@ _();
|
|
|
5665
5658
|
* @license MIT
|
|
5666
5659
|
*/
|
|
5667
5660
|
let Re;
|
|
5668
|
-
const ze = (e) => Re = e,
|
|
5661
|
+
const ze = (e) => Re = e, Go = process.env.NODE_ENV !== "production" ? Symbol("pinia") : (
|
|
5669
5662
|
/* istanbul ignore next */
|
|
5670
5663
|
Symbol()
|
|
5671
5664
|
);
|
|
@@ -5676,19 +5669,19 @@ var G;
|
|
|
5676
5669
|
(function(e) {
|
|
5677
5670
|
e.direct = "direct", e.patchObject = "patch object", e.patchFunction = "patch function";
|
|
5678
5671
|
})(G || (G = {}));
|
|
5679
|
-
const Q = typeof window < "u",
|
|
5672
|
+
const Q = typeof window < "u", Dr = typeof window == "object" && window.window === window ? window : typeof self == "object" && self.self === self ? self : typeof global == "object" && global.global === global ? global : typeof globalThis == "object" ? globalThis : { HTMLElement: null };
|
|
5680
5673
|
function Va(e, { autoBom: t = !1 } = {}) {
|
|
5681
5674
|
return t && /^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(e.type) ? new Blob(["\uFEFF", e], { type: e.type }) : e;
|
|
5682
5675
|
}
|
|
5683
|
-
function
|
|
5676
|
+
function an(e, t, n) {
|
|
5684
5677
|
const r = new XMLHttpRequest();
|
|
5685
5678
|
r.open("GET", e), r.responseType = "blob", r.onload = function() {
|
|
5686
|
-
|
|
5679
|
+
qo(r.response, t, n);
|
|
5687
5680
|
}, r.onerror = function() {
|
|
5688
5681
|
console.error("could not download file");
|
|
5689
5682
|
}, r.send();
|
|
5690
5683
|
}
|
|
5691
|
-
function
|
|
5684
|
+
function Wo(e) {
|
|
5692
5685
|
const t = new XMLHttpRequest();
|
|
5693
5686
|
t.open("HEAD", e, !1);
|
|
5694
5687
|
try {
|
|
@@ -5720,9 +5713,9 @@ function Ze(e) {
|
|
|
5720
5713
|
e.dispatchEvent(n);
|
|
5721
5714
|
}
|
|
5722
5715
|
}
|
|
5723
|
-
const Qe = typeof navigator == "object" ? navigator : { userAgent: "" },
|
|
5716
|
+
const Qe = typeof navigator == "object" ? navigator : { userAgent: "" }, Yo = /Macintosh/.test(Qe.userAgent) && /AppleWebKit/.test(Qe.userAgent) && !/Safari/.test(Qe.userAgent), qo = Q ? (
|
|
5724
5717
|
// Use download attribute first if possible (#193 Lumia mobile) unless this is a macOS WebView or mini program
|
|
5725
|
-
typeof HTMLAnchorElement < "u" && "download" in HTMLAnchorElement.prototype && !
|
|
5718
|
+
typeof HTMLAnchorElement < "u" && "download" in HTMLAnchorElement.prototype && !Yo ? La : (
|
|
5726
5719
|
// Use msSaveOrOpenBlob as a second approach
|
|
5727
5720
|
"msSaveOrOpenBlob" in Qe ? Ma : (
|
|
5728
5721
|
// Fallback to using FileReader and a popup
|
|
@@ -5733,7 +5726,7 @@ const Qe = typeof navigator == "object" ? navigator : { userAgent: "" }, qo = /M
|
|
|
5733
5726
|
};
|
|
5734
5727
|
function La(e, t = "download", n) {
|
|
5735
5728
|
const r = document.createElement("a");
|
|
5736
|
-
r.download = t, r.rel = "noopener", typeof e == "string" ? (r.href = e, r.origin !== location.origin ?
|
|
5729
|
+
r.download = t, r.rel = "noopener", typeof e == "string" ? (r.href = e, r.origin !== location.origin ? Wo(r.href) ? an(e, t, n) : (r.target = "_blank", Ze(r)) : Ze(r)) : (r.href = URL.createObjectURL(e), setTimeout(function() {
|
|
5737
5730
|
URL.revokeObjectURL(r.href);
|
|
5738
5731
|
}, 4e4), setTimeout(function() {
|
|
5739
5732
|
Ze(r);
|
|
@@ -5741,8 +5734,8 @@ function La(e, t = "download", n) {
|
|
|
5741
5734
|
}
|
|
5742
5735
|
function Ma(e, t = "download", n) {
|
|
5743
5736
|
if (typeof e == "string")
|
|
5744
|
-
if (
|
|
5745
|
-
|
|
5737
|
+
if (Wo(e))
|
|
5738
|
+
an(e, t, n);
|
|
5746
5739
|
else {
|
|
5747
5740
|
const r = document.createElement("a");
|
|
5748
5741
|
r.href = e, r.target = "_blank", setTimeout(function() {
|
|
@@ -5754,9 +5747,9 @@ function Ma(e, t = "download", n) {
|
|
|
5754
5747
|
}
|
|
5755
5748
|
function Ba(e, t, n, r) {
|
|
5756
5749
|
if (r = r || open("", "_blank"), r && (r.document.title = r.document.body.innerText = "downloading..."), typeof e == "string")
|
|
5757
|
-
return
|
|
5758
|
-
const o = e.type === "application/octet-stream", s = /constructor/i.test(String(
|
|
5759
|
-
if ((i || o && s ||
|
|
5750
|
+
return an(e, t, n);
|
|
5751
|
+
const o = e.type === "application/octet-stream", s = /constructor/i.test(String(Dr.HTMLElement)) || "safari" in Dr, i = /CriOS\/[\d]+/.test(navigator.userAgent);
|
|
5752
|
+
if ((i || o && s || Yo) && typeof FileReader < "u") {
|
|
5760
5753
|
const u = new FileReader();
|
|
5761
5754
|
u.onloadend = function() {
|
|
5762
5755
|
let a = u.result;
|
|
@@ -5775,39 +5768,39 @@ function x(e, t) {
|
|
|
5775
5768
|
const n = "🍍 " + e;
|
|
5776
5769
|
typeof __VUE_DEVTOOLS_TOAST__ == "function" ? __VUE_DEVTOOLS_TOAST__(n, t) : t === "error" ? console.error(n) : t === "warn" ? console.warn(n) : console.log(n);
|
|
5777
5770
|
}
|
|
5778
|
-
function
|
|
5771
|
+
function cn(e) {
|
|
5779
5772
|
return "_a" in e && "install" in e;
|
|
5780
5773
|
}
|
|
5781
|
-
function
|
|
5774
|
+
function Jo() {
|
|
5782
5775
|
if (!("clipboard" in navigator))
|
|
5783
5776
|
return x("Your browser doesn't support the Clipboard API", "error"), !0;
|
|
5784
5777
|
}
|
|
5785
|
-
function
|
|
5778
|
+
function Xo(e) {
|
|
5786
5779
|
return e instanceof Error && e.message.toLowerCase().includes("document is not focused") ? (x('You need to activate the "Emulate a focused page" setting in the "Rendering" panel of devtools.', "warn"), !0) : !1;
|
|
5787
5780
|
}
|
|
5788
5781
|
async function $a(e) {
|
|
5789
|
-
if (!
|
|
5782
|
+
if (!Jo())
|
|
5790
5783
|
try {
|
|
5791
5784
|
await navigator.clipboard.writeText(JSON.stringify(e.state.value)), x("Global state copied to clipboard.");
|
|
5792
5785
|
} catch (t) {
|
|
5793
|
-
if (
|
|
5786
|
+
if (Xo(t))
|
|
5794
5787
|
return;
|
|
5795
5788
|
x("Failed to serialize the state. Check the console for more details.", "error"), console.error(t);
|
|
5796
5789
|
}
|
|
5797
5790
|
}
|
|
5798
5791
|
async function Ua(e) {
|
|
5799
|
-
if (!
|
|
5792
|
+
if (!Jo())
|
|
5800
5793
|
try {
|
|
5801
|
-
|
|
5794
|
+
Zo(e, JSON.parse(await navigator.clipboard.readText())), x("Global state pasted from clipboard.");
|
|
5802
5795
|
} catch (t) {
|
|
5803
|
-
if (
|
|
5796
|
+
if (Xo(t))
|
|
5804
5797
|
return;
|
|
5805
5798
|
x("Failed to deserialize the state from clipboard. Check the console for more details.", "error"), console.error(t);
|
|
5806
5799
|
}
|
|
5807
5800
|
}
|
|
5808
5801
|
async function Fa(e) {
|
|
5809
5802
|
try {
|
|
5810
|
-
|
|
5803
|
+
qo(new Blob([JSON.stringify(e.state.value)], {
|
|
5811
5804
|
type: "text/plain;charset=utf-8"
|
|
5812
5805
|
}), "pinia-state.json");
|
|
5813
5806
|
} catch (t) {
|
|
@@ -5836,12 +5829,12 @@ async function Ha(e) {
|
|
|
5836
5829
|
if (!n)
|
|
5837
5830
|
return;
|
|
5838
5831
|
const { text: r, file: o } = n;
|
|
5839
|
-
|
|
5832
|
+
Zo(e, JSON.parse(r)), x(`Global state imported from "${o.name}".`);
|
|
5840
5833
|
} catch (t) {
|
|
5841
5834
|
x("Failed to import the state from JSON. Check the console for more details.", "error"), console.error(t);
|
|
5842
5835
|
}
|
|
5843
5836
|
}
|
|
5844
|
-
function
|
|
5837
|
+
function Zo(e, t) {
|
|
5845
5838
|
for (const n in t) {
|
|
5846
5839
|
const r = e.state.value[n];
|
|
5847
5840
|
r ? Object.assign(r, t[n]) : e.state.value[n] = t[n];
|
|
@@ -5854,18 +5847,18 @@ function H(e) {
|
|
|
5854
5847
|
}
|
|
5855
5848
|
};
|
|
5856
5849
|
}
|
|
5857
|
-
const
|
|
5850
|
+
const Qo = "🍍 Pinia (root)", et = "_root";
|
|
5858
5851
|
function za(e) {
|
|
5859
|
-
return
|
|
5852
|
+
return cn(e) ? {
|
|
5860
5853
|
id: et,
|
|
5861
|
-
label:
|
|
5854
|
+
label: Qo
|
|
5862
5855
|
} : {
|
|
5863
5856
|
id: e.$id,
|
|
5864
5857
|
label: e.$id
|
|
5865
5858
|
};
|
|
5866
5859
|
}
|
|
5867
5860
|
function Ka(e) {
|
|
5868
|
-
if (
|
|
5861
|
+
if (cn(e)) {
|
|
5869
5862
|
const n = Array.from(e._s.keys()), r = e._s;
|
|
5870
5863
|
return {
|
|
5871
5864
|
state: n.map((s) => ({
|
|
@@ -5928,7 +5921,7 @@ function Wa(e) {
|
|
|
5928
5921
|
let ve = !0;
|
|
5929
5922
|
const tt = [], re = "pinia:mutations", P = "pinia", { assign: Ya } = Object, ut = (e) => "🍍 " + e;
|
|
5930
5923
|
function qa(e, t) {
|
|
5931
|
-
|
|
5924
|
+
Do({
|
|
5932
5925
|
id: "dev.esm.pinia",
|
|
5933
5926
|
label: "Pinia 🍍",
|
|
5934
5927
|
logo: "https://pinia.vuejs.org/logo.svg",
|
|
@@ -6028,7 +6021,7 @@ function qa(e, t) {
|
|
|
6028
6021
|
}), n.on.getInspectorTree((r) => {
|
|
6029
6022
|
if (r.app === e && r.inspectorId === P) {
|
|
6030
6023
|
let o = [t];
|
|
6031
|
-
o = o.concat(Array.from(t._s.values())), r.rootNodes = (r.filter ? o.filter((s) => "$id" in s ? s.$id.toLowerCase().includes(r.filter.toLowerCase()) :
|
|
6024
|
+
o = o.concat(Array.from(t._s.values())), r.rootNodes = (r.filter ? o.filter((s) => "$id" in s ? s.$id.toLowerCase().includes(r.filter.toLowerCase()) : Qo.toLowerCase().includes(r.filter.toLowerCase())) : o).map(za);
|
|
6032
6025
|
}
|
|
6033
6026
|
}), globalThis.$pinia = t, n.on.getInspectorState((r) => {
|
|
6034
6027
|
if (r.app === e && r.inspectorId === P) {
|
|
@@ -6043,7 +6036,7 @@ function qa(e, t) {
|
|
|
6043
6036
|
if (!o)
|
|
6044
6037
|
return x(`store "${r.nodeId}" not found`, "error");
|
|
6045
6038
|
const { path: s } = r;
|
|
6046
|
-
|
|
6039
|
+
cn(o) ? s.unshift("state") : (s.length !== 1 || !o._customProperties.has(s[0]) || s[0] in o.$state) && s.unshift("$state"), ve = !1, r.set(o, s, r.state.value), ve = !0;
|
|
6047
6040
|
}
|
|
6048
6041
|
}), n.on.editComponentState((r) => {
|
|
6049
6042
|
if (r.type.startsWith("🍍")) {
|
|
@@ -6061,7 +6054,7 @@ Only state can be modified.`);
|
|
|
6061
6054
|
});
|
|
6062
6055
|
}
|
|
6063
6056
|
function Ja(e, t) {
|
|
6064
|
-
tt.includes(ut(t.$id)) || tt.push(ut(t.$id)),
|
|
6057
|
+
tt.includes(ut(t.$id)) || tt.push(ut(t.$id)), Do({
|
|
6065
6058
|
id: "dev.esm.pinia",
|
|
6066
6059
|
label: "Pinia 🍍",
|
|
6067
6060
|
logo: "https://pinia.vuejs.org/logo.svg",
|
|
@@ -6084,7 +6077,7 @@ function Ja(e, t) {
|
|
|
6084
6077
|
}, (n) => {
|
|
6085
6078
|
const r = typeof n.now == "function" ? n.now.bind(n) : Date.now;
|
|
6086
6079
|
t.$onAction(({ after: i, onError: u, name: a, args: c }) => {
|
|
6087
|
-
const p =
|
|
6080
|
+
const p = es++;
|
|
6088
6081
|
n.addTimelineEvent({
|
|
6089
6082
|
layerId: re,
|
|
6090
6083
|
event: {
|
|
@@ -6133,7 +6126,7 @@ function Ja(e, t) {
|
|
|
6133
6126
|
});
|
|
6134
6127
|
});
|
|
6135
6128
|
}, !0), t._customProperties.forEach((i) => {
|
|
6136
|
-
|
|
6129
|
+
jr(() => ms(t[i]), (u, a) => {
|
|
6137
6130
|
n.notifyComponentUpdate(), n.sendInspectorState(P), ve && n.addTimelineEvent({
|
|
6138
6131
|
layerId: re,
|
|
6139
6132
|
event: {
|
|
@@ -6190,12 +6183,12 @@ function Ja(e, t) {
|
|
|
6190
6183
|
}, n.notifyComponentUpdate(), n.sendInspectorTree(P), n.sendInspectorState(P), n.getSettings().logStoreChanges && x(`"${t.$id}" store installed 🆕`);
|
|
6191
6184
|
});
|
|
6192
6185
|
}
|
|
6193
|
-
let
|
|
6194
|
-
function
|
|
6186
|
+
let es = 0, ee;
|
|
6187
|
+
function xr(e, t, n) {
|
|
6195
6188
|
const r = t.reduce((o, s) => (o[s] = Me(e)[s], o), {});
|
|
6196
6189
|
for (const o in r)
|
|
6197
6190
|
e[o] = function() {
|
|
6198
|
-
const s =
|
|
6191
|
+
const s = es, i = n ? new Proxy(e, {
|
|
6199
6192
|
get(...a) {
|
|
6200
6193
|
return ee = s, Reflect.get(...a);
|
|
6201
6194
|
},
|
|
@@ -6211,10 +6204,10 @@ function Pr(e, t, n) {
|
|
|
6211
6204
|
function Xa({ app: e, store: t, options: n }) {
|
|
6212
6205
|
if (!t.$id.startsWith("__hot:")) {
|
|
6213
6206
|
if (t._isOptionsAPI = !!n.state, !t._p._testing) {
|
|
6214
|
-
|
|
6207
|
+
xr(t, Object.keys(n.actions), t._isOptionsAPI);
|
|
6215
6208
|
const r = t._hotUpdate;
|
|
6216
6209
|
Me(t)._hotUpdate = function(o) {
|
|
6217
|
-
r.apply(this, arguments),
|
|
6210
|
+
r.apply(this, arguments), xr(t, Object.keys(o._hmrPayload.actions), !!t._isOptionsAPI);
|
|
6218
6211
|
};
|
|
6219
6212
|
}
|
|
6220
6213
|
Ja(
|
|
@@ -6225,11 +6218,11 @@ function Xa({ app: e, store: t, options: n }) {
|
|
|
6225
6218
|
}
|
|
6226
6219
|
}
|
|
6227
6220
|
function Za() {
|
|
6228
|
-
const e =
|
|
6221
|
+
const e = Fr(!0), t = e.run(() => ye({}));
|
|
6229
6222
|
let n = [], r = [];
|
|
6230
6223
|
const o = se({
|
|
6231
6224
|
install(s) {
|
|
6232
|
-
ze(o), o._a = s, s.provide(
|
|
6225
|
+
ze(o), o._a = s, s.provide(Go, o), s.config.globalProperties.$pinia = o, process.env.NODE_ENV !== "production" && process.env.NODE_ENV !== "test" && Q && qa(s, o), r.forEach((i) => n.push(i)), r = [];
|
|
6233
6226
|
},
|
|
6234
6227
|
use(s) {
|
|
6235
6228
|
return this._a ? n.push(s) : r.push(s), this;
|
|
@@ -6244,39 +6237,39 @@ function Za() {
|
|
|
6244
6237
|
});
|
|
6245
6238
|
return process.env.NODE_ENV !== "production" && process.env.NODE_ENV !== "test" && Q && typeof Proxy < "u" && o.use(Xa), o;
|
|
6246
6239
|
}
|
|
6247
|
-
function
|
|
6240
|
+
function ts(e, t) {
|
|
6248
6241
|
for (const n in t) {
|
|
6249
6242
|
const r = t[n];
|
|
6250
6243
|
if (!(n in e))
|
|
6251
6244
|
continue;
|
|
6252
6245
|
const o = e[n];
|
|
6253
|
-
fe(o) && fe(r) && !Be(r) && !
|
|
6246
|
+
fe(o) && fe(r) && !Be(r) && !Ut(r) ? e[n] = ts(o, r) : e[n] = r;
|
|
6254
6247
|
}
|
|
6255
6248
|
return e;
|
|
6256
6249
|
}
|
|
6257
|
-
const
|
|
6250
|
+
const ns = () => {
|
|
6258
6251
|
};
|
|
6259
|
-
function
|
|
6252
|
+
function Pr(e, t, n, r = ns) {
|
|
6260
6253
|
e.push(t);
|
|
6261
6254
|
const o = () => {
|
|
6262
6255
|
const s = e.indexOf(t);
|
|
6263
6256
|
s > -1 && (e.splice(s, 1), r());
|
|
6264
6257
|
};
|
|
6265
|
-
return !n &&
|
|
6258
|
+
return !n && Ss() && bs(o), o;
|
|
6266
6259
|
}
|
|
6267
6260
|
function _e(e, ...t) {
|
|
6268
6261
|
e.slice().forEach((n) => {
|
|
6269
6262
|
n(...t);
|
|
6270
6263
|
});
|
|
6271
6264
|
}
|
|
6272
|
-
const Qa = (e) => e(),
|
|
6273
|
-
function
|
|
6265
|
+
const Qa = (e) => e(), Rr = Symbol(), St = Symbol();
|
|
6266
|
+
function Bt(e, t) {
|
|
6274
6267
|
e instanceof Map && t instanceof Map ? t.forEach((n, r) => e.set(r, n)) : e instanceof Set && t instanceof Set && t.forEach(e.add, e);
|
|
6275
6268
|
for (const n in t) {
|
|
6276
6269
|
if (!t.hasOwnProperty(n))
|
|
6277
6270
|
continue;
|
|
6278
6271
|
const r = t[n], o = e[n];
|
|
6279
|
-
fe(o) && fe(r) && e.hasOwnProperty(n) && !Be(r) && !
|
|
6272
|
+
fe(o) && fe(r) && e.hasOwnProperty(n) && !Be(r) && !Ut(r) ? e[n] = Bt(o, r) : e[n] = r;
|
|
6280
6273
|
}
|
|
6281
6274
|
return e;
|
|
6282
6275
|
}
|
|
@@ -6288,27 +6281,27 @@ function tc(e) {
|
|
|
6288
6281
|
return !fe(e) || !Object.prototype.hasOwnProperty.call(e, ec);
|
|
6289
6282
|
}
|
|
6290
6283
|
const { assign: U } = Object;
|
|
6291
|
-
function
|
|
6284
|
+
function Nr(e) {
|
|
6292
6285
|
return !!(Be(e) && e.effect);
|
|
6293
6286
|
}
|
|
6294
|
-
function
|
|
6287
|
+
function Vr(e, t, n, r) {
|
|
6295
6288
|
const { state: o, actions: s, getters: i } = t, u = n.state.value[e];
|
|
6296
6289
|
let a;
|
|
6297
6290
|
function c() {
|
|
6298
6291
|
!u && (process.env.NODE_ENV === "production" || !r) && (n.state.value[e] = o ? o() : {});
|
|
6299
6292
|
const p = process.env.NODE_ENV !== "production" && r ? (
|
|
6300
6293
|
// use ref() to unwrap refs inside state TODO: check if this is still necessary
|
|
6301
|
-
|
|
6302
|
-
) :
|
|
6303
|
-
return U(p, s, Object.keys(i || {}).reduce((l, f) => (process.env.NODE_ENV !== "production" && f in p && console.warn(`[🍍]: A getter cannot have the same name as another state property. Rename one of them. Found with "${f}" in store "${e}".`), l[f] = se(
|
|
6294
|
+
mn(ye(o ? o() : {}).value)
|
|
6295
|
+
) : mn(n.state.value[e]);
|
|
6296
|
+
return U(p, s, Object.keys(i || {}).reduce((l, f) => (process.env.NODE_ENV !== "production" && f in p && console.warn(`[🍍]: A getter cannot have the same name as another state property. Rename one of them. Found with "${f}" in store "${e}".`), l[f] = se(zr(() => {
|
|
6304
6297
|
ze(n);
|
|
6305
6298
|
const d = n._s.get(e);
|
|
6306
6299
|
return i[f].call(d, d);
|
|
6307
6300
|
})), l), {}));
|
|
6308
6301
|
}
|
|
6309
|
-
return a =
|
|
6302
|
+
return a = $t(e, c, t, n, r, !0), a;
|
|
6310
6303
|
}
|
|
6311
|
-
function
|
|
6304
|
+
function $t(e, t, n = {}, r, o, s) {
|
|
6312
6305
|
let i;
|
|
6313
6306
|
const u = U({ actions: {} }, n);
|
|
6314
6307
|
if (process.env.NODE_ENV !== "production" && !r._e.active)
|
|
@@ -6328,14 +6321,14 @@ function Ut(e, t, n = {}, r, o, s) {
|
|
|
6328
6321
|
type: G.patchFunction,
|
|
6329
6322
|
storeId: e,
|
|
6330
6323
|
events: d
|
|
6331
|
-
}) : (
|
|
6324
|
+
}) : (Bt(r.state.value[e], S), y = {
|
|
6332
6325
|
type: G.patchObject,
|
|
6333
6326
|
payload: S,
|
|
6334
6327
|
storeId: e,
|
|
6335
6328
|
events: d
|
|
6336
6329
|
});
|
|
6337
6330
|
const T = g = Symbol();
|
|
6338
|
-
|
|
6331
|
+
gn().then(() => {
|
|
6339
6332
|
g === T && (c = !0);
|
|
6340
6333
|
}), p = !0, _e(l, y, r.state.value[e]);
|
|
6341
6334
|
}
|
|
@@ -6348,13 +6341,13 @@ function Ut(e, t, n = {}, r, o, s) {
|
|
|
6348
6341
|
/* istanbul ignore next */
|
|
6349
6342
|
process.env.NODE_ENV !== "production" ? () => {
|
|
6350
6343
|
throw new Error(`🍍: Store "${e}" is built using the setup syntax and does not implement $reset().`);
|
|
6351
|
-
} :
|
|
6344
|
+
} : ns
|
|
6352
6345
|
);
|
|
6353
6346
|
function O() {
|
|
6354
6347
|
i.stop(), l = [], f = [], r._s.delete(e);
|
|
6355
6348
|
}
|
|
6356
6349
|
const N = (S, y = "") => {
|
|
6357
|
-
if (
|
|
6350
|
+
if (Rr in S)
|
|
6358
6351
|
return S[St] = y, S;
|
|
6359
6352
|
const T = function() {
|
|
6360
6353
|
ze(r);
|
|
@@ -6380,7 +6373,7 @@ function Ut(e, t, n = {}, r, o, s) {
|
|
|
6380
6373
|
}
|
|
6381
6374
|
return z instanceof Promise ? z.then((C) => (_e($, C), C)).catch((C) => (_e(de, C), Promise.reject(C))) : (_e($, z), z);
|
|
6382
6375
|
};
|
|
6383
|
-
return T[
|
|
6376
|
+
return T[Rr] = !0, T[St] = y, T;
|
|
6384
6377
|
}, J = /* @__PURE__ */ se({
|
|
6385
6378
|
actions: {},
|
|
6386
6379
|
getters: {},
|
|
@@ -6390,11 +6383,11 @@ function Ut(e, t, n = {}, r, o, s) {
|
|
|
6390
6383
|
_p: r,
|
|
6391
6384
|
// _s: scope,
|
|
6392
6385
|
$id: e,
|
|
6393
|
-
$onAction:
|
|
6386
|
+
$onAction: Pr.bind(null, f),
|
|
6394
6387
|
$patch: E,
|
|
6395
6388
|
$reset: w,
|
|
6396
6389
|
$subscribe(S, y = {}) {
|
|
6397
|
-
const T =
|
|
6390
|
+
const T = Pr(l, S, y.detached, () => D()), D = i.run(() => jr(() => r.state.value[e], ($) => {
|
|
6398
6391
|
(y.flush === "sync" ? p : c) && S({
|
|
6399
6392
|
storeId: e,
|
|
6400
6393
|
type: G.direct,
|
|
@@ -6404,7 +6397,7 @@ function Ut(e, t, n = {}, r, o, s) {
|
|
|
6404
6397
|
return T;
|
|
6405
6398
|
},
|
|
6406
6399
|
$dispose: O
|
|
6407
|
-
}, b =
|
|
6400
|
+
}, b = ys(process.env.NODE_ENV !== "production" || process.env.NODE_ENV !== "production" && process.env.NODE_ENV !== "test" && Q ? U(
|
|
6408
6401
|
{
|
|
6409
6402
|
_hmrPayload: J,
|
|
6410
6403
|
_customProperties: se(/* @__PURE__ */ new Set())
|
|
@@ -6415,15 +6408,15 @@ function Ut(e, t, n = {}, r, o, s) {
|
|
|
6415
6408
|
// setupStore
|
|
6416
6409
|
) : B);
|
|
6417
6410
|
r._s.set(e, b);
|
|
6418
|
-
const V = (r._a && r._a.runWithContext || Qa)(() => r._e.run(() => (i =
|
|
6411
|
+
const V = (r._a && r._a.runWithContext || Qa)(() => r._e.run(() => (i = Fr()).run(() => t({ action: N }))));
|
|
6419
6412
|
for (const S in V) {
|
|
6420
6413
|
const y = V[S];
|
|
6421
|
-
if (Be(y) && !
|
|
6422
|
-
process.env.NODE_ENV !== "production" && o ? m.value[S] = pt(V, S) : s || (h && tc(y) && (Be(y) ? y.value = h[S] :
|
|
6414
|
+
if (Be(y) && !Nr(y) || Ut(y))
|
|
6415
|
+
process.env.NODE_ENV !== "production" && o ? m.value[S] = pt(V, S) : s || (h && tc(y) && (Be(y) ? y.value = h[S] : Bt(y, h[S])), r.state.value[e][S] = y), process.env.NODE_ENV !== "production" && J.state.push(S);
|
|
6423
6416
|
else if (typeof y == "function") {
|
|
6424
6417
|
const T = process.env.NODE_ENV !== "production" && o ? y : N(y, S);
|
|
6425
6418
|
V[S] = T, process.env.NODE_ENV !== "production" && (J.actions[S] = y), u.actions[S] = y;
|
|
6426
|
-
} else process.env.NODE_ENV !== "production" &&
|
|
6419
|
+
} else process.env.NODE_ENV !== "production" && Nr(y) && (J.getters[S] = s ? (
|
|
6427
6420
|
// @ts-expect-error
|
|
6428
6421
|
n.getters[S]
|
|
6429
6422
|
) : y, Q && (V._getters || // @ts-expect-error: same
|
|
@@ -6442,12 +6435,12 @@ function Ut(e, t, n = {}, r, o, s) {
|
|
|
6442
6435
|
b._hotUpdating = !0, S._hmrPayload.state.forEach((y) => {
|
|
6443
6436
|
if (y in b.$state) {
|
|
6444
6437
|
const T = S.$state[y], D = b.$state[y];
|
|
6445
|
-
typeof T == "object" && fe(T) && fe(D) ?
|
|
6438
|
+
typeof T == "object" && fe(T) && fe(D) ? ts(T, D) : S.$state[y] = D;
|
|
6446
6439
|
}
|
|
6447
6440
|
b[y] = pt(S.$state, y);
|
|
6448
6441
|
}), Object.keys(b.$state).forEach((y) => {
|
|
6449
6442
|
y in S.$state || delete b[y];
|
|
6450
|
-
}), c = !1, p = !1, r.state.value[e] = pt(S._hmrPayload, "hotState"), p = !0,
|
|
6443
|
+
}), c = !1, p = !1, r.state.value[e] = pt(S._hmrPayload, "hotState"), p = !0, gn().then(() => {
|
|
6451
6444
|
c = !0;
|
|
6452
6445
|
});
|
|
6453
6446
|
for (const y in S._hmrPayload.actions) {
|
|
@@ -6458,7 +6451,7 @@ function Ut(e, t, n = {}, r, o, s) {
|
|
|
6458
6451
|
for (const y in S._hmrPayload.getters) {
|
|
6459
6452
|
const T = S._hmrPayload.getters[y], D = s ? (
|
|
6460
6453
|
// special handling of options api
|
|
6461
|
-
|
|
6454
|
+
zr(() => (ze(r), T.call(b, b)))
|
|
6462
6455
|
) : T;
|
|
6463
6456
|
b[y] = //
|
|
6464
6457
|
D;
|
|
@@ -6506,21 +6499,21 @@ function nc(e, t, n) {
|
|
|
6506
6499
|
const o = typeof t == "function";
|
|
6507
6500
|
r = o ? n : t;
|
|
6508
6501
|
function s(i, u) {
|
|
6509
|
-
const a =
|
|
6502
|
+
const a = Es();
|
|
6510
6503
|
if (i = // in test mode, ignore the argument provided as we can always retrieve a
|
|
6511
6504
|
// pinia instance with getActivePinia()
|
|
6512
|
-
(process.env.NODE_ENV === "test" && Re && Re._testing ? null : i) || (a ?
|
|
6505
|
+
(process.env.NODE_ENV === "test" && Re && Re._testing ? null : i) || (a ? Hr(Go, null) : null), i && ze(i), process.env.NODE_ENV !== "production" && !Re)
|
|
6513
6506
|
throw new Error(`[🍍]: "getActivePinia()" was called but there was no active Pinia. Are you trying to use a store before calling "app.use(pinia)"?
|
|
6514
6507
|
See https://pinia.vuejs.org/core-concepts/outside-component-usage.html for help.
|
|
6515
6508
|
This will fail in production.`);
|
|
6516
|
-
i = Re, i._s.has(e) || (o ?
|
|
6509
|
+
i = Re, i._s.has(e) || (o ? $t(e, t, r, i) : Vr(e, r, i), process.env.NODE_ENV !== "production" && (s._pinia = i));
|
|
6517
6510
|
const c = i._s.get(e);
|
|
6518
6511
|
if (process.env.NODE_ENV !== "production" && u) {
|
|
6519
|
-
const p = "__hot:" + e, l = o ?
|
|
6512
|
+
const p = "__hot:" + e, l = o ? $t(p, t, r, i, !0) : Vr(p, U({}, r), i, !0);
|
|
6520
6513
|
u._hotUpdate(l), delete i.state.value[p], i._s.delete(p);
|
|
6521
6514
|
}
|
|
6522
6515
|
if (process.env.NODE_ENV !== "production" && Q) {
|
|
6523
|
-
const p =
|
|
6516
|
+
const p = vs();
|
|
6524
6517
|
if (p && p.proxy && // avoid adding stores that are just built for hot module replacement
|
|
6525
6518
|
!u) {
|
|
6526
6519
|
const l = p.proxy, f = "_pStores" in l ? l._pStores : l._pStores = {};
|
|
@@ -6537,8 +6530,8 @@ const rc = /* @__PURE__ */ nc("data", () => {
|
|
|
6537
6530
|
});
|
|
6538
6531
|
function ul(e) {
|
|
6539
6532
|
const t = ye();
|
|
6540
|
-
return
|
|
6541
|
-
if (e || (e =
|
|
6533
|
+
return As(async () => {
|
|
6534
|
+
if (e || (e = Hr("$registry")), !e || !e.router) return;
|
|
6542
6535
|
let n;
|
|
6543
6536
|
try {
|
|
6544
6537
|
n = rc();
|
|
@@ -6672,7 +6665,7 @@ function oc(e) {
|
|
|
6672
6665
|
Promise.resolve(!1);
|
|
6673
6666
|
Promise.resolve(!0);
|
|
6674
6667
|
var ae = Promise.resolve();
|
|
6675
|
-
function
|
|
6668
|
+
function rs(e, t) {
|
|
6676
6669
|
return e || (e = 0), new Promise(function(n) {
|
|
6677
6670
|
return setTimeout(function() {
|
|
6678
6671
|
return n(t);
|
|
@@ -6682,7 +6675,7 @@ function os(e, t) {
|
|
|
6682
6675
|
function sc(e, t) {
|
|
6683
6676
|
return Math.floor(Math.random() * (t - e + 1) + e);
|
|
6684
6677
|
}
|
|
6685
|
-
function
|
|
6678
|
+
function ln() {
|
|
6686
6679
|
return Math.random().toString(36).substring(2);
|
|
6687
6680
|
}
|
|
6688
6681
|
var bt = 0;
|
|
@@ -6739,7 +6732,7 @@ var pc = {
|
|
|
6739
6732
|
averageResponseTime: hc,
|
|
6740
6733
|
microSeconds: ic
|
|
6741
6734
|
};
|
|
6742
|
-
class
|
|
6735
|
+
class os {
|
|
6743
6736
|
ttl;
|
|
6744
6737
|
map = /* @__PURE__ */ new Map();
|
|
6745
6738
|
/**
|
|
@@ -6754,7 +6747,7 @@ class ss {
|
|
|
6754
6747
|
return this.map.has(t);
|
|
6755
6748
|
}
|
|
6756
6749
|
add(t) {
|
|
6757
|
-
this.map.set(t,
|
|
6750
|
+
this.map.set(t, ss()), this._to || (this._to = !0, setTimeout(() => {
|
|
6758
6751
|
this._to = !1, _c(this);
|
|
6759
6752
|
}, 0));
|
|
6760
6753
|
}
|
|
@@ -6763,7 +6756,7 @@ class ss {
|
|
|
6763
6756
|
}
|
|
6764
6757
|
}
|
|
6765
6758
|
function _c(e) {
|
|
6766
|
-
const t =
|
|
6759
|
+
const t = ss() - e.ttl, n = e.map[Symbol.iterator]();
|
|
6767
6760
|
for (; ; ) {
|
|
6768
6761
|
const r = n.next().value;
|
|
6769
6762
|
if (!r)
|
|
@@ -6775,17 +6768,17 @@ function _c(e) {
|
|
|
6775
6768
|
return;
|
|
6776
6769
|
}
|
|
6777
6770
|
}
|
|
6778
|
-
function
|
|
6771
|
+
function ss() {
|
|
6779
6772
|
return Date.now();
|
|
6780
6773
|
}
|
|
6781
|
-
function
|
|
6774
|
+
function fn() {
|
|
6782
6775
|
var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, t = JSON.parse(JSON.stringify(e));
|
|
6783
6776
|
return typeof t.webWorkerSupport > "u" && (t.webWorkerSupport = !0), t.idb || (t.idb = {}), t.idb.ttl || (t.idb.ttl = 1e3 * 45), t.idb.fallbackInterval || (t.idb.fallbackInterval = 150), e.idb && typeof e.idb.onclose == "function" && (t.idb.onclose = e.idb.onclose), t.localstorage || (t.localstorage = {}), t.localstorage.removeTimeout || (t.localstorage.removeTimeout = 1e3 * 60), e.methods && (t.methods = e.methods), t.node || (t.node = {}), t.node.ttl || (t.node.ttl = 1e3 * 60 * 2), t.node.maxParallelWrites || (t.node.maxParallelWrites = 2048), typeof t.node.useFastPath > "u" && (t.node.useFastPath = !0), t;
|
|
6784
6777
|
}
|
|
6785
6778
|
var gc = We, mc = "pubkey.broadcast-channel-0-", q = "messages", dt = {
|
|
6786
6779
|
durability: "relaxed"
|
|
6787
6780
|
}, Ec = "idb";
|
|
6788
|
-
function
|
|
6781
|
+
function is() {
|
|
6789
6782
|
if (typeof indexedDB < "u") return indexedDB;
|
|
6790
6783
|
if (typeof window < "u") {
|
|
6791
6784
|
if (typeof window.mozIndexedDB < "u") return window.mozIndexedDB;
|
|
@@ -6794,11 +6787,11 @@ function us() {
|
|
|
6794
6787
|
}
|
|
6795
6788
|
return !1;
|
|
6796
6789
|
}
|
|
6797
|
-
function
|
|
6790
|
+
function dn(e) {
|
|
6798
6791
|
e.commit && e.commit();
|
|
6799
6792
|
}
|
|
6800
6793
|
function vc(e) {
|
|
6801
|
-
var t =
|
|
6794
|
+
var t = is(), n = mc + e, r = t.open(n);
|
|
6802
6795
|
return r.onupgradeneeded = function(o) {
|
|
6803
6796
|
var s = o.target.result;
|
|
6804
6797
|
s.createObjectStore(q, {
|
|
@@ -6826,7 +6819,7 @@ function yc(e, t, n) {
|
|
|
6826
6819
|
return u(c);
|
|
6827
6820
|
};
|
|
6828
6821
|
var a = s.objectStore(q);
|
|
6829
|
-
a.add(o),
|
|
6822
|
+
a.add(o), dn(s);
|
|
6830
6823
|
});
|
|
6831
6824
|
}
|
|
6832
6825
|
function Sc(e, t) {
|
|
@@ -6854,7 +6847,7 @@ function Sc(e, t) {
|
|
|
6854
6847
|
return c(l);
|
|
6855
6848
|
}, p.onsuccess = function(l) {
|
|
6856
6849
|
var f = l.target.result;
|
|
6857
|
-
f ? f.value.id < t + 1 ? f.continue(t + 1) : (o.push(f.value), f.continue()) : (
|
|
6850
|
+
f ? f.value.id < t + 1 ? f.continue(t + 1) : (o.push(f.value), f.continue()) : (dn(n), a(o));
|
|
6858
6851
|
};
|
|
6859
6852
|
});
|
|
6860
6853
|
}
|
|
@@ -6878,7 +6871,7 @@ function Ac(e, t) {
|
|
|
6878
6871
|
var a = u.target.result;
|
|
6879
6872
|
if (a) {
|
|
6880
6873
|
var c = a.value;
|
|
6881
|
-
c.time < n ? (s.push(c), a.continue()) : (
|
|
6874
|
+
c.time < n ? (s.push(c), a.continue()) : (dn(r), i(s));
|
|
6882
6875
|
} else
|
|
6883
6876
|
i(s);
|
|
6884
6877
|
};
|
|
@@ -6892,19 +6885,19 @@ function wc(e) {
|
|
|
6892
6885
|
});
|
|
6893
6886
|
}
|
|
6894
6887
|
function Oc(e, t) {
|
|
6895
|
-
return t =
|
|
6888
|
+
return t = fn(t), vc(e).then(function(n) {
|
|
6896
6889
|
var r = {
|
|
6897
6890
|
closed: !1,
|
|
6898
6891
|
lastCursorId: 0,
|
|
6899
6892
|
channelName: e,
|
|
6900
6893
|
options: t,
|
|
6901
|
-
uuid:
|
|
6894
|
+
uuid: ln(),
|
|
6902
6895
|
/**
|
|
6903
6896
|
* emittedMessagesIds
|
|
6904
6897
|
* contains all messages that have been emitted before
|
|
6905
6898
|
* @type {ObliviousSet}
|
|
6906
6899
|
*/
|
|
6907
|
-
eMIs: new
|
|
6900
|
+
eMIs: new os(t.idb.ttl * 2),
|
|
6908
6901
|
// ensures we do not read messages in parallel
|
|
6909
6902
|
writeBlockPromise: ae,
|
|
6910
6903
|
messagesCallback: null,
|
|
@@ -6913,20 +6906,20 @@ function Oc(e, t) {
|
|
|
6913
6906
|
};
|
|
6914
6907
|
return n.onclose = function() {
|
|
6915
6908
|
r.closed = !0, t.idb.onclose && t.idb.onclose();
|
|
6916
|
-
},
|
|
6909
|
+
}, us(r), r;
|
|
6917
6910
|
});
|
|
6918
6911
|
}
|
|
6919
|
-
function
|
|
6920
|
-
e.closed ||
|
|
6921
|
-
return
|
|
6912
|
+
function us(e) {
|
|
6913
|
+
e.closed || as(e).then(function() {
|
|
6914
|
+
return rs(e.options.idb.fallbackInterval);
|
|
6922
6915
|
}).then(function() {
|
|
6923
|
-
return
|
|
6916
|
+
return us(e);
|
|
6924
6917
|
});
|
|
6925
6918
|
}
|
|
6926
6919
|
function Tc(e, t) {
|
|
6927
6920
|
return !(e.uuid === t.uuid || t.eMIs.has(e.id) || e.data.time < t.messagesCallbackTime);
|
|
6928
6921
|
}
|
|
6929
|
-
function
|
|
6922
|
+
function as(e) {
|
|
6930
6923
|
return e.closed || !e.messagesCallback ? ae : Sc(e.db, e.lastCursorId).then(function(t) {
|
|
6931
6924
|
var n = t.filter(function(r) {
|
|
6932
6925
|
return !!r;
|
|
@@ -6953,10 +6946,10 @@ function Cc(e, t) {
|
|
|
6953
6946
|
}), e.writeBlockPromise;
|
|
6954
6947
|
}
|
|
6955
6948
|
function kc(e, t, n) {
|
|
6956
|
-
e.messagesCallbackTime = n, e.messagesCallback = t,
|
|
6949
|
+
e.messagesCallbackTime = n, e.messagesCallback = t, as(e);
|
|
6957
6950
|
}
|
|
6958
6951
|
function Dc() {
|
|
6959
|
-
return !!
|
|
6952
|
+
return !!is();
|
|
6960
6953
|
}
|
|
6961
6954
|
function xc(e) {
|
|
6962
6955
|
return e.idb.fallbackInterval * 2;
|
|
@@ -6971,7 +6964,7 @@ var Pc = {
|
|
|
6971
6964
|
averageResponseTime: xc,
|
|
6972
6965
|
microSeconds: gc
|
|
6973
6966
|
}, Rc = We, Nc = "pubkey.broadcastChannel-", Vc = "localstorage";
|
|
6974
|
-
function
|
|
6967
|
+
function cs() {
|
|
6975
6968
|
var e;
|
|
6976
6969
|
if (typeof window > "u") return null;
|
|
6977
6970
|
try {
|
|
@@ -6980,26 +6973,26 @@ function ls() {
|
|
|
6980
6973
|
}
|
|
6981
6974
|
return e;
|
|
6982
6975
|
}
|
|
6983
|
-
function
|
|
6976
|
+
function ls(e) {
|
|
6984
6977
|
return Nc + e;
|
|
6985
6978
|
}
|
|
6986
6979
|
function Lc(e, t) {
|
|
6987
6980
|
return new Promise(function(n) {
|
|
6988
|
-
|
|
6989
|
-
var r =
|
|
6990
|
-
token:
|
|
6981
|
+
rs().then(function() {
|
|
6982
|
+
var r = ls(e.channelName), o = {
|
|
6983
|
+
token: ln(),
|
|
6991
6984
|
time: Date.now(),
|
|
6992
6985
|
data: t,
|
|
6993
6986
|
uuid: e.uuid
|
|
6994
6987
|
}, s = JSON.stringify(o);
|
|
6995
|
-
|
|
6988
|
+
cs().setItem(r, s);
|
|
6996
6989
|
var i = document.createEvent("Event");
|
|
6997
6990
|
i.initEvent("storage", !0, !0), i.key = r, i.newValue = s, window.dispatchEvent(i), n();
|
|
6998
6991
|
});
|
|
6999
6992
|
});
|
|
7000
6993
|
}
|
|
7001
6994
|
function Mc(e, t) {
|
|
7002
|
-
var n =
|
|
6995
|
+
var n = ls(e), r = function(s) {
|
|
7003
6996
|
s.key === n && t(JSON.parse(s.newValue));
|
|
7004
6997
|
};
|
|
7005
6998
|
return window.addEventListener("storage", r), r;
|
|
@@ -7008,9 +7001,9 @@ function Bc(e) {
|
|
|
7008
7001
|
window.removeEventListener("storage", e);
|
|
7009
7002
|
}
|
|
7010
7003
|
function $c(e, t) {
|
|
7011
|
-
if (t =
|
|
7004
|
+
if (t = fn(t), !fs())
|
|
7012
7005
|
throw new Error("BroadcastChannel: localstorage cannot be used");
|
|
7013
|
-
var n =
|
|
7006
|
+
var n = ln(), r = new os(t.localstorage.removeTimeout), o = {
|
|
7014
7007
|
channelName: e,
|
|
7015
7008
|
uuid: n,
|
|
7016
7009
|
eMIs: r
|
|
@@ -7026,8 +7019,8 @@ function Uc(e) {
|
|
|
7026
7019
|
function Fc(e, t, n) {
|
|
7027
7020
|
e.messagesCallbackTime = n, e.messagesCallback = t;
|
|
7028
7021
|
}
|
|
7029
|
-
function
|
|
7030
|
-
var e =
|
|
7022
|
+
function fs() {
|
|
7023
|
+
var e = cs();
|
|
7031
7024
|
if (!e) return !1;
|
|
7032
7025
|
try {
|
|
7033
7026
|
var t = "__broadcastchannel_check";
|
|
@@ -7046,33 +7039,33 @@ var Hc = {
|
|
|
7046
7039
|
close: Uc,
|
|
7047
7040
|
onMessage: Fc,
|
|
7048
7041
|
postMessage: Lc,
|
|
7049
|
-
canBeUsed:
|
|
7042
|
+
canBeUsed: fs,
|
|
7050
7043
|
type: Vc,
|
|
7051
7044
|
averageResponseTime: jc,
|
|
7052
7045
|
microSeconds: Rc
|
|
7053
|
-
},
|
|
7046
|
+
}, ds = We, zc = "simulate", hn = /* @__PURE__ */ new Set();
|
|
7054
7047
|
function Kc(e) {
|
|
7055
7048
|
var t = {
|
|
7056
|
-
time:
|
|
7049
|
+
time: ds(),
|
|
7057
7050
|
name: e,
|
|
7058
7051
|
messagesCallback: null
|
|
7059
7052
|
};
|
|
7060
|
-
return
|
|
7053
|
+
return hn.add(t), t;
|
|
7061
7054
|
}
|
|
7062
7055
|
function Gc(e) {
|
|
7063
|
-
|
|
7056
|
+
hn.delete(e);
|
|
7064
7057
|
}
|
|
7065
|
-
var
|
|
7058
|
+
var hs = 5;
|
|
7066
7059
|
function Wc(e, t) {
|
|
7067
7060
|
return new Promise(function(n) {
|
|
7068
7061
|
return setTimeout(function() {
|
|
7069
|
-
var r = Array.from(
|
|
7062
|
+
var r = Array.from(hn);
|
|
7070
7063
|
r.forEach(function(o) {
|
|
7071
7064
|
o.name === e.name && // has same name
|
|
7072
7065
|
o !== e && o.messagesCallback && // has subscribers
|
|
7073
7066
|
o.time < t.time && o.messagesCallback(t);
|
|
7074
7067
|
}), n();
|
|
7075
|
-
},
|
|
7068
|
+
}, hs);
|
|
7076
7069
|
});
|
|
7077
7070
|
}
|
|
7078
7071
|
function Yc(e, t) {
|
|
@@ -7082,7 +7075,7 @@ function qc() {
|
|
|
7082
7075
|
return !0;
|
|
7083
7076
|
}
|
|
7084
7077
|
function Jc() {
|
|
7085
|
-
return
|
|
7078
|
+
return hs;
|
|
7086
7079
|
}
|
|
7087
7080
|
var Xc = {
|
|
7088
7081
|
create: Kc,
|
|
@@ -7092,15 +7085,15 @@ var Xc = {
|
|
|
7092
7085
|
canBeUsed: qc,
|
|
7093
7086
|
type: zc,
|
|
7094
7087
|
averageResponseTime: Jc,
|
|
7095
|
-
microSeconds:
|
|
7096
|
-
},
|
|
7088
|
+
microSeconds: ds
|
|
7089
|
+
}, Lr = [
|
|
7097
7090
|
pc,
|
|
7098
7091
|
// fastest
|
|
7099
7092
|
Pc,
|
|
7100
7093
|
Hc
|
|
7101
7094
|
];
|
|
7102
7095
|
function Zc(e) {
|
|
7103
|
-
var t = [].concat(e.methods,
|
|
7096
|
+
var t = [].concat(e.methods, Lr).filter(Boolean);
|
|
7104
7097
|
if (e.type) {
|
|
7105
7098
|
if (e.type === "simulate")
|
|
7106
7099
|
return Xc;
|
|
@@ -7118,18 +7111,18 @@ function Zc(e) {
|
|
|
7118
7111
|
});
|
|
7119
7112
|
if (r)
|
|
7120
7113
|
return r;
|
|
7121
|
-
throw new Error("No usable method found in " + JSON.stringify(
|
|
7114
|
+
throw new Error("No usable method found in " + JSON.stringify(Lr.map(function(o) {
|
|
7122
7115
|
return o.type;
|
|
7123
7116
|
})));
|
|
7124
7117
|
}
|
|
7125
|
-
var
|
|
7126
|
-
this.id = Qc++,
|
|
7118
|
+
var ps = /* @__PURE__ */ new Set(), Qc = 0, pn = function(t, n) {
|
|
7119
|
+
this.id = Qc++, ps.add(this), this.name = t, this.options = fn(n), this.method = Zc(this.options), this._iL = !1, this._onML = null, this._addEL = {
|
|
7127
7120
|
message: [],
|
|
7128
7121
|
internal: []
|
|
7129
7122
|
}, this._uMP = /* @__PURE__ */ new Set(), this._befC = [], this._prepP = null, el(this);
|
|
7130
7123
|
};
|
|
7131
|
-
|
|
7132
|
-
|
|
7124
|
+
pn._pubkey = !0;
|
|
7125
|
+
pn.prototype = {
|
|
7133
7126
|
postMessage: function(t) {
|
|
7134
7127
|
if (this.closed)
|
|
7135
7128
|
throw new Error("BroadcastChannel.postMessage(): Cannot post message after channel has closed " + /**
|
|
@@ -7138,35 +7131,35 @@ _n.prototype = {
|
|
|
7138
7131
|
* gives some clue about where in your application this happens.
|
|
7139
7132
|
*/
|
|
7140
7133
|
JSON.stringify(t));
|
|
7141
|
-
return
|
|
7134
|
+
return Mr(this, "message", t);
|
|
7142
7135
|
},
|
|
7143
7136
|
postInternal: function(t) {
|
|
7144
|
-
return
|
|
7137
|
+
return Mr(this, "internal", t);
|
|
7145
7138
|
},
|
|
7146
7139
|
set onmessage(e) {
|
|
7147
7140
|
var t = this.method.microSeconds(), n = {
|
|
7148
7141
|
time: t,
|
|
7149
7142
|
fn: e
|
|
7150
7143
|
};
|
|
7151
|
-
|
|
7144
|
+
$r(this, "message", this._onML), e && typeof e == "function" ? (this._onML = n, Br(this, "message", n)) : this._onML = null;
|
|
7152
7145
|
},
|
|
7153
7146
|
addEventListener: function(t, n) {
|
|
7154
7147
|
var r = this.method.microSeconds(), o = {
|
|
7155
7148
|
time: r,
|
|
7156
7149
|
fn: n
|
|
7157
7150
|
};
|
|
7158
|
-
|
|
7151
|
+
Br(this, t, o);
|
|
7159
7152
|
},
|
|
7160
7153
|
removeEventListener: function(t, n) {
|
|
7161
7154
|
var r = this._addEL[t].find(function(o) {
|
|
7162
7155
|
return o.fn === n;
|
|
7163
7156
|
});
|
|
7164
|
-
|
|
7157
|
+
$r(this, t, r);
|
|
7165
7158
|
},
|
|
7166
7159
|
close: function() {
|
|
7167
7160
|
var t = this;
|
|
7168
7161
|
if (!this.closed) {
|
|
7169
|
-
|
|
7162
|
+
ps.delete(this), this.closed = !0;
|
|
7170
7163
|
var n = this._prepP ? this._prepP : ae;
|
|
7171
7164
|
return this._onML = null, this._addEL.message = [], n.then(function() {
|
|
7172
7165
|
return Promise.all(Array.from(t._uMP));
|
|
@@ -7186,7 +7179,7 @@ _n.prototype = {
|
|
|
7186
7179
|
return this.closed;
|
|
7187
7180
|
}
|
|
7188
7181
|
};
|
|
7189
|
-
function
|
|
7182
|
+
function Mr(e, t, n) {
|
|
7190
7183
|
var r = e.method.microSeconds(), o = {
|
|
7191
7184
|
time: r,
|
|
7192
7185
|
type: t,
|
|
@@ -7205,19 +7198,19 @@ function el(e) {
|
|
|
7205
7198
|
e._state = n;
|
|
7206
7199
|
})) : e._state = t;
|
|
7207
7200
|
}
|
|
7208
|
-
function
|
|
7201
|
+
function _s(e) {
|
|
7209
7202
|
return e._addEL.message.length > 0 || e._addEL.internal.length > 0;
|
|
7210
7203
|
}
|
|
7211
|
-
function
|
|
7204
|
+
function Br(e, t, n) {
|
|
7212
7205
|
e._addEL[t].push(n), tl(e);
|
|
7213
7206
|
}
|
|
7214
|
-
function
|
|
7207
|
+
function $r(e, t, n) {
|
|
7215
7208
|
e._addEL[t] = e._addEL[t].filter(function(r) {
|
|
7216
7209
|
return r !== n;
|
|
7217
7210
|
}), nl(e);
|
|
7218
7211
|
}
|
|
7219
7212
|
function tl(e) {
|
|
7220
|
-
if (!e._iL &&
|
|
7213
|
+
if (!e._iL && _s(e)) {
|
|
7221
7214
|
var t = function(o) {
|
|
7222
7215
|
e._addEL[o.type].forEach(function(s) {
|
|
7223
7216
|
o.time >= s.time && s.fn(o.data);
|
|
@@ -7229,13 +7222,13 @@ function tl(e) {
|
|
|
7229
7222
|
}
|
|
7230
7223
|
}
|
|
7231
7224
|
function nl(e) {
|
|
7232
|
-
if (e._iL && !
|
|
7225
|
+
if (e._iL && !_s(e)) {
|
|
7233
7226
|
e._iL = !1;
|
|
7234
7227
|
var t = e.method.microSeconds();
|
|
7235
7228
|
e.method.onMessage(e._state, null, t);
|
|
7236
7229
|
}
|
|
7237
7230
|
}
|
|
7238
|
-
function
|
|
7231
|
+
function Ur(e, t = { serialize: JSON.stringify, deserialize: JSON.parse }) {
|
|
7239
7232
|
return t.deserialize(t.serialize(e));
|
|
7240
7233
|
}
|
|
7241
7234
|
function rl(e, t) {
|
|
@@ -7251,7 +7244,7 @@ function ol({
|
|
|
7251
7244
|
const i = s?.share?.enable ?? e, u = s?.share?.omit ?? [];
|
|
7252
7245
|
if (!i)
|
|
7253
7246
|
return;
|
|
7254
|
-
const a = new
|
|
7247
|
+
const a = new pn(o.$id, {
|
|
7255
7248
|
type: n
|
|
7256
7249
|
});
|
|
7257
7250
|
let c = 0, p = !1;
|
|
@@ -7260,7 +7253,7 @@ function ol({
|
|
|
7260
7253
|
if (d === void 0) {
|
|
7261
7254
|
a.postMessage({
|
|
7262
7255
|
timestamp: c,
|
|
7263
|
-
state:
|
|
7256
|
+
state: Ur(o.$state, r)
|
|
7264
7257
|
});
|
|
7265
7258
|
return;
|
|
7266
7259
|
}
|
|
@@ -7272,13 +7265,13 @@ function ol({
|
|
|
7272
7265
|
}, (s?.share?.initialize ?? t) && a.postMessage(void 0), o.$subscribe((d, h) => {
|
|
7273
7266
|
p || (c = Date.now(), a.postMessage({
|
|
7274
7267
|
timestamp: c,
|
|
7275
|
-
state:
|
|
7268
|
+
state: Ur(h, r)
|
|
7276
7269
|
})), p = !1;
|
|
7277
7270
|
});
|
|
7278
7271
|
};
|
|
7279
7272
|
}
|
|
7280
|
-
const
|
|
7281
|
-
|
|
7273
|
+
const gs = Za();
|
|
7274
|
+
gs.use(
|
|
7282
7275
|
ol({
|
|
7283
7276
|
enable: !0,
|
|
7284
7277
|
initialize: !0
|
|
@@ -7287,7 +7280,7 @@ ms.use(
|
|
|
7287
7280
|
const cl = {
|
|
7288
7281
|
install: (e, t) => {
|
|
7289
7282
|
const n = e.config.globalProperties.$router, r = n || t?.router, o = new Le(r, t?.getMeta);
|
|
7290
|
-
if (!n && r && e.use(r), e.use(
|
|
7283
|
+
if (!n && r && e.use(r), e.use(gs), e.provide("$registry", o), t?.components)
|
|
7291
7284
|
for (const [s, i] of Object.entries(t.components))
|
|
7292
7285
|
e.component(s, i);
|
|
7293
7286
|
}
|