@das-fed/mframe 0.0.16 → 0.0.17
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/es5.js +471 -473
- package/index.js +436 -438
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -10,12 +10,12 @@ function Pn(e) {
|
|
|
10
10
|
for (const n of e.split(",")) t[n] = 1;
|
|
11
11
|
return (n) => n in t;
|
|
12
12
|
}
|
|
13
|
-
const
|
|
13
|
+
const Ne = process.env.NODE_ENV !== "production" ? Object.freeze({}) : {}, On = process.env.NODE_ENV !== "production" ? Object.freeze([]) : [], Fe = () => {
|
|
14
14
|
}, ma = () => !1, ur = (e) => e.charCodeAt(0) === 111 && e.charCodeAt(1) === 110 && // uppercase letter
|
|
15
15
|
(e.charCodeAt(2) > 122 || e.charCodeAt(2) < 97), Ir = (e) => e.startsWith("onUpdate:"), je = Object.assign, Xo = (e, t) => {
|
|
16
16
|
const n = e.indexOf(t);
|
|
17
17
|
n > -1 && e.splice(n, 1);
|
|
18
|
-
}, va = Object.prototype.hasOwnProperty,
|
|
18
|
+
}, va = Object.prototype.hasOwnProperty, be = (e, t) => va.call(e, t), ce = Array.isArray, Sn = (e) => kr(e) === "[object Map]", Ea = (e) => kr(e) === "[object Set]", ue = (e) => typeof e == "function", He = (e) => typeof e == "string", In = (e) => typeof e == "symbol", De = (e) => e !== null && typeof e == "object", Zo = (e) => (De(e) || ue(e)) && ue(e.then) && ue(e.catch), ya = Object.prototype.toString, kr = (e) => ya.call(e), Qo = (e) => kr(e).slice(8, -1), _a = (e) => kr(e) === "[object Object]", es = (e) => He(e) && e !== "NaN" && e[0] !== "-" && "" + parseInt(e, 10) === e, Jn = /* @__PURE__ */ Pn(
|
|
19
19
|
// the leading comma is intentional so empty string "" is also included
|
|
20
20
|
",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"
|
|
21
21
|
), ba = /* @__PURE__ */ Pn(
|
|
@@ -176,7 +176,7 @@ class Ca {
|
|
|
176
176
|
function Pa() {
|
|
177
177
|
return it;
|
|
178
178
|
}
|
|
179
|
-
let
|
|
179
|
+
let Ae;
|
|
180
180
|
const po = /* @__PURE__ */ new WeakSet();
|
|
181
181
|
class Bi {
|
|
182
182
|
constructor(t) {
|
|
@@ -198,14 +198,14 @@ class Bi {
|
|
|
198
198
|
if (!(this.flags & 1))
|
|
199
199
|
return this.fn();
|
|
200
200
|
this.flags |= 2, xs(this), Ki(this);
|
|
201
|
-
const t =
|
|
202
|
-
|
|
201
|
+
const t = Ae, n = mt;
|
|
202
|
+
Ae = this, mt = !0;
|
|
203
203
|
try {
|
|
204
204
|
return this.fn();
|
|
205
205
|
} finally {
|
|
206
|
-
process.env.NODE_ENV !== "production" &&
|
|
206
|
+
process.env.NODE_ENV !== "production" && Ae !== this && Rt(
|
|
207
207
|
"Active effect was not restored correctly - this is likely a Vue internal bug."
|
|
208
|
-
), ki(this),
|
|
208
|
+
), ki(this), Ae = t, mt = n, this.flags &= -3;
|
|
209
209
|
}
|
|
210
210
|
}
|
|
211
211
|
stop() {
|
|
@@ -292,8 +292,8 @@ function Yi(e) {
|
|
|
292
292
|
e.flags &= -3;
|
|
293
293
|
return;
|
|
294
294
|
}
|
|
295
|
-
const n =
|
|
296
|
-
|
|
295
|
+
const n = Ae, r = mt;
|
|
296
|
+
Ae = e, mt = !0;
|
|
297
297
|
try {
|
|
298
298
|
Ki(e);
|
|
299
299
|
const o = e.fn(e._value);
|
|
@@ -301,7 +301,7 @@ function Yi(e) {
|
|
|
301
301
|
} catch (o) {
|
|
302
302
|
throw t.version++, o;
|
|
303
303
|
} finally {
|
|
304
|
-
|
|
304
|
+
Ae = n, mt = r, ki(e), e.flags &= -3;
|
|
305
305
|
}
|
|
306
306
|
}
|
|
307
307
|
function os(e, t = !1) {
|
|
@@ -329,12 +329,12 @@ function Ut() {
|
|
|
329
329
|
function xs(e) {
|
|
330
330
|
const { cleanup: t } = e;
|
|
331
331
|
if (e.cleanup = void 0, t) {
|
|
332
|
-
const n =
|
|
333
|
-
|
|
332
|
+
const n = Ae;
|
|
333
|
+
Ae = void 0;
|
|
334
334
|
try {
|
|
335
335
|
t();
|
|
336
336
|
} finally {
|
|
337
|
-
|
|
337
|
+
Ae = n;
|
|
338
338
|
}
|
|
339
339
|
}
|
|
340
340
|
}
|
|
@@ -349,19 +349,19 @@ class ss {
|
|
|
349
349
|
this.computed = t, this.version = 0, this.activeLink = void 0, this.subs = void 0, this.map = void 0, this.key = void 0, this.sc = 0, process.env.NODE_ENV !== "production" && (this.subsHead = void 0);
|
|
350
350
|
}
|
|
351
351
|
track(t) {
|
|
352
|
-
if (!
|
|
352
|
+
if (!Ae || !mt || Ae === this.computed)
|
|
353
353
|
return;
|
|
354
354
|
let n = this.activeLink;
|
|
355
|
-
if (n === void 0 || n.sub !==
|
|
356
|
-
n = this.activeLink = new $a(
|
|
355
|
+
if (n === void 0 || n.sub !== Ae)
|
|
356
|
+
n = this.activeLink = new $a(Ae, this), Ae.deps ? (n.prevDep = Ae.depsTail, Ae.depsTail.nextDep = n, Ae.depsTail = n) : Ae.deps = Ae.depsTail = n, zi(n);
|
|
357
357
|
else if (n.version === -1 && (n.version = this.version, n.nextDep)) {
|
|
358
358
|
const r = n.nextDep;
|
|
359
|
-
r.prevDep = n.prevDep, n.prevDep && (n.prevDep.nextDep = r), n.prevDep =
|
|
359
|
+
r.prevDep = n.prevDep, n.prevDep && (n.prevDep.nextDep = r), n.prevDep = Ae.depsTail, n.nextDep = void 0, Ae.depsTail.nextDep = n, Ae.depsTail = n, Ae.deps === n && (Ae.deps = r);
|
|
360
360
|
}
|
|
361
|
-
return process.env.NODE_ENV !== "production" &&
|
|
361
|
+
return process.env.NODE_ENV !== "production" && Ae.onTrack && Ae.onTrack(
|
|
362
362
|
je(
|
|
363
363
|
{
|
|
364
|
-
effect:
|
|
364
|
+
effect: Ae
|
|
365
365
|
},
|
|
366
366
|
t
|
|
367
367
|
)
|
|
@@ -410,7 +410,7 @@ const Io = /* @__PURE__ */ new WeakMap(), un = Symbol(
|
|
|
410
410
|
process.env.NODE_ENV !== "production" ? "Array iterate" : ""
|
|
411
411
|
);
|
|
412
412
|
function We(e, t, n) {
|
|
413
|
-
if (mt &&
|
|
413
|
+
if (mt && Ae) {
|
|
414
414
|
let r = Io.get(e);
|
|
415
415
|
r || Io.set(e, r = /* @__PURE__ */ new Map());
|
|
416
416
|
let o = r.get(n);
|
|
@@ -655,7 +655,7 @@ class Zi extends Xi {
|
|
|
655
655
|
if (!rt(r) && !Ft(r) && (s = ve(s), r = ve(r)), !ce(t) && Ve(s) && !Ve(r))
|
|
656
656
|
return l ? !1 : (s.value = r, !0);
|
|
657
657
|
}
|
|
658
|
-
const i = ce(t) && es(n) ? Number(n) < t.length :
|
|
658
|
+
const i = ce(t) && es(n) ? Number(n) < t.length : be(t, n), c = Reflect.set(
|
|
659
659
|
t,
|
|
660
660
|
n,
|
|
661
661
|
r,
|
|
@@ -664,7 +664,7 @@ class Zi extends Xi {
|
|
|
664
664
|
return t === ve(o) && (i ? Zt(r, s) && St(t, "set", n, r, s) : St(t, "add", n, r)), c;
|
|
665
665
|
}
|
|
666
666
|
deleteProperty(t, n) {
|
|
667
|
-
const r =
|
|
667
|
+
const r = be(t, n), o = t[n], s = Reflect.deleteProperty(t, n);
|
|
668
668
|
return s && r && St(t, "delete", n, void 0, o), s;
|
|
669
669
|
}
|
|
670
670
|
has(t, n) {
|
|
@@ -808,7 +808,7 @@ function Ga(e, t) {
|
|
|
808
808
|
function zr(e, t) {
|
|
809
809
|
const n = Ga(e, t);
|
|
810
810
|
return (r, o, s) => o === "__v_isReactive" ? !e : o === "__v_isReadonly" ? e : o === "__v_raw" ? r : Reflect.get(
|
|
811
|
-
|
|
811
|
+
be(n, o) && o in r ? n : r,
|
|
812
812
|
o,
|
|
813
813
|
s
|
|
814
814
|
);
|
|
@@ -923,7 +923,7 @@ function ve(e) {
|
|
|
923
923
|
return t ? ve(t) : e;
|
|
924
924
|
}
|
|
925
925
|
function Za(e) {
|
|
926
|
-
return !
|
|
926
|
+
return !be(e, "__v_skip") && Object.isExtensible(e) && $r(e, "__v_skip", !0), e;
|
|
927
927
|
}
|
|
928
928
|
const Ze = (e) => De(e) ? cs(e) : e, Lo = (e) => De(e) ? oc(e) : e;
|
|
929
929
|
function Ve(e) {
|
|
@@ -979,7 +979,7 @@ class nu {
|
|
|
979
979
|
*/
|
|
980
980
|
notify() {
|
|
981
981
|
if (this.flags |= 16, !(this.flags & 8) && // avoid infinite self recursion
|
|
982
|
-
|
|
982
|
+
Ae !== this)
|
|
983
983
|
return Gi(this, !0), !0;
|
|
984
984
|
process.env.NODE_ENV;
|
|
985
985
|
}
|
|
@@ -1011,7 +1011,7 @@ function ou(e, t = !1, n = an) {
|
|
|
1011
1011
|
"onWatcherCleanup() was called when there was no active watcher to associate with."
|
|
1012
1012
|
);
|
|
1013
1013
|
}
|
|
1014
|
-
function su(e, t, n =
|
|
1014
|
+
function su(e, t, n = Ne) {
|
|
1015
1015
|
const { immediate: r, deep: o, once: s, scheduler: i, augmentJob: c, call: l } = n, E = (L) => {
|
|
1016
1016
|
(n.onWarn || Rt)(
|
|
1017
1017
|
"Invalid watch source: ",
|
|
@@ -1048,8 +1048,8 @@ function su(e, t, n = Te) {
|
|
|
1048
1048
|
const L = h, ne = o === !0 ? 1 / 0 : o;
|
|
1049
1049
|
h = () => Wt(L(), ne);
|
|
1050
1050
|
}
|
|
1051
|
-
const
|
|
1052
|
-
d.stop(),
|
|
1051
|
+
const z = Pa(), te = () => {
|
|
1052
|
+
d.stop(), z && z.active && Xo(z.effects, d);
|
|
1053
1053
|
};
|
|
1054
1054
|
if (s && t) {
|
|
1055
1055
|
const L = t;
|
|
@@ -1255,7 +1255,7 @@ function xt(e, t, n, r) {
|
|
|
1255
1255
|
);
|
|
1256
1256
|
}
|
|
1257
1257
|
function fr(e, t, n, r = !0) {
|
|
1258
|
-
const o = t ? t.vnode : null, { errorHandler: s, throwUnhandledErrorInProduction: i } = t && t.appContext.config ||
|
|
1258
|
+
const o = t ? t.vnode : null, { errorHandler: s, throwUnhandledErrorInProduction: i } = t && t.appContext.config || Ne;
|
|
1259
1259
|
if (t) {
|
|
1260
1260
|
let c = t.parent;
|
|
1261
1261
|
const l = t.proxy, E = process.env.NODE_ENV !== "production" ? as[n] : `https://vuejs.org/error-reference/#runtime-${n}`;
|
|
@@ -1544,7 +1544,7 @@ function _r(e, t) {
|
|
|
1544
1544
|
return process.env.NODE_ENV !== "production" && H("withDirectives can only be used inside render functions."), e;
|
|
1545
1545
|
const n = eo(et), r = e.dirs || (e.dirs = []);
|
|
1546
1546
|
for (let o = 0; o < t.length; o++) {
|
|
1547
|
-
let [s, i, c, l =
|
|
1547
|
+
let [s, i, c, l = Ne] = t[o];
|
|
1548
1548
|
s && (ue(s) && (s = {
|
|
1549
1549
|
mounted: s,
|
|
1550
1550
|
updated: s
|
|
@@ -1614,9 +1614,9 @@ function Wr(e, t, n, r, o = !1) {
|
|
|
1614
1614
|
);
|
|
1615
1615
|
return;
|
|
1616
1616
|
}
|
|
1617
|
-
const E = t && t.r, p = c.refs ===
|
|
1617
|
+
const E = t && t.r, p = c.refs === Ne ? c.refs = {} : c.refs, d = c.setupState, h = ve(d), O = d === Ne ? () => !1 : ($) => process.env.NODE_ENV !== "production" && (be(h, $) && !Ve(h[$]) && H(
|
|
1618
1618
|
`Template ref "${$}" used on a non-ref value. It will not work in the production build.`
|
|
1619
|
-
), Du.has(h[$])) ? !1 :
|
|
1619
|
+
), Du.has(h[$])) ? !1 : be(h, $);
|
|
1620
1620
|
if (E != null && E !== l && (He(E) ? (p[E] = null, O(E) && (d[E] = null)) : Ve(E) && (E.value = null)), ue(l))
|
|
1621
1621
|
$n(l, c, 12, [i, p]);
|
|
1622
1622
|
else {
|
|
@@ -1624,8 +1624,8 @@ function Wr(e, t, n, r, o = !1) {
|
|
|
1624
1624
|
if ($ || j) {
|
|
1625
1625
|
const F = () => {
|
|
1626
1626
|
if (e.f) {
|
|
1627
|
-
const
|
|
1628
|
-
o ? ce(
|
|
1627
|
+
const z = $ ? O(l) ? d[l] : p[l] : l.value;
|
|
1628
|
+
o ? ce(z) && Xo(z, s) : ce(z) ? z.includes(s) || z.push(s) : $ ? (p[l] = [s], O(l) && (d[l] = p[l])) : (l.value = [s], e.k && (p[e.k] = l.value));
|
|
1629
1629
|
} else $ ? (p[l] = i, O(l) && (d[l] = i)) : j ? (l.value = i, e.k && (p[e.k] = i)) : process.env.NODE_ENV !== "production" && H("Invalid template ref type:", l, `(${typeof l})`);
|
|
1630
1630
|
};
|
|
1631
1631
|
i ? (F.id = -1, st(F, n)) : F();
|
|
@@ -1718,7 +1718,7 @@ const Bu = Symbol.for("v-ndc"), jo = (e) => e ? Gc(e) ? eo(e) : jo(e.parent) : n
|
|
|
1718
1718
|
$nextTick: (e) => e.n || (e.n = pu.bind(e.proxy)),
|
|
1719
1719
|
$watch: (e) => bl.bind(e)
|
|
1720
1720
|
})
|
|
1721
|
-
), hs = (e) => e === "_" || e === "$", Eo = (e, t) => e !==
|
|
1721
|
+
), hs = (e) => e === "_" || e === "$", Eo = (e, t) => e !== Ne && !e.__isScriptSetup && be(e, t), bc = {
|
|
1722
1722
|
get({ _: e }, t) {
|
|
1723
1723
|
if (t === "__v_skip")
|
|
1724
1724
|
return !0;
|
|
@@ -1742,15 +1742,15 @@ const Bu = Symbol.for("v-ndc"), jo = (e) => e ? Gc(e) ? eo(e) : jo(e.parent) : n
|
|
|
1742
1742
|
else {
|
|
1743
1743
|
if (Eo(r, t))
|
|
1744
1744
|
return i[t] = 1, r[t];
|
|
1745
|
-
if (o !==
|
|
1745
|
+
if (o !== Ne && be(o, t))
|
|
1746
1746
|
return i[t] = 2, o[t];
|
|
1747
1747
|
if (
|
|
1748
1748
|
// only cache other properties when instance has declared (thus stable)
|
|
1749
1749
|
// props
|
|
1750
|
-
(E = e.propsOptions[0]) &&
|
|
1750
|
+
(E = e.propsOptions[0]) && be(E, t)
|
|
1751
1751
|
)
|
|
1752
1752
|
return i[t] = 3, s[t];
|
|
1753
|
-
if (n !==
|
|
1753
|
+
if (n !== Ne && be(n, t))
|
|
1754
1754
|
return i[t] = 4, n[t];
|
|
1755
1755
|
Ho && (i[t] = 0);
|
|
1756
1756
|
}
|
|
@@ -1764,16 +1764,16 @@ const Bu = Symbol.for("v-ndc"), jo = (e) => e ? Gc(e) ? eo(e) : jo(e.parent) : n
|
|
|
1764
1764
|
(d = c.__cssModules) && (d = d[t])
|
|
1765
1765
|
)
|
|
1766
1766
|
return d;
|
|
1767
|
-
if (n !==
|
|
1767
|
+
if (n !== Ne && be(n, t))
|
|
1768
1768
|
return i[t] = 4, n[t];
|
|
1769
1769
|
if (
|
|
1770
1770
|
// global properties
|
|
1771
|
-
h = l.config.globalProperties,
|
|
1771
|
+
h = l.config.globalProperties, be(h, t)
|
|
1772
1772
|
)
|
|
1773
1773
|
return h[t];
|
|
1774
1774
|
process.env.NODE_ENV !== "production" && et && (!He(t) || // #1091 avoid internal isRef/isVNode checks on component instance leading
|
|
1775
1775
|
// to infinite warning loop
|
|
1776
|
-
t.indexOf("__v") !== 0) && (o !==
|
|
1776
|
+
t.indexOf("__v") !== 0) && (o !== Ne && hs(t[0]) && be(o, t) ? H(
|
|
1777
1777
|
`Property ${JSON.stringify(
|
|
1778
1778
|
t
|
|
1779
1779
|
)} must be accessed via $data because it starts with a reserved character ("$" or "_") and is not proxied on the render context.`
|
|
@@ -1783,7 +1783,7 @@ const Bu = Symbol.for("v-ndc"), jo = (e) => e ? Gc(e) ? eo(e) : jo(e.parent) : n
|
|
|
1783
1783
|
},
|
|
1784
1784
|
set({ _: e }, t, n) {
|
|
1785
1785
|
const { data: r, setupState: o, ctx: s } = e;
|
|
1786
|
-
return Eo(o, t) ? (o[t] = n, !0) : process.env.NODE_ENV !== "production" && o.__isScriptSetup &&
|
|
1786
|
+
return Eo(o, t) ? (o[t] = n, !0) : process.env.NODE_ENV !== "production" && o.__isScriptSetup && be(o, t) ? (H(`Cannot mutate <script setup> binding "${t}" from Options API.`), !1) : r !== Ne && be(r, t) ? (r[t] = n, !0) : be(e.props, t) ? (process.env.NODE_ENV !== "production" && H(`Attempting to mutate prop "${t}". Props are readonly.`), !1) : t[0] === "$" && t.slice(1) in e ? (process.env.NODE_ENV !== "production" && H(
|
|
1787
1787
|
`Attempting to mutate public property "${t}". Properties starting with $ are reserved and readonly.`
|
|
1788
1788
|
), !1) : (process.env.NODE_ENV !== "production" && t in e.appContext.config.globalProperties ? Object.defineProperty(s, t, {
|
|
1789
1789
|
enumerable: !0,
|
|
@@ -1795,10 +1795,10 @@ const Bu = Symbol.for("v-ndc"), jo = (e) => e ? Gc(e) ? eo(e) : jo(e.parent) : n
|
|
|
1795
1795
|
_: { data: e, setupState: t, accessCache: n, ctx: r, appContext: o, propsOptions: s }
|
|
1796
1796
|
}, i) {
|
|
1797
1797
|
let c;
|
|
1798
|
-
return !!n[i] || e !==
|
|
1798
|
+
return !!n[i] || e !== Ne && be(e, i) || Eo(t, i) || (c = s[0]) && be(c, i) || be(r, i) || be(fn, i) || be(o.config.globalProperties, i);
|
|
1799
1799
|
},
|
|
1800
1800
|
defineProperty(e, t, n) {
|
|
1801
|
-
return n.get != null ? e._.accessCache[t] = 0 :
|
|
1801
|
+
return n.get != null ? e._.accessCache[t] = 0 : be(n, "value") && this.set(e, t, n.value, null), Reflect.defineProperty(e, t, n);
|
|
1802
1802
|
}
|
|
1803
1803
|
};
|
|
1804
1804
|
process.env.NODE_ENV !== "production" && (bc.ownKeys = (e) => (H(
|
|
@@ -1888,7 +1888,7 @@ function Yu(e) {
|
|
|
1888
1888
|
updated: $,
|
|
1889
1889
|
activated: j,
|
|
1890
1890
|
deactivated: F,
|
|
1891
|
-
beforeDestroy:
|
|
1891
|
+
beforeDestroy: z,
|
|
1892
1892
|
beforeUnmount: te,
|
|
1893
1893
|
destroyed: U,
|
|
1894
1894
|
unmounted: re,
|
|
@@ -1903,81 +1903,81 @@ function Yu(e) {
|
|
|
1903
1903
|
// assets
|
|
1904
1904
|
components: N,
|
|
1905
1905
|
directives: oe,
|
|
1906
|
-
filters:
|
|
1907
|
-
} = t,
|
|
1906
|
+
filters: he
|
|
1907
|
+
} = t, we = process.env.NODE_ENV !== "production" ? ku() : null;
|
|
1908
1908
|
if (process.env.NODE_ENV !== "production") {
|
|
1909
|
-
const [
|
|
1910
|
-
if (
|
|
1911
|
-
for (const ie in
|
|
1912
|
-
|
|
1913
|
-
}
|
|
1914
|
-
if (E && qu(E, r,
|
|
1915
|
-
for (const
|
|
1916
|
-
const ie = i[
|
|
1917
|
-
ue(ie) ? (process.env.NODE_ENV !== "production" ? Object.defineProperty(r,
|
|
1909
|
+
const [Y] = e.propsOptions;
|
|
1910
|
+
if (Y)
|
|
1911
|
+
for (const ie in Y)
|
|
1912
|
+
we("Props", ie);
|
|
1913
|
+
}
|
|
1914
|
+
if (E && qu(E, r, we), i)
|
|
1915
|
+
for (const Y in i) {
|
|
1916
|
+
const ie = i[Y];
|
|
1917
|
+
ue(ie) ? (process.env.NODE_ENV !== "production" ? Object.defineProperty(r, Y, {
|
|
1918
1918
|
value: ie.bind(n),
|
|
1919
1919
|
configurable: !0,
|
|
1920
1920
|
enumerable: !0,
|
|
1921
1921
|
writable: !0
|
|
1922
|
-
}) : r[
|
|
1923
|
-
`Method "${
|
|
1922
|
+
}) : r[Y] = ie.bind(n), process.env.NODE_ENV !== "production" && we("Methods", Y)) : process.env.NODE_ENV !== "production" && H(
|
|
1923
|
+
`Method "${Y}" has type "${typeof ie}" in the component definition. Did you reference the function correctly?`
|
|
1924
1924
|
);
|
|
1925
1925
|
}
|
|
1926
1926
|
if (o) {
|
|
1927
1927
|
process.env.NODE_ENV !== "production" && !ue(o) && H(
|
|
1928
1928
|
"The data option must be a function. Plain object usage is no longer supported."
|
|
1929
1929
|
);
|
|
1930
|
-
const
|
|
1931
|
-
if (process.env.NODE_ENV !== "production" && Zo(
|
|
1930
|
+
const Y = o.call(n, n);
|
|
1931
|
+
if (process.env.NODE_ENV !== "production" && Zo(Y) && H(
|
|
1932
1932
|
"data() returned a Promise - note data() cannot be async; If you intend to perform data fetching before component renders, use async setup() + <Suspense>."
|
|
1933
|
-
), !De(
|
|
1933
|
+
), !De(Y))
|
|
1934
1934
|
process.env.NODE_ENV !== "production" && H("data() should return an object.");
|
|
1935
|
-
else if (e.data = cs(
|
|
1936
|
-
for (const ie in
|
|
1937
|
-
|
|
1935
|
+
else if (e.data = cs(Y), process.env.NODE_ENV !== "production")
|
|
1936
|
+
for (const ie in Y)
|
|
1937
|
+
we("Data", ie), hs(ie[0]) || Object.defineProperty(r, ie, {
|
|
1938
1938
|
configurable: !0,
|
|
1939
1939
|
enumerable: !0,
|
|
1940
|
-
get: () =>
|
|
1940
|
+
get: () => Y[ie],
|
|
1941
1941
|
set: Fe
|
|
1942
1942
|
});
|
|
1943
1943
|
}
|
|
1944
1944
|
if (Ho = !0, s)
|
|
1945
|
-
for (const
|
|
1946
|
-
const ie = s[
|
|
1947
|
-
process.env.NODE_ENV !== "production" && ye === Fe && H(`Computed property "${
|
|
1945
|
+
for (const Y in s) {
|
|
1946
|
+
const ie = s[Y], ye = ue(ie) ? ie.bind(n, n) : ue(ie.get) ? ie.get.bind(n, n) : Fe;
|
|
1947
|
+
process.env.NODE_ENV !== "production" && ye === Fe && H(`Computed property "${Y}" has no getter.`);
|
|
1948
1948
|
const D = !ue(ie) && ue(ie.set) ? ie.set.bind(n) : process.env.NODE_ENV !== "production" ? () => {
|
|
1949
1949
|
H(
|
|
1950
|
-
`Write operation failed: computed property "${
|
|
1950
|
+
`Write operation failed: computed property "${Y}" is readonly.`
|
|
1951
1951
|
);
|
|
1952
|
-
} : Fe,
|
|
1952
|
+
} : Fe, Oe = bt({
|
|
1953
1953
|
get: ye,
|
|
1954
1954
|
set: D
|
|
1955
1955
|
});
|
|
1956
|
-
Object.defineProperty(r,
|
|
1956
|
+
Object.defineProperty(r, Y, {
|
|
1957
1957
|
enumerable: !0,
|
|
1958
1958
|
configurable: !0,
|
|
1959
|
-
get: () =>
|
|
1960
|
-
set: (
|
|
1961
|
-
}), process.env.NODE_ENV !== "production" &&
|
|
1959
|
+
get: () => Oe.value,
|
|
1960
|
+
set: (Re) => Oe.value = Re
|
|
1961
|
+
}), process.env.NODE_ENV !== "production" && we("Computed", Y);
|
|
1962
1962
|
}
|
|
1963
1963
|
if (c)
|
|
1964
|
-
for (const
|
|
1965
|
-
wc(c[
|
|
1964
|
+
for (const Y in c)
|
|
1965
|
+
wc(c[Y], r, n, Y);
|
|
1966
1966
|
if (l) {
|
|
1967
|
-
const
|
|
1968
|
-
Reflect.ownKeys(
|
|
1969
|
-
el(ie,
|
|
1967
|
+
const Y = ue(l) ? l.call(n) : l;
|
|
1968
|
+
Reflect.ownKeys(Y).forEach((ie) => {
|
|
1969
|
+
el(ie, Y[ie]);
|
|
1970
1970
|
});
|
|
1971
1971
|
}
|
|
1972
1972
|
p && Ms(p, e, "c");
|
|
1973
|
-
function de(
|
|
1974
|
-
ce(ie) ? ie.forEach((ye) =>
|
|
1973
|
+
function de(Y, ie) {
|
|
1974
|
+
ce(ie) ? ie.forEach((ye) => Y(ye.bind(n))) : ie && Y(ie.bind(n));
|
|
1975
1975
|
}
|
|
1976
1976
|
if (de($u, d), de(yc, h), de(Mu, O), de(Lu, $), de(Cu, j), de(Pu, F), de(Fu, pe), de(Wu, ne), de(Hu, le), de(Vu, te), de(_c, re), de(ju, K), ce(k))
|
|
1977
1977
|
if (k.length) {
|
|
1978
|
-
const
|
|
1978
|
+
const Y = e.exposed || (e.exposed = {});
|
|
1979
1979
|
k.forEach((ie) => {
|
|
1980
|
-
Object.defineProperty(
|
|
1980
|
+
Object.defineProperty(Y, ie, {
|
|
1981
1981
|
get: () => n[ie],
|
|
1982
1982
|
set: (ye) => n[ie] = ye
|
|
1983
1983
|
});
|
|
@@ -2288,7 +2288,7 @@ function rl(e, t, n, r) {
|
|
|
2288
2288
|
continue;
|
|
2289
2289
|
const O = t[h];
|
|
2290
2290
|
if (l)
|
|
2291
|
-
if (
|
|
2291
|
+
if (be(s, h))
|
|
2292
2292
|
O !== s[h] && (s[h] = O, E = !0);
|
|
2293
2293
|
else {
|
|
2294
2294
|
const $ = gt(h);
|
|
@@ -2310,9 +2310,9 @@ function rl(e, t, n, r) {
|
|
|
2310
2310
|
let p;
|
|
2311
2311
|
for (const d in c)
|
|
2312
2312
|
(!t || // for camelCase
|
|
2313
|
-
!
|
|
2313
|
+
!be(t, d) && // it's possible the original props was passed in as kebab-case
|
|
2314
2314
|
// and converted to camelCase (#955)
|
|
2315
|
-
((p = Qt(d)) === d || !
|
|
2315
|
+
((p = Qt(d)) === d || !be(t, p))) && (l ? n && // for camelCase
|
|
2316
2316
|
(n[d] !== void 0 || // for kebab-case
|
|
2317
2317
|
n[p] !== void 0) && (o[d] = Fo(
|
|
2318
2318
|
l,
|
|
@@ -2324,7 +2324,7 @@ function rl(e, t, n, r) {
|
|
|
2324
2324
|
)) : delete o[d]);
|
|
2325
2325
|
if (s !== c)
|
|
2326
2326
|
for (const d in s)
|
|
2327
|
-
(!t || !
|
|
2327
|
+
(!t || !be(t, d)) && (delete s[d], E = !0);
|
|
2328
2328
|
}
|
|
2329
2329
|
E && St(e.attrs, "set", ""), process.env.NODE_ENV !== "production" && Dc(t || {}, o, e);
|
|
2330
2330
|
}
|
|
@@ -2337,10 +2337,10 @@ function Rc(e, t, n, r) {
|
|
|
2337
2337
|
continue;
|
|
2338
2338
|
const E = t[l];
|
|
2339
2339
|
let p;
|
|
2340
|
-
o &&
|
|
2340
|
+
o && be(o, p = gt(l)) ? !s || !s.includes(p) ? n[p] = E : (c || (c = {}))[p] = E : Qr(e.emitsOptions, l) || (!(l in r) || E !== r[l]) && (r[l] = E, i = !0);
|
|
2341
2341
|
}
|
|
2342
2342
|
if (s) {
|
|
2343
|
-
const l = ve(n), E = c ||
|
|
2343
|
+
const l = ve(n), E = c || Ne;
|
|
2344
2344
|
for (let p = 0; p < s.length; p++) {
|
|
2345
2345
|
const d = s[p];
|
|
2346
2346
|
n[d] = Fo(
|
|
@@ -2349,7 +2349,7 @@ function Rc(e, t, n, r) {
|
|
|
2349
2349
|
d,
|
|
2350
2350
|
E[d],
|
|
2351
2351
|
e,
|
|
2352
|
-
!
|
|
2352
|
+
!be(E, d)
|
|
2353
2353
|
);
|
|
2354
2354
|
}
|
|
2355
2355
|
}
|
|
@@ -2358,7 +2358,7 @@ function Rc(e, t, n, r) {
|
|
|
2358
2358
|
function Fo(e, t, n, r, o, s) {
|
|
2359
2359
|
const i = e[n];
|
|
2360
2360
|
if (i != null) {
|
|
2361
|
-
const c =
|
|
2361
|
+
const c = be(i, "default");
|
|
2362
2362
|
if (c && r === void 0) {
|
|
2363
2363
|
const l = i.default;
|
|
2364
2364
|
if (i.type !== Function && !i.skipFactory && ue(l)) {
|
|
@@ -2407,7 +2407,7 @@ function xc(e, t, n = !1) {
|
|
|
2407
2407
|
for (let p = 0; p < s.length; p++) {
|
|
2408
2408
|
process.env.NODE_ENV !== "production" && !He(s[p]) && H("props must be strings when using array syntax.", s[p]);
|
|
2409
2409
|
const d = gt(s[p]);
|
|
2410
|
-
js(d) && (i[d] =
|
|
2410
|
+
js(d) && (i[d] = Ne);
|
|
2411
2411
|
}
|
|
2412
2412
|
else if (s) {
|
|
2413
2413
|
process.env.NODE_ENV !== "production" && !De(s) && H("invalid props options", s);
|
|
@@ -2417,8 +2417,8 @@ function xc(e, t, n = !1) {
|
|
|
2417
2417
|
const h = s[p], O = i[d] = ce(h) || ue(h) ? { type: h } : je({}, h), $ = O.type;
|
|
2418
2418
|
let j = !1, F = !0;
|
|
2419
2419
|
if (ce($))
|
|
2420
|
-
for (let
|
|
2421
|
-
const te = $[
|
|
2420
|
+
for (let z = 0; z < $.length; ++z) {
|
|
2421
|
+
const te = $[z], U = ue(te) && te.name;
|
|
2422
2422
|
if (U === "Boolean") {
|
|
2423
2423
|
j = !0;
|
|
2424
2424
|
break;
|
|
@@ -2432,7 +2432,7 @@ function xc(e, t, n = !1) {
|
|
|
2432
2432
|
] = j, O[
|
|
2433
2433
|
1
|
|
2434
2434
|
/* shouldCastTrue */
|
|
2435
|
-
] = F, (j ||
|
|
2435
|
+
] = F, (j || be(O, "default")) && c.push(d);
|
|
2436
2436
|
}
|
|
2437
2437
|
}
|
|
2438
2438
|
}
|
|
@@ -2552,7 +2552,7 @@ const Cc = (e) => e[0] === "_" || e === "$stable", gs = (e) => ce(e) ? e.map(dt)
|
|
|
2552
2552
|
} else t && Ic(e, t);
|
|
2553
2553
|
}, dl = (e, t, n) => {
|
|
2554
2554
|
const { vnode: r, slots: o } = e;
|
|
2555
|
-
let s = !0, i =
|
|
2555
|
+
let s = !0, i = Ne;
|
|
2556
2556
|
if (r.shapeFlag & 32) {
|
|
2557
2557
|
const c = t._;
|
|
2558
2558
|
c ? process.env.NODE_ENV !== "production" && Tt ? (Bo(o, t, n), St(e, "set", "$slots")) : n && c === 1 ? s = !1 : Bo(o, t, n) : (s = !t.$stable, Pc(t, o)), i = t;
|
|
@@ -2609,14 +2609,14 @@ function ml(e, t) {
|
|
|
2609
2609
|
} = e, j = (f, g, y, C = null, R = null, _ = null, P = void 0, b = null, A = process.env.NODE_ENV !== "production" && Tt ? !1 : !!g.dynamicChildren) => {
|
|
2610
2610
|
if (f === g)
|
|
2611
2611
|
return;
|
|
2612
|
-
f && !Gn(f, g) && (C =
|
|
2612
|
+
f && !Gn(f, g) && (C = ge(f), Pe(f, R, _, !0), f = null), g.patchFlag === -2 && (A = !1, g.dynamicChildren = null);
|
|
2613
2613
|
const { type: T, ref: G, shapeFlag: M } = g;
|
|
2614
2614
|
switch (T) {
|
|
2615
2615
|
case dr:
|
|
2616
2616
|
F(f, g, y, C);
|
|
2617
2617
|
break;
|
|
2618
2618
|
case ut:
|
|
2619
|
-
|
|
2619
|
+
z(f, g, y, C);
|
|
2620
2620
|
break;
|
|
2621
2621
|
case Tr:
|
|
2622
2622
|
f == null ? te(g, y, C, P) : process.env.NODE_ENV !== "production" && U(f, g, y, P);
|
|
@@ -2645,7 +2645,7 @@ function ml(e, t) {
|
|
|
2645
2645
|
P,
|
|
2646
2646
|
b,
|
|
2647
2647
|
A
|
|
2648
|
-
) : M & 6 ?
|
|
2648
|
+
) : M & 6 ? he(
|
|
2649
2649
|
f,
|
|
2650
2650
|
g,
|
|
2651
2651
|
y,
|
|
@@ -2680,7 +2680,7 @@ function ml(e, t) {
|
|
|
2680
2680
|
const R = g.el = f.el;
|
|
2681
2681
|
g.children !== f.children && E(R, g.children);
|
|
2682
2682
|
}
|
|
2683
|
-
},
|
|
2683
|
+
}, z = (f, g, y, C) => {
|
|
2684
2684
|
f == null ? r(
|
|
2685
2685
|
g.el = l(g.children || ""),
|
|
2686
2686
|
y,
|
|
@@ -2753,8 +2753,8 @@ function ml(e, t) {
|
|
|
2753
2753
|
P,
|
|
2754
2754
|
b
|
|
2755
2755
|
), se && nn(f, null, C, "created"), pe(A, f, f.scopeId, P, C), G) {
|
|
2756
|
-
for (const
|
|
2757
|
-
|
|
2756
|
+
for (const Te in G)
|
|
2757
|
+
Te !== "value" && !Jn(Te) && s(A, Te, null, G[Te], _, C);
|
|
2758
2758
|
"value" in G && s(A, "value", null, G.value, _), (T = G.onVnodeBeforeMount) && _t(T, C, f);
|
|
2759
2759
|
}
|
|
2760
2760
|
process.env.NODE_ENV !== "production" && ($r(A, "__vnode", f, !0), $r(A, "__vueParentComponent", C, !0)), se && nn(f, null, C, "beforeMount");
|
|
@@ -2799,7 +2799,7 @@ function ml(e, t) {
|
|
|
2799
2799
|
process.env.NODE_ENV !== "production" && (b.__vnode = g);
|
|
2800
2800
|
let { patchFlag: A, dynamicChildren: T, dirs: G } = g;
|
|
2801
2801
|
A |= f.patchFlag & 16;
|
|
2802
|
-
const M = f.props ||
|
|
2802
|
+
const M = f.props || Ne, Q = g.props || Ne;
|
|
2803
2803
|
let se;
|
|
2804
2804
|
if (y && rn(y, !1), (se = Q.onVnodeBeforeUpdate) && _t(se, y, g, f), G && nn(g, f, y, "beforeUpdate"), y && rn(y, !0), process.env.NODE_ENV !== "production" && Tt && (A = 0, P = !1, T = null), (M.innerHTML && Q.innerHTML == null || M.textContent && Q.textContent == null) && p(b, ""), T ? (B(
|
|
2805
2805
|
f.dynamicChildren,
|
|
@@ -2824,8 +2824,8 @@ function ml(e, t) {
|
|
|
2824
2824
|
N(b, M, Q, y, R);
|
|
2825
2825
|
else if (A & 2 && M.class !== Q.class && s(b, "class", null, Q.class, R), A & 4 && s(b, "style", M.style, Q.style, R), A & 8) {
|
|
2826
2826
|
const Ee = g.dynamicProps;
|
|
2827
|
-
for (let
|
|
2828
|
-
const Se = Ee[
|
|
2827
|
+
for (let Te = 0; Te < Ee.length; Te++) {
|
|
2828
|
+
const Se = Ee[Te], Ye = M[Se], Ge = Q[Se];
|
|
2829
2829
|
(Ge !== Ye || Se === "value") && s(b, Se, Ye, Ge, R, y);
|
|
2830
2830
|
}
|
|
2831
2831
|
}
|
|
@@ -2864,7 +2864,7 @@ function ml(e, t) {
|
|
|
2864
2864
|
}
|
|
2865
2865
|
}, N = (f, g, y, C, R) => {
|
|
2866
2866
|
if (g !== y) {
|
|
2867
|
-
if (g !==
|
|
2867
|
+
if (g !== Ne)
|
|
2868
2868
|
for (const _ in g)
|
|
2869
2869
|
!Jn(_) && !(_ in y) && s(
|
|
2870
2870
|
f,
|
|
@@ -2930,14 +2930,14 @@ function ml(e, t) {
|
|
|
2930
2930
|
b,
|
|
2931
2931
|
A
|
|
2932
2932
|
);
|
|
2933
|
-
},
|
|
2933
|
+
}, he = (f, g, y, C, R, _, P, b, A) => {
|
|
2934
2934
|
g.slotScopeIds = b, f == null ? g.shapeFlag & 512 ? R.ctx.activate(
|
|
2935
2935
|
g,
|
|
2936
2936
|
y,
|
|
2937
2937
|
C,
|
|
2938
2938
|
P,
|
|
2939
2939
|
A
|
|
2940
|
-
) :
|
|
2940
|
+
) : we(
|
|
2941
2941
|
g,
|
|
2942
2942
|
y,
|
|
2943
2943
|
C,
|
|
@@ -2946,19 +2946,19 @@ function ml(e, t) {
|
|
|
2946
2946
|
P,
|
|
2947
2947
|
A
|
|
2948
2948
|
) : de(f, g, A);
|
|
2949
|
-
},
|
|
2949
|
+
}, we = (f, g, y, C, R, _, P) => {
|
|
2950
2950
|
const b = f.component = Vl(
|
|
2951
2951
|
f,
|
|
2952
2952
|
C,
|
|
2953
2953
|
R
|
|
2954
2954
|
);
|
|
2955
2955
|
if (process.env.NODE_ENV !== "production" && b.type.__hmrId && hu(b), process.env.NODE_ENV !== "production" && (wr(f), _n(b, "mount")), ds(f) && (b.ctx.renderer = W), process.env.NODE_ENV !== "production" && _n(b, "init"), Wl(b, !1, P), process.env.NODE_ENV !== "production" && bn(b, "init"), b.asyncDep) {
|
|
2956
|
-
if (process.env.NODE_ENV !== "production" && Tt && (f.el = null), R && R.registerDep(b,
|
|
2956
|
+
if (process.env.NODE_ENV !== "production" && Tt && (f.el = null), R && R.registerDep(b, Y, P), !f.el) {
|
|
2957
2957
|
const A = b.subTree = at(ut);
|
|
2958
|
-
|
|
2958
|
+
z(null, A, g, y);
|
|
2959
2959
|
}
|
|
2960
2960
|
} else
|
|
2961
|
-
|
|
2961
|
+
Y(
|
|
2962
2962
|
b,
|
|
2963
2963
|
f,
|
|
2964
2964
|
g,
|
|
@@ -2978,21 +2978,21 @@ function ml(e, t) {
|
|
|
2978
2978
|
C.next = g, C.update();
|
|
2979
2979
|
else
|
|
2980
2980
|
g.el = f.el, C.vnode = g;
|
|
2981
|
-
},
|
|
2981
|
+
}, Y = (f, g, y, C, R, _, P) => {
|
|
2982
2982
|
const b = () => {
|
|
2983
2983
|
if (f.isMounted) {
|
|
2984
|
-
let { next: M, bu: Q, u: se, parent: Ee, vnode:
|
|
2984
|
+
let { next: M, bu: Q, u: se, parent: Ee, vnode: Te } = f;
|
|
2985
2985
|
{
|
|
2986
2986
|
const tt = $c(f);
|
|
2987
2987
|
if (tt) {
|
|
2988
|
-
M && (M.el =
|
|
2988
|
+
M && (M.el = Te.el, ie(f, M, P)), tt.asyncDep.then(() => {
|
|
2989
2989
|
f.isUnmounted || b();
|
|
2990
2990
|
});
|
|
2991
2991
|
return;
|
|
2992
2992
|
}
|
|
2993
2993
|
}
|
|
2994
2994
|
let Se = M, Ye;
|
|
2995
|
-
process.env.NODE_ENV !== "production" && wr(M || f.vnode), rn(f, !1), M ? (M.el =
|
|
2995
|
+
process.env.NODE_ENV !== "production" && wr(M || f.vnode), rn(f, !1), M ? (M.el = Te.el, ie(f, M, P)) : M = Te, Q && Fn(Q), (Ye = M.props && M.props.onVnodeBeforeUpdate) && _t(Ye, Ee, M, Te), rn(f, !0), process.env.NODE_ENV !== "production" && _n(f, "render");
|
|
2996
2996
|
const Ge = Bs(f);
|
|
2997
2997
|
process.env.NODE_ENV !== "production" && bn(f, "render");
|
|
2998
2998
|
const ot = f.subTree;
|
|
@@ -3002,17 +3002,17 @@ function ml(e, t) {
|
|
|
3002
3002
|
// parent may have changed if it's in a teleport
|
|
3003
3003
|
d(ot.el),
|
|
3004
3004
|
// anchor may have changed if it's in a fragment
|
|
3005
|
-
|
|
3005
|
+
ge(ot),
|
|
3006
3006
|
f,
|
|
3007
3007
|
R,
|
|
3008
3008
|
_
|
|
3009
3009
|
), process.env.NODE_ENV !== "production" && bn(f, "patch"), M.el = Ge.el, Se === null && Tl(f, Ge.el), se && st(se, R), (Ye = M.props && M.props.onVnodeUpdated) && st(
|
|
3010
|
-
() => _t(Ye, Ee, M,
|
|
3010
|
+
() => _t(Ye, Ee, M, Te),
|
|
3011
3011
|
R
|
|
3012
3012
|
), process.env.NODE_ENV !== "production" && dc(f), process.env.NODE_ENV !== "production" && Or();
|
|
3013
3013
|
} else {
|
|
3014
3014
|
let M;
|
|
3015
|
-
const { el: Q, props: se } = g, { bm: Ee, m:
|
|
3015
|
+
const { el: Q, props: se } = g, { bm: Ee, m: Te, parent: Se, root: Ye, type: Ge } = f, ot = Qn(g);
|
|
3016
3016
|
rn(f, !1), Ee && Fn(Ee), !ot && (M = se && se.onVnodeBeforeMount) && _t(M, Se, g), rn(f, !0);
|
|
3017
3017
|
{
|
|
3018
3018
|
Ye.ce && Ye.ce._injectChildStyle(Ge), process.env.NODE_ENV !== "production" && _n(f, "render");
|
|
@@ -3027,7 +3027,7 @@ function ml(e, t) {
|
|
|
3027
3027
|
_
|
|
3028
3028
|
), process.env.NODE_ENV !== "production" && bn(f, "patch"), g.el = tt.el;
|
|
3029
3029
|
}
|
|
3030
|
-
if (
|
|
3030
|
+
if (Te && st(Te, R), !ot && (M = se && se.onVnodeMounted)) {
|
|
3031
3031
|
const tt = g;
|
|
3032
3032
|
st(
|
|
3033
3033
|
() => _t(M, Se, tt),
|
|
@@ -3050,7 +3050,7 @@ function ml(e, t) {
|
|
|
3050
3050
|
const T = f && f.children, G = f ? f.shapeFlag : 0, M = g.children, { patchFlag: Q, shapeFlag: se } = g;
|
|
3051
3051
|
if (Q > 0) {
|
|
3052
3052
|
if (Q & 128) {
|
|
3053
|
-
|
|
3053
|
+
Oe(
|
|
3054
3054
|
T,
|
|
3055
3055
|
M,
|
|
3056
3056
|
y,
|
|
@@ -3077,7 +3077,7 @@ function ml(e, t) {
|
|
|
3077
3077
|
return;
|
|
3078
3078
|
}
|
|
3079
3079
|
}
|
|
3080
|
-
se & 8 ? (G & 16 && Z(T, R, _), M !== T && p(y, M)) : G & 16 ? se & 16 ?
|
|
3080
|
+
se & 8 ? (G & 16 && Z(T, R, _), M !== T && p(y, M)) : G & 16 ? se & 16 ? Oe(
|
|
3081
3081
|
T,
|
|
3082
3082
|
M,
|
|
3083
3083
|
y,
|
|
@@ -3133,7 +3133,7 @@ function ml(e, t) {
|
|
|
3133
3133
|
A,
|
|
3134
3134
|
M
|
|
3135
3135
|
);
|
|
3136
|
-
},
|
|
3136
|
+
}, Oe = (f, g, y, C, R, _, P, b, A) => {
|
|
3137
3137
|
let T = 0;
|
|
3138
3138
|
const G = g.length;
|
|
3139
3139
|
let M = f.length - 1, Q = G - 1;
|
|
@@ -3193,14 +3193,14 @@ function ml(e, t) {
|
|
|
3193
3193
|
for (; T <= M; )
|
|
3194
3194
|
Pe(f[T], R, _, !0), T++;
|
|
3195
3195
|
else {
|
|
3196
|
-
const se = T, Ee = T,
|
|
3196
|
+
const se = T, Ee = T, Te = /* @__PURE__ */ new Map();
|
|
3197
3197
|
for (T = Ee; T <= Q; T++) {
|
|
3198
3198
|
const Be = g[T] = A ? Jt(g[T]) : dt(g[T]);
|
|
3199
|
-
Be.key != null && (process.env.NODE_ENV !== "production" &&
|
|
3199
|
+
Be.key != null && (process.env.NODE_ENV !== "production" && Te.has(Be.key) && H(
|
|
3200
3200
|
"Duplicate keys found during update:",
|
|
3201
3201
|
JSON.stringify(Be.key),
|
|
3202
3202
|
"Make sure keys are unique."
|
|
3203
|
-
),
|
|
3203
|
+
), Te.set(Be.key, T));
|
|
3204
3204
|
}
|
|
3205
3205
|
let Se, Ye = 0;
|
|
3206
3206
|
const Ge = Q - Ee + 1;
|
|
@@ -3215,7 +3215,7 @@ function ml(e, t) {
|
|
|
3215
3215
|
}
|
|
3216
3216
|
let ft;
|
|
3217
3217
|
if (Be.key != null)
|
|
3218
|
-
ft =
|
|
3218
|
+
ft = Te.get(Be.key);
|
|
3219
3219
|
else
|
|
3220
3220
|
for (Se = Ee; Se <= Q; Se++)
|
|
3221
3221
|
if (lt[Se - Ee] === 0 && Gn(Be, g[Se])) {
|
|
@@ -3247,13 +3247,13 @@ function ml(e, t) {
|
|
|
3247
3247
|
P,
|
|
3248
3248
|
b,
|
|
3249
3249
|
A
|
|
3250
|
-
) : ot && (Se < 0 || T !== Vn[Se] ?
|
|
3250
|
+
) : ot && (Se < 0 || T !== Vn[Se] ? Re(ft, y, tn, 2) : Se--);
|
|
3251
3251
|
}
|
|
3252
3252
|
}
|
|
3253
|
-
},
|
|
3253
|
+
}, Re = (f, g, y, C, R = null) => {
|
|
3254
3254
|
const { el: _, type: P, transition: b, children: A, shapeFlag: T } = f;
|
|
3255
3255
|
if (T & 6) {
|
|
3256
|
-
|
|
3256
|
+
Re(f.component.subTree, g, y, C);
|
|
3257
3257
|
return;
|
|
3258
3258
|
}
|
|
3259
3259
|
if (T & 128) {
|
|
@@ -3267,7 +3267,7 @@ function ml(e, t) {
|
|
|
3267
3267
|
if (P === Ot) {
|
|
3268
3268
|
r(_, g, y);
|
|
3269
3269
|
for (let M = 0; M < A.length; M++)
|
|
3270
|
-
|
|
3270
|
+
Re(A[M], g, y, C);
|
|
3271
3271
|
r(f.anchor, g, y);
|
|
3272
3272
|
return;
|
|
3273
3273
|
}
|
|
@@ -3279,12 +3279,12 @@ function ml(e, t) {
|
|
|
3279
3279
|
if (C === 0)
|
|
3280
3280
|
b.beforeEnter(_), r(_, g, y), st(() => b.enter(_), R);
|
|
3281
3281
|
else {
|
|
3282
|
-
const { leave: M, delayLeave: Q, afterLeave: se } = b, Ee = () => r(_, g, y),
|
|
3282
|
+
const { leave: M, delayLeave: Q, afterLeave: se } = b, Ee = () => r(_, g, y), Te = () => {
|
|
3283
3283
|
M(_, () => {
|
|
3284
3284
|
Ee(), se && se();
|
|
3285
3285
|
});
|
|
3286
3286
|
};
|
|
3287
|
-
Q ? Q(_, Ee,
|
|
3287
|
+
Q ? Q(_, Ee, Te) : Te();
|
|
3288
3288
|
}
|
|
3289
3289
|
else
|
|
3290
3290
|
r(_, g, y);
|
|
@@ -3304,9 +3304,9 @@ function ml(e, t) {
|
|
|
3304
3304
|
g.ctx.deactivate(f);
|
|
3305
3305
|
return;
|
|
3306
3306
|
}
|
|
3307
|
-
const Ee = G & 1 && Q,
|
|
3307
|
+
const Ee = G & 1 && Q, Te = !Qn(f);
|
|
3308
3308
|
let Se;
|
|
3309
|
-
if (
|
|
3309
|
+
if (Te && (Se = P && P.onVnodeBeforeUnmount) && _t(Se, g, f), G & 6)
|
|
3310
3310
|
ke(f.component, y, C);
|
|
3311
3311
|
else {
|
|
3312
3312
|
if (G & 128) {
|
|
@@ -3333,7 +3333,7 @@ function ml(e, t) {
|
|
|
3333
3333
|
!0
|
|
3334
3334
|
) : (_ === Ot && M & 384 || !R && G & 16) && Z(A, g, y), C && S(f);
|
|
3335
3335
|
}
|
|
3336
|
-
(
|
|
3336
|
+
(Te && (Se = P && P.onVnodeUnmounted) || Ee) && st(() => {
|
|
3337
3337
|
Se && _t(Se, g, f), Ee && nn(f, null, g, "unmounted");
|
|
3338
3338
|
}, y);
|
|
3339
3339
|
}, S = (f) => {
|
|
@@ -3370,16 +3370,16 @@ function ml(e, t) {
|
|
|
3370
3370
|
}, Z = (f, g, y, C = !1, R = !1, _ = 0) => {
|
|
3371
3371
|
for (let P = _; P < f.length; P++)
|
|
3372
3372
|
Pe(f[P], g, y, C, R);
|
|
3373
|
-
},
|
|
3373
|
+
}, ge = (f) => {
|
|
3374
3374
|
if (f.shapeFlag & 6)
|
|
3375
|
-
return
|
|
3375
|
+
return ge(f.component.subTree);
|
|
3376
3376
|
if (f.shapeFlag & 128)
|
|
3377
3377
|
return f.suspense.next();
|
|
3378
3378
|
const g = h(f.anchor || f.el), y = g && g[Tu];
|
|
3379
3379
|
return y ? h(y) : g;
|
|
3380
3380
|
};
|
|
3381
3381
|
let $e = !1;
|
|
3382
|
-
const
|
|
3382
|
+
const _e = (f, g, y) => {
|
|
3383
3383
|
f == null ? g._vnode && Pe(g._vnode, null, null, !0) : j(
|
|
3384
3384
|
g._vnode || null,
|
|
3385
3385
|
f,
|
|
@@ -3392,19 +3392,19 @@ function ml(e, t) {
|
|
|
3392
3392
|
}, W = {
|
|
3393
3393
|
p: j,
|
|
3394
3394
|
um: Pe,
|
|
3395
|
-
m:
|
|
3395
|
+
m: Re,
|
|
3396
3396
|
r: S,
|
|
3397
|
-
mt:
|
|
3397
|
+
mt: we,
|
|
3398
3398
|
mc: K,
|
|
3399
3399
|
pc: ye,
|
|
3400
3400
|
pbc: B,
|
|
3401
|
-
n:
|
|
3401
|
+
n: ge,
|
|
3402
3402
|
o: e
|
|
3403
3403
|
};
|
|
3404
3404
|
return {
|
|
3405
|
-
render:
|
|
3405
|
+
render: _e,
|
|
3406
3406
|
hydrate: void 0,
|
|
3407
|
-
createApp: Qu(
|
|
3407
|
+
createApp: Qu(_e)
|
|
3408
3408
|
};
|
|
3409
3409
|
}
|
|
3410
3410
|
function yo({ type: e, props: t }, n) {
|
|
@@ -3468,7 +3468,7 @@ function At(e, t, n) {
|
|
|
3468
3468
|
"`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."
|
|
3469
3469
|
), Mc(e, t, n);
|
|
3470
3470
|
}
|
|
3471
|
-
function Mc(e, t, n =
|
|
3471
|
+
function Mc(e, t, n = Ne) {
|
|
3472
3472
|
const { immediate: r, deep: o, flush: s, once: i } = n;
|
|
3473
3473
|
process.env.NODE_ENV !== "production" && !t && (r !== void 0 && H(
|
|
3474
3474
|
'watch() "immediate" option is only respected when using the watch(source, callback, options?) signature.'
|
|
@@ -3523,7 +3523,7 @@ function Lc(e, t) {
|
|
|
3523
3523
|
const wl = (e, t) => t === "modelValue" || t === "model-value" ? e.modelModifiers : e[`${t}Modifiers`] || e[`${gt(t)}Modifiers`] || e[`${Qt(t)}Modifiers`];
|
|
3524
3524
|
function Ol(e, t, ...n) {
|
|
3525
3525
|
if (e.isUnmounted) return;
|
|
3526
|
-
const r = e.vnode.props ||
|
|
3526
|
+
const r = e.vnode.props || Ne;
|
|
3527
3527
|
if (process.env.NODE_ENV !== "production") {
|
|
3528
3528
|
const {
|
|
3529
3529
|
emitsOptions: p,
|
|
@@ -3592,7 +3592,7 @@ function Vc(e, t, n = !1) {
|
|
|
3592
3592
|
return !s && !c ? (De(e) && r.set(e, null), null) : (ce(s) ? s.forEach((l) => i[l] = null) : je(i, s), De(e) && r.set(e, i), i);
|
|
3593
3593
|
}
|
|
3594
3594
|
function Qr(e, t) {
|
|
3595
|
-
return !e || !ur(t) ? !1 : (t = t.slice(2).replace(/Once$/, ""),
|
|
3595
|
+
return !e || !ur(t) ? !1 : (t = t.slice(2).replace(/Once$/, ""), be(e, t[0].toLowerCase() + t.slice(1)) || be(e, Qt(t)) || be(e, t));
|
|
3596
3596
|
}
|
|
3597
3597
|
let Uo = !1;
|
|
3598
3598
|
function Ur() {
|
|
@@ -3616,7 +3616,7 @@ function Bs(e) {
|
|
|
3616
3616
|
ctx: $,
|
|
3617
3617
|
inheritAttrs: j
|
|
3618
3618
|
} = e, F = Hr(e);
|
|
3619
|
-
let
|
|
3619
|
+
let z, te;
|
|
3620
3620
|
process.env.NODE_ENV !== "production" && (Uo = !1);
|
|
3621
3621
|
try {
|
|
3622
3622
|
if (n.shapeFlag & 4) {
|
|
@@ -3629,7 +3629,7 @@ function Bs(e) {
|
|
|
3629
3629
|
), Reflect.get(le, pe, K);
|
|
3630
3630
|
}
|
|
3631
3631
|
}) : L;
|
|
3632
|
-
|
|
3632
|
+
z = dt(
|
|
3633
3633
|
E.call(
|
|
3634
3634
|
ne,
|
|
3635
3635
|
L,
|
|
@@ -3642,7 +3642,7 @@ function Bs(e) {
|
|
|
3642
3642
|
), te = c;
|
|
3643
3643
|
} else {
|
|
3644
3644
|
const L = t;
|
|
3645
|
-
process.env.NODE_ENV !== "production" && c === d && Ur(),
|
|
3645
|
+
process.env.NODE_ENV !== "production" && c === d && Ur(), z = dt(
|
|
3646
3646
|
L.length > 1 ? L(
|
|
3647
3647
|
process.env.NODE_ENV !== "production" ? Nt(d) : d,
|
|
3648
3648
|
process.env.NODE_ENV !== "production" ? {
|
|
@@ -3659,10 +3659,10 @@ function Bs(e) {
|
|
|
3659
3659
|
), te = t.props ? c : Sl(c);
|
|
3660
3660
|
}
|
|
3661
3661
|
} catch (L) {
|
|
3662
|
-
er.length = 0, fr(L, e, 1),
|
|
3662
|
+
er.length = 0, fr(L, e, 1), z = at(ut);
|
|
3663
3663
|
}
|
|
3664
|
-
let U =
|
|
3665
|
-
if (process.env.NODE_ENV !== "production" &&
|
|
3664
|
+
let U = z, re;
|
|
3665
|
+
if (process.env.NODE_ENV !== "production" && z.patchFlag > 0 && z.patchFlag & 2048 && ([U, re] = jc(z)), te && j !== !1) {
|
|
3666
3666
|
const L = Object.keys(te), { shapeFlag: ne } = U;
|
|
3667
3667
|
if (L.length) {
|
|
3668
3668
|
if (ne & 7)
|
|
@@ -3688,7 +3688,7 @@ function Bs(e) {
|
|
|
3688
3688
|
"Runtime directive used on component with non-element root node. The directives will not function as intended."
|
|
3689
3689
|
), U = en(U, null, !1, !0), U.dirs = U.dirs ? U.dirs.concat(n.dirs) : n.dirs), n.transition && (process.env.NODE_ENV !== "production" && !Us(U) && H(
|
|
3690
3690
|
"Component inside <Transition> renders non-element root node that cannot be animated."
|
|
3691
|
-
), ps(U, n.transition)), process.env.NODE_ENV !== "production" && re ? re(U) :
|
|
3691
|
+
), ps(U, n.transition)), process.env.NODE_ENV !== "production" && re ? re(U) : z = U, Hr(F), z;
|
|
3692
3692
|
}
|
|
3693
3693
|
const jc = (e) => {
|
|
3694
3694
|
const t = e.children, n = e.dynamicChildren, r = ms(t, !1);
|
|
@@ -4061,17 +4061,17 @@ function Vl(e, t, n) {
|
|
|
4061
4061
|
// to be set immediately
|
|
4062
4062
|
emitted: null,
|
|
4063
4063
|
// props default value
|
|
4064
|
-
propsDefaults:
|
|
4064
|
+
propsDefaults: Ne,
|
|
4065
4065
|
// inheritAttrs
|
|
4066
4066
|
inheritAttrs: r.inheritAttrs,
|
|
4067
4067
|
// state
|
|
4068
|
-
ctx:
|
|
4069
|
-
data:
|
|
4070
|
-
props:
|
|
4071
|
-
attrs:
|
|
4072
|
-
slots:
|
|
4073
|
-
refs:
|
|
4074
|
-
setupState:
|
|
4068
|
+
ctx: Ne,
|
|
4069
|
+
data: Ne,
|
|
4070
|
+
props: Ne,
|
|
4071
|
+
attrs: Ne,
|
|
4072
|
+
slots: Ne,
|
|
4073
|
+
refs: Ne,
|
|
4074
|
+
setupState: Ne,
|
|
4075
4075
|
setupContext: null,
|
|
4076
4076
|
// suspense related
|
|
4077
4077
|
suspense: n,
|
|
@@ -4363,7 +4363,7 @@ function ql() {
|
|
|
4363
4363
|
};
|
|
4364
4364
|
function s(d) {
|
|
4365
4365
|
const h = [];
|
|
4366
|
-
d.type.props && d.props && h.push(i("props", ve(d.props))), d.setupState !==
|
|
4366
|
+
d.type.props && d.props && h.push(i("props", ve(d.props))), d.setupState !== Ne && h.push(i("setup", d.setupState)), d.data !== Ne && h.push(i("data", ve(d.data)));
|
|
4367
4367
|
const O = l(d, "computed");
|
|
4368
4368
|
O && h.push(i("computed", O));
|
|
4369
4369
|
const $ = l(d, "inject");
|
|
@@ -4744,18 +4744,18 @@ const _f = { style: { flex: "1", display: "flex", "min-height": "0" } }, bf = {
|
|
|
4744
4744
|
tab: qe(null),
|
|
4745
4745
|
mount: qe(null)
|
|
4746
4746
|
}, $ = bt(() => p.value.activeMicroAppName || ""), j = bt(() => {
|
|
4747
|
-
var K, k, B, N, oe,
|
|
4747
|
+
var K, k, B, N, oe, he;
|
|
4748
4748
|
return {
|
|
4749
4749
|
navHeight: (((k = (K = p.value) == null ? void 0 : K.navRect) == null ? void 0 : k.height) || 0) + "px",
|
|
4750
4750
|
menuWidth: (((N = (B = p.value) == null ? void 0 : B.menuRect) == null ? void 0 : N.width) || 0) + "px",
|
|
4751
|
-
tabHeight: (((
|
|
4751
|
+
tabHeight: (((he = (oe = p.value) == null ? void 0 : oe.tabRect) == null ? void 0 : he.height) || 0) + "px"
|
|
4752
4752
|
};
|
|
4753
4753
|
}), F = bt(() => ({
|
|
4754
4754
|
position: "relative",
|
|
4755
4755
|
height: "100%",
|
|
4756
4756
|
display: "flex",
|
|
4757
4757
|
flexDirection: "column"
|
|
4758
|
-
})),
|
|
4758
|
+
})), z = (K, k = 0, B = !1) => {
|
|
4759
4759
|
let N = null;
|
|
4760
4760
|
return (...oe) => {
|
|
4761
4761
|
B && !N && K(...oe), clearTimeout(N), N = setTimeout(() => {
|
|
@@ -4765,7 +4765,7 @@ const _f = { style: { flex: "1", display: "flex", "min-height": "0" } }, bf = {
|
|
|
4765
4765
|
}, te = () => {
|
|
4766
4766
|
function K(B, N = 20) {
|
|
4767
4767
|
if (!B) return;
|
|
4768
|
-
const oe = B.getBoundingClientRect(), { x:
|
|
4768
|
+
const oe = B.getBoundingClientRect(), { x: he, y: we, width: de, height: Y } = oe, ie = he, ye = we, D = he + de, Oe = we + Y, Re = [
|
|
4769
4769
|
document.documentElement,
|
|
4770
4770
|
document.body,
|
|
4771
4771
|
B,
|
|
@@ -4775,15 +4775,15 @@ const _f = { style: { flex: "1", display: "flex", "min-height": "0" } }, bf = {
|
|
|
4775
4775
|
O.mount.value
|
|
4776
4776
|
];
|
|
4777
4777
|
for (let Pe = ie; Pe < D; Pe += N)
|
|
4778
|
-
for (let S = ye; S <
|
|
4778
|
+
for (let S = ye; S < Oe; S += N) {
|
|
4779
4779
|
const x = document.elementFromPoint(Pe, S);
|
|
4780
|
-
if (x && !
|
|
4780
|
+
if (x && !Re.includes(x))
|
|
4781
4781
|
return x;
|
|
4782
4782
|
}
|
|
4783
4783
|
}
|
|
4784
4784
|
let k = K(h.nav.value);
|
|
4785
4785
|
return k || (k = K(h.tab.value)), k || (k = K(h.menu.value)), k;
|
|
4786
|
-
}, U = { x: -1, y: -1 }, re =
|
|
4786
|
+
}, U = { x: -1, y: -1 }, re = z(
|
|
4787
4787
|
(K, k, B) => {
|
|
4788
4788
|
if (!(U.x === k.x && U.y === k.y)) {
|
|
4789
4789
|
if (U.x = k.x, U.y = k.x, K === "mouseenter") {
|
|
@@ -4830,25 +4830,23 @@ const _f = { style: { flex: "1", display: "flex", "min-height": "0" } }, bf = {
|
|
|
4830
4830
|
if (l.value) {
|
|
4831
4831
|
(async () => {
|
|
4832
4832
|
const B = (N) => {
|
|
4833
|
-
var
|
|
4834
|
-
const oe = (
|
|
4835
|
-
|
|
4836
|
-
|
|
4837
|
-
);
|
|
4838
|
-
if (de != null && de.length && J) return;
|
|
4839
|
-
const { x: ie, y: ye, width: D, height: _e } = (oe == null ? void 0 : oe.getBoundingClientRect()) || {};
|
|
4840
|
-
s.data.set({ [`${N}Rect`]: { x: ie, y: ye, width: D, height: _e } });
|
|
4833
|
+
var we;
|
|
4834
|
+
const oe = (we = h[N]) == null ? void 0 : we.value, he = () => {
|
|
4835
|
+
const { x: de, y: Y, width: ie, height: ye } = (oe == null ? void 0 : oe.getBoundingClientRect()) || {};
|
|
4836
|
+
s.data.set({ [`${N}Rect`]: { x: de, y: Y, width: ie, height: ye } });
|
|
4841
4837
|
};
|
|
4842
|
-
|
|
4838
|
+
he(), new MutationObserver(he).observe(oe, {
|
|
4843
4839
|
childList: !0,
|
|
4844
|
-
subtree: !0
|
|
4845
|
-
|
|
4846
|
-
|
|
4840
|
+
subtree: !0
|
|
4841
|
+
}), new IntersectionObserver((de) => {
|
|
4842
|
+
var Y;
|
|
4843
|
+
(Y = de == null ? void 0 : de[0]) != null && Y.isIntersecting && he();
|
|
4844
|
+
}).observe(oe);
|
|
4847
4845
|
};
|
|
4848
4846
|
await Promise.all([
|
|
4849
4847
|
...Object.keys(h).map(async (N) => {
|
|
4850
4848
|
const oe = h[N];
|
|
4851
|
-
await new Promise((
|
|
4849
|
+
await new Promise((he) => At(() => oe.value, he)), B(N);
|
|
4852
4850
|
}),
|
|
4853
4851
|
...Object.keys(O).map(async (N) => {
|
|
4854
4852
|
await new Promise((oe) => At(() => O[N].value, oe));
|
|
@@ -4885,8 +4883,8 @@ const _f = { style: { flex: "1", display: "flex", "min-height": "0" } }, bf = {
|
|
|
4885
4883
|
}), (async () => {
|
|
4886
4884
|
await Promise.all([
|
|
4887
4885
|
...Object.keys(h).map(async (oe) => {
|
|
4888
|
-
const
|
|
4889
|
-
await new Promise((
|
|
4886
|
+
const he = h[oe];
|
|
4887
|
+
await new Promise((we) => At(() => he.value, we));
|
|
4890
4888
|
})
|
|
4891
4889
|
]), s.event.emit("onLayoutMounted"), r("layoutMounted", {
|
|
4892
4890
|
mountDom: O.mount.value
|
|
@@ -5018,9 +5016,9 @@ const Jc = async (e) => {
|
|
|
5018
5016
|
d.on("mounted", (F) => {
|
|
5019
5017
|
var U;
|
|
5020
5018
|
o.expose.connectMicroApp(F);
|
|
5021
|
-
const
|
|
5022
|
-
if (!
|
|
5023
|
-
if (!(((U =
|
|
5019
|
+
const z = r.data.get().microApps.find((re) => re.name === F.name);
|
|
5020
|
+
if (!z) return;
|
|
5021
|
+
if (!(((U = z.router) == null ? void 0 : U.sync) ?? !0)) {
|
|
5024
5022
|
j();
|
|
5025
5023
|
return;
|
|
5026
5024
|
}
|
|
@@ -5029,29 +5027,29 @@ const Jc = async (e) => {
|
|
|
5029
5027
|
});
|
|
5030
5028
|
const O = qe(!1);
|
|
5031
5029
|
o.cors.on("reportRouter", (F) => {
|
|
5032
|
-
var N, oe,
|
|
5033
|
-
const { data:
|
|
5034
|
-
if (!
|
|
5035
|
-
const te = r.data.get().microApps.find((
|
|
5030
|
+
var N, oe, he;
|
|
5031
|
+
const { data: z } = F || {};
|
|
5032
|
+
if (!z.appInfo) return;
|
|
5033
|
+
const te = r.data.get().microApps.find((we) => we.name === z.appInfo.name);
|
|
5036
5034
|
if (!te || !(((N = te.router) == null ? void 0 : N.sync) ?? !0) || !h(te.name, ["mounted", "activated"])) return;
|
|
5037
5035
|
const { pathname: re, hash: L, search: ne } = new URL(window.location.href);
|
|
5038
5036
|
let le = re + ne;
|
|
5039
|
-
const { pathname: pe, hash: K, search: k } = new URL(
|
|
5037
|
+
const { pathname: pe, hash: K, search: k } = new URL(z.href);
|
|
5040
5038
|
let B = pe + k;
|
|
5041
|
-
((oe = te.router) == null ? void 0 : oe.mode) === "hash" && (B = K.replace("#", "")), ((
|
|
5039
|
+
((oe = te.router) == null ? void 0 : oe.mode) === "hash" && (B = K.replace("#", "")), ((he = r.data.get().initOptions.router) == null ? void 0 : he.mode) === "hash" && (le = `/${L}`, B = `/#${B}`), le !== B && (O.value = !0, setTimeout(() => {
|
|
5042
5040
|
O.value = !1;
|
|
5043
5041
|
}, 300), i.replaceState(B));
|
|
5044
5042
|
}), o.cors.on("customEventFromMicro", (F) => {
|
|
5045
|
-
var
|
|
5046
|
-
(
|
|
5043
|
+
var z, te;
|
|
5044
|
+
(z = F == null ? void 0 : F.data) != null && z.eventName && o.event.emit(F.data.eventName, (te = F.data) == null ? void 0 : te.params);
|
|
5047
5045
|
});
|
|
5048
|
-
const $ = (F,
|
|
5046
|
+
const $ = (F, z) => {
|
|
5049
5047
|
var re;
|
|
5050
|
-
const { path: te } =
|
|
5048
|
+
const { path: te } = z;
|
|
5051
5049
|
let U = te;
|
|
5052
5050
|
((re = F.router) == null ? void 0 : re.mode) === "hash" && (U = `/#${te}`), o.cors.send(F.name, "syncRouter", {
|
|
5053
5051
|
appInfo: F,
|
|
5054
|
-
parentRouter:
|
|
5052
|
+
parentRouter: z,
|
|
5055
5053
|
replacePath: U
|
|
5056
5054
|
});
|
|
5057
5055
|
};
|
|
@@ -5062,8 +5060,8 @@ const Jc = async (e) => {
|
|
|
5062
5060
|
var K, k;
|
|
5063
5061
|
if (O.value) return;
|
|
5064
5062
|
await new Promise((B) => setTimeout(B, 0));
|
|
5065
|
-
const F = ((K = r.data.get().initOptions.router) == null ? void 0 : K.mode) || "history", { pathname:
|
|
5066
|
-
let re =
|
|
5063
|
+
const F = ((K = r.data.get().initOptions.router) == null ? void 0 : K.mode) || "history", { pathname: z, hash: te, search: U } = new URL(window.location.href);
|
|
5064
|
+
let re = z + U;
|
|
5067
5065
|
F === "hash" && (re = te.replace("#", ""));
|
|
5068
5066
|
const L = i.match(re), ne = c.value.find((B) => L ? L === B.name : !1);
|
|
5069
5067
|
let le = re;
|
|
@@ -5322,24 +5320,24 @@ function Sf() {
|
|
|
5322
5320
|
/* ) */
|
|
5323
5321
|
CHAR_RIGHT_SQUARE_BRACKET: j
|
|
5324
5322
|
/* ] */
|
|
5325
|
-
} = /* @__PURE__ */ ro(), F = (U) => U === c || U === r,
|
|
5323
|
+
} = /* @__PURE__ */ ro(), F = (U) => U === c || U === r, z = (U) => {
|
|
5326
5324
|
U.isPrefix !== !0 && (U.depth = U.isGlobstar ? 1 / 0 : 1);
|
|
5327
5325
|
};
|
|
5328
5326
|
return Ao = (U, re) => {
|
|
5329
5327
|
const L = re || {}, ne = U.length - 1, le = L.parts === !0 || L.scanToEnd === !0, pe = [], K = [], k = [];
|
|
5330
|
-
let B = U, N = -1, oe = 0,
|
|
5331
|
-
const $e = () => N >= ne,
|
|
5328
|
+
let B = U, N = -1, oe = 0, he = 0, we = !1, de = !1, Y = !1, ie = !1, ye = !1, D = !1, Oe = !1, Re = !1, Pe = !1, S = !1, x = 0, ke, Z, ge = { value: "", depth: 0, isGlob: !1 };
|
|
5329
|
+
const $e = () => N >= ne, _e = () => B.charCodeAt(N + 1), W = () => (ke = Z, B.charCodeAt(++N));
|
|
5332
5330
|
for (; N < ne; ) {
|
|
5333
5331
|
Z = W();
|
|
5334
5332
|
let C;
|
|
5335
5333
|
if (Z === r) {
|
|
5336
|
-
|
|
5334
|
+
Oe = ge.backslashes = !0, Z = W(), Z === l && (D = !0);
|
|
5337
5335
|
continue;
|
|
5338
5336
|
}
|
|
5339
5337
|
if (D === !0 || Z === l) {
|
|
5340
5338
|
for (x++; $e() !== !0 && (Z = W()); ) {
|
|
5341
5339
|
if (Z === r) {
|
|
5342
|
-
|
|
5340
|
+
Oe = ge.backslashes = !0, W();
|
|
5343
5341
|
continue;
|
|
5344
5342
|
}
|
|
5345
5343
|
if (Z === l) {
|
|
@@ -5347,17 +5345,17 @@ function Sf() {
|
|
|
5347
5345
|
continue;
|
|
5348
5346
|
}
|
|
5349
5347
|
if (D !== !0 && Z === s && (Z = W()) === s) {
|
|
5350
|
-
if (
|
|
5348
|
+
if (we = ge.isBrace = !0, Y = ge.isGlob = !0, S = !0, le === !0)
|
|
5351
5349
|
continue;
|
|
5352
5350
|
break;
|
|
5353
5351
|
}
|
|
5354
5352
|
if (D !== !0 && Z === o) {
|
|
5355
|
-
if (
|
|
5353
|
+
if (we = ge.isBrace = !0, Y = ge.isGlob = !0, S = !0, le === !0)
|
|
5356
5354
|
continue;
|
|
5357
5355
|
break;
|
|
5358
5356
|
}
|
|
5359
5357
|
if (Z === O && (x--, x === 0)) {
|
|
5360
|
-
D = !1,
|
|
5358
|
+
D = !1, we = ge.isBrace = !0, S = !0;
|
|
5361
5359
|
break;
|
|
5362
5360
|
}
|
|
5363
5361
|
}
|
|
@@ -5366,23 +5364,23 @@ function Sf() {
|
|
|
5366
5364
|
break;
|
|
5367
5365
|
}
|
|
5368
5366
|
if (Z === c) {
|
|
5369
|
-
if (pe.push(N), K.push(
|
|
5367
|
+
if (pe.push(N), K.push(ge), ge = { value: "", depth: 0, isGlob: !1 }, S === !0) continue;
|
|
5370
5368
|
if (ke === s && N === oe + 1) {
|
|
5371
5369
|
oe += 2;
|
|
5372
5370
|
continue;
|
|
5373
5371
|
}
|
|
5374
|
-
|
|
5372
|
+
he = N + 1;
|
|
5375
5373
|
continue;
|
|
5376
5374
|
}
|
|
5377
|
-
if (L.noext !== !0 && (Z === d || Z === n || Z === t || Z === h || Z === i) === !0 &&
|
|
5378
|
-
if (
|
|
5375
|
+
if (L.noext !== !0 && (Z === d || Z === n || Z === t || Z === h || Z === i) === !0 && _e() === E) {
|
|
5376
|
+
if (Y = ge.isGlob = !0, ie = ge.isExtglob = !0, S = !0, Z === i && N === oe && (Pe = !0), le === !0) {
|
|
5379
5377
|
for (; $e() !== !0 && (Z = W()); ) {
|
|
5380
5378
|
if (Z === r) {
|
|
5381
|
-
|
|
5379
|
+
Oe = ge.backslashes = !0, Z = W();
|
|
5382
5380
|
continue;
|
|
5383
5381
|
}
|
|
5384
5382
|
if (Z === $) {
|
|
5385
|
-
|
|
5383
|
+
Y = ge.isGlob = !0, S = !0;
|
|
5386
5384
|
break;
|
|
5387
5385
|
}
|
|
5388
5386
|
}
|
|
@@ -5391,23 +5389,23 @@ function Sf() {
|
|
|
5391
5389
|
break;
|
|
5392
5390
|
}
|
|
5393
5391
|
if (Z === t) {
|
|
5394
|
-
if (ke === t && (ye =
|
|
5392
|
+
if (ke === t && (ye = ge.isGlobstar = !0), Y = ge.isGlob = !0, S = !0, le === !0)
|
|
5395
5393
|
continue;
|
|
5396
5394
|
break;
|
|
5397
5395
|
}
|
|
5398
5396
|
if (Z === h) {
|
|
5399
|
-
if (
|
|
5397
|
+
if (Y = ge.isGlob = !0, S = !0, le === !0)
|
|
5400
5398
|
continue;
|
|
5401
5399
|
break;
|
|
5402
5400
|
}
|
|
5403
5401
|
if (Z === p) {
|
|
5404
5402
|
for (; $e() !== !0 && (C = W()); ) {
|
|
5405
5403
|
if (C === r) {
|
|
5406
|
-
|
|
5404
|
+
Oe = ge.backslashes = !0, W();
|
|
5407
5405
|
continue;
|
|
5408
5406
|
}
|
|
5409
5407
|
if (C === j) {
|
|
5410
|
-
de =
|
|
5408
|
+
de = ge.isBracket = !0, Y = ge.isGlob = !0, S = !0;
|
|
5411
5409
|
break;
|
|
5412
5410
|
}
|
|
5413
5411
|
}
|
|
@@ -5416,14 +5414,14 @@ function Sf() {
|
|
|
5416
5414
|
break;
|
|
5417
5415
|
}
|
|
5418
5416
|
if (L.nonegate !== !0 && Z === i && N === oe) {
|
|
5419
|
-
|
|
5417
|
+
Re = ge.negated = !0, oe++;
|
|
5420
5418
|
continue;
|
|
5421
5419
|
}
|
|
5422
5420
|
if (L.noparen !== !0 && Z === E) {
|
|
5423
|
-
if (
|
|
5421
|
+
if (Y = ge.isGlob = !0, le === !0) {
|
|
5424
5422
|
for (; $e() !== !0 && (Z = W()); ) {
|
|
5425
5423
|
if (Z === E) {
|
|
5426
|
-
|
|
5424
|
+
Oe = ge.backslashes = !0, Z = W();
|
|
5427
5425
|
continue;
|
|
5428
5426
|
}
|
|
5429
5427
|
if (Z === $) {
|
|
@@ -5435,38 +5433,38 @@ function Sf() {
|
|
|
5435
5433
|
}
|
|
5436
5434
|
break;
|
|
5437
5435
|
}
|
|
5438
|
-
if (
|
|
5436
|
+
if (Y === !0) {
|
|
5439
5437
|
if (S = !0, le === !0)
|
|
5440
5438
|
continue;
|
|
5441
5439
|
break;
|
|
5442
5440
|
}
|
|
5443
5441
|
}
|
|
5444
|
-
L.noext === !0 && (ie = !1,
|
|
5442
|
+
L.noext === !0 && (ie = !1, Y = !1);
|
|
5445
5443
|
let Me = B, f = "", g = "";
|
|
5446
|
-
oe > 0 && (f = B.slice(0, oe), B = B.slice(oe),
|
|
5444
|
+
oe > 0 && (f = B.slice(0, oe), B = B.slice(oe), he -= oe), Me && Y === !0 && he > 0 ? (Me = B.slice(0, he), g = B.slice(he)) : Y === !0 ? (Me = "", g = B) : Me = B, Me && Me !== "" && Me !== "/" && Me !== B && F(Me.charCodeAt(Me.length - 1)) && (Me = Me.slice(0, -1)), L.unescape === !0 && (g && (g = e.removeBackslashes(g)), Me && Oe === !0 && (Me = e.removeBackslashes(Me)));
|
|
5447
5445
|
const y = {
|
|
5448
5446
|
prefix: f,
|
|
5449
5447
|
input: U,
|
|
5450
5448
|
start: oe,
|
|
5451
5449
|
base: Me,
|
|
5452
5450
|
glob: g,
|
|
5453
|
-
isBrace:
|
|
5451
|
+
isBrace: we,
|
|
5454
5452
|
isBracket: de,
|
|
5455
|
-
isGlob:
|
|
5453
|
+
isGlob: Y,
|
|
5456
5454
|
isExtglob: ie,
|
|
5457
5455
|
isGlobstar: ye,
|
|
5458
|
-
negated:
|
|
5456
|
+
negated: Re,
|
|
5459
5457
|
negatedExtglob: Pe
|
|
5460
5458
|
};
|
|
5461
|
-
if (L.tokens === !0 && (y.maxDepth = 0, F(Z) || K.push(
|
|
5459
|
+
if (L.tokens === !0 && (y.maxDepth = 0, F(Z) || K.push(ge), y.tokens = K), L.parts === !0 || L.tokens === !0) {
|
|
5462
5460
|
let C;
|
|
5463
5461
|
for (let R = 0; R < pe.length; R++) {
|
|
5464
5462
|
const _ = C ? C + 1 : oe, P = pe[R], b = U.slice(_, P);
|
|
5465
|
-
L.tokens && (R === 0 && oe !== 0 ? (K[R].isPrefix = !0, K[R].value = f) : K[R].value = b,
|
|
5463
|
+
L.tokens && (R === 0 && oe !== 0 ? (K[R].isPrefix = !0, K[R].value = f) : K[R].value = b, z(K[R]), y.maxDepth += K[R].depth), (R !== 0 || b !== "") && k.push(b), C = P;
|
|
5466
5464
|
}
|
|
5467
5465
|
if (C && C + 1 < U.length) {
|
|
5468
5466
|
const R = U.slice(C + 1);
|
|
5469
|
-
k.push(R), L.tokens && (K[K.length - 1].value = R,
|
|
5467
|
+
k.push(R), L.tokens && (K[K.length - 1].value = R, z(K[K.length - 1]), y.maxDepth += K[K.length - 1].depth);
|
|
5470
5468
|
}
|
|
5471
5469
|
y.slashes = pe, y.parts = k;
|
|
5472
5470
|
}
|
|
@@ -5502,7 +5500,7 @@ function Af() {
|
|
|
5502
5500
|
let $ = p.length;
|
|
5503
5501
|
if ($ > O)
|
|
5504
5502
|
throw new SyntaxError(`Input length: ${$}, exceeds maximum allowed length: ${O}`);
|
|
5505
|
-
const j = { type: "bos", value: "", output: h.prepend || "" }, F = [j],
|
|
5503
|
+
const j = { type: "bos", value: "", output: h.prepend || "" }, F = [j], z = h.capture ? "" : "?:", te = e.globChars(h.windows), U = e.extglobChars(te), {
|
|
5506
5504
|
DOT_LITERAL: re,
|
|
5507
5505
|
PLUS_LITERAL: L,
|
|
5508
5506
|
SLASH_LITERAL: ne,
|
|
@@ -5513,10 +5511,10 @@ function Af() {
|
|
|
5513
5511
|
NO_DOTS_SLASH: B,
|
|
5514
5512
|
QMARK: N,
|
|
5515
5513
|
QMARK_NO_DOT: oe,
|
|
5516
|
-
STAR:
|
|
5517
|
-
START_ANCHOR:
|
|
5518
|
-
} = te, de = (_) => `(${
|
|
5519
|
-
let ye = h.bash === !0 ? de(h) :
|
|
5514
|
+
STAR: he,
|
|
5515
|
+
START_ANCHOR: we
|
|
5516
|
+
} = te, de = (_) => `(${z}(?:(?!${we}${_.dot ? pe : re}).)*?)`, Y = h.dot ? "" : K, ie = h.dot ? N : oe;
|
|
5517
|
+
let ye = h.bash === !0 ? de(h) : he;
|
|
5520
5518
|
h.capture && (ye = `(${ye})`), typeof h.noext == "boolean" && (h.noextglob = h.noext);
|
|
5521
5519
|
const D = {
|
|
5522
5520
|
input: p,
|
|
@@ -5536,16 +5534,16 @@ function Af() {
|
|
|
5536
5534
|
tokens: F
|
|
5537
5535
|
};
|
|
5538
5536
|
p = t.removePrefix(p, D), $ = p.length;
|
|
5539
|
-
const
|
|
5537
|
+
const Oe = [], Re = [], Pe = [];
|
|
5540
5538
|
let S = j, x;
|
|
5541
|
-
const ke = () => D.index === $ - 1, Z = D.peek = (_ = 1) => p[D.index + _],
|
|
5539
|
+
const ke = () => D.index === $ - 1, Z = D.peek = (_ = 1) => p[D.index + _], ge = D.advance = () => p[++D.index] || "", $e = () => p.slice(D.index + 1), _e = (_ = "", P = 0) => {
|
|
5542
5540
|
D.consumed += _, D.index += P;
|
|
5543
5541
|
}, W = (_) => {
|
|
5544
|
-
D.output += _.output != null ? _.output : _.value,
|
|
5542
|
+
D.output += _.output != null ? _.output : _.value, _e(_.value);
|
|
5545
5543
|
}, Me = () => {
|
|
5546
5544
|
let _ = 1;
|
|
5547
5545
|
for (; Z() === "!" && (Z(2) !== "(" || Z(3) === "?"); )
|
|
5548
|
-
|
|
5546
|
+
ge(), D.start++, _++;
|
|
5549
5547
|
return _ % 2 === 0 ? !1 : (D.negated = !0, D.start++, !0);
|
|
5550
5548
|
}, f = (_) => {
|
|
5551
5549
|
D[_]++, Pe.push(_);
|
|
@@ -5553,10 +5551,10 @@ function Af() {
|
|
|
5553
5551
|
D[_]--, Pe.pop();
|
|
5554
5552
|
}, y = (_) => {
|
|
5555
5553
|
if (S.type === "globstar") {
|
|
5556
|
-
const P = D.braces > 0 && (_.type === "comma" || _.type === "brace"), b = _.extglob === !0 ||
|
|
5554
|
+
const P = D.braces > 0 && (_.type === "comma" || _.type === "brace"), b = _.extglob === !0 || Oe.length && (_.type === "pipe" || _.type === "paren");
|
|
5557
5555
|
_.type !== "slash" && _.type !== "paren" && !P && !b && (D.output = D.output.slice(0, -S.output.length), S.type = "star", S.value = "*", S.output = ye, D.output += S.output);
|
|
5558
5556
|
}
|
|
5559
|
-
if (
|
|
5557
|
+
if (Oe.length && _.type !== "paren" && (Oe[Oe.length - 1].inner += _.value), (_.value || _.output) && W(_), S && S.type === "text" && _.type === "text") {
|
|
5560
5558
|
S.output = (S.output || S.value) + _.value, S.value += _.value;
|
|
5561
5559
|
return;
|
|
5562
5560
|
}
|
|
@@ -5565,7 +5563,7 @@ function Af() {
|
|
|
5565
5563
|
const b = { ...U[P], conditions: 1, inner: "" };
|
|
5566
5564
|
b.prev = S, b.parens = D.parens, b.output = D.output;
|
|
5567
5565
|
const A = (h.capture ? "(" : "") + b.open;
|
|
5568
|
-
f("parens"), y({ type: _, value: P, output: D.output ? "" : le }), y({ type: "paren", extglob: !0, value:
|
|
5566
|
+
f("parens"), y({ type: _, value: P, output: D.output ? "" : le }), y({ type: "paren", extglob: !0, value: ge(), output: A }), Oe.push(b);
|
|
5569
5567
|
}, R = (_) => {
|
|
5570
5568
|
let P = _.close + (h.capture ? ")" : ""), b;
|
|
5571
5569
|
if (_.type === "negate") {
|
|
@@ -5583,7 +5581,7 @@ function Af() {
|
|
|
5583
5581
|
return _ === !0 && (h.unescape === !0 ? P = P.replace(/\\/g, "") : P = P.replace(/\\+/g, (b) => b.length % 2 === 0 ? "\\\\" : b ? "\\" : "")), P === p && h.contains === !0 ? (D.output = p, D) : (D.output = t.wrapOutput(P, D, d), D);
|
|
5584
5582
|
}
|
|
5585
5583
|
for (; !ke(); ) {
|
|
5586
|
-
if (x =
|
|
5584
|
+
if (x = ge(), x === "\0")
|
|
5587
5585
|
continue;
|
|
5588
5586
|
if (x === "\\") {
|
|
5589
5587
|
const b = Z();
|
|
@@ -5595,7 +5593,7 @@ function Af() {
|
|
|
5595
5593
|
}
|
|
5596
5594
|
const A = /^\\+/.exec($e());
|
|
5597
5595
|
let T = 0;
|
|
5598
|
-
if (A && A[0].length > 2 && (T = A[0].length, D.index += T, T % 2 !== 0 && (x += "\\")), h.unescape === !0 ? x =
|
|
5596
|
+
if (A && A[0].length > 2 && (T = A[0].length, D.index += T, T % 2 !== 0 && (x += "\\")), h.unescape === !0 ? x = ge() : x += ge(), D.brackets === 0) {
|
|
5599
5597
|
y({ type: "text", value: x });
|
|
5600
5598
|
continue;
|
|
5601
5599
|
}
|
|
@@ -5606,7 +5604,7 @@ function Af() {
|
|
|
5606
5604
|
if (b.includes("[") && (S.posix = !0, b.includes(":"))) {
|
|
5607
5605
|
const A = S.value.lastIndexOf("["), T = S.value.slice(0, A), G = S.value.slice(A + 2), M = r[G];
|
|
5608
5606
|
if (M) {
|
|
5609
|
-
S.value = T + M, D.backtrack = !0,
|
|
5607
|
+
S.value = T + M, D.backtrack = !0, ge(), !j.output && F.indexOf(S) === 1 && (j.output = le);
|
|
5610
5608
|
continue;
|
|
5611
5609
|
}
|
|
5612
5610
|
}
|
|
@@ -5629,9 +5627,9 @@ function Af() {
|
|
|
5629
5627
|
if (x === ")") {
|
|
5630
5628
|
if (D.parens === 0 && h.strictBrackets === !0)
|
|
5631
5629
|
throw new SyntaxError(l("opening", "("));
|
|
5632
|
-
const b =
|
|
5630
|
+
const b = Oe[Oe.length - 1];
|
|
5633
5631
|
if (b && D.parens === b.parens + 1) {
|
|
5634
|
-
R(
|
|
5632
|
+
R(Oe.pop());
|
|
5635
5633
|
continue;
|
|
5636
5634
|
}
|
|
5637
5635
|
y({ type: "paren", value: x, output: D.parens ? ")" : "\\)" }), g("parens");
|
|
@@ -5667,7 +5665,7 @@ function Af() {
|
|
|
5667
5665
|
D.output += A, S.value = A;
|
|
5668
5666
|
continue;
|
|
5669
5667
|
}
|
|
5670
|
-
S.value = `(${
|
|
5668
|
+
S.value = `(${z}${A}|${S.value})`, D.output += S.value;
|
|
5671
5669
|
continue;
|
|
5672
5670
|
}
|
|
5673
5671
|
if (x === "{" && h.nobrace !== !0) {
|
|
@@ -5679,11 +5677,11 @@ function Af() {
|
|
|
5679
5677
|
outputIndex: D.output.length,
|
|
5680
5678
|
tokensIndex: D.tokens.length
|
|
5681
5679
|
};
|
|
5682
|
-
|
|
5680
|
+
Re.push(b), y(b);
|
|
5683
5681
|
continue;
|
|
5684
5682
|
}
|
|
5685
5683
|
if (x === "}") {
|
|
5686
|
-
const b =
|
|
5684
|
+
const b = Re[Re.length - 1];
|
|
5687
5685
|
if (h.nobrace === !0 || !b) {
|
|
5688
5686
|
y({ type: "text", value: x, output: x });
|
|
5689
5687
|
continue;
|
|
@@ -5701,16 +5699,16 @@ function Af() {
|
|
|
5701
5699
|
for (const M of G)
|
|
5702
5700
|
D.output += M.output || M.value;
|
|
5703
5701
|
}
|
|
5704
|
-
y({ type: "brace", value: x, output: A }), g("braces"),
|
|
5702
|
+
y({ type: "brace", value: x, output: A }), g("braces"), Re.pop();
|
|
5705
5703
|
continue;
|
|
5706
5704
|
}
|
|
5707
5705
|
if (x === "|") {
|
|
5708
|
-
|
|
5706
|
+
Oe.length > 0 && Oe[Oe.length - 1].conditions++, y({ type: "text", value: x });
|
|
5709
5707
|
continue;
|
|
5710
5708
|
}
|
|
5711
5709
|
if (x === ",") {
|
|
5712
5710
|
let b = x;
|
|
5713
|
-
const A =
|
|
5711
|
+
const A = Re[Re.length - 1];
|
|
5714
5712
|
A && Pe[Pe.length - 1] === "braces" && (A.comma = !0, b = "|"), y({ type: "comma", value: x, output: b });
|
|
5715
5713
|
continue;
|
|
5716
5714
|
}
|
|
@@ -5725,7 +5723,7 @@ function Af() {
|
|
|
5725
5723
|
if (x === ".") {
|
|
5726
5724
|
if (D.braces > 0 && S.type === "dot") {
|
|
5727
5725
|
S.value === "." && (S.output = re);
|
|
5728
|
-
const b =
|
|
5726
|
+
const b = Re[Re.length - 1];
|
|
5729
5727
|
S.type = "dots", S.output += x, S.value += x, b.dots = !0;
|
|
5730
5728
|
continue;
|
|
5731
5729
|
}
|
|
@@ -5795,7 +5793,7 @@ function Af() {
|
|
|
5795
5793
|
continue;
|
|
5796
5794
|
}
|
|
5797
5795
|
if (S && (S.type === "globstar" || S.star === !0)) {
|
|
5798
|
-
S.type = "star", S.star = !0, S.value += x, S.output = ye, D.backtrack = !0, D.globstar = !0,
|
|
5796
|
+
S.type = "star", S.star = !0, S.value += x, S.output = ye, D.backtrack = !0, D.globstar = !0, _e(x);
|
|
5799
5797
|
continue;
|
|
5800
5798
|
}
|
|
5801
5799
|
let _ = $e();
|
|
@@ -5805,7 +5803,7 @@ function Af() {
|
|
|
5805
5803
|
}
|
|
5806
5804
|
if (S.type === "star") {
|
|
5807
5805
|
if (h.noglobstar === !0) {
|
|
5808
|
-
|
|
5806
|
+
_e(x);
|
|
5809
5807
|
continue;
|
|
5810
5808
|
}
|
|
5811
5809
|
const b = S.prev, A = b.prev, T = b.type === "slash" || b.type === "bos", G = A && (A.type === "star" || A.type === "globstar");
|
|
@@ -5813,7 +5811,7 @@ function Af() {
|
|
|
5813
5811
|
y({ type: "star", value: x, output: "" });
|
|
5814
5812
|
continue;
|
|
5815
5813
|
}
|
|
5816
|
-
const M = D.braces > 0 && (b.type === "comma" || b.type === "brace"), Q =
|
|
5814
|
+
const M = D.braces > 0 && (b.type === "comma" || b.type === "brace"), Q = Oe.length && (b.type === "pipe" || b.type === "paren");
|
|
5817
5815
|
if (!T && b.type !== "paren" && !M && !Q) {
|
|
5818
5816
|
y({ type: "star", value: x, output: "" });
|
|
5819
5817
|
continue;
|
|
@@ -5822,38 +5820,38 @@ function Af() {
|
|
|
5822
5820
|
const se = p[D.index + 4];
|
|
5823
5821
|
if (se && se !== "/")
|
|
5824
5822
|
break;
|
|
5825
|
-
_ = _.slice(3),
|
|
5823
|
+
_ = _.slice(3), _e("/**", 3);
|
|
5826
5824
|
}
|
|
5827
5825
|
if (b.type === "bos" && ke()) {
|
|
5828
|
-
S.type = "globstar", S.value += x, S.output = de(h), D.output = S.output, D.globstar = !0,
|
|
5826
|
+
S.type = "globstar", S.value += x, S.output = de(h), D.output = S.output, D.globstar = !0, _e(x);
|
|
5829
5827
|
continue;
|
|
5830
5828
|
}
|
|
5831
5829
|
if (b.type === "slash" && b.prev.type !== "bos" && !G && ke()) {
|
|
5832
|
-
D.output = D.output.slice(0, -(b.output + S.output).length), b.output = `(?:${b.output}`, S.type = "globstar", S.output = de(h) + (h.strictSlashes ? ")" : "|$)"), S.value += x, D.globstar = !0, D.output += b.output + S.output,
|
|
5830
|
+
D.output = D.output.slice(0, -(b.output + S.output).length), b.output = `(?:${b.output}`, S.type = "globstar", S.output = de(h) + (h.strictSlashes ? ")" : "|$)"), S.value += x, D.globstar = !0, D.output += b.output + S.output, _e(x);
|
|
5833
5831
|
continue;
|
|
5834
5832
|
}
|
|
5835
5833
|
if (b.type === "slash" && b.prev.type !== "bos" && _[0] === "/") {
|
|
5836
5834
|
const se = _[1] !== void 0 ? "|$" : "";
|
|
5837
|
-
D.output = D.output.slice(0, -(b.output + S.output).length), b.output = `(?:${b.output}`, S.type = "globstar", S.output = `${de(h)}${ne}|${ne}${se})`, S.value += x, D.output += b.output + S.output, D.globstar = !0,
|
|
5835
|
+
D.output = D.output.slice(0, -(b.output + S.output).length), b.output = `(?:${b.output}`, S.type = "globstar", S.output = `${de(h)}${ne}|${ne}${se})`, S.value += x, D.output += b.output + S.output, D.globstar = !0, _e(x + ge()), y({ type: "slash", value: "/", output: "" });
|
|
5838
5836
|
continue;
|
|
5839
5837
|
}
|
|
5840
5838
|
if (b.type === "bos" && _[0] === "/") {
|
|
5841
|
-
S.type = "globstar", S.value += x, S.output = `(?:^|${ne}|${de(h)}${ne})`, D.output = S.output, D.globstar = !0,
|
|
5839
|
+
S.type = "globstar", S.value += x, S.output = `(?:^|${ne}|${de(h)}${ne})`, D.output = S.output, D.globstar = !0, _e(x + ge()), y({ type: "slash", value: "/", output: "" });
|
|
5842
5840
|
continue;
|
|
5843
5841
|
}
|
|
5844
|
-
D.output = D.output.slice(0, -S.output.length), S.type = "globstar", S.output = de(h), S.value += x, D.output += S.output, D.globstar = !0,
|
|
5842
|
+
D.output = D.output.slice(0, -S.output.length), S.type = "globstar", S.output = de(h), S.value += x, D.output += S.output, D.globstar = !0, _e(x);
|
|
5845
5843
|
continue;
|
|
5846
5844
|
}
|
|
5847
5845
|
const P = { type: "star", value: x, output: ye };
|
|
5848
5846
|
if (h.bash === !0) {
|
|
5849
|
-
P.output = ".*?", (S.type === "bos" || S.type === "slash") && (P.output =
|
|
5847
|
+
P.output = ".*?", (S.type === "bos" || S.type === "slash") && (P.output = Y + P.output), y(P);
|
|
5850
5848
|
continue;
|
|
5851
5849
|
}
|
|
5852
5850
|
if (S && (S.type === "bracket" || S.type === "paren") && h.regex === !0) {
|
|
5853
5851
|
P.output = x, y(P);
|
|
5854
5852
|
continue;
|
|
5855
5853
|
}
|
|
5856
|
-
(D.index === D.start || S.type === "slash" || S.type === "dot") && (S.type === "dot" ? (D.output += k, S.output += k) : h.dot === !0 ? (D.output += B, S.output += B) : (D.output +=
|
|
5854
|
+
(D.index === D.start || S.type === "slash" || S.type === "dot") && (S.type === "dot" ? (D.output += k, S.output += k) : h.dot === !0 ? (D.output += B, S.output += B) : (D.output += Y, S.output += Y), Z() !== "*" && (D.output += le, S.output += le)), y(P);
|
|
5857
5855
|
}
|
|
5858
5856
|
for (; D.brackets > 0; ) {
|
|
5859
5857
|
if (h.strictBrackets === !0) throw new SyntaxError(l("closing", "]"));
|
|
@@ -5882,7 +5880,7 @@ function Af() {
|
|
|
5882
5880
|
const {
|
|
5883
5881
|
DOT_LITERAL: j,
|
|
5884
5882
|
SLASH_LITERAL: F,
|
|
5885
|
-
ONE_CHAR:
|
|
5883
|
+
ONE_CHAR: z,
|
|
5886
5884
|
DOTS_SLASH: te,
|
|
5887
5885
|
NO_DOT: U,
|
|
5888
5886
|
NO_DOTS: re,
|
|
@@ -5892,33 +5890,33 @@ function Af() {
|
|
|
5892
5890
|
} = e.globChars(h.windows), pe = h.dot ? re : U, K = h.dot ? L : U, k = h.capture ? "" : "?:", B = { negated: !1, prefix: "" };
|
|
5893
5891
|
let N = h.bash === !0 ? ".*?" : ne;
|
|
5894
5892
|
h.capture && (N = `(${N})`);
|
|
5895
|
-
const oe = (
|
|
5896
|
-
switch (
|
|
5893
|
+
const oe = (Y) => Y.noglobstar === !0 ? N : `(${k}(?:(?!${le}${Y.dot ? te : j}).)*?)`, he = (Y) => {
|
|
5894
|
+
switch (Y) {
|
|
5897
5895
|
case "*":
|
|
5898
|
-
return `${pe}${
|
|
5896
|
+
return `${pe}${z}${N}`;
|
|
5899
5897
|
case ".*":
|
|
5900
|
-
return `${j}${
|
|
5898
|
+
return `${j}${z}${N}`;
|
|
5901
5899
|
case "*.*":
|
|
5902
|
-
return `${pe}${N}${j}${
|
|
5900
|
+
return `${pe}${N}${j}${z}${N}`;
|
|
5903
5901
|
case "*/*":
|
|
5904
|
-
return `${pe}${N}${F}${
|
|
5902
|
+
return `${pe}${N}${F}${z}${K}${N}`;
|
|
5905
5903
|
case "**":
|
|
5906
5904
|
return pe + oe(h);
|
|
5907
5905
|
case "**/*":
|
|
5908
|
-
return `(?:${pe}${oe(h)}${F})?${K}${
|
|
5906
|
+
return `(?:${pe}${oe(h)}${F})?${K}${z}${N}`;
|
|
5909
5907
|
case "**/*.*":
|
|
5910
|
-
return `(?:${pe}${oe(h)}${F})?${K}${N}${j}${
|
|
5908
|
+
return `(?:${pe}${oe(h)}${F})?${K}${N}${j}${z}${N}`;
|
|
5911
5909
|
case "**/.*":
|
|
5912
|
-
return `(?:${pe}${oe(h)}${F})?${j}${
|
|
5910
|
+
return `(?:${pe}${oe(h)}${F})?${j}${z}${N}`;
|
|
5913
5911
|
default: {
|
|
5914
|
-
const ie = /^(.*?)\.(\w+)$/.exec(
|
|
5912
|
+
const ie = /^(.*?)\.(\w+)$/.exec(Y);
|
|
5915
5913
|
if (!ie) return;
|
|
5916
|
-
const ye =
|
|
5914
|
+
const ye = he(ie[1]);
|
|
5917
5915
|
return ye ? ye + j + ie[2] : void 0;
|
|
5918
5916
|
}
|
|
5919
5917
|
}
|
|
5920
|
-
},
|
|
5921
|
-
let de =
|
|
5918
|
+
}, we = t.removePrefix(p, B);
|
|
5919
|
+
let de = he(we);
|
|
5922
5920
|
return de && h.strictSlashes !== !0 && (de += `${F}?`), de;
|
|
5923
5921
|
}, No = E, No;
|
|
5924
5922
|
}
|
|
@@ -5947,9 +5945,9 @@ function Nf() {
|
|
|
5947
5945
|
const F = { ...c, ignore: null, onMatch: null, onResult: null };
|
|
5948
5946
|
$ = s(p.ignore, F, l);
|
|
5949
5947
|
}
|
|
5950
|
-
const j = (F,
|
|
5948
|
+
const j = (F, z = !1) => {
|
|
5951
5949
|
const { isMatch: te, match: U, output: re } = s.test(F, h, c, { glob: i, posix: d }), L = { glob: i, state: O, regex: h, posix: d, input: F, output: re, match: U, isMatch: te };
|
|
5952
|
-
return typeof p.onResult == "function" && p.onResult(L), te === !1 ? (L.isMatch = !1,
|
|
5950
|
+
return typeof p.onResult == "function" && p.onResult(L), te === !1 ? (L.isMatch = !1, z ? L : !1) : $(F) ? (typeof p.onIgnore == "function" && p.onIgnore(L), L.isMatch = !1, z ? L : !1) : (typeof p.onMatch == "function" && p.onMatch(L), z ? L : !0);
|
|
5953
5951
|
};
|
|
5954
5952
|
return l && (j.state = O), j;
|
|
5955
5953
|
};
|
|
@@ -6738,7 +6736,7 @@ function hg() {
|
|
|
6738
6736
|
o.d(s, "cleanUpWindow", function() {
|
|
6739
6737
|
return Ns;
|
|
6740
6738
|
}), o.d(s, "Promise", function() {
|
|
6741
|
-
return
|
|
6739
|
+
return _e;
|
|
6742
6740
|
}), o.d(s, "bridge", function() {
|
|
6743
6741
|
return Ts;
|
|
6744
6742
|
}), o.d(s, "init", function() {
|
|
@@ -6762,7 +6760,7 @@ function hg() {
|
|
|
6762
6760
|
}), o.d(s, "listener", function() {
|
|
6763
6761
|
return Os;
|
|
6764
6762
|
}), o.d(s, "CONFIG", function() {
|
|
6765
|
-
return
|
|
6763
|
+
return he;
|
|
6766
6764
|
}), o.d(s, "CONSTANTS", function() {
|
|
6767
6765
|
return N;
|
|
6768
6766
|
}), o.d(s, "disable", function() {
|
|
@@ -6839,7 +6837,7 @@ function hg() {
|
|
|
6839
6837
|
}
|
|
6840
6838
|
return !1;
|
|
6841
6839
|
}
|
|
6842
|
-
function
|
|
6840
|
+
function z(a, u) {
|
|
6843
6841
|
if (!a || !u) return !1;
|
|
6844
6842
|
var m = d(u);
|
|
6845
6843
|
return m ? m === a : function(v) {
|
|
@@ -6878,14 +6876,14 @@ function hg() {
|
|
|
6878
6876
|
return u;
|
|
6879
6877
|
}
|
|
6880
6878
|
for (var V = 0; V < 100; V++) {
|
|
6881
|
-
var
|
|
6879
|
+
var q = void 0;
|
|
6882
6880
|
try {
|
|
6883
|
-
|
|
6881
|
+
q = m[V];
|
|
6884
6882
|
} catch {
|
|
6885
6883
|
return u;
|
|
6886
6884
|
}
|
|
6887
|
-
if (!
|
|
6888
|
-
u.push(
|
|
6885
|
+
if (!q) return u;
|
|
6886
|
+
u.push(q);
|
|
6889
6887
|
}
|
|
6890
6888
|
return u;
|
|
6891
6889
|
}
|
|
@@ -7052,8 +7050,8 @@ function hg() {
|
|
|
7052
7050
|
} catch {
|
|
7053
7051
|
}
|
|
7054
7052
|
this._cleanupClosedWindows();
|
|
7055
|
-
var V = this.keys,
|
|
7056
|
-
X === -1 ? (V.push(u),
|
|
7053
|
+
var V = this.keys, q = this.values, X = K(V, u);
|
|
7054
|
+
X === -1 ? (V.push(u), q.push(m)) : q[X] = m;
|
|
7057
7055
|
}, a.prototype.get = function(u) {
|
|
7058
7056
|
if (!u) throw new Error("WeakMap expected key");
|
|
7059
7057
|
var m = this.weakmap;
|
|
@@ -7149,7 +7147,7 @@ function hg() {
|
|
|
7149
7147
|
METHOD: "postrobot_method",
|
|
7150
7148
|
HELLO: "postrobot_hello",
|
|
7151
7149
|
OPEN_TUNNEL: "postrobot_open_tunnel"
|
|
7152
|
-
},
|
|
7150
|
+
}, he = (Object.keys(oe).map(function(a) {
|
|
7153
7151
|
return oe[a];
|
|
7154
7152
|
}), {
|
|
7155
7153
|
ALLOW_POSTMESSAGE_POPUP: !("__ALLOW_POSTMESSAGE_POPUP__" in window) || window.__ALLOW_POSTMESSAGE_POPUP__,
|
|
@@ -7160,8 +7158,8 @@ function hg() {
|
|
|
7160
7158
|
ALLOWED_POST_MESSAGE_METHODS: (k = {}, k[N.SEND_STRATEGIES.POST_MESSAGE] = !0, k[N.SEND_STRATEGIES.BRIDGE] = !0, k[N.SEND_STRATEGIES.GLOBAL] = !0, k),
|
|
7161
7159
|
ALLOW_SAME_ORIGIN: !1
|
|
7162
7160
|
});
|
|
7163
|
-
window.location.href.indexOf(N.FILE_PROTOCOL) === 0 && (
|
|
7164
|
-
var
|
|
7161
|
+
window.location.href.indexOf(N.FILE_PROTOCOL) === 0 && (he.ALLOW_POSTMESSAGE_POPUP = !0);
|
|
7162
|
+
var we = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(a) {
|
|
7165
7163
|
return typeof a;
|
|
7166
7164
|
} : function(a) {
|
|
7167
7165
|
return a && typeof Symbol == "function" && a.constructor === Symbol && a !== Symbol.prototype ? "symbol" : typeof a;
|
|
@@ -7184,7 +7182,7 @@ function hg() {
|
|
|
7184
7182
|
return "Error while stringifying error: " + de(w, u + 1);
|
|
7185
7183
|
}
|
|
7186
7184
|
}
|
|
7187
|
-
var
|
|
7185
|
+
var Y = function(a) {
|
|
7188
7186
|
if (!a) return a;
|
|
7189
7187
|
var u = !1;
|
|
7190
7188
|
return function() {
|
|
@@ -7204,25 +7202,25 @@ function hg() {
|
|
|
7204
7202
|
var m = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : 1;
|
|
7205
7203
|
if (m >= 100) throw new Error("Self-referential object passed, or object contained too many layers");
|
|
7206
7204
|
var v = void 0;
|
|
7207
|
-
if ((a === void 0 ? "undefined" :
|
|
7208
|
-
if (!Array.isArray(a)) throw new TypeError("Invalid type: " + (a === void 0 ? "undefined" :
|
|
7205
|
+
if ((a === void 0 ? "undefined" : we(a)) !== "object" || a === null || Array.isArray(a)) {
|
|
7206
|
+
if (!Array.isArray(a)) throw new TypeError("Invalid type: " + (a === void 0 ? "undefined" : we(a)));
|
|
7209
7207
|
v = [];
|
|
7210
7208
|
} else v = {};
|
|
7211
7209
|
return function(w, I) {
|
|
7212
|
-
Array.isArray(w) ? function(V,
|
|
7213
|
-
for (var X = 0; X < V.length; X++)
|
|
7214
|
-
}(w, I) : (w === void 0 ? "undefined" :
|
|
7215
|
-
for (var X in V) V.hasOwnProperty(X) &&
|
|
7210
|
+
Array.isArray(w) ? function(V, q) {
|
|
7211
|
+
for (var X = 0; X < V.length; X++) q(V[X], X);
|
|
7212
|
+
}(w, I) : (w === void 0 ? "undefined" : we(w)) === "object" && w !== null && function(V, q) {
|
|
7213
|
+
for (var X in V) V.hasOwnProperty(X) && q(V[X], X);
|
|
7216
7214
|
}(w, I);
|
|
7217
7215
|
}(a, function(w, I) {
|
|
7218
7216
|
var V = u(w, I);
|
|
7219
|
-
V !== void 0 ? v[I] = V : (w === void 0 ? "undefined" :
|
|
7217
|
+
V !== void 0 ? v[I] = V : (w === void 0 ? "undefined" : we(w)) === "object" && w !== null ? v[I] = D(w, u, m + 1) : v[I] = w;
|
|
7220
7218
|
}), v;
|
|
7221
7219
|
}
|
|
7222
|
-
function
|
|
7220
|
+
function Oe(a) {
|
|
7223
7221
|
return Object.prototype.toString.call(a) === "[object RegExp]";
|
|
7224
7222
|
}
|
|
7225
|
-
function
|
|
7223
|
+
function Re(a) {
|
|
7226
7224
|
try {
|
|
7227
7225
|
if (!a) return !1;
|
|
7228
7226
|
if (typeof Promise < "u" && a instanceof Promise) return !0;
|
|
@@ -7245,41 +7243,41 @@ function hg() {
|
|
|
7245
7243
|
ke = null, a.resolve();
|
|
7246
7244
|
}
|
|
7247
7245
|
}
|
|
7248
|
-
function
|
|
7246
|
+
function ge() {
|
|
7249
7247
|
x += 1;
|
|
7250
7248
|
}
|
|
7251
7249
|
function $e() {
|
|
7252
7250
|
x -= 1, Z();
|
|
7253
7251
|
}
|
|
7254
|
-
var
|
|
7252
|
+
var _e = function() {
|
|
7255
7253
|
function a(u) {
|
|
7256
7254
|
var m = this;
|
|
7257
7255
|
if (function(X, ae) {
|
|
7258
7256
|
if (!(X instanceof a)) throw new TypeError("Cannot call a class as a function");
|
|
7259
7257
|
}(this), this.resolved = !1, this.rejected = !1, this.errorHandled = !1, this.handlers = [], u) {
|
|
7260
|
-
var v = void 0, w = void 0, I = !1, V = !1,
|
|
7261
|
-
|
|
7258
|
+
var v = void 0, w = void 0, I = !1, V = !1, q = !1;
|
|
7259
|
+
ge();
|
|
7262
7260
|
try {
|
|
7263
7261
|
u(function(X) {
|
|
7264
|
-
|
|
7262
|
+
q ? m.resolve(X) : (I = !0, v = X);
|
|
7265
7263
|
}, function(X) {
|
|
7266
|
-
|
|
7264
|
+
q ? m.reject(X) : (V = !0, w = X);
|
|
7267
7265
|
});
|
|
7268
7266
|
} catch (X) {
|
|
7269
7267
|
$e(), this.reject(X);
|
|
7270
7268
|
return;
|
|
7271
7269
|
}
|
|
7272
|
-
$e(),
|
|
7270
|
+
$e(), q = !0, I ? this.resolve(v) : V && this.reject(w);
|
|
7273
7271
|
}
|
|
7274
7272
|
}
|
|
7275
7273
|
return a.prototype.resolve = function(u) {
|
|
7276
7274
|
if (this.resolved || this.rejected) return this;
|
|
7277
|
-
if (
|
|
7275
|
+
if (Re(u)) throw new Error("Can not resolve promise with another promise");
|
|
7278
7276
|
return this.resolved = !0, this.value = u, this.dispatch(), this;
|
|
7279
7277
|
}, a.prototype.reject = function(u) {
|
|
7280
7278
|
var m = this;
|
|
7281
7279
|
if (this.resolved || this.rejected) return this;
|
|
7282
|
-
if (
|
|
7280
|
+
if (Re(u)) throw new Error("Can not reject promise with another promise");
|
|
7283
7281
|
if (!u) {
|
|
7284
7282
|
var v = u && typeof u.toString == "function" ? u.toString() : Object.prototype.toString.call(u);
|
|
7285
7283
|
u = new Error("Expected reject to be called with Error, got " + v);
|
|
@@ -7299,17 +7297,17 @@ function hg() {
|
|
|
7299
7297
|
}, a.prototype.dispatch = function() {
|
|
7300
7298
|
var u = this.dispatching, m = this.resolved, v = this.rejected, w = this.handlers;
|
|
7301
7299
|
if (!u && (m || v)) {
|
|
7302
|
-
this.dispatching = !0,
|
|
7303
|
-
for (var I = function(fe,
|
|
7300
|
+
this.dispatching = !0, ge();
|
|
7301
|
+
for (var I = function(fe, me) {
|
|
7304
7302
|
return fe.then(function(Le) {
|
|
7305
|
-
|
|
7303
|
+
me.resolve(Le);
|
|
7306
7304
|
}, function(Le) {
|
|
7307
|
-
|
|
7305
|
+
me.reject(Le);
|
|
7308
7306
|
});
|
|
7309
7307
|
}, V = 0; V < w.length; V++) {
|
|
7310
|
-
var
|
|
7308
|
+
var q = w[V], X = q.onSuccess, ae = q.onError, ee = q.promise, J = void 0;
|
|
7311
7309
|
if (m) try {
|
|
7312
|
-
|
|
7310
|
+
J = X ? X(this.value) : this.value;
|
|
7313
7311
|
} catch (fe) {
|
|
7314
7312
|
ee.reject(fe);
|
|
7315
7313
|
continue;
|
|
@@ -7320,13 +7318,13 @@ function hg() {
|
|
|
7320
7318
|
continue;
|
|
7321
7319
|
}
|
|
7322
7320
|
try {
|
|
7323
|
-
|
|
7321
|
+
J = ae(this.error);
|
|
7324
7322
|
} catch (fe) {
|
|
7325
7323
|
ee.reject(fe);
|
|
7326
7324
|
continue;
|
|
7327
7325
|
}
|
|
7328
7326
|
}
|
|
7329
|
-
|
|
7327
|
+
J instanceof a && (J.resolved || J.rejected) ? (J.resolved ? ee.resolve(J.value) : ee.reject(J.error), J.errorHandled = !0) : Re(J) ? J instanceof a && (J.resolved || J.rejected) ? J.resolved ? ee.resolve(J.value) : ee.reject(J.error) : I(J, ee) : ee.resolve(J);
|
|
7330
7328
|
}
|
|
7331
7329
|
w.length = 0, this.dispatching = !1, $e();
|
|
7332
7330
|
}
|
|
@@ -7365,7 +7363,7 @@ function hg() {
|
|
|
7365
7363
|
if (typeof Promise > "u") throw new TypeError("Could not find Promise");
|
|
7366
7364
|
return Promise.resolve(this);
|
|
7367
7365
|
}, a.resolve = function(u) {
|
|
7368
|
-
return u instanceof a ? u :
|
|
7366
|
+
return u instanceof a ? u : Re(u) ? new a(function(m, v) {
|
|
7369
7367
|
return u.then(m, v);
|
|
7370
7368
|
}) : new a().resolve(u);
|
|
7371
7369
|
}, a.reject = function(u) {
|
|
@@ -7377,23 +7375,23 @@ function hg() {
|
|
|
7377
7375
|
if (!v)
|
|
7378
7376
|
return m.resolve(w), m;
|
|
7379
7377
|
for (var I = function(X, ae, ee) {
|
|
7380
|
-
return ae.then(function(
|
|
7381
|
-
w[X] =
|
|
7382
|
-
}, function(
|
|
7383
|
-
ee.reject(
|
|
7378
|
+
return ae.then(function(J) {
|
|
7379
|
+
w[X] = J, (v -= 1) == 0 && m.resolve(w);
|
|
7380
|
+
}, function(J) {
|
|
7381
|
+
ee.reject(J);
|
|
7384
7382
|
});
|
|
7385
7383
|
}, V = 0; V < u.length; V++) {
|
|
7386
|
-
var
|
|
7387
|
-
if (
|
|
7388
|
-
if (
|
|
7389
|
-
w[V] =
|
|
7384
|
+
var q = u[V];
|
|
7385
|
+
if (q instanceof a) {
|
|
7386
|
+
if (q.resolved) {
|
|
7387
|
+
w[V] = q.value, v -= 1;
|
|
7390
7388
|
continue;
|
|
7391
7389
|
}
|
|
7392
|
-
} else if (!
|
|
7393
|
-
w[V] =
|
|
7390
|
+
} else if (!Re(q)) {
|
|
7391
|
+
w[V] = q, v -= 1;
|
|
7394
7392
|
continue;
|
|
7395
7393
|
}
|
|
7396
|
-
I(V, a.resolve(
|
|
7394
|
+
I(V, a.resolve(q), m);
|
|
7397
7395
|
}
|
|
7398
7396
|
return v === 0 && m.resolve(w), m;
|
|
7399
7397
|
}, a.hash = function(u) {
|
|
@@ -7418,7 +7416,7 @@ function hg() {
|
|
|
7418
7416
|
}, a.try = function(u, m, v) {
|
|
7419
7417
|
if (u && typeof u != "function" && !u.call) throw new Error("Promise.try expected a function");
|
|
7420
7418
|
var w = void 0;
|
|
7421
|
-
|
|
7419
|
+
ge();
|
|
7422
7420
|
try {
|
|
7423
7421
|
w = u.apply(m, v || []);
|
|
7424
7422
|
} catch (I) {
|
|
@@ -7430,7 +7428,7 @@ function hg() {
|
|
|
7430
7428
|
setTimeout(m, u);
|
|
7431
7429
|
});
|
|
7432
7430
|
}, a.isPromise = function(u) {
|
|
7433
|
-
return !!(u && u instanceof a) ||
|
|
7431
|
+
return !!(u && u instanceof a) || Re(u);
|
|
7434
7432
|
}, a.flush = function() {
|
|
7435
7433
|
return function(u) {
|
|
7436
7434
|
var m = ke = ke || new a();
|
|
@@ -7446,7 +7444,7 @@ function hg() {
|
|
|
7446
7444
|
return a && typeof Symbol == "function" && a.constructor === Symbol && a !== Symbol.prototype ? "symbol" : typeof a;
|
|
7447
7445
|
};
|
|
7448
7446
|
W.methods = W.methods || new B();
|
|
7449
|
-
var f =
|
|
7447
|
+
var f = Y(function() {
|
|
7450
7448
|
W.on(N.POST_MESSAGE_NAMES.METHOD, {
|
|
7451
7449
|
origin: N.WILDCARD
|
|
7452
7450
|
}, function(a) {
|
|
@@ -7455,7 +7453,7 @@ function hg() {
|
|
|
7455
7453
|
var I = w[v.id];
|
|
7456
7454
|
if (!I) throw new Error("Could not find method with id: " + v.id);
|
|
7457
7455
|
if (!le(I.domain, m)) throw new Error("Method domain " + I.domain + " does not match origin " + m);
|
|
7458
|
-
return
|
|
7456
|
+
return _e.try(function() {
|
|
7459
7457
|
return I.method.apply({
|
|
7460
7458
|
source: u,
|
|
7461
7459
|
origin: m,
|
|
@@ -7503,7 +7501,7 @@ function hg() {
|
|
|
7503
7501
|
return v.__name__ = m.__name__, v.__xdomain__ = !0, v.source = a, v.origin = u, v;
|
|
7504
7502
|
}
|
|
7505
7503
|
function R(a, u, m) {
|
|
7506
|
-
return new
|
|
7504
|
+
return new _e(function(v, w) {
|
|
7507
7505
|
return C(a, u, m.__then__)(v, w);
|
|
7508
7506
|
});
|
|
7509
7507
|
}
|
|
@@ -7539,55 +7537,55 @@ function hg() {
|
|
|
7539
7537
|
return a;
|
|
7540
7538
|
};
|
|
7541
7539
|
function A(a, u, m) {
|
|
7542
|
-
return
|
|
7540
|
+
return _e.try(function() {
|
|
7543
7541
|
var v;
|
|
7544
|
-
if (u = function(V,
|
|
7542
|
+
if (u = function(V, q) {
|
|
7545
7543
|
var X = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, ae = ye(), ee = function() {
|
|
7546
7544
|
var fe = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : window;
|
|
7547
7545
|
return !!h(fe);
|
|
7548
7546
|
}() ? N.WINDOW_TYPES.POPUP : function() {
|
|
7549
7547
|
var fe = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : window;
|
|
7550
7548
|
return !!d(fe);
|
|
7551
|
-
}() ? N.WINDOW_TYPES.IFRAME : N.WINDOW_TYPES.FULLPAGE,
|
|
7552
|
-
return b({},
|
|
7553
|
-
sourceDomain:
|
|
7554
|
-
id:
|
|
7549
|
+
}() ? N.WINDOW_TYPES.IFRAME : N.WINDOW_TYPES.FULLPAGE, J = j(window);
|
|
7550
|
+
return b({}, q, X, {
|
|
7551
|
+
sourceDomain: J,
|
|
7552
|
+
id: q.id || ae,
|
|
7555
7553
|
windowType: ee
|
|
7556
7554
|
});
|
|
7557
7555
|
}(a, u, {
|
|
7558
|
-
data: function(V,
|
|
7556
|
+
data: function(V, q, X) {
|
|
7559
7557
|
return D({
|
|
7560
7558
|
obj: u.data
|
|
7561
7559
|
}, function(ae, ee) {
|
|
7562
|
-
return typeof ae == "function" ? y(V,
|
|
7560
|
+
return typeof ae == "function" ? y(V, q, ae, ee.toString()) : ae instanceof Error ? (J = ae, {
|
|
7563
7561
|
__type__: N.SERIALIZATION_TYPES.ERROR,
|
|
7564
|
-
__message__: de(
|
|
7565
|
-
__code__:
|
|
7566
|
-
}) : window.Promise && ae instanceof window.Promise ? function(
|
|
7562
|
+
__message__: de(J),
|
|
7563
|
+
__code__: J.code
|
|
7564
|
+
}) : window.Promise && ae instanceof window.Promise ? function(me, Le, ze, Ie) {
|
|
7567
7565
|
return {
|
|
7568
7566
|
__type__: N.SERIALIZATION_TYPES.PROMISE,
|
|
7569
|
-
__then__: y(
|
|
7567
|
+
__then__: y(me, Le, function(Je, Ke) {
|
|
7570
7568
|
return ze.then(Je, Ke);
|
|
7571
7569
|
}, Ie + ".then")
|
|
7572
7570
|
};
|
|
7573
|
-
}(V,
|
|
7571
|
+
}(V, q, ae, ee.toString()) : _e.isPromise(ae) ? function(me, Le, ze, Ie) {
|
|
7574
7572
|
return {
|
|
7575
7573
|
__type__: N.SERIALIZATION_TYPES.ZALGO_PROMISE,
|
|
7576
|
-
__then__: y(
|
|
7574
|
+
__then__: y(me, Le, function(Je, Ke) {
|
|
7577
7575
|
return ze.then(Je, Ke);
|
|
7578
7576
|
}, Ie + ".then")
|
|
7579
7577
|
};
|
|
7580
|
-
}(V,
|
|
7578
|
+
}(V, q, ae, ee.toString()) : Oe(ae) ? (fe = ae, {
|
|
7581
7579
|
__type__: N.SERIALIZATION_TYPES.REGEX,
|
|
7582
7580
|
__source__: fe.source
|
|
7583
7581
|
}) : void 0;
|
|
7584
|
-
var
|
|
7582
|
+
var J, fe;
|
|
7585
7583
|
}).obj;
|
|
7586
7584
|
}(a, m),
|
|
7587
7585
|
domain: m
|
|
7588
|
-
}), a === window && !
|
|
7586
|
+
}), a === window && !he.ALLOW_SAME_ORIGIN) throw new Error("Attemping to send message to self");
|
|
7589
7587
|
if (L(a)) throw new Error("Window is closed");
|
|
7590
|
-
var w = [], I = function(V,
|
|
7588
|
+
var w = [], I = function(V, q, X) {
|
|
7591
7589
|
var ae = void 0, ee = void 0;
|
|
7592
7590
|
try {
|
|
7593
7591
|
if (JSON.stringify({}) !== "{}" && (ae = Object.prototype.toJSON, delete Object.prototype.toJSON), JSON.stringify({}) !== "{}") throw new Error("Can not correctly serialize JSON objects");
|
|
@@ -7595,30 +7593,30 @@ function hg() {
|
|
|
7595
7593
|
} catch (fe) {
|
|
7596
7594
|
throw new Error("Can not repair JSON.stringify: " + fe.message);
|
|
7597
7595
|
}
|
|
7598
|
-
var
|
|
7596
|
+
var J = JSON.stringify.call(this, V, null, 2);
|
|
7599
7597
|
try {
|
|
7600
7598
|
ae && (Object.prototype.toJSON = ae), ee && (Array.prototype.toJSON = ee);
|
|
7601
7599
|
} catch (fe) {
|
|
7602
7600
|
throw new Error("Can not repair JSON.stringify: " + fe.message);
|
|
7603
7601
|
}
|
|
7604
|
-
return
|
|
7602
|
+
return J;
|
|
7605
7603
|
}(((v = {})[N.WINDOW_PROPS.POSTROBOT] = u, v));
|
|
7606
|
-
return
|
|
7607
|
-
return
|
|
7608
|
-
if (!
|
|
7604
|
+
return _e.map(Object.keys(P), function(V) {
|
|
7605
|
+
return _e.try(function() {
|
|
7606
|
+
if (!he.ALLOWED_POST_MESSAGE_METHODS[V]) throw new Error("Strategy disallowed: " + V);
|
|
7609
7607
|
return P[V](a, I, m);
|
|
7610
7608
|
}).then(function() {
|
|
7611
7609
|
return w.push(V + ": success"), !0;
|
|
7612
|
-
}, function(
|
|
7613
|
-
return w.push(V + ": " + de(
|
|
7610
|
+
}, function(q) {
|
|
7611
|
+
return w.push(V + ": " + de(q) + `
|
|
7614
7612
|
`), !1;
|
|
7615
7613
|
});
|
|
7616
7614
|
}).then(function(V) {
|
|
7617
|
-
var
|
|
7615
|
+
var q = V.some(Boolean), X = u.type + " " + u.name + " " + (q ? "success" : "error") + `:
|
|
7618
7616
|
- ` + w.join(`
|
|
7619
7617
|
- `) + `
|
|
7620
7618
|
`;
|
|
7621
|
-
if (!
|
|
7619
|
+
if (!q) throw new Error(X);
|
|
7622
7620
|
});
|
|
7623
7621
|
});
|
|
7624
7622
|
}
|
|
@@ -7638,13 +7636,13 @@ function hg() {
|
|
|
7638
7636
|
var u = a.name, m = a.win, v = a.domain;
|
|
7639
7637
|
if (m === N.WILDCARD && (m = null), v === N.WILDCARD && (v = null), !u) throw new Error("Name required to get request listener");
|
|
7640
7638
|
var w = W.requestListeners[u];
|
|
7641
|
-
if (w) for (var I = 0, V = [m, W.WINDOW_WILDCARD],
|
|
7639
|
+
if (w) for (var I = 0, V = [m, W.WINDOW_WILDCARD], q = V == null ? 0 : V.length; I < q; I++) {
|
|
7642
7640
|
var X = V[I], ae = X && w.get(X);
|
|
7643
7641
|
if (ae) {
|
|
7644
7642
|
if (v && typeof v == "string") {
|
|
7645
7643
|
if (ae[v]) return ae[v];
|
|
7646
|
-
if (ae[G]) for (var ee = 0,
|
|
7647
|
-
var
|
|
7644
|
+
if (ae[G]) for (var ee = 0, J = ae[G], fe = J == null ? 0 : J.length; ee < fe; ee++) {
|
|
7645
|
+
var me = J[ee], Le = me.regex, ze = me.listener;
|
|
7648
7646
|
if (le(Le, v)) return ze;
|
|
7649
7647
|
}
|
|
7650
7648
|
}
|
|
@@ -7652,7 +7650,7 @@ function hg() {
|
|
|
7652
7650
|
}
|
|
7653
7651
|
}
|
|
7654
7652
|
}
|
|
7655
|
-
var
|
|
7653
|
+
var Te = Object.assign || function(a) {
|
|
7656
7654
|
for (var u = 1; u < arguments.length; u++) {
|
|
7657
7655
|
var m = arguments[u];
|
|
7658
7656
|
for (var v in m) Object.prototype.hasOwnProperty.call(m, v) && (a[v] = m[v]);
|
|
@@ -7672,15 +7670,15 @@ function hg() {
|
|
|
7672
7670
|
domain: u
|
|
7673
7671
|
});
|
|
7674
7672
|
function w(I) {
|
|
7675
|
-
return m.fireAndForget || L(a) ?
|
|
7673
|
+
return m.fireAndForget || L(a) ? _e.resolve() : A(a, Te({
|
|
7676
7674
|
target: m.originalSource,
|
|
7677
7675
|
hash: m.hash,
|
|
7678
7676
|
name: m.name
|
|
7679
7677
|
}, I), u);
|
|
7680
7678
|
}
|
|
7681
|
-
return
|
|
7679
|
+
return _e.all([w({
|
|
7682
7680
|
type: N.POST_MESSAGE_TYPE.ACK
|
|
7683
|
-
}),
|
|
7681
|
+
}), _e.try(function() {
|
|
7684
7682
|
if (!v) throw new Error("No handler found for post message: " + m.name + " from " + u + " in " + window.location.protocol + "//" + window.location.host + window.location.pathname);
|
|
7685
7683
|
if (!le(v.domain, u)) throw new Error("Request origin " + u + " does not match domain " + v.domain.toString());
|
|
7686
7684
|
var I = m.data;
|
|
@@ -7696,12 +7694,12 @@ function hg() {
|
|
|
7696
7694
|
data: I
|
|
7697
7695
|
});
|
|
7698
7696
|
}, function(I) {
|
|
7699
|
-
var V = de(I).replace(/^Error: /, ""),
|
|
7697
|
+
var V = de(I).replace(/^Error: /, ""), q = I.code;
|
|
7700
7698
|
return w({
|
|
7701
7699
|
type: N.POST_MESSAGE_TYPE.RESPONSE,
|
|
7702
7700
|
ack: N.POST_MESSAGE_ACK.ERROR,
|
|
7703
7701
|
error: V,
|
|
7704
|
-
code:
|
|
7702
|
+
code: q
|
|
7705
7703
|
});
|
|
7706
7704
|
})]).then(ie).catch(function(I) {
|
|
7707
7705
|
if (v && v.handleError) return v.handleError(I);
|
|
@@ -7752,17 +7750,17 @@ function hg() {
|
|
|
7752
7750
|
v.sourceDomain.indexOf(N.MOCK_PROTOCOL) !== 0 && v.sourceDomain.indexOf(N.FILE_PROTOCOL) !== 0 || (m = v.sourceDomain), W.receivedMessages.indexOf(v.id) === -1 && (W.receivedMessages.push(v.id), (!L(u) || v.fireAndForget) && (v.data && (v.data = function(w, I, V) {
|
|
7753
7751
|
return D({
|
|
7754
7752
|
obj: v.data
|
|
7755
|
-
}, function(
|
|
7756
|
-
if ((
|
|
7757
|
-
var
|
|
7758
|
-
return ee.__code__ && (
|
|
7759
|
-
}(0, 0,
|
|
7760
|
-
return window.Promise ? new window.Promise(function(
|
|
7761
|
-
return C(X, ae, ee.__then__)(
|
|
7753
|
+
}, function(q) {
|
|
7754
|
+
if ((q === void 0 ? "undefined" : Me(q)) === "object" && q !== null) return g(q, N.SERIALIZATION_TYPES.METHOD) ? C(w, I, q) : g(q, N.SERIALIZATION_TYPES.ERROR) ? function(X, ae, ee) {
|
|
7755
|
+
var J = new Error(ee.__message__);
|
|
7756
|
+
return ee.__code__ && (J.code = ee.__code__), J;
|
|
7757
|
+
}(0, 0, q) : g(q, N.SERIALIZATION_TYPES.PROMISE) ? function(X, ae, ee) {
|
|
7758
|
+
return window.Promise ? new window.Promise(function(J, fe) {
|
|
7759
|
+
return C(X, ae, ee.__then__)(J, fe);
|
|
7762
7760
|
}) : R(X, ae, ee);
|
|
7763
|
-
}(w, I,
|
|
7761
|
+
}(w, I, q) : g(q, N.SERIALIZATION_TYPES.ZALGO_PROMISE) ? R(w, I, q) : g(q, N.SERIALIZATION_TYPES.REGEX) ? function(X, ae, ee) {
|
|
7764
7762
|
return new RegExp(ee.__source__);
|
|
7765
|
-
}(0, 0,
|
|
7763
|
+
}(0, 0, q) : void 0;
|
|
7766
7764
|
}).obj;
|
|
7767
7765
|
}(u, m)), Se[v.type](u, m, v)));
|
|
7768
7766
|
}
|
|
@@ -7782,7 +7780,7 @@ function hg() {
|
|
|
7782
7780
|
}
|
|
7783
7781
|
W.receiveMessage = Ge, W.requestPromises = W.requestPromises || new B();
|
|
7784
7782
|
function tt(a) {
|
|
7785
|
-
return
|
|
7783
|
+
return _e.try(function() {
|
|
7786
7784
|
if (!a.name) throw new Error("Expected options.name");
|
|
7787
7785
|
var u = a.name, m = void 0, v = void 0;
|
|
7788
7786
|
if (typeof a.window == "string") {
|
|
@@ -7801,13 +7799,13 @@ function hg() {
|
|
|
7801
7799
|
v = a.domain || N.WILDCARD;
|
|
7802
7800
|
var V = a.name + "_" + ye();
|
|
7803
7801
|
if (L(I)) throw new Error("Target window is closed");
|
|
7804
|
-
var
|
|
7802
|
+
var q = !1, X = W.requestPromises.get(I);
|
|
7805
7803
|
X || (X = [], W.requestPromises.set(I, X));
|
|
7806
|
-
var ae =
|
|
7807
|
-
if (function(ee,
|
|
7808
|
-
var fe = ne(
|
|
7804
|
+
var ae = _e.try(function() {
|
|
7805
|
+
if (function(ee, J) {
|
|
7806
|
+
var fe = ne(J);
|
|
7809
7807
|
if (fe) return fe === ee;
|
|
7810
|
-
if (
|
|
7808
|
+
if (J === ee || function() {
|
|
7811
7809
|
var Ie = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : window;
|
|
7812
7810
|
try {
|
|
7813
7811
|
if (Ie.top) return Ie.top;
|
|
@@ -7815,11 +7813,11 @@ function hg() {
|
|
|
7815
7813
|
}
|
|
7816
7814
|
if (d(Ie) === Ie) return Ie;
|
|
7817
7815
|
try {
|
|
7818
|
-
if (
|
|
7816
|
+
if (z(window, Ie) && window.top) return window.top;
|
|
7819
7817
|
} catch {
|
|
7820
7818
|
}
|
|
7821
7819
|
try {
|
|
7822
|
-
if (
|
|
7820
|
+
if (z(Ie, window) && window.top) return window.top;
|
|
7823
7821
|
} catch {
|
|
7824
7822
|
}
|
|
7825
7823
|
for (var Je = 0, Ke = function Pt(lo) {
|
|
@@ -7840,36 +7838,36 @@ function hg() {
|
|
|
7840
7838
|
}
|
|
7841
7839
|
if (d(Ct) === Ct) return Ct;
|
|
7842
7840
|
}
|
|
7843
|
-
}(
|
|
7844
|
-
for (var
|
|
7841
|
+
}(J) === J) return !1;
|
|
7842
|
+
for (var me = 0, Le = te(ee), ze = Le == null ? 0 : Le.length; me < ze; me++) if (Le[me] === J) return !0;
|
|
7845
7843
|
return !1;
|
|
7846
7844
|
}(window, I)) return function(ee) {
|
|
7847
|
-
var
|
|
7848
|
-
return
|
|
7849
|
-
return
|
|
7850
|
-
},
|
|
7851
|
-
}(I, a.timeout ||
|
|
7845
|
+
var J = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 5e3, fe = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : "Window", me = W.readyPromises.get(ee);
|
|
7846
|
+
return me || (me = new _e(), W.readyPromises.set(ee, me), J !== -1 && setTimeout(function() {
|
|
7847
|
+
return me.reject(new Error(fe + " did not load after " + J + "ms"));
|
|
7848
|
+
}, J), me);
|
|
7849
|
+
}(I, a.timeout || he.CHILD_WINDOW_TIMEOUT);
|
|
7852
7850
|
}).then(function() {
|
|
7853
7851
|
var ee = (arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}).origin;
|
|
7854
|
-
if (
|
|
7852
|
+
if (Oe(v) && !ee) return _(I);
|
|
7855
7853
|
}).then(function() {
|
|
7856
7854
|
var ee = (arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}).origin;
|
|
7857
|
-
if (
|
|
7855
|
+
if (Oe(v)) {
|
|
7858
7856
|
if (!le(v, ee)) throw new Error("Remote window domain " + ee + " does not match regex: " + v.toString());
|
|
7859
7857
|
v = ee;
|
|
7860
7858
|
}
|
|
7861
7859
|
if (typeof v != "string" && !Array.isArray(v)) throw new TypeError("Expected domain to be a string or array");
|
|
7862
|
-
var
|
|
7863
|
-
return new
|
|
7860
|
+
var J = v;
|
|
7861
|
+
return new _e(function(fe, me) {
|
|
7864
7862
|
var Le = void 0;
|
|
7865
7863
|
if (a.fireAndForget || function(Ke, Et) {
|
|
7866
7864
|
W.responseListeners[Ke] = Et;
|
|
7867
7865
|
}(V, Le = {
|
|
7868
7866
|
name: u,
|
|
7869
7867
|
window: I,
|
|
7870
|
-
domain:
|
|
7868
|
+
domain: J,
|
|
7871
7869
|
respond: function(Ke, Et) {
|
|
7872
|
-
Ke || (
|
|
7870
|
+
Ke || (q = !0, X.splice(X.indexOf(ae, 1))), Ke ? me(Ke) : fe(Et);
|
|
7873
7871
|
}
|
|
7874
7872
|
}), A(I, {
|
|
7875
7873
|
type: N.POST_MESSAGE_TYPE.REQUEST,
|
|
@@ -7877,17 +7875,17 @@ function hg() {
|
|
|
7877
7875
|
name: u,
|
|
7878
7876
|
data: a.data,
|
|
7879
7877
|
fireAndForget: a.fireAndForget
|
|
7880
|
-
},
|
|
7881
|
-
var ze =
|
|
7878
|
+
}, J).catch(me), a.fireAndForget) return fe();
|
|
7879
|
+
var ze = he.ACK_TIMEOUT, Ie = a.timeout || he.RES_TIMEOUT, Je = 100;
|
|
7882
7880
|
setTimeout(function Ke() {
|
|
7883
|
-
if (!
|
|
7884
|
-
if (L(I)) return Le.ack ?
|
|
7881
|
+
if (!q) {
|
|
7882
|
+
if (L(I)) return Le.ack ? me(new Error("Window closed for " + u + " before response")) : me(new Error("Window closed for " + u + " before ack"));
|
|
7885
7883
|
if (ze = Math.max(ze - Je, 0), Ie !== -1 && (Ie = Math.max(Ie - Je, 0)), Le.ack) {
|
|
7886
7884
|
if (Ie === -1) return;
|
|
7887
7885
|
Je = Math.min(Ie, 2e3);
|
|
7888
7886
|
} else {
|
|
7889
|
-
if (ze === 0) return
|
|
7890
|
-
if (Ie === 0) return
|
|
7887
|
+
if (ze === 0) return me(new Error("No ack for postMessage " + u + " in " + j() + " in " + he.ACK_TIMEOUT + "ms"));
|
|
7888
|
+
if (Ie === 0) return me(new Error("No response for postMessage " + u + " in " + j() + " in " + (a.timeout || he.RES_TIMEOUT) + "ms"));
|
|
7891
7889
|
}
|
|
7892
7890
|
setTimeout(Ke, Je);
|
|
7893
7891
|
}
|
|
@@ -7906,7 +7904,7 @@ function hg() {
|
|
|
7906
7904
|
}
|
|
7907
7905
|
function Vn(a, u, m) {
|
|
7908
7906
|
var v = ne();
|
|
7909
|
-
return v ? lt(v, a, u, m) : new
|
|
7907
|
+
return v ? lt(v, a, u, m) : new _e(function(w, I) {
|
|
7910
7908
|
return I(new Error("Window does not have a parent"));
|
|
7911
7909
|
});
|
|
7912
7910
|
}
|
|
@@ -7938,14 +7936,14 @@ function hg() {
|
|
|
7938
7936
|
domain: v || N.WILDCARD,
|
|
7939
7937
|
name: u
|
|
7940
7938
|
}, I = function X(ae, ee) {
|
|
7941
|
-
var
|
|
7942
|
-
if (!
|
|
7939
|
+
var J = ae.name, fe = ae.win, me = ae.domain;
|
|
7940
|
+
if (!J || typeof J != "string") throw new Error("Name required to add request listener");
|
|
7943
7941
|
if (Array.isArray(fe)) {
|
|
7944
7942
|
for (var Le = [], ze = 0, Ie = fe, Je = Ie == null ? 0 : Ie.length; ze < Je; ze++) {
|
|
7945
7943
|
var Ke = Ie[ze];
|
|
7946
7944
|
Le.push(X({
|
|
7947
|
-
name:
|
|
7948
|
-
domain:
|
|
7945
|
+
name: J,
|
|
7946
|
+
domain: me,
|
|
7949
7947
|
win: Ke
|
|
7950
7948
|
}, ee));
|
|
7951
7949
|
}
|
|
@@ -7955,11 +7953,11 @@ function hg() {
|
|
|
7955
7953
|
}
|
|
7956
7954
|
};
|
|
7957
7955
|
}
|
|
7958
|
-
if (Array.isArray(
|
|
7959
|
-
for (var Et = [], Ct = 0, Pt =
|
|
7956
|
+
if (Array.isArray(me)) {
|
|
7957
|
+
for (var Et = [], Ct = 0, Pt = me, lo = Pt == null ? 0 : Pt.length; Ct < lo; Ct++) {
|
|
7960
7958
|
var Hn = Pt[Ct];
|
|
7961
7959
|
Et.push(X({
|
|
7962
|
-
name:
|
|
7960
|
+
name: J,
|
|
7963
7961
|
win: fe,
|
|
7964
7962
|
domain: Hn
|
|
7965
7963
|
}, ee));
|
|
@@ -7971,18 +7969,18 @@ function hg() {
|
|
|
7971
7969
|
};
|
|
7972
7970
|
}
|
|
7973
7971
|
var Wn = Ee({
|
|
7974
|
-
name:
|
|
7972
|
+
name: J,
|
|
7975
7973
|
win: fe,
|
|
7976
|
-
domain:
|
|
7974
|
+
domain: me
|
|
7977
7975
|
});
|
|
7978
|
-
if (fe && fe !== N.WILDCARD || (fe = W.WINDOW_WILDCARD),
|
|
7979
|
-
var mn = W.requestListeners, kt = mn[
|
|
7980
|
-
kt || (kt = new B(), mn[
|
|
7976
|
+
if (fe && fe !== N.WILDCARD || (fe = W.WINDOW_WILDCARD), me = me || N.WILDCARD, Wn) throw fe && me ? new Error("Request listener already exists for " + J + " on domain " + me.toString() + " for " + (fe === W.WINDOW_WILDCARD ? "wildcard" : "specified") + " window") : fe ? new Error("Request listener already exists for " + J + " for " + (fe === W.WINDOW_WILDCARD ? "wildcard" : "specified") + " window") : me ? new Error("Request listener already exists for " + J + " on domain " + me.toString()) : new Error("Request listener already exists for " + J);
|
|
7977
|
+
var mn = W.requestListeners, kt = mn[J];
|
|
7978
|
+
kt || (kt = new B(), mn[J] = kt);
|
|
7981
7979
|
var pt = kt.get(fe);
|
|
7982
7980
|
pt || (pt = {}, kt.set(fe, pt));
|
|
7983
|
-
var vn =
|
|
7984
|
-
return
|
|
7985
|
-
regex:
|
|
7981
|
+
var vn = me.toString(), yt = pt[G], En = void 0;
|
|
7982
|
+
return Oe(me) ? (yt || (yt = [], pt[G] = yt), En = {
|
|
7983
|
+
regex: me,
|
|
7986
7984
|
listener: ee
|
|
7987
7985
|
}, yt.push(En)) : pt[vn] = ee, {
|
|
7988
7986
|
cancel: function() {
|
|
@@ -7996,15 +7994,15 @@ function hg() {
|
|
|
7996
7994
|
}, w);
|
|
7997
7995
|
if (a.once) {
|
|
7998
7996
|
var V = w.handler;
|
|
7999
|
-
w.handler =
|
|
7997
|
+
w.handler = Y(function() {
|
|
8000
7998
|
return I.cancel(), V.apply(this, arguments);
|
|
8001
7999
|
});
|
|
8002
8000
|
}
|
|
8003
|
-
if (w.window && a.errorOnClose) var
|
|
8001
|
+
if (w.window && a.errorOnClose) var q = function(X, ae) {
|
|
8004
8002
|
var ee = void 0;
|
|
8005
|
-
return ee = setTimeout(function
|
|
8006
|
-
ee = setTimeout(
|
|
8007
|
-
m && (m === void 0 ? "undefined" : ft(m)) === "object" && L(m) && (
|
|
8003
|
+
return ee = setTimeout(function J() {
|
|
8004
|
+
ee = setTimeout(J, 50), (function() {
|
|
8005
|
+
m && (m === void 0 ? "undefined" : ft(m)) === "object" && L(m) && (q.cancel(), w.handleError(new Error("Post message target window is closed")));
|
|
8008
8006
|
}).call();
|
|
8009
8007
|
}, 50), {
|
|
8010
8008
|
cancel: function() {
|
|
@@ -8024,11 +8022,11 @@ function hg() {
|
|
|
8024
8022
|
function ws(a) {
|
|
8025
8023
|
var u = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, m = arguments[2];
|
|
8026
8024
|
typeof u == "function" && (m = u, u = {}), u = u || {}, m = m || u.handler;
|
|
8027
|
-
var v = u.errorHandler, w = new
|
|
8025
|
+
var v = u.errorHandler, w = new _e(function(V, q) {
|
|
8028
8026
|
(u = u || {}).name = a, u.once = !0, u.handler = function(X) {
|
|
8029
8027
|
if (V(X), m) return m(X);
|
|
8030
8028
|
}, u.errorHandler = function(X) {
|
|
8031
|
-
if (
|
|
8029
|
+
if (q(X), v) return v(X);
|
|
8032
8030
|
};
|
|
8033
8031
|
}), I = tn(u);
|
|
8034
8032
|
return w.cancel = I.cancel, w;
|
|
@@ -8055,10 +8053,10 @@ function hg() {
|
|
|
8055
8053
|
function uo() {
|
|
8056
8054
|
W.initialized || (u = ot, (a = window).addEventListener ? a.addEventListener("message", u) : a.attachEvent("onmessage", u), function() {
|
|
8057
8055
|
m = function(w) {
|
|
8058
|
-
var I = w.source, V = w.origin,
|
|
8059
|
-
|
|
8056
|
+
var I = w.source, V = w.origin, q = W.readyPromises.get(I) || new _e();
|
|
8057
|
+
q.resolve({
|
|
8060
8058
|
origin: V
|
|
8061
|
-
}), W.readyPromises.set(I,
|
|
8059
|
+
}), W.readyPromises.set(I, q);
|
|
8062
8060
|
}, W.on(N.POST_MESSAGE_NAMES.HELLO, {
|
|
8063
8061
|
domain: N.WILDCARD
|
|
8064
8062
|
}, function(w) {
|
|
@@ -8080,7 +8078,7 @@ function hg() {
|
|
|
8080
8078
|
uo(), o.d(r, "cleanUpWindow", function() {
|
|
8081
8079
|
return Ns;
|
|
8082
8080
|
}), o.d(r, "Promise", function() {
|
|
8083
|
-
return
|
|
8081
|
+
return _e;
|
|
8084
8082
|
}), o.d(r, "bridge", function() {
|
|
8085
8083
|
return Ts;
|
|
8086
8084
|
}), o.d(r, "init", function() {
|
|
@@ -8104,7 +8102,7 @@ function hg() {
|
|
|
8104
8102
|
}), o.d(r, "listener", function() {
|
|
8105
8103
|
return Os;
|
|
8106
8104
|
}), o.d(r, "CONFIG", function() {
|
|
8107
|
-
return
|
|
8105
|
+
return he;
|
|
8108
8106
|
}), o.d(r, "CONSTANTS", function() {
|
|
8109
8107
|
return N;
|
|
8110
8108
|
}), o.d(r, "disable", function() {
|