@xwiki/cristal-sharedworker-impl 1.2.0-rc-1 → 1.2.0
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.
|
@@ -52,7 +52,7 @@ function Ep() {
|
|
|
52
52
|
} : function(S, A) {
|
|
53
53
|
return S[A];
|
|
54
54
|
}
|
|
55
|
-
}, b = Object.getPrototypeOf(Function), x = typeof Map == "function" && typeof Map.prototype.entries == "function" ? Map : at(), B = typeof Set == "function" && typeof Set.prototype.entries == "function" ? Set : We(), N = typeof WeakMap == "function" ? WeakMap : vt(), V = s ? /* @__PURE__ */ Symbol.for("@reflect-metadata:registry") : void 0,
|
|
55
|
+
}, b = Object.getPrototypeOf(Function), x = typeof Map == "function" && typeof Map.prototype.entries == "function" ? Map : at(), B = typeof Set == "function" && typeof Set.prototype.entries == "function" ? Set : We(), N = typeof WeakMap == "function" ? WeakMap : vt(), V = s ? /* @__PURE__ */ Symbol.for("@reflect-metadata:registry") : void 0, q = z(), H = W(q);
|
|
56
56
|
function ie(S, A, j, U) {
|
|
57
57
|
if (be(j)) {
|
|
58
58
|
if (!Pe(S))
|
|
@@ -449,7 +449,7 @@ function Ep() {
|
|
|
449
449
|
return !0;
|
|
450
450
|
}
|
|
451
451
|
}
|
|
452
|
-
function
|
|
452
|
+
function z() {
|
|
453
453
|
var S;
|
|
454
454
|
return !be(V) && Ie(i.Reflect) && Object.isExtensible(i.Reflect) && (S = i.Reflect[V]), be(S) && (S = D()), !be(V) && Ie(i.Reflect) && Object.isExtensible(i.Reflect) && Object.defineProperty(i.Reflect, V, {
|
|
455
455
|
enumerable: !1,
|
|
@@ -470,7 +470,7 @@ function Ep() {
|
|
|
470
470
|
OrdinaryOwnMetadataKeys: xe,
|
|
471
471
|
OrdinaryDeleteMetadata: L
|
|
472
472
|
};
|
|
473
|
-
return
|
|
473
|
+
return q.registerProvider(j), j;
|
|
474
474
|
function U(ae, fe, pe) {
|
|
475
475
|
var ke = A.get(ae), Be = !1;
|
|
476
476
|
if (be(ke)) {
|
|
@@ -572,12 +572,12 @@ function Ep() {
|
|
|
572
572
|
return xe;
|
|
573
573
|
}
|
|
574
574
|
function me(S, A, j) {
|
|
575
|
-
var U =
|
|
575
|
+
var U = q.getProvider(S, A);
|
|
576
576
|
if (!be(U))
|
|
577
577
|
return U;
|
|
578
578
|
if (j) {
|
|
579
|
-
if (
|
|
580
|
-
return
|
|
579
|
+
if (q.setProvider(S, A, H))
|
|
580
|
+
return H;
|
|
581
581
|
throw new Error("Illegal state.");
|
|
582
582
|
}
|
|
583
583
|
}
|
|
@@ -1900,13 +1900,13 @@ function yh(n, e, t = Nr) {
|
|
|
1900
1900
|
const J = b, ce = r === !0 ? 1 / 0 : r;
|
|
1901
1901
|
b = () => Dn(J(), ce);
|
|
1902
1902
|
}
|
|
1903
|
-
const
|
|
1904
|
-
g.stop(),
|
|
1903
|
+
const q = zu(), H = () => {
|
|
1904
|
+
g.stop(), q && q.active && Np(q.effects, g);
|
|
1905
1905
|
};
|
|
1906
1906
|
if (s && e) {
|
|
1907
1907
|
const J = e;
|
|
1908
1908
|
e = (...ce) => {
|
|
1909
|
-
J(...ce),
|
|
1909
|
+
J(...ce), H();
|
|
1910
1910
|
};
|
|
1911
1911
|
}
|
|
1912
1912
|
let ie = V ? new Array(n.length).fill(ws) : ws;
|
|
@@ -1945,7 +1945,7 @@ function yh(n, e, t = Nr) {
|
|
|
1945
1945
|
for (const ce of J) ce();
|
|
1946
1946
|
Ws.delete(g);
|
|
1947
1947
|
}
|
|
1948
|
-
}, process.env.NODE_ENV !== "production" && (g.onTrack = t.onTrack, g.onTrigger = t.onTrigger), e ? i ? se(!0) : ie = g.run() : a ? a(se.bind(null, !0), !0) : g.run(),
|
|
1948
|
+
}, process.env.NODE_ENV !== "production" && (g.onTrack = t.onTrack, g.onTrigger = t.onTrigger), e ? i ? se(!0) : ie = g.run() : a ? a(se.bind(null, !0), !0) : g.run(), H.pause = g.pause.bind(g), H.resume = g.resume.bind(g), H.stop = H, H;
|
|
1949
1949
|
}
|
|
1950
1950
|
function Dn(n, e = 1 / 0, t) {
|
|
1951
1951
|
if (e <= 0 || !xt(n) || n.__v_skip || (t = t || /* @__PURE__ */ new Map(), (t.get(n) || 0) >= e))
|
|
@@ -2767,104 +2767,104 @@ function ig() {
|
|
|
2767
2767
|
}
|
|
2768
2768
|
})(function(t, i) {
|
|
2769
2769
|
var r = typeof Symbol == "function", s = r && typeof Symbol.toPrimitive < "u" ? Symbol.toPrimitive : nn("Symbol.toPrimitive not found."), a = r && typeof Symbol.iterator < "u" ? Symbol.iterator : nn("Symbol.iterator not found."), l = Object.getPrototypeOf(Function), f = typeof Map == "function" && typeof Map.prototype.entries == "function" ? Map : nn("A valid Map constructor could not be found."), h = typeof Set == "function" && typeof Set.prototype.entries == "function" ? Set : nn("A valid Set constructor could not be found."), v = typeof WeakMap == "function" ? WeakMap : nn("A valid WeakMap constructor could not be found."), g = r ? /* @__PURE__ */ Symbol.for("@reflect-metadata:registry") : void 0, b = vi(), x = kn(b);
|
|
2770
|
-
function B(D,
|
|
2770
|
+
function B(D, z, W, X) {
|
|
2771
2771
|
if (he(W)) {
|
|
2772
2772
|
if (!Jt(D))
|
|
2773
2773
|
throw new TypeError();
|
|
2774
|
-
if (!Un(
|
|
2774
|
+
if (!Un(z))
|
|
2775
2775
|
throw new TypeError();
|
|
2776
|
-
return oe(D,
|
|
2776
|
+
return oe(D, z);
|
|
2777
2777
|
} else {
|
|
2778
2778
|
if (!Jt(D))
|
|
2779
2779
|
throw new TypeError();
|
|
2780
|
-
if (!qe(
|
|
2780
|
+
if (!qe(z))
|
|
2781
2781
|
throw new TypeError();
|
|
2782
2782
|
if (!qe(X) && !he(X) && !De(X))
|
|
2783
2783
|
throw new TypeError();
|
|
2784
|
-
return De(X) && (X = void 0), W = Ie(W), Ne(D,
|
|
2784
|
+
return De(X) && (X = void 0), W = Ie(W), Ne(D, z, W, X);
|
|
2785
2785
|
}
|
|
2786
2786
|
}
|
|
2787
2787
|
t("decorate", B);
|
|
2788
|
-
function N(D,
|
|
2788
|
+
function N(D, z) {
|
|
2789
2789
|
function W(X, me) {
|
|
2790
2790
|
if (!qe(X))
|
|
2791
2791
|
throw new TypeError();
|
|
2792
2792
|
if (!he(me) && !ge(me))
|
|
2793
2793
|
throw new TypeError();
|
|
2794
|
-
$t(D,
|
|
2794
|
+
$t(D, z, X, me);
|
|
2795
2795
|
}
|
|
2796
2796
|
return W;
|
|
2797
2797
|
}
|
|
2798
2798
|
t("metadata", N);
|
|
2799
|
-
function V(D,
|
|
2799
|
+
function V(D, z, W, X) {
|
|
2800
2800
|
if (!qe(W))
|
|
2801
2801
|
throw new TypeError();
|
|
2802
|
-
return he(X) || (X = Ie(X)), $t(D,
|
|
2802
|
+
return he(X) || (X = Ie(X)), $t(D, z, W, X);
|
|
2803
2803
|
}
|
|
2804
2804
|
t("defineMetadata", V);
|
|
2805
|
-
function
|
|
2806
|
-
if (!qe(
|
|
2805
|
+
function q(D, z, W) {
|
|
2806
|
+
if (!qe(z))
|
|
2807
2807
|
throw new TypeError();
|
|
2808
|
-
return he(W) || (W = Ie(W)), le(D,
|
|
2808
|
+
return he(W) || (W = Ie(W)), le(D, z, W);
|
|
2809
2809
|
}
|
|
2810
|
-
t("hasMetadata",
|
|
2811
|
-
function
|
|
2812
|
-
if (!qe(
|
|
2810
|
+
t("hasMetadata", q);
|
|
2811
|
+
function H(D, z, W) {
|
|
2812
|
+
if (!qe(z))
|
|
2813
2813
|
throw new TypeError();
|
|
2814
|
-
return he(W) || (W = Ie(W)), ne(D,
|
|
2814
|
+
return he(W) || (W = Ie(W)), ne(D, z, W);
|
|
2815
2815
|
}
|
|
2816
|
-
t("hasOwnMetadata",
|
|
2817
|
-
function ie(D,
|
|
2818
|
-
if (!qe(
|
|
2816
|
+
t("hasOwnMetadata", H);
|
|
2817
|
+
function ie(D, z, W) {
|
|
2818
|
+
if (!qe(z))
|
|
2819
2819
|
throw new TypeError();
|
|
2820
|
-
return he(W) || (W = Ie(W)), ve(D,
|
|
2820
|
+
return he(W) || (W = Ie(W)), ve(D, z, W);
|
|
2821
2821
|
}
|
|
2822
2822
|
t("getMetadata", ie);
|
|
2823
|
-
function se(D,
|
|
2824
|
-
if (!qe(
|
|
2823
|
+
function se(D, z, W) {
|
|
2824
|
+
if (!qe(z))
|
|
2825
2825
|
throw new TypeError();
|
|
2826
|
-
return he(W) || (W = Ie(W)), Ve(D,
|
|
2826
|
+
return he(W) || (W = Ie(W)), Ve(D, z, W);
|
|
2827
2827
|
}
|
|
2828
2828
|
t("getOwnMetadata", se);
|
|
2829
|
-
function J(D,
|
|
2829
|
+
function J(D, z) {
|
|
2830
2830
|
if (!qe(D))
|
|
2831
2831
|
throw new TypeError();
|
|
2832
|
-
return he(
|
|
2832
|
+
return he(z) || (z = Ie(z)), It(D, z);
|
|
2833
2833
|
}
|
|
2834
2834
|
t("getMetadataKeys", J);
|
|
2835
|
-
function ce(D,
|
|
2835
|
+
function ce(D, z) {
|
|
2836
2836
|
if (!qe(D))
|
|
2837
2837
|
throw new TypeError();
|
|
2838
|
-
return he(
|
|
2838
|
+
return he(z) || (z = Ie(z)), Lt(D, z);
|
|
2839
2839
|
}
|
|
2840
2840
|
t("getOwnMetadataKeys", ce);
|
|
2841
|
-
function Q(D,
|
|
2842
|
-
if (!qe(
|
|
2841
|
+
function Q(D, z, W) {
|
|
2842
|
+
if (!qe(z))
|
|
2843
2843
|
throw new TypeError();
|
|
2844
2844
|
he(W) || (W = Ie(W));
|
|
2845
2845
|
var X = Bt(
|
|
2846
|
-
|
|
2846
|
+
z,
|
|
2847
2847
|
W,
|
|
2848
2848
|
/*Create*/
|
|
2849
2849
|
!1
|
|
2850
2850
|
);
|
|
2851
|
-
return he(X) ? !1 : X.OrdinaryDeleteMetadata(D,
|
|
2851
|
+
return he(X) ? !1 : X.OrdinaryDeleteMetadata(D, z, W);
|
|
2852
2852
|
}
|
|
2853
2853
|
t("deleteMetadata", Q);
|
|
2854
|
-
function oe(D,
|
|
2854
|
+
function oe(D, z) {
|
|
2855
2855
|
for (var W = D.length - 1; W >= 0; --W) {
|
|
2856
|
-
var X = D[W], me = X(
|
|
2856
|
+
var X = D[W], me = X(z);
|
|
2857
2857
|
if (!he(me) && !De(me)) {
|
|
2858
2858
|
if (!Un(me))
|
|
2859
2859
|
throw new TypeError();
|
|
2860
|
-
|
|
2860
|
+
z = me;
|
|
2861
2861
|
}
|
|
2862
2862
|
}
|
|
2863
|
-
return
|
|
2863
|
+
return z;
|
|
2864
2864
|
}
|
|
2865
|
-
function Ne(D,
|
|
2865
|
+
function Ne(D, z, W, X) {
|
|
2866
2866
|
for (var me = D.length - 1; me >= 0; --me) {
|
|
2867
|
-
var at = D[me], We = at(
|
|
2867
|
+
var at = D[me], We = at(z, W, X);
|
|
2868
2868
|
if (!he(We) && !De(We)) {
|
|
2869
2869
|
if (!qe(We))
|
|
2870
2870
|
throw new TypeError();
|
|
@@ -2873,54 +2873,54 @@ function ig() {
|
|
|
2873
2873
|
}
|
|
2874
2874
|
return X;
|
|
2875
2875
|
}
|
|
2876
|
-
function le(D,
|
|
2877
|
-
var X = ne(D,
|
|
2876
|
+
function le(D, z, W) {
|
|
2877
|
+
var X = ne(D, z, W);
|
|
2878
2878
|
if (X)
|
|
2879
2879
|
return !0;
|
|
2880
|
-
var me = dn(
|
|
2880
|
+
var me = dn(z);
|
|
2881
2881
|
return De(me) ? !1 : le(D, me, W);
|
|
2882
2882
|
}
|
|
2883
|
-
function ne(D,
|
|
2883
|
+
function ne(D, z, W) {
|
|
2884
2884
|
var X = Bt(
|
|
2885
|
-
|
|
2885
|
+
z,
|
|
2886
2886
|
W,
|
|
2887
2887
|
/*Create*/
|
|
2888
2888
|
!1
|
|
2889
2889
|
);
|
|
2890
|
-
return he(X) ? !1 : dt(X.OrdinaryHasOwnMetadata(D,
|
|
2890
|
+
return he(X) ? !1 : dt(X.OrdinaryHasOwnMetadata(D, z, W));
|
|
2891
2891
|
}
|
|
2892
|
-
function ve(D,
|
|
2893
|
-
var X = ne(D,
|
|
2892
|
+
function ve(D, z, W) {
|
|
2893
|
+
var X = ne(D, z, W);
|
|
2894
2894
|
if (X)
|
|
2895
|
-
return Ve(D,
|
|
2896
|
-
var me = dn(
|
|
2895
|
+
return Ve(D, z, W);
|
|
2896
|
+
var me = dn(z);
|
|
2897
2897
|
if (!De(me))
|
|
2898
2898
|
return ve(D, me, W);
|
|
2899
2899
|
}
|
|
2900
|
-
function Ve(D,
|
|
2900
|
+
function Ve(D, z, W) {
|
|
2901
2901
|
var X = Bt(
|
|
2902
|
-
|
|
2902
|
+
z,
|
|
2903
2903
|
W,
|
|
2904
2904
|
/*Create*/
|
|
2905
2905
|
!1
|
|
2906
2906
|
);
|
|
2907
2907
|
if (!he(X))
|
|
2908
|
-
return X.OrdinaryGetOwnMetadata(D,
|
|
2908
|
+
return X.OrdinaryGetOwnMetadata(D, z, W);
|
|
2909
2909
|
}
|
|
2910
|
-
function $t(D,
|
|
2910
|
+
function $t(D, z, W, X) {
|
|
2911
2911
|
var me = Bt(
|
|
2912
2912
|
W,
|
|
2913
2913
|
X,
|
|
2914
2914
|
/*Create*/
|
|
2915
2915
|
!0
|
|
2916
2916
|
);
|
|
2917
|
-
me.OrdinaryDefineOwnMetadata(D,
|
|
2917
|
+
me.OrdinaryDefineOwnMetadata(D, z, W, X);
|
|
2918
2918
|
}
|
|
2919
|
-
function It(D,
|
|
2920
|
-
var W = Lt(D,
|
|
2919
|
+
function It(D, z) {
|
|
2920
|
+
var W = Lt(D, z), X = dn(D);
|
|
2921
2921
|
if (X === null)
|
|
2922
2922
|
return W;
|
|
2923
|
-
var me = It(X,
|
|
2923
|
+
var me = It(X, z);
|
|
2924
2924
|
if (me.length <= 0)
|
|
2925
2925
|
return W;
|
|
2926
2926
|
if (W.length <= 0)
|
|
@@ -2935,14 +2935,14 @@ function ig() {
|
|
|
2935
2935
|
}
|
|
2936
2936
|
return We;
|
|
2937
2937
|
}
|
|
2938
|
-
function Lt(D,
|
|
2938
|
+
function Lt(D, z) {
|
|
2939
2939
|
var W = Bt(
|
|
2940
2940
|
D,
|
|
2941
|
-
|
|
2941
|
+
z,
|
|
2942
2942
|
/*create*/
|
|
2943
2943
|
!1
|
|
2944
2944
|
);
|
|
2945
|
-
return W ? W.OrdinaryOwnMetadataKeys(D,
|
|
2945
|
+
return W ? W.OrdinaryOwnMetadataKeys(D, z) : [];
|
|
2946
2946
|
}
|
|
2947
2947
|
function fn(D) {
|
|
2948
2948
|
if (D === null)
|
|
@@ -2976,7 +2976,7 @@ function ig() {
|
|
|
2976
2976
|
function qe(D) {
|
|
2977
2977
|
return typeof D == "object" ? D !== null : typeof D == "function";
|
|
2978
2978
|
}
|
|
2979
|
-
function Ot(D,
|
|
2979
|
+
function Ot(D, z) {
|
|
2980
2980
|
switch (fn(D)) {
|
|
2981
2981
|
case 0:
|
|
2982
2982
|
return D;
|
|
@@ -3000,7 +3000,7 @@ function ig() {
|
|
|
3000
3000
|
}
|
|
3001
3001
|
return be(D);
|
|
3002
3002
|
}
|
|
3003
|
-
function be(D,
|
|
3003
|
+
function be(D, z) {
|
|
3004
3004
|
var W, X;
|
|
3005
3005
|
{
|
|
3006
3006
|
var me = D.toString;
|
|
@@ -3025,8 +3025,8 @@ function ig() {
|
|
|
3025
3025
|
return "" + D;
|
|
3026
3026
|
}
|
|
3027
3027
|
function Ie(D) {
|
|
3028
|
-
var
|
|
3029
|
-
return Et(
|
|
3028
|
+
var z = Ot(D);
|
|
3029
|
+
return Et(z) ? z : gi(z);
|
|
3030
3030
|
}
|
|
3031
3031
|
function Jt(D) {
|
|
3032
3032
|
return Array.isArray ? Array.isArray(D) : D instanceof Object ? D instanceof Array : Object.prototype.toString.call(D) === "[object Array]";
|
|
@@ -3047,8 +3047,8 @@ function ig() {
|
|
|
3047
3047
|
return !1;
|
|
3048
3048
|
}
|
|
3049
3049
|
}
|
|
3050
|
-
function pt(D,
|
|
3051
|
-
var W = D[
|
|
3050
|
+
function pt(D, z) {
|
|
3051
|
+
var W = D[z];
|
|
3052
3052
|
if (W != null) {
|
|
3053
3053
|
if (!tn(W))
|
|
3054
3054
|
throw new TypeError();
|
|
@@ -3056,10 +3056,10 @@ function ig() {
|
|
|
3056
3056
|
}
|
|
3057
3057
|
}
|
|
3058
3058
|
function Pe(D) {
|
|
3059
|
-
var
|
|
3060
|
-
if (!tn(
|
|
3059
|
+
var z = pt(D, a);
|
|
3060
|
+
if (!tn(z))
|
|
3061
3061
|
throw new TypeError();
|
|
3062
|
-
var W =
|
|
3062
|
+
var W = z.call(D);
|
|
3063
3063
|
if (!qe(W))
|
|
3064
3064
|
throw new TypeError();
|
|
3065
3065
|
return W;
|
|
@@ -3068,22 +3068,22 @@ function ig() {
|
|
|
3068
3068
|
return D.value;
|
|
3069
3069
|
}
|
|
3070
3070
|
function Kn(D) {
|
|
3071
|
-
var
|
|
3072
|
-
return
|
|
3071
|
+
var z = D.next();
|
|
3072
|
+
return z.done ? !1 : z;
|
|
3073
3073
|
}
|
|
3074
3074
|
function Dt(D) {
|
|
3075
|
-
var
|
|
3076
|
-
|
|
3075
|
+
var z = D.return;
|
|
3076
|
+
z && z.call(D);
|
|
3077
3077
|
}
|
|
3078
3078
|
function dn(D) {
|
|
3079
|
-
var
|
|
3080
|
-
if (typeof D != "function" || D === l ||
|
|
3081
|
-
return
|
|
3079
|
+
var z = Object.getPrototypeOf(D);
|
|
3080
|
+
if (typeof D != "function" || D === l || z !== l)
|
|
3081
|
+
return z;
|
|
3082
3082
|
var W = D.prototype, X = W && Object.getPrototypeOf(W);
|
|
3083
3083
|
if (X == null || X === Object.prototype)
|
|
3084
|
-
return
|
|
3084
|
+
return z;
|
|
3085
3085
|
var me = X.constructor;
|
|
3086
|
-
return typeof me != "function" || me === D ?
|
|
3086
|
+
return typeof me != "function" || me === D ? z : me;
|
|
3087
3087
|
}
|
|
3088
3088
|
function nn(D) {
|
|
3089
3089
|
throw D;
|
|
@@ -3091,7 +3091,7 @@ function ig() {
|
|
|
3091
3091
|
function mi() {
|
|
3092
3092
|
var D;
|
|
3093
3093
|
!he(g) && typeof i.Reflect < "u" && !(g in i.Reflect) && typeof i.Reflect.defineMetadata == "function" && (D = mt(i.Reflect));
|
|
3094
|
-
var
|
|
3094
|
+
var z, W, X, me = new v(), at = {
|
|
3095
3095
|
registerProvider: We,
|
|
3096
3096
|
getProvider: st,
|
|
3097
3097
|
setProvider: A
|
|
@@ -3103,10 +3103,10 @@ function ig() {
|
|
|
3103
3103
|
switch (!0) {
|
|
3104
3104
|
case D === j:
|
|
3105
3105
|
break;
|
|
3106
|
-
case he(
|
|
3107
|
-
|
|
3106
|
+
case he(z):
|
|
3107
|
+
z = j;
|
|
3108
3108
|
break;
|
|
3109
|
-
case
|
|
3109
|
+
case z === j:
|
|
3110
3110
|
break;
|
|
3111
3111
|
case he(W):
|
|
3112
3112
|
W = j;
|
|
@@ -3119,12 +3119,12 @@ function ig() {
|
|
|
3119
3119
|
}
|
|
3120
3120
|
}
|
|
3121
3121
|
function vt(j, U) {
|
|
3122
|
-
if (!he(
|
|
3123
|
-
if (
|
|
3124
|
-
return
|
|
3122
|
+
if (!he(z)) {
|
|
3123
|
+
if (z.isProviderFor(j, U))
|
|
3124
|
+
return z;
|
|
3125
3125
|
if (!he(W)) {
|
|
3126
3126
|
if (W.isProviderFor(j, U))
|
|
3127
|
-
return
|
|
3127
|
+
return z;
|
|
3128
3128
|
if (!he(X))
|
|
3129
3129
|
for (var F = Pe(X); ; ) {
|
|
3130
3130
|
var we = Kn(F);
|
|
@@ -3146,7 +3146,7 @@ function ig() {
|
|
|
3146
3146
|
function S(j) {
|
|
3147
3147
|
if (he(j))
|
|
3148
3148
|
throw new TypeError();
|
|
3149
|
-
return
|
|
3149
|
+
return z === j || W === j || !he(X) && X.has(j);
|
|
3150
3150
|
}
|
|
3151
3151
|
function A(j, U, F) {
|
|
3152
3152
|
if (!S(F))
|
|
@@ -3171,9 +3171,9 @@ function ig() {
|
|
|
3171
3171
|
}), D;
|
|
3172
3172
|
}
|
|
3173
3173
|
function kn(D) {
|
|
3174
|
-
var
|
|
3174
|
+
var z = new v(), W = {
|
|
3175
3175
|
isProviderFor: function(S, A) {
|
|
3176
|
-
var j =
|
|
3176
|
+
var j = z.get(S);
|
|
3177
3177
|
return he(j) ? !1 : j.has(A);
|
|
3178
3178
|
},
|
|
3179
3179
|
OrdinaryDefineOwnMetadata: We,
|
|
@@ -3184,18 +3184,18 @@ function ig() {
|
|
|
3184
3184
|
};
|
|
3185
3185
|
return b.registerProvider(W), W;
|
|
3186
3186
|
function X(S, A, j) {
|
|
3187
|
-
var U =
|
|
3187
|
+
var U = z.get(S), F = !1;
|
|
3188
3188
|
if (he(U)) {
|
|
3189
3189
|
if (!j)
|
|
3190
3190
|
return;
|
|
3191
|
-
U = new f(),
|
|
3191
|
+
U = new f(), z.set(S, U), F = !0;
|
|
3192
3192
|
}
|
|
3193
3193
|
var we = U.get(A);
|
|
3194
3194
|
if (he(we)) {
|
|
3195
3195
|
if (!j)
|
|
3196
3196
|
return;
|
|
3197
3197
|
if (we = new f(), U.set(A, we), !D.setProvider(S, A, W))
|
|
3198
|
-
throw U.delete(A), F &&
|
|
3198
|
+
throw U.delete(A), F && z.delete(S), new Error("Wrong provider for target.");
|
|
3199
3199
|
}
|
|
3200
3200
|
return we;
|
|
3201
3201
|
}
|
|
@@ -3263,19 +3263,19 @@ function ig() {
|
|
|
3263
3263
|
if (he(U) || !U.delete(S))
|
|
3264
3264
|
return !1;
|
|
3265
3265
|
if (U.size === 0) {
|
|
3266
|
-
var F =
|
|
3267
|
-
he(F) || (F.delete(j), F.size === 0 &&
|
|
3266
|
+
var F = z.get(A);
|
|
3267
|
+
he(F) || (F.delete(j), F.size === 0 && z.delete(F));
|
|
3268
3268
|
}
|
|
3269
3269
|
return !0;
|
|
3270
3270
|
}
|
|
3271
3271
|
}
|
|
3272
3272
|
function mt(D) {
|
|
3273
|
-
var
|
|
3273
|
+
var z = D.defineMetadata, W = D.hasOwnMetadata, X = D.getOwnMetadata, me = D.getOwnMetadataKeys, at = D.deleteMetadata, We = new v(), vt = {
|
|
3274
3274
|
isProviderFor: function(st, S) {
|
|
3275
3275
|
var A = We.get(st);
|
|
3276
3276
|
return !he(A) && A.has(S) ? !0 : me(st, S).length ? (he(A) && (A = new h(), We.set(st, A)), A.add(S), !0) : !1;
|
|
3277
3277
|
},
|
|
3278
|
-
OrdinaryDefineOwnMetadata:
|
|
3278
|
+
OrdinaryDefineOwnMetadata: z,
|
|
3279
3279
|
OrdinaryHasOwnMetadata: W,
|
|
3280
3280
|
OrdinaryGetOwnMetadata: X,
|
|
3281
3281
|
OrdinaryOwnMetadataKeys: me,
|
|
@@ -3283,12 +3283,12 @@ function ig() {
|
|
|
3283
3283
|
};
|
|
3284
3284
|
return vt;
|
|
3285
3285
|
}
|
|
3286
|
-
function Bt(D,
|
|
3287
|
-
var X = b.getProvider(D,
|
|
3286
|
+
function Bt(D, z, W) {
|
|
3287
|
+
var X = b.getProvider(D, z);
|
|
3288
3288
|
if (!he(X))
|
|
3289
3289
|
return X;
|
|
3290
3290
|
if (W) {
|
|
3291
|
-
if (b.setProvider(D,
|
|
3291
|
+
if (b.setProvider(D, z, x))
|
|
3292
3292
|
return x;
|
|
3293
3293
|
throw new Error("Illegal state.");
|
|
3294
3294
|
}
|
|
@@ -4112,22 +4112,22 @@ function qf(n, e, t, i) {
|
|
|
4112
4112
|
const f = /* @__PURE__ */ (function(h, v) {
|
|
4113
4113
|
return (g, b, x) => {
|
|
4114
4114
|
if (x.kind === St.unmanaged) return;
|
|
4115
|
-
const B = (function(
|
|
4116
|
-
let
|
|
4117
|
-
if (
|
|
4115
|
+
const B = (function(q) {
|
|
4116
|
+
let H;
|
|
4117
|
+
if (q.tags.size === 0) H = void 0;
|
|
4118
4118
|
else {
|
|
4119
|
-
if (
|
|
4119
|
+
if (q.tags.size !== 1) return;
|
|
4120
4120
|
{
|
|
4121
|
-
const [se, J] =
|
|
4122
|
-
|
|
4121
|
+
const [se, J] = q.tags.entries().next().value;
|
|
4122
|
+
H = { key: se, value: J };
|
|
4123
4123
|
}
|
|
4124
4124
|
}
|
|
4125
|
-
const ie = Zs.is(
|
|
4126
|
-
return
|
|
4125
|
+
const ie = Zs.is(q.value) ? q.value.unwrap() : q.value;
|
|
4126
|
+
return q.kind === St.multipleInjection ? { chained: q.chained, isMultiple: !0, name: q.name, optional: q.optional, serviceIdentifier: ie, tag: H } : { isMultiple: !1, name: q.name, optional: q.optional, serviceIdentifier: ie, tag: H };
|
|
4127
4127
|
})(x);
|
|
4128
4128
|
if (B !== void 0) {
|
|
4129
|
-
const
|
|
4130
|
-
if (
|
|
4129
|
+
const q = g.operations.getPlan(B);
|
|
4130
|
+
if (q !== void 0 && q.tree.root.isContextFree) return q.tree.root;
|
|
4131
4131
|
}
|
|
4132
4132
|
const N = v(g, b, x), V = new mg(g, h, b, x, N);
|
|
4133
4133
|
return Xl(B, g.operations, V, { bindingConstraintsList: b, chainedBindings: x.kind === St.multipleInjection && x.chained, optionalBindings: x.optional }), V;
|
|
@@ -4145,22 +4145,22 @@ function qf(n, e, t, i) {
|
|
|
4145
4145
|
})(n, t), s = /* @__PURE__ */ (function(a, l) {
|
|
4146
4146
|
const f = /* @__PURE__ */ (function(h, v) {
|
|
4147
4147
|
return (g, b, x) => {
|
|
4148
|
-
const B = (function(
|
|
4149
|
-
let
|
|
4150
|
-
if (
|
|
4148
|
+
const B = (function(q) {
|
|
4149
|
+
let H;
|
|
4150
|
+
if (q.tags.size === 0) H = void 0;
|
|
4151
4151
|
else {
|
|
4152
|
-
if (
|
|
4152
|
+
if (q.tags.size !== 1) return;
|
|
4153
4153
|
{
|
|
4154
|
-
const [se, J] =
|
|
4155
|
-
|
|
4154
|
+
const [se, J] = q.tags.entries().next().value;
|
|
4155
|
+
H = { key: se, value: J };
|
|
4156
4156
|
}
|
|
4157
4157
|
}
|
|
4158
|
-
const ie = Zs.is(
|
|
4159
|
-
return
|
|
4158
|
+
const ie = Zs.is(q.value) ? q.value.unwrap() : q.value;
|
|
4159
|
+
return q.kind === bn.multipleInjection ? { chained: q.chained, isMultiple: !0, name: q.name, optional: q.optional, serviceIdentifier: ie, tag: H } : { isMultiple: !1, name: q.name, optional: q.optional, serviceIdentifier: ie, tag: H };
|
|
4160
4160
|
})(x);
|
|
4161
4161
|
if (B !== void 0) {
|
|
4162
|
-
const
|
|
4163
|
-
if (
|
|
4162
|
+
const q = g.operations.getPlan(B);
|
|
4163
|
+
if (q !== void 0 && q.tree.root.isContextFree) return q.tree.root;
|
|
4164
4164
|
}
|
|
4165
4165
|
const N = v(g, b, x), V = new vg(g, h, b, x, N);
|
|
4166
4166
|
return Xl(B, g.operations, V, { bindingConstraintsList: b, chainedBindings: x.kind === bn.multipleInjection && x.chained, optionalBindings: x.optional }), V;
|
|
@@ -5927,7 +5927,7 @@ function Ha(n, e, t = {}, i, r, s) {
|
|
|
5927
5927
|
!s && !B && (process.env.NODE_ENV === "production" || !r) && (i.state.value[n] = {});
|
|
5928
5928
|
const N = /* @__PURE__ */ Ec({});
|
|
5929
5929
|
let V;
|
|
5930
|
-
function
|
|
5930
|
+
function q(le) {
|
|
5931
5931
|
let ne;
|
|
5932
5932
|
h = v = !1, process.env.NODE_ENV !== "production" && (x = []), typeof le == "function" ? (le(i.state.value[n]), ne = {
|
|
5933
5933
|
type: kr.patchFunction,
|
|
@@ -5944,7 +5944,7 @@ function Ha(n, e, t = {}, i, r, s) {
|
|
|
5944
5944
|
V === ve && (h = !0);
|
|
5945
5945
|
}), v = !0, Oi(g, ne, i.state.value[n]);
|
|
5946
5946
|
}
|
|
5947
|
-
const
|
|
5947
|
+
const H = s ? function() {
|
|
5948
5948
|
const { state: ne } = t, ve = ne ? ne() : {};
|
|
5949
5949
|
this.$patch((Ve) => {
|
|
5950
5950
|
Ut(Ve, ve);
|
|
@@ -5996,8 +5996,8 @@ function Ha(n, e, t = {}, i, r, s) {
|
|
|
5996
5996
|
// _s: scope,
|
|
5997
5997
|
$id: n,
|
|
5998
5998
|
$onAction: yu.bind(null, b),
|
|
5999
|
-
$patch:
|
|
6000
|
-
$reset:
|
|
5999
|
+
$patch: q,
|
|
6000
|
+
$reset: H,
|
|
6001
6001
|
$subscribe(le, ne = {}) {
|
|
6002
6002
|
const ve = yu(g, le, ne.detached, () => Ve()), Ve = a.run(() => Rh(() => i.state.value[n], ($t) => {
|
|
6003
6003
|
(ne.flush === "sync" ? v : h) && le({
|
|
@@ -6039,7 +6039,7 @@ function Ha(n, e, t = {}, i, r, s) {
|
|
|
6039
6039
|
set: (le) => {
|
|
6040
6040
|
if (process.env.NODE_ENV !== "production" && r)
|
|
6041
6041
|
throw new Error("cannot set hotState");
|
|
6042
|
-
|
|
6042
|
+
q((ne) => {
|
|
6043
6043
|
Ut(ne, le);
|
|
6044
6044
|
});
|
|
6045
6045
|
}
|
|
@@ -6312,9 +6312,9 @@ function Em() {
|
|
|
6312
6312
|
return o.prototype = Object.create(c.prototype), B(o.prototype, "constructor", o), { extend: b.bind(null, o.prototype) };
|
|
6313
6313
|
} };
|
|
6314
6314
|
}
|
|
6315
|
-
var V = Object.getOwnPropertyDescriptor,
|
|
6316
|
-
function
|
|
6317
|
-
return
|
|
6315
|
+
var V = Object.getOwnPropertyDescriptor, q = [].slice;
|
|
6316
|
+
function H(o, c, u) {
|
|
6317
|
+
return q.call(o, c, u);
|
|
6318
6318
|
}
|
|
6319
6319
|
function ie(o, c) {
|
|
6320
6320
|
return c(o);
|
|
@@ -6507,7 +6507,7 @@ function Em() {
|
|
|
6507
6507
|
function Bt(o) {
|
|
6508
6508
|
mt = o;
|
|
6509
6509
|
}
|
|
6510
|
-
var D = {},
|
|
6510
|
+
var D = {}, z = 100, W = typeof Promise > "u" ? [] : (X = Promise.resolve(), typeof crypto < "u" && crypto.subtle ? [W = crypto.subtle.digest("SHA-512", new Uint8Array([0])), h(W), X] : [X, h(X), X]), X = W[0], Si = W[1], Si = Si && Si.then, me = X && X.constructor, at = !!W[2], We = function(o, c) {
|
|
6511
6511
|
we.push([o, c]), st && (queueMicrotask(At), st = !1);
|
|
6512
6512
|
}, vt = !0, st = !0, S = [], A = [], j = Pt, U = { id: "global", global: !0, ref: 0, unhandleds: [], onunhandled: Pe, pgp: !1, env: {}, finalize: Pe }, F = U, we = [], Se = 0, xe = [];
|
|
6513
6513
|
function L(o) {
|
|
@@ -6743,10 +6743,10 @@ function Em() {
|
|
|
6743
6743
|
return m.ref === 0 && m.finalize(), y;
|
|
6744
6744
|
}
|
|
6745
6745
|
function yi() {
|
|
6746
|
-
return ct.id || (ct.id = ++tp), ++ct.awaits, ct.echoes +=
|
|
6746
|
+
return ct.id || (ct.id = ++tp), ++ct.awaits, ct.echoes += z, ct.id;
|
|
6747
6747
|
}
|
|
6748
6748
|
function Cn() {
|
|
6749
|
-
return !!ct.awaits && (--ct.awaits == 0 && (ct.id = 0), ct.echoes = ct.awaits *
|
|
6749
|
+
return !!ct.awaits && (--ct.awaits == 0 && (ct.id = 0), ct.echoes = ct.awaits * z, !0);
|
|
6750
6750
|
}
|
|
6751
6751
|
function es(o) {
|
|
6752
6752
|
return ct.echoes && o && o.constructor === me ? (yi(), o.then(function(c) {
|
|
@@ -7418,8 +7418,8 @@ function Em() {
|
|
|
7418
7418
|
var $ = R.failures;
|
|
7419
7419
|
I += k - R.numFailures;
|
|
7420
7420
|
for (var T = 0, K = a($); T < K.length; T++) {
|
|
7421
|
-
var
|
|
7422
|
-
_.push($[
|
|
7421
|
+
var G = K[T];
|
|
7422
|
+
_.push($[G]);
|
|
7423
7423
|
}
|
|
7424
7424
|
}
|
|
7425
7425
|
var m = typeof o == "function" ? o : function(k) {
|
|
@@ -7427,9 +7427,9 @@ function Em() {
|
|
|
7427
7427
|
}, y = u.table.core, O = y.schema.primaryKey, w = O.outbound, E = O.extractKey, M = 200, O = c.db._options.modifyChunkSize, _ = (O && (M = typeof O == "object" ? O[y.name] || O["*"] || 200 : O), []), I = 0, P = [], C = o === ml;
|
|
7428
7428
|
return c.clone().primaryKeys().then(function(k) {
|
|
7429
7429
|
function R(T) {
|
|
7430
|
-
var K = Math.min(M, k.length - T),
|
|
7431
|
-
return (C ? Promise.resolve([]) : y.getMany({ trans: d, keys:
|
|
7432
|
-
var te = [], Y = [], ue = w ? [] : null, re = C ?
|
|
7430
|
+
var K = Math.min(M, k.length - T), G = k.slice(T, T + K);
|
|
7431
|
+
return (C ? Promise.resolve([]) : y.getMany({ trans: d, keys: G, cache: "immutable" })).then(function(ee) {
|
|
7432
|
+
var te = [], Y = [], ue = w ? [] : null, re = C ? G : [];
|
|
7433
7433
|
if (!C) for (var Z = 0; Z < K; ++Z) {
|
|
7434
7434
|
var de = ee[Z], Ae = { value: Ve(de), primKey: k[T + Z] };
|
|
7435
7435
|
m.call(Ae, Ae.value, Ae) !== !1 && (Ae.value == null ? re.push(k[T + Z]) : w || Ce(E(de), E(Ae.value)) === 0 ? (Y.push(Ae.value), w && ue.push(k[T + Z])) : (re.push(k[T + Z]), te.push(Ae.value)));
|
|
@@ -7531,7 +7531,7 @@ function Em() {
|
|
|
7531
7531
|
if (typeof T == "string") {
|
|
7532
7532
|
var K = m(T);
|
|
7533
7533
|
if (c(K, E, C)) return !0;
|
|
7534
|
-
for (var
|
|
7534
|
+
for (var G = null, ee = C; ee < _; ++ee) {
|
|
7535
7535
|
var te = ((Y, ue, re, Z, de, Ae) => {
|
|
7536
7536
|
for (var Me = Math.min(Y.length, Z.length), ye = -1, Ee = 0; Ee < Me; ++Ee) {
|
|
7537
7537
|
var Ge = ue[Ee];
|
|
@@ -7540,10 +7540,10 @@ function Em() {
|
|
|
7540
7540
|
}
|
|
7541
7541
|
return Me < Z.length && Ae === "next" ? Y + re.substr(Y.length) : Me < Y.length && Ae === "prev" ? Y.substr(0, re.length) : ye < 0 ? null : Y.substr(0, ye) + Z[ye] + re.substr(ye + 1);
|
|
7542
7542
|
})(T, K, w[ee], E[ee], y, M);
|
|
7543
|
-
te === null &&
|
|
7543
|
+
te === null && G === null ? C = ee + 1 : (G === null || 0 < y(G, te)) && (G = te);
|
|
7544
7544
|
}
|
|
7545
|
-
R(
|
|
7546
|
-
k.continue(
|
|
7545
|
+
R(G !== null ? function() {
|
|
7546
|
+
k.continue(G + O);
|
|
7547
7547
|
} : $);
|
|
7548
7548
|
}
|
|
7549
7549
|
return !1;
|
|
@@ -7651,14 +7651,14 @@ function Em() {
|
|
|
7651
7651
|
}
|
|
7652
7652
|
try {
|
|
7653
7653
|
(O = o.reduce(function(T, K) {
|
|
7654
|
-
for (var
|
|
7655
|
-
var te = T[
|
|
7654
|
+
for (var G = 0, ee = T.length; G < ee; ++G) {
|
|
7655
|
+
var te = T[G];
|
|
7656
7656
|
if (d(K[0], te[1]) < 0 && 0 < d(K[1], te[0])) {
|
|
7657
7657
|
te[0] = y(te[0], K[0]), te[1] = w(te[1], K[1]);
|
|
7658
7658
|
break;
|
|
7659
7659
|
}
|
|
7660
7660
|
}
|
|
7661
|
-
return
|
|
7661
|
+
return G === ee && T.push(K), T;
|
|
7662
7662
|
}, [])).sort(I);
|
|
7663
7663
|
} catch {
|
|
7664
7664
|
return Tt(this, hn);
|
|
@@ -7676,8 +7676,8 @@ function Em() {
|
|
|
7676
7676
|
});
|
|
7677
7677
|
return $._ondirectionchange = function(T) {
|
|
7678
7678
|
_ = T === "next" ? (R = C, p) : (R = k, m), O.sort(I);
|
|
7679
|
-
}, $._addAlgorithm(function(T, K,
|
|
7680
|
-
for (var ee, te = T.key; R(te); ) if (++P === O.length) return K(
|
|
7679
|
+
}, $._addAlgorithm(function(T, K, G) {
|
|
7680
|
+
for (var ee, te = T.key; R(te); ) if (++P === O.length) return K(G), !1;
|
|
7681
7681
|
return !C(ee = te) && !k(ee) || (u._cmp(te, O[P][1]) === 0 || u._cmp(te, O[P][0]) === 0 || K(function() {
|
|
7682
7682
|
_ === p ? T.continue(O[P][0]) : T.continue(O[P][1]);
|
|
7683
7683
|
}), !1);
|
|
@@ -7838,7 +7838,7 @@ function Em() {
|
|
|
7838
7838
|
var _, I = O.name;
|
|
7839
7839
|
return { name: I, schema: O, mutate: function(P) {
|
|
7840
7840
|
var C = P.trans, k = P.type, R = P.keys, $ = P.values, T = P.range;
|
|
7841
|
-
return new Promise(function(K,
|
|
7841
|
+
return new Promise(function(K, G) {
|
|
7842
7842
|
K = ze(K);
|
|
7843
7843
|
var ee = C.objectStore(I), te = ee.keyPath == null, Y = k === "put" || k === "add";
|
|
7844
7844
|
if (!Y && k !== "delete" && k !== "deleteRange") throw new Error("Invalid operation type: " + k);
|
|
@@ -7872,9 +7872,9 @@ function Em() {
|
|
|
7872
7872
|
var C = P.trans, k = P.keys;
|
|
7873
7873
|
return new Promise(function(R, $) {
|
|
7874
7874
|
R = ze(R);
|
|
7875
|
-
for (var T, K = C.objectStore(I),
|
|
7875
|
+
for (var T, K = C.objectStore(I), G = k.length, ee = new Array(G), te = 0, Y = 0, ue = function(de) {
|
|
7876
7876
|
de = de.target, ee[de._pos] = de.result, ++Y === te && R(ee);
|
|
7877
|
-
}, re = rn($), Z = 0; Z <
|
|
7877
|
+
}, re = rn($), Z = 0; Z < G; ++Z) k[Z] != null && ((T = K.get(k[Z]))._pos = Z, T.onsuccess = ue, T.onerror = re, ++te);
|
|
7878
7878
|
te === 0 && R(ee);
|
|
7879
7879
|
});
|
|
7880
7880
|
}, get: function(P) {
|
|
@@ -7889,27 +7889,27 @@ function Em() {
|
|
|
7889
7889
|
}, query: (_ = w, function(P) {
|
|
7890
7890
|
return new Promise(function(C, k) {
|
|
7891
7891
|
C = ze(C);
|
|
7892
|
-
var R, $, T, Y = P.trans, K = P.values,
|
|
7893
|
-
if (
|
|
7892
|
+
var R, $, T, Y = P.trans, K = P.values, G = P.limit, te = P.query, ee = G === 1 / 0 ? void 0 : G, ue = te.index, te = te.range, Y = Y.objectStore(I), Y = ue.isPrimaryKey ? Y : Y.index(ue.name), ue = d(te);
|
|
7893
|
+
if (G === 0) return C({ result: [] });
|
|
7894
7894
|
_ ? ((te = K ? Y.getAll(ue, ee) : Y.getAllKeys(ue, ee)).onsuccess = function(re) {
|
|
7895
7895
|
return C({ result: re.target.result });
|
|
7896
7896
|
}, te.onerror = rn(k)) : (R = 0, $ = !K && "openKeyCursor" in Y ? Y.openKeyCursor(ue) : Y.openCursor(ue), T = [], $.onsuccess = function(re) {
|
|
7897
7897
|
var Z = $.result;
|
|
7898
|
-
return !Z || (T.push(K ? Z.value : Z.primaryKey), ++R ===
|
|
7898
|
+
return !Z || (T.push(K ? Z.value : Z.primaryKey), ++R === G) ? C({ result: T }) : void Z.continue();
|
|
7899
7899
|
}, $.onerror = rn(k));
|
|
7900
7900
|
});
|
|
7901
7901
|
}), openCursor: function(P) {
|
|
7902
7902
|
var C = P.trans, k = P.values, R = P.query, $ = P.reverse, T = P.unique;
|
|
7903
|
-
return new Promise(function(K,
|
|
7903
|
+
return new Promise(function(K, G) {
|
|
7904
7904
|
K = ze(K);
|
|
7905
7905
|
var Y = R.index, ee = R.range, te = C.objectStore(I), te = Y.isPrimaryKey ? te : te.index(Y.name), Y = $ ? T ? "prevunique" : "prev" : T ? "nextunique" : "next", ue = !k && "openKeyCursor" in te ? te.openKeyCursor(d(ee), Y) : te.openCursor(d(ee), Y);
|
|
7906
|
-
ue.onerror = rn(
|
|
7906
|
+
ue.onerror = rn(G), ue.onsuccess = ze(function(re) {
|
|
7907
7907
|
var Z, de, Ae, Me, ye = ue.result;
|
|
7908
7908
|
ye ? (ye.___id = ++cp, ye.done = !1, Z = ye.continue.bind(ye), de = (de = ye.continuePrimaryKey) && de.bind(ye), Ae = ye.advance.bind(ye), Me = function() {
|
|
7909
7909
|
throw new Error("Cursor not stopped");
|
|
7910
7910
|
}, ye.trans = C, ye.stop = ye.continue = ye.continuePrimaryKey = ye.advance = function() {
|
|
7911
7911
|
throw new Error("Cursor not started");
|
|
7912
|
-
}, ye.fail = ze(
|
|
7912
|
+
}, ye.fail = ze(G), ye.next = function() {
|
|
7913
7913
|
var Ee = this, Ge = 1;
|
|
7914
7914
|
return this.start(function() {
|
|
7915
7915
|
return Ge-- ? Ee.continue() : Ee.stop();
|
|
@@ -7936,12 +7936,12 @@ function Em() {
|
|
|
7936
7936
|
ue.onsuccess = Ge, Ge();
|
|
7937
7937
|
}), ye.continue = Z, ye.continuePrimaryKey = de, ye.advance = Ae, Ge(), Ft;
|
|
7938
7938
|
}, K(ye)) : K(null);
|
|
7939
|
-
},
|
|
7939
|
+
}, G);
|
|
7940
7940
|
});
|
|
7941
7941
|
}, count: function(P) {
|
|
7942
7942
|
var C = P.query, k = P.trans, R = C.index, $ = C.range;
|
|
7943
7943
|
return new Promise(function(T, K) {
|
|
7944
|
-
var
|
|
7944
|
+
var G = k.objectStore(I), G = R.isPrimaryKey ? G : G.index(R.name), ee = d($), ee = ee ? G.count(ee) : G.count();
|
|
7945
7945
|
ee.onsuccess = ze(function(te) {
|
|
7946
7946
|
return T(te.target.result);
|
|
7947
7947
|
}), ee.onerror = rn(K);
|
|
@@ -8017,7 +8017,7 @@ function Em() {
|
|
|
8017
8017
|
return T._cfg.version >= I;
|
|
8018
8018
|
})).length === 0 ? L.resolve() : (R.forEach(function(T) {
|
|
8019
8019
|
k.push(function() {
|
|
8020
|
-
var K,
|
|
8020
|
+
var K, G, ee, te = $, Y = T._cfg.dbschema, ue = (fs(_, te, C), fs(_, Y, C), $ = _._dbSchema = Y, Bo(te, Y)), re = (ue.add.forEach(function(Z) {
|
|
8021
8021
|
Fo(C, Z[0], Z[1].primKey, Z[1].indexes);
|
|
8022
8022
|
}), ue.change.forEach(function(Z) {
|
|
8023
8023
|
if (Z.recreate) throw new ge.Upgrade("Not yet support for changing primary key");
|
|
@@ -8032,20 +8032,20 @@ function Em() {
|
|
|
8032
8032
|
}), T._cfg.contentUpgrade);
|
|
8033
8033
|
if (re && T._cfg.version > I) return as(_, C), P._memoizedTables = {}, K = oe(Y), ue.del.forEach(function(Z) {
|
|
8034
8034
|
K[Z] = te[Z];
|
|
8035
|
-
}), Do(_, [_.Transaction.prototype]), cs(_, [_.Transaction.prototype], a(K), K), P.schema = K, (
|
|
8035
|
+
}), Do(_, [_.Transaction.prototype]), cs(_, [_.Transaction.prototype], a(K), K), P.schema = K, (G = qe(re)) && yi(), Y = L.follow(function() {
|
|
8036
8036
|
var Z;
|
|
8037
|
-
(ee = re(P)) &&
|
|
8037
|
+
(ee = re(P)) && G && (Z = Cn.bind(null, null), ee.then(Z, Z));
|
|
8038
8038
|
}), ee && typeof ee.then == "function" ? L.resolve(ee) : Y.then(function() {
|
|
8039
8039
|
return ee;
|
|
8040
8040
|
});
|
|
8041
8041
|
}), k.push(function(K) {
|
|
8042
|
-
var
|
|
8043
|
-
|
|
8044
|
-
return
|
|
8042
|
+
var G, ee, te = T._cfg.dbschema;
|
|
8043
|
+
G = te, ee = K, [].slice.call(ee.db.objectStoreNames).forEach(function(Y) {
|
|
8044
|
+
return G[Y] == null && ee.db.deleteObjectStore(Y);
|
|
8045
8045
|
}), Do(_, [_.Transaction.prototype]), cs(_, [_.Transaction.prototype], _._storeNames, _._dbSchema), P.schema = _._dbSchema;
|
|
8046
8046
|
}), k.push(function(K) {
|
|
8047
|
-
_.idbdb.objectStoreNames.contains("$meta") && (Math.ceil(_.idbdb.version / 10) === T._cfg.version ? (_.idbdb.deleteObjectStore("$meta"), delete _._dbSchema.$meta, _._storeNames = _._storeNames.filter(function(
|
|
8048
|
-
return
|
|
8047
|
+
_.idbdb.objectStoreNames.contains("$meta") && (Math.ceil(_.idbdb.version / 10) === T._cfg.version ? (_.idbdb.deleteObjectStore("$meta"), delete _._dbSchema.$meta, _._storeNames = _._storeNames.filter(function(G) {
|
|
8048
|
+
return G !== "$meta";
|
|
8049
8049
|
})) : K.objectStore("$meta").put(T._cfg.version, "version"));
|
|
8050
8050
|
});
|
|
8051
8051
|
}), (function T() {
|
|
@@ -8114,7 +8114,7 @@ function Em() {
|
|
|
8114
8114
|
}
|
|
8115
8115
|
function us(o, c, u) {
|
|
8116
8116
|
var d = {};
|
|
8117
|
-
return
|
|
8117
|
+
return H(c.objectStoreNames, 0).forEach(function(p) {
|
|
8118
8118
|
for (var m = u.objectStore(p), y = Ro(bl(M = m.keyPath), M || "", !0, !1, !!m.autoIncrement, M && typeof M != "string", !0), w = [], E = 0; E < m.indexNames.length; ++E) {
|
|
8119
8119
|
var O = m.index(m.indexNames[E]), M = O.keyPath, O = Ro(O.name, M, !!O.unique, !!O.multiEntry, !1, M && typeof M != "string", !1);
|
|
8120
8120
|
w.push(O);
|
|
@@ -8127,7 +8127,7 @@ function Em() {
|
|
|
8127
8127
|
var m = d[p], y = u.objectStore(m);
|
|
8128
8128
|
o._hasGetAll = "getAll" in y;
|
|
8129
8129
|
for (var w = 0; w < y.indexNames.length; ++w) {
|
|
8130
|
-
var E, M = y.indexNames[w], O = y.index(M).keyPath, O = typeof O == "string" ? O : "[" +
|
|
8130
|
+
var E, M = y.indexNames[w], O = y.index(M).keyPath, O = typeof O == "string" ? O : "[" + H(O).join("+") + "]";
|
|
8131
8131
|
c[m] && (E = c[m].idxByName[O]) && (E.name = M, delete c[m].idxByName[O], c[m].idxByName[M] = E);
|
|
8132
8132
|
}
|
|
8133
8133
|
}
|
|
@@ -8320,10 +8320,10 @@ function Em() {
|
|
|
8320
8320
|
})) : (O.onerror = rn(P), $ = R.oldVersion > Math.pow(2, 62) ? 0 : R.oldVersion, _ = $ < 1, o.idbdb = k.result, m && pp(o, O), dp(o, $ / 10, O, P));
|
|
8321
8321
|
}, P), k.onsuccess = ze(function() {
|
|
8322
8322
|
O = null;
|
|
8323
|
-
var R, $, T, K,
|
|
8323
|
+
var R, $, T, K, G, ee, te = o.idbdb = k.result, Y = H(te.objectStoreNames);
|
|
8324
8324
|
if (0 < Y.length) try {
|
|
8325
|
-
var ue = te.transaction((
|
|
8326
|
-
if (c.autoSchema) ee = te, K = ue, (T = o).verno = ee.version / 10, K = T._dbSchema = us(0, ee, K), T._storeNames =
|
|
8325
|
+
var ue = te.transaction((G = Y).length === 1 ? G[0] : G, "readonly");
|
|
8326
|
+
if (c.autoSchema) ee = te, K = ue, (T = o).verno = ee.version / 10, K = T._dbSchema = us(0, ee, K), T._storeNames = H(ee.objectStoreNames, 0), cs(T, [T._allTables], a(K), K);
|
|
8327
8327
|
else if (fs(o, o._dbSchema, ue), $ = ue, (($ = Bo(us(0, (R = o).idbdb, $), R._dbSchema)).add.length || $.change.some(function(re) {
|
|
8328
8328
|
return re.add.length || re.change.length;
|
|
8329
8329
|
})) && !m) return console.warn("Dexie SchemaDiff: Schema was extended without increasing the number passed to db.version(). Dexie will add missing parts and increment native version number to workaround this."), te.close(), p = te.version + 1, m = !0, I(w());
|
|
@@ -8334,7 +8334,7 @@ function Em() {
|
|
|
8334
8334
|
c.vcFired = !0, o.on("versionchange").fire(re);
|
|
8335
8335
|
}), te.onclose = ze(function() {
|
|
8336
8336
|
o.close({ disableAutoOpen: !1 });
|
|
8337
|
-
}), _ && (Y = o._deps,
|
|
8337
|
+
}), _ && (Y = o._deps, G = C, Uo(ee = Y.indexedDB) || G === ts || Vo(ee, Y.IDBKeyRange).put({ name: G }).catch(Pe)), I();
|
|
8338
8338
|
}, P);
|
|
8339
8339
|
}).catch(function(I) {
|
|
8340
8340
|
switch (I?.name) {
|
|
@@ -8408,8 +8408,8 @@ function Em() {
|
|
|
8408
8408
|
var u = o.table(d), d = u.schema, p = {}, m = [];
|
|
8409
8409
|
function y(I, P, C) {
|
|
8410
8410
|
var T = ir(I), k = p[T] = p[T] || [], R = I == null ? 0 : typeof I == "string" ? 1 : I.length, $ = 0 < P, T = i(i({}, C), { name: $ ? "".concat(T, "(virtual-from:").concat(C.name, ")") : C.name, lowLevelIndex: C, isVirtual: $, keyTail: P, keyLength: R, extractKey: Lo(I), unique: !$ && C.unique });
|
|
8411
|
-
return k.push(T), T.isPrimaryKey || m.push(T), 1 < R && y(R === 2 ? I[0] : I.slice(0, R - 1), P + 1, C), k.sort(function(K,
|
|
8412
|
-
return K.keyTail -
|
|
8411
|
+
return k.push(T), T.isPrimaryKey || m.push(T), 1 < R && y(R === 2 ? I[0] : I.slice(0, R - 1), P + 1, C), k.sort(function(K, G) {
|
|
8412
|
+
return K.keyTail - G.keyTail;
|
|
8413
8413
|
}), T;
|
|
8414
8414
|
}
|
|
8415
8415
|
var w = y(d.primaryKey.keyPath, 0, d.primaryKey);
|
|
@@ -8499,21 +8499,21 @@ function Em() {
|
|
|
8499
8499
|
function O(_) {
|
|
8500
8500
|
var I, P, C, k = F.trans, R = _.keys || Qo(d, _);
|
|
8501
8501
|
if (R) return (_ = _.type === "add" || _.type === "put" ? i(i({}, _), { keys: R }) : i({}, _)).type !== "delete" && (_.values = r([], _.values)), _.keys && (_.keys = r([], _.keys)), I = u, C = R, ((P = _).type === "add" ? Promise.resolve([]) : I.getMany({ trans: P.trans, keys: C, cache: "immutable" })).then(function($) {
|
|
8502
|
-
var T = R.map(function(K,
|
|
8503
|
-
var ee, te, Y, ue = $[
|
|
8504
|
-
return _.type === "delete" ? w.fire.call(re, K, ue, k) : _.type === "add" || ue === void 0 ? (ee = E.fire.call(re, K, _.values[
|
|
8502
|
+
var T = R.map(function(K, G) {
|
|
8503
|
+
var ee, te, Y, ue = $[G], re = { onerror: null, onsuccess: null };
|
|
8504
|
+
return _.type === "delete" ? w.fire.call(re, K, ue, k) : _.type === "add" || ue === void 0 ? (ee = E.fire.call(re, K, _.values[G], k), K == null && ee != null && (_.keys[G] = K = ee, d.outbound || Q(_.values[G], d.keyPath, K))) : (ee = Jo(ue, _.values[G]), (te = M.fire.call(re, ee, K, ue, k)) && (Y = _.values[G], Object.keys(te).forEach(function(Z) {
|
|
8505
8505
|
g(Y, Z) ? Y[Z] = te[Z] : Q(Y, Z, te[Z]);
|
|
8506
8506
|
}))), re;
|
|
8507
8507
|
});
|
|
8508
8508
|
return u.mutate(_).then(function(K) {
|
|
8509
|
-
for (var
|
|
8509
|
+
for (var G = K.failures, ee = K.results, te = K.numFailures, K = K.lastResult, Y = 0; Y < R.length; ++Y) {
|
|
8510
8510
|
var ue = (ee || R)[Y], re = T[Y];
|
|
8511
|
-
ue == null ? re.onerror && re.onerror(
|
|
8511
|
+
ue == null ? re.onerror && re.onerror(G[Y]) : re.onsuccess && re.onsuccess(_.type === "put" && $[Y] ? _.values[Y] : ue);
|
|
8512
8512
|
}
|
|
8513
|
-
return { failures:
|
|
8513
|
+
return { failures: G, results: ee, numFailures: te, lastResult: K };
|
|
8514
8514
|
}).catch(function(K) {
|
|
8515
|
-
return T.forEach(function(
|
|
8516
|
-
return
|
|
8515
|
+
return T.forEach(function(G) {
|
|
8516
|
+
return G.onerror && G.onerror(K);
|
|
8517
8517
|
}), Promise.reject(K);
|
|
8518
8518
|
});
|
|
8519
8519
|
});
|
|
@@ -8572,9 +8572,9 @@ function Em() {
|
|
|
8572
8572
|
return C.compound && C.keyPath.includes(w.keyPath);
|
|
8573
8573
|
}), I = i(i({}, m), { mutate: function(C) {
|
|
8574
8574
|
function k(de) {
|
|
8575
|
-
return de = "idb://".concat(c, "/").concat(d, "/").concat(de),
|
|
8575
|
+
return de = "idb://".concat(c, "/").concat(d, "/").concat(de), G[de] || (G[de] = new ht());
|
|
8576
8576
|
}
|
|
8577
|
-
var R, $, T, K = C.trans,
|
|
8577
|
+
var R, $, T, K = C.trans, G = C.mutatedParts || (C.mutatedParts = {}), ee = k(""), te = k(":dels"), Y = C.type, re = C.type === "deleteRange" ? [C.range] : C.type === "delete" ? [C.keys] : C.values.length < 50 ? [Qo(w, C).filter(function(de) {
|
|
8578
8578
|
return de;
|
|
8579
8579
|
}), C.values] : [], ue = re[0], re = re[1], Z = C.trans._cache;
|
|
8580
8580
|
return l(ue) ? (ee.addKeys(ue), (Y = Y === "delete" || ue.length === re.length ? Cl(ue, Z) : null) || te.addKeys(ue), (Y || re) && (R = k, $ = Y, T = re, y.indexes.forEach(function(de) {
|
|
@@ -8601,7 +8601,7 @@ function Em() {
|
|
|
8601
8601
|
return Ft === w.keyPath;
|
|
8602
8602
|
}), Ee = 0, Ge = de.results.length; Ee < Ge; ++Ee) Me[Ee][ye] = de.results[Ee];
|
|
8603
8603
|
k(Ae.name).addKeys(Me);
|
|
8604
|
-
})), K.mutatedParts = ps(K.mutatedParts || {},
|
|
8604
|
+
})), K.mutatedParts = ps(K.mutatedParts || {}, G), de;
|
|
8605
8605
|
});
|
|
8606
8606
|
} }), P = { get: function(C) {
|
|
8607
8607
|
return [w, new ht(C.key)];
|
|
@@ -8614,15 +8614,15 @@ function Em() {
|
|
|
8614
8614
|
if ($) {
|
|
8615
8615
|
var K, R = function(re) {
|
|
8616
8616
|
return re = "idb://".concat(c, "/").concat(d, "/").concat(re), T[re] || (T[re] = new ht());
|
|
8617
|
-
},
|
|
8617
|
+
}, G = R(""), ee = R(":dels"), $ = P[C](k), te = $[0], $ = $[1];
|
|
8618
8618
|
if ((C === "query" && te.isPrimaryKey && !k.values ? ee : R(te.name || "")).add($), !te.isPrimaryKey) {
|
|
8619
8619
|
if (C !== "count") return K = C === "query" && O && k.values && m.query(i(i({}, k), { values: !1 })), m[C].apply(this, arguments).then(function(re) {
|
|
8620
8620
|
if (C === "query") {
|
|
8621
8621
|
if (O && k.values) return K.then(function(Me) {
|
|
8622
|
-
return Me = Me.result,
|
|
8622
|
+
return Me = Me.result, G.addKeys(Me), re;
|
|
8623
8623
|
});
|
|
8624
8624
|
var Z = k.values ? re.result.map(M) : re.result;
|
|
8625
|
-
(k.values ?
|
|
8625
|
+
(k.values ? G : ee).addKeys(Z);
|
|
8626
8626
|
} else {
|
|
8627
8627
|
var de, Ae;
|
|
8628
8628
|
if (C === "openCursor") return Ae = k.values, (de = re) && Object.create(de, { key: { get: function() {
|
|
@@ -8631,7 +8631,7 @@ function Em() {
|
|
|
8631
8631
|
var Me = de.primaryKey;
|
|
8632
8632
|
return ee.addKey(Me), Me;
|
|
8633
8633
|
} }, value: { get: function() {
|
|
8634
|
-
return Ae &&
|
|
8634
|
+
return Ae && G.addKey(de.primaryKey), de.value;
|
|
8635
8635
|
} } });
|
|
8636
8636
|
}
|
|
8637
8637
|
return re;
|
|
@@ -8661,10 +8661,10 @@ function Em() {
|
|
|
8661
8661
|
return !u || u.length === 0 || (y = c.query.index, w = y.multiEntry, E = c.query.range, M = d.schema.primaryKey.extractKey, O = y.extractKey, _ = (y.lowLevelIndex || y).extractKey, (d = u.reduce(function(I, P) {
|
|
8662
8662
|
var C = I, k = [];
|
|
8663
8663
|
if (P.type === "add" || P.type === "put") for (var R = new ht(), $ = P.values.length - 1; 0 <= $; --$) {
|
|
8664
|
-
var T, K = P.values[$],
|
|
8665
|
-
!R.hasKey(
|
|
8664
|
+
var T, K = P.values[$], G = M(K);
|
|
8665
|
+
!R.hasKey(G) && (T = O(K), w && l(T) ? T.some(function(re) {
|
|
8666
8666
|
return Xo(re, E);
|
|
8667
|
-
}) : Xo(T, E)) && (R.addKey(
|
|
8667
|
+
}) : Xo(T, E)) && (R.addKey(G), k.push(K));
|
|
8668
8668
|
}
|
|
8669
8669
|
switch (P.type) {
|
|
8670
8670
|
case "add":
|
|
@@ -8757,7 +8757,7 @@ function Em() {
|
|
|
8757
8757
|
P.optimisticOps = P.optimisticOps.filter(function(de) {
|
|
8758
8758
|
return de.trans !== w;
|
|
8759
8759
|
});
|
|
8760
|
-
for (var
|
|
8760
|
+
for (var G = 0, ee = Object.values(P.queries.query); G < ee.length; G++) for (var te, Y, ue, re = 0, Z = (te = ee[G]).slice(); re < Z.length; re++) (Y = Z[re]).res != null && w.mutatedParts && (E && !Y.dirty ? (ue = Object.isFrozen(Y.res), ue = Al(Y.res, Y.req, k, C, Y, ue), Y.dirty ? (he(te, Y), Y.subscribers.forEach(function(de) {
|
|
8761
8761
|
return M.add(de);
|
|
8762
8762
|
})) : ue !== Y.res && (Y.res = ue, Y.promise = L.resolve({ result: ue }))) : (Y.dirty && he(te, Y), Y.subscribers.forEach(function(de) {
|
|
8763
8763
|
return M.add(de);
|
|
@@ -8800,15 +8800,15 @@ function Em() {
|
|
|
8800
8800
|
if (!T) return [null, !1, $, null];
|
|
8801
8801
|
switch (k) {
|
|
8802
8802
|
case "query":
|
|
8803
|
-
var K = T.find(function(
|
|
8804
|
-
return
|
|
8803
|
+
var K = T.find(function(G) {
|
|
8804
|
+
return G.req.limit === R.limit && G.req.values === R.values && Tl(G.req.query.range, R.query.range);
|
|
8805
8805
|
});
|
|
8806
|
-
return K ? [K, !0, $, T] : [T.find(function(
|
|
8807
|
-
return ("limit" in
|
|
8806
|
+
return K ? [K, !0, $, T] : [T.find(function(G) {
|
|
8807
|
+
return ("limit" in G.req ? G.req.limit : 1 / 0) >= R.limit && (!R.values || G.req.values) && wp(G.req.query.range, R.query.range);
|
|
8808
8808
|
}), !1, $, T];
|
|
8809
8809
|
case "count":
|
|
8810
|
-
return K = T.find(function(
|
|
8811
|
-
return Tl(
|
|
8810
|
+
return K = T.find(function(G) {
|
|
8811
|
+
return Tl(G.req.query.range, R.query.range);
|
|
8812
8812
|
}), [K, !!K, $, T];
|
|
8813
8813
|
}
|
|
8814
8814
|
})(c, u, "query", m), I = _[0], M = _[2], O = _[3], I && _[1] ? I.obsSet = m.obsSet : (_ = d.query(m).then(function(P) {
|
|
@@ -9096,14 +9096,14 @@ function Em() {
|
|
|
9096
9096
|
var K = pn();
|
|
9097
9097
|
try {
|
|
9098
9098
|
m && yi();
|
|
9099
|
-
var
|
|
9100
|
-
return
|
|
9099
|
+
var G = On(o, T);
|
|
9100
|
+
return G = m ? G.finally(Cn) : G;
|
|
9101
9101
|
} finally {
|
|
9102
9102
|
K && En();
|
|
9103
9103
|
}
|
|
9104
9104
|
})(R = { subscr: k, signal: y.signal, requery: I, querier: o, trans: null }), Promise.resolve($).then(function(T) {
|
|
9105
9105
|
u = !0, c = T, w || R.signal.aborted || (E = {}, ((K) => {
|
|
9106
|
-
for (var
|
|
9106
|
+
for (var G in K) if (g(K, G)) return;
|
|
9107
9107
|
return 1;
|
|
9108
9108
|
})(M = k) || _ || (Pn(tr, P), _ = !0), Io(function() {
|
|
9109
9109
|
return !w && p.next && p.next(T);
|
|
@@ -10059,7 +10059,7 @@ function wo(n, e, t = "flow", { indentAtStart: i, lineWidth: r = 80, minContentW
|
|
|
10059
10059
|
const h = [], v = {};
|
|
10060
10060
|
let g = r - e.length;
|
|
10061
10061
|
typeof i == "number" && (i > r - Math.max(2, s) ? h.push(0) : g = r - i);
|
|
10062
|
-
let b, x, B = !1, N = -1, V = -1,
|
|
10062
|
+
let b, x, B = !1, N = -1, V = -1, q = -1;
|
|
10063
10063
|
t === nc && (N = ku(n, N, e.length), N !== -1 && (g = N + f));
|
|
10064
10064
|
for (let ie; ie = n[N += 1]; ) {
|
|
10065
10065
|
if (t === Vs && ie === "\\") {
|
|
@@ -10076,7 +10076,7 @@ function wo(n, e, t = "flow", { indentAtStart: i, lineWidth: r = 80, minContentW
|
|
|
10076
10076
|
default:
|
|
10077
10077
|
N += 1;
|
|
10078
10078
|
}
|
|
10079
|
-
|
|
10079
|
+
q = N;
|
|
10080
10080
|
}
|
|
10081
10081
|
if (ie === `
|
|
10082
10082
|
`)
|
|
@@ -10094,7 +10094,7 @@ function wo(n, e, t = "flow", { indentAtStart: i, lineWidth: r = 80, minContentW
|
|
|
10094
10094
|
else if (t === Vs) {
|
|
10095
10095
|
for (; x === " " || x === " "; )
|
|
10096
10096
|
x = ie, ie = n[N += 1], B = !0;
|
|
10097
|
-
const se = N >
|
|
10097
|
+
const se = N > q + 1 ? N - 2 : V - 1;
|
|
10098
10098
|
if (v[se])
|
|
10099
10099
|
return n;
|
|
10100
10100
|
h.push(se), v[se] = !0, g = se + f, b = void 0;
|
|
@@ -10106,14 +10106,14 @@ function wo(n, e, t = "flow", { indentAtStart: i, lineWidth: r = 80, minContentW
|
|
|
10106
10106
|
if (B && l && l(), h.length === 0)
|
|
10107
10107
|
return n;
|
|
10108
10108
|
a && a();
|
|
10109
|
-
let
|
|
10109
|
+
let H = n.slice(0, h[0]);
|
|
10110
10110
|
for (let ie = 0; ie < h.length; ++ie) {
|
|
10111
10111
|
const se = h[ie], J = h[ie + 1] || n.length;
|
|
10112
|
-
se === 0 ?
|
|
10113
|
-
${e}${n.slice(0, J)}` : (t === Vs && v[se] && (
|
|
10112
|
+
se === 0 ? H = `
|
|
10113
|
+
${e}${n.slice(0, J)}` : (t === Vs && v[se] && (H += `${n[se]}\\`), H += `
|
|
10114
10114
|
${e}${n.slice(se + 1, J)}`);
|
|
10115
10115
|
}
|
|
10116
|
-
return
|
|
10116
|
+
return H;
|
|
10117
10117
|
}
|
|
10118
10118
|
function ku(n, e, t) {
|
|
10119
10119
|
let i = e, r = e + 1, s = n[r];
|
|
@@ -10260,19 +10260,19 @@ function Us({ comment: n, type: e, value: t }, i, r, s) {
|
|
|
10260
10260
|
`);
|
|
10261
10261
|
B === -1 ? g = "-" : t === x || B !== x.length - 1 ? (g = "+", s && s()) : g = "", x && (t = t.slice(0, -x.length), x[x.length - 1] === `
|
|
10262
10262
|
` && (x = x.slice(0, -1)), x = x.replace(rc, `$&${h}`));
|
|
10263
|
-
let N = !1, V,
|
|
10263
|
+
let N = !1, V, q = -1;
|
|
10264
10264
|
for (V = 0; V < t.length; ++V) {
|
|
10265
10265
|
const J = t[V];
|
|
10266
10266
|
if (J === " ")
|
|
10267
10267
|
N = !0;
|
|
10268
10268
|
else if (J === `
|
|
10269
10269
|
`)
|
|
10270
|
-
|
|
10270
|
+
q = V;
|
|
10271
10271
|
else
|
|
10272
10272
|
break;
|
|
10273
10273
|
}
|
|
10274
|
-
let
|
|
10275
|
-
|
|
10274
|
+
let H = t.substring(0, q < V ? q + 1 : V);
|
|
10275
|
+
H && (t = t.substring(H.length), H = H.replace(/\n+/g, `$&${h}`));
|
|
10276
10276
|
let se = (N ? h ? "2" : "1" : "") + g;
|
|
10277
10277
|
if (n && (se += " " + l(n.replace(/ ?[\r\n]+/g, " ")), r && r()), !v) {
|
|
10278
10278
|
const J = t.replace(/\n+/g, `
|
|
@@ -10282,13 +10282,13 @@ $&`).replace(/(?:^|\n)([\t ].*)(?:([\n\t ]*)\n(?![\n\t ]))?/g, "$1$2").replace(/
|
|
|
10282
10282
|
a !== "folded" && e !== _e.BLOCK_FOLDED && (Q.onOverflow = () => {
|
|
10283
10283
|
ce = !0;
|
|
10284
10284
|
});
|
|
10285
|
-
const oe = wo(`${
|
|
10285
|
+
const oe = wo(`${H}${J}${x}`, h, nc, Q);
|
|
10286
10286
|
if (!ce)
|
|
10287
10287
|
return `>${se}
|
|
10288
10288
|
${h}${oe}`;
|
|
10289
10289
|
}
|
|
10290
10290
|
return t = t.replace(/\n+/g, `$&${h}`), `|${se}
|
|
10291
|
-
${h}${
|
|
10291
|
+
${h}${H}${t}${x}`;
|
|
10292
10292
|
}
|
|
10293
10293
|
function Hm(n, e, t, i) {
|
|
10294
10294
|
const { type: r, value: s } = n, { actualString: a, implicitKey: l, indent: f, indentStep: h, inFlow: v } = e;
|
|
@@ -10360,6 +10360,7 @@ function cd(n, e) {
|
|
|
10360
10360
|
nullStr: "null",
|
|
10361
10361
|
simpleKeys: !1,
|
|
10362
10362
|
singleQuote: null,
|
|
10363
|
+
trailingComma: !1,
|
|
10363
10364
|
trueStr: "true",
|
|
10364
10365
|
verifyAliasOrder: !0
|
|
10365
10366
|
}, n.schema.toStringOptions, e);
|
|
@@ -10464,15 +10465,15 @@ function Jm({ key: n, value: e }, t, i, r) {
|
|
|
10464
10465
|
return V = `? ${V}`, b && !B ? V += ii(V, t.indent, h(b)) : N && r && r(), V;
|
|
10465
10466
|
B && (b = null), x ? (b && (V += ii(V, t.indent, h(b))), V = `? ${V}
|
|
10466
10467
|
${l}:`) : (V = `${V}:`, b && (V += ii(V, t.indent, h(b))));
|
|
10467
|
-
let
|
|
10468
|
-
tt(e) ? (
|
|
10468
|
+
let q, H, ie;
|
|
10469
|
+
tt(e) ? (q = !!e.spaceBefore, H = e.commentBefore, ie = e.comment) : (q = !1, H = null, ie = null, e && typeof e == "object" && (e = a.createNode(e))), t.implicitKey = !1, !x && !b && Ke(e) && (t.indentAtStart = V.length + 1), N = !1, !v && f.length >= 2 && !t.inFlow && !x && Wr(e) && !e.flow && !e.tag && !e.anchor && (t.indent = t.indent.substring(2));
|
|
10469
10470
|
let se = !1;
|
|
10470
10471
|
const J = qi(e, t, () => se = !0, () => N = !0);
|
|
10471
10472
|
let ce = " ";
|
|
10472
|
-
if (b ||
|
|
10473
|
-
if (ce =
|
|
10474
|
-
` : "",
|
|
10475
|
-
const Q = h(
|
|
10473
|
+
if (b || q || H) {
|
|
10474
|
+
if (ce = q ? `
|
|
10475
|
+
` : "", H) {
|
|
10476
|
+
const Q = h(H);
|
|
10476
10477
|
ce += `
|
|
10477
10478
|
${yn(Q, t.indent)}`;
|
|
10478
10479
|
}
|
|
@@ -10610,12 +10611,12 @@ function Zm({ comment: n, items: e }, t, { blockItemPrefix: i, flowChars: r, ite
|
|
|
10610
10611
|
if (tt(N))
|
|
10611
10612
|
!g && N.spaceBefore && b.push(""), ro(t, b, N.commentBefore, g), N.comment && (V = N.comment);
|
|
10612
10613
|
else if (rt(N)) {
|
|
10613
|
-
const
|
|
10614
|
-
|
|
10614
|
+
const H = tt(N.key) ? N.key : null;
|
|
10615
|
+
H && (!g && H.spaceBefore && b.push(""), ro(t, b, H.commentBefore, g));
|
|
10615
10616
|
}
|
|
10616
10617
|
g = !1;
|
|
10617
|
-
let
|
|
10618
|
-
V && (
|
|
10618
|
+
let q = qi(N, v, () => V = null, () => g = !0);
|
|
10619
|
+
V && (q += ii(q, s, h(V))), g && V && (g = !1), b.push(i + q);
|
|
10619
10620
|
}
|
|
10620
10621
|
let x;
|
|
10621
10622
|
if (b.length === 0)
|
|
@@ -10648,15 +10649,15 @@ function ev({ items: n }, e, { flowChars: t, itemIndent: i }) {
|
|
|
10648
10649
|
if (tt(N))
|
|
10649
10650
|
N.spaceBefore && g.push(""), ro(e, g, N.commentBefore, !1), N.comment && (V = N.comment);
|
|
10650
10651
|
else if (rt(N)) {
|
|
10651
|
-
const
|
|
10652
|
-
|
|
10652
|
+
const H = tt(N.key) ? N.key : null;
|
|
10653
|
+
H && (H.spaceBefore && g.push(""), ro(e, g, H.commentBefore, !1), H.comment && (h = !0));
|
|
10653
10654
|
const ie = tt(N.value) ? N.value : null;
|
|
10654
|
-
ie ? (ie.comment && (V = ie.comment), ie.commentBefore && (h = !0)) : N.value == null &&
|
|
10655
|
+
ie ? (ie.comment && (V = ie.comment), ie.commentBefore && (h = !0)) : N.value == null && H?.comment && (V = H.comment);
|
|
10655
10656
|
}
|
|
10656
10657
|
V && (h = !0);
|
|
10657
|
-
let
|
|
10658
|
-
|
|
10659
|
-
`)) && (h =
|
|
10658
|
+
let q = qi(N, f, () => V = null);
|
|
10659
|
+
h || (h = g.length > v || q.includes(`
|
|
10660
|
+
`)), B < n.length - 1 ? q += "," : e.options.trailingComma && (e.options.lineWidth > 0 && (h || (h = g.reduce((H, ie) => H + ie.length + 2, 2) + (q.length + 2) > e.options.lineWidth)), h && (q += ",")), V && (q += ii(q, i, l(V))), g.push(q), v = g.length;
|
|
10660
10661
|
}
|
|
10661
10662
|
const { start: b, end: x } = t;
|
|
10662
10663
|
if (g.length === 0)
|
|
@@ -11605,8 +11606,8 @@ class Gr {
|
|
|
11605
11606
|
if (typeof t == "function")
|
|
11606
11607
|
e = t.call({ "": e }, "", e), r = t;
|
|
11607
11608
|
else if (Array.isArray(t)) {
|
|
11608
|
-
const V = (
|
|
11609
|
-
|
|
11609
|
+
const V = (H) => typeof H == "number" || H instanceof String || H instanceof Number, q = t.filter(V).map(String);
|
|
11610
|
+
q.length > 0 && (t = t.concat(q)), r = t;
|
|
11610
11611
|
} else i === void 0 && t && (i = t, t = void 0);
|
|
11611
11612
|
const { aliasDuplicateObjects: s, anchorPrefix: a, flow: l, keepUndefined: f, onTagObj: h, tag: v } = i ?? {}, { onAnchor: g, setAnchors: b, sourceObjects: x } = Um(
|
|
11612
11613
|
this,
|
|
@@ -11804,7 +11805,7 @@ ${h}
|
|
|
11804
11805
|
}
|
|
11805
11806
|
};
|
|
11806
11807
|
function zi(n, { flow: e, indicator: t, next: i, offset: r, onError: s, parentIndent: a, startOnNewline: l }) {
|
|
11807
|
-
let f = !1, h = l, v = l, g = "", b = "", x = !1, B = !1, N = null, V = null,
|
|
11808
|
+
let f = !1, h = l, v = l, g = "", b = "", x = !1, B = !1, N = null, V = null, q = null, H = null, ie = null, se = null, J = null;
|
|
11808
11809
|
for (const oe of n)
|
|
11809
11810
|
switch (B && (oe.type !== "space" && oe.type !== "newline" && oe.type !== "comma" && s(oe.offset, "MISSING_CHAR", "Tags and anchors must be separated from the next token by white space"), B = !1), N && (h && oe.type !== "comment" && oe.type !== "newline" && s(N, "TAB_AS_INDENT", "Tabs are not allowed as indentation"), N = null), oe.type) {
|
|
11810
11811
|
case "space":
|
|
@@ -11817,17 +11818,17 @@ function zi(n, { flow: e, indicator: t, next: i, offset: r, onError: s, parentIn
|
|
|
11817
11818
|
break;
|
|
11818
11819
|
}
|
|
11819
11820
|
case "newline":
|
|
11820
|
-
h ? g ? g += oe.source : (!se || t !== "seq-item-ind") && (f = !0) : b += oe.source, h = !0, x = !0, (V ||
|
|
11821
|
+
h ? g ? g += oe.source : (!se || t !== "seq-item-ind") && (f = !0) : b += oe.source, h = !0, x = !0, (V || q) && (H = oe), v = !0;
|
|
11821
11822
|
break;
|
|
11822
11823
|
case "anchor":
|
|
11823
11824
|
V && s(oe, "MULTIPLE_ANCHORS", "A node can have at most one anchor"), oe.source.endsWith(":") && s(oe.offset + oe.source.length - 1, "BAD_ALIAS", "Anchor ending in : is ambiguous", !0), V = oe, J ?? (J = oe.offset), h = !1, v = !1, B = !0;
|
|
11824
11825
|
break;
|
|
11825
11826
|
case "tag": {
|
|
11826
|
-
|
|
11827
|
+
q && s(oe, "MULTIPLE_TAGS", "A node can have at most one tag"), q = oe, J ?? (J = oe.offset), h = !1, v = !1, B = !0;
|
|
11827
11828
|
break;
|
|
11828
11829
|
}
|
|
11829
11830
|
case t:
|
|
11830
|
-
(V ||
|
|
11831
|
+
(V || q) && s(oe, "BAD_PROP_ORDER", `Anchors and tags must be after the ${oe.source} indicator`), se && s(oe, "UNEXPECTED_TOKEN", `Unexpected ${oe.source} in ${e ?? "collection"}`), se = oe, h = t === "seq-item-ind" || t === "explicit-key-ind", v = !1;
|
|
11831
11832
|
break;
|
|
11832
11833
|
case "comma":
|
|
11833
11834
|
if (e) {
|
|
@@ -11846,8 +11847,8 @@ function zi(n, { flow: e, indicator: t, next: i, offset: r, onError: s, parentIn
|
|
|
11846
11847
|
comment: g,
|
|
11847
11848
|
hasNewline: x,
|
|
11848
11849
|
anchor: V,
|
|
11849
|
-
tag:
|
|
11850
|
-
newlineAfterProp:
|
|
11850
|
+
tag: q,
|
|
11851
|
+
newlineAfterProp: H,
|
|
11851
11852
|
end: Q,
|
|
11852
11853
|
start: J ?? Q
|
|
11853
11854
|
};
|
|
@@ -11923,26 +11924,26 @@ function mv({ composeNode: n, composeEmptyNode: e }, t, i, r, s) {
|
|
|
11923
11924
|
(N.newlineAfterProp || Dr(b)) && r(b ?? g[g.length - 1], "MULTILINE_IMPLICIT_KEY", "Implicit keys need to be on a single line");
|
|
11924
11925
|
} else N.found?.indent !== i.indent && r(f, "BAD_INDENT", Pu);
|
|
11925
11926
|
t.atKey = !0;
|
|
11926
|
-
const
|
|
11927
|
-
t.schema.compat && sc(i.indent, b, r), t.atKey = !1, Id(t, l.items,
|
|
11927
|
+
const q = N.end, H = b ? n(t, b, N, r) : e(t, q, g, null, N, r);
|
|
11928
|
+
t.schema.compat && sc(i.indent, b, r), t.atKey = !1, Id(t, l.items, H) && r(q, "DUPLICATE_KEY", "Map keys must be unique");
|
|
11928
11929
|
const ie = zi(x ?? [], {
|
|
11929
11930
|
indicator: "map-value-ind",
|
|
11930
11931
|
next: B,
|
|
11931
|
-
offset:
|
|
11932
|
+
offset: H.range[2],
|
|
11932
11933
|
onError: r,
|
|
11933
11934
|
parentIndent: i.indent,
|
|
11934
11935
|
startOnNewline: !b || b.type === "block-scalar"
|
|
11935
11936
|
});
|
|
11936
11937
|
if (f = ie.end, ie.found) {
|
|
11937
|
-
V && (B?.type === "block-map" && !ie.hasNewline && r(f, "BLOCK_AS_IMPLICIT_KEY", "Nested mappings are not allowed in compact mappings"), t.options.strict && N.start < ie.found.offset - 1024 && r(
|
|
11938
|
+
V && (B?.type === "block-map" && !ie.hasNewline && r(f, "BLOCK_AS_IMPLICIT_KEY", "Nested mappings are not allowed in compact mappings"), t.options.strict && N.start < ie.found.offset - 1024 && r(H.range, "KEY_OVER_1024_CHARS", "The : indicator must be at most 1024 chars after the start of an implicit block mapping key"));
|
|
11938
11939
|
const se = B ? n(t, B, ie, r) : e(t, f, x, null, ie, r);
|
|
11939
11940
|
t.schema.compat && sc(i.indent, B, r), f = se.range[2];
|
|
11940
|
-
const J = new kt(
|
|
11941
|
+
const J = new kt(H, se);
|
|
11941
11942
|
t.options.keepSourceTokens && (J.srcToken = v), l.items.push(J);
|
|
11942
11943
|
} else {
|
|
11943
|
-
V && r(
|
|
11944
|
-
` + ie.comment :
|
|
11945
|
-
const se = new kt(
|
|
11944
|
+
V && r(H.range, "MISSING_CHAR", "Implicit map keys need to be followed by map values"), ie.comment && (H.comment ? H.comment += `
|
|
11945
|
+
` + ie.comment : H.comment = ie.comment);
|
|
11946
|
+
const se = new kt(H);
|
|
11946
11947
|
t.options.keepSourceTokens && (se.srcToken = v), l.items.push(se);
|
|
11947
11948
|
}
|
|
11948
11949
|
}
|
|
@@ -12008,7 +12009,7 @@ function yv({ composeNode: n, composeEmptyNode: e }, t, i, r, s) {
|
|
|
12008
12009
|
v && (t.atRoot = !1), t.atKey && (t.atKey = !1);
|
|
12009
12010
|
let g = i.offset + i.start.source.length;
|
|
12010
12011
|
for (let V = 0; V < i.items.length; ++V) {
|
|
12011
|
-
const
|
|
12012
|
+
const q = i.items[V], { start: H, key: ie, sep: se, value: J } = q, ce = zi(H, {
|
|
12012
12013
|
flow: l,
|
|
12013
12014
|
indicator: "explicit-key-ind",
|
|
12014
12015
|
next: ie ?? se?.[0],
|
|
@@ -12034,7 +12035,7 @@ function yv({ composeNode: n, composeEmptyNode: e }, t, i, r, s) {
|
|
|
12034
12035
|
ce.comma && r(ce.comma, "UNEXPECTED_TOKEN", `Unexpected , in ${l}`);
|
|
12035
12036
|
else if (ce.comma || r(ce.start, "MISSING_CHAR", `Missing , between ${l} items`), ce.comment) {
|
|
12036
12037
|
let Q = "";
|
|
12037
|
-
e: for (const oe of
|
|
12038
|
+
e: for (const oe of H)
|
|
12038
12039
|
switch (oe.type) {
|
|
12039
12040
|
case "comma":
|
|
12040
12041
|
case "space":
|
|
@@ -12056,7 +12057,7 @@ function yv({ composeNode: n, composeEmptyNode: e }, t, i, r, s) {
|
|
|
12056
12057
|
h.items.push(Q), g = Q.range[2], wa(J) && r(Q.range, "BLOCK_IN_FLOW", ba);
|
|
12057
12058
|
} else {
|
|
12058
12059
|
t.atKey = !0;
|
|
12059
|
-
const Q = ce.end, oe = ie ? n(t, ie, ce, r) : e(t, Q,
|
|
12060
|
+
const Q = ce.end, oe = ie ? n(t, ie, ce, r) : e(t, Q, H, null, ce, r);
|
|
12060
12061
|
wa(ie) && r(oe.range, "BLOCK_IN_FLOW", ba), t.atKey = !1;
|
|
12061
12062
|
const Ne = zi(se ?? [], {
|
|
12062
12063
|
flow: l,
|
|
@@ -12085,7 +12086,7 @@ function yv({ composeNode: n, composeEmptyNode: e }, t, i, r, s) {
|
|
|
12085
12086
|
le ? wa(J) && r(le.range, "BLOCK_IN_FLOW", ba) : Ne.comment && (oe.comment ? oe.comment += `
|
|
12086
12087
|
` + Ne.comment : oe.comment = Ne.comment);
|
|
12087
12088
|
const ne = new kt(oe, le);
|
|
12088
|
-
if (t.options.keepSourceTokens && (ne.srcToken =
|
|
12089
|
+
if (t.options.keepSourceTokens && (ne.srcToken = q), a) {
|
|
12089
12090
|
const ve = h;
|
|
12090
12091
|
Id(t, ve.items, oe) && r(Q, "DUPLICATE_KEY", "Map keys must be unique"), ve.items.push(ne);
|
|
12091
12092
|
} else {
|
|
@@ -12102,8 +12103,8 @@ function yv({ composeNode: n, composeEmptyNode: e }, t, i, r, s) {
|
|
|
12102
12103
|
if (x?.source === b)
|
|
12103
12104
|
N = x.offset + x.source.length;
|
|
12104
12105
|
else {
|
|
12105
|
-
const V = l[0].toUpperCase() + l.substring(1),
|
|
12106
|
-
r(g, v ? "MISSING_CHAR" : "BAD_INDENT",
|
|
12106
|
+
const V = l[0].toUpperCase() + l.substring(1), q = v ? `${V} must end with a ${b}` : `${V} in block collection must be sufficiently indented and end with a ${b}`;
|
|
12107
|
+
r(g, v ? "MISSING_CHAR" : "BAD_INDENT", q), x && x.source.length !== 1 && B.unshift(x);
|
|
12107
12108
|
}
|
|
12108
12109
|
if (B.length > 0) {
|
|
12109
12110
|
const V = Yr(B, N, t.options.strict, r);
|
|
@@ -12158,14 +12159,14 @@ function wv(n, e, t) {
|
|
|
12158
12159
|
}
|
|
12159
12160
|
let f = e.indent + r.indent, h = e.offset + r.length, v = 0;
|
|
12160
12161
|
for (let N = 0; N < l; ++N) {
|
|
12161
|
-
const [V,
|
|
12162
|
-
if (
|
|
12162
|
+
const [V, q] = a[N];
|
|
12163
|
+
if (q === "" || q === "\r")
|
|
12163
12164
|
r.indent === 0 && V.length > f && (f = V.length);
|
|
12164
12165
|
else {
|
|
12165
12166
|
V.length < f && t(h + V.length, "MISSING_CHAR", "Block scalars with more-indented leading empty lines must use an explicit indentation indicator"), r.indent === 0 && (f = V.length), v = N, f === 0 && !n.atRoot && t(h, "BAD_INDENT", "Block scalar values in collections must be indented");
|
|
12166
12167
|
break;
|
|
12167
12168
|
}
|
|
12168
|
-
h += V.length +
|
|
12169
|
+
h += V.length + q.length + 1;
|
|
12169
12170
|
}
|
|
12170
12171
|
for (let N = a.length - 1; N >= l; --N)
|
|
12171
12172
|
a[N][0].length > f && (l = N + 1);
|
|
@@ -12174,23 +12175,23 @@ function wv(n, e, t) {
|
|
|
12174
12175
|
g += a[N][0].slice(f) + `
|
|
12175
12176
|
`;
|
|
12176
12177
|
for (let N = v; N < l; ++N) {
|
|
12177
|
-
let [V,
|
|
12178
|
-
h += V.length +
|
|
12179
|
-
const
|
|
12180
|
-
if (
|
|
12178
|
+
let [V, q] = a[N];
|
|
12179
|
+
h += V.length + q.length + 1;
|
|
12180
|
+
const H = q[q.length - 1] === "\r";
|
|
12181
|
+
if (H && (q = q.slice(0, -1)), q && V.length < f) {
|
|
12181
12182
|
const se = `Block scalar lines must not be less indented than their ${r.indent ? "explicit indentation indicator" : "first line"}`;
|
|
12182
|
-
t(h -
|
|
12183
|
+
t(h - q.length - (H ? 2 : 1), "BAD_INDENT", se), V = "";
|
|
12183
12184
|
}
|
|
12184
|
-
s === _e.BLOCK_LITERAL ? (g += b + V.slice(f) +
|
|
12185
|
-
`) : V.length > f ||
|
|
12185
|
+
s === _e.BLOCK_LITERAL ? (g += b + V.slice(f) + q, b = `
|
|
12186
|
+
`) : V.length > f || q[0] === " " ? (b === " " ? b = `
|
|
12186
12187
|
` : !x && b === `
|
|
12187
12188
|
` && (b = `
|
|
12188
12189
|
|
|
12189
|
-
`), g += b + V.slice(f) +
|
|
12190
|
-
`, x = !0) :
|
|
12190
|
+
`), g += b + V.slice(f) + q, b = `
|
|
12191
|
+
`, x = !0) : q === "" ? b === `
|
|
12191
12192
|
` ? g += `
|
|
12192
12193
|
` : b = `
|
|
12193
|
-
` : (g += b +
|
|
12194
|
+
` : (g += b + q, b = " ", x = !1);
|
|
12194
12195
|
}
|
|
12195
12196
|
switch (r.chomp) {
|
|
12196
12197
|
case "-":
|
|
@@ -12510,14 +12511,19 @@ function Td(n, e, t, i) {
|
|
|
12510
12511
|
case "block-map":
|
|
12511
12512
|
case "block-seq":
|
|
12512
12513
|
case "flow-collection":
|
|
12513
|
-
|
|
12514
|
+
try {
|
|
12515
|
+
h = bv(jv, n, e, t, i), l && (h.anchor = l.source.substring(1));
|
|
12516
|
+
} catch (g) {
|
|
12517
|
+
const b = g instanceof Error ? g.message : String(g);
|
|
12518
|
+
i(e, "RESOURCE_EXHAUSTION", b);
|
|
12519
|
+
}
|
|
12514
12520
|
break;
|
|
12515
12521
|
default: {
|
|
12516
12522
|
const g = e.type === "error" ? e.message : `Unsupported token (type: ${e.type})`;
|
|
12517
|
-
i(e, "UNEXPECTED_TOKEN", g),
|
|
12523
|
+
i(e, "UNEXPECTED_TOKEN", g), v = !1;
|
|
12518
12524
|
}
|
|
12519
12525
|
}
|
|
12520
|
-
return l && h.anchor === "" && i(l, "BAD_ALIAS", "Anchor cannot be an empty string"), r && n.options.stringKeys && (!Ke(h) || typeof h.value != "string" || h.tag && h.tag !== "tag:yaml.org,2002:str") && i(f ?? e, "NON_STRING_KEY", "With stringKeys, all keys must be strings"), s && (h.spaceBefore = !0), a && (e.type === "scalar" && e.source === "" ? h.comment = a : h.commentBefore = a), n.options.keepSourceTokens && v && (h.srcToken = e), h;
|
|
12526
|
+
return h ?? (h = el(n, e.offset, void 0, null, t, i)), l && h.anchor === "" && i(l, "BAD_ALIAS", "Anchor cannot be an empty string"), r && n.options.stringKeys && (!Ke(h) || typeof h.value != "string" || h.tag && h.tag !== "tag:yaml.org,2002:str") && i(f ?? e, "NON_STRING_KEY", "With stringKeys, all keys must be strings"), s && (h.spaceBefore = !0), a && (e.type === "scalar" && e.source === "" ? h.comment = a : h.commentBefore = a), n.options.keepSourceTokens && v && (h.srcToken = e), h;
|
|
12521
12527
|
}
|
|
12522
12528
|
function el(n, e, t, i, { spaceBefore: r, comment: s, anchor: a, tag: l, end: f }, h) {
|
|
12523
12529
|
const v = {
|
|
@@ -16643,8 +16649,8 @@ const Ky = function(n) {
|
|
|
16643
16649
|
} else {
|
|
16644
16650
|
let l = lc(n, s, this.options.removeNSPrefix);
|
|
16645
16651
|
if (!l) {
|
|
16646
|
-
const
|
|
16647
|
-
throw new Error(`readTagExp returned undefined at position ${s}. Context: "${
|
|
16652
|
+
const H = n.substring(Math.max(0, s - 50), Math.min(n.length, s + 50));
|
|
16653
|
+
throw new Error(`readTagExp returned undefined at position ${s}. Context: "${H}"`);
|
|
16648
16654
|
}
|
|
16649
16655
|
let f = l.tagName;
|
|
16650
16656
|
const h = l.rawTagName;
|
|
@@ -16658,9 +16664,9 @@ const Ky = function(n) {
|
|
|
16658
16664
|
v.length > 0 && v.lastIndexOf("/") === v.length - 1 && (B = !0, f[f.length - 1] === "/" ? (f = f.substr(0, f.length - 1), v = f) : v = v.substr(0, v.length - 1), g = f !== v);
|
|
16659
16665
|
let N = null, V;
|
|
16660
16666
|
V = $y(h), f !== e.tagname && this.matcher.push(f, {}, V), f !== v && g && (N = this.buildAttributesMap(v, this.matcher, f), N && Ry(N, this.options)), f !== e.tagname && (this.isCurrentNodeStopNode = this.isItStopNode(this.stopNodeExpressions, this.matcher));
|
|
16661
|
-
const
|
|
16667
|
+
const q = s;
|
|
16662
16668
|
if (this.isCurrentNodeStopNode) {
|
|
16663
|
-
let
|
|
16669
|
+
let H = "";
|
|
16664
16670
|
if (B)
|
|
16665
16671
|
s = l.closeIndex;
|
|
16666
16672
|
else if (this.options.unpairedTags.indexOf(f) !== -1)
|
|
@@ -16668,24 +16674,24 @@ const Ky = function(n) {
|
|
|
16668
16674
|
else {
|
|
16669
16675
|
const se = this.readStopNodeData(n, h, b + 1);
|
|
16670
16676
|
if (!se) throw new Error(`Unexpected end of ${h}`);
|
|
16671
|
-
s = se.i,
|
|
16677
|
+
s = se.i, H = se.tagContent;
|
|
16672
16678
|
}
|
|
16673
16679
|
const ie = new $n(f);
|
|
16674
|
-
N && (ie[":@"] = N), ie.add(this.options.textNodeName,
|
|
16680
|
+
N && (ie[":@"] = N), ie.add(this.options.textNodeName, H), this.matcher.pop(), this.isCurrentNodeStopNode = !1, this.addChild(t, ie, this.matcher, q);
|
|
16675
16681
|
} else {
|
|
16676
16682
|
if (B) {
|
|
16677
16683
|
({ tagName: f, tagExp: v } = ka(this.options.transformTagName, f, v, this.options));
|
|
16678
|
-
const
|
|
16679
|
-
N && (
|
|
16684
|
+
const H = new $n(f);
|
|
16685
|
+
N && (H[":@"] = N), this.addChild(t, H, this.matcher, q), this.matcher.pop(), this.isCurrentNodeStopNode = !1;
|
|
16680
16686
|
} else if (this.options.unpairedTags.indexOf(f) !== -1) {
|
|
16681
|
-
const
|
|
16682
|
-
N && (
|
|
16687
|
+
const H = new $n(f);
|
|
16688
|
+
N && (H[":@"] = N), this.addChild(t, H, this.matcher, q), this.matcher.pop(), this.isCurrentNodeStopNode = !1, s = l.closeIndex;
|
|
16683
16689
|
continue;
|
|
16684
16690
|
} else {
|
|
16685
|
-
const
|
|
16691
|
+
const H = new $n(f);
|
|
16686
16692
|
if (this.tagsNodeStack.length > this.options.maxNestedTags)
|
|
16687
16693
|
throw new Error("Maximum nested tags exceeded");
|
|
16688
|
-
this.tagsNodeStack.push(t), N && (
|
|
16694
|
+
this.tagsNodeStack.push(t), N && (H[":@"] = N), this.addChild(t, H, this.matcher, q), t = H;
|
|
16689
16695
|
}
|
|
16690
16696
|
i = "", s = b;
|
|
16691
16697
|
}
|
|
@@ -18067,4 +18073,4 @@ onconnect = (n) => {
|
|
|
18067
18073
|
il(ep, n.ports[0]);
|
|
18068
18074
|
};
|
|
18069
18075
|
console.log("Worker code loaded");
|
|
18070
|
-
//# sourceMappingURL=worker-
|
|
18076
|
+
//# sourceMappingURL=worker-jC4O7JRI.js.map
|