@xingtukeji/micro 1.0.7 → 1.0.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +165 -157
- package/dist/types/api.d.ts +1 -0
- package/dist/types/components/XTMicroView.vue.d.ts +6 -0
- package/dist/types/parent.d.ts +1 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
var Nn = Object.defineProperty, vn = Object.defineProperties;
|
|
2
2
|
var yn = Object.getOwnPropertyDescriptors;
|
|
3
|
-
var
|
|
3
|
+
var ht = Object.getOwnPropertySymbols;
|
|
4
4
|
var bn = Object.prototype.hasOwnProperty, Sn = Object.prototype.propertyIsEnumerable;
|
|
5
5
|
var Le = (e, t, n) => t in e ? Nn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, W = (e, t) => {
|
|
6
6
|
for (var n in t || (t = {}))
|
|
7
7
|
bn.call(t, n) && Le(e, n, t[n]);
|
|
8
|
-
if (
|
|
9
|
-
for (var n of
|
|
8
|
+
if (ht)
|
|
9
|
+
for (var n of ht(t))
|
|
10
10
|
Sn.call(t, n) && Le(e, n, t[n]);
|
|
11
11
|
return e;
|
|
12
12
|
}, je = (e, t) => vn(e, yn(t));
|
|
13
13
|
var pe = (e, t, n) => (Le(e, typeof t != "symbol" ? t + "" : t, n), n);
|
|
14
|
-
var
|
|
14
|
+
var _t = (e, t, n) => new Promise((r, s) => {
|
|
15
15
|
var o = (a) => {
|
|
16
16
|
try {
|
|
17
17
|
c(n.next(a));
|
|
@@ -40,10 +40,10 @@ function Rn(e, t) {
|
|
|
40
40
|
}
|
|
41
41
|
const M = process.env.NODE_ENV !== "production" ? Object.freeze({}) : {}, In = process.env.NODE_ENV !== "production" ? Object.freeze([]) : [], Z = () => {
|
|
42
42
|
}, Cn = (e) => e.charCodeAt(0) === 111 && e.charCodeAt(1) === 110 && // uppercase letter
|
|
43
|
-
(e.charCodeAt(2) > 122 || e.charCodeAt(2) < 97), I = Object.assign, xn = Object.prototype.hasOwnProperty, w = (e, t) => xn.call(e, t), m = Array.isArray, k = (e) => Me(e) === "[object Map]", Pn = (e) => Me(e) === "[object Set]", E = (e) => typeof e == "function", P = (e) => typeof e == "string", ae = (e) => typeof e == "symbol", b = (e) => e !== null && typeof e == "object", Vn = (e) => (b(e) || E(e)) && E(e.then) && E(e.catch), Mn = Object.prototype.toString, Me = (e) => Mn.call(e),
|
|
43
|
+
(e.charCodeAt(2) > 122 || e.charCodeAt(2) < 97), I = Object.assign, xn = Object.prototype.hasOwnProperty, w = (e, t) => xn.call(e, t), m = Array.isArray, k = (e) => Me(e) === "[object Map]", Pn = (e) => Me(e) === "[object Set]", E = (e) => typeof e == "function", P = (e) => typeof e == "string", ae = (e) => typeof e == "symbol", b = (e) => e !== null && typeof e == "object", Vn = (e) => (b(e) || E(e)) && E(e.then) && E(e.catch), Mn = Object.prototype.toString, Me = (e) => Mn.call(e), Mt = (e) => Me(e).slice(8, -1), Dn = (e) => Me(e) === "[object Object]", Ze = (e) => P(e) && e !== "NaN" && e[0] !== "-" && "" + parseInt(e, 10) === e, Dt = (e) => {
|
|
44
44
|
const t = /* @__PURE__ */ Object.create(null);
|
|
45
45
|
return (n) => t[n] || (t[n] = e(n));
|
|
46
|
-
},
|
|
46
|
+
}, Tt = Dt((e) => e.charAt(0).toUpperCase() + e.slice(1)), Tn = Dt((e) => e ? `on${Tt(e)}` : ""), H = (e, t) => !Object.is(e, t), $n = (e, t, n, r = !1) => {
|
|
47
47
|
Object.defineProperty(e, t, {
|
|
48
48
|
configurable: !0,
|
|
49
49
|
enumerable: !1,
|
|
@@ -51,8 +51,8 @@ const M = process.env.NODE_ENV !== "production" ? Object.freeze({}) : {}, In = p
|
|
|
51
51
|
value: n
|
|
52
52
|
});
|
|
53
53
|
};
|
|
54
|
-
let
|
|
55
|
-
const
|
|
54
|
+
let mt;
|
|
55
|
+
const $t = () => mt || (mt = typeof globalThis != "undefined" ? globalThis : typeof self != "undefined" ? self : typeof window != "undefined" ? window : typeof global != "undefined" ? global : {});
|
|
56
56
|
function ke(e) {
|
|
57
57
|
if (m(e)) {
|
|
58
58
|
const t = {};
|
|
@@ -103,7 +103,7 @@ function Hn(e, t = Fn) {
|
|
|
103
103
|
t && t.active && t.effects.push(e);
|
|
104
104
|
}
|
|
105
105
|
let J;
|
|
106
|
-
class
|
|
106
|
+
class At {
|
|
107
107
|
constructor(t, n, r, s) {
|
|
108
108
|
this.fn = t, this.trigger = n, this.scheduler = r, this.active = !0, this.deps = [], this._dirtyLevel = 4, this._trackId = 0, this._runnings = 0, this._shouldSchedule = !1, this._depsLength = 0, Hn(this, s);
|
|
109
109
|
}
|
|
@@ -127,39 +127,39 @@ class $t {
|
|
|
127
127
|
return this.fn();
|
|
128
128
|
let t = U, n = J;
|
|
129
129
|
try {
|
|
130
|
-
return U = !0, J = this, this._runnings++,
|
|
130
|
+
return U = !0, J = this, this._runnings++, gt(this), this.fn();
|
|
131
131
|
} finally {
|
|
132
|
-
|
|
132
|
+
wt(this), this._runnings--, J = n, U = t;
|
|
133
133
|
}
|
|
134
134
|
}
|
|
135
135
|
stop() {
|
|
136
|
-
this.active && (
|
|
136
|
+
this.active && (gt(this), wt(this), this.onStop && this.onStop(), this.active = !1);
|
|
137
137
|
}
|
|
138
138
|
}
|
|
139
139
|
function Kn(e) {
|
|
140
140
|
return e.value;
|
|
141
141
|
}
|
|
142
|
-
function
|
|
142
|
+
function gt(e) {
|
|
143
143
|
e._trackId++, e._depsLength = 0;
|
|
144
144
|
}
|
|
145
|
-
function
|
|
145
|
+
function wt(e) {
|
|
146
146
|
if (e.deps.length > e._depsLength) {
|
|
147
147
|
for (let t = e._depsLength; t < e.deps.length; t++)
|
|
148
|
-
|
|
148
|
+
Lt(e.deps[t], e);
|
|
149
149
|
e.deps.length = e._depsLength;
|
|
150
150
|
}
|
|
151
151
|
}
|
|
152
|
-
function
|
|
152
|
+
function Lt(e, t) {
|
|
153
153
|
const n = e.get(t);
|
|
154
154
|
n !== void 0 && t._trackId !== n && (e.delete(t), e.size === 0 && e.cleanup());
|
|
155
155
|
}
|
|
156
156
|
let U = !0, We = 0;
|
|
157
|
-
const
|
|
157
|
+
const jt = [];
|
|
158
158
|
function ue() {
|
|
159
|
-
|
|
159
|
+
jt.push(U), U = !1;
|
|
160
160
|
}
|
|
161
161
|
function fe() {
|
|
162
|
-
const e =
|
|
162
|
+
const e = jt.pop();
|
|
163
163
|
U = e === void 0 ? !0 : e;
|
|
164
164
|
}
|
|
165
165
|
function tt() {
|
|
@@ -169,16 +169,16 @@ function nt() {
|
|
|
169
169
|
for (We--; !We && Be.length; )
|
|
170
170
|
Be.shift()();
|
|
171
171
|
}
|
|
172
|
-
function
|
|
172
|
+
function Ut(e, t, n) {
|
|
173
173
|
var r;
|
|
174
174
|
if (t.get(e) !== e._trackId) {
|
|
175
175
|
t.set(e, e._trackId);
|
|
176
176
|
const s = e.deps[e._depsLength];
|
|
177
|
-
s !== t ? (s &&
|
|
177
|
+
s !== t ? (s && Lt(s, e), e.deps[e._depsLength++] = t) : e._depsLength++, process.env.NODE_ENV !== "production" && ((r = e.onTrack) == null || r.call(e, I({ effect: e }, n)));
|
|
178
178
|
}
|
|
179
179
|
}
|
|
180
180
|
const Be = [];
|
|
181
|
-
function
|
|
181
|
+
function Ft(e, t, n) {
|
|
182
182
|
var r;
|
|
183
183
|
tt();
|
|
184
184
|
for (const s of e.keys()) {
|
|
@@ -187,7 +187,7 @@ function Ut(e, t, n) {
|
|
|
187
187
|
}
|
|
188
188
|
nt();
|
|
189
189
|
}
|
|
190
|
-
const
|
|
190
|
+
const Ht = (e, t) => {
|
|
191
191
|
const n = /* @__PURE__ */ new Map();
|
|
192
192
|
return n.cleanup = e, n.computed = t, n;
|
|
193
193
|
}, qe = /* @__PURE__ */ new WeakMap(), Y = Symbol(process.env.NODE_ENV !== "production" ? "iterate" : ""), Je = Symbol(process.env.NODE_ENV !== "production" ? "Map key iterate" : "");
|
|
@@ -196,7 +196,7 @@ function v(e, t, n) {
|
|
|
196
196
|
let r = qe.get(e);
|
|
197
197
|
r || qe.set(e, r = /* @__PURE__ */ new Map());
|
|
198
198
|
let s = r.get(n);
|
|
199
|
-
s || r.set(n, s =
|
|
199
|
+
s || r.set(n, s = Ht(() => r.delete(n))), Ut(
|
|
200
200
|
J,
|
|
201
201
|
s,
|
|
202
202
|
process.env.NODE_ENV !== "production" ? {
|
|
@@ -233,7 +233,7 @@ function F(e, t, n, r, s, o) {
|
|
|
233
233
|
}
|
|
234
234
|
tt();
|
|
235
235
|
for (const a of c)
|
|
236
|
-
a &&
|
|
236
|
+
a && Ft(
|
|
237
237
|
a,
|
|
238
238
|
4,
|
|
239
239
|
process.env.NODE_ENV !== "production" ? {
|
|
@@ -247,9 +247,9 @@ function F(e, t, n, r, s, o) {
|
|
|
247
247
|
);
|
|
248
248
|
nt();
|
|
249
249
|
}
|
|
250
|
-
const zn = /* @__PURE__ */ Rn("__proto__,__v_isRef,__isVue"),
|
|
250
|
+
const zn = /* @__PURE__ */ Rn("__proto__,__v_isRef,__isVue"), Kt = new Set(
|
|
251
251
|
/* @__PURE__ */ Object.getOwnPropertyNames(Symbol).filter((e) => e !== "arguments" && e !== "caller").map((e) => Symbol[e]).filter(ae)
|
|
252
|
-
),
|
|
252
|
+
), Et = /* @__PURE__ */ Wn();
|
|
253
253
|
function Wn() {
|
|
254
254
|
const e = {};
|
|
255
255
|
return ["includes", "indexOf", "lastIndexOf"].forEach((t) => {
|
|
@@ -273,7 +273,7 @@ function Bn(e) {
|
|
|
273
273
|
const t = f(this);
|
|
274
274
|
return v(t, "has", e), t.hasOwnProperty(e);
|
|
275
275
|
}
|
|
276
|
-
class
|
|
276
|
+
class zt {
|
|
277
277
|
constructor(t = !1, n = !1) {
|
|
278
278
|
this._isReadonly = t, this._isShallow = n;
|
|
279
279
|
}
|
|
@@ -286,21 +286,21 @@ class Kt {
|
|
|
286
286
|
if (n === "__v_isShallow")
|
|
287
287
|
return o;
|
|
288
288
|
if (n === "__v_raw")
|
|
289
|
-
return r === (s ? o ?
|
|
289
|
+
return r === (s ? o ? Yt : Jt : o ? sr : qt).get(t) || // receiver is not the reactive proxy, but has the same prototype
|
|
290
290
|
// this means the receiver is a user proxy of the reactive proxy
|
|
291
291
|
Object.getPrototypeOf(t) === Object.getPrototypeOf(r) ? t : void 0;
|
|
292
292
|
const i = m(t);
|
|
293
293
|
if (!s) {
|
|
294
|
-
if (i && w(
|
|
295
|
-
return Reflect.get(
|
|
294
|
+
if (i && w(Et, n))
|
|
295
|
+
return Reflect.get(Et, n, r);
|
|
296
296
|
if (n === "hasOwnProperty")
|
|
297
297
|
return Bn;
|
|
298
298
|
}
|
|
299
299
|
const c = Reflect.get(t, n, r);
|
|
300
|
-
return (ae(n) ?
|
|
300
|
+
return (ae(n) ? Kt.has(n) : zn(n)) || (s || v(t, "get", n), o) ? c : R(c) ? i && Ze(n) ? c : c.value : b(c) ? s ? Xt(c) : Gt(c) : c;
|
|
301
301
|
}
|
|
302
302
|
}
|
|
303
|
-
class qn extends
|
|
303
|
+
class qn extends zt {
|
|
304
304
|
constructor(t = !1) {
|
|
305
305
|
super(!1, t);
|
|
306
306
|
}
|
|
@@ -320,7 +320,7 @@ class qn extends Kt {
|
|
|
320
320
|
}
|
|
321
321
|
has(t, n) {
|
|
322
322
|
const r = Reflect.has(t, n);
|
|
323
|
-
return (!ae(n) || !
|
|
323
|
+
return (!ae(n) || !Kt.has(n)) && v(t, "has", n), r;
|
|
324
324
|
}
|
|
325
325
|
ownKeys(t) {
|
|
326
326
|
return v(
|
|
@@ -330,7 +330,7 @@ class qn extends Kt {
|
|
|
330
330
|
), Reflect.ownKeys(t);
|
|
331
331
|
}
|
|
332
332
|
}
|
|
333
|
-
class
|
|
333
|
+
class Wt extends zt {
|
|
334
334
|
constructor(t = !1) {
|
|
335
335
|
super(!0, t);
|
|
336
336
|
}
|
|
@@ -347,7 +347,7 @@ class zt extends Kt {
|
|
|
347
347
|
), !0;
|
|
348
348
|
}
|
|
349
349
|
}
|
|
350
|
-
const Jn = /* @__PURE__ */ new qn(), Yn = /* @__PURE__ */ new
|
|
350
|
+
const Jn = /* @__PURE__ */ new qn(), Yn = /* @__PURE__ */ new Wt(), Gn = /* @__PURE__ */ new Wt(!0), rt = (e) => e, De = (e) => Reflect.getPrototypeOf(e);
|
|
351
351
|
function he(e, t, n = !1, r = !1) {
|
|
352
352
|
e = e.__v_raw;
|
|
353
353
|
const s = f(e), o = f(t);
|
|
@@ -366,27 +366,27 @@ function _e(e, t = !1) {
|
|
|
366
366
|
function me(e, t = !1) {
|
|
367
367
|
return e = e.__v_raw, !t && v(f(e), "iterate", Y), Reflect.get(e, "size", e);
|
|
368
368
|
}
|
|
369
|
-
function
|
|
369
|
+
function Ot(e, t = !1) {
|
|
370
370
|
!t && !T(e) && !$(e) && (e = f(e));
|
|
371
371
|
const n = f(this);
|
|
372
372
|
return De(n).has.call(n, e) || (n.add(e), F(n, "add", e, e)), this;
|
|
373
373
|
}
|
|
374
|
-
function
|
|
374
|
+
function Nt(e, t, n = !1) {
|
|
375
375
|
!n && !T(t) && !$(t) && (t = f(t));
|
|
376
376
|
const r = f(this), { has: s, get: o } = De(r);
|
|
377
377
|
let i = s.call(r, e);
|
|
378
|
-
i ? process.env.NODE_ENV !== "production" &&
|
|
378
|
+
i ? process.env.NODE_ENV !== "production" && Bt(r, s, e) : (e = f(e), i = s.call(r, e));
|
|
379
379
|
const c = o.call(r, e);
|
|
380
380
|
return r.set(e, t), i ? H(t, c) && F(r, "set", e, t, c) : F(r, "add", e, t), this;
|
|
381
381
|
}
|
|
382
|
-
function
|
|
382
|
+
function vt(e) {
|
|
383
383
|
const t = f(this), { has: n, get: r } = De(t);
|
|
384
384
|
let s = n.call(t, e);
|
|
385
|
-
s ? process.env.NODE_ENV !== "production" &&
|
|
385
|
+
s ? process.env.NODE_ENV !== "production" && Bt(t, n, e) : (e = f(e), s = n.call(t, e));
|
|
386
386
|
const o = r ? r.call(t, e) : void 0, i = t.delete(e);
|
|
387
387
|
return s && F(t, "delete", e, void 0, o), i;
|
|
388
388
|
}
|
|
389
|
-
function
|
|
389
|
+
function yt() {
|
|
390
390
|
const e = f(this), t = e.size !== 0, n = process.env.NODE_ENV !== "production" ? k(e) ? new Map(e) : new Set(e) : void 0, r = e.clear();
|
|
391
391
|
return t && F(e, "clear", void 0, void 0, n), r;
|
|
392
392
|
}
|
|
@@ -424,7 +424,7 @@ function A(e) {
|
|
|
424
424
|
if (process.env.NODE_ENV !== "production") {
|
|
425
425
|
const n = t[0] ? `on key "${t[0]}" ` : "";
|
|
426
426
|
ne(
|
|
427
|
-
`${
|
|
427
|
+
`${Tt(e)} operation ${n}failed: target is readonly.`,
|
|
428
428
|
f(this)
|
|
429
429
|
);
|
|
430
430
|
}
|
|
@@ -440,10 +440,10 @@ function Xn() {
|
|
|
440
440
|
return me(this);
|
|
441
441
|
},
|
|
442
442
|
has: _e,
|
|
443
|
-
add:
|
|
444
|
-
set:
|
|
445
|
-
delete:
|
|
446
|
-
clear:
|
|
443
|
+
add: Ot,
|
|
444
|
+
set: Nt,
|
|
445
|
+
delete: vt,
|
|
446
|
+
clear: yt,
|
|
447
447
|
forEach: ge(!1, !1)
|
|
448
448
|
}, t = {
|
|
449
449
|
get(o) {
|
|
@@ -454,13 +454,13 @@ function Xn() {
|
|
|
454
454
|
},
|
|
455
455
|
has: _e,
|
|
456
456
|
add(o) {
|
|
457
|
-
return
|
|
457
|
+
return Ot.call(this, o, !0);
|
|
458
458
|
},
|
|
459
459
|
set(o, i) {
|
|
460
|
-
return
|
|
460
|
+
return Nt.call(this, o, i, !0);
|
|
461
461
|
},
|
|
462
|
-
delete:
|
|
463
|
-
clear:
|
|
462
|
+
delete: vt,
|
|
463
|
+
clear: yt,
|
|
464
464
|
forEach: ge(!1, !0)
|
|
465
465
|
}, n = {
|
|
466
466
|
get(o) {
|
|
@@ -532,16 +532,16 @@ const tr = {
|
|
|
532
532
|
}, rr = {
|
|
533
533
|
get: /* @__PURE__ */ st(!0, !0)
|
|
534
534
|
};
|
|
535
|
-
function
|
|
535
|
+
function Bt(e, t, n) {
|
|
536
536
|
const r = f(n);
|
|
537
537
|
if (r !== n && t.call(e, r)) {
|
|
538
|
-
const s =
|
|
538
|
+
const s = Mt(e);
|
|
539
539
|
ne(
|
|
540
540
|
`Reactive ${s} contains both the raw and reactive versions of the same object${s === "Map" ? " as keys" : ""}, which can lead to inconsistencies. Avoid differentiating between the raw and reactive versions of an object and only use the reactive version if possible.`
|
|
541
541
|
);
|
|
542
542
|
}
|
|
543
543
|
}
|
|
544
|
-
const
|
|
544
|
+
const qt = /* @__PURE__ */ new WeakMap(), sr = /* @__PURE__ */ new WeakMap(), Jt = /* @__PURE__ */ new WeakMap(), Yt = /* @__PURE__ */ new WeakMap();
|
|
545
545
|
function or(e) {
|
|
546
546
|
switch (e) {
|
|
547
547
|
case "Object":
|
|
@@ -557,24 +557,24 @@ function or(e) {
|
|
|
557
557
|
}
|
|
558
558
|
}
|
|
559
559
|
function ir(e) {
|
|
560
|
-
return e.__v_skip || !Object.isExtensible(e) ? 0 : or(
|
|
560
|
+
return e.__v_skip || !Object.isExtensible(e) ? 0 : or(Mt(e));
|
|
561
561
|
}
|
|
562
|
-
function
|
|
562
|
+
function Gt(e) {
|
|
563
563
|
return $(e) ? e : ot(
|
|
564
564
|
e,
|
|
565
565
|
!1,
|
|
566
566
|
Jn,
|
|
567
567
|
tr,
|
|
568
|
-
|
|
568
|
+
qt
|
|
569
569
|
);
|
|
570
570
|
}
|
|
571
|
-
function
|
|
571
|
+
function Xt(e) {
|
|
572
572
|
return ot(
|
|
573
573
|
e,
|
|
574
574
|
!0,
|
|
575
575
|
Yn,
|
|
576
576
|
nr,
|
|
577
|
-
|
|
577
|
+
Jt
|
|
578
578
|
);
|
|
579
579
|
}
|
|
580
580
|
function Ee(e) {
|
|
@@ -583,7 +583,7 @@ function Ee(e) {
|
|
|
583
583
|
!0,
|
|
584
584
|
Gn,
|
|
585
585
|
rr,
|
|
586
|
-
|
|
586
|
+
Yt
|
|
587
587
|
);
|
|
588
588
|
}
|
|
589
589
|
function ot(e, t, n, r, s) {
|
|
@@ -626,10 +626,10 @@ function f(e) {
|
|
|
626
626
|
function cr(e) {
|
|
627
627
|
return Object.isExtensible(e) && $n(e, "__v_skip", !0), e;
|
|
628
628
|
}
|
|
629
|
-
const ce = (e) => b(e) ?
|
|
629
|
+
const ce = (e) => b(e) ? Gt(e) : e, it = (e) => b(e) ? Xt(e) : e, lr = "Computed is still dirty after getter evaluation, likely because a computed is mutating its own dependency in its getter. State mutations in computed getters should be avoided. Check the docs for more details: https://vuejs.org/guide/essentials/computed.html#getters-should-be-side-effect-free";
|
|
630
630
|
class ar {
|
|
631
631
|
constructor(t, n, r, s) {
|
|
632
|
-
this.getter = t, this._setter = n, this.dep = void 0, this.__v_isRef = !0, this.__v_isReadonly = !1, this.effect = new
|
|
632
|
+
this.getter = t, this._setter = n, this.dep = void 0, this.__v_isRef = !0, this.__v_isReadonly = !1, this.effect = new At(
|
|
633
633
|
() => t(this._value),
|
|
634
634
|
() => ve(
|
|
635
635
|
this,
|
|
@@ -639,7 +639,7 @@ class ar {
|
|
|
639
639
|
}
|
|
640
640
|
get value() {
|
|
641
641
|
const t = f(this);
|
|
642
|
-
return (!t._cacheable || t.effect.dirty) && H(t._value, t._value = t.effect.run()) && ve(t, 4),
|
|
642
|
+
return (!t._cacheable || t.effect.dirty) && H(t._value, t._value = t.effect.run()) && ve(t, 4), Qt(t), t.effect._dirtyLevel >= 2 && (process.env.NODE_ENV !== "production" && this._warnRecursive && ne(lr, `
|
|
643
643
|
|
|
644
644
|
getter: `, this.getter), ve(t, 2)), t._value;
|
|
645
645
|
}
|
|
@@ -655,11 +655,11 @@ getter: `, this.getter), ve(t, 2)), t._value;
|
|
|
655
655
|
}
|
|
656
656
|
// #endregion
|
|
657
657
|
}
|
|
658
|
-
function
|
|
658
|
+
function Qt(e) {
|
|
659
659
|
var t;
|
|
660
|
-
U && J && (e = f(e),
|
|
660
|
+
U && J && (e = f(e), Ut(
|
|
661
661
|
J,
|
|
662
|
-
(t = e.dep) != null ? t : e.dep =
|
|
662
|
+
(t = e.dep) != null ? t : e.dep = Ht(
|
|
663
663
|
() => e.dep = void 0,
|
|
664
664
|
e instanceof ar ? e : void 0
|
|
665
665
|
),
|
|
@@ -673,7 +673,7 @@ function Xt(e) {
|
|
|
673
673
|
function ve(e, t = 4, n, r) {
|
|
674
674
|
e = f(e);
|
|
675
675
|
const s = e.dep;
|
|
676
|
-
s &&
|
|
676
|
+
s && Ft(
|
|
677
677
|
s,
|
|
678
678
|
t,
|
|
679
679
|
process.env.NODE_ENV !== "production" ? {
|
|
@@ -688,7 +688,7 @@ function ve(e, t = 4, n, r) {
|
|
|
688
688
|
function R(e) {
|
|
689
689
|
return !!(e && e.__v_isRef === !0);
|
|
690
690
|
}
|
|
691
|
-
function
|
|
691
|
+
function Zt(e) {
|
|
692
692
|
return ur(e, !1);
|
|
693
693
|
}
|
|
694
694
|
function ur(e, t) {
|
|
@@ -699,7 +699,7 @@ class fr {
|
|
|
699
699
|
this.__v_isShallow = n, this.dep = void 0, this.__v_isRef = !0, this._rawValue = n ? t : f(t), this._value = n ? t : ce(t);
|
|
700
700
|
}
|
|
701
701
|
get value() {
|
|
702
|
-
return
|
|
702
|
+
return Qt(this), this._value;
|
|
703
703
|
}
|
|
704
704
|
set value(t) {
|
|
705
705
|
const n = this.__v_isShallow || T(t) || $(t);
|
|
@@ -753,7 +753,7 @@ function _(e, ...t) {
|
|
|
753
753
|
}).join(""),
|
|
754
754
|
n && n.proxy,
|
|
755
755
|
s.map(
|
|
756
|
-
({ vnode: o }) => `at <${
|
|
756
|
+
({ vnode: o }) => `at <${wn(n, o.type)}>`
|
|
757
757
|
).join(`
|
|
758
758
|
`),
|
|
759
759
|
s
|
|
@@ -790,7 +790,7 @@ function wr(e) {
|
|
|
790
790
|
}), t;
|
|
791
791
|
}
|
|
792
792
|
function Er({ vnode: e, recurseCount: t }) {
|
|
793
|
-
const n = t > 0 ? `... (${t} recursive calls)` : "", r = e.component ? e.component.parent == null : !1, s = ` at <${
|
|
793
|
+
const n = t > 0 ? `... (${t} recursive calls)` : "", r = e.component ? e.component.parent == null : !1, s = ` at <${wn(
|
|
794
794
|
e.component,
|
|
795
795
|
e.type,
|
|
796
796
|
r
|
|
@@ -800,11 +800,11 @@ function Er({ vnode: e, recurseCount: t }) {
|
|
|
800
800
|
function Or(e) {
|
|
801
801
|
const t = [], n = Object.keys(e);
|
|
802
802
|
return n.slice(0, 3).forEach((r) => {
|
|
803
|
-
t.push(...
|
|
803
|
+
t.push(...kt(r, e[r]));
|
|
804
804
|
}), n.length > 3 && t.push(" ..."), t;
|
|
805
805
|
}
|
|
806
|
-
function
|
|
807
|
-
return P(t) ? (t = JSON.stringify(t), n ? t : [`${e}=${t}`]) : typeof t == "number" || typeof t == "boolean" || t == null ? n ? t : [`${e}=${t}`] : R(t) ? (t =
|
|
806
|
+
function kt(e, t, n) {
|
|
807
|
+
return P(t) ? (t = JSON.stringify(t), n ? t : [`${e}=${t}`]) : typeof t == "number" || typeof t == "boolean" || t == null ? n ? t : [`${e}=${t}`] : R(t) ? (t = kt(e, f(t.value), !0), n ? t : [`${e}=Ref<`, t, ">"]) : E(t) ? [`${e}=fn${t.name ? `<${t.name}>` : ""}`] : (t = f(t), n ? t : [`${e}=`, t]);
|
|
808
808
|
}
|
|
809
809
|
const ct = {
|
|
810
810
|
sp: "serverPrefetch hook",
|
|
@@ -903,11 +903,11 @@ const C = [];
|
|
|
903
903
|
let j = 0;
|
|
904
904
|
const te = [];
|
|
905
905
|
let L = null, B = 0;
|
|
906
|
-
const
|
|
906
|
+
const en = /* @__PURE__ */ Promise.resolve();
|
|
907
907
|
let at = null;
|
|
908
908
|
const vr = 100;
|
|
909
909
|
function yr(e) {
|
|
910
|
-
const t = at ||
|
|
910
|
+
const t = at || en;
|
|
911
911
|
return e ? t.then(this ? e.bind(this) : e) : t;
|
|
912
912
|
}
|
|
913
913
|
function br(e) {
|
|
@@ -922,16 +922,16 @@ function ut(e) {
|
|
|
922
922
|
(!C.length || !C.includes(
|
|
923
923
|
e,
|
|
924
924
|
Re && e.allowRecurse ? j + 1 : j
|
|
925
|
-
)) && (e.id == null ? C.push(e) : C.splice(br(e.id), 0, e),
|
|
925
|
+
)) && (e.id == null ? C.push(e) : C.splice(br(e.id), 0, e), tn());
|
|
926
926
|
}
|
|
927
|
-
function
|
|
928
|
-
!Re && !Ge && (Ge = !0, at =
|
|
927
|
+
function tn() {
|
|
928
|
+
!Re && !Ge && (Ge = !0, at = en.then(rn));
|
|
929
929
|
}
|
|
930
|
-
function
|
|
930
|
+
function nn(e) {
|
|
931
931
|
m(e) ? te.push(...e) : (!L || !L.includes(
|
|
932
932
|
e,
|
|
933
933
|
e.allowRecurse ? B + 1 : B
|
|
934
|
-
)) && te.push(e),
|
|
934
|
+
)) && te.push(e), tn();
|
|
935
935
|
}
|
|
936
936
|
function Sr(e) {
|
|
937
937
|
if (te.length) {
|
|
@@ -944,7 +944,7 @@ function Sr(e) {
|
|
|
944
944
|
}
|
|
945
945
|
for (L = t, process.env.NODE_ENV !== "production" && (e = e || /* @__PURE__ */ new Map()), B = 0; B < L.length; B++) {
|
|
946
946
|
const n = L[B];
|
|
947
|
-
process.env.NODE_ENV !== "production" &&
|
|
947
|
+
process.env.NODE_ENV !== "production" && sn(e, n) || n.active !== !1 && n();
|
|
948
948
|
}
|
|
949
949
|
L = null, B = 0;
|
|
950
950
|
}
|
|
@@ -959,9 +959,9 @@ const le = (e) => e.id == null ? 1 / 0 : e.id, Rr = (e, t) => {
|
|
|
959
959
|
}
|
|
960
960
|
return n;
|
|
961
961
|
};
|
|
962
|
-
function
|
|
962
|
+
function rn(e) {
|
|
963
963
|
Ge = !1, Re = !0, process.env.NODE_ENV !== "production" && (e = e || /* @__PURE__ */ new Map()), C.sort(Rr);
|
|
964
|
-
const t = process.env.NODE_ENV !== "production" ? (n) =>
|
|
964
|
+
const t = process.env.NODE_ENV !== "production" ? (n) => sn(e, n) : Z;
|
|
965
965
|
try {
|
|
966
966
|
for (j = 0; j < C.length; j++) {
|
|
967
967
|
const n = C[j];
|
|
@@ -976,16 +976,16 @@ function nn(e) {
|
|
|
976
976
|
}
|
|
977
977
|
}
|
|
978
978
|
} finally {
|
|
979
|
-
j = 0, C.length = 0, Sr(e), Re = !1, at = null, (C.length || te.length) &&
|
|
979
|
+
j = 0, C.length = 0, Sr(e), Re = !1, at = null, (C.length || te.length) && rn(e);
|
|
980
980
|
}
|
|
981
981
|
}
|
|
982
|
-
function
|
|
982
|
+
function sn(e, t) {
|
|
983
983
|
if (!e.has(t))
|
|
984
984
|
e.set(t, 1);
|
|
985
985
|
else {
|
|
986
986
|
const n = e.get(t);
|
|
987
987
|
if (n > vr) {
|
|
988
|
-
const r = t.i, s = r &&
|
|
988
|
+
const r = t.i, s = r && gn(r.type);
|
|
989
989
|
return lt(
|
|
990
990
|
`Maximum recursive updates exceeded${s ? ` in component <${s}>` : ""}. This means you have a reactive effect that is mutating its own dependencies and thus recursively triggering itself. Possible sources include component template, render function, updated hook or watcher source function.`,
|
|
991
991
|
null,
|
|
@@ -996,7 +996,7 @@ function rn(e, t) {
|
|
|
996
996
|
}
|
|
997
997
|
}
|
|
998
998
|
const Fe = /* @__PURE__ */ new Map();
|
|
999
|
-
process.env.NODE_ENV !== "production" && (
|
|
999
|
+
process.env.NODE_ENV !== "production" && ($t().__VUE_HMR_RUNTIME__ = {
|
|
1000
1000
|
createRecord: He(Ir),
|
|
1001
1001
|
rerender: He(Cr),
|
|
1002
1002
|
reload: He(xr)
|
|
@@ -1009,7 +1009,7 @@ function Ir(e, t) {
|
|
|
1009
1009
|
}), !0);
|
|
1010
1010
|
}
|
|
1011
1011
|
function Ce(e) {
|
|
1012
|
-
return
|
|
1012
|
+
return En(e) ? e.__vccOpts : e;
|
|
1013
1013
|
}
|
|
1014
1014
|
function Cr(e, t) {
|
|
1015
1015
|
const n = Ie.get(e);
|
|
@@ -1021,22 +1021,22 @@ function xr(e, t) {
|
|
|
1021
1021
|
const n = Ie.get(e);
|
|
1022
1022
|
if (!n)
|
|
1023
1023
|
return;
|
|
1024
|
-
t = Ce(t),
|
|
1024
|
+
t = Ce(t), bt(n.initialDef, t);
|
|
1025
1025
|
const r = [...n.instances];
|
|
1026
1026
|
for (let s = 0; s < r.length; s++) {
|
|
1027
1027
|
const o = r[s], i = Ce(o.type);
|
|
1028
1028
|
let c = Fe.get(i);
|
|
1029
|
-
c || (i !== n.initialDef &&
|
|
1029
|
+
c || (i !== n.initialDef && bt(i, t), Fe.set(i, c = /* @__PURE__ */ new Set())), c.add(o), o.appContext.propsCache.delete(o.type), o.appContext.emitsCache.delete(o.type), o.appContext.optionsCache.delete(o.type), o.ceReload ? (c.add(o), o.ceReload(t.styles), c.delete(o)) : o.parent ? (o.parent.effect.dirty = !0, ut(() => {
|
|
1030
1030
|
o.parent.update(), c.delete(o);
|
|
1031
1031
|
})) : o.appContext.reload ? o.appContext.reload() : typeof window != "undefined" ? window.location.reload() : console.warn(
|
|
1032
1032
|
"[HMR] Root or manually mounted instance modified. Full reload required."
|
|
1033
1033
|
);
|
|
1034
1034
|
}
|
|
1035
|
-
|
|
1035
|
+
nn(() => {
|
|
1036
1036
|
Fe.clear();
|
|
1037
1037
|
});
|
|
1038
1038
|
}
|
|
1039
|
-
function
|
|
1039
|
+
function bt(e, t) {
|
|
1040
1040
|
I(e, t);
|
|
1041
1041
|
for (const n in e)
|
|
1042
1042
|
n !== "__file" && !(n in t) && delete e[n];
|
|
@@ -1053,20 +1053,20 @@ function He(e) {
|
|
|
1053
1053
|
};
|
|
1054
1054
|
}
|
|
1055
1055
|
let Q, Oe = [];
|
|
1056
|
-
function
|
|
1056
|
+
function on(e, t) {
|
|
1057
1057
|
var n, r;
|
|
1058
1058
|
Q = e, Q ? (Q.enabled = !0, Oe.forEach(({ event: s, args: o }) => Q.emit(s, ...o)), Oe = []) : /* handle late devtools injection - only do this if we are in an actual */ /* browser environment to avoid the timer handle stalling test runner exit */ /* (#4815) */ typeof window != "undefined" && // some envs mock window but not fully
|
|
1059
1059
|
window.HTMLElement && // also exclude jsdom
|
|
1060
1060
|
// eslint-disable-next-line no-restricted-syntax
|
|
1061
1061
|
!((r = (n = window.navigator) == null ? void 0 : n.userAgent) != null && r.includes("jsdom")) ? ((t.__VUE_DEVTOOLS_HOOK_REPLAY__ = t.__VUE_DEVTOOLS_HOOK_REPLAY__ || []).push((o) => {
|
|
1062
|
-
|
|
1062
|
+
on(o, t);
|
|
1063
1063
|
}), setTimeout(() => {
|
|
1064
1064
|
Q || (t.__VUE_DEVTOOLS_HOOK_REPLAY__ = null, Oe = []);
|
|
1065
1065
|
}, 3e3)) : Oe = [];
|
|
1066
1066
|
}
|
|
1067
1067
|
let D = null, Pr = null;
|
|
1068
|
-
function
|
|
1069
|
-
e.shapeFlag & 6 && e.component ?
|
|
1068
|
+
function cn(e, t) {
|
|
1069
|
+
e.shapeFlag & 6 && e.component ? cn(e.component.subTree, t) : e.shapeFlag & 128 ? (e.ssContent.transition = t.clone(e.ssContent), e.ssFallback.transition = t.clone(e.ssFallback)) : e.transition = t;
|
|
1070
1070
|
}
|
|
1071
1071
|
/*! #__NO_SIDE_EFFECTS__ */
|
|
1072
1072
|
// @__NO_SIDE_EFFECTS__
|
|
@@ -1081,7 +1081,7 @@ function Mr(e, t, n = re, r = !1) {
|
|
|
1081
1081
|
if (n) {
|
|
1082
1082
|
const s = n[e] || (n[e] = []), o = t.__weh || (t.__weh = (...i) => {
|
|
1083
1083
|
ue();
|
|
1084
|
-
const c =
|
|
1084
|
+
const c = mn(n), a = oe(t, n, e, i);
|
|
1085
1085
|
return c(), fe(), a;
|
|
1086
1086
|
});
|
|
1087
1087
|
return r ? s.unshift(o) : s.push(o), o;
|
|
@@ -1092,9 +1092,9 @@ function Mr(e, t, n = re, r = !1) {
|
|
|
1092
1092
|
);
|
|
1093
1093
|
}
|
|
1094
1094
|
}
|
|
1095
|
-
const
|
|
1095
|
+
const ln = (e) => (t, n = re) => {
|
|
1096
1096
|
(!dt || e === "sp") && Mr(e, (...r) => t(...r), n);
|
|
1097
|
-
}, Dr =
|
|
1097
|
+
}, Dr = ln("m"), Tr = ln("um"), $r = Symbol.for("v-ndc"), Xe = (e) => e ? fs(e) ? ds(e) : Xe(e.parent) : null, ie = (
|
|
1098
1098
|
// Move PURE marker to new line to workaround compiler discarding it
|
|
1099
1099
|
// due to type annotation
|
|
1100
1100
|
/* @__PURE__ */ I(/* @__PURE__ */ Object.create(null), {
|
|
@@ -1201,7 +1201,7 @@ const cn = (e) => (t, n = re) => {
|
|
|
1201
1201
|
process.env.NODE_ENV !== "production" && (Lr.ownKeys = (e) => (_(
|
|
1202
1202
|
"Avoid app logic that relies on enumerating keys on a component instance. The keys will be empty in production mode to avoid performance overhead."
|
|
1203
1203
|
), Reflect.ownKeys(e)));
|
|
1204
|
-
function
|
|
1204
|
+
function St(e) {
|
|
1205
1205
|
return m(e) ? e.reduce(
|
|
1206
1206
|
(t, n) => (t[n] = null, t),
|
|
1207
1207
|
{}
|
|
@@ -1235,9 +1235,9 @@ function xe(e, t, n, r = !1) {
|
|
|
1235
1235
|
return e;
|
|
1236
1236
|
}
|
|
1237
1237
|
const Ur = {
|
|
1238
|
-
data:
|
|
1239
|
-
props:
|
|
1240
|
-
emits:
|
|
1238
|
+
data: Rt,
|
|
1239
|
+
props: Ct,
|
|
1240
|
+
emits: Ct,
|
|
1241
1241
|
// objects
|
|
1242
1242
|
methods: se,
|
|
1243
1243
|
computed: se,
|
|
@@ -1262,10 +1262,10 @@ const Ur = {
|
|
|
1262
1262
|
// watch
|
|
1263
1263
|
watch: Hr,
|
|
1264
1264
|
// provide / inject
|
|
1265
|
-
provide:
|
|
1265
|
+
provide: Rt,
|
|
1266
1266
|
inject: Fr
|
|
1267
1267
|
};
|
|
1268
|
-
function
|
|
1268
|
+
function Rt(e, t) {
|
|
1269
1269
|
return t ? e ? function() {
|
|
1270
1270
|
return I(
|
|
1271
1271
|
E(e) ? e.call(this, this) : e,
|
|
@@ -1274,9 +1274,9 @@ function St(e, t) {
|
|
|
1274
1274
|
} : t : e;
|
|
1275
1275
|
}
|
|
1276
1276
|
function Fr(e, t) {
|
|
1277
|
-
return se(
|
|
1277
|
+
return se(It(e), It(t));
|
|
1278
1278
|
}
|
|
1279
|
-
function
|
|
1279
|
+
function It(e) {
|
|
1280
1280
|
if (m(e)) {
|
|
1281
1281
|
const t = {};
|
|
1282
1282
|
for (let n = 0; n < e.length; n++)
|
|
@@ -1291,11 +1291,11 @@ function y(e, t) {
|
|
|
1291
1291
|
function se(e, t) {
|
|
1292
1292
|
return e ? I(/* @__PURE__ */ Object.create(null), e, t) : t;
|
|
1293
1293
|
}
|
|
1294
|
-
function
|
|
1294
|
+
function Ct(e, t) {
|
|
1295
1295
|
return e ? m(e) && m(t) ? [.../* @__PURE__ */ new Set([...e, ...t])] : I(
|
|
1296
1296
|
/* @__PURE__ */ Object.create(null),
|
|
1297
|
-
|
|
1298
|
-
|
|
1297
|
+
St(e),
|
|
1298
|
+
St(t != null ? t : {})
|
|
1299
1299
|
) : t;
|
|
1300
1300
|
}
|
|
1301
1301
|
function Hr(e, t) {
|
|
@@ -1321,7 +1321,7 @@ function zr(e, t, n = !1) {
|
|
|
1321
1321
|
} else
|
|
1322
1322
|
process.env.NODE_ENV !== "production" && _("inject() can only be used inside setup() or functional components.");
|
|
1323
1323
|
}
|
|
1324
|
-
const Wr = {},
|
|
1324
|
+
const Wr = {}, an = (e) => Object.getPrototypeOf(e) === Wr, Br = (e) => e.__isTeleport, xt = Zr, qr = Symbol.for("v-scx"), Jr = () => {
|
|
1325
1325
|
{
|
|
1326
1326
|
const e = zr(qr);
|
|
1327
1327
|
return e || process.env.NODE_ENV !== "production" && _(
|
|
@@ -1332,9 +1332,9 @@ const Wr = {}, ln = (e) => Object.getPrototypeOf(e) === Wr, Br = (e) => e.__isTe
|
|
|
1332
1332
|
function Yr(e, t, n) {
|
|
1333
1333
|
return process.env.NODE_ENV !== "production" && !E(t) && _(
|
|
1334
1334
|
"`watch(fn, options?)` signature has been moved to a separate API. Use `watchEffect(fn, options?)` instead. `watch` now only supports `watch(source, cb, options?) signature."
|
|
1335
|
-
),
|
|
1335
|
+
), un(e, t, n);
|
|
1336
1336
|
}
|
|
1337
|
-
function
|
|
1337
|
+
function un(e, t, {
|
|
1338
1338
|
immediate: n,
|
|
1339
1339
|
deep: r,
|
|
1340
1340
|
flush: s,
|
|
@@ -1416,11 +1416,11 @@ function an(e, t, {
|
|
|
1416
1416
|
};
|
|
1417
1417
|
z.allowRecurse = !!t;
|
|
1418
1418
|
let de;
|
|
1419
|
-
s === "sync" ? de = z : s === "post" ? de = () =>
|
|
1420
|
-
const S = new
|
|
1419
|
+
s === "sync" ? de = z : s === "post" ? de = () => xt(z, u && u.suspense) : (z.pre = !0, u && (z.id = u.uid), de = () => ut(z));
|
|
1420
|
+
const S = new At(l, Z, de), $e = () => {
|
|
1421
1421
|
S.stop();
|
|
1422
1422
|
};
|
|
1423
|
-
return process.env.NODE_ENV !== "production" && (S.onTrack = i, S.onTrigger = c), t ? n ? z() : K = S.run() : s === "post" ?
|
|
1423
|
+
return process.env.NODE_ENV !== "production" && (S.onTrack = i, S.onTrigger = c), t ? n ? z() : K = S.run() : s === "post" ? xt(
|
|
1424
1424
|
S.run.bind(S),
|
|
1425
1425
|
u && u.suspense
|
|
1426
1426
|
) : S.run(), Te && Te.push($e), $e;
|
|
@@ -1429,7 +1429,7 @@ function Gr(e, t, n) {
|
|
|
1429
1429
|
const r = this.proxy, s = P(e) ? e.includes(".") ? Xr(r, e) : () => r[e] : e.bind(r, r);
|
|
1430
1430
|
let o;
|
|
1431
1431
|
E(t) ? o = t : (o = t.handler, n = t);
|
|
1432
|
-
const i =
|
|
1432
|
+
const i = mn(this), c = un(s, o.bind(r), n);
|
|
1433
1433
|
return i(), c;
|
|
1434
1434
|
}
|
|
1435
1435
|
function Xr(e, t) {
|
|
@@ -1463,9 +1463,9 @@ function q(e, t = 1 / 0, n) {
|
|
|
1463
1463
|
}
|
|
1464
1464
|
const Qr = (e) => e.__isSuspense;
|
|
1465
1465
|
function Zr(e, t) {
|
|
1466
|
-
t && t.pendingBranch ? m(e) ? t.effects.push(...e) : t.effects.push(e) :
|
|
1466
|
+
t && t.pendingBranch ? m(e) ? t.effects.push(...e) : t.effects.push(e) : nn(e);
|
|
1467
1467
|
}
|
|
1468
|
-
const
|
|
1468
|
+
const fn = Symbol.for("v-fgt"), kr = Symbol.for("v-txt"), es = Symbol.for("v-cmt"), ye = [];
|
|
1469
1469
|
let x = null;
|
|
1470
1470
|
function ts(e = !1) {
|
|
1471
1471
|
ye.push(x = e ? null : []);
|
|
@@ -1478,7 +1478,7 @@ function rs(e) {
|
|
|
1478
1478
|
}
|
|
1479
1479
|
function ss(e, t, n, r, s, o) {
|
|
1480
1480
|
return rs(
|
|
1481
|
-
|
|
1481
|
+
pn(
|
|
1482
1482
|
e,
|
|
1483
1483
|
t,
|
|
1484
1484
|
n,
|
|
@@ -1492,20 +1492,20 @@ function ss(e, t, n, r, s, o) {
|
|
|
1492
1492
|
function os(e) {
|
|
1493
1493
|
return e ? e.__v_isVNode === !0 : !1;
|
|
1494
1494
|
}
|
|
1495
|
-
const is = (...e) =>
|
|
1495
|
+
const is = (...e) => hn(
|
|
1496
1496
|
...e
|
|
1497
|
-
),
|
|
1497
|
+
), dn = ({ key: e }) => e != null ? e : null, be = ({
|
|
1498
1498
|
ref: e,
|
|
1499
1499
|
ref_key: t,
|
|
1500
1500
|
ref_for: n
|
|
1501
1501
|
}) => (typeof e == "number" && (e = "" + e), e != null ? P(e) || R(e) || E(e) ? { i: D, r: e, k: t, f: !!n } : e : null);
|
|
1502
|
-
function
|
|
1502
|
+
function pn(e, t = null, n = null, r = 0, s = null, o = e === fn ? 0 : 1, i = !1, c = !1) {
|
|
1503
1503
|
const a = {
|
|
1504
1504
|
__v_isVNode: !0,
|
|
1505
1505
|
__v_skip: !0,
|
|
1506
1506
|
type: e,
|
|
1507
1507
|
props: t,
|
|
1508
|
-
key: t &&
|
|
1508
|
+
key: t && dn(t),
|
|
1509
1509
|
ref: t && be(t),
|
|
1510
1510
|
scopeId: Pr,
|
|
1511
1511
|
slotScopeIds: null,
|
|
@@ -1539,8 +1539,8 @@ function dn(e, t = null, n = null, r = 0, s = null, o = e === un ? 0 : 1, i = !1
|
|
|
1539
1539
|
// vnode should not be considered dynamic due to handler caching.
|
|
1540
1540
|
a.patchFlag !== 32 && x.push(a), a;
|
|
1541
1541
|
}
|
|
1542
|
-
const cs = process.env.NODE_ENV !== "production" ? is :
|
|
1543
|
-
function
|
|
1542
|
+
const cs = process.env.NODE_ENV !== "production" ? is : hn;
|
|
1543
|
+
function hn(e, t = null, n = null, r = 0, s = null, o = !1) {
|
|
1544
1544
|
if ((!e || e === $r) && (process.env.NODE_ENV !== "production" && !e && _(`Invalid vnode type when creating vnode: ${e}.`), e = es), os(e)) {
|
|
1545
1545
|
const c = Pe(
|
|
1546
1546
|
e,
|
|
@@ -1550,7 +1550,7 @@ function pn(e, t = null, n = null, r = 0, s = null, o = !1) {
|
|
|
1550
1550
|
);
|
|
1551
1551
|
return n && ft(c, n), !o && x && (c.shapeFlag & 6 ? x[x.indexOf(e)] = c : x.push(c)), c.patchFlag = -2, c;
|
|
1552
1552
|
}
|
|
1553
|
-
if (
|
|
1553
|
+
if (En(e) && (e = e.__vccOpts), t) {
|
|
1554
1554
|
t = ls(t);
|
|
1555
1555
|
let { class: c, style: a } = t;
|
|
1556
1556
|
c && !P(c) && (t.class = et(c)), b(a) && (Ye(a) && !m(a) && (a = I({}, a)), t.style = ke(a));
|
|
@@ -1561,7 +1561,7 @@ function pn(e, t = null, n = null, r = 0, s = null, o = !1) {
|
|
|
1561
1561
|
`
|
|
1562
1562
|
Component that was made reactive: `,
|
|
1563
1563
|
e
|
|
1564
|
-
)),
|
|
1564
|
+
)), pn(
|
|
1565
1565
|
e,
|
|
1566
1566
|
t,
|
|
1567
1567
|
n,
|
|
@@ -1573,7 +1573,7 @@ Component that was made reactive: `,
|
|
|
1573
1573
|
);
|
|
1574
1574
|
}
|
|
1575
1575
|
function ls(e) {
|
|
1576
|
-
return e ? Ye(e) ||
|
|
1576
|
+
return e ? Ye(e) || an(e) ? I({}, e) : e : null;
|
|
1577
1577
|
}
|
|
1578
1578
|
function Pe(e, t, n = !1, r = !1) {
|
|
1579
1579
|
const { props: s, ref: o, patchFlag: i, children: c, transition: a } = e, u = t ? us(s || {}, t) : s, h = {
|
|
@@ -1581,7 +1581,7 @@ function Pe(e, t, n = !1, r = !1) {
|
|
|
1581
1581
|
__v_skip: !0,
|
|
1582
1582
|
type: e.type,
|
|
1583
1583
|
props: u,
|
|
1584
|
-
key: u &&
|
|
1584
|
+
key: u && dn(u),
|
|
1585
1585
|
ref: t && t.ref ? (
|
|
1586
1586
|
// #2078 in the case of <component :is="vnode" ref="extra"/>
|
|
1587
1587
|
// if the vnode itself already has a ref, cloneVNode will need to merge
|
|
@@ -1590,7 +1590,7 @@ function Pe(e, t, n = !1, r = !1) {
|
|
|
1590
1590
|
) : o,
|
|
1591
1591
|
scopeId: e.scopeId,
|
|
1592
1592
|
slotScopeIds: e.slotScopeIds,
|
|
1593
|
-
children: process.env.NODE_ENV !== "production" && i === -1 && m(c) ? c.map(
|
|
1593
|
+
children: process.env.NODE_ENV !== "production" && i === -1 && m(c) ? c.map(_n) : c,
|
|
1594
1594
|
target: e.target,
|
|
1595
1595
|
targetStart: e.targetStart,
|
|
1596
1596
|
targetAnchor: e.targetAnchor,
|
|
@@ -1600,7 +1600,7 @@ function Pe(e, t, n = !1, r = !1) {
|
|
|
1600
1600
|
// existing patch flag to be reliable and need to add the FULL_PROPS flag.
|
|
1601
1601
|
// note: preserve flag for fragments since they use the flag for children
|
|
1602
1602
|
// fast paths only.
|
|
1603
|
-
patchFlag: t && e.type !==
|
|
1603
|
+
patchFlag: t && e.type !== fn ? i === -1 ? 16 : i | 16 : i,
|
|
1604
1604
|
dynamicProps: e.dynamicProps,
|
|
1605
1605
|
dynamicChildren: e.dynamicChildren,
|
|
1606
1606
|
appContext: e.appContext,
|
|
@@ -1619,14 +1619,14 @@ function Pe(e, t, n = !1, r = !1) {
|
|
|
1619
1619
|
ctx: e.ctx,
|
|
1620
1620
|
ce: e.ce
|
|
1621
1621
|
};
|
|
1622
|
-
return a && r &&
|
|
1622
|
+
return a && r && cn(
|
|
1623
1623
|
h,
|
|
1624
1624
|
a.clone(h)
|
|
1625
1625
|
), h;
|
|
1626
1626
|
}
|
|
1627
|
-
function
|
|
1627
|
+
function _n(e) {
|
|
1628
1628
|
const t = Pe(e);
|
|
1629
|
-
return m(e.children) && (t.children = e.children.map(
|
|
1629
|
+
return m(e.children) && (t.children = e.children.map(_n)), t;
|
|
1630
1630
|
}
|
|
1631
1631
|
function as(e = " ", t = 0) {
|
|
1632
1632
|
return cs(kr, null, e, t);
|
|
@@ -1646,7 +1646,7 @@ function ft(e, t) {
|
|
|
1646
1646
|
} else {
|
|
1647
1647
|
n = 32;
|
|
1648
1648
|
const s = t._;
|
|
1649
|
-
!s && !
|
|
1649
|
+
!s && !an(t) ? t._ctx = D : s === 3 && D && (D.slots._ === 1 ? t._ = 1 : (t._ = 2, e.patchFlag |= 1024));
|
|
1650
1650
|
}
|
|
1651
1651
|
else
|
|
1652
1652
|
E(t) ? (t = { default: t, _ctx: D }, n = 32) : (t = String(t), r & 64 ? (n = 16, t = [as(t)]) : n = 8);
|
|
@@ -1671,7 +1671,7 @@ function us(...e) {
|
|
|
1671
1671
|
}
|
|
1672
1672
|
let re = null, Qe;
|
|
1673
1673
|
{
|
|
1674
|
-
const e =
|
|
1674
|
+
const e = $t(), t = (n, r) => {
|
|
1675
1675
|
let s;
|
|
1676
1676
|
return (s = e[n]) || (s = e[n] = []), s.push(r), (o) => {
|
|
1677
1677
|
s.length > 1 ? s.forEach((i) => i(o)) : s[0](o);
|
|
@@ -1685,7 +1685,7 @@ let re = null, Qe;
|
|
|
1685
1685
|
(n) => dt = n
|
|
1686
1686
|
);
|
|
1687
1687
|
}
|
|
1688
|
-
const
|
|
1688
|
+
const mn = (e) => {
|
|
1689
1689
|
const t = re;
|
|
1690
1690
|
return Qe(e), e.scope.on(), () => {
|
|
1691
1691
|
e.scope.off(), Qe(t);
|
|
@@ -1710,11 +1710,11 @@ function ds(e) {
|
|
|
1710
1710
|
})) : e.proxy;
|
|
1711
1711
|
}
|
|
1712
1712
|
const ps = /(?:^|[-_])(\w)/g, hs = (e) => e.replace(ps, (t) => t.toUpperCase()).replace(/[-_]/g, "");
|
|
1713
|
-
function
|
|
1713
|
+
function gn(e, t = !0) {
|
|
1714
1714
|
return E(e) ? e.displayName || e.name : e.name || t && e.__name;
|
|
1715
1715
|
}
|
|
1716
|
-
function
|
|
1717
|
-
let r =
|
|
1716
|
+
function wn(e, t, n = !1) {
|
|
1717
|
+
let r = gn(t);
|
|
1718
1718
|
if (!r && t.__file) {
|
|
1719
1719
|
const s = t.__file.match(/([^/\\]+)\.\w+$/);
|
|
1720
1720
|
s && (r = s[1]);
|
|
@@ -1731,7 +1731,7 @@ function gn(e, t, n = !1) {
|
|
|
1731
1731
|
}
|
|
1732
1732
|
return r ? hs(r) : n ? "App" : "Anonymous";
|
|
1733
1733
|
}
|
|
1734
|
-
function
|
|
1734
|
+
function En(e) {
|
|
1735
1735
|
return E(e) && "__vccOpts" in e;
|
|
1736
1736
|
}
|
|
1737
1737
|
function _s() {
|
|
@@ -1883,13 +1883,13 @@ function ws(e, t, n) {
|
|
|
1883
1883
|
const [r, s] = e.split("#"), o = new URL(r), i = o.searchParams;
|
|
1884
1884
|
return i.has(t) ? i.set(t, n) : i.append(t, n), s && (o.hash = s), o.search = i.toString(), o.toString();
|
|
1885
1885
|
}
|
|
1886
|
-
const
|
|
1886
|
+
const Pt = Zt(!1);
|
|
1887
1887
|
Object.defineProperty(window, N.IS_MICRO, {
|
|
1888
1888
|
get: function() {
|
|
1889
|
-
return
|
|
1889
|
+
return Pt.value;
|
|
1890
1890
|
},
|
|
1891
1891
|
set: function(e) {
|
|
1892
|
-
|
|
1892
|
+
Pt.value = e;
|
|
1893
1893
|
}
|
|
1894
1894
|
});
|
|
1895
1895
|
const ze = (e) => `${N.DOM_ID_PREFIX}${e}`, Es = (e) => {
|
|
@@ -1956,6 +1956,10 @@ class Os {
|
|
|
1956
1956
|
preload() {
|
|
1957
1957
|
this.mount(void 0, !0);
|
|
1958
1958
|
}
|
|
1959
|
+
reload() {
|
|
1960
|
+
const t = this.dom.src;
|
|
1961
|
+
this.dom.src = t + (t.includes("?") ? "&" : "?") + "__t=" + Date.now();
|
|
1962
|
+
}
|
|
1959
1963
|
changeOptions(t) {
|
|
1960
1964
|
this.app = W(W({}, this.app), t);
|
|
1961
1965
|
}
|
|
@@ -1993,7 +1997,7 @@ const Ns = (e) => {
|
|
|
1993
1997
|
window.history.replaceState(null, "", r);
|
|
1994
1998
|
}
|
|
1995
1999
|
});
|
|
1996
|
-
}, Ps = (...t) =>
|
|
2000
|
+
}, Ps = (...t) => _t(void 0, [...t], function* (e = {}) {
|
|
1997
2001
|
const n = Se(N.IS_MICRO), r = Se(N.MICRO_NAME);
|
|
1998
2002
|
n && (window[N.IS_MICRO] = !0);
|
|
1999
2003
|
function s(i) {
|
|
@@ -2013,12 +2017,12 @@ const Ns = (e) => {
|
|
|
2013
2017
|
function ys(e) {
|
|
2014
2018
|
const t = e.history, n = t.pushState, r = t.replaceState;
|
|
2015
2019
|
t.pushState = function(s, o, i) {
|
|
2016
|
-
n.call(t, s, o, i),
|
|
2020
|
+
n.call(t, s, o, i), Vt();
|
|
2017
2021
|
}, t.replaceState = function(s, o, i) {
|
|
2018
|
-
r.call(t, s, o, i),
|
|
2022
|
+
r.call(t, s, o, i), Vt();
|
|
2019
2023
|
};
|
|
2020
2024
|
}
|
|
2021
|
-
function
|
|
2025
|
+
function Vt() {
|
|
2022
2026
|
if (!window[N.MICRO_APP])
|
|
2023
2027
|
return;
|
|
2024
2028
|
const { name: e, sync: t, mainBaseURL: n } = window[N.MICRO_APP], r = window.location.pathname + window.location.search + window.location.hash;
|
|
@@ -2044,19 +2048,22 @@ const bs = {
|
|
|
2044
2048
|
return Ve[e.name] = je(W({}, t), {
|
|
2045
2049
|
instance: new Os(e)
|
|
2046
2050
|
}), Ve[e.name];
|
|
2047
|
-
},
|
|
2048
|
-
let s =
|
|
2051
|
+
}, pt = (e) => Ve[e], Ss = (e, t) => Ve[e.name] = W(W({}, e), t), Rs = (e, t) => new Promise((n, r) => {
|
|
2052
|
+
let s = pt(e);
|
|
2049
2053
|
s ? (t && (s.instance.changeOptions(t), s = Ss(s, t)), s.preload ? s.instance.preloadRender(s.el) : s.instance.mount(s.el), n(s)) : r("app not found");
|
|
2050
2054
|
}), Is = (e) => {
|
|
2051
|
-
let t =
|
|
2055
|
+
let t = pt(e);
|
|
2052
2056
|
t && t.instance.unmount();
|
|
2057
|
+
}, Ms = (e) => {
|
|
2058
|
+
let t = pt(e);
|
|
2059
|
+
t && t.instance.reload();
|
|
2053
2060
|
}, Cs = /* @__PURE__ */ Vr({
|
|
2054
2061
|
__name: "XTMicroView",
|
|
2055
2062
|
props: {
|
|
2056
2063
|
appId: String
|
|
2057
2064
|
},
|
|
2058
2065
|
setup(e) {
|
|
2059
|
-
const t = e, n =
|
|
2066
|
+
const t = e, n = Zt(), r = () => {
|
|
2060
2067
|
t.appId && Rs(t.appId, {
|
|
2061
2068
|
el: n.value
|
|
2062
2069
|
});
|
|
@@ -2074,15 +2081,16 @@ const bs = {
|
|
|
2074
2081
|
}, null, 512));
|
|
2075
2082
|
}
|
|
2076
2083
|
});
|
|
2077
|
-
const
|
|
2084
|
+
const Ds = {
|
|
2078
2085
|
install: (e, t = {}) => {
|
|
2079
2086
|
e.component("xt-micro-view", Cs), vs();
|
|
2080
2087
|
}
|
|
2081
2088
|
};
|
|
2082
2089
|
export {
|
|
2083
|
-
|
|
2084
|
-
|
|
2090
|
+
Ds as default,
|
|
2091
|
+
pt as getApp,
|
|
2085
2092
|
Ps as microInit,
|
|
2093
|
+
Ms as reloadApp,
|
|
2086
2094
|
Vs as setupApp,
|
|
2087
2095
|
Rs as startApp,
|
|
2088
2096
|
Is as stopApp
|
package/dist/types/api.d.ts
CHANGED
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
declare const _default: import('vue').DefineComponent<{
|
|
2
|
+
appId: StringConstructor;
|
|
3
|
+
}, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
4
|
+
appId: StringConstructor;
|
|
5
|
+
}>>, {}, {}>;
|
|
6
|
+
export default _default;
|
package/dist/types/parent.d.ts
CHANGED