@das-fed/mframe 0.0.11 → 0.0.12
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 +984 -964
- package/index.js +805 -792
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -1019,8 +1019,8 @@ function su(e, t, n = Ne) {
|
|
|
1019
1019
|
"A watch source can only be a getter/effect function, a ref, a reactive object, or an array of these types."
|
|
1020
1020
|
);
|
|
1021
1021
|
}, p = (L) => s ? L : rt(L) || s === !1 || s === 0 ? Wt(L, 1) : Wt(L);
|
|
1022
|
-
let d, h, O,
|
|
1023
|
-
if (Ve(e) ? (h = () => e.value,
|
|
1022
|
+
let d, h, O, $, j = !1, B = !1;
|
|
1023
|
+
if (Ve(e) ? (h = () => e.value, j = rt(e)) : An(e) ? (h = () => p(e), j = !0) : ce(e) ? (B = !0, j = e.some((L) => An(L) || rt(L)), h = () => e.map((L) => {
|
|
1024
1024
|
if (Ve(L))
|
|
1025
1025
|
return L.value;
|
|
1026
1026
|
if (An(L))
|
|
@@ -1040,43 +1040,43 @@ function su(e, t, n = Ne) {
|
|
|
1040
1040
|
const L = an;
|
|
1041
1041
|
an = d;
|
|
1042
1042
|
try {
|
|
1043
|
-
return l ? l(e, 3, [
|
|
1043
|
+
return l ? l(e, 3, [$]) : e($);
|
|
1044
1044
|
} finally {
|
|
1045
1045
|
an = L;
|
|
1046
1046
|
}
|
|
1047
1047
|
} : (h = Fe, process.env.NODE_ENV !== "production" && E(e)), t && s) {
|
|
1048
|
-
const L = h,
|
|
1049
|
-
h = () => Wt(L(),
|
|
1048
|
+
const L = h, ne = s === !0 ? 1 / 0 : s;
|
|
1049
|
+
h = () => Wt(L(), ne);
|
|
1050
1050
|
}
|
|
1051
|
-
const
|
|
1052
|
-
d.stop(),
|
|
1051
|
+
const J = Pa(), te = () => {
|
|
1052
|
+
d.stop(), J && J.active && Xo(J.effects, d);
|
|
1053
1053
|
};
|
|
1054
1054
|
if (o && t) {
|
|
1055
1055
|
const L = t;
|
|
1056
|
-
t = (...
|
|
1057
|
-
L(...
|
|
1056
|
+
t = (...ne) => {
|
|
1057
|
+
L(...ne), te();
|
|
1058
1058
|
};
|
|
1059
1059
|
}
|
|
1060
|
-
let
|
|
1061
|
-
const
|
|
1060
|
+
let U = B ? new Array(e.length).fill(yr) : yr;
|
|
1061
|
+
const re = (L) => {
|
|
1062
1062
|
if (!(!(d.flags & 1) || !d.dirty && !L))
|
|
1063
1063
|
if (t) {
|
|
1064
|
-
const
|
|
1065
|
-
if (s ||
|
|
1064
|
+
const ne = d.run();
|
|
1065
|
+
if (s || j || (B ? ne.some((le, pe) => Zt(le, U[pe])) : Zt(ne, U))) {
|
|
1066
1066
|
O && O();
|
|
1067
1067
|
const le = an;
|
|
1068
1068
|
an = d;
|
|
1069
1069
|
try {
|
|
1070
1070
|
const pe = [
|
|
1071
|
-
|
|
1071
|
+
ne,
|
|
1072
1072
|
// pass undefined as the old value when it's changed for the first time
|
|
1073
|
-
|
|
1074
|
-
|
|
1073
|
+
U === yr ? void 0 : B && U[0] === yr ? [] : U,
|
|
1074
|
+
$
|
|
1075
1075
|
];
|
|
1076
1076
|
l ? l(t, 3, pe) : (
|
|
1077
1077
|
// @ts-expect-error
|
|
1078
1078
|
t(...pe)
|
|
1079
|
-
),
|
|
1079
|
+
), U = ne;
|
|
1080
1080
|
} finally {
|
|
1081
1081
|
an = le;
|
|
1082
1082
|
}
|
|
@@ -1084,16 +1084,16 @@ function su(e, t, n = Ne) {
|
|
|
1084
1084
|
} else
|
|
1085
1085
|
d.run();
|
|
1086
1086
|
};
|
|
1087
|
-
return c && c(
|
|
1087
|
+
return c && c(re), d = new Bi(h), d.scheduler = i ? () => i(re, !1) : re, $ = (L) => ou(L, !1, d), O = d.onStop = () => {
|
|
1088
1088
|
const L = Lr.get(d);
|
|
1089
1089
|
if (L) {
|
|
1090
1090
|
if (l)
|
|
1091
1091
|
l(L, 4);
|
|
1092
1092
|
else
|
|
1093
|
-
for (const
|
|
1093
|
+
for (const ne of L) ne();
|
|
1094
1094
|
Lr.delete(d);
|
|
1095
1095
|
}
|
|
1096
|
-
}, process.env.NODE_ENV !== "production" && (d.onTrack = n.onTrack, d.onTrigger = n.onTrigger), t ? r ?
|
|
1096
|
+
}, process.env.NODE_ENV !== "production" && (d.onTrack = n.onTrack, d.onTrigger = n.onTrigger), t ? r ? re(!0) : U = d.run() : i ? i(re.bind(null, !0), !0) : d.run(), te.pause = d.pause.bind(d), te.resume = d.resume.bind(d), te.stop = te, te;
|
|
1097
1097
|
}
|
|
1098
1098
|
function Wt(e, t = 1 / 0, n) {
|
|
1099
1099
|
if (t <= 0 || !De(e) || e.__v_skip || (n = n || /* @__PURE__ */ new Set(), n.has(e)))
|
|
@@ -1128,7 +1128,7 @@ function Or() {
|
|
|
1128
1128
|
ln.pop();
|
|
1129
1129
|
}
|
|
1130
1130
|
let mo = !1;
|
|
1131
|
-
function
|
|
1131
|
+
function H(e, ...t) {
|
|
1132
1132
|
if (mo) return;
|
|
1133
1133
|
mo = !0, Bt();
|
|
1134
1134
|
const n = ln.length ? ln[ln.length - 1].component : null, r = n && n.appContext.config.warnHandler, s = iu();
|
|
@@ -1250,7 +1250,7 @@ function xt(e, t, n, r) {
|
|
|
1250
1250
|
for (let o = 0; o < e.length; o++)
|
|
1251
1251
|
s.push(xt(e[o], t, n, r));
|
|
1252
1252
|
return s;
|
|
1253
|
-
} else process.env.NODE_ENV !== "production" &&
|
|
1253
|
+
} else process.env.NODE_ENV !== "production" && H(
|
|
1254
1254
|
`Invalid value type passed to callWithAsyncErrorHandling(): ${typeof e}`
|
|
1255
1255
|
);
|
|
1256
1256
|
}
|
|
@@ -1282,7 +1282,7 @@ function fr(e, t, n, r = !0) {
|
|
|
1282
1282
|
function lu(e, t, n, r = !0, s = !1) {
|
|
1283
1283
|
if (process.env.NODE_ENV !== "production") {
|
|
1284
1284
|
const o = as[t];
|
|
1285
|
-
if (n && wr(n),
|
|
1285
|
+
if (n && wr(n), H(`Unhandled error${o ? ` during execution of ${o}` : ""}`), n && Or(), r)
|
|
1286
1286
|
throw e;
|
|
1287
1287
|
} else if (s)
|
|
1288
1288
|
throw e;
|
|
@@ -1537,11 +1537,11 @@ function Nu(e, t = et, n) {
|
|
|
1537
1537
|
return r._n = !0, r._c = !0, r._d = !0, r;
|
|
1538
1538
|
}
|
|
1539
1539
|
function mc(e) {
|
|
1540
|
-
ba(e) &&
|
|
1540
|
+
ba(e) && H("Do not use built-in directive ids as custom directive id: " + e);
|
|
1541
1541
|
}
|
|
1542
1542
|
function _r(e, t) {
|
|
1543
1543
|
if (et === null)
|
|
1544
|
-
return process.env.NODE_ENV !== "production" &&
|
|
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 s = 0; s < t.length; s++) {
|
|
1547
1547
|
let [o, i, c, l = Ne] = t[s];
|
|
@@ -1593,9 +1593,9 @@ const Du = /* @__PURE__ */ new WeakSet();
|
|
|
1593
1593
|
function Wr(e, t, n, r, s = !1) {
|
|
1594
1594
|
if (ce(e)) {
|
|
1595
1595
|
e.forEach(
|
|
1596
|
-
(
|
|
1597
|
-
|
|
1598
|
-
t && (ce(t) ? t[
|
|
1596
|
+
($, j) => Wr(
|
|
1597
|
+
$,
|
|
1598
|
+
t && (ce(t) ? t[j] : t),
|
|
1599
1599
|
n,
|
|
1600
1600
|
r,
|
|
1601
1601
|
s
|
|
@@ -1609,27 +1609,27 @@ function Wr(e, t, n, r, s = !1) {
|
|
|
1609
1609
|
}
|
|
1610
1610
|
const o = r.shapeFlag & 4 ? eo(r.component) : r.el, i = s ? null : o, { i: c, r: l } = e;
|
|
1611
1611
|
if (process.env.NODE_ENV !== "production" && !c) {
|
|
1612
|
-
|
|
1612
|
+
H(
|
|
1613
1613
|
"Missing ref owner context. ref cannot be used on hoisted vnodes. A vnode with ref must be created inside the render function."
|
|
1614
1614
|
);
|
|
1615
1615
|
return;
|
|
1616
1616
|
}
|
|
1617
|
-
const E = t && t.r, p = c.refs === Ne ? c.refs = {} : c.refs, d = c.setupState, h = me(d), O = d === Ne ? () => !1 : (
|
|
1618
|
-
`Template ref "${
|
|
1619
|
-
), Du.has(h[
|
|
1617
|
+
const E = t && t.r, p = c.refs === Ne ? c.refs = {} : c.refs, d = c.setupState, h = me(d), O = d === Ne ? () => !1 : ($) => process.env.NODE_ENV !== "production" && (be(h, $) && !Ve(h[$]) && H(
|
|
1618
|
+
`Template ref "${$}" used on a non-ref value. It will not work in the production build.`
|
|
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 {
|
|
1623
|
-
const
|
|
1624
|
-
if (
|
|
1625
|
-
const
|
|
1623
|
+
const $ = He(l), j = Ve(l);
|
|
1624
|
+
if ($ || j) {
|
|
1625
|
+
const B = () => {
|
|
1626
1626
|
if (e.f) {
|
|
1627
|
-
const
|
|
1628
|
-
s ? ce(
|
|
1629
|
-
} else
|
|
1627
|
+
const J = $ ? O(l) ? d[l] : p[l] : l.value;
|
|
1628
|
+
s ? ce(J) && Xo(J, o) : ce(J) ? J.includes(o) || J.push(o) : $ ? (p[l] = [o], O(l) && (d[l] = p[l])) : (l.value = [o], e.k && (p[e.k] = l.value));
|
|
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
|
-
i ? (
|
|
1632
|
-
} else process.env.NODE_ENV !== "production" &&
|
|
1631
|
+
i ? (B.id = -1, st(B, n)) : B();
|
|
1632
|
+
} else process.env.NODE_ENV !== "production" && H("Invalid template ref type:", l, `(${typeof l})`);
|
|
1633
1633
|
}
|
|
1634
1634
|
}
|
|
1635
1635
|
lr().requestIdleCallback;
|
|
@@ -1679,7 +1679,7 @@ function Zr(e, t, n = Ue, r = !1) {
|
|
|
1679
1679
|
return r ? s.unshift(o) : s.push(o), o;
|
|
1680
1680
|
} else if (process.env.NODE_ENV !== "production") {
|
|
1681
1681
|
const s = cn(as[e].replace(/ hook$/, ""));
|
|
1682
|
-
|
|
1682
|
+
H(
|
|
1683
1683
|
`${s} is called when there is no active component instance to be associated with. Lifecycle injection APIs can only be used during execution of setup(). If you are using async setup(), make sure to register lifecycle hooks before the first await statement.`
|
|
1684
1684
|
);
|
|
1685
1685
|
}
|
|
@@ -1773,17 +1773,17 @@ const Bu = Symbol.for("v-ndc"), jo = (e) => e ? Gc(e) ? eo(e) : jo(e.parent) : n
|
|
|
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) && (s !== Ne && hs(t[0]) && be(s, t) ?
|
|
1776
|
+
t.indexOf("__v") !== 0) && (s !== Ne && hs(t[0]) && be(s, 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.`
|
|
1780
|
-
) : e === et &&
|
|
1780
|
+
) : e === et && H(
|
|
1781
1781
|
`Property ${JSON.stringify(t)} was accessed during render but is not defined on instance.`
|
|
1782
1782
|
));
|
|
1783
1783
|
},
|
|
1784
1784
|
set({ _: e }, t, n) {
|
|
1785
1785
|
const { data: r, setupState: s, ctx: o } = e;
|
|
1786
|
-
return Eo(s, t) ? (s[t] = n, !0) : process.env.NODE_ENV !== "production" && s.__isScriptSetup && be(s, t) ? (
|
|
1786
|
+
return Eo(s, t) ? (s[t] = n, !0) : process.env.NODE_ENV !== "production" && s.__isScriptSetup && be(s, 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(o, t, {
|
|
1789
1789
|
enumerable: !0,
|
|
@@ -1801,7 +1801,7 @@ const Bu = Symbol.for("v-ndc"), jo = (e) => e ? Gc(e) ? eo(e) : jo(e.parent) : n
|
|
|
1801
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
|
-
process.env.NODE_ENV !== "production" && (bc.ownKeys = (e) => (
|
|
1804
|
+
process.env.NODE_ENV !== "production" && (bc.ownKeys = (e) => (H(
|
|
1805
1805
|
"Avoid app logic that relies on enumerating keys on a component instance. The keys will be empty in production mode to avoid performance overhead."
|
|
1806
1806
|
), Reflect.ownKeys(e)));
|
|
1807
1807
|
function Uu(e) {
|
|
@@ -1840,7 +1840,7 @@ function Ku(e) {
|
|
|
1840
1840
|
Object.keys(me(n)).forEach((r) => {
|
|
1841
1841
|
if (!n.__isScriptSetup) {
|
|
1842
1842
|
if (hs(r[0])) {
|
|
1843
|
-
|
|
1843
|
+
H(
|
|
1844
1844
|
`setup() return property ${JSON.stringify(
|
|
1845
1845
|
r
|
|
1846
1846
|
)} should not start with "$" or "_" which are reserved prefixes for Vue internals.`
|
|
@@ -1865,7 +1865,7 @@ function $s(e) {
|
|
|
1865
1865
|
function ku() {
|
|
1866
1866
|
const e = /* @__PURE__ */ Object.create(null);
|
|
1867
1867
|
return (t, n) => {
|
|
1868
|
-
e[n] ?
|
|
1868
|
+
e[n] ? H(`${t} property "${n}" is already defined in ${e[n]}.`) : e[n] = t;
|
|
1869
1869
|
};
|
|
1870
1870
|
}
|
|
1871
1871
|
let Ho = !0;
|
|
@@ -1885,68 +1885,68 @@ function Yu(e) {
|
|
|
1885
1885
|
beforeMount: d,
|
|
1886
1886
|
mounted: h,
|
|
1887
1887
|
beforeUpdate: O,
|
|
1888
|
-
updated:
|
|
1889
|
-
activated:
|
|
1890
|
-
deactivated:
|
|
1891
|
-
beforeDestroy:
|
|
1892
|
-
beforeUnmount:
|
|
1893
|
-
destroyed:
|
|
1894
|
-
unmounted:
|
|
1888
|
+
updated: $,
|
|
1889
|
+
activated: j,
|
|
1890
|
+
deactivated: B,
|
|
1891
|
+
beforeDestroy: J,
|
|
1892
|
+
beforeUnmount: te,
|
|
1893
|
+
destroyed: U,
|
|
1894
|
+
unmounted: re,
|
|
1895
1895
|
render: L,
|
|
1896
|
-
renderTracked:
|
|
1896
|
+
renderTracked: ne,
|
|
1897
1897
|
renderTriggered: le,
|
|
1898
1898
|
errorCaptured: pe,
|
|
1899
|
-
serverPrefetch:
|
|
1899
|
+
serverPrefetch: K,
|
|
1900
1900
|
// public API
|
|
1901
|
-
expose:
|
|
1902
|
-
inheritAttrs:
|
|
1901
|
+
expose: k,
|
|
1902
|
+
inheritAttrs: F,
|
|
1903
1903
|
// assets
|
|
1904
1904
|
components: N,
|
|
1905
|
-
directives:
|
|
1905
|
+
directives: se,
|
|
1906
1906
|
filters: ge
|
|
1907
1907
|
} = t, we = process.env.NODE_ENV !== "production" ? ku() : null;
|
|
1908
1908
|
if (process.env.NODE_ENV !== "production") {
|
|
1909
1909
|
const [z] = e.propsOptions;
|
|
1910
1910
|
if (z)
|
|
1911
|
-
for (const
|
|
1912
|
-
we("Props",
|
|
1911
|
+
for (const ie in z)
|
|
1912
|
+
we("Props", ie);
|
|
1913
1913
|
}
|
|
1914
1914
|
if (E && qu(E, r, we), i)
|
|
1915
1915
|
for (const z in i) {
|
|
1916
|
-
const
|
|
1917
|
-
ue(
|
|
1918
|
-
value:
|
|
1916
|
+
const ie = i[z];
|
|
1917
|
+
ue(ie) ? (process.env.NODE_ENV !== "production" ? Object.defineProperty(r, z, {
|
|
1918
|
+
value: ie.bind(n),
|
|
1919
1919
|
configurable: !0,
|
|
1920
1920
|
enumerable: !0,
|
|
1921
1921
|
writable: !0
|
|
1922
|
-
}) : r[z] =
|
|
1923
|
-
`Method "${z}" has type "${typeof
|
|
1922
|
+
}) : r[z] = ie.bind(n), process.env.NODE_ENV !== "production" && we("Methods", z)) : process.env.NODE_ENV !== "production" && H(
|
|
1923
|
+
`Method "${z}" has type "${typeof ie}" in the component definition. Did you reference the function correctly?`
|
|
1924
1924
|
);
|
|
1925
1925
|
}
|
|
1926
1926
|
if (s) {
|
|
1927
|
-
process.env.NODE_ENV !== "production" && !ue(s) &&
|
|
1927
|
+
process.env.NODE_ENV !== "production" && !ue(s) && H(
|
|
1928
1928
|
"The data option must be a function. Plain object usage is no longer supported."
|
|
1929
1929
|
);
|
|
1930
1930
|
const z = s.call(n, n);
|
|
1931
|
-
if (process.env.NODE_ENV !== "production" && Zo(z) &&
|
|
1931
|
+
if (process.env.NODE_ENV !== "production" && Zo(z) && 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
1933
|
), !De(z))
|
|
1934
|
-
process.env.NODE_ENV !== "production" &&
|
|
1934
|
+
process.env.NODE_ENV !== "production" && H("data() should return an object.");
|
|
1935
1935
|
else if (e.data = cs(z), process.env.NODE_ENV !== "production")
|
|
1936
|
-
for (const
|
|
1937
|
-
we("Data",
|
|
1936
|
+
for (const ie in z)
|
|
1937
|
+
we("Data", ie), hs(ie[0]) || Object.defineProperty(r, ie, {
|
|
1938
1938
|
configurable: !0,
|
|
1939
1939
|
enumerable: !0,
|
|
1940
|
-
get: () => z[
|
|
1940
|
+
get: () => z[ie],
|
|
1941
1941
|
set: Fe
|
|
1942
1942
|
});
|
|
1943
1943
|
}
|
|
1944
1944
|
if (Ho = !0, o)
|
|
1945
1945
|
for (const z in o) {
|
|
1946
|
-
const
|
|
1947
|
-
process.env.NODE_ENV !== "production" && ye === Fe &&
|
|
1948
|
-
const D = !ue(
|
|
1949
|
-
|
|
1946
|
+
const ie = o[z], 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 "${z}" has no getter.`);
|
|
1948
|
+
const D = !ue(ie) && ue(ie.set) ? ie.set.bind(n) : process.env.NODE_ENV !== "production" ? () => {
|
|
1949
|
+
H(
|
|
1950
1950
|
`Write operation failed: computed property "${z}" is readonly.`
|
|
1951
1951
|
);
|
|
1952
1952
|
} : Fe, Oe = _t({
|
|
@@ -1965,25 +1965,25 @@ function Yu(e) {
|
|
|
1965
1965
|
wc(c[z], r, n, z);
|
|
1966
1966
|
if (l) {
|
|
1967
1967
|
const z = ue(l) ? l.call(n) : l;
|
|
1968
|
-
Reflect.ownKeys(z).forEach((
|
|
1969
|
-
el(
|
|
1968
|
+
Reflect.ownKeys(z).forEach((ie) => {
|
|
1969
|
+
el(ie, z[ie]);
|
|
1970
1970
|
});
|
|
1971
1971
|
}
|
|
1972
1972
|
p && Ms(p, e, "c");
|
|
1973
|
-
function ve(z,
|
|
1974
|
-
ce(
|
|
1973
|
+
function ve(z, ie) {
|
|
1974
|
+
ce(ie) ? ie.forEach((ye) => z(ye.bind(n))) : ie && z(ie.bind(n));
|
|
1975
1975
|
}
|
|
1976
|
-
if (ve($u, d), ve(yc, h), ve(Mu, O), ve(Lu,
|
|
1977
|
-
if (
|
|
1976
|
+
if (ve($u, d), ve(yc, h), ve(Mu, O), ve(Lu, $), ve(Cu, j), ve(Pu, B), ve(Fu, pe), ve(Wu, ne), ve(Hu, le), ve(Vu, te), ve(_c, re), ve(ju, K), ce(k))
|
|
1977
|
+
if (k.length) {
|
|
1978
1978
|
const z = e.exposed || (e.exposed = {});
|
|
1979
|
-
|
|
1980
|
-
Object.defineProperty(z,
|
|
1981
|
-
get: () => n[
|
|
1982
|
-
set: (ye) => n[
|
|
1979
|
+
k.forEach((ie) => {
|
|
1980
|
+
Object.defineProperty(z, ie, {
|
|
1981
|
+
get: () => n[ie],
|
|
1982
|
+
set: (ye) => n[ie] = ye
|
|
1983
1983
|
});
|
|
1984
1984
|
});
|
|
1985
1985
|
} else e.exposed || (e.exposed = {});
|
|
1986
|
-
L && e.render === Fe && (e.render = L),
|
|
1986
|
+
L && e.render === Fe && (e.render = L), F != null && (e.inheritAttrs = F), N && (e.components = N), se && (e.directives = se), K && vc(e);
|
|
1987
1987
|
}
|
|
1988
1988
|
function qu(e, t, n = Fe) {
|
|
1989
1989
|
ce(e) && (e = Wo(e));
|
|
@@ -2013,7 +2013,7 @@ function wc(e, t, n, r) {
|
|
|
2013
2013
|
let s = r.includes(".") ? Lc(n, r) : () => n[r];
|
|
2014
2014
|
if (He(e)) {
|
|
2015
2015
|
const o = t[e];
|
|
2016
|
-
ue(o) ? St(s, o) : process.env.NODE_ENV !== "production" &&
|
|
2016
|
+
ue(o) ? St(s, o) : process.env.NODE_ENV !== "production" && H(`Invalid watch handler specified by key "${e}"`, o);
|
|
2017
2017
|
} else if (ue(e))
|
|
2018
2018
|
St(s, e.bind(n));
|
|
2019
2019
|
else if (De(e))
|
|
@@ -2021,9 +2021,9 @@ function wc(e, t, n, r) {
|
|
|
2021
2021
|
e.forEach((o) => wc(o, t, n, r));
|
|
2022
2022
|
else {
|
|
2023
2023
|
const o = ue(e.handler) ? e.handler.bind(n) : t[e.handler];
|
|
2024
|
-
ue(o) ? St(s, o, e) : process.env.NODE_ENV !== "production" &&
|
|
2024
|
+
ue(o) ? St(s, o, e) : process.env.NODE_ENV !== "production" && H(`Invalid watch handler specified by key "${e.handler}"`, o);
|
|
2025
2025
|
}
|
|
2026
|
-
else process.env.NODE_ENV !== "production" &&
|
|
2026
|
+
else process.env.NODE_ENV !== "production" && H(`Invalid watch option: "${r}"`, e);
|
|
2027
2027
|
}
|
|
2028
2028
|
function Oc(e) {
|
|
2029
2029
|
const t = e.type, { mixins: n, extends: r } = t, {
|
|
@@ -2043,7 +2043,7 @@ function Fr(e, t, n, r = !1) {
|
|
|
2043
2043
|
);
|
|
2044
2044
|
for (const i in t)
|
|
2045
2045
|
if (r && i === "expose")
|
|
2046
|
-
process.env.NODE_ENV !== "production" &&
|
|
2046
|
+
process.env.NODE_ENV !== "production" && H(
|
|
2047
2047
|
'"expose" option is ignored when declared in mixins or extends. It should only be declared in the base component itself.'
|
|
2048
2048
|
);
|
|
2049
2049
|
else {
|
|
@@ -2148,7 +2148,7 @@ function Sc() {
|
|
|
2148
2148
|
let Zu = 0;
|
|
2149
2149
|
function Qu(e, t) {
|
|
2150
2150
|
return function(r, s = null) {
|
|
2151
|
-
ue(r) || (r = je({}, r)), s != null && !De(s) && (process.env.NODE_ENV !== "production" &&
|
|
2151
|
+
ue(r) || (r = je({}, r)), s != null && !De(s) && (process.env.NODE_ENV !== "production" && H("root props passed to app.mount() must be an object."), s = null);
|
|
2152
2152
|
const o = Sc(), i = /* @__PURE__ */ new WeakSet(), c = [];
|
|
2153
2153
|
let l = !1;
|
|
2154
2154
|
const E = o.app = {
|
|
@@ -2163,33 +2163,33 @@ function Qu(e, t) {
|
|
|
2163
2163
|
return o.config;
|
|
2164
2164
|
},
|
|
2165
2165
|
set config(p) {
|
|
2166
|
-
process.env.NODE_ENV !== "production" &&
|
|
2166
|
+
process.env.NODE_ENV !== "production" && H(
|
|
2167
2167
|
"app.config cannot be replaced. Modify individual options instead."
|
|
2168
2168
|
);
|
|
2169
2169
|
},
|
|
2170
2170
|
use(p, ...d) {
|
|
2171
|
-
return i.has(p) ? process.env.NODE_ENV !== "production" &&
|
|
2171
|
+
return i.has(p) ? process.env.NODE_ENV !== "production" && H("Plugin has already been applied to target app.") : p && ue(p.install) ? (i.add(p), p.install(E, ...d)) : ue(p) ? (i.add(p), p(E, ...d)) : process.env.NODE_ENV !== "production" && H(
|
|
2172
2172
|
'A plugin must either be a function or an object with an "install" function.'
|
|
2173
2173
|
), E;
|
|
2174
2174
|
},
|
|
2175
2175
|
mixin(p) {
|
|
2176
|
-
return o.mixins.includes(p) ? process.env.NODE_ENV !== "production" &&
|
|
2176
|
+
return o.mixins.includes(p) ? process.env.NODE_ENV !== "production" && H(
|
|
2177
2177
|
"Mixin has already been applied to target app" + (p.name ? `: ${p.name}` : "")
|
|
2178
2178
|
) : o.mixins.push(p), E;
|
|
2179
2179
|
},
|
|
2180
2180
|
component(p, d) {
|
|
2181
|
-
return process.env.NODE_ENV !== "production" && Ko(p, o.config), d ? (process.env.NODE_ENV !== "production" && o.components[p] &&
|
|
2181
|
+
return process.env.NODE_ENV !== "production" && Ko(p, o.config), d ? (process.env.NODE_ENV !== "production" && o.components[p] && H(`Component "${p}" has already been registered in target app.`), o.components[p] = d, E) : o.components[p];
|
|
2182
2182
|
},
|
|
2183
2183
|
directive(p, d) {
|
|
2184
|
-
return process.env.NODE_ENV !== "production" && mc(p), d ? (process.env.NODE_ENV !== "production" && o.directives[p] &&
|
|
2184
|
+
return process.env.NODE_ENV !== "production" && mc(p), d ? (process.env.NODE_ENV !== "production" && o.directives[p] && H(`Directive "${p}" has already been registered in target app.`), o.directives[p] = d, E) : o.directives[p];
|
|
2185
2185
|
},
|
|
2186
2186
|
mount(p, d, h) {
|
|
2187
2187
|
if (l)
|
|
2188
|
-
process.env.NODE_ENV !== "production" &&
|
|
2188
|
+
process.env.NODE_ENV !== "production" && H(
|
|
2189
2189
|
"App has already been mounted.\nIf you want to remount the same app, move your app creation logic into a factory function and create fresh app instances for each mount - e.g. `const createMyApp = () => createApp(App)`"
|
|
2190
2190
|
);
|
|
2191
2191
|
else {
|
|
2192
|
-
process.env.NODE_ENV !== "production" && p.__vue_app__ &&
|
|
2192
|
+
process.env.NODE_ENV !== "production" && p.__vue_app__ && H(
|
|
2193
2193
|
"There is already an app instance mounted on the host container.\n If you want to mount another app on the same host container, you need to unmount the previous app by calling `app.unmount()` first."
|
|
2194
2194
|
);
|
|
2195
2195
|
const O = E._ceVNode || at(r, s);
|
|
@@ -2203,7 +2203,7 @@ function Qu(e, t) {
|
|
|
2203
2203
|
}
|
|
2204
2204
|
},
|
|
2205
2205
|
onUnmount(p) {
|
|
2206
|
-
process.env.NODE_ENV !== "production" && typeof p != "function" &&
|
|
2206
|
+
process.env.NODE_ENV !== "production" && typeof p != "function" && H(
|
|
2207
2207
|
`Expected function as first argument to app.onUnmount(), but got ${typeof p}`
|
|
2208
2208
|
), c.push(p);
|
|
2209
2209
|
},
|
|
@@ -2212,10 +2212,10 @@ function Qu(e, t) {
|
|
|
2212
2212
|
c,
|
|
2213
2213
|
E._instance,
|
|
2214
2214
|
16
|
|
2215
|
-
), e(null, E._container), process.env.NODE_ENV !== "production" && (E._instance = null, yu(E)), delete E._container.__vue_app__) : process.env.NODE_ENV !== "production" &&
|
|
2215
|
+
), e(null, E._container), process.env.NODE_ENV !== "production" && (E._instance = null, yu(E)), delete E._container.__vue_app__) : process.env.NODE_ENV !== "production" && H("Cannot unmount an app that is not mounted.");
|
|
2216
2216
|
},
|
|
2217
2217
|
provide(p, d) {
|
|
2218
|
-
return process.env.NODE_ENV !== "production" && p in o.provides &&
|
|
2218
|
+
return process.env.NODE_ENV !== "production" && p in o.provides && H(
|
|
2219
2219
|
`App already provides property with key "${String(p)}". It will be overwritten with the new value.`
|
|
2220
2220
|
), o.provides[p] = d, E;
|
|
2221
2221
|
},
|
|
@@ -2235,7 +2235,7 @@ function Qu(e, t) {
|
|
|
2235
2235
|
let Tn = null;
|
|
2236
2236
|
function el(e, t) {
|
|
2237
2237
|
if (!Ue)
|
|
2238
|
-
process.env.NODE_ENV !== "production" &&
|
|
2238
|
+
process.env.NODE_ENV !== "production" && H("provide() can only be used inside setup().");
|
|
2239
2239
|
else {
|
|
2240
2240
|
let n = Ue.provides;
|
|
2241
2241
|
const r = Ue.parent && Ue.parent.provides;
|
|
@@ -2250,8 +2250,8 @@ function Ar(e, t, n = !1) {
|
|
|
2250
2250
|
return s[e];
|
|
2251
2251
|
if (arguments.length > 1)
|
|
2252
2252
|
return n && ue(t) ? t.call(r && r.proxy) : t;
|
|
2253
|
-
process.env.NODE_ENV !== "production" &&
|
|
2254
|
-
} else process.env.NODE_ENV !== "production" &&
|
|
2253
|
+
process.env.NODE_ENV !== "production" && H(`injection "${String(e)}" not found.`);
|
|
2254
|
+
} else process.env.NODE_ENV !== "production" && H("inject() can only be used inside setup() or functional components.");
|
|
2255
2255
|
}
|
|
2256
2256
|
const Ac = {}, Nc = () => Object.create(Ac), Tc = (e) => Object.getPrototypeOf(e) === Ac;
|
|
2257
2257
|
function tl(e, t, n, r = !1) {
|
|
@@ -2291,11 +2291,11 @@ function rl(e, t, n, r) {
|
|
|
2291
2291
|
if (be(o, h))
|
|
2292
2292
|
O !== o[h] && (o[h] = O, E = !0);
|
|
2293
2293
|
else {
|
|
2294
|
-
const
|
|
2295
|
-
s[
|
|
2294
|
+
const $ = gt(h);
|
|
2295
|
+
s[$] = Fo(
|
|
2296
2296
|
l,
|
|
2297
2297
|
c,
|
|
2298
|
-
|
|
2298
|
+
$,
|
|
2299
2299
|
O,
|
|
2300
2300
|
e,
|
|
2301
2301
|
!1
|
|
@@ -2405,34 +2405,34 @@ function xc(e, t, n = !1) {
|
|
|
2405
2405
|
return De(e) && r.set(e, On), On;
|
|
2406
2406
|
if (ce(o))
|
|
2407
2407
|
for (let p = 0; p < o.length; p++) {
|
|
2408
|
-
process.env.NODE_ENV !== "production" && !He(o[p]) &&
|
|
2408
|
+
process.env.NODE_ENV !== "production" && !He(o[p]) && H("props must be strings when using array syntax.", o[p]);
|
|
2409
2409
|
const d = gt(o[p]);
|
|
2410
2410
|
js(d) && (i[d] = Ne);
|
|
2411
2411
|
}
|
|
2412
2412
|
else if (o) {
|
|
2413
|
-
process.env.NODE_ENV !== "production" && !De(o) &&
|
|
2413
|
+
process.env.NODE_ENV !== "production" && !De(o) && H("invalid props options", o);
|
|
2414
2414
|
for (const p in o) {
|
|
2415
2415
|
const d = gt(p);
|
|
2416
2416
|
if (js(d)) {
|
|
2417
|
-
const h = o[p], O = i[d] = ce(h) || ue(h) ? { type: h } : je({}, h),
|
|
2418
|
-
let
|
|
2419
|
-
if (ce(
|
|
2420
|
-
for (let
|
|
2421
|
-
const
|
|
2422
|
-
if (
|
|
2423
|
-
|
|
2417
|
+
const h = o[p], O = i[d] = ce(h) || ue(h) ? { type: h } : je({}, h), $ = O.type;
|
|
2418
|
+
let j = !1, B = !0;
|
|
2419
|
+
if (ce($))
|
|
2420
|
+
for (let J = 0; J < $.length; ++J) {
|
|
2421
|
+
const te = $[J], U = ue(te) && te.name;
|
|
2422
|
+
if (U === "Boolean") {
|
|
2423
|
+
j = !0;
|
|
2424
2424
|
break;
|
|
2425
|
-
} else
|
|
2425
|
+
} else U === "String" && (B = !1);
|
|
2426
2426
|
}
|
|
2427
2427
|
else
|
|
2428
|
-
|
|
2428
|
+
j = ue($) && $.name === "Boolean";
|
|
2429
2429
|
O[
|
|
2430
2430
|
0
|
|
2431
2431
|
/* shouldCast */
|
|
2432
|
-
] =
|
|
2432
|
+
] = j, O[
|
|
2433
2433
|
1
|
|
2434
2434
|
/* shouldCastTrue */
|
|
2435
|
-
] =
|
|
2435
|
+
] = B, (j || be(O, "default")) && c.push(d);
|
|
2436
2436
|
}
|
|
2437
2437
|
}
|
|
2438
2438
|
}
|
|
@@ -2440,7 +2440,7 @@ function xc(e, t, n = !1) {
|
|
|
2440
2440
|
return De(e) && r.set(e, E), E;
|
|
2441
2441
|
}
|
|
2442
2442
|
function js(e) {
|
|
2443
|
-
return e[0] !== "$" && !Jn(e) ? !0 : (process.env.NODE_ENV !== "production" &&
|
|
2443
|
+
return e[0] !== "$" && !Jn(e) ? !0 : (process.env.NODE_ENV !== "production" && H(`Invalid prop name: "${e}" is a reserved property.`), !1);
|
|
2444
2444
|
}
|
|
2445
2445
|
function sl(e) {
|
|
2446
2446
|
return e === null ? "null" : typeof e == "function" ? e.name || "" : typeof e == "object" && e.constructor && e.constructor.name || "";
|
|
@@ -2461,7 +2461,7 @@ function Dc(e, t, n) {
|
|
|
2461
2461
|
function il(e, t, n, r, s) {
|
|
2462
2462
|
const { type: o, required: i, validator: c, skipCheck: l } = n;
|
|
2463
2463
|
if (i && s) {
|
|
2464
|
-
|
|
2464
|
+
H('Missing required prop: "' + e + '"');
|
|
2465
2465
|
return;
|
|
2466
2466
|
}
|
|
2467
2467
|
if (!(t == null && !i)) {
|
|
@@ -2469,15 +2469,15 @@ function il(e, t, n, r, s) {
|
|
|
2469
2469
|
let E = !1;
|
|
2470
2470
|
const p = ce(o) ? o : [o], d = [];
|
|
2471
2471
|
for (let h = 0; h < p.length && !E; h++) {
|
|
2472
|
-
const { valid: O, expectedType:
|
|
2473
|
-
d.push(
|
|
2472
|
+
const { valid: O, expectedType: $ } = al(t, p[h]);
|
|
2473
|
+
d.push($ || ""), E = O;
|
|
2474
2474
|
}
|
|
2475
2475
|
if (!E) {
|
|
2476
|
-
|
|
2476
|
+
H(ul(e, t, d));
|
|
2477
2477
|
return;
|
|
2478
2478
|
}
|
|
2479
2479
|
}
|
|
2480
|
-
c && !c(t, r) &&
|
|
2480
|
+
c && !c(t, r) && H('Invalid prop: custom validator check failed for prop "' + e + '".');
|
|
2481
2481
|
}
|
|
2482
2482
|
}
|
|
2483
2483
|
const cl = /* @__PURE__ */ Pn(
|
|
@@ -2516,7 +2516,7 @@ function ll(...e) {
|
|
|
2516
2516
|
const Cc = (e) => e[0] === "_" || e === "$stable", gs = (e) => ce(e) ? e.map(dt) : [dt(e)], fl = (e, t, n) => {
|
|
2517
2517
|
if (t._n)
|
|
2518
2518
|
return t;
|
|
2519
|
-
const r = Nu((...s) => (process.env.NODE_ENV !== "production" && Ue && (!n || n.root === Ue.root) &&
|
|
2519
|
+
const r = Nu((...s) => (process.env.NODE_ENV !== "production" && Ue && (!n || n.root === Ue.root) && H(
|
|
2520
2520
|
`Slot "${e}" invoked outside of the render function: this will not track dependencies used in the slot. Invoke the slot function inside the render function instead.`
|
|
2521
2521
|
), gs(t(...s))), n);
|
|
2522
2522
|
return r._c = !1, r;
|
|
@@ -2528,7 +2528,7 @@ const Cc = (e) => e[0] === "_" || e === "$stable", gs = (e) => ce(e) ? e.map(dt)
|
|
|
2528
2528
|
if (ue(o))
|
|
2529
2529
|
t[s] = fl(s, o, r);
|
|
2530
2530
|
else if (o != null) {
|
|
2531
|
-
process.env.NODE_ENV !== "production" &&
|
|
2531
|
+
process.env.NODE_ENV !== "production" && H(
|
|
2532
2532
|
`Non-function value encountered for slot "${s}". Prefer function slots for better performance.`
|
|
2533
2533
|
);
|
|
2534
2534
|
const i = gs(o);
|
|
@@ -2536,7 +2536,7 @@ const Cc = (e) => e[0] === "_" || e === "$stable", gs = (e) => ce(e) ? e.map(dt)
|
|
|
2536
2536
|
}
|
|
2537
2537
|
}
|
|
2538
2538
|
}, Ic = (e, t) => {
|
|
2539
|
-
process.env.NODE_ENV !== "production" && !ds(e.vnode) &&
|
|
2539
|
+
process.env.NODE_ENV !== "production" && !ds(e.vnode) && H(
|
|
2540
2540
|
"Non-function value encountered for default slot. Prefer function slots for better performance."
|
|
2541
2541
|
);
|
|
2542
2542
|
const n = gs(t);
|
|
@@ -2605,24 +2605,24 @@ function ml(e, t) {
|
|
|
2605
2605
|
parentNode: d,
|
|
2606
2606
|
nextSibling: h,
|
|
2607
2607
|
setScopeId: O = Fe,
|
|
2608
|
-
insertStaticContent:
|
|
2609
|
-
} = e,
|
|
2608
|
+
insertStaticContent: $
|
|
2609
|
+
} = e, j = (f, g, y, C = null, R = null, _ = null, P = void 0, b = null, A = process.env.NODE_ENV !== "production" && Nt ? !1 : !!g.dynamicChildren) => {
|
|
2610
2610
|
if (f === g)
|
|
2611
2611
|
return;
|
|
2612
2612
|
f && !Gn(f, g) && (C = de(f), Pe(f, R, _, !0), f = null), g.patchFlag === -2 && (A = !1, g.dynamicChildren = null);
|
|
2613
|
-
const { type: T, ref:
|
|
2613
|
+
const { type: T, ref: G, shapeFlag: M } = g;
|
|
2614
2614
|
switch (T) {
|
|
2615
2615
|
case dr:
|
|
2616
|
-
|
|
2616
|
+
B(f, g, y, C);
|
|
2617
2617
|
break;
|
|
2618
2618
|
case ut:
|
|
2619
|
-
|
|
2619
|
+
J(f, g, y, C);
|
|
2620
2620
|
break;
|
|
2621
2621
|
case Tr:
|
|
2622
|
-
f == null ?
|
|
2622
|
+
f == null ? te(g, y, C, P) : process.env.NODE_ENV !== "production" && U(f, g, y, P);
|
|
2623
2623
|
break;
|
|
2624
2624
|
case wt:
|
|
2625
|
-
|
|
2625
|
+
se(
|
|
2626
2626
|
f,
|
|
2627
2627
|
g,
|
|
2628
2628
|
y,
|
|
@@ -2635,7 +2635,7 @@ function ml(e, t) {
|
|
|
2635
2635
|
);
|
|
2636
2636
|
break;
|
|
2637
2637
|
default:
|
|
2638
|
-
M & 1 ?
|
|
2638
|
+
M & 1 ? ne(
|
|
2639
2639
|
f,
|
|
2640
2640
|
g,
|
|
2641
2641
|
y,
|
|
@@ -2665,11 +2665,11 @@ function ml(e, t) {
|
|
|
2665
2665
|
P,
|
|
2666
2666
|
b,
|
|
2667
2667
|
A,
|
|
2668
|
-
|
|
2669
|
-
) : process.env.NODE_ENV !== "production" &&
|
|
2668
|
+
W
|
|
2669
|
+
) : process.env.NODE_ENV !== "production" && H("Invalid VNode type:", T, `(${typeof T})`);
|
|
2670
2670
|
}
|
|
2671
|
-
|
|
2672
|
-
},
|
|
2671
|
+
G != null && R && Wr(G, f && f.ref, _, g || f, !g);
|
|
2672
|
+
}, B = (f, g, y, C) => {
|
|
2673
2673
|
if (f == null)
|
|
2674
2674
|
r(
|
|
2675
2675
|
g.el = c(g.children),
|
|
@@ -2680,14 +2680,14 @@ 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
|
+
}, J = (f, g, y, C) => {
|
|
2684
2684
|
f == null ? r(
|
|
2685
2685
|
g.el = l(g.children || ""),
|
|
2686
2686
|
y,
|
|
2687
2687
|
C
|
|
2688
2688
|
) : g.el = f.el;
|
|
2689
|
-
},
|
|
2690
|
-
[f.el, f.anchor] =
|
|
2689
|
+
}, te = (f, g, y, C) => {
|
|
2690
|
+
[f.el, f.anchor] = $(
|
|
2691
2691
|
f.children,
|
|
2692
2692
|
g,
|
|
2693
2693
|
y,
|
|
@@ -2695,10 +2695,10 @@ function ml(e, t) {
|
|
|
2695
2695
|
f.el,
|
|
2696
2696
|
f.anchor
|
|
2697
2697
|
);
|
|
2698
|
-
},
|
|
2698
|
+
}, U = (f, g, y, C) => {
|
|
2699
2699
|
if (g.children !== f.children) {
|
|
2700
2700
|
const R = h(f.anchor);
|
|
2701
|
-
L(f), [g.el, g.anchor] =
|
|
2701
|
+
L(f), [g.el, g.anchor] = $(
|
|
2702
2702
|
g.children,
|
|
2703
2703
|
y,
|
|
2704
2704
|
R,
|
|
@@ -2706,7 +2706,7 @@ function ml(e, t) {
|
|
|
2706
2706
|
);
|
|
2707
2707
|
} else
|
|
2708
2708
|
g.el = f.el, g.anchor = f.anchor;
|
|
2709
|
-
},
|
|
2709
|
+
}, re = ({ el: f, anchor: g }, y, C) => {
|
|
2710
2710
|
let R;
|
|
2711
2711
|
for (; f && f !== g; )
|
|
2712
2712
|
R = h(f), r(f, y, C), f = R;
|
|
@@ -2716,7 +2716,7 @@ function ml(e, t) {
|
|
|
2716
2716
|
for (; f && f !== g; )
|
|
2717
2717
|
y = h(f), s(f), f = y;
|
|
2718
2718
|
s(g);
|
|
2719
|
-
},
|
|
2719
|
+
}, ne = (f, g, y, C, R, _, P, b, A) => {
|
|
2720
2720
|
g.type === "svg" ? P = "svg" : g.type === "math" && (P = "mathml"), f == null ? le(
|
|
2721
2721
|
g,
|
|
2722
2722
|
y,
|
|
@@ -2726,7 +2726,7 @@ function ml(e, t) {
|
|
|
2726
2726
|
P,
|
|
2727
2727
|
b,
|
|
2728
2728
|
A
|
|
2729
|
-
) :
|
|
2729
|
+
) : k(
|
|
2730
2730
|
f,
|
|
2731
2731
|
g,
|
|
2732
2732
|
R,
|
|
@@ -2737,13 +2737,13 @@ function ml(e, t) {
|
|
|
2737
2737
|
);
|
|
2738
2738
|
}, le = (f, g, y, C, R, _, P, b) => {
|
|
2739
2739
|
let A, T;
|
|
2740
|
-
const { props:
|
|
2740
|
+
const { props: G, shapeFlag: M, transition: Q, dirs: oe } = f;
|
|
2741
2741
|
if (A = f.el = i(
|
|
2742
2742
|
f.type,
|
|
2743
2743
|
_,
|
|
2744
|
-
|
|
2745
|
-
|
|
2746
|
-
), M & 8 ? p(A, f.children) : M & 16 &&
|
|
2744
|
+
G && G.is,
|
|
2745
|
+
G
|
|
2746
|
+
), M & 8 ? p(A, f.children) : M & 16 && K(
|
|
2747
2747
|
f.children,
|
|
2748
2748
|
A,
|
|
2749
2749
|
null,
|
|
@@ -2752,15 +2752,15 @@ function ml(e, t) {
|
|
|
2752
2752
|
yo(f, _),
|
|
2753
2753
|
P,
|
|
2754
2754
|
b
|
|
2755
|
-
),
|
|
2756
|
-
for (const Te in
|
|
2757
|
-
Te !== "value" && !Jn(Te) && o(A, Te, null,
|
|
2758
|
-
"value" in
|
|
2755
|
+
), oe && nn(f, null, C, "created"), pe(A, f, f.scopeId, P, C), G) {
|
|
2756
|
+
for (const Te in G)
|
|
2757
|
+
Te !== "value" && !Jn(Te) && o(A, Te, null, G[Te], _, C);
|
|
2758
|
+
"value" in G && o(A, "value", null, G.value, _), (T = G.onVnodeBeforeMount) && yt(T, C, f);
|
|
2759
2759
|
}
|
|
2760
|
-
process.env.NODE_ENV !== "production" && ($r(A, "__vnode", f, !0), $r(A, "__vueParentComponent", C, !0)),
|
|
2760
|
+
process.env.NODE_ENV !== "production" && ($r(A, "__vnode", f, !0), $r(A, "__vueParentComponent", C, !0)), oe && nn(f, null, C, "beforeMount");
|
|
2761
2761
|
const Ee = vl(R, Q);
|
|
2762
|
-
Ee && Q.beforeEnter(A), r(A, g, y), ((T =
|
|
2763
|
-
T && yt(T, C, f), Ee && Q.enter(A),
|
|
2762
|
+
Ee && Q.beforeEnter(A), r(A, g, y), ((T = G && G.onVnodeMounted) || Ee || oe) && st(() => {
|
|
2763
|
+
T && yt(T, C, f), Ee && Q.enter(A), oe && nn(f, null, C, "mounted");
|
|
2764
2764
|
}, R);
|
|
2765
2765
|
}, pe = (f, g, y, C, R) => {
|
|
2766
2766
|
if (y && O(f, y), C)
|
|
@@ -2779,12 +2779,12 @@ function ml(e, t) {
|
|
|
2779
2779
|
);
|
|
2780
2780
|
}
|
|
2781
2781
|
}
|
|
2782
|
-
},
|
|
2782
|
+
}, K = (f, g, y, C, R, _, P, b, A = 0) => {
|
|
2783
2783
|
for (let T = A; T < f.length; T++) {
|
|
2784
|
-
const
|
|
2785
|
-
|
|
2784
|
+
const G = f[T] = b ? Jt(f[T]) : dt(f[T]);
|
|
2785
|
+
j(
|
|
2786
2786
|
null,
|
|
2787
|
-
|
|
2787
|
+
G,
|
|
2788
2788
|
g,
|
|
2789
2789
|
y,
|
|
2790
2790
|
C,
|
|
@@ -2794,14 +2794,14 @@ function ml(e, t) {
|
|
|
2794
2794
|
b
|
|
2795
2795
|
);
|
|
2796
2796
|
}
|
|
2797
|
-
},
|
|
2797
|
+
}, k = (f, g, y, C, R, _, P) => {
|
|
2798
2798
|
const b = g.el = f.el;
|
|
2799
2799
|
process.env.NODE_ENV !== "production" && (b.__vnode = g);
|
|
2800
|
-
let { patchFlag: A, dynamicChildren: T, dirs:
|
|
2800
|
+
let { patchFlag: A, dynamicChildren: T, dirs: G } = g;
|
|
2801
2801
|
A |= f.patchFlag & 16;
|
|
2802
2802
|
const M = f.props || Ne, Q = g.props || Ne;
|
|
2803
|
-
let
|
|
2804
|
-
if (y && rn(y, !1), (
|
|
2803
|
+
let oe;
|
|
2804
|
+
if (y && rn(y, !1), (oe = Q.onVnodeBeforeUpdate) && yt(oe, y, g, f), G && nn(g, f, y, "beforeUpdate"), y && rn(y, !0), process.env.NODE_ENV !== "production" && Nt && (A = 0, P = !1, T = null), (M.innerHTML && Q.innerHTML == null || M.textContent && Q.textContent == null) && p(b, ""), T ? (F(
|
|
2805
2805
|
f.dynamicChildren,
|
|
2806
2806
|
T,
|
|
2807
2807
|
b,
|
|
@@ -2831,12 +2831,12 @@ function ml(e, t) {
|
|
|
2831
2831
|
}
|
|
2832
2832
|
A & 1 && f.children !== g.children && p(b, g.children);
|
|
2833
2833
|
} else !P && T == null && N(b, M, Q, y, R);
|
|
2834
|
-
((
|
|
2835
|
-
|
|
2834
|
+
((oe = Q.onVnodeUpdated) || G) && st(() => {
|
|
2835
|
+
oe && yt(oe, y, g, f), G && nn(g, f, y, "updated");
|
|
2836
2836
|
}, C);
|
|
2837
|
-
},
|
|
2837
|
+
}, F = (f, g, y, C, R, _, P) => {
|
|
2838
2838
|
for (let b = 0; b < g.length; b++) {
|
|
2839
|
-
const A = f[b], T = g[b],
|
|
2839
|
+
const A = f[b], T = g[b], G = (
|
|
2840
2840
|
// oldVNode may be an errored async setup() component inside Suspense
|
|
2841
2841
|
// which will not have a mounted element
|
|
2842
2842
|
A.el && // - In the case of a Fragment, we need to provide the actual parent
|
|
@@ -2850,10 +2850,10 @@ function ml(e, t) {
|
|
|
2850
2850
|
y
|
|
2851
2851
|
)
|
|
2852
2852
|
);
|
|
2853
|
-
|
|
2853
|
+
j(
|
|
2854
2854
|
A,
|
|
2855
2855
|
T,
|
|
2856
|
-
|
|
2856
|
+
G,
|
|
2857
2857
|
null,
|
|
2858
2858
|
C,
|
|
2859
2859
|
R,
|
|
@@ -2881,18 +2881,18 @@ function ml(e, t) {
|
|
|
2881
2881
|
}
|
|
2882
2882
|
"value" in y && o(f, "value", g.value, y.value, R);
|
|
2883
2883
|
}
|
|
2884
|
-
},
|
|
2885
|
-
const T = g.el = f ? f.el : c(""),
|
|
2886
|
-
let { patchFlag: M, dynamicChildren: Q, slotScopeIds:
|
|
2884
|
+
}, se = (f, g, y, C, R, _, P, b, A) => {
|
|
2885
|
+
const T = g.el = f ? f.el : c(""), G = g.anchor = f ? f.anchor : c("");
|
|
2886
|
+
let { patchFlag: M, dynamicChildren: Q, slotScopeIds: oe } = g;
|
|
2887
2887
|
process.env.NODE_ENV !== "production" && // #5523 dev root fragment may inherit directives
|
|
2888
|
-
(Nt || M & 2048) && (M = 0, A = !1, Q = null),
|
|
2888
|
+
(Nt || M & 2048) && (M = 0, A = !1, Q = null), oe && (b = b ? b.concat(oe) : oe), f == null ? (r(T, y, C), r(G, y, C), K(
|
|
2889
2889
|
// #10007
|
|
2890
2890
|
// such fragment like `<></>` will be compiled into
|
|
2891
2891
|
// a fragment which doesn't have a children.
|
|
2892
2892
|
// In this case fallback to an empty array
|
|
2893
2893
|
g.children || [],
|
|
2894
2894
|
y,
|
|
2895
|
-
|
|
2895
|
+
G,
|
|
2896
2896
|
R,
|
|
2897
2897
|
_,
|
|
2898
2898
|
P,
|
|
@@ -2900,7 +2900,7 @@ function ml(e, t) {
|
|
|
2900
2900
|
A
|
|
2901
2901
|
)) : M > 0 && M & 64 && Q && // #2715 the previous fragment could've been a BAILed one as a result
|
|
2902
2902
|
// of renderSlot() with no valid children
|
|
2903
|
-
f.dynamicChildren ? (
|
|
2903
|
+
f.dynamicChildren ? (F(
|
|
2904
2904
|
f.dynamicChildren,
|
|
2905
2905
|
Q,
|
|
2906
2906
|
y,
|
|
@@ -2923,7 +2923,7 @@ function ml(e, t) {
|
|
|
2923
2923
|
f,
|
|
2924
2924
|
g,
|
|
2925
2925
|
y,
|
|
2926
|
-
|
|
2926
|
+
G,
|
|
2927
2927
|
R,
|
|
2928
2928
|
_,
|
|
2929
2929
|
P,
|
|
@@ -2952,10 +2952,10 @@ function ml(e, t) {
|
|
|
2952
2952
|
C,
|
|
2953
2953
|
R
|
|
2954
2954
|
);
|
|
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 =
|
|
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
2956
|
if (process.env.NODE_ENV !== "production" && Nt && (f.el = null), R && R.registerDep(b, z, P), !f.el) {
|
|
2957
2957
|
const A = b.subTree = at(ut);
|
|
2958
|
-
|
|
2958
|
+
J(null, A, g, y);
|
|
2959
2959
|
}
|
|
2960
2960
|
} else
|
|
2961
2961
|
z(
|
|
@@ -2972,7 +2972,7 @@ function ml(e, t) {
|
|
|
2972
2972
|
const C = g.component = f.component;
|
|
2973
2973
|
if (Nl(f, g, y))
|
|
2974
2974
|
if (C.asyncDep && !C.asyncResolved) {
|
|
2975
|
-
process.env.NODE_ENV !== "production" && wr(g),
|
|
2975
|
+
process.env.NODE_ENV !== "production" && wr(g), ie(C, g, y), process.env.NODE_ENV !== "production" && Or();
|
|
2976
2976
|
return;
|
|
2977
2977
|
} else
|
|
2978
2978
|
C.next = g, C.update();
|
|
@@ -2981,22 +2981,22 @@ function ml(e, t) {
|
|
|
2981
2981
|
}, z = (f, g, y, C, R, _, P) => {
|
|
2982
2982
|
const b = () => {
|
|
2983
2983
|
if (f.isMounted) {
|
|
2984
|
-
let { next: M, bu: Q, u:
|
|
2984
|
+
let { next: M, bu: Q, u: oe, parent: Ee, vnode: Te } = f;
|
|
2985
2985
|
{
|
|
2986
2986
|
const tt = $c(f);
|
|
2987
2987
|
if (tt) {
|
|
2988
|
-
M && (M.el = Te.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 = Te.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) && yt(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;
|
|
2999
|
-
f.subTree = Ge, process.env.NODE_ENV !== "production" && _n(f, "patch"),
|
|
2999
|
+
f.subTree = Ge, process.env.NODE_ENV !== "production" && _n(f, "patch"), j(
|
|
3000
3000
|
ot,
|
|
3001
3001
|
Ge,
|
|
3002
3002
|
// parent may have changed if it's in a teleport
|
|
@@ -3006,18 +3006,18 @@ function ml(e, t) {
|
|
|
3006
3006
|
f,
|
|
3007
3007
|
R,
|
|
3008
3008
|
_
|
|
3009
|
-
), process.env.NODE_ENV !== "production" && bn(f, "patch"), M.el = Ge.el, Se === null && Tl(f, Ge.el),
|
|
3009
|
+
), process.env.NODE_ENV !== "production" && bn(f, "patch"), M.el = Ge.el, Se === null && Tl(f, Ge.el), oe && st(oe, R), (Ye = M.props && M.props.onVnodeUpdated) && st(
|
|
3010
3010
|
() => yt(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:
|
|
3016
|
-
rn(f, !1), Ee && Fn(Ee), !ot && (M =
|
|
3015
|
+
const { el: Q, props: oe } = g, { bm: Ee, m: Te, parent: Se, root: Ye, type: Ge } = f, ot = Qn(g);
|
|
3016
|
+
rn(f, !1), Ee && Fn(Ee), !ot && (M = oe && oe.onVnodeBeforeMount) && yt(M, Se, g), rn(f, !0);
|
|
3017
3017
|
{
|
|
3018
3018
|
Ye.ce && Ye.ce._injectChildStyle(Ge), process.env.NODE_ENV !== "production" && _n(f, "render");
|
|
3019
3019
|
const tt = f.subTree = Bs(f);
|
|
3020
|
-
process.env.NODE_ENV !== "production" && bn(f, "render"), process.env.NODE_ENV !== "production" && _n(f, "patch"),
|
|
3020
|
+
process.env.NODE_ENV !== "production" && bn(f, "render"), process.env.NODE_ENV !== "production" && _n(f, "patch"), j(
|
|
3021
3021
|
null,
|
|
3022
3022
|
tt,
|
|
3023
3023
|
y,
|
|
@@ -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 (Te && st(Te, R), !ot && (M =
|
|
3030
|
+
if (Te && st(Te, R), !ot && (M = oe && oe.onVnodeMounted)) {
|
|
3031
3031
|
const tt = g;
|
|
3032
3032
|
st(
|
|
3033
3033
|
() => yt(M, Se, tt),
|
|
@@ -3040,14 +3040,14 @@ function ml(e, t) {
|
|
|
3040
3040
|
f.scope.on();
|
|
3041
3041
|
const A = f.effect = new Bi(b);
|
|
3042
3042
|
f.scope.off();
|
|
3043
|
-
const T = f.update = A.run.bind(A),
|
|
3044
|
-
|
|
3045
|
-
},
|
|
3043
|
+
const T = f.update = A.run.bind(A), G = f.job = A.runIfDirty.bind(A);
|
|
3044
|
+
G.i = f, G.id = f.uid, A.scheduler = () => Xr(G), rn(f, !0), process.env.NODE_ENV !== "production" && (A.onTrack = f.rtc ? (M) => Fn(f.rtc, M) : void 0, A.onTrigger = f.rtg ? (M) => Fn(f.rtg, M) : void 0), T();
|
|
3045
|
+
}, ie = (f, g, y) => {
|
|
3046
3046
|
g.component = f;
|
|
3047
3047
|
const C = f.vnode.props;
|
|
3048
3048
|
f.vnode = g, f.next = null, rl(f, g.props, C, y), dl(f, g.children, y), Bt(), Ps(f), Ut();
|
|
3049
3049
|
}, ye = (f, g, y, C, R, _, P, b, A = !1) => {
|
|
3050
|
-
const T = f && f.children,
|
|
3050
|
+
const T = f && f.children, G = f ? f.shapeFlag : 0, M = g.children, { patchFlag: Q, shapeFlag: oe } = g;
|
|
3051
3051
|
if (Q > 0) {
|
|
3052
3052
|
if (Q & 128) {
|
|
3053
3053
|
Oe(
|
|
@@ -3077,7 +3077,7 @@ function ml(e, t) {
|
|
|
3077
3077
|
return;
|
|
3078
3078
|
}
|
|
3079
3079
|
}
|
|
3080
|
-
|
|
3080
|
+
oe & 8 ? (G & 16 && Z(T, R, _), M !== T && p(y, M)) : G & 16 ? oe & 16 ? Oe(
|
|
3081
3081
|
T,
|
|
3082
3082
|
M,
|
|
3083
3083
|
y,
|
|
@@ -3087,7 +3087,7 @@ function ml(e, t) {
|
|
|
3087
3087
|
P,
|
|
3088
3088
|
b,
|
|
3089
3089
|
A
|
|
3090
|
-
) : Z(T, R, _, !0) : (
|
|
3090
|
+
) : Z(T, R, _, !0) : (G & 8 && p(y, ""), oe & 16 && K(
|
|
3091
3091
|
M,
|
|
3092
3092
|
y,
|
|
3093
3093
|
C,
|
|
@@ -3099,13 +3099,13 @@ function ml(e, t) {
|
|
|
3099
3099
|
));
|
|
3100
3100
|
}, D = (f, g, y, C, R, _, P, b, A) => {
|
|
3101
3101
|
f = f || On, g = g || On;
|
|
3102
|
-
const T = f.length,
|
|
3102
|
+
const T = f.length, G = g.length, M = Math.min(T, G);
|
|
3103
3103
|
let Q;
|
|
3104
3104
|
for (Q = 0; Q < M; Q++) {
|
|
3105
|
-
const
|
|
3106
|
-
|
|
3105
|
+
const oe = g[Q] = A ? Jt(g[Q]) : dt(g[Q]);
|
|
3106
|
+
j(
|
|
3107
3107
|
f[Q],
|
|
3108
|
-
|
|
3108
|
+
oe,
|
|
3109
3109
|
y,
|
|
3110
3110
|
null,
|
|
3111
3111
|
R,
|
|
@@ -3115,14 +3115,14 @@ function ml(e, t) {
|
|
|
3115
3115
|
A
|
|
3116
3116
|
);
|
|
3117
3117
|
}
|
|
3118
|
-
T >
|
|
3118
|
+
T > G ? Z(
|
|
3119
3119
|
f,
|
|
3120
3120
|
R,
|
|
3121
3121
|
_,
|
|
3122
3122
|
!0,
|
|
3123
3123
|
!1,
|
|
3124
3124
|
M
|
|
3125
|
-
) :
|
|
3125
|
+
) : K(
|
|
3126
3126
|
g,
|
|
3127
3127
|
y,
|
|
3128
3128
|
C,
|
|
@@ -3135,13 +3135,13 @@ function ml(e, t) {
|
|
|
3135
3135
|
);
|
|
3136
3136
|
}, Oe = (f, g, y, C, R, _, P, b, A) => {
|
|
3137
3137
|
let T = 0;
|
|
3138
|
-
const
|
|
3139
|
-
let M = f.length - 1, Q =
|
|
3138
|
+
const G = g.length;
|
|
3139
|
+
let M = f.length - 1, Q = G - 1;
|
|
3140
3140
|
for (; T <= M && T <= Q; ) {
|
|
3141
|
-
const
|
|
3142
|
-
if (Gn(
|
|
3143
|
-
|
|
3144
|
-
|
|
3141
|
+
const oe = f[T], Ee = g[T] = A ? Jt(g[T]) : dt(g[T]);
|
|
3142
|
+
if (Gn(oe, Ee))
|
|
3143
|
+
j(
|
|
3144
|
+
oe,
|
|
3145
3145
|
Ee,
|
|
3146
3146
|
y,
|
|
3147
3147
|
null,
|
|
@@ -3156,10 +3156,10 @@ function ml(e, t) {
|
|
|
3156
3156
|
T++;
|
|
3157
3157
|
}
|
|
3158
3158
|
for (; T <= M && T <= Q; ) {
|
|
3159
|
-
const
|
|
3160
|
-
if (Gn(
|
|
3161
|
-
|
|
3162
|
-
|
|
3159
|
+
const oe = f[M], Ee = g[Q] = A ? Jt(g[Q]) : dt(g[Q]);
|
|
3160
|
+
if (Gn(oe, Ee))
|
|
3161
|
+
j(
|
|
3162
|
+
oe,
|
|
3163
3163
|
Ee,
|
|
3164
3164
|
y,
|
|
3165
3165
|
null,
|
|
@@ -3175,9 +3175,9 @@ function ml(e, t) {
|
|
|
3175
3175
|
}
|
|
3176
3176
|
if (T > M) {
|
|
3177
3177
|
if (T <= Q) {
|
|
3178
|
-
const
|
|
3178
|
+
const oe = Q + 1, Ee = oe < G ? g[oe].el : C;
|
|
3179
3179
|
for (; T <= Q; )
|
|
3180
|
-
|
|
3180
|
+
j(
|
|
3181
3181
|
null,
|
|
3182
3182
|
g[T] = A ? Jt(g[T]) : dt(g[T]),
|
|
3183
3183
|
y,
|
|
@@ -3193,10 +3193,10 @@ function ml(e, t) {
|
|
|
3193
3193
|
for (; T <= M; )
|
|
3194
3194
|
Pe(f[T], R, _, !0), T++;
|
|
3195
3195
|
else {
|
|
3196
|
-
const
|
|
3196
|
+
const oe = 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" && Te.has(Be.key) &&
|
|
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."
|
|
@@ -3207,7 +3207,7 @@ function ml(e, t) {
|
|
|
3207
3207
|
let ot = !1, tt = 0;
|
|
3208
3208
|
const lt = new Array(Ge);
|
|
3209
3209
|
for (T = 0; T < Ge; T++) lt[T] = 0;
|
|
3210
|
-
for (T =
|
|
3210
|
+
for (T = oe; T <= M; T++) {
|
|
3211
3211
|
const Be = f[T];
|
|
3212
3212
|
if (Ye >= Ge) {
|
|
3213
3213
|
Pe(Be, R, _, !0);
|
|
@@ -3222,7 +3222,7 @@ function ml(e, t) {
|
|
|
3222
3222
|
ft = Se;
|
|
3223
3223
|
break;
|
|
3224
3224
|
}
|
|
3225
|
-
ft === void 0 ? Pe(Be, R, _, !0) : (lt[ft - Ee] = T + 1, ft >= tt ? tt = ft : ot = !0,
|
|
3225
|
+
ft === void 0 ? Pe(Be, R, _, !0) : (lt[ft - Ee] = T + 1, ft >= tt ? tt = ft : ot = !0, j(
|
|
3226
3226
|
Be,
|
|
3227
3227
|
g[ft],
|
|
3228
3228
|
y,
|
|
@@ -3236,8 +3236,8 @@ function ml(e, t) {
|
|
|
3236
3236
|
}
|
|
3237
3237
|
const Vn = ot ? El(lt) : On;
|
|
3238
3238
|
for (Se = Vn.length - 1, T = Ge - 1; T >= 0; T--) {
|
|
3239
|
-
const Be = Ee + T, ft = g[Be], tn = Be + 1 <
|
|
3240
|
-
lt[T] === 0 ?
|
|
3239
|
+
const Be = Ee + T, ft = g[Be], tn = Be + 1 < G ? g[Be + 1].el : C;
|
|
3240
|
+
lt[T] === 0 ? j(
|
|
3241
3241
|
null,
|
|
3242
3242
|
ft,
|
|
3243
3243
|
y,
|
|
@@ -3261,7 +3261,7 @@ function ml(e, t) {
|
|
|
3261
3261
|
return;
|
|
3262
3262
|
}
|
|
3263
3263
|
if (T & 64) {
|
|
3264
|
-
P.move(f, g, y,
|
|
3264
|
+
P.move(f, g, y, W);
|
|
3265
3265
|
return;
|
|
3266
3266
|
}
|
|
3267
3267
|
if (P === wt) {
|
|
@@ -3272,16 +3272,16 @@ function ml(e, t) {
|
|
|
3272
3272
|
return;
|
|
3273
3273
|
}
|
|
3274
3274
|
if (P === Tr) {
|
|
3275
|
-
|
|
3275
|
+
re(f, g, y);
|
|
3276
3276
|
return;
|
|
3277
3277
|
}
|
|
3278
3278
|
if (C !== 2 && T & 1 && b)
|
|
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:
|
|
3282
|
+
const { leave: M, delayLeave: Q, afterLeave: oe } = b, Ee = () => r(_, g, y), Te = () => {
|
|
3283
3283
|
M(_, () => {
|
|
3284
|
-
Ee(),
|
|
3284
|
+
Ee(), oe && oe();
|
|
3285
3285
|
});
|
|
3286
3286
|
};
|
|
3287
3287
|
Q ? Q(_, Ee, Te) : Te();
|
|
@@ -3295,29 +3295,29 @@ function ml(e, t) {
|
|
|
3295
3295
|
ref: b,
|
|
3296
3296
|
children: A,
|
|
3297
3297
|
dynamicChildren: T,
|
|
3298
|
-
shapeFlag:
|
|
3298
|
+
shapeFlag: G,
|
|
3299
3299
|
patchFlag: M,
|
|
3300
3300
|
dirs: Q,
|
|
3301
|
-
cacheIndex:
|
|
3301
|
+
cacheIndex: oe
|
|
3302
3302
|
} = f;
|
|
3303
|
-
if (M === -2 && (R = !1), b != null && Wr(b, null, y, f, !0),
|
|
3303
|
+
if (M === -2 && (R = !1), b != null && Wr(b, null, y, f, !0), oe != null && (g.renderCache[oe] = void 0), G & 256) {
|
|
3304
3304
|
g.ctx.deactivate(f);
|
|
3305
3305
|
return;
|
|
3306
3306
|
}
|
|
3307
|
-
const Ee =
|
|
3307
|
+
const Ee = G & 1 && Q, Te = !Qn(f);
|
|
3308
3308
|
let Se;
|
|
3309
|
-
if (Te && (Se = P && P.onVnodeBeforeUnmount) && yt(Se, g, f),
|
|
3309
|
+
if (Te && (Se = P && P.onVnodeBeforeUnmount) && yt(Se, g, f), G & 6)
|
|
3310
3310
|
ke(f.component, y, C);
|
|
3311
3311
|
else {
|
|
3312
|
-
if (
|
|
3312
|
+
if (G & 128) {
|
|
3313
3313
|
f.suspense.unmount(y, C);
|
|
3314
3314
|
return;
|
|
3315
3315
|
}
|
|
3316
|
-
Ee && nn(f, null, g, "beforeUnmount"),
|
|
3316
|
+
Ee && nn(f, null, g, "beforeUnmount"), G & 64 ? f.type.remove(
|
|
3317
3317
|
f,
|
|
3318
3318
|
g,
|
|
3319
3319
|
y,
|
|
3320
|
-
|
|
3320
|
+
W,
|
|
3321
3321
|
C
|
|
3322
3322
|
) : T && // #5154
|
|
3323
3323
|
// when v-once is used inside a block, setBlockTracking(-1) marks the
|
|
@@ -3331,7 +3331,7 @@ function ml(e, t) {
|
|
|
3331
3331
|
y,
|
|
3332
3332
|
!1,
|
|
3333
3333
|
!0
|
|
3334
|
-
) : (_ === wt && M & 384 || !R &&
|
|
3334
|
+
) : (_ === wt && 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 && yt(Se, g, f), Ee && nn(f, null, g, "unmounted");
|
|
@@ -3380,7 +3380,7 @@ function ml(e, t) {
|
|
|
3380
3380
|
};
|
|
3381
3381
|
let $e = !1;
|
|
3382
3382
|
const _e = (f, g, y) => {
|
|
3383
|
-
f == null ? g._vnode && Pe(g._vnode, null, null, !0) :
|
|
3383
|
+
f == null ? g._vnode && Pe(g._vnode, null, null, !0) : j(
|
|
3384
3384
|
g._vnode || null,
|
|
3385
3385
|
f,
|
|
3386
3386
|
g,
|
|
@@ -3389,15 +3389,15 @@ function ml(e, t) {
|
|
|
3389
3389
|
null,
|
|
3390
3390
|
y
|
|
3391
3391
|
), g._vnode = f, $e || ($e = !0, Ps(), lc(), $e = !1);
|
|
3392
|
-
},
|
|
3393
|
-
p:
|
|
3392
|
+
}, W = {
|
|
3393
|
+
p: j,
|
|
3394
3394
|
um: Pe,
|
|
3395
3395
|
m: Re,
|
|
3396
3396
|
r: S,
|
|
3397
3397
|
mt: we,
|
|
3398
|
-
mc:
|
|
3398
|
+
mc: K,
|
|
3399
3399
|
pc: ye,
|
|
3400
|
-
pbc:
|
|
3400
|
+
pbc: F,
|
|
3401
3401
|
n: de,
|
|
3402
3402
|
o: e
|
|
3403
3403
|
};
|
|
@@ -3458,27 +3458,27 @@ function Fs(e) {
|
|
|
3458
3458
|
const yl = Symbol.for("v-scx"), _l = () => {
|
|
3459
3459
|
{
|
|
3460
3460
|
const e = Ar(yl);
|
|
3461
|
-
return e || process.env.NODE_ENV !== "production" &&
|
|
3461
|
+
return e || process.env.NODE_ENV !== "production" && H(
|
|
3462
3462
|
"Server rendering context not provided. Make sure to only call useSSRContext() conditionally in the server build."
|
|
3463
3463
|
), e;
|
|
3464
3464
|
}
|
|
3465
3465
|
};
|
|
3466
3466
|
function St(e, t, n) {
|
|
3467
|
-
return process.env.NODE_ENV !== "production" && !ue(t) &&
|
|
3467
|
+
return process.env.NODE_ENV !== "production" && !ue(t) && H(
|
|
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
3471
|
function Mc(e, t, n = Ne) {
|
|
3472
3472
|
const { immediate: r, deep: s, flush: o, once: i } = n;
|
|
3473
|
-
process.env.NODE_ENV !== "production" && !t && (r !== void 0 &&
|
|
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.'
|
|
3475
|
-
), s !== void 0 &&
|
|
3475
|
+
), s !== void 0 && H(
|
|
3476
3476
|
'watch() "deep" option is only respected when using the watch(source, callback, options?) signature.'
|
|
3477
|
-
), i !== void 0 &&
|
|
3477
|
+
), i !== void 0 && H(
|
|
3478
3478
|
'watch() "once" option is only respected when using the watch(source, callback, options?) signature.'
|
|
3479
3479
|
));
|
|
3480
3480
|
const c = je({}, n);
|
|
3481
|
-
process.env.NODE_ENV !== "production" && (c.onWarn =
|
|
3481
|
+
process.env.NODE_ENV !== "production" && (c.onWarn = H);
|
|
3482
3482
|
const l = t && r || !t && o !== "post";
|
|
3483
3483
|
let E;
|
|
3484
3484
|
if (ir) {
|
|
@@ -3492,12 +3492,12 @@ function Mc(e, t, n = Ne) {
|
|
|
3492
3492
|
}
|
|
3493
3493
|
}
|
|
3494
3494
|
const p = Ue;
|
|
3495
|
-
c.call = (O,
|
|
3495
|
+
c.call = (O, $, j) => xt(O, p, $, j);
|
|
3496
3496
|
let d = !1;
|
|
3497
3497
|
o === "post" ? c.scheduler = (O) => {
|
|
3498
3498
|
st(O, p && p.suspense);
|
|
3499
|
-
} : o !== "sync" && (d = !0, c.scheduler = (O,
|
|
3500
|
-
|
|
3499
|
+
} : o !== "sync" && (d = !0, c.scheduler = (O, $) => {
|
|
3500
|
+
$ ? O() : Xr(O);
|
|
3501
3501
|
}), c.augmentJob = (O) => {
|
|
3502
3502
|
t && (O.flags |= 4), d && (O.flags |= 2, p && (O.id = p.uid, O.i = p));
|
|
3503
3503
|
};
|
|
@@ -3531,12 +3531,12 @@ function Ol(e, t, ...n) {
|
|
|
3531
3531
|
} = e;
|
|
3532
3532
|
if (p)
|
|
3533
3533
|
if (!(t in p))
|
|
3534
|
-
(!d || !(cn(gt(t)) in d)) &&
|
|
3534
|
+
(!d || !(cn(gt(t)) in d)) && H(
|
|
3535
3535
|
`Component emitted event "${t}" but it is neither declared in the emits option nor as an "${cn(gt(t))}" prop.`
|
|
3536
3536
|
);
|
|
3537
3537
|
else {
|
|
3538
3538
|
const h = p[t];
|
|
3539
|
-
ue(h) && (h(...n) ||
|
|
3539
|
+
ue(h) && (h(...n) || H(
|
|
3540
3540
|
`Invalid event arguments: event validation failed for event "${t}".`
|
|
3541
3541
|
));
|
|
3542
3542
|
}
|
|
@@ -3545,7 +3545,7 @@ function Ol(e, t, ...n) {
|
|
|
3545
3545
|
const o = t.startsWith("update:"), i = o && wl(r, t.slice(7));
|
|
3546
3546
|
if (i && (i.trim && (s = n.map((p) => He(p) ? p.trim() : p)), i.number && (s = n.map(Sa))), process.env.NODE_ENV !== "production" && Au(e, t, s), process.env.NODE_ENV !== "production") {
|
|
3547
3547
|
const p = t.toLowerCase();
|
|
3548
|
-
p !== t && r[cn(p)] &&
|
|
3548
|
+
p !== t && r[cn(p)] && H(
|
|
3549
3549
|
`Event "${p}" is emitted in component ${to(
|
|
3550
3550
|
e,
|
|
3551
3551
|
e.type
|
|
@@ -3613,36 +3613,36 @@ function Bs(e) {
|
|
|
3613
3613
|
props: d,
|
|
3614
3614
|
data: h,
|
|
3615
3615
|
setupState: O,
|
|
3616
|
-
ctx:
|
|
3617
|
-
inheritAttrs:
|
|
3618
|
-
} = e,
|
|
3619
|
-
let
|
|
3616
|
+
ctx: $,
|
|
3617
|
+
inheritAttrs: j
|
|
3618
|
+
} = e, B = Hr(e);
|
|
3619
|
+
let J, te;
|
|
3620
3620
|
process.env.NODE_ENV !== "production" && (Uo = !1);
|
|
3621
3621
|
try {
|
|
3622
3622
|
if (n.shapeFlag & 4) {
|
|
3623
|
-
const L = s || r,
|
|
3624
|
-
get(le, pe,
|
|
3625
|
-
return
|
|
3623
|
+
const L = s || r, ne = process.env.NODE_ENV !== "production" && O.__isScriptSetup ? new Proxy(L, {
|
|
3624
|
+
get(le, pe, K) {
|
|
3625
|
+
return H(
|
|
3626
3626
|
`Property '${String(
|
|
3627
3627
|
pe
|
|
3628
3628
|
)}' was accessed via 'this'. Avoid using 'this' in templates.`
|
|
3629
|
-
), Reflect.get(le, pe,
|
|
3629
|
+
), Reflect.get(le, pe, K);
|
|
3630
3630
|
}
|
|
3631
3631
|
}) : L;
|
|
3632
|
-
|
|
3632
|
+
J = dt(
|
|
3633
3633
|
E.call(
|
|
3634
|
-
|
|
3634
|
+
ne,
|
|
3635
3635
|
L,
|
|
3636
3636
|
p,
|
|
3637
3637
|
process.env.NODE_ENV !== "production" ? At(d) : d,
|
|
3638
3638
|
O,
|
|
3639
3639
|
h,
|
|
3640
|
-
|
|
3640
|
+
$
|
|
3641
3641
|
)
|
|
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(), J = dt(
|
|
3646
3646
|
L.length > 1 ? L(
|
|
3647
3647
|
process.env.NODE_ENV !== "production" ? At(d) : d,
|
|
3648
3648
|
process.env.NODE_ENV !== "production" ? {
|
|
@@ -3656,39 +3656,39 @@ function Bs(e) {
|
|
|
3656
3656
|
process.env.NODE_ENV !== "production" ? At(d) : d,
|
|
3657
3657
|
null
|
|
3658
3658
|
)
|
|
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), J = at(ut);
|
|
3663
3663
|
}
|
|
3664
|
-
let
|
|
3665
|
-
if (process.env.NODE_ENV !== "production" &&
|
|
3666
|
-
const L = Object.keys(
|
|
3664
|
+
let U = J, re;
|
|
3665
|
+
if (process.env.NODE_ENV !== "production" && J.patchFlag > 0 && J.patchFlag & 2048 && ([U, re] = jc(J)), te && j !== !1) {
|
|
3666
|
+
const L = Object.keys(te), { shapeFlag: ne } = U;
|
|
3667
3667
|
if (L.length) {
|
|
3668
|
-
if (
|
|
3669
|
-
o && L.some(Ir) && (
|
|
3670
|
-
|
|
3668
|
+
if (ne & 7)
|
|
3669
|
+
o && L.some(Ir) && (te = Al(
|
|
3670
|
+
te,
|
|
3671
3671
|
o
|
|
3672
|
-
)),
|
|
3673
|
-
else if (process.env.NODE_ENV !== "production" && !Uo &&
|
|
3674
|
-
const le = Object.keys(c), pe = [],
|
|
3675
|
-
for (let
|
|
3676
|
-
const N = le[
|
|
3677
|
-
ur(N) ? Ir(N) || pe.push(N[2].toLowerCase() + N.slice(3)) :
|
|
3672
|
+
)), U = en(U, te, !1, !0);
|
|
3673
|
+
else if (process.env.NODE_ENV !== "production" && !Uo && U.type !== ut) {
|
|
3674
|
+
const le = Object.keys(c), pe = [], K = [];
|
|
3675
|
+
for (let k = 0, F = le.length; k < F; k++) {
|
|
3676
|
+
const N = le[k];
|
|
3677
|
+
ur(N) ? Ir(N) || pe.push(N[2].toLowerCase() + N.slice(3)) : K.push(N);
|
|
3678
3678
|
}
|
|
3679
|
-
|
|
3680
|
-
`Extraneous non-props attributes (${
|
|
3681
|
-
), pe.length &&
|
|
3679
|
+
K.length && H(
|
|
3680
|
+
`Extraneous non-props attributes (${K.join(", ")}) were passed to component but could not be automatically inherited because component renders fragment or text or teleport root nodes.`
|
|
3681
|
+
), pe.length && H(
|
|
3682
3682
|
`Extraneous non-emits event listeners (${pe.join(", ")}) were passed to component but could not be automatically inherited because component renders fragment or text root nodes. If the listener is intended to be a component custom event listener only, declare it using the "emits" option.`
|
|
3683
3683
|
);
|
|
3684
3684
|
}
|
|
3685
3685
|
}
|
|
3686
3686
|
}
|
|
3687
|
-
return n.dirs && (process.env.NODE_ENV !== "production" && !Us(
|
|
3687
|
+
return n.dirs && (process.env.NODE_ENV !== "production" && !Us(U) && H(
|
|
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(
|
|
3691
|
+
), ps(U, n.transition)), process.env.NODE_ENV !== "production" && re ? re(U) : J = U, Hr(B), J;
|
|
3692
3692
|
}
|
|
3693
3693
|
const jc = (e) => {
|
|
3694
3694
|
const t = e.children, n = e.dynamicChildren, r = ms(t, !1);
|
|
@@ -3861,7 +3861,7 @@ function Lt(e, t = null, n = null, r = 0, s = null, o = e === wt ? 0 : 1, i = !1
|
|
|
3861
3861
|
appContext: null,
|
|
3862
3862
|
ctx: et
|
|
3863
3863
|
};
|
|
3864
|
-
return c ? (vs(l, n), o & 128 && e.normalize(l)) : n && (l.shapeFlag |= He(n) ? 8 : 16), process.env.NODE_ENV !== "production" && l.key !== l.key &&
|
|
3864
|
+
return c ? (vs(l, n), o & 128 && e.normalize(l)) : n && (l.shapeFlag |= He(n) ? 8 : 16), process.env.NODE_ENV !== "production" && l.key !== l.key && H("VNode created with invalid key (NaN). VNode type:", l.type), sr > 0 && // avoid a block node from tracking itself
|
|
3865
3865
|
!i && // has current parent block
|
|
3866
3866
|
ct && // presence of a patch flag indicates this node needs patching on updates.
|
|
3867
3867
|
// component nodes also should always be patched, because even if the
|
|
@@ -3873,7 +3873,7 @@ function Lt(e, t = null, n = null, r = 0, s = null, o = e === wt ? 0 : 1, i = !1
|
|
|
3873
3873
|
}
|
|
3874
3874
|
const at = process.env.NODE_ENV !== "production" ? Cl : Bc;
|
|
3875
3875
|
function Bc(e, t = null, n = null, r = 0, s = null, o = !1) {
|
|
3876
|
-
if ((!e || e === Bu) && (process.env.NODE_ENV !== "production" && !e &&
|
|
3876
|
+
if ((!e || e === Bu) && (process.env.NODE_ENV !== "production" && !e && H(`Invalid vnode type when creating vnode: ${e}.`), e = ut), Rn(e)) {
|
|
3877
3877
|
const c = en(
|
|
3878
3878
|
e,
|
|
3879
3879
|
t,
|
|
@@ -3888,7 +3888,7 @@ function Bc(e, t = null, n = null, r = 0, s = null, o = !1) {
|
|
|
3888
3888
|
c && !He(c) && (t.class = ts(c)), De(l) && (Mr(l) && !ce(l) && (l = je({}, l)), t.style = jt(l));
|
|
3889
3889
|
}
|
|
3890
3890
|
const i = He(e) ? 1 : Hc(e) ? 128 : Ru(e) ? 64 : De(e) ? 4 : ue(e) ? 2 : 0;
|
|
3891
|
-
return process.env.NODE_ENV !== "production" && i & 4 && Mr(e) && (e = me(e),
|
|
3891
|
+
return process.env.NODE_ENV !== "production" && i & 4 && Mr(e) && (e = me(e), H(
|
|
3892
3892
|
"Vue received a Component that was made a reactive object. This can lead to unnecessary performance overhead and should be avoided by marking the component with `markRaw` or using `shallowRef` instead of `ref`.",
|
|
3893
3893
|
`
|
|
3894
3894
|
Component that was made reactive: `,
|
|
@@ -4127,7 +4127,7 @@ const hr = (e) => {
|
|
|
4127
4127
|
Ue && Ue.scope.off(), Gr(null);
|
|
4128
4128
|
}, Hl = /* @__PURE__ */ Pn("slot,component");
|
|
4129
4129
|
function Ko(e, { isNativeTag: t }) {
|
|
4130
|
-
(Hl(e) || t(e)) &&
|
|
4130
|
+
(Hl(e) || t(e)) && H(
|
|
4131
4131
|
"Do not use built-in or reserved HTML elements as component id: " + e
|
|
4132
4132
|
);
|
|
4133
4133
|
}
|
|
@@ -4156,7 +4156,7 @@ function Fl(e, t) {
|
|
|
4156
4156
|
for (let i = 0; i < o.length; i++)
|
|
4157
4157
|
mc(o[i]);
|
|
4158
4158
|
}
|
|
4159
|
-
r.compilerOptions && Bl() &&
|
|
4159
|
+
r.compilerOptions && Bl() && H(
|
|
4160
4160
|
'"compilerOptions" is only supported when using a build of Vue that includes the runtime compiler. Since you are using a runtime-only build, the options should be passed via your build tool config instead.'
|
|
4161
4161
|
);
|
|
4162
4162
|
}
|
|
@@ -4182,7 +4182,7 @@ function Fl(e, t) {
|
|
|
4182
4182
|
});
|
|
4183
4183
|
if (e.asyncDep = c, process.env.NODE_ENV !== "production" && !e.suspense) {
|
|
4184
4184
|
const E = (n = r.name) != null ? n : "Anonymous";
|
|
4185
|
-
|
|
4185
|
+
H(
|
|
4186
4186
|
`Component <${E}>: setup function returned a promise, but no <Suspense> boundary was found in the parent component tree. A component with async setup() must be nested in a <Suspense> in order to be rendered.`
|
|
4187
4187
|
);
|
|
4188
4188
|
}
|
|
@@ -4192,9 +4192,9 @@ function Fl(e, t) {
|
|
|
4192
4192
|
Kc(e, t);
|
|
4193
4193
|
}
|
|
4194
4194
|
function Ys(e, t, n) {
|
|
4195
|
-
ue(t) ? e.type.__ssrInlineRender ? e.ssrRender = t : e.render = t : De(t) ? (process.env.NODE_ENV !== "production" && Rn(t) &&
|
|
4195
|
+
ue(t) ? e.type.__ssrInlineRender ? e.ssrRender = t : e.render = t : De(t) ? (process.env.NODE_ENV !== "production" && Rn(t) && H(
|
|
4196
4196
|
"setup() should not return VNodes directly - return a render function instead."
|
|
4197
|
-
), process.env.NODE_ENV !== "production" && (e.devtoolsRawSetupState = t), e.setupState = sc(t), process.env.NODE_ENV !== "production" && Ku(e)) : process.env.NODE_ENV !== "production" && t !== void 0 &&
|
|
4197
|
+
), process.env.NODE_ENV !== "production" && (e.devtoolsRawSetupState = t), e.setupState = sc(t), process.env.NODE_ENV !== "production" && Ku(e)) : process.env.NODE_ENV !== "production" && t !== void 0 && H(
|
|
4198
4198
|
`setup() should return an object. Received: ${t === null ? "null" : typeof t}`
|
|
4199
4199
|
), Kc(e, n);
|
|
4200
4200
|
}
|
|
@@ -4211,19 +4211,19 @@ function Kc(e, t, n) {
|
|
|
4211
4211
|
Ut(), s();
|
|
4212
4212
|
}
|
|
4213
4213
|
}
|
|
4214
|
-
process.env.NODE_ENV !== "production" && !r.render && e.render === Fe && !t && (r.template ?
|
|
4214
|
+
process.env.NODE_ENV !== "production" && !r.render && e.render === Fe && !t && (r.template ? H(
|
|
4215
4215
|
'Component provided template option but runtime compilation is not supported in this build of Vue. Configure your bundler to alias "vue" to "vue/dist/vue.esm-bundler.js".'
|
|
4216
|
-
) :
|
|
4216
|
+
) : H("Component is missing template or render function: ", r));
|
|
4217
4217
|
}
|
|
4218
4218
|
const qs = process.env.NODE_ENV !== "production" ? {
|
|
4219
4219
|
get(e, t) {
|
|
4220
4220
|
return Ur(), We(e, "get", ""), e[t];
|
|
4221
4221
|
},
|
|
4222
4222
|
set() {
|
|
4223
|
-
return
|
|
4223
|
+
return H("setupContext.attrs is readonly."), !1;
|
|
4224
4224
|
},
|
|
4225
4225
|
deleteProperty() {
|
|
4226
|
-
return
|
|
4226
|
+
return H("setupContext.attrs is readonly."), !1;
|
|
4227
4227
|
}
|
|
4228
4228
|
} : {
|
|
4229
4229
|
get(e, t) {
|
|
@@ -4239,9 +4239,9 @@ function Ul(e) {
|
|
|
4239
4239
|
}
|
|
4240
4240
|
function Gl(e) {
|
|
4241
4241
|
const t = (n) => {
|
|
4242
|
-
if (process.env.NODE_ENV !== "production" && (e.exposed &&
|
|
4242
|
+
if (process.env.NODE_ENV !== "production" && (e.exposed && H("expose() should be called only once per setup()."), n != null)) {
|
|
4243
4243
|
let r = typeof n;
|
|
4244
|
-
r === "object" && (ce(n) ? r = "array" : Ve(n) && (r = "ref")), r !== "object" &&
|
|
4244
|
+
r === "object" && (ce(n) ? r = "array" : Ve(n) && (r = "ref")), r !== "object" && H(
|
|
4245
4245
|
`expose() should be passed a plain object, received ${r}.`
|
|
4246
4246
|
);
|
|
4247
4247
|
}
|
|
@@ -4366,8 +4366,8 @@ function ql() {
|
|
|
4366
4366
|
d.type.props && d.props && h.push(i("props", me(d.props))), d.setupState !== Ne && h.push(i("setup", d.setupState)), d.data !== Ne && h.push(i("data", me(d.data)));
|
|
4367
4367
|
const O = l(d, "computed");
|
|
4368
4368
|
O && h.push(i("computed", O));
|
|
4369
|
-
const
|
|
4370
|
-
return
|
|
4369
|
+
const $ = l(d, "inject");
|
|
4370
|
+
return $ && h.push(i("injected", $)), h.push([
|
|
4371
4371
|
"div",
|
|
4372
4372
|
{},
|
|
4373
4373
|
[
|
|
@@ -4412,14 +4412,14 @@ function ql() {
|
|
|
4412
4412
|
const O = d.type;
|
|
4413
4413
|
if (ue(O))
|
|
4414
4414
|
return;
|
|
4415
|
-
const
|
|
4416
|
-
for (const
|
|
4417
|
-
E(O,
|
|
4418
|
-
return
|
|
4415
|
+
const $ = {};
|
|
4416
|
+
for (const j in d.ctx)
|
|
4417
|
+
E(O, j, h) && ($[j] = d.ctx[j]);
|
|
4418
|
+
return $;
|
|
4419
4419
|
}
|
|
4420
4420
|
function E(d, h, O) {
|
|
4421
|
-
const
|
|
4422
|
-
if (ce(
|
|
4421
|
+
const $ = d[O];
|
|
4422
|
+
if (ce($) && $.includes(h) || De($) && h in $ || d.extends && E(d.extends, h, O) || d.mixins && d.mixins.some((j) => E(j, h, O)))
|
|
4423
4423
|
return !0;
|
|
4424
4424
|
}
|
|
4425
4425
|
function p(d) {
|
|
@@ -4427,7 +4427,7 @@ function ql() {
|
|
|
4427
4427
|
}
|
|
4428
4428
|
window.devtoolsFormatters ? window.devtoolsFormatters.push(s) : window.devtoolsFormatters = [s];
|
|
4429
4429
|
}
|
|
4430
|
-
const zs = "3.5.13", no = process.env.NODE_ENV !== "production" ?
|
|
4430
|
+
const zs = "3.5.13", no = process.env.NODE_ENV !== "production" ? H : Fe;
|
|
4431
4431
|
process.env.NODE_ENV;
|
|
4432
4432
|
process.env.NODE_ENV;
|
|
4433
4433
|
/**
|
|
@@ -4727,7 +4727,7 @@ const _f = { style: { flex: "1", display: "flex", "min-height": "0" } }, bf = {
|
|
|
4727
4727
|
emits: ["layoutMounted"],
|
|
4728
4728
|
setup(e, { emit: t }) {
|
|
4729
4729
|
const n = e, r = t, s = _t(() => p.value.microApps || []), o = Tt("container"), i = Tt("mainApp"), c = Tt("microApp"), l = _t(() => ["mainApp"].includes(n.type)), E = _t(() => ["microApp"].includes(n.type)), p = qe(o.data.get());
|
|
4730
|
-
o.data.watch((
|
|
4730
|
+
o.data.watch((K) => p.value = K);
|
|
4731
4731
|
const d = _t(() => ({
|
|
4732
4732
|
nav: p.value.navVisible ?? p.value.frameVisible ?? p.value.visible ?? !0,
|
|
4733
4733
|
menu: p.value.menuVisible ?? p.value.frameVisible ?? p.value.visible ?? !0,
|
|
@@ -4743,107 +4743,107 @@ const _f = { style: { flex: "1", display: "flex", "min-height": "0" } }, bf = {
|
|
|
4743
4743
|
menu: qe(null),
|
|
4744
4744
|
tab: qe(null),
|
|
4745
4745
|
mount: qe(null)
|
|
4746
|
-
},
|
|
4747
|
-
var
|
|
4746
|
+
}, $ = _t(() => p.value.activeMicroAppName || ""), j = _t(() => {
|
|
4747
|
+
var K, k, F, N, se, ge;
|
|
4748
4748
|
return {
|
|
4749
|
-
navHeight: (((
|
|
4750
|
-
menuWidth: (((N = (
|
|
4751
|
-
tabHeight: (((ge = (
|
|
4749
|
+
navHeight: (((k = (K = p.value) == null ? void 0 : K.navRect) == null ? void 0 : k.height) || 0) + "px",
|
|
4750
|
+
menuWidth: (((N = (F = p.value) == null ? void 0 : F.menuRect) == null ? void 0 : N.width) || 0) + "px",
|
|
4751
|
+
tabHeight: (((ge = (se = p.value) == null ? void 0 : se.tabRect) == null ? void 0 : ge.height) || 0) + "px"
|
|
4752
4752
|
};
|
|
4753
|
-
}),
|
|
4753
|
+
}), B = _t(() => ({
|
|
4754
4754
|
position: "relative",
|
|
4755
4755
|
height: "100%",
|
|
4756
4756
|
display: "flex",
|
|
4757
4757
|
flexDirection: "column"
|
|
4758
|
-
})),
|
|
4758
|
+
})), J = (K, k = 0, F = !1) => {
|
|
4759
4759
|
let N = null;
|
|
4760
|
-
return (...
|
|
4761
|
-
|
|
4762
|
-
|
|
4763
|
-
},
|
|
4760
|
+
return (...se) => {
|
|
4761
|
+
F && !N && K(...se), clearTimeout(N), N = setTimeout(() => {
|
|
4762
|
+
K(...se);
|
|
4763
|
+
}, k);
|
|
4764
4764
|
};
|
|
4765
|
-
},
|
|
4766
|
-
function
|
|
4767
|
-
if (!
|
|
4768
|
-
const
|
|
4765
|
+
}, te = () => {
|
|
4766
|
+
function K(F, N = 20) {
|
|
4767
|
+
if (!F) return;
|
|
4768
|
+
const se = F.getBoundingClientRect(), { x: ge, y: we, width: ve, height: z } = se, ie = ge, ye = we, D = ge + ve, Oe = we + z, Re = [
|
|
4769
4769
|
document.documentElement,
|
|
4770
4770
|
document.body,
|
|
4771
|
-
|
|
4771
|
+
F,
|
|
4772
4772
|
h.menu.value,
|
|
4773
4773
|
h.nav.value,
|
|
4774
4774
|
h.tab.value,
|
|
4775
4775
|
O.mount.value
|
|
4776
4776
|
];
|
|
4777
|
-
for (let Pe =
|
|
4777
|
+
for (let Pe = ie; Pe < D; Pe += N)
|
|
4778
4778
|
for (let S = ye; S < Oe; S += N) {
|
|
4779
4779
|
const x = document.elementFromPoint(Pe, S);
|
|
4780
4780
|
if (x && !Re.includes(x))
|
|
4781
4781
|
return x;
|
|
4782
4782
|
}
|
|
4783
4783
|
}
|
|
4784
|
-
let
|
|
4785
|
-
return
|
|
4786
|
-
},
|
|
4787
|
-
(
|
|
4788
|
-
if (!(
|
|
4789
|
-
if (
|
|
4784
|
+
let k = K(h.nav.value);
|
|
4785
|
+
return k || (k = K(h.tab.value)), k || (k = K(h.menu.value)), k;
|
|
4786
|
+
}, U = { x: -1, y: -1 }, re = J(
|
|
4787
|
+
(K, k, F) => {
|
|
4788
|
+
if (!(U.x === k.x && U.y === k.y)) {
|
|
4789
|
+
if (U.x = k.x, U.y = k.x, K === "mouseenter") {
|
|
4790
4790
|
if (l.value) {
|
|
4791
|
-
if (
|
|
4791
|
+
if (!$.value)
|
|
4792
4792
|
return o.data.set({ microAppStickStatus: !1 });
|
|
4793
|
-
o.data.set({ microAppStickStatus:
|
|
4793
|
+
o.data.set({ microAppStickStatus: F === "mount" });
|
|
4794
4794
|
}
|
|
4795
4795
|
if (E.value) {
|
|
4796
|
-
if (
|
|
4797
|
-
c.cors.send("microAppStickStatus",
|
|
4796
|
+
if (te()) return c.cors.send("microAppStickStatus", !0);
|
|
4797
|
+
c.cors.send("microAppStickStatus", F === "mount");
|
|
4798
4798
|
}
|
|
4799
4799
|
}
|
|
4800
|
-
if (
|
|
4801
|
-
if (
|
|
4802
|
-
c.cors.send("microAppStickStatus",
|
|
4800
|
+
if (K === "mousemove" && E.value) {
|
|
4801
|
+
if (te()) return c.cors.send("microAppStickStatus", !0);
|
|
4802
|
+
c.cors.send("microAppStickStatus", F === "mount");
|
|
4803
4803
|
}
|
|
4804
4804
|
}
|
|
4805
4805
|
},
|
|
4806
4806
|
20
|
|
4807
|
-
), L = _t(() => ({ ...E.value ? n.clearBackgroundStyles || {} : {} })),
|
|
4807
|
+
), L = _t(() => ({ ...E.value ? n.clearBackgroundStyles || {} : {} })), ne = qe(!1);
|
|
4808
4808
|
St(
|
|
4809
|
-
() =>
|
|
4809
|
+
() => $.value,
|
|
4810
4810
|
() => {
|
|
4811
|
-
|
|
4812
|
-
|
|
4811
|
+
ne.value = !0, setTimeout(() => {
|
|
4812
|
+
ne.value = !1;
|
|
4813
4813
|
}, 300);
|
|
4814
4814
|
}
|
|
4815
4815
|
);
|
|
4816
4816
|
const le = _t(() => {
|
|
4817
|
-
var
|
|
4818
|
-
let
|
|
4817
|
+
var k;
|
|
4818
|
+
let K = {
|
|
4819
4819
|
...n.microAppsContainerStyle || {},
|
|
4820
|
-
display: (
|
|
4820
|
+
display: (k = s.value) != null && k.length && $.value ? "block" : "none",
|
|
4821
4821
|
position: "absolute",
|
|
4822
|
-
zIndex:
|
|
4822
|
+
zIndex: ne.value ? -1 : 1,
|
|
4823
4823
|
top: 0,
|
|
4824
4824
|
left: 0,
|
|
4825
4825
|
height: "100%",
|
|
4826
4826
|
width: "100%"
|
|
4827
4827
|
};
|
|
4828
|
-
return l.value && (
|
|
4828
|
+
return l.value && (K.pointerEvents = p.value.microAppStickStatus && $.value ? "all" : "none"), K;
|
|
4829
4829
|
}), pe = qe(null);
|
|
4830
4830
|
if (l.value) {
|
|
4831
4831
|
(async () => {
|
|
4832
|
-
const
|
|
4832
|
+
const F = (N) => {
|
|
4833
4833
|
var we;
|
|
4834
|
-
const
|
|
4835
|
-
const { x: ve, y: z, width:
|
|
4836
|
-
o.data.set({ [`${N}Rect`]: { x: ve, y: z, width:
|
|
4834
|
+
const se = (we = h[N]) == null ? void 0 : we.value, ge = () => {
|
|
4835
|
+
const { x: ve, y: z, width: ie, height: ye } = (se == null ? void 0 : se.getBoundingClientRect()) || {};
|
|
4836
|
+
o.data.set({ [`${N}Rect`]: { x: ve, y: z, width: ie, height: ye } });
|
|
4837
4837
|
};
|
|
4838
|
-
ge(), new MutationObserver(ge).observe(
|
|
4838
|
+
ge(), new MutationObserver(ge).observe(se, { childList: !0, subtree: !0 });
|
|
4839
4839
|
};
|
|
4840
4840
|
await Promise.all([
|
|
4841
4841
|
...Object.keys(h).map(async (N) => {
|
|
4842
|
-
const
|
|
4843
|
-
await new Promise((ge) => St(() =>
|
|
4842
|
+
const se = h[N];
|
|
4843
|
+
await new Promise((ge) => St(() => se.value, ge)), F(N);
|
|
4844
4844
|
}),
|
|
4845
4845
|
...Object.keys(O).map(async (N) => {
|
|
4846
|
-
await new Promise((
|
|
4846
|
+
await new Promise((se) => St(() => O[N].value, se));
|
|
4847
4847
|
})
|
|
4848
4848
|
]), o.event.emit("onLayoutMounted"), r("layoutMounted", {
|
|
4849
4849
|
navDom: O.nav.value,
|
|
@@ -4852,32 +4852,32 @@ const _f = { style: { flex: "1", display: "flex", "min-height": "0" } }, bf = {
|
|
|
4852
4852
|
mountDom: O.mount.value
|
|
4853
4853
|
});
|
|
4854
4854
|
})(), o.data.watch(() => {
|
|
4855
|
-
const
|
|
4856
|
-
if (!
|
|
4855
|
+
const F = p.value.activeMicroAppName;
|
|
4856
|
+
if (!F) return;
|
|
4857
4857
|
const N = o.data.get(o.expose.getLayoutDataKeys());
|
|
4858
|
-
i.cors.send(
|
|
4859
|
-
}, o.expose.getLayoutDataKeys()), i.cors.on("microAppStickStatus", (
|
|
4860
|
-
o.data.set({ microAppStickStatus:
|
|
4858
|
+
i.cors.send(F, "layoutDataChange", N);
|
|
4859
|
+
}, o.expose.getLayoutDataKeys()), i.cors.on("microAppStickStatus", (F) => {
|
|
4860
|
+
o.data.set({ microAppStickStatus: F.data });
|
|
4861
4861
|
});
|
|
4862
|
-
const { setIframeMountDom:
|
|
4863
|
-
St(() => pe.value,
|
|
4862
|
+
const { setIframeMountDom: k } = ga();
|
|
4863
|
+
St(() => pe.value, k);
|
|
4864
4864
|
}
|
|
4865
4865
|
if (E.value) {
|
|
4866
4866
|
o.data.set({ microAppStickStatus: !0 });
|
|
4867
|
-
let
|
|
4867
|
+
let K = {};
|
|
4868
4868
|
try {
|
|
4869
|
-
|
|
4869
|
+
K = JSON.parse(window.name);
|
|
4870
4870
|
} catch {
|
|
4871
4871
|
}
|
|
4872
|
-
const { appInfo:
|
|
4872
|
+
const { appInfo: k, parentData: F = {} } = K;
|
|
4873
4873
|
setTimeout(() => {
|
|
4874
|
-
o.data.set(
|
|
4875
|
-
}, 0), c.data.set({ appInfo:
|
|
4876
|
-
o.data.set(
|
|
4874
|
+
o.data.set(F.layoutData);
|
|
4875
|
+
}, 0), c.data.set({ appInfo: k }), c.cors.on("layoutDataChange", (se) => {
|
|
4876
|
+
o.data.set(se.data);
|
|
4877
4877
|
}), (async () => {
|
|
4878
4878
|
await Promise.all([
|
|
4879
|
-
...Object.keys(h).map(async (
|
|
4880
|
-
const ge = h[
|
|
4879
|
+
...Object.keys(h).map(async (se) => {
|
|
4880
|
+
const ge = h[se];
|
|
4881
4881
|
await new Promise((we) => St(() => ge.value, we));
|
|
4882
4882
|
})
|
|
4883
4883
|
]), o.event.emit("onLayoutMounted"), r("layoutMounted", {
|
|
@@ -4887,13 +4887,13 @@ const _f = { style: { flex: "1", display: "flex", "min-height": "0" } }, bf = {
|
|
|
4887
4887
|
}
|
|
4888
4888
|
return yc(() => {
|
|
4889
4889
|
o.event.emit("onMounted");
|
|
4890
|
-
}), (
|
|
4891
|
-
style: jt(
|
|
4890
|
+
}), (K, k) => (Mt(), Yt("div", {
|
|
4891
|
+
style: jt(B.value)
|
|
4892
4892
|
}, [
|
|
4893
4893
|
_r(Lt("header", {
|
|
4894
4894
|
ref: h.nav,
|
|
4895
|
-
onMouseenter:
|
|
4896
|
-
onMousemove:
|
|
4895
|
+
onMouseenter: k[0] || (k[0] = (F) => qt(re)("mouseenter", F, "nav")),
|
|
4896
|
+
onMousemove: k[1] || (k[1] = (F) => qt(re)("mousemove", F, "nav"))
|
|
4897
4897
|
}, [
|
|
4898
4898
|
l.value ? (Mt(), Yt("div", {
|
|
4899
4899
|
key: 0,
|
|
@@ -4901,7 +4901,7 @@ const _f = { style: { flex: "1", display: "flex", "min-height": "0" } }, bf = {
|
|
|
4901
4901
|
}, null, 512)) : on("", !0),
|
|
4902
4902
|
E.value ? (Mt(), Yt("div", {
|
|
4903
4903
|
key: 1,
|
|
4904
|
-
style: jt([{ "pointer-events": "none" }, { height:
|
|
4904
|
+
style: jt([{ "pointer-events": "none" }, { height: j.value.navHeight }])
|
|
4905
4905
|
}, null, 4)) : on("", !0)
|
|
4906
4906
|
], 544), [
|
|
4907
4907
|
[zn, d.value.nav]
|
|
@@ -4910,8 +4910,8 @@ const _f = { style: { flex: "1", display: "flex", "min-height": "0" } }, bf = {
|
|
|
4910
4910
|
_r(Lt("aside", {
|
|
4911
4911
|
ref: h.menu,
|
|
4912
4912
|
style: { height: "100%" },
|
|
4913
|
-
onMouseenter:
|
|
4914
|
-
onMousemove:
|
|
4913
|
+
onMouseenter: k[2] || (k[2] = (F) => qt(re)("mouseenter", F, "menu")),
|
|
4914
|
+
onMousemove: k[3] || (k[3] = (F) => qt(re)("mousemove", F, "menu"))
|
|
4915
4915
|
}, [
|
|
4916
4916
|
l.value ? (Mt(), Yt("div", {
|
|
4917
4917
|
key: 0,
|
|
@@ -4920,7 +4920,7 @@ const _f = { style: { flex: "1", display: "flex", "min-height": "0" } }, bf = {
|
|
|
4920
4920
|
}, null, 512)) : on("", !0),
|
|
4921
4921
|
E.value ? (Mt(), Yt("div", {
|
|
4922
4922
|
key: 1,
|
|
4923
|
-
style: jt([{ "pointer-events": "none" }, { width:
|
|
4923
|
+
style: jt([{ "pointer-events": "none" }, { width: j.value.menuWidth }])
|
|
4924
4924
|
}, null, 4)) : on("", !0)
|
|
4925
4925
|
], 544), [
|
|
4926
4926
|
[zn, d.value.menu]
|
|
@@ -4928,8 +4928,8 @@ const _f = { style: { flex: "1", display: "flex", "min-height": "0" } }, bf = {
|
|
|
4928
4928
|
Lt("main", bf, [
|
|
4929
4929
|
_r(Lt("header", {
|
|
4930
4930
|
ref: h.tab,
|
|
4931
|
-
onMouseenter:
|
|
4932
|
-
onMousemove:
|
|
4931
|
+
onMouseenter: k[4] || (k[4] = (F) => qt(re)("mouseenter", F, "tab")),
|
|
4932
|
+
onMousemove: k[5] || (k[5] = (F) => qt(re)("mousemove", F, "tab"))
|
|
4933
4933
|
}, [
|
|
4934
4934
|
l.value ? (Mt(), Yt("div", {
|
|
4935
4935
|
key: 0,
|
|
@@ -4937,7 +4937,7 @@ const _f = { style: { flex: "1", display: "flex", "min-height": "0" } }, bf = {
|
|
|
4937
4937
|
}, null, 512)) : on("", !0),
|
|
4938
4938
|
E.value ? (Mt(), Yt("div", {
|
|
4939
4939
|
key: 1,
|
|
4940
|
-
style: jt([{ "pointer-events": "none" }, { height:
|
|
4940
|
+
style: jt([{ "pointer-events": "none" }, { height: j.value.tabHeight }])
|
|
4941
4941
|
}, null, 4)) : on("", !0)
|
|
4942
4942
|
], 544), [
|
|
4943
4943
|
[zn, d.value.tab]
|
|
@@ -4945,7 +4945,7 @@ const _f = { style: { flex: "1", display: "flex", "min-height": "0" } }, bf = {
|
|
|
4945
4945
|
_r(Lt("section", {
|
|
4946
4946
|
ref: h.mount,
|
|
4947
4947
|
style: jt([{ flex: "1", "min-height": "0" }, L.value]),
|
|
4948
|
-
onMouseenter:
|
|
4948
|
+
onMouseenter: k[6] || (k[6] = (F) => qt(re)("mouseenter", F, "mount"))
|
|
4949
4949
|
}, [
|
|
4950
4950
|
Lt("div", {
|
|
4951
4951
|
ref: O.mount,
|
|
@@ -5005,53 +5005,66 @@ const Jc = async (e) => {
|
|
|
5005
5005
|
}, xg = async (e) => {
|
|
5006
5006
|
e || (e = {});
|
|
5007
5007
|
const { microApps: t = [] } = e, n = await Jc({ type: "mainApp", ...e }), r = Tt("container"), s = Tt("mainApp"), { addRouterEventListener: o } = Zc(), i = Xc(), c = qe(t);
|
|
5008
|
-
r.data.watch((
|
|
5008
|
+
r.data.watch((B) => c.value = B.microApps, ["microApps"]), r.data.set({ microApps: t });
|
|
5009
5009
|
const { registerIframe: l, loadIframe: E, hideIframe: p, iframeEvent: d, checkIframeStatus: h } = ga();
|
|
5010
|
-
d.on("mounted", (
|
|
5011
|
-
|
|
5010
|
+
d.on("mounted", (B) => {
|
|
5011
|
+
var U;
|
|
5012
|
+
s.expose.connectMicroApp(B);
|
|
5013
|
+
const J = r.data.get().microApps.find((re) => re.name === B.name);
|
|
5014
|
+
if (!J) return;
|
|
5015
|
+
if (!(((U = J.router) == null ? void 0 : U.sync) ?? !0)) {
|
|
5016
|
+
j();
|
|
5017
|
+
return;
|
|
5018
|
+
}
|
|
5019
|
+
}), t.filter((B) => B.activeRule).map((B) => {
|
|
5020
|
+
i.addRule(B.name, B.activeRule), l(B.name, B);
|
|
5012
5021
|
});
|
|
5013
5022
|
const O = qe(!1);
|
|
5014
|
-
s.cors.on("reportRouter", (
|
|
5015
|
-
var N,
|
|
5016
|
-
const { data:
|
|
5017
|
-
if (!
|
|
5018
|
-
const
|
|
5019
|
-
if (!
|
|
5020
|
-
const { pathname:
|
|
5021
|
-
let le =
|
|
5022
|
-
const { pathname: pe, hash:
|
|
5023
|
-
let
|
|
5024
|
-
((
|
|
5023
|
+
s.cors.on("reportRouter", (B) => {
|
|
5024
|
+
var N, se, ge;
|
|
5025
|
+
const { data: J } = B || {};
|
|
5026
|
+
if (!J.appInfo) return;
|
|
5027
|
+
const te = r.data.get().microApps.find((we) => we.name === J.appInfo.name);
|
|
5028
|
+
if (!te || !(((N = te.router) == null ? void 0 : N.sync) ?? !0) || !h(te.name, ["mounted", "activated"])) return;
|
|
5029
|
+
const { pathname: re, hash: L, search: ne } = new URL(window.location.href);
|
|
5030
|
+
let le = re + ne;
|
|
5031
|
+
const { pathname: pe, hash: K, search: k } = new URL(J.href);
|
|
5032
|
+
let F = pe + k;
|
|
5033
|
+
((se = te.router) == null ? void 0 : se.mode) === "hash" && (F = K.replace("#", "")), ((ge = r.data.get().initOptions.router) == null ? void 0 : ge.mode) === "hash" && (le = `/${L}`, F = `/#${F}`), le !== F && (O.value = !0, setTimeout(() => {
|
|
5025
5034
|
O.value = !1;
|
|
5026
|
-
}, 300), i.replaceState(
|
|
5035
|
+
}, 300), i.replaceState(F));
|
|
5027
5036
|
});
|
|
5028
|
-
const
|
|
5029
|
-
var
|
|
5030
|
-
const { path:
|
|
5031
|
-
let
|
|
5032
|
-
((
|
|
5033
|
-
appInfo:
|
|
5034
|
-
parentRouter:
|
|
5035
|
-
replacePath:
|
|
5037
|
+
const $ = (B, J) => {
|
|
5038
|
+
var re;
|
|
5039
|
+
const { path: te } = J;
|
|
5040
|
+
let U = te;
|
|
5041
|
+
((re = B.router) == null ? void 0 : re.mode) === "hash" && (U = `/#${te}`), s.cors.send(B.name, "syncRouter", {
|
|
5042
|
+
appInfo: B,
|
|
5043
|
+
parentRouter: J,
|
|
5044
|
+
replacePath: U
|
|
5036
5045
|
});
|
|
5037
5046
|
};
|
|
5038
|
-
|
|
5039
|
-
|
|
5047
|
+
window.addEventListener("popstate", (B) => {
|
|
5048
|
+
j();
|
|
5049
|
+
});
|
|
5050
|
+
const j = async () => {
|
|
5051
|
+
var K, k;
|
|
5040
5052
|
if (O.value) return;
|
|
5041
|
-
await new Promise((
|
|
5042
|
-
const
|
|
5043
|
-
let
|
|
5044
|
-
|
|
5045
|
-
const L = i.match(
|
|
5046
|
-
let le =
|
|
5047
|
-
if (((
|
|
5053
|
+
await new Promise((F) => setTimeout(F, 0));
|
|
5054
|
+
const B = ((K = r.data.get().initOptions.router) == null ? void 0 : K.mode) || "history", { pathname: J, hash: te, search: U } = new URL(window.location.href);
|
|
5055
|
+
let re = J + U;
|
|
5056
|
+
B === "hash" && (re = te.replace("#", ""));
|
|
5057
|
+
const L = i.match(re), ne = c.value.find((F) => L ? L === F.name : !1);
|
|
5058
|
+
let le = re;
|
|
5059
|
+
if (((k = ne == null ? void 0 : ne.router) == null ? void 0 : k.mode) === "hash" && (le = `/#${re}`), !ne) {
|
|
5048
5060
|
r.data.set({ activeMicroAppName: "" }), p();
|
|
5049
5061
|
return;
|
|
5050
5062
|
}
|
|
5051
|
-
r.data.set({ activeMicroAppName:
|
|
5052
|
-
const pe = { href: window.location.href, mode:
|
|
5053
|
-
h(
|
|
5054
|
-
}
|
|
5063
|
+
r.data.set({ activeMicroAppName: ne.name });
|
|
5064
|
+
const pe = { href: window.location.href, mode: B, path: re };
|
|
5065
|
+
h(ne.name, "deactivated") && (await E(ne.name), $(ne, pe)), h(ne.name, ["mounted", "activated"]) && $(ne, pe), h(ne.name, "registered") && await E(ne.name, { path: le });
|
|
5066
|
+
};
|
|
5067
|
+
return o(["replaceState"], j), n;
|
|
5055
5068
|
};
|
|
5056
5069
|
function Of(e) {
|
|
5057
5070
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
@@ -5060,7 +5073,7 @@ var Oo = {}, So, ai;
|
|
|
5060
5073
|
function ro() {
|
|
5061
5074
|
if (ai) return So;
|
|
5062
5075
|
ai = 1;
|
|
5063
|
-
const e = "\\\\/", t = `[^${e}]`, n = "\\.", r = "\\+", s = "\\?", o = "\\/", i = "(?=.)", c = "[^/]", l = `(?:${o}|$)`, E = `(?:^|${o})`, p = `${n}{1,2}${l}`, d = `(?!${n})`, h = `(?!${E}${p})`, O = `(?!${n}{0,1}${l})`,
|
|
5076
|
+
const e = "\\\\/", t = `[^${e}]`, n = "\\.", r = "\\+", s = "\\?", o = "\\/", i = "(?=.)", c = "[^/]", l = `(?:${o}|$)`, E = `(?:^|${o})`, p = `${n}{1,2}${l}`, d = `(?!${n})`, h = `(?!${E}${p})`, O = `(?!${n}{0,1}${l})`, $ = `(?!${p})`, j = `[^.${o}]`, B = `${c}*?`, te = {
|
|
5064
5077
|
DOT_LITERAL: n,
|
|
5065
5078
|
PLUS_LITERAL: r,
|
|
5066
5079
|
QMARK_LITERAL: s,
|
|
@@ -5072,13 +5085,13 @@ function ro() {
|
|
|
5072
5085
|
NO_DOT: d,
|
|
5073
5086
|
NO_DOTS: h,
|
|
5074
5087
|
NO_DOT_SLASH: O,
|
|
5075
|
-
NO_DOTS_SLASH:
|
|
5076
|
-
QMARK_NO_DOT:
|
|
5077
|
-
STAR:
|
|
5088
|
+
NO_DOTS_SLASH: $,
|
|
5089
|
+
QMARK_NO_DOT: j,
|
|
5090
|
+
STAR: B,
|
|
5078
5091
|
START_ANCHOR: E,
|
|
5079
5092
|
SEP: "/"
|
|
5080
|
-
},
|
|
5081
|
-
...
|
|
5093
|
+
}, U = {
|
|
5094
|
+
...te,
|
|
5082
5095
|
SLASH_LITERAL: `[${e}]`,
|
|
5083
5096
|
QMARK: t,
|
|
5084
5097
|
STAR: `${t}*?`,
|
|
@@ -5091,7 +5104,7 @@ function ro() {
|
|
|
5091
5104
|
START_ANCHOR: `(?:^|[${e}])`,
|
|
5092
5105
|
END_ANCHOR: `(?:[${e}]|$)`,
|
|
5093
5106
|
SEP: "\\"
|
|
5094
|
-
},
|
|
5107
|
+
}, re = {
|
|
5095
5108
|
alnum: "a-zA-Z0-9",
|
|
5096
5109
|
alpha: "a-zA-Z",
|
|
5097
5110
|
ascii: "\\x00-\\x7F",
|
|
@@ -5109,7 +5122,7 @@ function ro() {
|
|
|
5109
5122
|
};
|
|
5110
5123
|
return So = {
|
|
5111
5124
|
MAX_LENGTH: 1024 * 64,
|
|
5112
|
-
POSIX_REGEX_SOURCE:
|
|
5125
|
+
POSIX_REGEX_SOURCE: re,
|
|
5113
5126
|
// regular expressions
|
|
5114
5127
|
REGEX_BACKSLASH: /\\(?![*+?^${}(|)[\]])/g,
|
|
5115
5128
|
REGEX_NON_SPECIAL_CHARS: /^[^@![\].,$*+?^{}()|\\/]+/,
|
|
@@ -5228,7 +5241,7 @@ function ro() {
|
|
|
5228
5241
|
* Create GLOB_CHARS
|
|
5229
5242
|
*/
|
|
5230
5243
|
globChars(L) {
|
|
5231
|
-
return L === !0 ?
|
|
5244
|
+
return L === !0 ? U : te;
|
|
5232
5245
|
}
|
|
5233
5246
|
}, So;
|
|
5234
5247
|
}
|
|
@@ -5294,35 +5307,35 @@ function Sf() {
|
|
|
5294
5307
|
/* ? */
|
|
5295
5308
|
CHAR_RIGHT_CURLY_BRACE: O,
|
|
5296
5309
|
/* } */
|
|
5297
|
-
CHAR_RIGHT_PARENTHESES:
|
|
5310
|
+
CHAR_RIGHT_PARENTHESES: $,
|
|
5298
5311
|
/* ) */
|
|
5299
|
-
CHAR_RIGHT_SQUARE_BRACKET:
|
|
5312
|
+
CHAR_RIGHT_SQUARE_BRACKET: j
|
|
5300
5313
|
/* ] */
|
|
5301
|
-
} = /* @__PURE__ */ ro(),
|
|
5302
|
-
|
|
5314
|
+
} = /* @__PURE__ */ ro(), B = (U) => U === c || U === r, J = (U) => {
|
|
5315
|
+
U.isPrefix !== !0 && (U.depth = U.isGlobstar ? 1 / 0 : 1);
|
|
5303
5316
|
};
|
|
5304
|
-
return Ao = (
|
|
5305
|
-
const L =
|
|
5306
|
-
let
|
|
5307
|
-
const $e = () => N >=
|
|
5308
|
-
for (; N <
|
|
5309
|
-
Z =
|
|
5317
|
+
return Ao = (U, re) => {
|
|
5318
|
+
const L = re || {}, ne = U.length - 1, le = L.parts === !0 || L.scanToEnd === !0, pe = [], K = [], k = [];
|
|
5319
|
+
let F = U, N = -1, se = 0, ge = 0, we = !1, ve = !1, z = !1, ie = !1, ye = !1, D = !1, Oe = !1, Re = !1, Pe = !1, S = !1, x = 0, ke, Z, de = { value: "", depth: 0, isGlob: !1 };
|
|
5320
|
+
const $e = () => N >= ne, _e = () => F.charCodeAt(N + 1), W = () => (ke = Z, F.charCodeAt(++N));
|
|
5321
|
+
for (; N < ne; ) {
|
|
5322
|
+
Z = W();
|
|
5310
5323
|
let C;
|
|
5311
5324
|
if (Z === r) {
|
|
5312
|
-
Oe = de.backslashes = !0, Z =
|
|
5325
|
+
Oe = de.backslashes = !0, Z = W(), Z === l && (D = !0);
|
|
5313
5326
|
continue;
|
|
5314
5327
|
}
|
|
5315
5328
|
if (D === !0 || Z === l) {
|
|
5316
|
-
for (x++; $e() !== !0 && (Z =
|
|
5329
|
+
for (x++; $e() !== !0 && (Z = W()); ) {
|
|
5317
5330
|
if (Z === r) {
|
|
5318
|
-
Oe = de.backslashes = !0,
|
|
5331
|
+
Oe = de.backslashes = !0, W();
|
|
5319
5332
|
continue;
|
|
5320
5333
|
}
|
|
5321
5334
|
if (Z === l) {
|
|
5322
5335
|
x++;
|
|
5323
5336
|
continue;
|
|
5324
5337
|
}
|
|
5325
|
-
if (D !== !0 && Z === o && (Z =
|
|
5338
|
+
if (D !== !0 && Z === o && (Z = W()) === o) {
|
|
5326
5339
|
if (we = de.isBrace = !0, z = de.isGlob = !0, S = !0, le === !0)
|
|
5327
5340
|
continue;
|
|
5328
5341
|
break;
|
|
@@ -5342,22 +5355,22 @@ function Sf() {
|
|
|
5342
5355
|
break;
|
|
5343
5356
|
}
|
|
5344
5357
|
if (Z === c) {
|
|
5345
|
-
if (pe.push(N),
|
|
5346
|
-
if (ke === o && N ===
|
|
5347
|
-
|
|
5358
|
+
if (pe.push(N), K.push(de), de = { value: "", depth: 0, isGlob: !1 }, S === !0) continue;
|
|
5359
|
+
if (ke === o && N === se + 1) {
|
|
5360
|
+
se += 2;
|
|
5348
5361
|
continue;
|
|
5349
5362
|
}
|
|
5350
5363
|
ge = N + 1;
|
|
5351
5364
|
continue;
|
|
5352
5365
|
}
|
|
5353
5366
|
if (L.noext !== !0 && (Z === d || Z === n || Z === t || Z === h || Z === i) === !0 && _e() === E) {
|
|
5354
|
-
if (z = de.isGlob = !0,
|
|
5355
|
-
for (; $e() !== !0 && (Z =
|
|
5367
|
+
if (z = de.isGlob = !0, ie = de.isExtglob = !0, S = !0, Z === i && N === se && (Pe = !0), le === !0) {
|
|
5368
|
+
for (; $e() !== !0 && (Z = W()); ) {
|
|
5356
5369
|
if (Z === r) {
|
|
5357
|
-
Oe = de.backslashes = !0, Z =
|
|
5370
|
+
Oe = de.backslashes = !0, Z = W();
|
|
5358
5371
|
continue;
|
|
5359
5372
|
}
|
|
5360
|
-
if (Z ===
|
|
5373
|
+
if (Z === $) {
|
|
5361
5374
|
z = de.isGlob = !0, S = !0;
|
|
5362
5375
|
break;
|
|
5363
5376
|
}
|
|
@@ -5377,12 +5390,12 @@ function Sf() {
|
|
|
5377
5390
|
break;
|
|
5378
5391
|
}
|
|
5379
5392
|
if (Z === p) {
|
|
5380
|
-
for (; $e() !== !0 && (C =
|
|
5393
|
+
for (; $e() !== !0 && (C = W()); ) {
|
|
5381
5394
|
if (C === r) {
|
|
5382
|
-
Oe = de.backslashes = !0,
|
|
5395
|
+
Oe = de.backslashes = !0, W();
|
|
5383
5396
|
continue;
|
|
5384
5397
|
}
|
|
5385
|
-
if (C ===
|
|
5398
|
+
if (C === j) {
|
|
5386
5399
|
ve = de.isBracket = !0, z = de.isGlob = !0, S = !0;
|
|
5387
5400
|
break;
|
|
5388
5401
|
}
|
|
@@ -5391,18 +5404,18 @@ function Sf() {
|
|
|
5391
5404
|
continue;
|
|
5392
5405
|
break;
|
|
5393
5406
|
}
|
|
5394
|
-
if (L.nonegate !== !0 && Z === i && N ===
|
|
5395
|
-
Re = de.negated = !0,
|
|
5407
|
+
if (L.nonegate !== !0 && Z === i && N === se) {
|
|
5408
|
+
Re = de.negated = !0, se++;
|
|
5396
5409
|
continue;
|
|
5397
5410
|
}
|
|
5398
5411
|
if (L.noparen !== !0 && Z === E) {
|
|
5399
5412
|
if (z = de.isGlob = !0, le === !0) {
|
|
5400
|
-
for (; $e() !== !0 && (Z =
|
|
5413
|
+
for (; $e() !== !0 && (Z = W()); ) {
|
|
5401
5414
|
if (Z === E) {
|
|
5402
|
-
Oe = de.backslashes = !0, Z =
|
|
5415
|
+
Oe = de.backslashes = !0, Z = W();
|
|
5403
5416
|
continue;
|
|
5404
5417
|
}
|
|
5405
|
-
if (Z ===
|
|
5418
|
+
if (Z === $) {
|
|
5406
5419
|
S = !0;
|
|
5407
5420
|
break;
|
|
5408
5421
|
}
|
|
@@ -5417,34 +5430,34 @@ function Sf() {
|
|
|
5417
5430
|
break;
|
|
5418
5431
|
}
|
|
5419
5432
|
}
|
|
5420
|
-
L.noext === !0 && (
|
|
5421
|
-
let Me =
|
|
5422
|
-
|
|
5433
|
+
L.noext === !0 && (ie = !1, z = !1);
|
|
5434
|
+
let Me = F, f = "", g = "";
|
|
5435
|
+
se > 0 && (f = F.slice(0, se), F = F.slice(se), ge -= se), Me && z === !0 && ge > 0 ? (Me = F.slice(0, ge), g = F.slice(ge)) : z === !0 ? (Me = "", g = F) : Me = F, Me && Me !== "" && Me !== "/" && Me !== F && B(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)));
|
|
5423
5436
|
const y = {
|
|
5424
5437
|
prefix: f,
|
|
5425
|
-
input:
|
|
5426
|
-
start:
|
|
5438
|
+
input: U,
|
|
5439
|
+
start: se,
|
|
5427
5440
|
base: Me,
|
|
5428
5441
|
glob: g,
|
|
5429
5442
|
isBrace: we,
|
|
5430
5443
|
isBracket: ve,
|
|
5431
5444
|
isGlob: z,
|
|
5432
|
-
isExtglob:
|
|
5445
|
+
isExtglob: ie,
|
|
5433
5446
|
isGlobstar: ye,
|
|
5434
5447
|
negated: Re,
|
|
5435
5448
|
negatedExtglob: Pe
|
|
5436
5449
|
};
|
|
5437
|
-
if (L.tokens === !0 && (y.maxDepth = 0,
|
|
5450
|
+
if (L.tokens === !0 && (y.maxDepth = 0, B(Z) || K.push(de), y.tokens = K), L.parts === !0 || L.tokens === !0) {
|
|
5438
5451
|
let C;
|
|
5439
5452
|
for (let R = 0; R < pe.length; R++) {
|
|
5440
|
-
const _ = C ? C + 1 :
|
|
5441
|
-
L.tokens && (R === 0 &&
|
|
5453
|
+
const _ = C ? C + 1 : se, P = pe[R], b = U.slice(_, P);
|
|
5454
|
+
L.tokens && (R === 0 && se !== 0 ? (K[R].isPrefix = !0, K[R].value = f) : K[R].value = b, J(K[R]), y.maxDepth += K[R].depth), (R !== 0 || b !== "") && k.push(b), C = P;
|
|
5442
5455
|
}
|
|
5443
|
-
if (C && C + 1 <
|
|
5444
|
-
const R =
|
|
5445
|
-
|
|
5456
|
+
if (C && C + 1 < U.length) {
|
|
5457
|
+
const R = U.slice(C + 1);
|
|
5458
|
+
k.push(R), L.tokens && (K[K.length - 1].value = R, J(K[K.length - 1]), y.maxDepth += K[K.length - 1].depth);
|
|
5446
5459
|
}
|
|
5447
|
-
y.slashes = pe, y.parts =
|
|
5460
|
+
y.slashes = pe, y.parts = k;
|
|
5448
5461
|
}
|
|
5449
5462
|
return y;
|
|
5450
5463
|
}, Ao;
|
|
@@ -5467,7 +5480,7 @@ function Af() {
|
|
|
5467
5480
|
try {
|
|
5468
5481
|
new RegExp(h);
|
|
5469
5482
|
} catch {
|
|
5470
|
-
return p.map((
|
|
5483
|
+
return p.map(($) => t.escapeRegex($)).join("..");
|
|
5471
5484
|
}
|
|
5472
5485
|
return h;
|
|
5473
5486
|
}, l = (p, d) => `Missing ${p}: "${d}" - use "\\\\${d}" to match literal characters`, E = (p, d) => {
|
|
@@ -5475,23 +5488,23 @@ function Af() {
|
|
|
5475
5488
|
throw new TypeError("Expected a string");
|
|
5476
5489
|
p = i[p] || p;
|
|
5477
5490
|
const h = { ...d }, O = typeof h.maxLength == "number" ? Math.min(n, h.maxLength) : n;
|
|
5478
|
-
let
|
|
5479
|
-
if (
|
|
5480
|
-
throw new SyntaxError(`Input length: ${
|
|
5481
|
-
const
|
|
5482
|
-
DOT_LITERAL:
|
|
5491
|
+
let $ = p.length;
|
|
5492
|
+
if ($ > O)
|
|
5493
|
+
throw new SyntaxError(`Input length: ${$}, exceeds maximum allowed length: ${O}`);
|
|
5494
|
+
const j = { type: "bos", value: "", output: h.prepend || "" }, B = [j], J = h.capture ? "" : "?:", te = e.globChars(h.windows), U = e.extglobChars(te), {
|
|
5495
|
+
DOT_LITERAL: re,
|
|
5483
5496
|
PLUS_LITERAL: L,
|
|
5484
|
-
SLASH_LITERAL:
|
|
5497
|
+
SLASH_LITERAL: ne,
|
|
5485
5498
|
ONE_CHAR: le,
|
|
5486
5499
|
DOTS_SLASH: pe,
|
|
5487
|
-
NO_DOT:
|
|
5488
|
-
NO_DOT_SLASH:
|
|
5489
|
-
NO_DOTS_SLASH:
|
|
5500
|
+
NO_DOT: K,
|
|
5501
|
+
NO_DOT_SLASH: k,
|
|
5502
|
+
NO_DOTS_SLASH: F,
|
|
5490
5503
|
QMARK: N,
|
|
5491
|
-
QMARK_NO_DOT:
|
|
5504
|
+
QMARK_NO_DOT: se,
|
|
5492
5505
|
STAR: ge,
|
|
5493
5506
|
START_ANCHOR: we
|
|
5494
|
-
} =
|
|
5507
|
+
} = te, ve = (_) => `(${J}(?:(?!${we}${_.dot ? pe : re}).)*?)`, z = h.dot ? "" : K, ie = h.dot ? N : se;
|
|
5495
5508
|
let ye = h.bash === !0 ? ve(h) : ge;
|
|
5496
5509
|
h.capture && (ye = `(${ye})`), typeof h.noext == "boolean" && (h.noextglob = h.noext);
|
|
5497
5510
|
const D = {
|
|
@@ -5509,14 +5522,14 @@ function Af() {
|
|
|
5509
5522
|
parens: 0,
|
|
5510
5523
|
quotes: 0,
|
|
5511
5524
|
globstar: !1,
|
|
5512
|
-
tokens:
|
|
5525
|
+
tokens: B
|
|
5513
5526
|
};
|
|
5514
|
-
p = t.removePrefix(p, D),
|
|
5527
|
+
p = t.removePrefix(p, D), $ = p.length;
|
|
5515
5528
|
const Oe = [], Re = [], Pe = [];
|
|
5516
|
-
let S =
|
|
5517
|
-
const ke = () => D.index ===
|
|
5529
|
+
let S = j, x;
|
|
5530
|
+
const ke = () => D.index === $ - 1, Z = D.peek = (_ = 1) => p[D.index + _], de = D.advance = () => p[++D.index] || "", $e = () => p.slice(D.index + 1), _e = (_ = "", P = 0) => {
|
|
5518
5531
|
D.consumed += _, D.index += P;
|
|
5519
|
-
},
|
|
5532
|
+
}, W = (_) => {
|
|
5520
5533
|
D.output += _.output != null ? _.output : _.value, _e(_.value);
|
|
5521
5534
|
}, Me = () => {
|
|
5522
5535
|
let _ = 1;
|
|
@@ -5532,13 +5545,13 @@ function Af() {
|
|
|
5532
5545
|
const P = D.braces > 0 && (_.type === "comma" || _.type === "brace"), b = _.extglob === !0 || Oe.length && (_.type === "pipe" || _.type === "paren");
|
|
5533
5546
|
_.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);
|
|
5534
5547
|
}
|
|
5535
|
-
if (Oe.length && _.type !== "paren" && (Oe[Oe.length - 1].inner += _.value), (_.value || _.output) &&
|
|
5548
|
+
if (Oe.length && _.type !== "paren" && (Oe[Oe.length - 1].inner += _.value), (_.value || _.output) && W(_), S && S.type === "text" && _.type === "text") {
|
|
5536
5549
|
S.output = (S.output || S.value) + _.value, S.value += _.value;
|
|
5537
5550
|
return;
|
|
5538
5551
|
}
|
|
5539
|
-
_.prev = S,
|
|
5552
|
+
_.prev = S, B.push(_), S = _;
|
|
5540
5553
|
}, C = (_, P) => {
|
|
5541
|
-
const b = { ...
|
|
5554
|
+
const b = { ...U[P], conditions: 1, inner: "" };
|
|
5542
5555
|
b.prev = S, b.parens = D.parens, b.output = D.output;
|
|
5543
5556
|
const A = (h.capture ? "(" : "") + b.open;
|
|
5544
5557
|
f("parens"), y({ type: _, value: P, output: D.output ? "" : le }), y({ type: "paren", extglob: !0, value: de(), output: A }), Oe.push(b);
|
|
@@ -5555,7 +5568,7 @@ function Af() {
|
|
|
5555
5568
|
y({ type: "paren", extglob: !0, value: x, output: P }), g("parens");
|
|
5556
5569
|
};
|
|
5557
5570
|
if (h.fastpaths !== !1 && !/(^[*!]|[/()[\]{}"])/.test(p)) {
|
|
5558
|
-
let _ = !1, P = p.replace(o, (b, A, T,
|
|
5571
|
+
let _ = !1, P = p.replace(o, (b, A, T, G, M, Q) => G === "\\" ? (_ = !0, b) : G === "?" ? A ? A + G + (M ? N.repeat(M.length) : "") : Q === 0 ? ie + (M ? N.repeat(M.length) : "") : N.repeat(T.length) : G === "." ? re.repeat(T.length) : G === "*" ? A ? A + G + (M ? ye : "") : ye : A ? b : `\\${b}`);
|
|
5559
5572
|
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);
|
|
5560
5573
|
}
|
|
5561
5574
|
for (; !ke(); ) {
|
|
@@ -5580,18 +5593,18 @@ function Af() {
|
|
|
5580
5593
|
if (h.posix !== !1 && x === ":") {
|
|
5581
5594
|
const b = S.value.slice(1);
|
|
5582
5595
|
if (b.includes("[") && (S.posix = !0, b.includes(":"))) {
|
|
5583
|
-
const A = S.value.lastIndexOf("["), T = S.value.slice(0, A),
|
|
5596
|
+
const A = S.value.lastIndexOf("["), T = S.value.slice(0, A), G = S.value.slice(A + 2), M = r[G];
|
|
5584
5597
|
if (M) {
|
|
5585
|
-
S.value = T + M, D.backtrack = !0, de(), !
|
|
5598
|
+
S.value = T + M, D.backtrack = !0, de(), !j.output && B.indexOf(S) === 1 && (j.output = le);
|
|
5586
5599
|
continue;
|
|
5587
5600
|
}
|
|
5588
5601
|
}
|
|
5589
5602
|
}
|
|
5590
|
-
(x === "[" && Z() !== ":" || x === "-" && Z() === "]") && (x = `\\${x}`), x === "]" && (S.value === "[" || S.value === "[^") && (x = `\\${x}`), h.posix === !0 && x === "!" && S.value === "[" && (x = "^"), S.value += x,
|
|
5603
|
+
(x === "[" && Z() !== ":" || x === "-" && Z() === "]") && (x = `\\${x}`), x === "]" && (S.value === "[" || S.value === "[^") && (x = `\\${x}`), h.posix === !0 && x === "!" && S.value === "[" && (x = "^"), S.value += x, W({ value: x });
|
|
5591
5604
|
continue;
|
|
5592
5605
|
}
|
|
5593
5606
|
if (D.quotes === 1 && x !== '"') {
|
|
5594
|
-
x = t.escapeRegex(x), S.value += x,
|
|
5607
|
+
x = t.escapeRegex(x), S.value += x, W({ value: x });
|
|
5595
5608
|
continue;
|
|
5596
5609
|
}
|
|
5597
5610
|
if (x === '"') {
|
|
@@ -5636,14 +5649,14 @@ function Af() {
|
|
|
5636
5649
|
}
|
|
5637
5650
|
g("brackets");
|
|
5638
5651
|
const b = S.value.slice(1);
|
|
5639
|
-
if (S.posix !== !0 && b[0] === "^" && !b.includes("/") && (x = `/${x}`), S.value += x,
|
|
5652
|
+
if (S.posix !== !0 && b[0] === "^" && !b.includes("/") && (x = `/${x}`), S.value += x, W({ value: x }), h.literalBrackets === !1 || t.hasRegexChars(b))
|
|
5640
5653
|
continue;
|
|
5641
5654
|
const A = t.escapeRegex(S.value);
|
|
5642
5655
|
if (D.output = D.output.slice(0, -S.value.length), h.literalBrackets === !0) {
|
|
5643
5656
|
D.output += A, S.value = A;
|
|
5644
5657
|
continue;
|
|
5645
5658
|
}
|
|
5646
|
-
S.value = `(${
|
|
5659
|
+
S.value = `(${J}${A}|${S.value})`, D.output += S.value;
|
|
5647
5660
|
continue;
|
|
5648
5661
|
}
|
|
5649
5662
|
if (x === "{" && h.nobrace !== !0) {
|
|
@@ -5666,15 +5679,15 @@ function Af() {
|
|
|
5666
5679
|
}
|
|
5667
5680
|
let A = ")";
|
|
5668
5681
|
if (b.dots === !0) {
|
|
5669
|
-
const T =
|
|
5670
|
-
for (let M = T.length - 1; M >= 0 && (
|
|
5671
|
-
T[M].type !== "dots" &&
|
|
5672
|
-
A = c(
|
|
5682
|
+
const T = B.slice(), G = [];
|
|
5683
|
+
for (let M = T.length - 1; M >= 0 && (B.pop(), T[M].type !== "brace"); M--)
|
|
5684
|
+
T[M].type !== "dots" && G.unshift(T[M].value);
|
|
5685
|
+
A = c(G, h), D.backtrack = !0;
|
|
5673
5686
|
}
|
|
5674
5687
|
if (b.comma !== !0 && b.dots !== !0) {
|
|
5675
|
-
const T = D.output.slice(0, b.outputIndex),
|
|
5688
|
+
const T = D.output.slice(0, b.outputIndex), G = D.tokens.slice(b.tokensIndex);
|
|
5676
5689
|
b.value = b.output = "\\{", x = A = "\\}", D.output = T;
|
|
5677
|
-
for (const M of
|
|
5690
|
+
for (const M of G)
|
|
5678
5691
|
D.output += M.output || M.value;
|
|
5679
5692
|
}
|
|
5680
5693
|
y({ type: "brace", value: x, output: A }), g("braces"), Re.pop();
|
|
@@ -5692,24 +5705,24 @@ function Af() {
|
|
|
5692
5705
|
}
|
|
5693
5706
|
if (x === "/") {
|
|
5694
5707
|
if (S.type === "dot" && D.index === D.start + 1) {
|
|
5695
|
-
D.start = D.index + 1, D.consumed = "", D.output = "",
|
|
5708
|
+
D.start = D.index + 1, D.consumed = "", D.output = "", B.pop(), S = j;
|
|
5696
5709
|
continue;
|
|
5697
5710
|
}
|
|
5698
|
-
y({ type: "slash", value: x, output:
|
|
5711
|
+
y({ type: "slash", value: x, output: ne });
|
|
5699
5712
|
continue;
|
|
5700
5713
|
}
|
|
5701
5714
|
if (x === ".") {
|
|
5702
5715
|
if (D.braces > 0 && S.type === "dot") {
|
|
5703
|
-
S.value === "." && (S.output =
|
|
5716
|
+
S.value === "." && (S.output = re);
|
|
5704
5717
|
const b = Re[Re.length - 1];
|
|
5705
5718
|
S.type = "dots", S.output += x, S.value += x, b.dots = !0;
|
|
5706
5719
|
continue;
|
|
5707
5720
|
}
|
|
5708
5721
|
if (D.braces + D.parens === 0 && S.type !== "bos" && S.type !== "slash") {
|
|
5709
|
-
y({ type: "text", value: x, output:
|
|
5722
|
+
y({ type: "text", value: x, output: re });
|
|
5710
5723
|
continue;
|
|
5711
5724
|
}
|
|
5712
|
-
y({ type: "dot", value: x, output:
|
|
5725
|
+
y({ type: "dot", value: x, output: re });
|
|
5713
5726
|
continue;
|
|
5714
5727
|
}
|
|
5715
5728
|
if (x === "?") {
|
|
@@ -5724,7 +5737,7 @@ function Af() {
|
|
|
5724
5737
|
continue;
|
|
5725
5738
|
}
|
|
5726
5739
|
if (h.dot !== !0 && (S.type === "slash" || S.type === "bos")) {
|
|
5727
|
-
y({ type: "qmark", value: x, output:
|
|
5740
|
+
y({ type: "qmark", value: x, output: se });
|
|
5728
5741
|
continue;
|
|
5729
5742
|
}
|
|
5730
5743
|
y({ type: "qmark", value: x, output: N });
|
|
@@ -5784,7 +5797,7 @@ function Af() {
|
|
|
5784
5797
|
_e(x);
|
|
5785
5798
|
continue;
|
|
5786
5799
|
}
|
|
5787
|
-
const b = S.prev, A = b.prev, T = b.type === "slash" || b.type === "bos",
|
|
5800
|
+
const b = S.prev, A = b.prev, T = b.type === "slash" || b.type === "bos", G = A && (A.type === "star" || A.type === "globstar");
|
|
5788
5801
|
if (h.bash === !0 && (!T || _[0] && _[0] !== "/")) {
|
|
5789
5802
|
y({ type: "star", value: x, output: "" });
|
|
5790
5803
|
continue;
|
|
@@ -5795,8 +5808,8 @@ function Af() {
|
|
|
5795
5808
|
continue;
|
|
5796
5809
|
}
|
|
5797
5810
|
for (; _.slice(0, 3) === "/**"; ) {
|
|
5798
|
-
const
|
|
5799
|
-
if (
|
|
5811
|
+
const oe = p[D.index + 4];
|
|
5812
|
+
if (oe && oe !== "/")
|
|
5800
5813
|
break;
|
|
5801
5814
|
_ = _.slice(3), _e("/**", 3);
|
|
5802
5815
|
}
|
|
@@ -5804,17 +5817,17 @@ function Af() {
|
|
|
5804
5817
|
S.type = "globstar", S.value += x, S.output = ve(h), D.output = S.output, D.globstar = !0, _e(x);
|
|
5805
5818
|
continue;
|
|
5806
5819
|
}
|
|
5807
|
-
if (b.type === "slash" && b.prev.type !== "bos" && !
|
|
5820
|
+
if (b.type === "slash" && b.prev.type !== "bos" && !G && ke()) {
|
|
5808
5821
|
D.output = D.output.slice(0, -(b.output + S.output).length), b.output = `(?:${b.output}`, S.type = "globstar", S.output = ve(h) + (h.strictSlashes ? ")" : "|$)"), S.value += x, D.globstar = !0, D.output += b.output + S.output, _e(x);
|
|
5809
5822
|
continue;
|
|
5810
5823
|
}
|
|
5811
5824
|
if (b.type === "slash" && b.prev.type !== "bos" && _[0] === "/") {
|
|
5812
|
-
const
|
|
5813
|
-
D.output = D.output.slice(0, -(b.output + S.output).length), b.output = `(?:${b.output}`, S.type = "globstar", S.output = `${ve(h)}${
|
|
5825
|
+
const oe = _[1] !== void 0 ? "|$" : "";
|
|
5826
|
+
D.output = D.output.slice(0, -(b.output + S.output).length), b.output = `(?:${b.output}`, S.type = "globstar", S.output = `${ve(h)}${ne}|${ne}${oe})`, S.value += x, D.output += b.output + S.output, D.globstar = !0, _e(x + de()), y({ type: "slash", value: "/", output: "" });
|
|
5814
5827
|
continue;
|
|
5815
5828
|
}
|
|
5816
5829
|
if (b.type === "bos" && _[0] === "/") {
|
|
5817
|
-
S.type = "globstar", S.value += x, S.output = `(?:^|${
|
|
5830
|
+
S.type = "globstar", S.value += x, S.output = `(?:^|${ne}|${ve(h)}${ne})`, D.output = S.output, D.globstar = !0, _e(x + de()), y({ type: "slash", value: "/", output: "" });
|
|
5818
5831
|
continue;
|
|
5819
5832
|
}
|
|
5820
5833
|
D.output = D.output.slice(0, -S.output.length), S.type = "globstar", S.output = ve(h), S.value += x, D.output += S.output, D.globstar = !0, _e(x);
|
|
@@ -5829,7 +5842,7 @@ function Af() {
|
|
|
5829
5842
|
P.output = x, y(P);
|
|
5830
5843
|
continue;
|
|
5831
5844
|
}
|
|
5832
|
-
(D.index === D.start || S.type === "slash" || S.type === "dot") && (S.type === "dot" ? (D.output +=
|
|
5845
|
+
(D.index === D.start || S.type === "slash" || S.type === "dot") && (S.type === "dot" ? (D.output += k, S.output += k) : h.dot === !0 ? (D.output += F, S.output += F) : (D.output += z, S.output += z), Z() !== "*" && (D.output += le, S.output += le)), y(P);
|
|
5833
5846
|
}
|
|
5834
5847
|
for (; D.brackets > 0; ) {
|
|
5835
5848
|
if (h.strictBrackets === !0) throw new SyntaxError(l("closing", "]"));
|
|
@@ -5843,7 +5856,7 @@ function Af() {
|
|
|
5843
5856
|
if (h.strictBrackets === !0) throw new SyntaxError(l("closing", "}"));
|
|
5844
5857
|
D.output = t.escapeLast(D.output, "{"), g("braces");
|
|
5845
5858
|
}
|
|
5846
|
-
if (h.strictSlashes !== !0 && (S.type === "star" || S.type === "bracket") && y({ type: "maybe_slash", value: "", output: `${
|
|
5859
|
+
if (h.strictSlashes !== !0 && (S.type === "star" || S.type === "bracket") && y({ type: "maybe_slash", value: "", output: `${ne}?` }), D.backtrack === !0) {
|
|
5847
5860
|
D.output = "";
|
|
5848
5861
|
for (const _ of D.tokens)
|
|
5849
5862
|
D.output += _.output != null ? _.output : _.value, _.suffix && (D.output += _.suffix);
|
|
@@ -5851,51 +5864,51 @@ function Af() {
|
|
|
5851
5864
|
return D;
|
|
5852
5865
|
};
|
|
5853
5866
|
return E.fastpaths = (p, d) => {
|
|
5854
|
-
const h = { ...d }, O = typeof h.maxLength == "number" ? Math.min(n, h.maxLength) : n,
|
|
5855
|
-
if (
|
|
5856
|
-
throw new SyntaxError(`Input length: ${
|
|
5867
|
+
const h = { ...d }, O = typeof h.maxLength == "number" ? Math.min(n, h.maxLength) : n, $ = p.length;
|
|
5868
|
+
if ($ > O)
|
|
5869
|
+
throw new SyntaxError(`Input length: ${$}, exceeds maximum allowed length: ${O}`);
|
|
5857
5870
|
p = i[p] || p;
|
|
5858
5871
|
const {
|
|
5859
|
-
DOT_LITERAL:
|
|
5860
|
-
SLASH_LITERAL:
|
|
5861
|
-
ONE_CHAR:
|
|
5862
|
-
DOTS_SLASH:
|
|
5863
|
-
NO_DOT:
|
|
5864
|
-
NO_DOTS:
|
|
5872
|
+
DOT_LITERAL: j,
|
|
5873
|
+
SLASH_LITERAL: B,
|
|
5874
|
+
ONE_CHAR: J,
|
|
5875
|
+
DOTS_SLASH: te,
|
|
5876
|
+
NO_DOT: U,
|
|
5877
|
+
NO_DOTS: re,
|
|
5865
5878
|
NO_DOTS_SLASH: L,
|
|
5866
|
-
STAR:
|
|
5879
|
+
STAR: ne,
|
|
5867
5880
|
START_ANCHOR: le
|
|
5868
|
-
} = e.globChars(h.windows), pe = h.dot ?
|
|
5869
|
-
let N = h.bash === !0 ? ".*?" :
|
|
5881
|
+
} = e.globChars(h.windows), pe = h.dot ? re : U, K = h.dot ? L : U, k = h.capture ? "" : "?:", F = { negated: !1, prefix: "" };
|
|
5882
|
+
let N = h.bash === !0 ? ".*?" : ne;
|
|
5870
5883
|
h.capture && (N = `(${N})`);
|
|
5871
|
-
const
|
|
5884
|
+
const se = (z) => z.noglobstar === !0 ? N : `(${k}(?:(?!${le}${z.dot ? te : j}).)*?)`, ge = (z) => {
|
|
5872
5885
|
switch (z) {
|
|
5873
5886
|
case "*":
|
|
5874
|
-
return `${pe}${
|
|
5887
|
+
return `${pe}${J}${N}`;
|
|
5875
5888
|
case ".*":
|
|
5876
|
-
return `${
|
|
5889
|
+
return `${j}${J}${N}`;
|
|
5877
5890
|
case "*.*":
|
|
5878
|
-
return `${pe}${N}${
|
|
5891
|
+
return `${pe}${N}${j}${J}${N}`;
|
|
5879
5892
|
case "*/*":
|
|
5880
|
-
return `${pe}${N}${
|
|
5893
|
+
return `${pe}${N}${B}${J}${K}${N}`;
|
|
5881
5894
|
case "**":
|
|
5882
|
-
return pe +
|
|
5895
|
+
return pe + se(h);
|
|
5883
5896
|
case "**/*":
|
|
5884
|
-
return `(?:${pe}${
|
|
5897
|
+
return `(?:${pe}${se(h)}${B})?${K}${J}${N}`;
|
|
5885
5898
|
case "**/*.*":
|
|
5886
|
-
return `(?:${pe}${
|
|
5899
|
+
return `(?:${pe}${se(h)}${B})?${K}${N}${j}${J}${N}`;
|
|
5887
5900
|
case "**/.*":
|
|
5888
|
-
return `(?:${pe}${
|
|
5901
|
+
return `(?:${pe}${se(h)}${B})?${j}${J}${N}`;
|
|
5889
5902
|
default: {
|
|
5890
|
-
const
|
|
5891
|
-
if (!
|
|
5892
|
-
const ye = ge(
|
|
5893
|
-
return ye ? ye +
|
|
5903
|
+
const ie = /^(.*?)\.(\w+)$/.exec(z);
|
|
5904
|
+
if (!ie) return;
|
|
5905
|
+
const ye = ge(ie[1]);
|
|
5906
|
+
return ye ? ye + j + ie[2] : void 0;
|
|
5894
5907
|
}
|
|
5895
5908
|
}
|
|
5896
|
-
}, we = t.removePrefix(p,
|
|
5909
|
+
}, we = t.removePrefix(p, F);
|
|
5897
5910
|
let ve = ge(we);
|
|
5898
|
-
return ve && h.strictSlashes !== !0 && (ve += `${
|
|
5911
|
+
return ve && h.strictSlashes !== !0 && (ve += `${B}?`), ve;
|
|
5899
5912
|
}, No = E, No;
|
|
5900
5913
|
}
|
|
5901
5914
|
var To, pi;
|
|
@@ -5904,11 +5917,11 @@ function Nf() {
|
|
|
5904
5917
|
pi = 1;
|
|
5905
5918
|
const e = /* @__PURE__ */ Sf(), t = /* @__PURE__ */ Af(), n = /* @__PURE__ */ oo(), r = /* @__PURE__ */ ro(), s = (i) => i && typeof i == "object" && !Array.isArray(i), o = (i, c, l = !1) => {
|
|
5906
5919
|
if (Array.isArray(i)) {
|
|
5907
|
-
const
|
|
5908
|
-
return (
|
|
5909
|
-
for (const
|
|
5910
|
-
const
|
|
5911
|
-
if (
|
|
5920
|
+
const B = i.map((te) => o(te, c, l));
|
|
5921
|
+
return (te) => {
|
|
5922
|
+
for (const U of B) {
|
|
5923
|
+
const re = U(te);
|
|
5924
|
+
if (re) return re;
|
|
5912
5925
|
}
|
|
5913
5926
|
return !1;
|
|
5914
5927
|
};
|
|
@@ -5918,16 +5931,16 @@ function Nf() {
|
|
|
5918
5931
|
throw new TypeError("Expected pattern to be a non-empty string");
|
|
5919
5932
|
const p = c || {}, d = p.windows, h = E ? o.compileRe(i, c) : o.makeRe(i, c, !1, !0), O = h.state;
|
|
5920
5933
|
delete h.state;
|
|
5921
|
-
let
|
|
5934
|
+
let $ = () => !1;
|
|
5922
5935
|
if (p.ignore) {
|
|
5923
|
-
const
|
|
5924
|
-
|
|
5936
|
+
const B = { ...c, ignore: null, onMatch: null, onResult: null };
|
|
5937
|
+
$ = o(p.ignore, B, l);
|
|
5925
5938
|
}
|
|
5926
|
-
const
|
|
5927
|
-
const { isMatch:
|
|
5928
|
-
return typeof p.onResult == "function" && p.onResult(L),
|
|
5939
|
+
const j = (B, J = !1) => {
|
|
5940
|
+
const { isMatch: te, match: U, output: re } = o.test(B, h, c, { glob: i, posix: d }), L = { glob: i, state: O, regex: h, posix: d, input: B, output: re, match: U, isMatch: te };
|
|
5941
|
+
return typeof p.onResult == "function" && p.onResult(L), te === !1 ? (L.isMatch = !1, J ? L : !1) : $(B) ? (typeof p.onIgnore == "function" && p.onIgnore(L), L.isMatch = !1, J ? L : !1) : (typeof p.onMatch == "function" && p.onMatch(L), J ? L : !0);
|
|
5929
5942
|
};
|
|
5930
|
-
return l && (
|
|
5943
|
+
return l && (j.state = O), j;
|
|
5931
5944
|
};
|
|
5932
5945
|
return o.test = (i, c, l, { glob: E, posix: p } = {}) => {
|
|
5933
5946
|
if (typeof i != "string")
|
|
@@ -5935,16 +5948,16 @@ function Nf() {
|
|
|
5935
5948
|
if (i === "")
|
|
5936
5949
|
return { isMatch: !1, output: "" };
|
|
5937
5950
|
const d = l || {}, h = d.format || (p ? n.toPosixSlashes : null);
|
|
5938
|
-
let O = i === E,
|
|
5939
|
-
return O === !1 && (
|
|
5951
|
+
let O = i === E, $ = O && h ? h(i) : i;
|
|
5952
|
+
return O === !1 && ($ = h ? h(i) : i, O = $ === E), (O === !1 || d.capture === !0) && (d.matchBase === !0 || d.basename === !0 ? O = o.matchBase(i, c, l, p) : O = c.exec($)), { isMatch: !!O, match: O, output: $ };
|
|
5940
5953
|
}, o.matchBase = (i, c, l) => (c instanceof RegExp ? c : o.makeRe(c, l)).test(n.basename(i)), o.isMatch = (i, c, l) => o(c, l)(i), o.parse = (i, c) => Array.isArray(i) ? i.map((l) => o.parse(l, c)) : t(i, { ...c, fastpaths: !1 }), o.scan = (i, c) => e(i, c), o.compileRe = (i, c, l = !1, E = !1) => {
|
|
5941
5954
|
if (l === !0)
|
|
5942
5955
|
return i.output;
|
|
5943
5956
|
const p = c || {}, d = p.contains ? "" : "^", h = p.contains ? "" : "$";
|
|
5944
5957
|
let O = `${d}(?:${i.output})${h}`;
|
|
5945
5958
|
i && i.negated === !0 && (O = `^(?!${O}).*$`);
|
|
5946
|
-
const
|
|
5947
|
-
return E === !0 && (
|
|
5959
|
+
const $ = o.toRegex(O, c);
|
|
5960
|
+
return E === !0 && ($.state = i), $;
|
|
5948
5961
|
}, o.makeRe = (i, c = {}, l = !1, E = !1) => {
|
|
5949
5962
|
if (!i || typeof i != "string")
|
|
5950
5963
|
throw new TypeError("Expected a non-empty string");
|
|
@@ -6559,12 +6572,12 @@ function Dr(e, t, n, r, s, o) {
|
|
|
6559
6572
|
return p;
|
|
6560
6573
|
o.set(e, i), Ih(e) ? e.forEach(function(O) {
|
|
6561
6574
|
i.add(Dr(O, t, n, O, e, o));
|
|
6562
|
-
}) : Dh(e) && e.forEach(function(O,
|
|
6563
|
-
i.set(
|
|
6575
|
+
}) : Dh(e) && e.forEach(function(O, $) {
|
|
6576
|
+
i.set($, Dr(O, t, n, $, e, o));
|
|
6564
6577
|
});
|
|
6565
6578
|
var d = Kd, h = c ? void 0 : d(e);
|
|
6566
|
-
return Mp(h || e, function(O,
|
|
6567
|
-
h && (
|
|
6579
|
+
return Mp(h || e, function(O, $) {
|
|
6580
|
+
h && ($ = O, O = e[$]), Hp(i, $, Dr(O, t, n, $, e, o));
|
|
6568
6581
|
}), i;
|
|
6569
6582
|
}
|
|
6570
6583
|
var rg = 1, og = 4;
|
|
@@ -6771,7 +6784,7 @@ function dg() {
|
|
|
6771
6784
|
}
|
|
6772
6785
|
return !1;
|
|
6773
6786
|
}
|
|
6774
|
-
function
|
|
6787
|
+
function $() {
|
|
6775
6788
|
var a = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : window, u = a.location;
|
|
6776
6789
|
if (!u) throw new Error("Can not read window location");
|
|
6777
6790
|
var m = u.protocol;
|
|
@@ -6779,17 +6792,17 @@ function dg() {
|
|
|
6779
6792
|
if (m === c.FILE) return c.FILE + "//";
|
|
6780
6793
|
if (m === c.ABOUT) {
|
|
6781
6794
|
var v = d(a);
|
|
6782
|
-
return v && O(v) ?
|
|
6795
|
+
return v && O(v) ? $(v) : c.ABOUT + "//";
|
|
6783
6796
|
}
|
|
6784
6797
|
var w = u.host;
|
|
6785
6798
|
if (!w) throw new Error("Can not read window host");
|
|
6786
6799
|
return m + "//" + w;
|
|
6787
6800
|
}
|
|
6788
|
-
function
|
|
6789
|
-
var a = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : window, u =
|
|
6801
|
+
function j() {
|
|
6802
|
+
var a = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : window, u = $(a);
|
|
6790
6803
|
return u && a.mockDomain && a.mockDomain.indexOf(c.MOCK) === 0 ? a.mockDomain : u;
|
|
6791
6804
|
}
|
|
6792
|
-
function
|
|
6805
|
+
function B(a) {
|
|
6793
6806
|
try {
|
|
6794
6807
|
if (a === window) return !0;
|
|
6795
6808
|
} catch {
|
|
@@ -6804,12 +6817,12 @@ function dg() {
|
|
|
6804
6817
|
} catch {
|
|
6805
6818
|
}
|
|
6806
6819
|
try {
|
|
6807
|
-
if (
|
|
6820
|
+
if ($(a) === $(window)) return !0;
|
|
6808
6821
|
} catch {
|
|
6809
6822
|
}
|
|
6810
6823
|
return !1;
|
|
6811
6824
|
}
|
|
6812
|
-
function
|
|
6825
|
+
function J(a, u) {
|
|
6813
6826
|
if (!a || !u) return !1;
|
|
6814
6827
|
var m = d(u);
|
|
6815
6828
|
return m ? m === a : function(v) {
|
|
@@ -6822,7 +6835,7 @@ function dg() {
|
|
|
6822
6835
|
return w;
|
|
6823
6836
|
}(u).indexOf(a) !== -1;
|
|
6824
6837
|
}
|
|
6825
|
-
function
|
|
6838
|
+
function te(a) {
|
|
6826
6839
|
var u = [], m = void 0;
|
|
6827
6840
|
try {
|
|
6828
6841
|
m = a.frames;
|
|
@@ -6837,29 +6850,29 @@ function dg() {
|
|
|
6837
6850
|
if (v === 0) return u;
|
|
6838
6851
|
if (v) {
|
|
6839
6852
|
for (var w = 0; w < v; w++) {
|
|
6840
|
-
var
|
|
6853
|
+
var I = void 0;
|
|
6841
6854
|
try {
|
|
6842
|
-
|
|
6855
|
+
I = m[w];
|
|
6843
6856
|
} catch {
|
|
6844
6857
|
continue;
|
|
6845
6858
|
}
|
|
6846
|
-
u.push(
|
|
6859
|
+
u.push(I);
|
|
6847
6860
|
}
|
|
6848
6861
|
return u;
|
|
6849
6862
|
}
|
|
6850
6863
|
for (var V = 0; V < 100; V++) {
|
|
6851
|
-
var
|
|
6864
|
+
var Y = void 0;
|
|
6852
6865
|
try {
|
|
6853
|
-
|
|
6866
|
+
Y = m[V];
|
|
6854
6867
|
} catch {
|
|
6855
6868
|
return u;
|
|
6856
6869
|
}
|
|
6857
|
-
if (!
|
|
6858
|
-
u.push(
|
|
6870
|
+
if (!Y) return u;
|
|
6871
|
+
u.push(Y);
|
|
6859
6872
|
}
|
|
6860
6873
|
return u;
|
|
6861
6874
|
}
|
|
6862
|
-
var
|
|
6875
|
+
var U = [], re = [];
|
|
6863
6876
|
function L(a) {
|
|
6864
6877
|
var u = !(arguments.length > 1 && arguments[1] !== void 0) || arguments[1];
|
|
6865
6878
|
try {
|
|
@@ -6878,9 +6891,9 @@ function dg() {
|
|
|
6878
6891
|
return !w || w.message !== E;
|
|
6879
6892
|
}
|
|
6880
6893
|
if (u && function(w) {
|
|
6881
|
-
if (!
|
|
6894
|
+
if (!B(w)) return !1;
|
|
6882
6895
|
try {
|
|
6883
|
-
if (w === window || p(w) && O(w) ||
|
|
6896
|
+
if (w === window || p(w) && O(w) || j(window) === j(w)) return !0;
|
|
6884
6897
|
} catch {
|
|
6885
6898
|
}
|
|
6886
6899
|
return !1;
|
|
@@ -6892,24 +6905,24 @@ function dg() {
|
|
|
6892
6905
|
if (!a.parent || !a.top) return !0;
|
|
6893
6906
|
} catch {
|
|
6894
6907
|
}
|
|
6895
|
-
var m = function(w,
|
|
6908
|
+
var m = function(w, I) {
|
|
6896
6909
|
for (var V = 0; V < w.length; V++) try {
|
|
6897
|
-
if (w[V] ===
|
|
6910
|
+
if (w[V] === I) return V;
|
|
6898
6911
|
} catch {
|
|
6899
6912
|
}
|
|
6900
6913
|
return -1;
|
|
6901
|
-
}(
|
|
6914
|
+
}(U, a);
|
|
6902
6915
|
if (m !== -1) {
|
|
6903
|
-
var v =
|
|
6916
|
+
var v = re[m];
|
|
6904
6917
|
if (v && function(w) {
|
|
6905
6918
|
if (!w.contentWindow || !w.parentNode) return !0;
|
|
6906
|
-
var
|
|
6907
|
-
return !(
|
|
6919
|
+
var I = w.ownerDocument;
|
|
6920
|
+
return !(!I || !I.documentElement || I.documentElement.contains(w));
|
|
6908
6921
|
}(v)) return !0;
|
|
6909
6922
|
}
|
|
6910
6923
|
return !1;
|
|
6911
6924
|
}
|
|
6912
|
-
function
|
|
6925
|
+
function ne() {
|
|
6913
6926
|
var a = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : window;
|
|
6914
6927
|
return h(a = a || window) || d(a) || void 0;
|
|
6915
6928
|
}
|
|
@@ -6960,14 +6973,14 @@ function dg() {
|
|
|
6960
6973
|
}
|
|
6961
6974
|
return !1;
|
|
6962
6975
|
}
|
|
6963
|
-
function
|
|
6976
|
+
function K(a, u) {
|
|
6964
6977
|
for (var m = 0; m < a.length; m++) try {
|
|
6965
6978
|
if (a[m] === u) return m;
|
|
6966
6979
|
} catch {
|
|
6967
6980
|
}
|
|
6968
6981
|
return -1;
|
|
6969
6982
|
}
|
|
6970
|
-
var
|
|
6983
|
+
var k, F = function() {
|
|
6971
6984
|
function a() {
|
|
6972
6985
|
if (function(u, m) {
|
|
6973
6986
|
if (!(u instanceof a)) throw new TypeError("Cannot call a class as a function");
|
|
@@ -7013,8 +7026,8 @@ function dg() {
|
|
|
7013
7026
|
delete this.weakmap;
|
|
7014
7027
|
}
|
|
7015
7028
|
if (this.isSafeToReadWrite(u)) try {
|
|
7016
|
-
var w = this.name,
|
|
7017
|
-
|
|
7029
|
+
var w = this.name, I = u[w];
|
|
7030
|
+
I && I[0] === u ? I[1] = m : Object.defineProperty(u, w, {
|
|
7018
7031
|
value: [u, m],
|
|
7019
7032
|
writable: !0
|
|
7020
7033
|
});
|
|
@@ -7022,8 +7035,8 @@ function dg() {
|
|
|
7022
7035
|
} catch {
|
|
7023
7036
|
}
|
|
7024
7037
|
this._cleanupClosedWindows();
|
|
7025
|
-
var V = this.keys,
|
|
7026
|
-
|
|
7038
|
+
var V = this.keys, Y = this.values, X = K(V, u);
|
|
7039
|
+
X === -1 ? (V.push(u), Y.push(m)) : Y[X] = m;
|
|
7027
7040
|
}, a.prototype.get = function(u) {
|
|
7028
7041
|
if (!u) throw new Error("WeakMap expected key");
|
|
7029
7042
|
var m = this.weakmap;
|
|
@@ -7038,7 +7051,7 @@ function dg() {
|
|
|
7038
7051
|
} catch {
|
|
7039
7052
|
}
|
|
7040
7053
|
this._cleanupClosedWindows();
|
|
7041
|
-
var w =
|
|
7054
|
+
var w = K(this.keys, u);
|
|
7042
7055
|
if (w !== -1) return this.values[w];
|
|
7043
7056
|
}, a.prototype.delete = function(u) {
|
|
7044
7057
|
if (!u) throw new Error("WeakMap expected key");
|
|
@@ -7054,8 +7067,8 @@ function dg() {
|
|
|
7054
7067
|
} catch {
|
|
7055
7068
|
}
|
|
7056
7069
|
this._cleanupClosedWindows();
|
|
7057
|
-
var w = this.keys,
|
|
7058
|
-
|
|
7070
|
+
var w = this.keys, I = K(w, u);
|
|
7071
|
+
I !== -1 && (w.splice(I, 1), this.values.splice(I, 1));
|
|
7059
7072
|
}, a.prototype.has = function(u) {
|
|
7060
7073
|
if (!u) throw new Error("WeakMap expected key");
|
|
7061
7074
|
var m = this.weakmap;
|
|
@@ -7069,7 +7082,7 @@ function dg() {
|
|
|
7069
7082
|
return !(!v || v[0] !== u);
|
|
7070
7083
|
} catch {
|
|
7071
7084
|
}
|
|
7072
|
-
return this._cleanupClosedWindows(),
|
|
7085
|
+
return this._cleanupClosedWindows(), K(this.keys, u) !== -1;
|
|
7073
7086
|
}, a.prototype.getOrSet = function(u, m) {
|
|
7074
7087
|
if (this.has(u)) return this.get(u);
|
|
7075
7088
|
var v = m();
|
|
@@ -7115,19 +7128,19 @@ function dg() {
|
|
|
7115
7128
|
BRIDGE_NAME_PREFIX: "__postrobot_bridge__",
|
|
7116
7129
|
POSTROBOT_PROXY: "__postrobot_proxy__",
|
|
7117
7130
|
WILDCARD: "*"
|
|
7118
|
-
},
|
|
7131
|
+
}, se = {
|
|
7119
7132
|
METHOD: "postrobot_method",
|
|
7120
7133
|
HELLO: "postrobot_hello",
|
|
7121
7134
|
OPEN_TUNNEL: "postrobot_open_tunnel"
|
|
7122
|
-
}, ge = (Object.keys(
|
|
7123
|
-
return
|
|
7135
|
+
}, ge = (Object.keys(se).map(function(a) {
|
|
7136
|
+
return se[a];
|
|
7124
7137
|
}), {
|
|
7125
7138
|
ALLOW_POSTMESSAGE_POPUP: !("__ALLOW_POSTMESSAGE_POPUP__" in window) || window.__ALLOW_POSTMESSAGE_POPUP__,
|
|
7126
7139
|
BRIDGE_TIMEOUT: 5e3,
|
|
7127
7140
|
CHILD_WINDOW_TIMEOUT: 5e3,
|
|
7128
7141
|
ACK_TIMEOUT: window.navigator.userAgent.match(/MSIE/i) !== -1 ? 1e4 : 2e3,
|
|
7129
7142
|
RES_TIMEOUT: -1,
|
|
7130
|
-
ALLOWED_POST_MESSAGE_METHODS: (
|
|
7143
|
+
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),
|
|
7131
7144
|
ALLOW_SAME_ORIGIN: !1
|
|
7132
7145
|
});
|
|
7133
7146
|
window.location.href.indexOf(N.FILE_PROTOCOL) === 0 && (ge.ALLOW_POSTMESSAGE_POPUP = !0);
|
|
@@ -7162,7 +7175,7 @@ function dg() {
|
|
|
7162
7175
|
return u = !0, a.apply(this, arguments);
|
|
7163
7176
|
};
|
|
7164
7177
|
};
|
|
7165
|
-
function
|
|
7178
|
+
function ie() {
|
|
7166
7179
|
}
|
|
7167
7180
|
function ye() {
|
|
7168
7181
|
var a = "0123456789abcdef";
|
|
@@ -7178,15 +7191,15 @@ function dg() {
|
|
|
7178
7191
|
if (!Array.isArray(a)) throw new TypeError("Invalid type: " + (a === void 0 ? "undefined" : we(a)));
|
|
7179
7192
|
v = [];
|
|
7180
7193
|
} else v = {};
|
|
7181
|
-
return function(w,
|
|
7182
|
-
Array.isArray(w) ? function(V,
|
|
7183
|
-
for (var
|
|
7184
|
-
}(w,
|
|
7185
|
-
for (var
|
|
7186
|
-
}(w,
|
|
7187
|
-
}(a, function(w,
|
|
7188
|
-
var V = u(w,
|
|
7189
|
-
V !== void 0 ? v[
|
|
7194
|
+
return function(w, I) {
|
|
7195
|
+
Array.isArray(w) ? function(V, Y) {
|
|
7196
|
+
for (var X = 0; X < V.length; X++) Y(V[X], X);
|
|
7197
|
+
}(w, I) : (w === void 0 ? "undefined" : we(w)) === "object" && w !== null && function(V, Y) {
|
|
7198
|
+
for (var X in V) V.hasOwnProperty(X) && Y(V[X], X);
|
|
7199
|
+
}(w, I);
|
|
7200
|
+
}(a, function(w, I) {
|
|
7201
|
+
var V = u(w, I);
|
|
7202
|
+
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;
|
|
7190
7203
|
}), v;
|
|
7191
7204
|
}
|
|
7192
7205
|
function Oe(a) {
|
|
@@ -7224,22 +7237,22 @@ function dg() {
|
|
|
7224
7237
|
var _e = function() {
|
|
7225
7238
|
function a(u) {
|
|
7226
7239
|
var m = this;
|
|
7227
|
-
if (function(
|
|
7228
|
-
if (!(
|
|
7240
|
+
if (function(X, ae) {
|
|
7241
|
+
if (!(X instanceof a)) throw new TypeError("Cannot call a class as a function");
|
|
7229
7242
|
}(this), this.resolved = !1, this.rejected = !1, this.errorHandled = !1, this.handlers = [], u) {
|
|
7230
|
-
var v = void 0, w = void 0,
|
|
7243
|
+
var v = void 0, w = void 0, I = !1, V = !1, Y = !1;
|
|
7231
7244
|
de();
|
|
7232
7245
|
try {
|
|
7233
|
-
u(function(
|
|
7234
|
-
|
|
7235
|
-
}, function(
|
|
7236
|
-
|
|
7246
|
+
u(function(X) {
|
|
7247
|
+
Y ? m.resolve(X) : (I = !0, v = X);
|
|
7248
|
+
}, function(X) {
|
|
7249
|
+
Y ? m.reject(X) : (V = !0, w = X);
|
|
7237
7250
|
});
|
|
7238
|
-
} catch (
|
|
7239
|
-
$e(), this.reject(
|
|
7251
|
+
} catch (X) {
|
|
7252
|
+
$e(), this.reject(X);
|
|
7240
7253
|
return;
|
|
7241
7254
|
}
|
|
7242
|
-
$e(),
|
|
7255
|
+
$e(), Y = !0, I ? this.resolve(v) : V && this.reject(w);
|
|
7243
7256
|
}
|
|
7244
7257
|
}
|
|
7245
7258
|
return a.prototype.resolve = function(u) {
|
|
@@ -7255,12 +7268,12 @@ function dg() {
|
|
|
7255
7268
|
u = new Error("Expected reject to be called with Error, got " + v);
|
|
7256
7269
|
}
|
|
7257
7270
|
return this.rejected = !0, this.error = u, this.errorHandled || setTimeout(function() {
|
|
7258
|
-
m.errorHandled || function(w,
|
|
7271
|
+
m.errorHandled || function(w, I) {
|
|
7259
7272
|
if (Pe.indexOf(w) === -1) {
|
|
7260
7273
|
Pe.push(w), setTimeout(function() {
|
|
7261
7274
|
throw w;
|
|
7262
7275
|
}, 1);
|
|
7263
|
-
for (var V = 0; V < S.length; V++) S[V](w,
|
|
7276
|
+
for (var V = 0; V < S.length; V++) S[V](w, I);
|
|
7264
7277
|
}
|
|
7265
7278
|
}(u, m);
|
|
7266
7279
|
}, 1), this.dispatch(), this;
|
|
@@ -7270,16 +7283,16 @@ function dg() {
|
|
|
7270
7283
|
var u = this.dispatching, m = this.resolved, v = this.rejected, w = this.handlers;
|
|
7271
7284
|
if (!u && (m || v)) {
|
|
7272
7285
|
this.dispatching = !0, de();
|
|
7273
|
-
for (var
|
|
7286
|
+
for (var I = function(fe, he) {
|
|
7274
7287
|
return fe.then(function(Le) {
|
|
7275
7288
|
he.resolve(Le);
|
|
7276
7289
|
}, function(Le) {
|
|
7277
7290
|
he.reject(Le);
|
|
7278
7291
|
});
|
|
7279
7292
|
}, V = 0; V < w.length; V++) {
|
|
7280
|
-
var
|
|
7293
|
+
var Y = w[V], X = Y.onSuccess, ae = Y.onError, ee = Y.promise, q = void 0;
|
|
7281
7294
|
if (m) try {
|
|
7282
|
-
q =
|
|
7295
|
+
q = X ? X(this.value) : this.value;
|
|
7283
7296
|
} catch (fe) {
|
|
7284
7297
|
ee.reject(fe);
|
|
7285
7298
|
continue;
|
|
@@ -7296,7 +7309,7 @@ function dg() {
|
|
|
7296
7309
|
continue;
|
|
7297
7310
|
}
|
|
7298
7311
|
}
|
|
7299
|
-
q instanceof a && (q.resolved || q.rejected) ? (q.resolved ? ee.resolve(q.value) : ee.reject(q.error), q.errorHandled = !0) : Re(q) ? q instanceof a && (q.resolved || q.rejected) ? q.resolved ? ee.resolve(q.value) : ee.reject(q.error) :
|
|
7312
|
+
q instanceof a && (q.resolved || q.rejected) ? (q.resolved ? ee.resolve(q.value) : ee.reject(q.error), q.errorHandled = !0) : Re(q) ? q instanceof a && (q.resolved || q.rejected) ? q.resolved ? ee.resolve(q.value) : ee.reject(q.error) : I(q, ee) : ee.resolve(q);
|
|
7300
7313
|
}
|
|
7301
7314
|
w.length = 0, this.dispatching = !1, $e();
|
|
7302
7315
|
}
|
|
@@ -7328,8 +7341,8 @@ function dg() {
|
|
|
7328
7341
|
var w = setTimeout(function() {
|
|
7329
7342
|
v.resolved || v.rejected || v.reject(m || new Error("Promise timed out after " + u + "ms"));
|
|
7330
7343
|
}, u);
|
|
7331
|
-
return this.then(function(
|
|
7332
|
-
return clearTimeout(w),
|
|
7344
|
+
return this.then(function(I) {
|
|
7345
|
+
return clearTimeout(w), I;
|
|
7333
7346
|
});
|
|
7334
7347
|
}, a.prototype.toPromise = function() {
|
|
7335
7348
|
if (typeof Promise > "u") throw new TypeError("Could not find Promise");
|
|
@@ -7346,24 +7359,24 @@ function dg() {
|
|
|
7346
7359
|
var m = new a(), v = u.length, w = [];
|
|
7347
7360
|
if (!v)
|
|
7348
7361
|
return m.resolve(w), m;
|
|
7349
|
-
for (var
|
|
7362
|
+
for (var I = function(X, ae, ee) {
|
|
7350
7363
|
return ae.then(function(q) {
|
|
7351
|
-
w[
|
|
7364
|
+
w[X] = q, (v -= 1) == 0 && m.resolve(w);
|
|
7352
7365
|
}, function(q) {
|
|
7353
7366
|
ee.reject(q);
|
|
7354
7367
|
});
|
|
7355
7368
|
}, V = 0; V < u.length; V++) {
|
|
7356
|
-
var
|
|
7357
|
-
if (
|
|
7358
|
-
if (
|
|
7359
|
-
w[V] =
|
|
7369
|
+
var Y = u[V];
|
|
7370
|
+
if (Y instanceof a) {
|
|
7371
|
+
if (Y.resolved) {
|
|
7372
|
+
w[V] = Y.value, v -= 1;
|
|
7360
7373
|
continue;
|
|
7361
7374
|
}
|
|
7362
|
-
} else if (!Re(
|
|
7363
|
-
w[V] =
|
|
7375
|
+
} else if (!Re(Y)) {
|
|
7376
|
+
w[V] = Y, v -= 1;
|
|
7364
7377
|
continue;
|
|
7365
7378
|
}
|
|
7366
|
-
|
|
7379
|
+
I(V, a.resolve(Y), m);
|
|
7367
7380
|
}
|
|
7368
7381
|
return v === 0 && m.resolve(w), m;
|
|
7369
7382
|
}, a.hash = function(u) {
|
|
@@ -7391,8 +7404,8 @@ function dg() {
|
|
|
7391
7404
|
de();
|
|
7392
7405
|
try {
|
|
7393
7406
|
w = u.apply(m, v || []);
|
|
7394
|
-
} catch (
|
|
7395
|
-
return $e(), a.reject(
|
|
7407
|
+
} catch (I) {
|
|
7408
|
+
return $e(), a.reject(I);
|
|
7396
7409
|
}
|
|
7397
7410
|
return $e(), a.resolve(w);
|
|
7398
7411
|
}, a.delay = function(u) {
|
|
@@ -7407,26 +7420,26 @@ function dg() {
|
|
|
7407
7420
|
return Z(), m;
|
|
7408
7421
|
}();
|
|
7409
7422
|
}, a;
|
|
7410
|
-
}(),
|
|
7411
|
-
|
|
7423
|
+
}(), W = window[N.WINDOW_PROPS.POSTROBOT] = window[N.WINDOW_PROPS.POSTROBOT] || {};
|
|
7424
|
+
W.registerSelf = function() {
|
|
7412
7425
|
};
|
|
7413
7426
|
var Me = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(a) {
|
|
7414
7427
|
return typeof a;
|
|
7415
7428
|
} : function(a) {
|
|
7416
7429
|
return a && typeof Symbol == "function" && a.constructor === Symbol && a !== Symbol.prototype ? "symbol" : typeof a;
|
|
7417
7430
|
};
|
|
7418
|
-
|
|
7431
|
+
W.methods = W.methods || new F();
|
|
7419
7432
|
var f = z(function() {
|
|
7420
|
-
|
|
7433
|
+
W.on(N.POST_MESSAGE_NAMES.METHOD, {
|
|
7421
7434
|
origin: N.WILDCARD
|
|
7422
7435
|
}, function(a) {
|
|
7423
|
-
var u = a.source, m = a.origin, v = a.data, w =
|
|
7436
|
+
var u = a.source, m = a.origin, v = a.data, w = W.methods.get(u);
|
|
7424
7437
|
if (!w) throw new Error("Could not find any methods this window has privileges to call");
|
|
7425
|
-
var
|
|
7426
|
-
if (
|
|
7427
|
-
if (!le(
|
|
7438
|
+
var I = w[v.id];
|
|
7439
|
+
if (!I) throw new Error("Could not find method with id: " + v.id);
|
|
7440
|
+
if (!le(I.domain, m)) throw new Error("Method domain " + I.domain + " does not match origin " + m);
|
|
7428
7441
|
return _e.try(function() {
|
|
7429
|
-
return
|
|
7442
|
+
return I.method.apply({
|
|
7430
7443
|
source: u,
|
|
7431
7444
|
origin: m,
|
|
7432
7445
|
data: v
|
|
@@ -7444,8 +7457,8 @@ function dg() {
|
|
|
7444
7457
|
return (a === void 0 ? "undefined" : Me(a)) === "object" && a !== null && a.__type__ === u;
|
|
7445
7458
|
}
|
|
7446
7459
|
function y(a, u, m, v) {
|
|
7447
|
-
var w = ye(),
|
|
7448
|
-
return
|
|
7460
|
+
var w = ye(), I = W.methods.get(a);
|
|
7461
|
+
return I || (I = {}, W.methods.set(a, I)), I[w] = {
|
|
7449
7462
|
domain: u,
|
|
7450
7463
|
method: m
|
|
7451
7464
|
}, {
|
|
@@ -7457,17 +7470,17 @@ function dg() {
|
|
|
7457
7470
|
function C(a, u, m) {
|
|
7458
7471
|
function v() {
|
|
7459
7472
|
var w = Array.prototype.slice.call(arguments);
|
|
7460
|
-
return
|
|
7473
|
+
return W.send(a, N.POST_MESSAGE_NAMES.METHOD, {
|
|
7461
7474
|
id: m.__id__,
|
|
7462
7475
|
name: m.__name__,
|
|
7463
7476
|
args: w
|
|
7464
7477
|
}, {
|
|
7465
7478
|
domain: u,
|
|
7466
7479
|
timeout: -1
|
|
7467
|
-
}).then(function(
|
|
7468
|
-
return
|
|
7469
|
-
}, function(
|
|
7470
|
-
throw
|
|
7480
|
+
}).then(function(I) {
|
|
7481
|
+
return I.data.result;
|
|
7482
|
+
}, function(I) {
|
|
7483
|
+
throw I;
|
|
7471
7484
|
});
|
|
7472
7485
|
}
|
|
7473
7486
|
return v.__name__ = m.__name__, v.__xdomain__ = !0, v.source = a, v.origin = u, v;
|
|
@@ -7477,9 +7490,9 @@ function dg() {
|
|
|
7477
7490
|
return C(a, u, m.__then__)(v, w);
|
|
7478
7491
|
});
|
|
7479
7492
|
}
|
|
7480
|
-
|
|
7493
|
+
W.readyPromises = W.readyPromises || new F();
|
|
7481
7494
|
function _(a) {
|
|
7482
|
-
return
|
|
7495
|
+
return W.send(a, N.POST_MESSAGE_NAMES.HELLO, {}, {
|
|
7483
7496
|
domain: N.WILDCARD,
|
|
7484
7497
|
timeout: -1
|
|
7485
7498
|
}).then(function(u) {
|
|
@@ -7493,8 +7506,8 @@ function dg() {
|
|
|
7493
7506
|
(Array.isArray(m) ? m : typeof m == "string" ? [m] : [N.WILDCARD]).map(function(v) {
|
|
7494
7507
|
if (v.indexOf(N.MOCK_PROTOCOL) === 0) {
|
|
7495
7508
|
if (window.location.protocol === N.FILE_PROTOCOL) return N.WILDCARD;
|
|
7496
|
-
if (!
|
|
7497
|
-
return
|
|
7509
|
+
if (!B(a)) throw new Error("Attempting to send messsage to mock domain " + v + ", but window is actually cross-domain");
|
|
7510
|
+
return $(a);
|
|
7498
7511
|
}
|
|
7499
7512
|
return v.indexOf(N.FILE_PROTOCOL) === 0 ? N.WILDCARD : v;
|
|
7500
7513
|
}).forEach(function(v) {
|
|
@@ -7511,25 +7524,25 @@ function dg() {
|
|
|
7511
7524
|
function A(a, u, m) {
|
|
7512
7525
|
return _e.try(function() {
|
|
7513
7526
|
var v;
|
|
7514
|
-
if (u = function(V,
|
|
7515
|
-
var
|
|
7527
|
+
if (u = function(V, Y) {
|
|
7528
|
+
var X = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, ae = ye(), ee = function() {
|
|
7516
7529
|
var fe = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : window;
|
|
7517
7530
|
return !!h(fe);
|
|
7518
7531
|
}() ? N.WINDOW_TYPES.POPUP : function() {
|
|
7519
7532
|
var fe = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : window;
|
|
7520
7533
|
return !!d(fe);
|
|
7521
|
-
}() ? N.WINDOW_TYPES.IFRAME : N.WINDOW_TYPES.FULLPAGE, q =
|
|
7522
|
-
return b({},
|
|
7534
|
+
}() ? N.WINDOW_TYPES.IFRAME : N.WINDOW_TYPES.FULLPAGE, q = j(window);
|
|
7535
|
+
return b({}, Y, X, {
|
|
7523
7536
|
sourceDomain: q,
|
|
7524
|
-
id:
|
|
7537
|
+
id: Y.id || ae,
|
|
7525
7538
|
windowType: ee
|
|
7526
7539
|
});
|
|
7527
7540
|
}(a, u, {
|
|
7528
|
-
data: function(V,
|
|
7541
|
+
data: function(V, Y, X) {
|
|
7529
7542
|
return D({
|
|
7530
7543
|
obj: u.data
|
|
7531
7544
|
}, function(ae, ee) {
|
|
7532
|
-
return typeof ae == "function" ? y(V,
|
|
7545
|
+
return typeof ae == "function" ? y(V, Y, ae, ee.toString()) : ae instanceof Error ? (q = ae, {
|
|
7533
7546
|
__type__: N.SERIALIZATION_TYPES.ERROR,
|
|
7534
7547
|
__message__: ve(q),
|
|
7535
7548
|
__code__: q.code
|
|
@@ -7540,14 +7553,14 @@ function dg() {
|
|
|
7540
7553
|
return ze.then(Je, Ke);
|
|
7541
7554
|
}, Ie + ".then")
|
|
7542
7555
|
};
|
|
7543
|
-
}(V,
|
|
7556
|
+
}(V, Y, ae, ee.toString()) : _e.isPromise(ae) ? function(he, Le, ze, Ie) {
|
|
7544
7557
|
return {
|
|
7545
7558
|
__type__: N.SERIALIZATION_TYPES.ZALGO_PROMISE,
|
|
7546
7559
|
__then__: y(he, Le, function(Je, Ke) {
|
|
7547
7560
|
return ze.then(Je, Ke);
|
|
7548
7561
|
}, Ie + ".then")
|
|
7549
7562
|
};
|
|
7550
|
-
}(V,
|
|
7563
|
+
}(V, Y, ae, ee.toString()) : Oe(ae) ? (fe = ae, {
|
|
7551
7564
|
__type__: N.SERIALIZATION_TYPES.REGEX,
|
|
7552
7565
|
__source__: fe.source
|
|
7553
7566
|
}) : void 0;
|
|
@@ -7557,7 +7570,7 @@ function dg() {
|
|
|
7557
7570
|
domain: m
|
|
7558
7571
|
}), a === window && !ge.ALLOW_SAME_ORIGIN) throw new Error("Attemping to send message to self");
|
|
7559
7572
|
if (L(a)) throw new Error("Window is closed");
|
|
7560
|
-
var w = [],
|
|
7573
|
+
var w = [], I = function(V, Y, X) {
|
|
7561
7574
|
var ae = void 0, ee = void 0;
|
|
7562
7575
|
try {
|
|
7563
7576
|
if (JSON.stringify({}) !== "{}" && (ae = Object.prototype.toJSON, delete Object.prototype.toJSON), JSON.stringify({}) !== "{}") throw new Error("Can not correctly serialize JSON objects");
|
|
@@ -7576,44 +7589,44 @@ function dg() {
|
|
|
7576
7589
|
return _e.map(Object.keys(P), function(V) {
|
|
7577
7590
|
return _e.try(function() {
|
|
7578
7591
|
if (!ge.ALLOWED_POST_MESSAGE_METHODS[V]) throw new Error("Strategy disallowed: " + V);
|
|
7579
|
-
return P[V](a,
|
|
7592
|
+
return P[V](a, I, m);
|
|
7580
7593
|
}).then(function() {
|
|
7581
7594
|
return w.push(V + ": success"), !0;
|
|
7582
|
-
}, function(
|
|
7583
|
-
return w.push(V + ": " + ve(
|
|
7595
|
+
}, function(Y) {
|
|
7596
|
+
return w.push(V + ": " + ve(Y) + `
|
|
7584
7597
|
`), !1;
|
|
7585
7598
|
});
|
|
7586
7599
|
}).then(function(V) {
|
|
7587
|
-
var
|
|
7600
|
+
var Y = V.some(Boolean), X = u.type + " " + u.name + " " + (Y ? "success" : "error") + `:
|
|
7588
7601
|
- ` + w.join(`
|
|
7589
7602
|
- `) + `
|
|
7590
7603
|
`;
|
|
7591
|
-
if (!
|
|
7604
|
+
if (!Y) throw new Error(X);
|
|
7592
7605
|
});
|
|
7593
7606
|
});
|
|
7594
7607
|
}
|
|
7595
|
-
|
|
7596
|
-
}(),
|
|
7597
|
-
var T,
|
|
7608
|
+
W.responseListeners = W.responseListeners || {}, W.requestListeners = W.requestListeners || {}, W.WINDOW_WILDCARD = W.WINDOW_WILDCARD || new function() {
|
|
7609
|
+
}(), W.erroredResponseListeners = W.erroredResponseListeners || {};
|
|
7610
|
+
var T, G = "__domain_regex__";
|
|
7598
7611
|
function M(a) {
|
|
7599
|
-
return
|
|
7612
|
+
return W.responseListeners[a];
|
|
7600
7613
|
}
|
|
7601
7614
|
function Q(a) {
|
|
7602
|
-
delete
|
|
7615
|
+
delete W.responseListeners[a];
|
|
7603
7616
|
}
|
|
7604
|
-
function
|
|
7605
|
-
return !!
|
|
7617
|
+
function oe(a) {
|
|
7618
|
+
return !!W.erroredResponseListeners[a];
|
|
7606
7619
|
}
|
|
7607
7620
|
function Ee(a) {
|
|
7608
7621
|
var u = a.name, m = a.win, v = a.domain;
|
|
7609
7622
|
if (m === N.WILDCARD && (m = null), v === N.WILDCARD && (v = null), !u) throw new Error("Name required to get request listener");
|
|
7610
|
-
var w =
|
|
7611
|
-
if (w) for (var
|
|
7612
|
-
var
|
|
7623
|
+
var w = W.requestListeners[u];
|
|
7624
|
+
if (w) for (var I = 0, V = [m, W.WINDOW_WILDCARD], Y = V == null ? 0 : V.length; I < Y; I++) {
|
|
7625
|
+
var X = V[I], ae = X && w.get(X);
|
|
7613
7626
|
if (ae) {
|
|
7614
7627
|
if (v && typeof v == "string") {
|
|
7615
7628
|
if (ae[v]) return ae[v];
|
|
7616
|
-
if (ae[
|
|
7629
|
+
if (ae[G]) for (var ee = 0, q = ae[G], fe = q == null ? 0 : q.length; ee < fe; ee++) {
|
|
7617
7630
|
var he = q[ee], Le = he.regex, ze = he.listener;
|
|
7618
7631
|
if (le(Le, v)) return ze;
|
|
7619
7632
|
}
|
|
@@ -7629,7 +7642,7 @@ function dg() {
|
|
|
7629
7642
|
}
|
|
7630
7643
|
return a;
|
|
7631
7644
|
}, Se = ((T = {})[N.POST_MESSAGE_TYPE.ACK] = function(a, u, m) {
|
|
7632
|
-
if (!
|
|
7645
|
+
if (!oe(m.hash)) {
|
|
7633
7646
|
var v = M(m.hash);
|
|
7634
7647
|
if (!v) throw new Error("No handler found for post message ack for message: " + m.name + " from " + u + " in " + window.location.protocol + "//" + window.location.host + window.location.pathname);
|
|
7635
7648
|
if (!le(v.domain, u)) throw new Error("Ack origin " + u + " does not match domain " + v.domain.toString());
|
|
@@ -7641,50 +7654,50 @@ function dg() {
|
|
|
7641
7654
|
win: a,
|
|
7642
7655
|
domain: u
|
|
7643
7656
|
});
|
|
7644
|
-
function w(
|
|
7657
|
+
function w(I) {
|
|
7645
7658
|
return m.fireAndForget || L(a) ? _e.resolve() : A(a, Te({
|
|
7646
7659
|
target: m.originalSource,
|
|
7647
7660
|
hash: m.hash,
|
|
7648
7661
|
name: m.name
|
|
7649
|
-
},
|
|
7662
|
+
}, I), u);
|
|
7650
7663
|
}
|
|
7651
7664
|
return _e.all([w({
|
|
7652
7665
|
type: N.POST_MESSAGE_TYPE.ACK
|
|
7653
7666
|
}), _e.try(function() {
|
|
7654
7667
|
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);
|
|
7655
7668
|
if (!le(v.domain, u)) throw new Error("Request origin " + u + " does not match domain " + v.domain.toString());
|
|
7656
|
-
var
|
|
7669
|
+
var I = m.data;
|
|
7657
7670
|
return v.handler({
|
|
7658
7671
|
source: a,
|
|
7659
7672
|
origin: u,
|
|
7660
|
-
data:
|
|
7673
|
+
data: I
|
|
7661
7674
|
});
|
|
7662
|
-
}).then(function(
|
|
7675
|
+
}).then(function(I) {
|
|
7663
7676
|
return w({
|
|
7664
7677
|
type: N.POST_MESSAGE_TYPE.RESPONSE,
|
|
7665
7678
|
ack: N.POST_MESSAGE_ACK.SUCCESS,
|
|
7666
|
-
data:
|
|
7679
|
+
data: I
|
|
7667
7680
|
});
|
|
7668
|
-
}, function(
|
|
7669
|
-
var V = ve(
|
|
7681
|
+
}, function(I) {
|
|
7682
|
+
var V = ve(I).replace(/^Error: /, ""), Y = I.code;
|
|
7670
7683
|
return w({
|
|
7671
7684
|
type: N.POST_MESSAGE_TYPE.RESPONSE,
|
|
7672
7685
|
ack: N.POST_MESSAGE_ACK.ERROR,
|
|
7673
7686
|
error: V,
|
|
7674
|
-
code:
|
|
7687
|
+
code: Y
|
|
7675
7688
|
});
|
|
7676
|
-
})]).then(
|
|
7677
|
-
if (v && v.handleError) return v.handleError(
|
|
7678
|
-
throw
|
|
7689
|
+
})]).then(ie).catch(function(I) {
|
|
7690
|
+
if (v && v.handleError) return v.handleError(I);
|
|
7691
|
+
throw I;
|
|
7679
7692
|
});
|
|
7680
7693
|
}, T[N.POST_MESSAGE_TYPE.RESPONSE] = function(a, u, m) {
|
|
7681
|
-
if (!
|
|
7694
|
+
if (!oe(m.hash)) {
|
|
7682
7695
|
var v, w = M(m.hash);
|
|
7683
7696
|
if (!w) throw new Error("No handler found for post message response for message: " + m.name + " from " + u + " in " + window.location.protocol + "//" + window.location.host + window.location.pathname);
|
|
7684
7697
|
if (!le(w.domain, u)) throw new Error("Response origin " + u + " does not match domain " + (v = w.domain, Array.isArray(v) ? "(" + v.join(" | ") + ")" : i(v) ? "RegExp(" + v.toString() : v.toString()));
|
|
7685
7698
|
if (Q(m.hash), m.ack === N.POST_MESSAGE_ACK.ERROR) {
|
|
7686
|
-
var
|
|
7687
|
-
return m.code && (
|
|
7699
|
+
var I = new Error(m.error);
|
|
7700
|
+
return m.code && (I.code = m.code), w.respond(I, null);
|
|
7688
7701
|
}
|
|
7689
7702
|
if (m.ack === N.POST_MESSAGE_ACK.SUCCESS) {
|
|
7690
7703
|
var V = m.data || m.response;
|
|
@@ -7700,7 +7713,7 @@ function dg() {
|
|
|
7700
7713
|
} : function(a) {
|
|
7701
7714
|
return a && typeof Symbol == "function" && a.constructor === Symbol && a !== Symbol.prototype ? "symbol" : typeof a;
|
|
7702
7715
|
};
|
|
7703
|
-
|
|
7716
|
+
W.receivedMessages = W.receivedMessages || [];
|
|
7704
7717
|
function Ge(a) {
|
|
7705
7718
|
if (window && !window.closed) {
|
|
7706
7719
|
try {
|
|
@@ -7709,9 +7722,9 @@ function dg() {
|
|
|
7709
7722
|
return;
|
|
7710
7723
|
}
|
|
7711
7724
|
var u = a.source, m = a.origin, v = function(w) {
|
|
7712
|
-
var
|
|
7725
|
+
var I, V = void 0;
|
|
7713
7726
|
try {
|
|
7714
|
-
V = (
|
|
7727
|
+
V = (I = w, JSON.parse(I));
|
|
7715
7728
|
} catch {
|
|
7716
7729
|
return;
|
|
7717
7730
|
}
|
|
@@ -7719,20 +7732,20 @@ function dg() {
|
|
|
7719
7732
|
}(a.data);
|
|
7720
7733
|
if (v) {
|
|
7721
7734
|
if (!v.sourceDomain || typeof v.sourceDomain != "string") throw new Error("Expected message to have sourceDomain");
|
|
7722
|
-
v.sourceDomain.indexOf(N.MOCK_PROTOCOL) !== 0 && v.sourceDomain.indexOf(N.FILE_PROTOCOL) !== 0 || (m = v.sourceDomain),
|
|
7735
|
+
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) {
|
|
7723
7736
|
return D({
|
|
7724
7737
|
obj: v.data
|
|
7725
|
-
}, function(
|
|
7726
|
-
if ((
|
|
7738
|
+
}, function(Y) {
|
|
7739
|
+
if ((Y === void 0 ? "undefined" : Me(Y)) === "object" && Y !== null) return g(Y, N.SERIALIZATION_TYPES.METHOD) ? C(w, I, Y) : g(Y, N.SERIALIZATION_TYPES.ERROR) ? function(X, ae, ee) {
|
|
7727
7740
|
var q = new Error(ee.__message__);
|
|
7728
7741
|
return ee.__code__ && (q.code = ee.__code__), q;
|
|
7729
|
-
}(0, 0,
|
|
7742
|
+
}(0, 0, Y) : g(Y, N.SERIALIZATION_TYPES.PROMISE) ? function(X, ae, ee) {
|
|
7730
7743
|
return window.Promise ? new window.Promise(function(q, fe) {
|
|
7731
|
-
return C(
|
|
7732
|
-
}) : R(
|
|
7733
|
-
}(w,
|
|
7744
|
+
return C(X, ae, ee.__then__)(q, fe);
|
|
7745
|
+
}) : R(X, ae, ee);
|
|
7746
|
+
}(w, I, Y) : g(Y, N.SERIALIZATION_TYPES.ZALGO_PROMISE) ? R(w, I, Y) : g(Y, N.SERIALIZATION_TYPES.REGEX) ? function(X, ae, ee) {
|
|
7734
7747
|
return new RegExp(ee.__source__);
|
|
7735
|
-
}(0, 0,
|
|
7748
|
+
}(0, 0, Y) : void 0;
|
|
7736
7749
|
}).obj;
|
|
7737
7750
|
}(u, m)), Se[v.type](u, m, v)));
|
|
7738
7751
|
}
|
|
@@ -7750,7 +7763,7 @@ function dg() {
|
|
|
7750
7763
|
data: a.data
|
|
7751
7764
|
});
|
|
7752
7765
|
}
|
|
7753
|
-
|
|
7766
|
+
W.receiveMessage = Ge, W.requestPromises = W.requestPromises || new F();
|
|
7754
7767
|
function tt(a) {
|
|
7755
7768
|
return _e.try(function() {
|
|
7756
7769
|
if (!a.name) throw new Error("Expected options.name");
|
|
@@ -7767,15 +7780,15 @@ function dg() {
|
|
|
7767
7780
|
a.window && a.window.contentWindow && (m = a.window.contentWindow);
|
|
7768
7781
|
} else m = a.window;
|
|
7769
7782
|
if (!m) throw new Error("Expected options.window to be a window object, iframe, or iframe element id.");
|
|
7770
|
-
var
|
|
7783
|
+
var I = m;
|
|
7771
7784
|
v = a.domain || N.WILDCARD;
|
|
7772
7785
|
var V = a.name + "_" + ye();
|
|
7773
|
-
if (L(
|
|
7774
|
-
var
|
|
7775
|
-
|
|
7786
|
+
if (L(I)) throw new Error("Target window is closed");
|
|
7787
|
+
var Y = !1, X = W.requestPromises.get(I);
|
|
7788
|
+
X || (X = [], W.requestPromises.set(I, X));
|
|
7776
7789
|
var ae = _e.try(function() {
|
|
7777
7790
|
if (function(ee, q) {
|
|
7778
|
-
var fe =
|
|
7791
|
+
var fe = ne(q);
|
|
7779
7792
|
if (fe) return fe === ee;
|
|
7780
7793
|
if (q === ee || function() {
|
|
7781
7794
|
var Ie = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : window;
|
|
@@ -7785,15 +7798,15 @@ function dg() {
|
|
|
7785
7798
|
}
|
|
7786
7799
|
if (d(Ie) === Ie) return Ie;
|
|
7787
7800
|
try {
|
|
7788
|
-
if (
|
|
7801
|
+
if (J(window, Ie) && window.top) return window.top;
|
|
7789
7802
|
} catch {
|
|
7790
7803
|
}
|
|
7791
7804
|
try {
|
|
7792
|
-
if (
|
|
7805
|
+
if (J(Ie, window) && window.top) return window.top;
|
|
7793
7806
|
} catch {
|
|
7794
7807
|
}
|
|
7795
7808
|
for (var Je = 0, Ke = function Pt(lo) {
|
|
7796
|
-
for (var Hn = [], Wn = 0, mn =
|
|
7809
|
+
for (var Hn = [], Wn = 0, mn = te(lo), kt = mn == null ? 0 : mn.length; Wn < kt; Wn++) {
|
|
7797
7810
|
var pt = mn[Wn];
|
|
7798
7811
|
Hn.push(pt);
|
|
7799
7812
|
for (var vn = 0, Et = Pt(pt), En = Et == null ? 0 : Et.length; vn < En; vn++) {
|
|
@@ -7811,17 +7824,17 @@ function dg() {
|
|
|
7811
7824
|
if (d(Ct) === Ct) return Ct;
|
|
7812
7825
|
}
|
|
7813
7826
|
}(q) === q) return !1;
|
|
7814
|
-
for (var he = 0, Le =
|
|
7827
|
+
for (var he = 0, Le = te(ee), ze = Le == null ? 0 : Le.length; he < ze; he++) if (Le[he] === q) return !0;
|
|
7815
7828
|
return !1;
|
|
7816
|
-
}(window,
|
|
7817
|
-
var q = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 5e3, fe = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : "Window", he =
|
|
7818
|
-
return he || (he = new _e(),
|
|
7829
|
+
}(window, I)) return function(ee) {
|
|
7830
|
+
var q = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 5e3, fe = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : "Window", he = W.readyPromises.get(ee);
|
|
7831
|
+
return he || (he = new _e(), W.readyPromises.set(ee, he), q !== -1 && setTimeout(function() {
|
|
7819
7832
|
return he.reject(new Error(fe + " did not load after " + q + "ms"));
|
|
7820
7833
|
}, q), he);
|
|
7821
|
-
}(
|
|
7834
|
+
}(I, a.timeout || ge.CHILD_WINDOW_TIMEOUT);
|
|
7822
7835
|
}).then(function() {
|
|
7823
7836
|
var ee = (arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}).origin;
|
|
7824
|
-
if (Oe(v) && !ee) return _(
|
|
7837
|
+
if (Oe(v) && !ee) return _(I);
|
|
7825
7838
|
}).then(function() {
|
|
7826
7839
|
var ee = (arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}).origin;
|
|
7827
7840
|
if (Oe(v)) {
|
|
@@ -7833,15 +7846,15 @@ function dg() {
|
|
|
7833
7846
|
return new _e(function(fe, he) {
|
|
7834
7847
|
var Le = void 0;
|
|
7835
7848
|
if (a.fireAndForget || function(Ke, vt) {
|
|
7836
|
-
|
|
7849
|
+
W.responseListeners[Ke] = vt;
|
|
7837
7850
|
}(V, Le = {
|
|
7838
7851
|
name: u,
|
|
7839
|
-
window:
|
|
7852
|
+
window: I,
|
|
7840
7853
|
domain: q,
|
|
7841
7854
|
respond: function(Ke, vt) {
|
|
7842
|
-
Ke || (
|
|
7855
|
+
Ke || (Y = !0, X.splice(X.indexOf(ae, 1))), Ke ? he(Ke) : fe(vt);
|
|
7843
7856
|
}
|
|
7844
|
-
}), A(
|
|
7857
|
+
}), A(I, {
|
|
7845
7858
|
type: N.POST_MESSAGE_TYPE.REQUEST,
|
|
7846
7859
|
hash: V,
|
|
7847
7860
|
name: u,
|
|
@@ -7850,14 +7863,14 @@ function dg() {
|
|
|
7850
7863
|
}, q).catch(he), a.fireAndForget) return fe();
|
|
7851
7864
|
var ze = ge.ACK_TIMEOUT, Ie = a.timeout || ge.RES_TIMEOUT, Je = 100;
|
|
7852
7865
|
setTimeout(function Ke() {
|
|
7853
|
-
if (!
|
|
7854
|
-
if (L(
|
|
7866
|
+
if (!Y) {
|
|
7867
|
+
if (L(I)) return Le.ack ? he(new Error("Window closed for " + u + " before response")) : he(new Error("Window closed for " + u + " before ack"));
|
|
7855
7868
|
if (ze = Math.max(ze - Je, 0), Ie !== -1 && (Ie = Math.max(Ie - Je, 0)), Le.ack) {
|
|
7856
7869
|
if (Ie === -1) return;
|
|
7857
7870
|
Je = Math.min(Ie, 2e3);
|
|
7858
7871
|
} else {
|
|
7859
|
-
if (ze === 0) return he(new Error("No ack for postMessage " + u + " in " +
|
|
7860
|
-
if (Ie === 0) return he(new Error("No response for postMessage " + u + " in " +
|
|
7872
|
+
if (ze === 0) return he(new Error("No ack for postMessage " + u + " in " + j() + " in " + ge.ACK_TIMEOUT + "ms"));
|
|
7873
|
+
if (Ie === 0) return he(new Error("No response for postMessage " + u + " in " + j() + " in " + (a.timeout || ge.RES_TIMEOUT) + "ms"));
|
|
7861
7874
|
}
|
|
7862
7875
|
setTimeout(Ke, Je);
|
|
7863
7876
|
}
|
|
@@ -7866,18 +7879,18 @@ function dg() {
|
|
|
7866
7879
|
});
|
|
7867
7880
|
return ae.catch(function() {
|
|
7868
7881
|
(function(ee) {
|
|
7869
|
-
|
|
7882
|
+
W.erroredResponseListeners[ee] = !0;
|
|
7870
7883
|
})(V), Q(V);
|
|
7871
|
-
}),
|
|
7884
|
+
}), X.push(ae), ae;
|
|
7872
7885
|
});
|
|
7873
7886
|
}
|
|
7874
7887
|
function lt(a, u, m, v) {
|
|
7875
7888
|
return (v = v || {}).window = a, v.name = u, v.data = m, tt(v);
|
|
7876
7889
|
}
|
|
7877
7890
|
function Vn(a, u, m) {
|
|
7878
|
-
var v =
|
|
7879
|
-
return v ? lt(v, a, u, m) : new _e(function(w,
|
|
7880
|
-
return
|
|
7891
|
+
var v = ne();
|
|
7892
|
+
return v ? lt(v, a, u, m) : new _e(function(w, I) {
|
|
7893
|
+
return I(new Error("Window does not have a parent"));
|
|
7881
7894
|
});
|
|
7882
7895
|
}
|
|
7883
7896
|
function Be() {
|
|
@@ -7890,7 +7903,7 @@ function dg() {
|
|
|
7890
7903
|
}
|
|
7891
7904
|
};
|
|
7892
7905
|
}
|
|
7893
|
-
|
|
7906
|
+
W.send = lt;
|
|
7894
7907
|
var ft = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(a) {
|
|
7895
7908
|
return typeof a;
|
|
7896
7909
|
} : function(a) {
|
|
@@ -7901,19 +7914,19 @@ function dg() {
|
|
|
7901
7914
|
if (!a.handler) throw new Error("Expected options.handler");
|
|
7902
7915
|
var u = a.name, m = a.window, v = a.domain, w = {
|
|
7903
7916
|
handler: a.handler,
|
|
7904
|
-
handleError: a.errorHandler || function(
|
|
7905
|
-
throw
|
|
7917
|
+
handleError: a.errorHandler || function(X) {
|
|
7918
|
+
throw X;
|
|
7906
7919
|
},
|
|
7907
7920
|
window: m,
|
|
7908
7921
|
domain: v || N.WILDCARD,
|
|
7909
7922
|
name: u
|
|
7910
|
-
},
|
|
7923
|
+
}, I = function X(ae, ee) {
|
|
7911
7924
|
var q = ae.name, fe = ae.win, he = ae.domain;
|
|
7912
7925
|
if (!q || typeof q != "string") throw new Error("Name required to add request listener");
|
|
7913
7926
|
if (Array.isArray(fe)) {
|
|
7914
7927
|
for (var Le = [], ze = 0, Ie = fe, Je = Ie == null ? 0 : Ie.length; ze < Je; ze++) {
|
|
7915
7928
|
var Ke = Ie[ze];
|
|
7916
|
-
Le.push(
|
|
7929
|
+
Le.push(X({
|
|
7917
7930
|
name: q,
|
|
7918
7931
|
domain: he,
|
|
7919
7932
|
win: Ke
|
|
@@ -7928,7 +7941,7 @@ function dg() {
|
|
|
7928
7941
|
if (Array.isArray(he)) {
|
|
7929
7942
|
for (var vt = [], Ct = 0, Pt = he, lo = Pt == null ? 0 : Pt.length; Ct < lo; Ct++) {
|
|
7930
7943
|
var Hn = Pt[Ct];
|
|
7931
|
-
vt.push(
|
|
7944
|
+
vt.push(X({
|
|
7932
7945
|
name: q,
|
|
7933
7946
|
win: fe,
|
|
7934
7947
|
domain: Hn
|
|
@@ -7945,13 +7958,13 @@ function dg() {
|
|
|
7945
7958
|
win: fe,
|
|
7946
7959
|
domain: he
|
|
7947
7960
|
});
|
|
7948
|
-
if (fe && fe !== N.WILDCARD || (fe =
|
|
7949
|
-
var mn =
|
|
7950
|
-
kt || (kt = new
|
|
7961
|
+
if (fe && fe !== N.WILDCARD || (fe = W.WINDOW_WILDCARD), he = he || N.WILDCARD, Wn) throw fe && he ? new Error("Request listener already exists for " + q + " on domain " + he.toString() + " for " + (fe === W.WINDOW_WILDCARD ? "wildcard" : "specified") + " window") : fe ? new Error("Request listener already exists for " + q + " for " + (fe === W.WINDOW_WILDCARD ? "wildcard" : "specified") + " window") : he ? new Error("Request listener already exists for " + q + " on domain " + he.toString()) : new Error("Request listener already exists for " + q);
|
|
7962
|
+
var mn = W.requestListeners, kt = mn[q];
|
|
7963
|
+
kt || (kt = new F(), mn[q] = kt);
|
|
7951
7964
|
var pt = kt.get(fe);
|
|
7952
7965
|
pt || (pt = {}, kt.set(fe, pt));
|
|
7953
|
-
var vn = he.toString(), Et = pt[
|
|
7954
|
-
return Oe(he) ? (Et || (Et = [], pt[
|
|
7966
|
+
var vn = he.toString(), Et = pt[G], En = void 0;
|
|
7967
|
+
return Oe(he) ? (Et || (Et = [], pt[G] = Et), En = {
|
|
7955
7968
|
regex: he,
|
|
7956
7969
|
listener: ee
|
|
7957
7970
|
}, Et.push(En)) : pt[vn] = ee, {
|
|
@@ -7967,14 +7980,14 @@ function dg() {
|
|
|
7967
7980
|
if (a.once) {
|
|
7968
7981
|
var V = w.handler;
|
|
7969
7982
|
w.handler = z(function() {
|
|
7970
|
-
return
|
|
7983
|
+
return I.cancel(), V.apply(this, arguments);
|
|
7971
7984
|
});
|
|
7972
7985
|
}
|
|
7973
|
-
if (w.window && a.errorOnClose) var
|
|
7986
|
+
if (w.window && a.errorOnClose) var Y = function(X, ae) {
|
|
7974
7987
|
var ee = void 0;
|
|
7975
7988
|
return ee = setTimeout(function q() {
|
|
7976
7989
|
ee = setTimeout(q, 50), (function() {
|
|
7977
|
-
m && (m === void 0 ? "undefined" : ft(m)) === "object" && L(m) && (
|
|
7990
|
+
m && (m === void 0 ? "undefined" : ft(m)) === "object" && L(m) && (Y.cancel(), w.handleError(new Error("Post message target window is closed")));
|
|
7978
7991
|
}).call();
|
|
7979
7992
|
}, 50), {
|
|
7980
7993
|
cancel: function() {
|
|
@@ -7984,7 +7997,7 @@ function dg() {
|
|
|
7984
7997
|
}();
|
|
7985
7998
|
return {
|
|
7986
7999
|
cancel: function() {
|
|
7987
|
-
|
|
8000
|
+
I.cancel();
|
|
7988
8001
|
}
|
|
7989
8002
|
};
|
|
7990
8003
|
}
|
|
@@ -7994,14 +8007,14 @@ function dg() {
|
|
|
7994
8007
|
function ws(a) {
|
|
7995
8008
|
var u = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, m = arguments[2];
|
|
7996
8009
|
typeof u == "function" && (m = u, u = {}), u = u || {}, m = m || u.handler;
|
|
7997
|
-
var v = u.errorHandler, w = new _e(function(V,
|
|
7998
|
-
(u = u || {}).name = a, u.once = !0, u.handler = function(
|
|
7999
|
-
if (V(
|
|
8000
|
-
}, u.errorHandler = function(
|
|
8001
|
-
if (
|
|
8010
|
+
var v = u.errorHandler, w = new _e(function(V, Y) {
|
|
8011
|
+
(u = u || {}).name = a, u.once = !0, u.handler = function(X) {
|
|
8012
|
+
if (V(X), m) return m(X);
|
|
8013
|
+
}, u.errorHandler = function(X) {
|
|
8014
|
+
if (Y(X), v) return v(X);
|
|
8002
8015
|
};
|
|
8003
|
-
}),
|
|
8004
|
-
return w.cancel =
|
|
8016
|
+
}), I = tn(u);
|
|
8017
|
+
return w.cancel = I.cancel, w;
|
|
8005
8018
|
}
|
|
8006
8019
|
function Os() {
|
|
8007
8020
|
var a = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
@@ -8011,41 +8024,41 @@ function dg() {
|
|
|
8011
8024
|
}
|
|
8012
8025
|
};
|
|
8013
8026
|
}
|
|
8014
|
-
|
|
8027
|
+
W.on = jn;
|
|
8015
8028
|
function Ss() {
|
|
8016
8029
|
delete window[N.WINDOW_PROPS.POSTROBOT], window.removeEventListener("message", ot);
|
|
8017
8030
|
}
|
|
8018
|
-
var As =
|
|
8031
|
+
var As = ne();
|
|
8019
8032
|
function Ns(a) {
|
|
8020
|
-
var u =
|
|
8033
|
+
var u = W.requestPromises.get(a);
|
|
8021
8034
|
if (u) for (var m = 0, v = u == null ? 0 : u.length; m < v; m++) u[m].reject(new Error("No response from window - cleaned up"));
|
|
8022
|
-
|
|
8035
|
+
W.popupWindowsByWin && W.popupWindowsByWin.delete(a), W.remoteWindows && W.remoteWindows.delete(a), W.requestPromises.delete(a), W.methods.delete(a), W.readyPromises.delete(a);
|
|
8023
8036
|
}
|
|
8024
8037
|
var Ts = null;
|
|
8025
8038
|
function uo() {
|
|
8026
|
-
|
|
8039
|
+
W.initialized || (u = ot, (a = window).addEventListener ? a.addEventListener("message", u) : a.attachEvent("onmessage", u), function() {
|
|
8027
8040
|
m = function(w) {
|
|
8028
|
-
var
|
|
8029
|
-
|
|
8041
|
+
var I = w.source, V = w.origin, Y = W.readyPromises.get(I) || new _e();
|
|
8042
|
+
Y.resolve({
|
|
8030
8043
|
origin: V
|
|
8031
|
-
}),
|
|
8032
|
-
},
|
|
8044
|
+
}), W.readyPromises.set(I, Y);
|
|
8045
|
+
}, W.on(N.POST_MESSAGE_NAMES.HELLO, {
|
|
8033
8046
|
domain: N.WILDCARD
|
|
8034
8047
|
}, function(w) {
|
|
8035
|
-
var
|
|
8048
|
+
var I = w.source, V = w.origin;
|
|
8036
8049
|
return m({
|
|
8037
|
-
source:
|
|
8050
|
+
source: I,
|
|
8038
8051
|
origin: V
|
|
8039
8052
|
});
|
|
8040
8053
|
});
|
|
8041
|
-
var m, v =
|
|
8042
|
-
v && _(v).catch(
|
|
8054
|
+
var m, v = ne();
|
|
8055
|
+
v && _(v).catch(ie);
|
|
8043
8056
|
}(), f({
|
|
8044
8057
|
on: jn,
|
|
8045
8058
|
send: lt
|
|
8046
8059
|
}));
|
|
8047
8060
|
var a, u;
|
|
8048
|
-
|
|
8061
|
+
W.initialized = !0;
|
|
8049
8062
|
}
|
|
8050
8063
|
uo(), s.d(r, "cleanUpWindow", function() {
|
|
8051
8064
|
return Ns;
|
|
@@ -8160,34 +8173,34 @@ const ga = () => {
|
|
|
8160
8173
|
checkIframeStatus: (o, i) => Array.isArray(i) ? i.includes(t.get(o).status) : t.get(o).status === i,
|
|
8161
8174
|
iframeEvent: n,
|
|
8162
8175
|
loadIframe: async (o, i) => {
|
|
8163
|
-
var
|
|
8164
|
-
br.value || await new Promise((
|
|
8176
|
+
var O, $;
|
|
8177
|
+
br.value || await new Promise((j) => St(() => br.value, j));
|
|
8165
8178
|
const c = t.get(o);
|
|
8166
8179
|
if (!c || c.status === nt.loading) return;
|
|
8167
|
-
if (Array.from(t).map((
|
|
8168
|
-
c.element.style.display = "block", c.status = nt.activated, n.emit(nt.activated, c), await new Promise((
|
|
8180
|
+
if (Array.from(t).map((j) => j[1]).filter((j) => j.id !== o).map((j) => r(j.id)), c.element && getComputedStyle(c.element).display !== "block") {
|
|
8181
|
+
c.element.style.display = "block", c.status = nt.activated, n.emit(nt.activated, c), await new Promise((j) => setTimeout(j, 0));
|
|
8169
8182
|
return;
|
|
8170
8183
|
}
|
|
8171
8184
|
c.status = nt.loading, n.emit(nt.activated, c);
|
|
8172
8185
|
const l = document.createElement("iframe");
|
|
8173
|
-
let E = c.config.origin;
|
|
8174
|
-
i != null && i.path &&
|
|
8186
|
+
let E = c.config.origin, p = (($ = (O = c == null ? void 0 : c.config) == null ? void 0 : O.router) == null ? void 0 : $.concatPath) ?? !0;
|
|
8187
|
+
i != null && i.path && p && (E = E + (i == null ? void 0 : i.path)), l.src = E, l.setAttribute("id", o), l.setAttribute("frameBorder", "0"), l.style.width = "100%", l.style.height = "100%", l.style.display = "block", l.name = JSON.stringify({
|
|
8175
8188
|
appInfo: c.config,
|
|
8176
8189
|
parentData: {
|
|
8177
8190
|
layoutData: e.data.get(e.expose.getLayoutDataKeys()),
|
|
8178
8191
|
origin: window.origin
|
|
8179
8192
|
}
|
|
8180
8193
|
}), br.value.appendChild(l);
|
|
8181
|
-
const [
|
|
8182
|
-
l.onload = (
|
|
8194
|
+
const [d, h] = await new Promise((j) => {
|
|
8195
|
+
l.onload = (B) => j([null, B]), l.onerror = () => j([new Error(`${o} IFrame load failed`), null]);
|
|
8183
8196
|
});
|
|
8184
|
-
if (
|
|
8197
|
+
if (d) {
|
|
8185
8198
|
c.status = nt.error, n.emit(nt.error, c);
|
|
8186
8199
|
return;
|
|
8187
8200
|
}
|
|
8188
8201
|
c.element = l, c.status = nt.mounted, n.emit(nt.mounted, {
|
|
8189
8202
|
...c.config,
|
|
8190
|
-
contentWindow:
|
|
8203
|
+
contentWindow: h.target.contentWindow
|
|
8191
8204
|
});
|
|
8192
8205
|
},
|
|
8193
8206
|
hideIframe: r,
|