@spaceandtimelabs/makeinfinite-ui 0.35.2 → 0.35.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/makeinfinite-ui.es.js +589 -586
- package/dist/makeinfinite-ui.umd.js +15 -15
- package/package.json +1 -1
|
@@ -42,54 +42,54 @@ function yh(e) {
|
|
|
42
42
|
return Buffer.from(y);
|
|
43
43
|
};
|
|
44
44
|
function n(y) {
|
|
45
|
-
for (var v = 0, O = Math.min(256 * 256, y.length + 1),
|
|
46
|
-
var
|
|
47
|
-
if (!
|
|
48
|
-
var S =
|
|
49
|
-
if (b.push(String.fromCharCode.apply(null, $)), !
|
|
45
|
+
for (var v = 0, O = Math.min(256 * 256, y.length + 1), R = new Uint16Array(O), b = [], C = 0; ; ) {
|
|
46
|
+
var k = v < y.length;
|
|
47
|
+
if (!k || C >= O - 1) {
|
|
48
|
+
var S = R.subarray(0, C), $ = S;
|
|
49
|
+
if (b.push(String.fromCharCode.apply(null, $)), !k) return b.join("");
|
|
50
50
|
y = y.subarray(v), v = 0, C = 0;
|
|
51
51
|
}
|
|
52
52
|
var A = y[v++];
|
|
53
|
-
if (!(A & 128))
|
|
53
|
+
if (!(A & 128)) R[C++] = A;
|
|
54
54
|
else if ((A & 224) === 192) {
|
|
55
55
|
var j = y[v++] & 63;
|
|
56
|
-
|
|
56
|
+
R[C++] = (A & 31) << 6 | j;
|
|
57
57
|
} else if ((A & 240) === 224) {
|
|
58
58
|
var j = y[v++] & 63, M = y[v++] & 63;
|
|
59
|
-
|
|
59
|
+
R[C++] = (A & 31) << 12 | j << 6 | M;
|
|
60
60
|
} else if ((A & 248) === 240) {
|
|
61
61
|
var j = y[v++] & 63, M = y[v++] & 63, H = y[v++] & 63, Y = (A & 7) << 18 | j << 12 | M << 6 | H;
|
|
62
|
-
Y > 65535 && (Y -= 65536,
|
|
62
|
+
Y > 65535 && (Y -= 65536, R[C++] = Y >>> 10 & 1023 | 55296, Y = 56320 | Y & 1023), R[C++] = Y;
|
|
63
63
|
}
|
|
64
64
|
}
|
|
65
65
|
}
|
|
66
66
|
function i(y) {
|
|
67
|
-
for (var v = 0, O = y.length,
|
|
68
|
-
var
|
|
69
|
-
if (
|
|
67
|
+
for (var v = 0, O = y.length, R = 0, b = Math.max(32, O + (O >>> 1) + 7), C = new Uint8Array(b >>> 3 << 3); v < O; ) {
|
|
68
|
+
var k = y.charCodeAt(v++);
|
|
69
|
+
if (k >= 55296 && k <= 56319) {
|
|
70
70
|
if (v < O) {
|
|
71
71
|
var S = y.charCodeAt(v);
|
|
72
|
-
(S & 64512) === 56320 && (++v,
|
|
72
|
+
(S & 64512) === 56320 && (++v, k = ((k & 1023) << 10) + (S & 1023) + 65536);
|
|
73
73
|
}
|
|
74
|
-
if (
|
|
74
|
+
if (k >= 55296 && k <= 56319) continue;
|
|
75
75
|
}
|
|
76
|
-
if (
|
|
76
|
+
if (R + 4 > C.length) {
|
|
77
77
|
b += 8, b *= 1 + v / y.length * 2, b = b >>> 3 << 3;
|
|
78
78
|
var $ = new Uint8Array(b);
|
|
79
79
|
$.set(C), C = $;
|
|
80
80
|
}
|
|
81
|
-
if (
|
|
82
|
-
if (!(
|
|
83
|
-
else if (!(
|
|
84
|
-
else if (!(
|
|
81
|
+
if (k & 4294967168)
|
|
82
|
+
if (!(k & 4294965248)) C[R++] = k >>> 6 & 31 | 192;
|
|
83
|
+
else if (!(k & 4294901760)) C[R++] = k >>> 12 & 15 | 224, C[R++] = k >>> 6 & 63 | 128;
|
|
84
|
+
else if (!(k & 4292870144)) C[R++] = k >>> 18 & 7 | 240, C[R++] = k >>> 12 & 63 | 128, C[R++] = k >>> 6 & 63 | 128;
|
|
85
85
|
else continue;
|
|
86
86
|
else {
|
|
87
|
-
C[
|
|
87
|
+
C[R++] = k;
|
|
88
88
|
continue;
|
|
89
89
|
}
|
|
90
|
-
C[
|
|
90
|
+
C[R++] = k & 63 | 128;
|
|
91
91
|
}
|
|
92
|
-
return C.slice ? C.slice(0,
|
|
92
|
+
return C.slice ? C.slice(0, R) : C.subarray(0, R);
|
|
93
93
|
}
|
|
94
94
|
var a = "Failed to ", o = function(y, v, O) {
|
|
95
95
|
if (y) throw new Error("".concat(a).concat(v, ": the '").concat(O, "' option is unsupported."));
|
|
@@ -105,8 +105,8 @@ function yh(e) {
|
|
|
105
105
|
try {
|
|
106
106
|
var O = new Blob([y], { type: "text/plain;charset=UTF-8" });
|
|
107
107
|
v = URL.createObjectURL(O);
|
|
108
|
-
var
|
|
109
|
-
return
|
|
108
|
+
var R = new XMLHttpRequest();
|
|
109
|
+
return R.open("GET", v, !1), R.send(), R.responseText;
|
|
110
110
|
} finally {
|
|
111
111
|
v && URL.revokeObjectURL(v);
|
|
112
112
|
}
|
|
@@ -1210,7 +1210,7 @@ ws.write = function(e, t, r, n, i, a) {
|
|
|
1210
1210
|
}
|
|
1211
1211
|
}
|
|
1212
1212
|
s.byteLength = O;
|
|
1213
|
-
function
|
|
1213
|
+
function R(w, f, h) {
|
|
1214
1214
|
let E = !1;
|
|
1215
1215
|
if ((f === void 0 || f < 0) && (f = 0), f > this.length || ((h === void 0 || h > this.length) && (h = this.length), h <= 0) || (h >>>= 0, f >>>= 0, h <= f))
|
|
1216
1216
|
return "";
|
|
@@ -1222,7 +1222,7 @@ ws.write = function(e, t, r, n, i, a) {
|
|
|
1222
1222
|
case "utf-8":
|
|
1223
1223
|
return Y(this, f, h);
|
|
1224
1224
|
case "ascii":
|
|
1225
|
-
return
|
|
1225
|
+
return se(this, f, h);
|
|
1226
1226
|
case "latin1":
|
|
1227
1227
|
case "binary":
|
|
1228
1228
|
return ge(this, f, h);
|
|
@@ -1266,7 +1266,7 @@ ws.write = function(e, t, r, n, i, a) {
|
|
|
1266
1266
|
return this;
|
|
1267
1267
|
}, s.prototype.toString = function() {
|
|
1268
1268
|
const f = this.length;
|
|
1269
|
-
return f === 0 ? "" : arguments.length === 0 ? Y(this, 0, f) :
|
|
1269
|
+
return f === 0 ? "" : arguments.length === 0 ? Y(this, 0, f) : R.apply(this, arguments);
|
|
1270
1270
|
}, s.prototype.toLocaleString = s.prototype.toString, s.prototype.equals = function(f) {
|
|
1271
1271
|
if (!s.isBuffer(f)) throw new TypeError("Argument must be a Buffer");
|
|
1272
1272
|
return this === f ? !0 : s.compare(this, f) === 0;
|
|
@@ -1306,12 +1306,12 @@ ws.write = function(e, t, r, n, i, a) {
|
|
|
1306
1306
|
if (P) h = 0;
|
|
1307
1307
|
else return -1;
|
|
1308
1308
|
if (typeof f == "string" && (f = s.from(f, E)), s.isBuffer(f))
|
|
1309
|
-
return f.length === 0 ? -1 :
|
|
1309
|
+
return f.length === 0 ? -1 : k(w, f, h, E, P);
|
|
1310
1310
|
if (typeof f == "number")
|
|
1311
|
-
return f = f & 255, typeof Uint8Array.prototype.indexOf == "function" ? P ? Uint8Array.prototype.indexOf.call(w, f, h) : Uint8Array.prototype.lastIndexOf.call(w, f, h) :
|
|
1311
|
+
return f = f & 255, typeof Uint8Array.prototype.indexOf == "function" ? P ? Uint8Array.prototype.indexOf.call(w, f, h) : Uint8Array.prototype.lastIndexOf.call(w, f, h) : k(w, [f], h, E, P);
|
|
1312
1312
|
throw new TypeError("val must be string, number or Buffer");
|
|
1313
1313
|
}
|
|
1314
|
-
function
|
|
1314
|
+
function k(w, f, h, E, P) {
|
|
1315
1315
|
let B = 1, z = w.length, pe = f.length;
|
|
1316
1316
|
if (E !== void 0 && (E = String(E).toLowerCase(), E === "ucs2" || E === "ucs-2" || E === "utf16le" || E === "utf-16le")) {
|
|
1317
1317
|
if (w.length < 2 || f.length < 2)
|
|
@@ -1446,22 +1446,22 @@ ws.write = function(e, t, r, n, i, a) {
|
|
|
1446
1446
|
}
|
|
1447
1447
|
z === null ? (z = 65533, pe = 1) : z > 65535 && (z -= 65536, E.push(z >>> 10 & 1023 | 55296), z = 56320 | z & 1023), E.push(z), P += pe;
|
|
1448
1448
|
}
|
|
1449
|
-
return
|
|
1449
|
+
return ke(E);
|
|
1450
1450
|
}
|
|
1451
|
-
const
|
|
1452
|
-
function
|
|
1451
|
+
const ue = 4096;
|
|
1452
|
+
function ke(w) {
|
|
1453
1453
|
const f = w.length;
|
|
1454
|
-
if (f <=
|
|
1454
|
+
if (f <= ue)
|
|
1455
1455
|
return String.fromCharCode.apply(String, w);
|
|
1456
1456
|
let h = "", E = 0;
|
|
1457
1457
|
for (; E < f; )
|
|
1458
1458
|
h += String.fromCharCode.apply(
|
|
1459
1459
|
String,
|
|
1460
|
-
w.slice(E, E +=
|
|
1460
|
+
w.slice(E, E += ue)
|
|
1461
1461
|
);
|
|
1462
1462
|
return h;
|
|
1463
1463
|
}
|
|
1464
|
-
function
|
|
1464
|
+
function se(w, f, h) {
|
|
1465
1465
|
let E = "";
|
|
1466
1466
|
h = Math.min(w.length, h);
|
|
1467
1467
|
for (let P = f; P < h; ++P)
|
|
@@ -1805,7 +1805,7 @@ ws.write = function(e, t, r, n, i, a) {
|
|
|
1805
1805
|
);
|
|
1806
1806
|
}
|
|
1807
1807
|
const J = /[^+/0-9A-Za-z-_]/g;
|
|
1808
|
-
function
|
|
1808
|
+
function ce(w) {
|
|
1809
1809
|
if (w = w.split("=")[0], w = w.trim().replace(J, ""), w.length < 2) return "";
|
|
1810
1810
|
for (; w.length % 4 !== 0; )
|
|
1811
1811
|
w = w + "=";
|
|
@@ -1879,7 +1879,7 @@ ws.write = function(e, t, r, n, i, a) {
|
|
|
1879
1879
|
return B;
|
|
1880
1880
|
}
|
|
1881
1881
|
function _e(w) {
|
|
1882
|
-
return t.toByteArray(
|
|
1882
|
+
return t.toByteArray(ce(w));
|
|
1883
1883
|
}
|
|
1884
1884
|
function yt(w, f, h, E) {
|
|
1885
1885
|
let P;
|
|
@@ -2005,8 +2005,8 @@ pt.prototype.acquire = function(e, t, r, n) {
|
|
|
2005
2005
|
typeof r != "function" && (n = r, r = null, o = new this.Promise(function(v, O) {
|
|
2006
2006
|
i = v, a = O;
|
|
2007
2007
|
})), n = n || {};
|
|
2008
|
-
var s = !1, l = null, c = null, u = null, d = this, p = function(v, O,
|
|
2009
|
-
c && (clearTimeout(c), c = null), u && (clearTimeout(u), u = null), v && (d.queues[e] && d.queues[e].length === 0 && delete d.queues[e], d.domainReentrant && delete d.domains[e]), s || (o ? O ? a(O) : i(
|
|
2008
|
+
var s = !1, l = null, c = null, u = null, d = this, p = function(v, O, R) {
|
|
2009
|
+
c && (clearTimeout(c), c = null), u && (clearTimeout(u), u = null), v && (d.queues[e] && d.queues[e].length === 0 && delete d.queues[e], d.domainReentrant && delete d.domains[e]), s || (o ? O ? a(O) : i(R) : typeof r == "function" && r(O, R), s = !0), v && d.queues[e] && d.queues[e].length > 0 && d.queues[e].shift()();
|
|
2010
2010
|
}, m = function(v) {
|
|
2011
2011
|
if (s)
|
|
2012
2012
|
return p(v);
|
|
@@ -2015,13 +2015,13 @@ pt.prototype.acquire = function(e, t, r, n) {
|
|
|
2015
2015
|
if (O && (u = setTimeout(function() {
|
|
2016
2016
|
d.queues[e] && p(v, new Error("Maximum execution time is exceeded " + e));
|
|
2017
2017
|
}, O)), t.length === 1) {
|
|
2018
|
-
var
|
|
2018
|
+
var R = !1;
|
|
2019
2019
|
try {
|
|
2020
2020
|
t(function(b, C) {
|
|
2021
|
-
|
|
2021
|
+
R || (R = !0, p(v, b, C));
|
|
2022
2022
|
});
|
|
2023
2023
|
} catch (b) {
|
|
2024
|
-
|
|
2024
|
+
R || (R = !0, p(v, b));
|
|
2025
2025
|
}
|
|
2026
2026
|
} else
|
|
2027
2027
|
d._promiseTry(function() {
|
|
@@ -2410,22 +2410,22 @@ var N = Jr, Ru = {};
|
|
|
2410
2410
|
for (j = 1; j != 16; ++j) H[j - 1] = typeof Int32Array < "u" ? M.subarray(j * 256, j * 256 + 256) : M.slice(j * 256, j * 256 + 256);
|
|
2411
2411
|
return H;
|
|
2412
2412
|
}
|
|
2413
|
-
var a = i(n), o = a[0], s = a[1], l = a[2], c = a[3], u = a[4], d = a[5], p = a[6], m = a[7], g = a[8], _ = a[9], x = a[10], y = a[11], v = a[12], O = a[13],
|
|
2413
|
+
var a = i(n), o = a[0], s = a[1], l = a[2], c = a[3], u = a[4], d = a[5], p = a[6], m = a[7], g = a[8], _ = a[9], x = a[10], y = a[11], v = a[12], O = a[13], R = a[14];
|
|
2414
2414
|
function b(S, $) {
|
|
2415
2415
|
for (var A = $ ^ -1, j = 0, M = S.length; j < M; ) A = A >>> 8 ^ n[(A ^ S.charCodeAt(j++)) & 255];
|
|
2416
2416
|
return ~A;
|
|
2417
2417
|
}
|
|
2418
2418
|
function C(S, $) {
|
|
2419
|
-
for (var A = $ ^ -1, j = S.length - 15, M = 0; M < j; ) A =
|
|
2419
|
+
for (var A = $ ^ -1, j = S.length - 15, M = 0; M < j; ) A = R[S[M++] ^ A & 255] ^ O[S[M++] ^ A >> 8 & 255] ^ v[S[M++] ^ A >> 16 & 255] ^ y[S[M++] ^ A >>> 24] ^ x[S[M++]] ^ _[S[M++]] ^ g[S[M++]] ^ m[S[M++]] ^ p[S[M++]] ^ d[S[M++]] ^ u[S[M++]] ^ c[S[M++]] ^ l[S[M++]] ^ s[S[M++]] ^ o[S[M++]] ^ n[S[M++]];
|
|
2420
2420
|
for (j += 15; M < j; ) A = A >>> 8 ^ n[(A ^ S[M++]) & 255];
|
|
2421
2421
|
return ~A;
|
|
2422
2422
|
}
|
|
2423
|
-
function
|
|
2423
|
+
function k(S, $) {
|
|
2424
2424
|
for (var A = $ ^ -1, j = 0, M = S.length, H = 0, Y = 0; j < M; )
|
|
2425
2425
|
H = S.charCodeAt(j++), H < 128 ? A = A >>> 8 ^ n[(A ^ H) & 255] : H < 2048 ? (A = A >>> 8 ^ n[(A ^ (192 | H >> 6 & 31)) & 255], A = A >>> 8 ^ n[(A ^ (128 | H & 63)) & 255]) : H >= 55296 && H < 57344 ? (H = (H & 1023) + 64, Y = S.charCodeAt(j++) & 1023, A = A >>> 8 ^ n[(A ^ (240 | H >> 8 & 7)) & 255], A = A >>> 8 ^ n[(A ^ (128 | H >> 2 & 63)) & 255], A = A >>> 8 ^ n[(A ^ (128 | Y >> 6 & 15 | (H & 3) << 4)) & 255], A = A >>> 8 ^ n[(A ^ (128 | Y & 63)) & 255]) : (A = A >>> 8 ^ n[(A ^ (224 | H >> 12 & 15)) & 255], A = A >>> 8 ^ n[(A ^ (128 | H >> 6 & 63)) & 255], A = A >>> 8 ^ n[(A ^ (128 | H & 63)) & 255]);
|
|
2426
2426
|
return ~A;
|
|
2427
2427
|
}
|
|
2428
|
-
t.table = n, t.bstr = b, t.buf = C, t.str =
|
|
2428
|
+
t.table = n, t.bstr = b, t.buf = C, t.str = k;
|
|
2429
2429
|
});
|
|
2430
2430
|
})(Ru);
|
|
2431
2431
|
const Lp = /* @__PURE__ */ Ot(Ru);
|
|
@@ -3218,26 +3218,26 @@ ti.deflate = Es;
|
|
|
3218
3218
|
ti.deflateRaw = Vm;
|
|
3219
3219
|
ti.gzip = Km;
|
|
3220
3220
|
var ii = {}, Ct = {}, Ti = 30, Jm = 12, Qm = function(t, r) {
|
|
3221
|
-
var n, i, a, o, s, l, c, u, d, p, m, g, _, x, y, v, O,
|
|
3221
|
+
var n, i, a, o, s, l, c, u, d, p, m, g, _, x, y, v, O, R, b, C, k, S, $, A, j;
|
|
3222
3222
|
n = t.state, i = t.next_in, A = t.input, a = i + (t.avail_in - 5), o = t.next_out, j = t.output, s = o - (r - t.avail_out), l = o + (t.avail_out - 257), c = n.dmax, u = n.wsize, d = n.whave, p = n.wnext, m = n.window, g = n.hold, _ = n.bits, x = n.lencode, y = n.distcode, v = (1 << n.lenbits) - 1, O = (1 << n.distbits) - 1;
|
|
3223
3223
|
e:
|
|
3224
3224
|
do {
|
|
3225
|
-
_ < 15 && (g += A[i++] << _, _ += 8, g += A[i++] << _, _ += 8),
|
|
3225
|
+
_ < 15 && (g += A[i++] << _, _ += 8, g += A[i++] << _, _ += 8), R = x[g & v];
|
|
3226
3226
|
t:
|
|
3227
3227
|
for (; ; ) {
|
|
3228
|
-
if (b =
|
|
3229
|
-
j[o++] =
|
|
3228
|
+
if (b = R >>> 24, g >>>= b, _ -= b, b = R >>> 16 & 255, b === 0)
|
|
3229
|
+
j[o++] = R & 65535;
|
|
3230
3230
|
else if (b & 16) {
|
|
3231
|
-
C =
|
|
3231
|
+
C = R & 65535, b &= 15, b && (_ < b && (g += A[i++] << _, _ += 8), C += g & (1 << b) - 1, g >>>= b, _ -= b), _ < 15 && (g += A[i++] << _, _ += 8, g += A[i++] << _, _ += 8), R = y[g & O];
|
|
3232
3232
|
r:
|
|
3233
3233
|
for (; ; ) {
|
|
3234
|
-
if (b =
|
|
3235
|
-
if (
|
|
3234
|
+
if (b = R >>> 24, g >>>= b, _ -= b, b = R >>> 16 & 255, b & 16) {
|
|
3235
|
+
if (k = R & 65535, b &= 15, _ < b && (g += A[i++] << _, _ += 8, _ < b && (g += A[i++] << _, _ += 8)), k += g & (1 << b) - 1, k > c) {
|
|
3236
3236
|
t.msg = "invalid distance too far back", n.mode = Ti;
|
|
3237
3237
|
break e;
|
|
3238
3238
|
}
|
|
3239
|
-
if (g >>>= b, _ -= b, b = o - s,
|
|
3240
|
-
if (b =
|
|
3239
|
+
if (g >>>= b, _ -= b, b = o - s, k > b) {
|
|
3240
|
+
if (b = k - b, b > d && n.sane) {
|
|
3241
3241
|
t.msg = "invalid distance too far back", n.mode = Ti;
|
|
3242
3242
|
break e;
|
|
3243
3243
|
}
|
|
@@ -3247,7 +3247,7 @@ var ii = {}, Ct = {}, Ti = 30, Jm = 12, Qm = function(t, r) {
|
|
|
3247
3247
|
do
|
|
3248
3248
|
j[o++] = m[S++];
|
|
3249
3249
|
while (--b);
|
|
3250
|
-
S = o -
|
|
3250
|
+
S = o - k, $ = j;
|
|
3251
3251
|
}
|
|
3252
3252
|
} else if (p < b) {
|
|
3253
3253
|
if (S += u + p - b, b -= p, b < C) {
|
|
@@ -3260,7 +3260,7 @@ var ii = {}, Ct = {}, Ti = 30, Jm = 12, Qm = function(t, r) {
|
|
|
3260
3260
|
do
|
|
3261
3261
|
j[o++] = m[S++];
|
|
3262
3262
|
while (--b);
|
|
3263
|
-
S = o -
|
|
3263
|
+
S = o - k, $ = j;
|
|
3264
3264
|
}
|
|
3265
3265
|
}
|
|
3266
3266
|
} else if (S += p - b, b < C) {
|
|
@@ -3268,13 +3268,13 @@ var ii = {}, Ct = {}, Ti = 30, Jm = 12, Qm = function(t, r) {
|
|
|
3268
3268
|
do
|
|
3269
3269
|
j[o++] = m[S++];
|
|
3270
3270
|
while (--b);
|
|
3271
|
-
S = o -
|
|
3271
|
+
S = o - k, $ = j;
|
|
3272
3272
|
}
|
|
3273
3273
|
for (; C > 2; )
|
|
3274
3274
|
j[o++] = $[S++], j[o++] = $[S++], j[o++] = $[S++], C -= 3;
|
|
3275
3275
|
C && (j[o++] = $[S++], C > 1 && (j[o++] = $[S++]));
|
|
3276
3276
|
} else {
|
|
3277
|
-
S = o -
|
|
3277
|
+
S = o - k;
|
|
3278
3278
|
do
|
|
3279
3279
|
j[o++] = j[S++], j[o++] = j[S++], j[o++] = j[S++], C -= 3;
|
|
3280
3280
|
while (C > 2);
|
|
@@ -3284,7 +3284,7 @@ var ii = {}, Ct = {}, Ti = 30, Jm = 12, Qm = function(t, r) {
|
|
|
3284
3284
|
t.msg = "invalid distance code", n.mode = Ti;
|
|
3285
3285
|
break e;
|
|
3286
3286
|
} else {
|
|
3287
|
-
|
|
3287
|
+
R = y[(R & 65535) + (g & (1 << b) - 1)];
|
|
3288
3288
|
continue r;
|
|
3289
3289
|
}
|
|
3290
3290
|
break;
|
|
@@ -3298,7 +3298,7 @@ var ii = {}, Ct = {}, Ti = 30, Jm = 12, Qm = function(t, r) {
|
|
|
3298
3298
|
break e;
|
|
3299
3299
|
}
|
|
3300
3300
|
else {
|
|
3301
|
-
|
|
3301
|
+
R = x[(R & 65535) + (g & (1 << b) - 1)];
|
|
3302
3302
|
continue t;
|
|
3303
3303
|
}
|
|
3304
3304
|
break;
|
|
@@ -3440,7 +3440,7 @@ var ii = {}, Ct = {}, Ti = 30, Jm = 12, Qm = function(t, r) {
|
|
|
3440
3440
|
64,
|
|
3441
3441
|
64
|
|
3442
3442
|
], i0 = function(t, r, n, i, a, o, s, l) {
|
|
3443
|
-
var c = l.bits, u = 0, d = 0, p = 0, m = 0, g = 0, _ = 0, x = 0, y = 0, v = 0, O = 0,
|
|
3443
|
+
var c = l.bits, u = 0, d = 0, p = 0, m = 0, g = 0, _ = 0, x = 0, y = 0, v = 0, O = 0, R, b, C, k, S, $ = null, A = 0, j, M = new Ac.Buf16(Wr + 1), H = new Ac.Buf16(Wr + 1), Y = null, ue = 0, ke, se, ge;
|
|
3444
3444
|
for (u = 0; u <= Wr; u++)
|
|
3445
3445
|
M[u] = 0;
|
|
3446
3446
|
for (d = 0; d < i; d++)
|
|
@@ -3460,26 +3460,26 @@ var ii = {}, Ct = {}, Ti = 30, Jm = 12, Qm = function(t, r) {
|
|
|
3460
3460
|
H[u + 1] = H[u] + M[u];
|
|
3461
3461
|
for (d = 0; d < i; d++)
|
|
3462
3462
|
r[n + d] !== 0 && (s[H[r[n + d]]++] = d);
|
|
3463
|
-
if (t === jc ? ($ = Y = s, j = 19) : t === io ? ($ = e0, A -= 257, Y = t0,
|
|
3463
|
+
if (t === jc ? ($ = Y = s, j = 19) : t === io ? ($ = e0, A -= 257, Y = t0, ue -= 257, j = 256) : ($ = r0, Y = n0, j = -1), O = 0, d = 0, u = p, S = o, _ = g, x = 0, C = -1, v = 1 << g, k = v - 1, t === io && v > Dc || t === Bc && v > Ic)
|
|
3464
3464
|
return 1;
|
|
3465
3465
|
for (; ; ) {
|
|
3466
|
-
|
|
3466
|
+
ke = u - x, s[d] < j ? (se = 0, ge = s[d]) : s[d] > j ? (se = Y[ue + s[d]], ge = $[A + s[d]]) : (se = 96, ge = 0), R = 1 << u - x, b = 1 << _, p = b;
|
|
3467
3467
|
do
|
|
3468
|
-
b -=
|
|
3468
|
+
b -= R, a[S + (O >> x) + b] = ke << 24 | se << 16 | ge | 0;
|
|
3469
3469
|
while (b !== 0);
|
|
3470
|
-
for (
|
|
3471
|
-
|
|
3472
|
-
if (
|
|
3470
|
+
for (R = 1 << u - 1; O & R; )
|
|
3471
|
+
R >>= 1;
|
|
3472
|
+
if (R !== 0 ? (O &= R - 1, O += R) : O = 0, d++, --M[u] === 0) {
|
|
3473
3473
|
if (u === m)
|
|
3474
3474
|
break;
|
|
3475
3475
|
u = r[n + s[d]];
|
|
3476
3476
|
}
|
|
3477
|
-
if (u > g && (O &
|
|
3477
|
+
if (u > g && (O & k) !== C) {
|
|
3478
3478
|
for (x === 0 && (x = g), S += p, _ = u - x, y = 1 << _; _ + x < m && (y -= M[_ + x], !(y <= 0)); )
|
|
3479
3479
|
_++, y <<= 1;
|
|
3480
3480
|
if (v += 1 << _, t === io && v > Dc || t === Bc && v > Ic)
|
|
3481
3481
|
return 1;
|
|
3482
|
-
C = O &
|
|
3482
|
+
C = O & k, a[C] = g << 24 | _ << 16 | S - o | 0;
|
|
3483
3483
|
}
|
|
3484
3484
|
}
|
|
3485
3485
|
return O !== 0 && (a[S + O] = u - x << 24 | 64 << 16 | 0), l.bits = g, 0;
|
|
@@ -3532,7 +3532,7 @@ function ff(e, t, r, n) {
|
|
|
3532
3532
|
return a.window === null && (a.wsize = 1 << a.wbits, a.wnext = 0, a.whave = 0, a.window = new mt.Buf8(a.wsize)), n >= a.wsize ? (mt.arraySet(a.window, t, r - a.wsize, a.wsize, 0), a.wnext = 0, a.whave = a.wsize) : (i = a.wsize - a.wnext, i > n && (i = n), mt.arraySet(a.window, t, r - n, i, a.wnext), n -= i, n ? (mt.arraySet(a.window, t, r - n, n, 0), a.wnext = n, a.whave = a.wsize) : (a.wnext += i, a.wnext === a.wsize && (a.wnext = 0), a.whave < a.wsize && (a.whave += i))), 0;
|
|
3533
3533
|
}
|
|
3534
3534
|
function b0(e, t) {
|
|
3535
|
-
var r, n, i, a, o, s, l, c, u, d, p, m, g, _, x = 0, y, v, O,
|
|
3535
|
+
var r, n, i, a, o, s, l, c, u, d, p, m, g, _, x = 0, y, v, O, R, b, C, k, S, $ = new mt.Buf8(4), A, j, M = (
|
|
3536
3536
|
/* permutation of code lengths */
|
|
3537
3537
|
[16, 17, 18, 0, 8, 7, 9, 6, 10, 5, 11, 4, 12, 3, 13, 2, 14, 1, 15]
|
|
3538
3538
|
);
|
|
@@ -3565,13 +3565,13 @@ function b0(e, t) {
|
|
|
3565
3565
|
e.msg = "unknown compression method", r.mode = Pe;
|
|
3566
3566
|
break;
|
|
3567
3567
|
}
|
|
3568
|
-
if (c >>>= 4, u -= 4,
|
|
3569
|
-
r.wbits =
|
|
3570
|
-
else if (
|
|
3568
|
+
if (c >>>= 4, u -= 4, k = (c & 15) + 8, r.wbits === 0)
|
|
3569
|
+
r.wbits = k;
|
|
3570
|
+
else if (k > r.wbits) {
|
|
3571
3571
|
e.msg = "invalid window size", r.mode = Pe;
|
|
3572
3572
|
break;
|
|
3573
3573
|
}
|
|
3574
|
-
r.dmax = 1 <<
|
|
3574
|
+
r.dmax = 1 << k, e.adler = r.check = 1, r.mode = c & 512 ? Yc : qt, c = 0, u = 0;
|
|
3575
3575
|
break;
|
|
3576
3576
|
case Mc:
|
|
3577
3577
|
for (; u < 16; ) {
|
|
@@ -3613,7 +3613,7 @@ function b0(e, t) {
|
|
|
3613
3613
|
} else r.head && (r.head.extra = null);
|
|
3614
3614
|
r.mode = Hc;
|
|
3615
3615
|
case Hc:
|
|
3616
|
-
if (r.flags & 1024 && (m = r.length, m > s && (m = s), m && (r.head && (
|
|
3616
|
+
if (r.flags & 1024 && (m = r.length, m > s && (m = s), m && (r.head && (k = r.head.extra_len - r.length, r.head.extra || (r.head.extra = new Array(r.head.extra_len)), mt.arraySet(
|
|
3617
3617
|
r.head.extra,
|
|
3618
3618
|
n,
|
|
3619
3619
|
a,
|
|
@@ -3621,7 +3621,7 @@ function b0(e, t) {
|
|
|
3621
3621
|
// - no need for additional size check
|
|
3622
3622
|
m,
|
|
3623
3623
|
/*len + copy > state.head.extra_max - len ? state.head.extra_max : copy,*/
|
|
3624
|
-
|
|
3624
|
+
k
|
|
3625
3625
|
)), r.flags & 512 && (r.check = Dt(r.check, n, m, a)), s -= m, a += m, r.length -= m), r.length))
|
|
3626
3626
|
break e;
|
|
3627
3627
|
r.length = 0, r.mode = Wc;
|
|
@@ -3631,9 +3631,9 @@ function b0(e, t) {
|
|
|
3631
3631
|
break e;
|
|
3632
3632
|
m = 0;
|
|
3633
3633
|
do
|
|
3634
|
-
|
|
3635
|
-
while (
|
|
3636
|
-
if (r.flags & 512 && (r.check = Dt(r.check, n, m, a)), s -= m, a += m,
|
|
3634
|
+
k = n[a + m++], r.head && k && r.length < 65536 && (r.head.name += String.fromCharCode(k));
|
|
3635
|
+
while (k && m < s);
|
|
3636
|
+
if (r.flags & 512 && (r.check = Dt(r.check, n, m, a)), s -= m, a += m, k)
|
|
3637
3637
|
break e;
|
|
3638
3638
|
} else r.head && (r.head.name = null);
|
|
3639
3639
|
r.length = 0, r.mode = Gc;
|
|
@@ -3643,9 +3643,9 @@ function b0(e, t) {
|
|
|
3643
3643
|
break e;
|
|
3644
3644
|
m = 0;
|
|
3645
3645
|
do
|
|
3646
|
-
|
|
3647
|
-
while (
|
|
3648
|
-
if (r.flags & 512 && (r.check = Dt(r.check, n, m, a)), s -= m, a += m,
|
|
3646
|
+
k = n[a + m++], r.head && k && r.length < 65536 && (r.head.comment += String.fromCharCode(k));
|
|
3647
|
+
while (k && m < s);
|
|
3648
|
+
if (r.flags & 512 && (r.check = Dt(r.check, n, m, a)), s -= m, a += m, k)
|
|
3649
3649
|
break e;
|
|
3650
3650
|
} else r.head && (r.head.comment = null);
|
|
3651
3651
|
r.mode = qc;
|
|
@@ -3776,28 +3776,28 @@ function b0(e, t) {
|
|
|
3776
3776
|
e.msg = "invalid bit length repeat", r.mode = Pe;
|
|
3777
3777
|
break;
|
|
3778
3778
|
}
|
|
3779
|
-
|
|
3779
|
+
k = r.lens[r.have - 1], m = 3 + (c & 3), c >>>= 2, u -= 2;
|
|
3780
3780
|
} else if (O === 17) {
|
|
3781
3781
|
for (j = y + 3; u < j; ) {
|
|
3782
3782
|
if (s === 0)
|
|
3783
3783
|
break e;
|
|
3784
3784
|
s--, c += n[a++] << u, u += 8;
|
|
3785
3785
|
}
|
|
3786
|
-
c >>>= y, u -= y,
|
|
3786
|
+
c >>>= y, u -= y, k = 0, m = 3 + (c & 7), c >>>= 3, u -= 3;
|
|
3787
3787
|
} else {
|
|
3788
3788
|
for (j = y + 7; u < j; ) {
|
|
3789
3789
|
if (s === 0)
|
|
3790
3790
|
break e;
|
|
3791
3791
|
s--, c += n[a++] << u, u += 8;
|
|
3792
3792
|
}
|
|
3793
|
-
c >>>= y, u -= y,
|
|
3793
|
+
c >>>= y, u -= y, k = 0, m = 11 + (c & 127), c >>>= 7, u -= 7;
|
|
3794
3794
|
}
|
|
3795
3795
|
if (r.have + m > r.nlen + r.ndist) {
|
|
3796
3796
|
e.msg = "invalid bit length repeat", r.mode = Pe;
|
|
3797
3797
|
break;
|
|
3798
3798
|
}
|
|
3799
3799
|
for (; m--; )
|
|
3800
|
-
r.lens[r.have++] =
|
|
3800
|
+
r.lens[r.have++] = k;
|
|
3801
3801
|
}
|
|
3802
3802
|
}
|
|
3803
3803
|
if (r.mode === Pe)
|
|
@@ -3829,12 +3829,12 @@ function b0(e, t) {
|
|
|
3829
3829
|
s--, c += n[a++] << u, u += 8;
|
|
3830
3830
|
}
|
|
3831
3831
|
if (v && !(v & 240)) {
|
|
3832
|
-
for (
|
|
3832
|
+
for (R = y, b = v, C = O; x = r.lencode[C + ((c & (1 << R + b) - 1) >> R)], y = x >>> 24, v = x >>> 16 & 255, O = x & 65535, !(R + y <= u); ) {
|
|
3833
3833
|
if (s === 0)
|
|
3834
3834
|
break e;
|
|
3835
3835
|
s--, c += n[a++] << u, u += 8;
|
|
3836
3836
|
}
|
|
3837
|
-
c >>>=
|
|
3837
|
+
c >>>= R, u -= R, r.back += R;
|
|
3838
3838
|
}
|
|
3839
3839
|
if (c >>>= y, u -= y, r.back += y, r.length = O, v === 0) {
|
|
3840
3840
|
r.mode = nl;
|
|
@@ -3866,12 +3866,12 @@ function b0(e, t) {
|
|
|
3866
3866
|
s--, c += n[a++] << u, u += 8;
|
|
3867
3867
|
}
|
|
3868
3868
|
if (!(v & 240)) {
|
|
3869
|
-
for (
|
|
3869
|
+
for (R = y, b = v, C = O; x = r.distcode[C + ((c & (1 << R + b) - 1) >> R)], y = x >>> 24, v = x >>> 16 & 255, O = x & 65535, !(R + y <= u); ) {
|
|
3870
3870
|
if (s === 0)
|
|
3871
3871
|
break e;
|
|
3872
3872
|
s--, c += n[a++] << u, u += 8;
|
|
3873
3873
|
}
|
|
3874
|
-
c >>>=
|
|
3874
|
+
c >>>= R, u -= R, r.back += R;
|
|
3875
3875
|
}
|
|
3876
3876
|
if (c >>>= y, u -= y, r.back += y, v & 64) {
|
|
3877
3877
|
e.msg = "invalid distance code", r.mode = Pe;
|
|
@@ -4433,27 +4433,27 @@ const Ft = /* @__PURE__ */ Ot(nw);
|
|
|
4433
4433
|
var iw = function(e, t) {
|
|
4434
4434
|
var r = e, n = t, i = r.length, a = n.length, o = !1, s = null, l = i + 1, c = [], u = [], d = [], p = "", m = -1, g = 0, _ = 1, x, y, v = function() {
|
|
4435
4435
|
i >= a && (x = r, y = i, r = n, n = x, i = a, a = y, o = !0, l = i + 1);
|
|
4436
|
-
}, O = function(
|
|
4436
|
+
}, O = function(k, S, $) {
|
|
4437
4437
|
return {
|
|
4438
|
-
x:
|
|
4438
|
+
x: k,
|
|
4439
4439
|
y: S,
|
|
4440
4440
|
k: $
|
|
4441
4441
|
};
|
|
4442
|
-
},
|
|
4442
|
+
}, R = function(k, S) {
|
|
4443
4443
|
return {
|
|
4444
|
-
elem:
|
|
4444
|
+
elem: k,
|
|
4445
4445
|
t: S
|
|
4446
4446
|
};
|
|
4447
|
-
}, b = function(
|
|
4447
|
+
}, b = function(k, S, $) {
|
|
4448
4448
|
var A, j, M;
|
|
4449
|
-
for (S > $ ? A = c[
|
|
4449
|
+
for (S > $ ? A = c[k - 1 + l] : A = c[k + 1 + l], M = Math.max(S, $), j = M - k; j < i && M < a && r[j] === n[M]; )
|
|
4450
4450
|
++j, ++M;
|
|
4451
|
-
return c[
|
|
4452
|
-
}, C = function(
|
|
4451
|
+
return c[k + l] = u.length, u[u.length] = new O(j, M, A), M;
|
|
4452
|
+
}, C = function(k) {
|
|
4453
4453
|
var S, $, A;
|
|
4454
|
-
for (S = $ = 0, A =
|
|
4455
|
-
for (; S <
|
|
4456
|
-
|
|
4454
|
+
for (S = $ = 0, A = k.length - 1; A >= 0; --A)
|
|
4455
|
+
for (; S < k[A].x || $ < k[A].y; )
|
|
4456
|
+
k[A].y - k[A].x > $ - S ? (o ? d[d.length] = new R(n[$], m) : d[d.length] = new R(n[$], _), ++$) : k[A].y - k[A].x < $ - S ? (o ? d[d.length] = new R(r[S], _) : d[d.length] = new R(r[S], m), ++S) : (d[d.length] = new R(r[S], g), p += r[S], ++S, ++$);
|
|
4457
4457
|
};
|
|
4458
4458
|
return v(), {
|
|
4459
4459
|
SES_DELETE: -1,
|
|
@@ -4469,18 +4469,18 @@ var iw = function(e, t) {
|
|
|
4469
4469
|
return d;
|
|
4470
4470
|
},
|
|
4471
4471
|
compose: function() {
|
|
4472
|
-
var
|
|
4473
|
-
for (
|
|
4472
|
+
var k, S, $, A, j, M, H, Y;
|
|
4473
|
+
for (k = a - i, S = i + a + 3, $ = {}, H = 0; H < S; ++H)
|
|
4474
4474
|
$[H] = -1, c[H] = -1;
|
|
4475
4475
|
A = -1;
|
|
4476
4476
|
do {
|
|
4477
|
-
for (++A, Y = -A; Y <=
|
|
4477
|
+
for (++A, Y = -A; Y <= k - 1; ++Y)
|
|
4478
4478
|
$[Y + l] = b(Y, $[Y - 1 + l] + 1, $[Y + 1 + l]);
|
|
4479
|
-
for (Y =
|
|
4479
|
+
for (Y = k + A; Y >= k + 1; --Y)
|
|
4480
4480
|
$[Y + l] = b(Y, $[Y - 1 + l] + 1, $[Y + 1 + l]);
|
|
4481
|
-
$[
|
|
4482
|
-
} while ($[
|
|
4483
|
-
for (s =
|
|
4481
|
+
$[k + l] = b(k, $[k - 1 + l] + 1, $[k + 1 + l]);
|
|
4482
|
+
} while ($[k + l] !== a);
|
|
4483
|
+
for (s = k + 2 * A, j = c[k + l], M = []; j !== -1; )
|
|
4484
4484
|
M[M.length] = new O(u[j].x, u[j].y, null), j = u[j].k;
|
|
4485
4485
|
C(M);
|
|
4486
4486
|
}
|
|
@@ -4547,8 +4547,8 @@ function sw(e, t, r) {
|
|
|
4547
4547
|
};
|
|
4548
4548
|
for (n = p; n <= d; n++) {
|
|
4549
4549
|
m = o[n];
|
|
4550
|
-
var O = m[1],
|
|
4551
|
-
|
|
4550
|
+
var O = m[1], R = v[O], b = m[0], C = b + m[2], k = m[3], S = k + m[4];
|
|
4551
|
+
R[0] = Math.min(k, R[0]), R[1] = Math.max(S, R[1]), R[2] = Math.min(b, R[2]), R[3] = Math.max(C, R[3]);
|
|
4552
4552
|
}
|
|
4553
4553
|
var $ = v[0][0] + (g - v[0][2]), A = v[0][1] + (_ - v[0][3]), j = v[2][0] + (g - v[2][2]), M = v[2][1] + (_ - v[2][3]);
|
|
4554
4554
|
l.push([
|
|
@@ -4631,17 +4631,17 @@ class ai extends we {
|
|
|
4631
4631
|
}
|
|
4632
4632
|
}
|
|
4633
4633
|
ai.code = "UnmergedPathsError";
|
|
4634
|
-
class
|
|
4634
|
+
class le extends we {
|
|
4635
4635
|
/**
|
|
4636
4636
|
* @param {string} message
|
|
4637
4637
|
*/
|
|
4638
4638
|
constructor(t) {
|
|
4639
4639
|
super(
|
|
4640
4640
|
`An internal error caused this command to fail. Please file a bug report at https://github.com/isomorphic-git/isomorphic-git/issues with this error message: ${t}`
|
|
4641
|
-
), this.code = this.name =
|
|
4641
|
+
), this.code = this.name = le.code, this.data = { message: t };
|
|
4642
4642
|
}
|
|
4643
4643
|
}
|
|
4644
|
-
|
|
4644
|
+
le.code = "InternalError";
|
|
4645
4645
|
class bn extends we {
|
|
4646
4646
|
/**
|
|
4647
4647
|
* @param {string} filepath
|
|
@@ -4809,22 +4809,22 @@ class Sr {
|
|
|
4809
4809
|
return Sr.fromBuffer(t);
|
|
4810
4810
|
if (t === null)
|
|
4811
4811
|
return new Sr(null);
|
|
4812
|
-
throw new
|
|
4812
|
+
throw new le("invalid type passed to GitIndex.from");
|
|
4813
4813
|
}
|
|
4814
4814
|
static async fromBuffer(t) {
|
|
4815
4815
|
if (t.length === 0)
|
|
4816
|
-
throw new
|
|
4816
|
+
throw new le("Index file is empty (.git/index)");
|
|
4817
4817
|
const r = new Sr(), n = new Lt(t), i = n.toString("utf8", 4);
|
|
4818
4818
|
if (i !== "DIRC")
|
|
4819
|
-
throw new
|
|
4819
|
+
throw new le(`Invalid dircache magic file number: ${i}`);
|
|
4820
4820
|
const a = await Qt(t.slice(0, -20)), o = t.slice(-20).toString("hex");
|
|
4821
4821
|
if (o !== a)
|
|
4822
|
-
throw new
|
|
4822
|
+
throw new le(
|
|
4823
4823
|
`Invalid checksum in GitIndex buffer: expected ${o} but saw ${a}`
|
|
4824
4824
|
);
|
|
4825
4825
|
const s = n.readUInt32BE();
|
|
4826
4826
|
if (s !== 2)
|
|
4827
|
-
throw new
|
|
4827
|
+
throw new le(`Unsupported dircache version: ${s}`);
|
|
4828
4828
|
const l = n.readUInt32BE();
|
|
4829
4829
|
let c = 0;
|
|
4830
4830
|
for (; !n.eof() && c < l; ) {
|
|
@@ -4834,18 +4834,18 @@ class Sr {
|
|
|
4834
4834
|
u.flags = pw(d);
|
|
4835
4835
|
const p = t.indexOf(0, n.tell() + 1) - n.tell();
|
|
4836
4836
|
if (p < 1)
|
|
4837
|
-
throw new
|
|
4837
|
+
throw new le(`Got a path length of: ${p}`);
|
|
4838
4838
|
if (u.path = n.toString("utf8", p), u.path.includes("..\\") || u.path.includes("../"))
|
|
4839
4839
|
throw new bn(u.path);
|
|
4840
4840
|
let m = 8 - (n.tell() - 12) % 8;
|
|
4841
4841
|
for (m === 0 && (m = 8); m--; ) {
|
|
4842
4842
|
const g = n.readUInt8();
|
|
4843
4843
|
if (g !== 0)
|
|
4844
|
-
throw new
|
|
4844
|
+
throw new le(
|
|
4845
4845
|
`Expected 1-8 null characters but got '${g}' after ${u.path}`
|
|
4846
4846
|
);
|
|
4847
4847
|
if (n.eof())
|
|
4848
|
-
throw new
|
|
4848
|
+
throw new le("Unexpected end of file");
|
|
4849
4849
|
}
|
|
4850
4850
|
u.stages = [], r._addEntry(u), c++;
|
|
4851
4851
|
}
|
|
@@ -5044,7 +5044,7 @@ function bw(e) {
|
|
|
5044
5044
|
case 57344:
|
|
5045
5045
|
return "commit";
|
|
5046
5046
|
}
|
|
5047
|
-
throw new
|
|
5047
|
+
throw new le(`Unexpected GitTree entry mode: ${e.toString(8)}`);
|
|
5048
5048
|
}
|
|
5049
5049
|
class _w {
|
|
5050
5050
|
constructor({ fs: t, gitdir: r, cache: n }) {
|
|
@@ -5121,15 +5121,15 @@ function _n() {
|
|
|
5121
5121
|
}
|
|
5122
5122
|
}), Object.freeze(e), e;
|
|
5123
5123
|
}
|
|
5124
|
-
class
|
|
5124
|
+
class Re extends we {
|
|
5125
5125
|
/**
|
|
5126
5126
|
* @param {string} what
|
|
5127
5127
|
*/
|
|
5128
5128
|
constructor(t) {
|
|
5129
|
-
super(`Could not find ${t}.`), this.code = this.name =
|
|
5129
|
+
super(`Could not find ${t}.`), this.code = this.name = Re.code, this.data = { what: t };
|
|
5130
5130
|
}
|
|
5131
5131
|
}
|
|
5132
|
-
|
|
5132
|
+
Re.code = "NotFoundError";
|
|
5133
5133
|
class at extends we {
|
|
5134
5134
|
/**
|
|
5135
5135
|
* @param {string} oid
|
|
@@ -5215,7 +5215,7 @@ class ia {
|
|
|
5215
5215
|
o
|
|
5216
5216
|
] = t.match(/^(\+?)(.*?)(\*?):(.*?)(\*?)$/).slice(1), s = r === "+", l = i === "*";
|
|
5217
5217
|
if (l !== (o === "*"))
|
|
5218
|
-
throw new
|
|
5218
|
+
throw new le("Invalid refspec");
|
|
5219
5219
|
return new ia({
|
|
5220
5220
|
remotePath: n,
|
|
5221
5221
|
localPath: a,
|
|
@@ -5573,7 +5573,7 @@ class U {
|
|
|
5573
5573
|
if (l)
|
|
5574
5574
|
return U.resolve({ fs: t, gitdir: r, ref: l.trim(), depth: i });
|
|
5575
5575
|
}
|
|
5576
|
-
throw new
|
|
5576
|
+
throw new Re(n);
|
|
5577
5577
|
}
|
|
5578
5578
|
static async exists({ fs: t, gitdir: r, ref: n }) {
|
|
5579
5579
|
try {
|
|
@@ -5591,13 +5591,13 @@ class U {
|
|
|
5591
5591
|
o,
|
|
5592
5592
|
async () => t.exists(`${r}/${o}`)
|
|
5593
5593
|
) || i.has(o)) return o;
|
|
5594
|
-
throw new
|
|
5594
|
+
throw new Re(n);
|
|
5595
5595
|
}
|
|
5596
5596
|
static async expandAgainstMap({ ref: t, map: r }) {
|
|
5597
5597
|
const n = Ii(t);
|
|
5598
5598
|
for (const i of n)
|
|
5599
5599
|
if (await r.has(i)) return i;
|
|
5600
|
-
throw new
|
|
5600
|
+
throw new Re(t);
|
|
5601
5601
|
}
|
|
5602
5602
|
static resolveAgainstMap({ ref: t, fullref: r = t, depth: n = void 0, map: i }) {
|
|
5603
5603
|
if (n !== void 0 && (n--, n === -1))
|
|
@@ -5617,7 +5617,7 @@ class U {
|
|
|
5617
5617
|
map: i
|
|
5618
5618
|
});
|
|
5619
5619
|
}
|
|
5620
|
-
throw new
|
|
5620
|
+
throw new Re(t);
|
|
5621
5621
|
}
|
|
5622
5622
|
static async packedRefs({ fs: t, gitdir: r }) {
|
|
5623
5623
|
const n = await nr(
|
|
@@ -5673,7 +5673,7 @@ function xf(e) {
|
|
|
5673
5673
|
case "160000":
|
|
5674
5674
|
return "commit";
|
|
5675
5675
|
}
|
|
5676
|
-
throw new
|
|
5676
|
+
throw new le(`Unexpected GitTree entry mode: ${e}`);
|
|
5677
5677
|
}
|
|
5678
5678
|
function jw(e) {
|
|
5679
5679
|
const t = [];
|
|
@@ -5681,12 +5681,12 @@ function jw(e) {
|
|
|
5681
5681
|
for (; r < e.length; ) {
|
|
5682
5682
|
const n = e.indexOf(32, r);
|
|
5683
5683
|
if (n === -1)
|
|
5684
|
-
throw new
|
|
5684
|
+
throw new le(
|
|
5685
5685
|
`GitTree: Error parsing buffer at byte location ${r}: Could not find the next space character.`
|
|
5686
5686
|
);
|
|
5687
5687
|
const i = e.indexOf(0, r);
|
|
5688
5688
|
if (i === -1)
|
|
5689
|
-
throw new
|
|
5689
|
+
throw new le(
|
|
5690
5690
|
`GitTree: Error parsing buffer at byte location ${r}: Could not find the next null character.`
|
|
5691
5691
|
);
|
|
5692
5692
|
let a = e.slice(r, n).toString("utf8");
|
|
@@ -5705,7 +5705,7 @@ function Bw(e) {
|
|
|
5705
5705
|
if (e.match(/^1007.*/)) return "100755";
|
|
5706
5706
|
if (e.match(/^120.*/)) return "120000";
|
|
5707
5707
|
if (e.match(/^160.*/)) return "160000";
|
|
5708
|
-
throw new
|
|
5708
|
+
throw new le(`Could not understand file mode: ${e}`);
|
|
5709
5709
|
}
|
|
5710
5710
|
function zw(e) {
|
|
5711
5711
|
return !e.oid && e.sha && (e.oid = e.sha), e.mode = Bw(e.mode), e.type || (e.type = xf(e.mode)), e;
|
|
@@ -5717,7 +5717,7 @@ class ft {
|
|
|
5717
5717
|
else if (Array.isArray(t))
|
|
5718
5718
|
this._entries = t.map(zw);
|
|
5719
5719
|
else
|
|
5720
|
-
throw new
|
|
5720
|
+
throw new le("invalid type passed to GitTree constructor");
|
|
5721
5721
|
this._entries.sort(yf);
|
|
5722
5722
|
}
|
|
5723
5723
|
static from(t) {
|
|
@@ -5757,7 +5757,7 @@ class vn {
|
|
|
5757
5757
|
static unwrap(t) {
|
|
5758
5758
|
const r = t.indexOf(32), n = t.indexOf(0), i = t.slice(0, r).toString("utf8"), a = t.slice(r + 1, n).toString("utf8"), o = t.length - (n + 1);
|
|
5759
5759
|
if (parseInt(a) !== o)
|
|
5760
|
-
throw new
|
|
5760
|
+
throw new le(
|
|
5761
5761
|
`Length mismatch: expected ${a} bytes but got ${o} instead.`
|
|
5762
5762
|
);
|
|
5763
5763
|
return {
|
|
@@ -5773,7 +5773,7 @@ async function Ef({ fs: e, gitdir: t, oid: r }) {
|
|
|
5773
5773
|
function Nw(e, t) {
|
|
5774
5774
|
const r = new Lt(e), n = _l(r);
|
|
5775
5775
|
if (n !== t.byteLength)
|
|
5776
|
-
throw new
|
|
5776
|
+
throw new le(
|
|
5777
5777
|
`applyDelta expected source buffer to be ${n} bytes but the provided buffer was ${t.length} bytes`
|
|
5778
5778
|
);
|
|
5779
5779
|
const i = _l(r);
|
|
@@ -5788,7 +5788,7 @@ function Nw(e, t) {
|
|
|
5788
5788
|
s.copy(xl(r, t));
|
|
5789
5789
|
const l = s.tell();
|
|
5790
5790
|
if (i !== l)
|
|
5791
|
-
throw new
|
|
5791
|
+
throw new le(
|
|
5792
5792
|
`applyDelta expected target buffer to be ${i} bytes but the resulting buffer was ${l} bytes`
|
|
5793
5793
|
);
|
|
5794
5794
|
}
|
|
@@ -5898,10 +5898,10 @@ async function Fw(e, t) {
|
|
|
5898
5898
|
const r = new kf(e);
|
|
5899
5899
|
let n = await r.read(4);
|
|
5900
5900
|
if (n = n.toString("utf8"), n !== "PACK")
|
|
5901
|
-
throw new
|
|
5901
|
+
throw new le(`Invalid PACK header '${n}'`);
|
|
5902
5902
|
let i = await r.read(4);
|
|
5903
5903
|
if (i = i.readUInt32BE(0), i !== 2)
|
|
5904
|
-
throw new
|
|
5904
|
+
throw new le(`Invalid packfile version: ${i}`);
|
|
5905
5905
|
let a = await r.read(4);
|
|
5906
5906
|
if (a = a.readUInt32BE(0), !(a < 1))
|
|
5907
5907
|
for (; !r.eof() && a--; ) {
|
|
@@ -5910,10 +5910,10 @@ async function Fw(e, t) {
|
|
|
5910
5910
|
const p = await r.chunk();
|
|
5911
5911
|
if (!p) break;
|
|
5912
5912
|
if (d.push(p, !1), d.err)
|
|
5913
|
-
throw new
|
|
5913
|
+
throw new le(`Pako error: ${d.msg}`);
|
|
5914
5914
|
if (d.result) {
|
|
5915
5915
|
if (d.result.length !== l)
|
|
5916
|
-
throw new
|
|
5916
|
+
throw new le(
|
|
5917
5917
|
"Inflated object size is different from that stated in packfile."
|
|
5918
5918
|
);
|
|
5919
5919
|
await r.undo(), await r.read(p.length - d.strm.avail_in);
|
|
@@ -5983,11 +5983,11 @@ class on {
|
|
|
5983
5983
|
return;
|
|
5984
5984
|
const a = n.readUInt32BE();
|
|
5985
5985
|
if (a !== 2)
|
|
5986
|
-
throw new
|
|
5986
|
+
throw new le(
|
|
5987
5987
|
`Unable to read version ${a} packfile IDX. (Only version 2 supported)`
|
|
5988
5988
|
);
|
|
5989
5989
|
if (t.byteLength > 2048 * 1024 * 1024)
|
|
5990
|
-
throw new
|
|
5990
|
+
throw new le(
|
|
5991
5991
|
"To keep implementation simple, I haven't implemented the layer 5 feature needed to support packfiles > 2GB in size."
|
|
5992
5992
|
);
|
|
5993
5993
|
n.seek(n.tell() + 4 * 255);
|
|
@@ -6019,14 +6019,14 @@ class on {
|
|
|
6019
6019
|
7: "ref-delta"
|
|
6020
6020
|
}, a = {}, o = t.slice(-20).toString("hex"), s = [], l = {}, c = /* @__PURE__ */ new Map();
|
|
6021
6021
|
let u = null, d = null;
|
|
6022
|
-
await Fw([t], async ({ data: x, type: y, reference: v, offset: O, num:
|
|
6023
|
-
u === null && (u =
|
|
6022
|
+
await Fw([t], async ({ data: x, type: y, reference: v, offset: O, num: R }) => {
|
|
6023
|
+
u === null && (u = R);
|
|
6024
6024
|
const b = Math.floor(
|
|
6025
|
-
(u -
|
|
6025
|
+
(u - R) * 100 / u
|
|
6026
6026
|
);
|
|
6027
6027
|
b !== d && n && await n({
|
|
6028
6028
|
phase: "Receiving objects",
|
|
6029
|
-
loaded: u -
|
|
6029
|
+
loaded: u - R,
|
|
6030
6030
|
total: u
|
|
6031
6031
|
}), d = b, y = i[y], ["commit", "tree", "blob", "tag"].includes(y) ? a[O] = {
|
|
6032
6032
|
type: y,
|
|
@@ -6041,8 +6041,8 @@ class on {
|
|
|
6041
6041
|
});
|
|
6042
6042
|
const p = Object.keys(a).map(Number);
|
|
6043
6043
|
for (const [x, y] of p.entries()) {
|
|
6044
|
-
const v = x + 1 === p.length ? t.byteLength - 20 : p[x + 1], O = a[y],
|
|
6045
|
-
O.end = v, O.crc =
|
|
6044
|
+
const v = x + 1 === p.length ? t.byteLength - 20 : p[x + 1], O = a[y], R = Lp.buf(t.slice(y, v)) >>> 0;
|
|
6045
|
+
O.end = v, O.crc = R;
|
|
6046
6046
|
}
|
|
6047
6047
|
const m = new on({
|
|
6048
6048
|
pack: Promise.resolve(t),
|
|
@@ -6067,9 +6067,9 @@ class on {
|
|
|
6067
6067
|
if (!v.oid)
|
|
6068
6068
|
try {
|
|
6069
6069
|
m.readDepth = 0, m.externalReadDepth = 0;
|
|
6070
|
-
const { type: O, object:
|
|
6070
|
+
const { type: O, object: R } = await m.readSlice({ start: x });
|
|
6071
6071
|
_[m.readDepth] += 1;
|
|
6072
|
-
const b = await Qt(vn.wrap({ type: O, object:
|
|
6072
|
+
const b = await Qt(vn.wrap({ type: O, object: R }));
|
|
6073
6073
|
v.oid = b, s.push(b), c.set(b, x), l[b] = v.crc;
|
|
6074
6074
|
} catch {
|
|
6075
6075
|
continue;
|
|
@@ -6113,7 +6113,7 @@ class on {
|
|
|
6113
6113
|
if (!this.offsets.get(t)) {
|
|
6114
6114
|
if (this.getExternalRefDelta)
|
|
6115
6115
|
return this.externalReadDepth++, this.getExternalRefDelta(t);
|
|
6116
|
-
throw new
|
|
6116
|
+
throw new le(`Could not read object ${t} from packfile`);
|
|
6117
6117
|
}
|
|
6118
6118
|
const r = this.offsets.get(t);
|
|
6119
6119
|
return this.readSlice({ start: r });
|
|
@@ -6131,13 +6131,13 @@ class on {
|
|
|
6131
6131
|
112: "ref_delta"
|
|
6132
6132
|
};
|
|
6133
6133
|
if (!this.pack)
|
|
6134
|
-
throw new
|
|
6134
|
+
throw new le(
|
|
6135
6135
|
"Tried to read from a GitPackIndex with no packfile loaded into memory"
|
|
6136
6136
|
);
|
|
6137
6137
|
const n = (await this.pack).slice(t), i = new Lt(n), a = i.readUInt8(), o = a & 112;
|
|
6138
6138
|
let s = r[o];
|
|
6139
6139
|
if (s === void 0)
|
|
6140
|
-
throw new
|
|
6140
|
+
throw new le("Unrecognized type: 0b" + o.toString(2));
|
|
6141
6141
|
const l = a & 15;
|
|
6142
6142
|
let c = l;
|
|
6143
6143
|
a & 128 && (c = Ww(i, l));
|
|
@@ -6152,7 +6152,7 @@ class on {
|
|
|
6152
6152
|
}
|
|
6153
6153
|
const m = n.slice(i.tell());
|
|
6154
6154
|
if (p = Buffer.from(await Rf(m)), p.byteLength !== c)
|
|
6155
|
-
throw new
|
|
6155
|
+
throw new le(
|
|
6156
6156
|
`Packfile told us object would have length ${c} but it had length ${p.byteLength}`
|
|
6157
6157
|
);
|
|
6158
6158
|
return d && (p = Buffer.from(Nw(p, d))), this.readDepth > 3 && (this.offsetCache[t] = { type: s, object: p }), { type: s, format: "content", object: p };
|
|
@@ -6204,7 +6204,7 @@ async function qw({
|
|
|
6204
6204
|
filename: l,
|
|
6205
6205
|
getExternalRefDelta: a
|
|
6206
6206
|
});
|
|
6207
|
-
if (c.error) throw new
|
|
6207
|
+
if (c.error) throw new le(c.error);
|
|
6208
6208
|
if (c.offsets.has(n)) {
|
|
6209
6209
|
if (!c.pack) {
|
|
6210
6210
|
const d = l.replace(/idx$/, "pack");
|
|
@@ -6233,20 +6233,20 @@ async function De({
|
|
|
6233
6233
|
oid: n,
|
|
6234
6234
|
getExternalRefDelta: a
|
|
6235
6235
|
}), !o)
|
|
6236
|
-
throw new
|
|
6236
|
+
throw new Re(n);
|
|
6237
6237
|
return o;
|
|
6238
6238
|
}
|
|
6239
6239
|
if (i === "deflated" || (o.format === "deflated" && (o.object = Buffer.from(await Rf(o.object)), o.format = "wrapped"), i === "wrapped"))
|
|
6240
6240
|
return o;
|
|
6241
6241
|
const s = await Qt(o.object);
|
|
6242
6242
|
if (s !== n)
|
|
6243
|
-
throw new
|
|
6243
|
+
throw new le(
|
|
6244
6244
|
`SHA check failed! Expected ${n}, computed ${s}`
|
|
6245
6245
|
);
|
|
6246
6246
|
const { object: l, type: c } = vn.unwrap(o.object);
|
|
6247
6247
|
if (o.type = c, o.object = l, o.format = "content", i === "content")
|
|
6248
6248
|
return o;
|
|
6249
|
-
throw new
|
|
6249
|
+
throw new le(`invalid requested format "${i}"`);
|
|
6250
6250
|
}
|
|
6251
6251
|
class $t extends we {
|
|
6252
6252
|
/**
|
|
@@ -6524,7 +6524,7 @@ var Yw = /* @__PURE__ */ Object.freeze({
|
|
|
6524
6524
|
FastForwardError: fi,
|
|
6525
6525
|
GitPushError: di,
|
|
6526
6526
|
HttpError: sn,
|
|
6527
|
-
InternalError:
|
|
6527
|
+
InternalError: le,
|
|
6528
6528
|
InvalidFilepathError: mr,
|
|
6529
6529
|
InvalidOidError: pr,
|
|
6530
6530
|
InvalidRefNameError: Rt,
|
|
@@ -6535,7 +6535,7 @@ var Yw = /* @__PURE__ */ Object.freeze({
|
|
|
6535
6535
|
MissingParameterError: ut,
|
|
6536
6536
|
MultipleGitError: pi,
|
|
6537
6537
|
NoRefspecError: oi,
|
|
6538
|
-
NotFoundError:
|
|
6538
|
+
NotFoundError: Re,
|
|
6539
6539
|
ObjectTypeError: at,
|
|
6540
6540
|
ParseError: Mr,
|
|
6541
6541
|
PushRejectedError: cn,
|
|
@@ -6597,7 +6597,7 @@ class it {
|
|
|
6597
6597
|
else if (typeof t == "object")
|
|
6598
6598
|
this._tag = it.render(t);
|
|
6599
6599
|
else
|
|
6600
|
-
throw new
|
|
6600
|
+
throw new le(
|
|
6601
6601
|
"invalid type passed to GitAnnotatedTag constructor"
|
|
6602
6602
|
);
|
|
6603
6603
|
}
|
|
@@ -6696,7 +6696,7 @@ class Ae {
|
|
|
6696
6696
|
else if (typeof t == "object")
|
|
6697
6697
|
this._commit = Ae.render(t);
|
|
6698
6698
|
else
|
|
6699
|
-
throw new
|
|
6699
|
+
throw new le("invalid type passed to GitCommit constructor");
|
|
6700
6700
|
}
|
|
6701
6701
|
static fromPayloadSignature({ payload: t, signature: r }) {
|
|
6702
6702
|
const n = Ae.justHeaders(t), i = Ae.justMessage(t), a = Xt(
|
|
@@ -6754,7 +6754,7 @@ gpgsig` + go(r) + `
|
|
|
6754
6754
|
` : r += `tree 4b825dc642cb6eb9a060e54bf8d69288fbee4904
|
|
6755
6755
|
`, t.parent) {
|
|
6756
6756
|
if (t.parent.length === void 0)
|
|
6757
|
-
throw new
|
|
6757
|
+
throw new le("commit 'parent' property should be an array");
|
|
6758
6758
|
for (const a of t.parent)
|
|
6759
6759
|
r += `parent ${a}
|
|
6760
6760
|
`;
|
|
@@ -6822,7 +6822,7 @@ class eg {
|
|
|
6822
6822
|
try {
|
|
6823
6823
|
s = await U.resolve({ fs: t, gitdir: r, ref: n });
|
|
6824
6824
|
} catch (c) {
|
|
6825
|
-
c instanceof
|
|
6825
|
+
c instanceof Re && (s = "4b825dc642cb6eb9a060e54bf8d69288fbee4904");
|
|
6826
6826
|
}
|
|
6827
6827
|
const l = await ln({ fs: t, cache: this.cache, gitdir: r, oid: s });
|
|
6828
6828
|
return l.type = "tree", l.mode = "40000", o.set(".", l), o;
|
|
@@ -7363,7 +7363,7 @@ class kn {
|
|
|
7363
7363
|
}
|
|
7364
7364
|
async function cg({ fs: e, gitdir: t, object: r, format: n, oid: i }) {
|
|
7365
7365
|
if (n !== "deflated")
|
|
7366
|
-
throw new
|
|
7366
|
+
throw new le(
|
|
7367
7367
|
"GitObjectStoreLoose expects objects to write to be in deflated format"
|
|
7368
7368
|
);
|
|
7369
7369
|
const a = `objects/${i.slice(0, 2)}/${i.slice(2)}`, o = `${t}/${a}`;
|
|
@@ -7444,7 +7444,7 @@ async function Xo({
|
|
|
7444
7444
|
}))
|
|
7445
7445
|
return;
|
|
7446
7446
|
const p = await r.lstat(N.join(e, d));
|
|
7447
|
-
if (!p) throw new
|
|
7447
|
+
if (!p) throw new Re(d);
|
|
7448
7448
|
if (p.isDirectory()) {
|
|
7449
7449
|
const m = await r.readdir(N.join(e, d));
|
|
7450
7450
|
if (o) {
|
|
@@ -7473,7 +7473,7 @@ async function Xo({
|
|
|
7473
7473
|
});
|
|
7474
7474
|
} else {
|
|
7475
7475
|
const g = await (await Le.get({ fs: r, gitdir: t })).get("core.autocrlf"), _ = p.isSymbolicLink() ? await r.readlink(N.join(e, d)).then($f) : await r.read(N.join(e, d), { autocrlf: g });
|
|
7476
|
-
if (_ === null) throw new
|
|
7476
|
+
if (_ === null) throw new Re(d);
|
|
7477
7477
|
const x = await dt({ fs: r, gitdir: t, type: "blob", object: _ });
|
|
7478
7478
|
i.insert({ filepath: d, stats: p, oid: x });
|
|
7479
7479
|
}
|
|
@@ -7630,7 +7630,7 @@ async function Sa({
|
|
|
7630
7630
|
message: i
|
|
7631
7631
|
});
|
|
7632
7632
|
s && (C = await Ae.sign(C, r, s));
|
|
7633
|
-
const
|
|
7633
|
+
const k = await dt({
|
|
7634
7634
|
fs: e,
|
|
7635
7635
|
gitdir: n,
|
|
7636
7636
|
type: "commit",
|
|
@@ -7641,8 +7641,8 @@ async function Sa({
|
|
|
7641
7641
|
fs: e,
|
|
7642
7642
|
gitdir: n,
|
|
7643
7643
|
ref: d,
|
|
7644
|
-
value:
|
|
7645
|
-
}),
|
|
7644
|
+
value: k
|
|
7645
|
+
}), k;
|
|
7646
7646
|
}
|
|
7647
7647
|
);
|
|
7648
7648
|
}
|
|
@@ -7720,7 +7720,7 @@ async function Df({
|
|
|
7720
7720
|
});
|
|
7721
7721
|
}
|
|
7722
7722
|
}
|
|
7723
|
-
throw new
|
|
7723
|
+
throw new Re(`file or directory found at "${a}:${o}"`);
|
|
7724
7724
|
}
|
|
7725
7725
|
async function Rn({
|
|
7726
7726
|
fs: e,
|
|
@@ -7763,7 +7763,7 @@ async function dg({
|
|
|
7763
7763
|
try {
|
|
7764
7764
|
d = await U.resolve({ gitdir: n, fs: e, ref: i });
|
|
7765
7765
|
} catch (y) {
|
|
7766
|
-
if (!(y instanceof
|
|
7766
|
+
if (!(y instanceof Re))
|
|
7767
7767
|
throw y;
|
|
7768
7768
|
}
|
|
7769
7769
|
let m = (await Rn({
|
|
@@ -8058,14 +8058,14 @@ async function Ts({
|
|
|
8058
8058
|
filepaths: l
|
|
8059
8059
|
});
|
|
8060
8060
|
} catch (b) {
|
|
8061
|
-
throw b instanceof
|
|
8061
|
+
throw b instanceof Re && b.data.what === _ ? new li(s, _) : b;
|
|
8062
8062
|
}
|
|
8063
8063
|
const y = x.filter(([b]) => b === "conflict").map(([b, C]) => C);
|
|
8064
8064
|
if (y.length > 0)
|
|
8065
8065
|
throw new ci(y);
|
|
8066
8066
|
const v = x.filter(([b]) => b === "error").map(([b, C]) => C);
|
|
8067
8067
|
if (v.length > 0)
|
|
8068
|
-
throw new
|
|
8068
|
+
throw new le(v.join(", "));
|
|
8069
8069
|
if (d) {
|
|
8070
8070
|
n && await n({
|
|
8071
8071
|
previousHead: g,
|
|
@@ -8075,34 +8075,34 @@ async function Ts({
|
|
|
8075
8075
|
return;
|
|
8076
8076
|
}
|
|
8077
8077
|
let O = 0;
|
|
8078
|
-
const
|
|
8078
|
+
const R = x.length;
|
|
8079
8079
|
await We.acquire({ fs: e, gitdir: a, cache: t }, async function(b) {
|
|
8080
8080
|
await Promise.all(
|
|
8081
8081
|
x.filter(
|
|
8082
8082
|
([C]) => C === "delete" || C === "delete-index"
|
|
8083
|
-
).map(async function([C,
|
|
8084
|
-
const S = `${i}/${
|
|
8085
|
-
C === "delete" && await e.rm(S), b.delete({ filepath:
|
|
8083
|
+
).map(async function([C, k]) {
|
|
8084
|
+
const S = `${i}/${k}`;
|
|
8085
|
+
C === "delete" && await e.rm(S), b.delete({ filepath: k }), r && await r({
|
|
8086
8086
|
phase: "Updating workdir",
|
|
8087
8087
|
loaded: ++O,
|
|
8088
|
-
total:
|
|
8088
|
+
total: R
|
|
8089
8089
|
});
|
|
8090
8090
|
})
|
|
8091
8091
|
);
|
|
8092
8092
|
}), await We.acquire({ fs: e, gitdir: a, cache: t }, async function(b) {
|
|
8093
|
-
for (const [C,
|
|
8093
|
+
for (const [C, k] of x)
|
|
8094
8094
|
if (C === "rmdir" || C === "rmdir-index") {
|
|
8095
|
-
const S = `${i}/${
|
|
8095
|
+
const S = `${i}/${k}`;
|
|
8096
8096
|
try {
|
|
8097
|
-
C === "rmdir-index" && b.delete({ filepath:
|
|
8097
|
+
C === "rmdir-index" && b.delete({ filepath: k }), await e.rmdir(S), r && await r({
|
|
8098
8098
|
phase: "Updating workdir",
|
|
8099
8099
|
loaded: ++O,
|
|
8100
|
-
total:
|
|
8100
|
+
total: R
|
|
8101
8101
|
});
|
|
8102
8102
|
} catch ($) {
|
|
8103
8103
|
if ($.code === "ENOTEMPTY")
|
|
8104
8104
|
console.log(
|
|
8105
|
-
`Did not delete ${
|
|
8105
|
+
`Did not delete ${k} because directory is not empty`
|
|
8106
8106
|
);
|
|
8107
8107
|
else
|
|
8108
8108
|
throw $;
|
|
@@ -8110,19 +8110,19 @@ async function Ts({
|
|
|
8110
8110
|
}
|
|
8111
8111
|
}), await Promise.all(
|
|
8112
8112
|
x.filter(([b]) => b === "mkdir" || b === "mkdir-index").map(async function([b, C]) {
|
|
8113
|
-
const
|
|
8114
|
-
await e.mkdir(
|
|
8113
|
+
const k = `${i}/${C}`;
|
|
8114
|
+
await e.mkdir(k), r && await r({
|
|
8115
8115
|
phase: "Updating workdir",
|
|
8116
8116
|
loaded: ++O,
|
|
8117
|
-
total:
|
|
8117
|
+
total: R
|
|
8118
8118
|
});
|
|
8119
8119
|
})
|
|
8120
8120
|
), await We.acquire({ fs: e, gitdir: a, cache: t }, async function(b) {
|
|
8121
8121
|
await Promise.all(
|
|
8122
8122
|
x.filter(
|
|
8123
8123
|
([C]) => C === "create" || C === "create-index" || C === "update" || C === "mkdir-index"
|
|
8124
|
-
).map(async function([C,
|
|
8125
|
-
const j = `${i}/${
|
|
8124
|
+
).map(async function([C, k, S, $, A]) {
|
|
8125
|
+
const j = `${i}/${k}`;
|
|
8126
8126
|
try {
|
|
8127
8127
|
if (C !== "create-index" && C !== "mkdir-index") {
|
|
8128
8128
|
const { object: H } = await De({ fs: e, cache: t, gitdir: a, oid: S });
|
|
@@ -8133,19 +8133,19 @@ async function Ts({
|
|
|
8133
8133
|
else if ($ === 40960)
|
|
8134
8134
|
await e.writelink(j, H);
|
|
8135
8135
|
else
|
|
8136
|
-
throw new
|
|
8136
|
+
throw new le(
|
|
8137
8137
|
`Invalid mode 0o${$.toString(8)} detected in blob ${S}`
|
|
8138
8138
|
);
|
|
8139
8139
|
}
|
|
8140
8140
|
const M = await e.lstat(j);
|
|
8141
8141
|
$ === 33261 && (M.mode = 493), C === "mkdir-index" && (M.mode = 57344), b.insert({
|
|
8142
|
-
filepath:
|
|
8142
|
+
filepath: k,
|
|
8143
8143
|
stats: M,
|
|
8144
8144
|
oid: S
|
|
8145
8145
|
}), r && await r({
|
|
8146
8146
|
phase: "Updating workdir",
|
|
8147
8147
|
loaded: ++O,
|
|
8148
|
-
total:
|
|
8148
|
+
total: R
|
|
8149
8149
|
});
|
|
8150
8150
|
} catch (M) {
|
|
8151
8151
|
console.log(M);
|
|
@@ -8588,8 +8588,8 @@ class ca {
|
|
|
8588
8588
|
} else {
|
|
8589
8589
|
const { preview: y, response: v, data: O } = await _o(g);
|
|
8590
8590
|
try {
|
|
8591
|
-
const
|
|
8592
|
-
return
|
|
8591
|
+
const R = await $l([O], { service: s });
|
|
8592
|
+
return R.auth = p, R;
|
|
8593
8593
|
} catch {
|
|
8594
8594
|
throw new mi(y, v);
|
|
8595
8595
|
}
|
|
@@ -8718,7 +8718,7 @@ async function Sg({
|
|
|
8718
8718
|
filename: s,
|
|
8719
8719
|
getExternalRefDelta: i
|
|
8720
8720
|
});
|
|
8721
|
-
if (l.error) throw new
|
|
8721
|
+
if (l.error) throw new le(l.error);
|
|
8722
8722
|
if (l.offsets.has(n))
|
|
8723
8723
|
return !0;
|
|
8724
8724
|
}
|
|
@@ -8987,14 +8987,14 @@ async function Ps({
|
|
|
8987
8987
|
relative: y = !1,
|
|
8988
8988
|
tags: v = !1,
|
|
8989
8989
|
singleBranch: O = !1,
|
|
8990
|
-
headers:
|
|
8990
|
+
headers: R = {},
|
|
8991
8991
|
prune: b = !1,
|
|
8992
8992
|
pruneTags: C = !1
|
|
8993
8993
|
}) {
|
|
8994
|
-
const
|
|
8994
|
+
const k = c || await br({ fs: e, gitdir: l, test: !0 }), S = await Le.get({ fs: e, gitdir: l }), $ = d || k && await S.get(`branch.${k}.remote`) || "origin", A = p || await S.get(`remote.${$}.url`);
|
|
8995
8995
|
if (typeof A > "u")
|
|
8996
8996
|
throw new ut("remote OR url");
|
|
8997
|
-
const j = u ||
|
|
8997
|
+
const j = u || k && await S.get(`branch.${k}.merge`) || c || "HEAD";
|
|
8998
8998
|
m === void 0 && (m = await S.get("http.corsProxy"));
|
|
8999
8999
|
const M = ka.getRemoteHelperFor({ url: A }), H = await M.discover({
|
|
9000
9000
|
http: r,
|
|
@@ -9004,10 +9004,10 @@ async function Ps({
|
|
|
9004
9004
|
corsProxy: m,
|
|
9005
9005
|
service: "git-upload-pack",
|
|
9006
9006
|
url: A,
|
|
9007
|
-
headers:
|
|
9007
|
+
headers: R,
|
|
9008
9008
|
protocolVersion: 1
|
|
9009
|
-
}), Y = H.auth,
|
|
9010
|
-
if (
|
|
9009
|
+
}), Y = H.auth, ue = H.refs;
|
|
9010
|
+
if (ue.size === 0)
|
|
9011
9011
|
return {
|
|
9012
9012
|
defaultBranch: null,
|
|
9013
9013
|
fetchHead: null,
|
|
@@ -9021,12 +9021,12 @@ async function Ps({
|
|
|
9021
9021
|
throw new fr("deepen-not", "exclude");
|
|
9022
9022
|
if (y === !0 && !H.capabilities.has("deepen-relative"))
|
|
9023
9023
|
throw new fr("deepen-relative", "relative");
|
|
9024
|
-
const { oid:
|
|
9024
|
+
const { oid: ke, fullref: se } = U.resolveAgainstMap({
|
|
9025
9025
|
ref: j,
|
|
9026
|
-
map:
|
|
9026
|
+
map: ue
|
|
9027
9027
|
});
|
|
9028
|
-
for (const L of
|
|
9029
|
-
L ===
|
|
9028
|
+
for (const L of ue.keys())
|
|
9029
|
+
L === se || L === "HEAD" || L.startsWith("refs/heads/") || v && L.startsWith("refs/tags/") || ue.delete(L);
|
|
9030
9030
|
const ge = Nf(
|
|
9031
9031
|
[...H.capabilities],
|
|
9032
9032
|
[
|
|
@@ -9043,7 +9043,7 @@ async function Ps({
|
|
|
9043
9043
|
]
|
|
9044
9044
|
);
|
|
9045
9045
|
y && ge.push("deepen-relative");
|
|
9046
|
-
const Fe = O ? [
|
|
9046
|
+
const Fe = O ? [ke] : ue.values(), Ie = O ? [k] : await U.listRefs({
|
|
9047
9047
|
fs: e,
|
|
9048
9048
|
gitdir: l,
|
|
9049
9049
|
filepath: "refs"
|
|
@@ -9073,7 +9073,7 @@ async function Ps({
|
|
|
9073
9073
|
url: A,
|
|
9074
9074
|
auth: Y,
|
|
9075
9075
|
body: [ee],
|
|
9076
|
-
headers:
|
|
9076
|
+
headers: R
|
|
9077
9077
|
}), Q = await Og(I.body);
|
|
9078
9078
|
I.headers && (Q.headers = I.headers);
|
|
9079
9079
|
for (const L of Q.shallows)
|
|
@@ -9089,15 +9089,15 @@ async function Ps({
|
|
|
9089
9089
|
for (const L of Q.unshallows)
|
|
9090
9090
|
F.delete(L);
|
|
9091
9091
|
if (await Vn.write({ fs: e, gitdir: l, oids: F }), O) {
|
|
9092
|
-
const L = /* @__PURE__ */ new Map([[
|
|
9093
|
-
let te = 10, J =
|
|
9092
|
+
const L = /* @__PURE__ */ new Map([[se, ke]]), V = /* @__PURE__ */ new Map();
|
|
9093
|
+
let te = 10, J = se;
|
|
9094
9094
|
for (; te--; ) {
|
|
9095
9095
|
const ne = H.symrefs.get(J);
|
|
9096
9096
|
if (ne === void 0) break;
|
|
9097
9097
|
V.set(J, ne), J = ne;
|
|
9098
9098
|
}
|
|
9099
|
-
const
|
|
9100
|
-
|
|
9099
|
+
const ce = ue.get(J);
|
|
9100
|
+
ce && L.set(J, ce);
|
|
9101
9101
|
const { pruned: re } = await U.updateRemoteRefs({
|
|
9102
9102
|
fs: e,
|
|
9103
9103
|
gitdir: l,
|
|
@@ -9113,7 +9113,7 @@ async function Ps({
|
|
|
9113
9113
|
fs: e,
|
|
9114
9114
|
gitdir: l,
|
|
9115
9115
|
remote: $,
|
|
9116
|
-
refs:
|
|
9116
|
+
refs: ue,
|
|
9117
9117
|
symrefs: H.symrefs,
|
|
9118
9118
|
tags: v,
|
|
9119
9119
|
prune: b,
|
|
@@ -9124,18 +9124,18 @@ async function Ps({
|
|
|
9124
9124
|
if (Q.HEAD = H.symrefs.get("HEAD"), Q.HEAD === void 0) {
|
|
9125
9125
|
const { oid: L } = U.resolveAgainstMap({
|
|
9126
9126
|
ref: "HEAD",
|
|
9127
|
-
map:
|
|
9127
|
+
map: ue
|
|
9128
9128
|
});
|
|
9129
|
-
for (const [V, te] of
|
|
9129
|
+
for (const [V, te] of ue.entries())
|
|
9130
9130
|
if (V !== "HEAD" && te === L) {
|
|
9131
9131
|
Q.HEAD = V;
|
|
9132
9132
|
break;
|
|
9133
9133
|
}
|
|
9134
9134
|
}
|
|
9135
|
-
const D =
|
|
9135
|
+
const D = se.startsWith("refs/tags") ? "tag" : "branch";
|
|
9136
9136
|
if (Q.FETCH_HEAD = {
|
|
9137
|
-
oid:
|
|
9138
|
-
description: `${D} '${Or(
|
|
9137
|
+
oid: ke,
|
|
9138
|
+
description: `${D} '${Or(se)}' of ${A}`
|
|
9139
9139
|
}, n || i) {
|
|
9140
9140
|
const L = Mf(Q.progress);
|
|
9141
9141
|
Ei(L, async (V) => {
|
|
@@ -9222,7 +9222,7 @@ async function $g({
|
|
|
9222
9222
|
exclude: y,
|
|
9223
9223
|
relative: v,
|
|
9224
9224
|
singleBranch: O,
|
|
9225
|
-
noCheckout:
|
|
9225
|
+
noCheckout: R,
|
|
9226
9226
|
noTags: b,
|
|
9227
9227
|
headers: C
|
|
9228
9228
|
}) {
|
|
@@ -9231,7 +9231,7 @@ async function $g({
|
|
|
9231
9231
|
const $ = await Le.get({ fs: e, gitdir: u });
|
|
9232
9232
|
await $.set("http.corsProxy", p), await Le.save({ fs: e, gitdir: u, config: $ });
|
|
9233
9233
|
}
|
|
9234
|
-
const { defaultBranch:
|
|
9234
|
+
const { defaultBranch: k, fetchHead: S } = await Ps({
|
|
9235
9235
|
fs: e,
|
|
9236
9236
|
cache: t,
|
|
9237
9237
|
http: r,
|
|
@@ -9253,7 +9253,7 @@ async function $g({
|
|
|
9253
9253
|
tags: !b
|
|
9254
9254
|
});
|
|
9255
9255
|
if (S === null) return;
|
|
9256
|
-
m = m ||
|
|
9256
|
+
m = m || k, m = m.replace("refs/heads/", ""), await Ts({
|
|
9257
9257
|
fs: e,
|
|
9258
9258
|
cache: t,
|
|
9259
9259
|
onProgress: n,
|
|
@@ -9262,11 +9262,11 @@ async function $g({
|
|
|
9262
9262
|
gitdir: u,
|
|
9263
9263
|
ref: m,
|
|
9264
9264
|
remote: g,
|
|
9265
|
-
noCheckout:
|
|
9265
|
+
noCheckout: R
|
|
9266
9266
|
});
|
|
9267
|
-
} catch (
|
|
9267
|
+
} catch (k) {
|
|
9268
9268
|
throw await e.rmdir(u, { recursive: !0, maxRetries: 10 }).catch(() => {
|
|
9269
|
-
}),
|
|
9269
|
+
}), k;
|
|
9270
9270
|
}
|
|
9271
9271
|
}
|
|
9272
9272
|
async function Tg({
|
|
@@ -9290,7 +9290,7 @@ async function Tg({
|
|
|
9290
9290
|
relative: y = !1,
|
|
9291
9291
|
singleBranch: v = !1,
|
|
9292
9292
|
noCheckout: O = !1,
|
|
9293
|
-
noTags:
|
|
9293
|
+
noTags: R = !1,
|
|
9294
9294
|
headers: b = {},
|
|
9295
9295
|
cache: C = {}
|
|
9296
9296
|
}) {
|
|
@@ -9317,11 +9317,11 @@ async function Tg({
|
|
|
9317
9317
|
relative: y,
|
|
9318
9318
|
singleBranch: v,
|
|
9319
9319
|
noCheckout: O,
|
|
9320
|
-
noTags:
|
|
9320
|
+
noTags: R,
|
|
9321
9321
|
headers: b
|
|
9322
9322
|
});
|
|
9323
|
-
} catch (
|
|
9324
|
-
throw
|
|
9323
|
+
} catch (k) {
|
|
9324
|
+
throw k.caller = "git.clone", k;
|
|
9325
9325
|
}
|
|
9326
9326
|
}
|
|
9327
9327
|
async function Pg({
|
|
@@ -9384,7 +9384,7 @@ async function Ag({
|
|
|
9384
9384
|
}
|
|
9385
9385
|
async function Dg({ fs: e, gitdir: t, ref: r }) {
|
|
9386
9386
|
if (r = r.startsWith("refs/heads/") ? r : `refs/heads/${r}`, !await U.exists({ fs: e, gitdir: t, ref: r }))
|
|
9387
|
-
throw new
|
|
9387
|
+
throw new Re(r);
|
|
9388
9388
|
const i = await U.expand({ fs: e, gitdir: t, ref: r }), a = await br({ fs: e, gitdir: t, fullname: !0 });
|
|
9389
9389
|
if (i === a) {
|
|
9390
9390
|
const l = await U.resolve({ fs: e, gitdir: t, ref: i });
|
|
@@ -9472,7 +9472,7 @@ async function Fg({
|
|
|
9472
9472
|
filename: l,
|
|
9473
9473
|
getExternalRefDelta: i
|
|
9474
9474
|
});
|
|
9475
|
-
if (c.error) throw new
|
|
9475
|
+
if (c.error) throw new le(c.error);
|
|
9476
9476
|
for (const u of c.offsets.keys())
|
|
9477
9477
|
u.startsWith(n) && a.push(u);
|
|
9478
9478
|
}
|
|
@@ -9490,7 +9490,7 @@ async function Ug({ fs: e, cache: t, gitdir: r, oid: n }) {
|
|
|
9490
9490
|
a.indexOf(s) === -1 && a.push(s);
|
|
9491
9491
|
if (a.length === 1)
|
|
9492
9492
|
return a[0];
|
|
9493
|
-
throw a.length > 1 ? new si("oids", n, a) : new
|
|
9493
|
+
throw a.length > 1 ? new si("oids", n, a) : new Re(`an object matching "${n}"`);
|
|
9494
9494
|
}
|
|
9495
9495
|
async function Hg({
|
|
9496
9496
|
fs: e,
|
|
@@ -9569,14 +9569,14 @@ async function qg({
|
|
|
9569
9569
|
abortOnConflict: p = !0,
|
|
9570
9570
|
mergeDriver: m
|
|
9571
9571
|
}) {
|
|
9572
|
-
const g = _t({ ref: a }), _ = _t({ ref: o }), x = _t({ ref: s }), y = [], v = [], O = [],
|
|
9572
|
+
const g = _t({ ref: a }), _ = _t({ ref: o }), x = _t({ ref: s }), y = [], v = [], O = [], R = [], b = await wr({
|
|
9573
9573
|
fs: e,
|
|
9574
9574
|
cache: t,
|
|
9575
9575
|
dir: r,
|
|
9576
9576
|
gitdir: n,
|
|
9577
9577
|
trees: [g, _, x],
|
|
9578
|
-
map: async function(C, [
|
|
9579
|
-
const A = ra(C), j = await oa(
|
|
9578
|
+
map: async function(C, [k, S, $]) {
|
|
9579
|
+
const A = ra(C), j = await oa(k, S), M = await oa($, S);
|
|
9580
9580
|
switch (`${j}-${M}`) {
|
|
9581
9581
|
case "false-false":
|
|
9582
9582
|
return {
|
|
@@ -9593,19 +9593,19 @@ async function qg({
|
|
|
9593
9593
|
type: await $.type()
|
|
9594
9594
|
} : void 0;
|
|
9595
9595
|
case "true-false":
|
|
9596
|
-
return
|
|
9597
|
-
mode: await
|
|
9596
|
+
return k ? {
|
|
9597
|
+
mode: await k.mode(),
|
|
9598
9598
|
path: A,
|
|
9599
|
-
oid: await
|
|
9600
|
-
type: await
|
|
9599
|
+
oid: await k.oid(),
|
|
9600
|
+
type: await k.type()
|
|
9601
9601
|
} : void 0;
|
|
9602
9602
|
case "true-true": {
|
|
9603
|
-
if (
|
|
9603
|
+
if (k && S && $ && await k.type() === "blob" && await S.type() === "blob" && await $.type() === "blob")
|
|
9604
9604
|
return Yg({
|
|
9605
9605
|
fs: e,
|
|
9606
9606
|
gitdir: n,
|
|
9607
9607
|
path: A,
|
|
9608
|
-
ours:
|
|
9608
|
+
ours: k,
|
|
9609
9609
|
base: S,
|
|
9610
9610
|
theirs: $,
|
|
9611
9611
|
ourName: l,
|
|
@@ -9616,12 +9616,12 @@ async function qg({
|
|
|
9616
9616
|
if (H.cleanMerge)
|
|
9617
9617
|
p || i.insert({ filepath: C, oid: H.mergeResult.oid, stage: 0 });
|
|
9618
9618
|
else if (y.push(C), v.push(C), !p) {
|
|
9619
|
-
const Y = await S.oid(),
|
|
9620
|
-
i.delete({ filepath: C }), i.insert({ filepath: C, oid: Y, stage: 1 }), i.insert({ filepath: C, oid:
|
|
9619
|
+
const Y = await S.oid(), ue = await k.oid(), ke = await $.oid();
|
|
9620
|
+
i.delete({ filepath: C }), i.insert({ filepath: C, oid: Y, stage: 1 }), i.insert({ filepath: C, oid: ue, stage: 2 }), i.insert({ filepath: C, oid: ke, stage: 3 });
|
|
9621
9621
|
}
|
|
9622
9622
|
return H.mergeResult;
|
|
9623
9623
|
});
|
|
9624
|
-
if (S && !
|
|
9624
|
+
if (S && !k && $ && await S.type() === "blob" && await $.type() === "blob") {
|
|
9625
9625
|
if (y.push(C), O.push(C), !p) {
|
|
9626
9626
|
const H = await S.oid(), Y = await $.oid();
|
|
9627
9627
|
i.delete({ filepath: C }), i.insert({ filepath: C, oid: H, stage: 1 }), i.insert({ filepath: C, oid: Y, stage: 3 });
|
|
@@ -9633,19 +9633,19 @@ async function qg({
|
|
|
9633
9633
|
path: A
|
|
9634
9634
|
};
|
|
9635
9635
|
}
|
|
9636
|
-
if (S &&
|
|
9637
|
-
if (y.push(C),
|
|
9638
|
-
const H = await S.oid(), Y = await
|
|
9636
|
+
if (S && k && !$ && await S.type() === "blob" && await k.type() === "blob") {
|
|
9637
|
+
if (y.push(C), R.push(C), !p) {
|
|
9638
|
+
const H = await S.oid(), Y = await k.oid();
|
|
9639
9639
|
i.delete({ filepath: C }), i.insert({ filepath: C, oid: H, stage: 1 }), i.insert({ filepath: C, oid: Y, stage: 2 });
|
|
9640
9640
|
}
|
|
9641
9641
|
return {
|
|
9642
|
-
mode: await
|
|
9643
|
-
oid: await
|
|
9642
|
+
mode: await k.mode(),
|
|
9643
|
+
oid: await k.oid(),
|
|
9644
9644
|
type: "blob",
|
|
9645
9645
|
path: A
|
|
9646
9646
|
};
|
|
9647
9647
|
}
|
|
9648
|
-
if (S && !
|
|
9648
|
+
if (S && !k && !$ && await S.type() === "blob")
|
|
9649
9649
|
return;
|
|
9650
9650
|
throw new xn();
|
|
9651
9651
|
}
|
|
@@ -9655,8 +9655,8 @@ async function qg({
|
|
|
9655
9655
|
* @param {TreeEntry} [parent]
|
|
9656
9656
|
* @param {Array<TreeEntry>} children
|
|
9657
9657
|
*/
|
|
9658
|
-
reduce: y.length !== 0 && (!r || p) ? void 0 : async (C,
|
|
9659
|
-
const S =
|
|
9658
|
+
reduce: y.length !== 0 && (!r || p) ? void 0 : async (C, k) => {
|
|
9659
|
+
const S = k.filter(Boolean);
|
|
9660
9660
|
if (C && !(C && C.type === "tree" && S.length === 0)) {
|
|
9661
9661
|
if (S.length > 0) {
|
|
9662
9662
|
const A = new ft(S).toObject(), j = await dt({
|
|
@@ -9678,10 +9678,10 @@ async function qg({
|
|
|
9678
9678
|
dir: r,
|
|
9679
9679
|
gitdir: n,
|
|
9680
9680
|
trees: [_t({ ref: b.oid })],
|
|
9681
|
-
map: async function(C, [
|
|
9681
|
+
map: async function(C, [k]) {
|
|
9682
9682
|
const S = `${r}/${C}`;
|
|
9683
|
-
if (await
|
|
9684
|
-
const $ = await
|
|
9683
|
+
if (await k.type() === "blob") {
|
|
9684
|
+
const $ = await k.mode(), A = new TextDecoder().decode(await k.content());
|
|
9685
9685
|
await e.write(S, A, { mode: $ });
|
|
9686
9686
|
}
|
|
9687
9687
|
return !0;
|
|
@@ -9690,7 +9690,7 @@ async function qg({
|
|
|
9690
9690
|
y,
|
|
9691
9691
|
v,
|
|
9692
9692
|
O,
|
|
9693
|
-
|
|
9693
|
+
R
|
|
9694
9694
|
)) : b.oid;
|
|
9695
9695
|
}
|
|
9696
9696
|
async function Yg({
|
|
@@ -9779,13 +9779,13 @@ async function Uf({
|
|
|
9779
9779
|
});
|
|
9780
9780
|
if (O.length !== 1)
|
|
9781
9781
|
throw new xn();
|
|
9782
|
-
const
|
|
9783
|
-
if (
|
|
9782
|
+
const R = O[0];
|
|
9783
|
+
if (R === v)
|
|
9784
9784
|
return {
|
|
9785
9785
|
oid: y,
|
|
9786
9786
|
alreadyMerged: !0
|
|
9787
9787
|
};
|
|
9788
|
-
if (o &&
|
|
9788
|
+
if (o && R === y)
|
|
9789
9789
|
return !l && !c && await U.writeRef({ fs: e, gitdir: n, ref: i, value: v }), {
|
|
9790
9790
|
oid: v,
|
|
9791
9791
|
fastForward: !0
|
|
@@ -9795,15 +9795,15 @@ async function Uf({
|
|
|
9795
9795
|
throw new fi();
|
|
9796
9796
|
const b = await We.acquire(
|
|
9797
9797
|
{ fs: e, gitdir: n, cache: t, allowUnmerged: !1 },
|
|
9798
|
-
async (
|
|
9798
|
+
async (k) => qg({
|
|
9799
9799
|
fs: e,
|
|
9800
9800
|
cache: t,
|
|
9801
9801
|
dir: r,
|
|
9802
9802
|
gitdir: n,
|
|
9803
|
-
index:
|
|
9803
|
+
index: k,
|
|
9804
9804
|
ourOid: y,
|
|
9805
9805
|
theirOid: v,
|
|
9806
|
-
baseOid:
|
|
9806
|
+
baseOid: R,
|
|
9807
9807
|
ourName: Or(i),
|
|
9808
9808
|
baseName: "base",
|
|
9809
9809
|
theirName: Or(a),
|
|
@@ -9857,10 +9857,10 @@ async function Hf({
|
|
|
9857
9857
|
fastForwardOnly: y,
|
|
9858
9858
|
corsProxy: v,
|
|
9859
9859
|
singleBranch: O,
|
|
9860
|
-
headers:
|
|
9860
|
+
headers: R,
|
|
9861
9861
|
author: b,
|
|
9862
9862
|
committer: C,
|
|
9863
|
-
signingKey:
|
|
9863
|
+
signingKey: k
|
|
9864
9864
|
}) {
|
|
9865
9865
|
try {
|
|
9866
9866
|
if (!u) {
|
|
@@ -9885,7 +9885,7 @@ async function Hf({
|
|
|
9885
9885
|
remote: p,
|
|
9886
9886
|
remoteRef: m,
|
|
9887
9887
|
singleBranch: O,
|
|
9888
|
-
headers:
|
|
9888
|
+
headers: R,
|
|
9889
9889
|
prune: g,
|
|
9890
9890
|
pruneTags: _
|
|
9891
9891
|
});
|
|
@@ -9900,7 +9900,7 @@ async function Hf({
|
|
|
9900
9900
|
message: `Merge ${$}`,
|
|
9901
9901
|
author: b,
|
|
9902
9902
|
committer: C,
|
|
9903
|
-
signingKey:
|
|
9903
|
+
signingKey: k,
|
|
9904
9904
|
dryRun: !1,
|
|
9905
9905
|
noUpdateBranch: !1
|
|
9906
9906
|
}), await Ts({
|
|
@@ -9991,15 +9991,15 @@ async function Zg({
|
|
|
9991
9991
|
relative: y = !1,
|
|
9992
9992
|
tags: v = !1,
|
|
9993
9993
|
singleBranch: O = !1,
|
|
9994
|
-
headers:
|
|
9994
|
+
headers: R = {},
|
|
9995
9995
|
prune: b = !1,
|
|
9996
9996
|
pruneTags: C = !1,
|
|
9997
|
-
cache:
|
|
9997
|
+
cache: k = {}
|
|
9998
9998
|
}) {
|
|
9999
9999
|
try {
|
|
10000
10000
|
return T("fs", e), T("http", t), T("gitdir", l), await Ps({
|
|
10001
10001
|
fs: new K(e),
|
|
10002
|
-
cache:
|
|
10002
|
+
cache: k,
|
|
10003
10003
|
http: t,
|
|
10004
10004
|
onProgress: r,
|
|
10005
10005
|
onMessage: n,
|
|
@@ -10018,7 +10018,7 @@ async function Zg({
|
|
|
10018
10018
|
relative: y,
|
|
10019
10019
|
tags: v,
|
|
10020
10020
|
singleBranch: O,
|
|
10021
|
-
headers:
|
|
10021
|
+
headers: R,
|
|
10022
10022
|
prune: b,
|
|
10023
10023
|
pruneTags: C
|
|
10024
10024
|
});
|
|
@@ -10050,7 +10050,7 @@ async function Wf({ fs: e, filepath: t }) {
|
|
|
10050
10050
|
{
|
|
10051
10051
|
const r = an(t);
|
|
10052
10052
|
if (r === t)
|
|
10053
|
-
throw new
|
|
10053
|
+
throw new Re(`git root for ${t}`);
|
|
10054
10054
|
return Wf({ fs: e, filepath: r });
|
|
10055
10055
|
}
|
|
10056
10056
|
}
|
|
@@ -10428,7 +10428,7 @@ async function hy({ fs: e, cache: t, gitdir: r, ref: n }) {
|
|
|
10428
10428
|
try {
|
|
10429
10429
|
i = await U.resolve({ gitdir: r, fs: e, ref: n });
|
|
10430
10430
|
} catch (s) {
|
|
10431
|
-
if (s instanceof
|
|
10431
|
+
if (s instanceof Re)
|
|
10432
10432
|
return [];
|
|
10433
10433
|
}
|
|
10434
10434
|
return (await Rn({
|
|
@@ -10641,8 +10641,8 @@ async function Sy({
|
|
|
10641
10641
|
oid: v.commit.tree,
|
|
10642
10642
|
filepath: n
|
|
10643
10643
|
}), _ && g !== O && u.push(_), g = O, _ = v, x = !0;
|
|
10644
|
-
} catch (
|
|
10645
|
-
if (
|
|
10644
|
+
} catch (R) {
|
|
10645
|
+
if (R instanceof Re) {
|
|
10646
10646
|
let b = l && g;
|
|
10647
10647
|
if (b && (b = await Dl({
|
|
10648
10648
|
fs: e,
|
|
@@ -10661,7 +10661,7 @@ async function Sy({
|
|
|
10661
10661
|
fileId: g
|
|
10662
10662
|
});
|
|
10663
10663
|
if (Array.isArray(C))
|
|
10664
|
-
if (b = b.filter((
|
|
10664
|
+
if (b = b.filter((k) => C.indexOf(k) === -1), b.length === 1)
|
|
10665
10665
|
b = b[0], n = b, _ && u.push(_);
|
|
10666
10666
|
else {
|
|
10667
10667
|
b = !1, _ && u.push(_);
|
|
@@ -10673,10 +10673,10 @@ async function Sy({
|
|
|
10673
10673
|
if (!b) {
|
|
10674
10674
|
if (x && g && (u.push(_), !s))
|
|
10675
10675
|
break;
|
|
10676
|
-
if (!s && !l) throw
|
|
10676
|
+
if (!s && !l) throw R;
|
|
10677
10677
|
}
|
|
10678
10678
|
_ = v, x = !1;
|
|
10679
|
-
} else throw
|
|
10679
|
+
} else throw R;
|
|
10680
10680
|
}
|
|
10681
10681
|
} else
|
|
10682
10682
|
u.push(v);
|
|
@@ -10686,10 +10686,10 @@ async function Sy({
|
|
|
10686
10686
|
}
|
|
10687
10687
|
if (!d.has(v.oid))
|
|
10688
10688
|
for (const O of v.commit.parent) {
|
|
10689
|
-
const
|
|
10690
|
-
m.map((b) => b.oid).includes(
|
|
10689
|
+
const R = await fn({ fs: e, cache: t, gitdir: r, oid: O });
|
|
10690
|
+
m.map((b) => b.oid).includes(R.oid) || m.push(R);
|
|
10691
10691
|
}
|
|
10692
|
-
m.length === 0 && y(v), m.sort((O,
|
|
10692
|
+
m.length === 0 && y(v), m.sort((O, R) => xy(O.commit, R.commit));
|
|
10693
10693
|
}
|
|
10694
10694
|
return u;
|
|
10695
10695
|
}
|
|
@@ -10863,14 +10863,14 @@ async function Ty({
|
|
|
10863
10863
|
corsProxy: y,
|
|
10864
10864
|
singleBranch: v,
|
|
10865
10865
|
headers: O = {},
|
|
10866
|
-
author:
|
|
10866
|
+
author: R,
|
|
10867
10867
|
committer: b,
|
|
10868
10868
|
signingKey: C,
|
|
10869
|
-
cache:
|
|
10869
|
+
cache: k = {}
|
|
10870
10870
|
}) {
|
|
10871
10871
|
try {
|
|
10872
10872
|
T("fs", e), T("gitdir", l);
|
|
10873
|
-
const S = new K(e), $ = await gr({ fs: S, gitdir: l, author:
|
|
10873
|
+
const S = new K(e), $ = await gr({ fs: S, gitdir: l, author: R });
|
|
10874
10874
|
if (!$) throw new Qe("author");
|
|
10875
10875
|
const A = await un({
|
|
10876
10876
|
fs: S,
|
|
@@ -10881,7 +10881,7 @@ async function Ty({
|
|
|
10881
10881
|
if (!A) throw new Qe("committer");
|
|
10882
10882
|
return await Hf({
|
|
10883
10883
|
fs: S,
|
|
10884
|
-
cache:
|
|
10884
|
+
cache: k,
|
|
10885
10885
|
http: t,
|
|
10886
10886
|
onProgress: r,
|
|
10887
10887
|
onMessage: n,
|
|
@@ -11040,21 +11040,21 @@ async function Iy({
|
|
|
11040
11040
|
throw new ut("ref");
|
|
11041
11041
|
const O = await Le.get({ fs: e, gitdir: c });
|
|
11042
11042
|
p = p || await O.get(`branch.${v}.pushRemote`) || await O.get("remote.pushDefault") || await O.get(`branch.${v}.remote`) || "origin";
|
|
11043
|
-
const
|
|
11044
|
-
if (typeof
|
|
11043
|
+
const R = m || await O.get(`remote.${p}.pushurl`) || await O.get(`remote.${p}.url`);
|
|
11044
|
+
if (typeof R > "u")
|
|
11045
11045
|
throw new ut("remote OR url");
|
|
11046
11046
|
const b = d || await O.get(`branch.${v}.merge`);
|
|
11047
|
-
if (typeof
|
|
11047
|
+
if (typeof R > "u")
|
|
11048
11048
|
throw new ut("remoteRef");
|
|
11049
11049
|
x === void 0 && (x = await O.get("http.corsProxy"));
|
|
11050
|
-
const C = await U.expand({ fs: e, gitdir: c, ref: v }),
|
|
11050
|
+
const C = await U.expand({ fs: e, gitdir: c, ref: v }), k = _ ? "0000000000000000000000000000000000000000" : await U.resolve({ fs: e, gitdir: c, ref: C }), S = ka.getRemoteHelperFor({ url: R }), $ = await S.discover({
|
|
11051
11051
|
http: r,
|
|
11052
11052
|
onAuth: a,
|
|
11053
11053
|
onAuthSuccess: o,
|
|
11054
11054
|
onAuthFailure: s,
|
|
11055
11055
|
corsProxy: x,
|
|
11056
11056
|
service: "git-receive-pack",
|
|
11057
|
-
url:
|
|
11057
|
+
url: R,
|
|
11058
11058
|
headers: y,
|
|
11059
11059
|
protocolVersion: 1
|
|
11060
11060
|
}), A = $.auth;
|
|
@@ -11068,7 +11068,7 @@ async function Iy({
|
|
|
11068
11068
|
map: $.refs
|
|
11069
11069
|
});
|
|
11070
11070
|
} catch (F) {
|
|
11071
|
-
if (F instanceof
|
|
11071
|
+
if (F instanceof Re)
|
|
11072
11072
|
j = b.startsWith("refs/") ? b : `refs/heads/${b}`;
|
|
11073
11073
|
else
|
|
11074
11074
|
throw F;
|
|
@@ -11076,8 +11076,8 @@ async function Iy({
|
|
|
11076
11076
|
const M = $.refs.get(j) || "0000000000000000000000000000000000000000";
|
|
11077
11077
|
if (l && !await l({
|
|
11078
11078
|
remote: p,
|
|
11079
|
-
url:
|
|
11080
|
-
localRef: { ref: _ ? "(delete)" : C, oid:
|
|
11079
|
+
url: R,
|
|
11080
|
+
localRef: { ref: _ ? "(delete)" : C, oid: k },
|
|
11081
11081
|
remoteRef: { ref: j, oid: M }
|
|
11082
11082
|
}))
|
|
11083
11083
|
throw new Sn();
|
|
@@ -11091,17 +11091,17 @@ async function Iy({
|
|
|
11091
11091
|
fs: e,
|
|
11092
11092
|
cache: t,
|
|
11093
11093
|
gitdir: c,
|
|
11094
|
-
oids: [
|
|
11094
|
+
oids: [k, M]
|
|
11095
11095
|
});
|
|
11096
11096
|
for (const ee of W) F.push(ee);
|
|
11097
11097
|
H && (G = await xo({ fs: e, cache: t, gitdir: c, oids: W }));
|
|
11098
11098
|
}
|
|
11099
|
-
if (!F.includes(
|
|
11099
|
+
if (!F.includes(k)) {
|
|
11100
11100
|
const W = await Py({
|
|
11101
11101
|
fs: e,
|
|
11102
11102
|
cache: t,
|
|
11103
11103
|
gitdir: c,
|
|
11104
|
-
start: [
|
|
11104
|
+
start: [k],
|
|
11105
11105
|
finish: F
|
|
11106
11106
|
});
|
|
11107
11107
|
Y = await xo({ fs: e, cache: t, gitdir: c, oids: W });
|
|
@@ -11125,27 +11125,27 @@ async function Iy({
|
|
|
11125
11125
|
for (const W of G)
|
|
11126
11126
|
Y.delete(W);
|
|
11127
11127
|
}
|
|
11128
|
-
if (
|
|
11128
|
+
if (k === M && (g = !0), !g) {
|
|
11129
11129
|
if (C.startsWith("refs/tags") && M !== "0000000000000000000000000000000000000000")
|
|
11130
11130
|
throw new cn("tag-exists");
|
|
11131
|
-
if (
|
|
11131
|
+
if (k !== "0000000000000000000000000000000000000000" && M !== "0000000000000000000000000000000000000000" && !await qf({
|
|
11132
11132
|
fs: e,
|
|
11133
11133
|
cache: t,
|
|
11134
11134
|
gitdir: c,
|
|
11135
|
-
oid:
|
|
11135
|
+
oid: k,
|
|
11136
11136
|
ancestor: M,
|
|
11137
11137
|
depth: -1
|
|
11138
11138
|
}))
|
|
11139
11139
|
throw new cn("not-fast-forward");
|
|
11140
11140
|
}
|
|
11141
11141
|
}
|
|
11142
|
-
const
|
|
11142
|
+
const ue = Nf(
|
|
11143
11143
|
[...$.capabilities],
|
|
11144
11144
|
["report-status", "side-band-64k", `agent=${Ra.agent}`]
|
|
11145
|
-
),
|
|
11146
|
-
capabilities:
|
|
11147
|
-
triplets: [{ oldoid: M, oid:
|
|
11148
|
-
}),
|
|
11145
|
+
), ke = await Dy({
|
|
11146
|
+
capabilities: ue,
|
|
11147
|
+
triplets: [{ oldoid: M, oid: k, fullRef: j }]
|
|
11148
|
+
}), se = _ ? [] : await Zf({
|
|
11149
11149
|
fs: e,
|
|
11150
11150
|
cache: t,
|
|
11151
11151
|
gitdir: c,
|
|
@@ -11155,10 +11155,10 @@ async function Iy({
|
|
|
11155
11155
|
onProgress: n,
|
|
11156
11156
|
corsProxy: x,
|
|
11157
11157
|
service: "git-receive-pack",
|
|
11158
|
-
url:
|
|
11158
|
+
url: R,
|
|
11159
11159
|
auth: A,
|
|
11160
11160
|
headers: y,
|
|
11161
|
-
body: [...
|
|
11161
|
+
body: [...ke, ...se]
|
|
11162
11162
|
}), { packfile: Fe, progress: Ie } = await Lf.demux(ge.body);
|
|
11163
11163
|
if (i) {
|
|
11164
11164
|
const F = Mf(Ie);
|
|
@@ -11172,7 +11172,7 @@ async function Iy({
|
|
|
11172
11172
|
"refs/heads",
|
|
11173
11173
|
""
|
|
11174
11174
|
)}`;
|
|
11175
|
-
_ ? await U.deleteRef({ fs: e, gitdir: c, ref: F }) : await U.writeRef({ fs: e, gitdir: c, ref: F, value:
|
|
11175
|
+
_ ? await U.deleteRef({ fs: e, gitdir: c, ref: F }) : await U.writeRef({ fs: e, gitdir: c, ref: F, value: k });
|
|
11176
11176
|
}
|
|
11177
11177
|
if (ie.ok && Object.values(ie.refs).every((F) => F.ok))
|
|
11178
11178
|
return ie;
|
|
@@ -11466,7 +11466,7 @@ async function Wy({
|
|
|
11466
11466
|
try {
|
|
11467
11467
|
c = await U.resolve({ gitdir: n, fs: e, ref: i });
|
|
11468
11468
|
} catch (g) {
|
|
11469
|
-
if (!(g instanceof
|
|
11469
|
+
if (!(g instanceof Re))
|
|
11470
11470
|
throw g;
|
|
11471
11471
|
}
|
|
11472
11472
|
let d = (await Rn({
|
|
@@ -11713,16 +11713,16 @@ async function dn(e, t) {
|
|
|
11713
11713
|
}
|
|
11714
11714
|
async function Jy(e, t, r, n, i = null) {
|
|
11715
11715
|
const a = N.join(r, n), o = await e.lstat(a);
|
|
11716
|
-
if (!o) throw new
|
|
11716
|
+
if (!o) throw new Re(a);
|
|
11717
11717
|
if (o.isDirectory())
|
|
11718
|
-
throw new
|
|
11718
|
+
throw new le(
|
|
11719
11719
|
`${a}: file expected, but found directory`
|
|
11720
11720
|
);
|
|
11721
11721
|
const s = i ? await Ef({ fs: e, gitdir: t, oid: i }) : void 0;
|
|
11722
11722
|
let l = s ? i : void 0;
|
|
11723
11723
|
return s || await dn({ fs: e, gitdir: t, currentFilepath: a }, async () => {
|
|
11724
11724
|
const c = o.isSymbolicLink() ? await e.readlink(a).then($f) : await e.read(a);
|
|
11725
|
-
if (c === null) throw new
|
|
11725
|
+
if (c === null) throw new Re(a);
|
|
11726
11726
|
l = await dt({ fs: e, gitdir: t, type: "blob", object: c });
|
|
11727
11727
|
}), l;
|
|
11728
11728
|
}
|
|
@@ -11996,7 +11996,7 @@ async function tb({ fs: e, dir: t, gitdir: r, message: n = "" }) {
|
|
|
11996
11996
|
c.push(x), u = m;
|
|
11997
11997
|
}
|
|
11998
11998
|
if (!u || !p && !m)
|
|
11999
|
-
throw new
|
|
11999
|
+
throw new Re("changes, nothing to stash");
|
|
12000
12000
|
const g = (n.trim() || `WIP on ${a}`) + `: ${o.substring(0, 7)} ${l}`, _ = await i.writeStashCommit({
|
|
12001
12001
|
message: g,
|
|
12002
12002
|
tree: u,
|
|
@@ -12202,7 +12202,7 @@ async function sb({ fs: e, cache: t, gitdir: r }) {
|
|
|
12202
12202
|
try {
|
|
12203
12203
|
n = await U.resolve({ fs: e, gitdir: r, ref: "HEAD" });
|
|
12204
12204
|
} catch (a) {
|
|
12205
|
-
if (a instanceof
|
|
12205
|
+
if (a instanceof Re)
|
|
12206
12206
|
return [];
|
|
12207
12207
|
}
|
|
12208
12208
|
const { tree: i } = await Rn({ fs: e, cache: t, gitdir: r, oid: n });
|
|
@@ -12250,7 +12250,7 @@ async function cb({
|
|
|
12250
12250
|
const y = m === "blob" ? await u.oid() : void 0, v = _ === "blob" ? await p.oid() : void 0;
|
|
12251
12251
|
let O;
|
|
12252
12252
|
m !== "blob" && g === "blob" && _ !== "blob" ? O = "42" : g === "blob" && (O = await d.oid());
|
|
12253
|
-
const
|
|
12253
|
+
const R = [void 0, y, O, v], b = R.map((C) => R.indexOf(C));
|
|
12254
12254
|
return b.shift(), [c, ...b];
|
|
12255
12255
|
}
|
|
12256
12256
|
});
|
|
@@ -12317,7 +12317,7 @@ async function ub({
|
|
|
12317
12317
|
let d;
|
|
12318
12318
|
if (!a) {
|
|
12319
12319
|
if (d = await u.lstat(N.join(t, i)), !d)
|
|
12320
|
-
throw new
|
|
12320
|
+
throw new Re(
|
|
12321
12321
|
`file at "${i}" on disk and "remove" not set`
|
|
12322
12322
|
);
|
|
12323
12323
|
if (d.isDirectory())
|
|
@@ -12325,7 +12325,7 @@ async function ub({
|
|
|
12325
12325
|
}
|
|
12326
12326
|
return await We.acquire({ fs: u, gitdir: r, cache: n }, async function(p) {
|
|
12327
12327
|
if (!s && !p.has({ filepath: i }))
|
|
12328
|
-
throw new
|
|
12328
|
+
throw new Re(
|
|
12329
12329
|
`file at "${i}" in index and "add" not set`
|
|
12330
12330
|
);
|
|
12331
12331
|
let m = {
|
|
@@ -13015,7 +13015,7 @@ ud.exports = Se;
|
|
|
13015
13015
|
var zs = ud.exports;
|
|
13016
13016
|
function Hb(e) {
|
|
13017
13017
|
function t(F, G, W, ee, I) {
|
|
13018
|
-
for (var Q = 0, D = 0, q = 0, Z = 0, X, L, V = 0, te = 0, J,
|
|
13018
|
+
for (var Q = 0, D = 0, q = 0, Z = 0, X, L, V = 0, te = 0, J, ce = J = X = 0, re = 0, ne = 0, Ee = 0, _e = 0, yt = W.length, Ue = yt - 1, $e, ae = "", xe = "", On = "", w = "", f; re < yt; ) {
|
|
13019
13019
|
if (L = W.charCodeAt(re), re === Ue && D + Z + q + Q !== 0 && (D !== 0 && (L = D === 47 ? 10 : 47), Z = q = Q = 0, yt++, Ue++), D + Z + q + Q === 0) {
|
|
13020
13020
|
if (re === Ue && (0 < ne && (ae = ae.replace(p, "")), 0 < ae.trim().length)) {
|
|
13021
13021
|
switch (L) {
|
|
@@ -13045,21 +13045,21 @@ function Hb(e) {
|
|
|
13045
13045
|
case 42:
|
|
13046
13046
|
case 47:
|
|
13047
13047
|
e: {
|
|
13048
|
-
for (
|
|
13049
|
-
switch (W.charCodeAt(
|
|
13048
|
+
for (ce = re + 1; ce < Ue; ++ce)
|
|
13049
|
+
switch (W.charCodeAt(ce)) {
|
|
13050
13050
|
case 47:
|
|
13051
|
-
if (L === 42 && W.charCodeAt(
|
|
13052
|
-
re =
|
|
13051
|
+
if (L === 42 && W.charCodeAt(ce - 1) === 42 && re + 2 !== ce) {
|
|
13052
|
+
re = ce + 1;
|
|
13053
13053
|
break e;
|
|
13054
13054
|
}
|
|
13055
13055
|
break;
|
|
13056
13056
|
case 10:
|
|
13057
13057
|
if (L === 47) {
|
|
13058
|
-
re =
|
|
13058
|
+
re = ce + 1;
|
|
13059
13059
|
break e;
|
|
13060
13060
|
}
|
|
13061
13061
|
}
|
|
13062
|
-
re =
|
|
13062
|
+
re = ce;
|
|
13063
13063
|
}
|
|
13064
13064
|
}
|
|
13065
13065
|
break;
|
|
@@ -13085,9 +13085,9 @@ function Hb(e) {
|
|
|
13085
13085
|
ne = G;
|
|
13086
13086
|
break;
|
|
13087
13087
|
default:
|
|
13088
|
-
ne =
|
|
13088
|
+
ne = ke;
|
|
13089
13089
|
}
|
|
13090
|
-
if (J = t(G, ne, J, L, I + 1), _e = J.length, 0 < ge && (ne = r(
|
|
13090
|
+
if (J = t(G, ne, J, L, I + 1), _e = J.length, 0 < ge && (ne = r(ke, ae, Ee), f = s(3, J, ne, G, H, M, _e, L, I, ee), ae = ne.join(""), f !== void 0 && (_e = (J = f.trim()).length) === 0 && (L = 0, J = "")), 0 < _e) switch (L) {
|
|
13091
13091
|
case 115:
|
|
13092
13092
|
ae = ae.replace(C, o);
|
|
13093
13093
|
case 100:
|
|
@@ -13096,7 +13096,7 @@ function Hb(e) {
|
|
|
13096
13096
|
J = ae + "{" + J + "}";
|
|
13097
13097
|
break;
|
|
13098
13098
|
case 107:
|
|
13099
|
-
ae = ae.replace(v, "$1 $2"), J = ae + "{" + J + "}", J =
|
|
13099
|
+
ae = ae.replace(v, "$1 $2"), J = ae + "{" + J + "}", J = ue === 1 || ue === 2 && a("@" + J, 3) ? "@-webkit-" + J + "@" + J : "@" + J;
|
|
13100
13100
|
break;
|
|
13101
13101
|
default:
|
|
13102
13102
|
J = ae + J, ee === 112 && (J = (xe += J, ""));
|
|
@@ -13106,11 +13106,11 @@ function Hb(e) {
|
|
|
13106
13106
|
default:
|
|
13107
13107
|
J = t(G, r(G, ae, Ee), J, ee, I + 1);
|
|
13108
13108
|
}
|
|
13109
|
-
On += J, J = Ee = ne =
|
|
13109
|
+
On += J, J = Ee = ne = ce = X = 0, ae = "", L = W.charCodeAt(++re);
|
|
13110
13110
|
break;
|
|
13111
13111
|
case 125:
|
|
13112
13112
|
case 59:
|
|
13113
|
-
if (ae = (0 < ne ? ae.replace(p, "") : ae).trim(), 1 < (_e = ae.length)) switch (
|
|
13113
|
+
if (ae = (0 < ne ? ae.replace(p, "") : ae).trim(), 1 < (_e = ae.length)) switch (ce === 0 && (X = ae.charCodeAt(0), X === 45 || 96 < X && 123 > X) && (_e = (ae = ae.replace(" ", ":")).length), 0 < ge && (f = s(1, ae, G, F, H, M, xe.length, ee, I, ee)) !== void 0 && (_e = (ae = f.trim()).length) === 0 && (ae = "\0\0"), X = ae.charCodeAt(0), L = ae.charCodeAt(1), X) {
|
|
13114
13114
|
case 0:
|
|
13115
13115
|
break;
|
|
13116
13116
|
case 64:
|
|
@@ -13121,7 +13121,7 @@ function Hb(e) {
|
|
|
13121
13121
|
default:
|
|
13122
13122
|
ae.charCodeAt(_e - 1) !== 58 && (xe += i(ae, X, L, ae.charCodeAt(2)));
|
|
13123
13123
|
}
|
|
13124
|
-
Ee = ne =
|
|
13124
|
+
Ee = ne = ce = X = 0, ae = "", L = W.charCodeAt(++re);
|
|
13125
13125
|
}
|
|
13126
13126
|
}
|
|
13127
13127
|
switch (L) {
|
|
@@ -13163,7 +13163,7 @@ function Hb(e) {
|
|
|
13163
13163
|
Z + D + Q === 0 && (ne = Ee = 1, $e = "\f" + $e);
|
|
13164
13164
|
break;
|
|
13165
13165
|
case 108:
|
|
13166
|
-
if (Z + D + Q + Y === 0 && 0 <
|
|
13166
|
+
if (Z + D + Q + Y === 0 && 0 < ce) switch (re - ce) {
|
|
13167
13167
|
case 2:
|
|
13168
13168
|
V === 112 && W.charCodeAt(re - 3) === 58 && (Y = V);
|
|
13169
13169
|
case 8:
|
|
@@ -13171,7 +13171,7 @@ function Hb(e) {
|
|
|
13171
13171
|
}
|
|
13172
13172
|
break;
|
|
13173
13173
|
case 58:
|
|
13174
|
-
Z + D + Q === 0 && (
|
|
13174
|
+
Z + D + Q === 0 && (ce = re);
|
|
13175
13175
|
break;
|
|
13176
13176
|
case 44:
|
|
13177
13177
|
D + q + Z + Q === 0 && (ne = 1, $e += "\r");
|
|
@@ -13201,7 +13201,7 @@ function Hb(e) {
|
|
|
13201
13201
|
}
|
|
13202
13202
|
break;
|
|
13203
13203
|
case 64:
|
|
13204
|
-
D + q + Z + Q +
|
|
13204
|
+
D + q + Z + Q + ce + J === 0 && (J = 1);
|
|
13205
13205
|
break;
|
|
13206
13206
|
case 42:
|
|
13207
13207
|
case 47:
|
|
@@ -13225,10 +13225,10 @@ function Hb(e) {
|
|
|
13225
13225
|
}
|
|
13226
13226
|
if (_e = xe.length, 0 < _e) {
|
|
13227
13227
|
if (ne = G, 0 < ge && (f = s(2, xe, ne, F, H, M, _e, ee, I, ee), f !== void 0 && (xe = f).length === 0)) return w + xe + On;
|
|
13228
|
-
if (xe = ne.join(",") + "{" + xe + "}",
|
|
13229
|
-
switch (
|
|
13228
|
+
if (xe = ne.join(",") + "{" + xe + "}", ue * Y !== 0) {
|
|
13229
|
+
switch (ue !== 2 || a(xe, 2) || (Y = 0), Y) {
|
|
13230
13230
|
case 111:
|
|
13231
|
-
xe = xe.replace(
|
|
13231
|
+
xe = xe.replace(R, ":-moz-$1") + xe;
|
|
13232
13232
|
break;
|
|
13233
13233
|
case 112:
|
|
13234
13234
|
xe = xe.replace(O, "::-webkit-input-$1") + xe.replace(O, "::-moz-$1") + xe.replace(O, ":-ms-input-$1") + xe;
|
|
@@ -13274,9 +13274,9 @@ function Hb(e) {
|
|
|
13274
13274
|
if (Q === 944) {
|
|
13275
13275
|
F = I.indexOf(":", 9) + 1;
|
|
13276
13276
|
var D = I.substring(F, I.length - 1).trim();
|
|
13277
|
-
return D = I.substring(0, F).trim() + D + ";",
|
|
13277
|
+
return D = I.substring(0, F).trim() + D + ";", ue === 1 || ue === 2 && a(D, 1) ? "-webkit-" + D + D : D;
|
|
13278
13278
|
}
|
|
13279
|
-
if (
|
|
13279
|
+
if (ue === 0 || ue === 2 && !a(I, 1)) return I;
|
|
13280
13280
|
switch (Q) {
|
|
13281
13281
|
case 1015:
|
|
13282
13282
|
return I.charCodeAt(10) === 97 ? "-webkit-" + I + I : I;
|
|
@@ -13372,11 +13372,11 @@ function Hb(e) {
|
|
|
13372
13372
|
}
|
|
13373
13373
|
function o(F, G) {
|
|
13374
13374
|
var W = i(G, G.charCodeAt(0), G.charCodeAt(1), G.charCodeAt(2));
|
|
13375
|
-
return W !== G + ";" ? W.replace(
|
|
13375
|
+
return W !== G + ";" ? W.replace(k, " or ($1)").substring(4) : "(" + G + ")";
|
|
13376
13376
|
}
|
|
13377
13377
|
function s(F, G, W, ee, I, Q, D, q, Z, X) {
|
|
13378
13378
|
for (var L = 0, V = G, te; L < ge; ++L)
|
|
13379
|
-
switch (te =
|
|
13379
|
+
switch (te = se[L].call(u, F, V, W, ee, I, Q, D, q, Z, X)) {
|
|
13380
13380
|
case void 0:
|
|
13381
13381
|
case !1:
|
|
13382
13382
|
case !0:
|
|
@@ -13391,10 +13391,10 @@ function Hb(e) {
|
|
|
13391
13391
|
switch (F) {
|
|
13392
13392
|
case void 0:
|
|
13393
13393
|
case null:
|
|
13394
|
-
ge =
|
|
13394
|
+
ge = se.length = 0;
|
|
13395
13395
|
break;
|
|
13396
13396
|
default:
|
|
13397
|
-
if (typeof F == "function")
|
|
13397
|
+
if (typeof F == "function") se[ge++] = F;
|
|
13398
13398
|
else if (typeof F == "object") for (var G = 0, W = F.length; G < W; ++G)
|
|
13399
13399
|
l(F[G]);
|
|
13400
13400
|
else Ie = !!F | 0;
|
|
@@ -13402,7 +13402,7 @@ function Hb(e) {
|
|
|
13402
13402
|
return l;
|
|
13403
13403
|
}
|
|
13404
13404
|
function c(F) {
|
|
13405
|
-
return F = F.prefix, F !== void 0 && (Fe = null, F ? typeof F != "function" ?
|
|
13405
|
+
return F = F.prefix, F !== void 0 && (Fe = null, F ? typeof F != "function" ? ue = 1 : (ue = 2, Fe = F) : ue = 0), c;
|
|
13406
13406
|
}
|
|
13407
13407
|
function u(F, G) {
|
|
13408
13408
|
var W = F;
|
|
@@ -13410,10 +13410,10 @@ function Hb(e) {
|
|
|
13410
13410
|
var ee = s(-1, G, W, W, H, M, 0, 0, 0, 0);
|
|
13411
13411
|
ee !== void 0 && typeof ee == "string" && (G = ee);
|
|
13412
13412
|
}
|
|
13413
|
-
var I = t(
|
|
13413
|
+
var I = t(ke, W, G, 0, 0);
|
|
13414
13414
|
return 0 < ge && (ee = s(-2, I, W, W, H, M, I.length, 0, 0, 0), ee !== void 0 && (I = ee)), ie = "", Y = 0, M = H = 1, I;
|
|
13415
13415
|
}
|
|
13416
|
-
var d = /^\0+/g, p = /[\0\r\f]/g, m = /: */g, g = /zoo|gra/, _ = /([,: ])(transform)/g, x = /,\r+?/g, y = /([\t\r\n ])*\f?&/g, v = /@(k\w+)\s*(\S*)\s*/, O = /::(place)/g,
|
|
13416
|
+
var d = /^\0+/g, p = /[\0\r\f]/g, m = /: */g, g = /zoo|gra/, _ = /([,: ])(transform)/g, x = /,\r+?/g, y = /([\t\r\n ])*\f?&/g, v = /@(k\w+)\s*(\S*)\s*/, O = /::(place)/g, R = /:(read-only)/g, b = /[svh]\w+-[tblr]{2}/, C = /\(\s*(.*)\s*\)/g, k = /([\s\S]*?);/g, S = /-self|flex-/g, $ = /[^]*?(:[rp][el]a[\w-]+)[^]*/, A = /stretch|:\s*\w+\-(?:conte|avail)/, j = /([^-])(image-set\()/, M = 1, H = 1, Y = 0, ue = 1, ke = [], se = [], ge = 0, Fe = null, Ie = 0, ie = "";
|
|
13417
13417
|
return u.use = l, u.set = c, e !== void 0 && c(e), u;
|
|
13418
13418
|
}
|
|
13419
13419
|
var Wb = {
|
|
@@ -13803,7 +13803,7 @@ function v_(e) {
|
|
|
13803
13803
|
} catch {
|
|
13804
13804
|
}
|
|
13805
13805
|
}
|
|
13806
|
-
return function(y, v, O,
|
|
13806
|
+
return function(y, v, O, R, b, C, k, S, $, A) {
|
|
13807
13807
|
switch (y) {
|
|
13808
13808
|
case 1:
|
|
13809
13809
|
if ($ === 0 && v.charCodeAt(0) === 64) return _(v + ";"), "";
|
|
@@ -13830,8 +13830,8 @@ function v_(e) {
|
|
|
13830
13830
|
};
|
|
13831
13831
|
function g(_, x, y, v) {
|
|
13832
13832
|
v === void 0 && (v = "&");
|
|
13833
|
-
var O = _.replace(b_, ""),
|
|
13834
|
-
return t = v, r = x, n = new RegExp("\\" + r + "\\b", "g"), i = new RegExp("(\\" + r + "\\b){2,}"), u(y || !x ? "" : x,
|
|
13833
|
+
var O = _.replace(b_, ""), R = x && y ? y + " " + x + " { " + O + " }" : O;
|
|
13834
|
+
return t = v, r = x, n = new RegExp("\\" + r + "\\b", "g"), i = new RegExp("(\\" + r + "\\b){2,}"), u(y || !x ? "" : x, R);
|
|
13835
13835
|
}
|
|
13836
13836
|
return u.use([].concat(c, [function(_, x, y) {
|
|
13837
13837
|
_ === 2 && y.length && y[0].lastIndexOf(r) > 0 && (y[0] = y[0].replace(n, m));
|
|
@@ -13936,41 +13936,41 @@ _d.Consumer;
|
|
|
13936
13936
|
var ko = {};
|
|
13937
13937
|
function vd(e, t, r) {
|
|
13938
13938
|
var n = Ls(e), i = !zi(e), a = t.attrs, o = a === void 0 ? fa : a, s = t.componentId, l = s === void 0 ? function(v, O) {
|
|
13939
|
-
var
|
|
13940
|
-
ko[
|
|
13941
|
-
var b =
|
|
13939
|
+
var R = typeof v != "string" ? "sc" : So(v);
|
|
13940
|
+
ko[R] = (ko[R] || 0) + 1;
|
|
13941
|
+
var b = R + "-" + I_("5.3.11" + R + ko[R]);
|
|
13942
13942
|
return O ? O + "-" + b : b;
|
|
13943
13943
|
}(t.displayName, t.parentComponentId) : s, c = t.displayName, u = c === void 0 ? function(v) {
|
|
13944
13944
|
return zi(v) ? "styled." + v : "Styled(" + Ul(v) + ")";
|
|
13945
13945
|
}(e) : c, d = t.displayName && t.componentId ? So(t.displayName) + "-" + t.componentId : t.componentId || l, p = n && e.attrs ? Array.prototype.concat(e.attrs, o).filter(Boolean) : o, m = t.shouldForwardProp;
|
|
13946
|
-
n && e.shouldForwardProp && (m = t.shouldForwardProp ? function(v, O,
|
|
13947
|
-
return e.shouldForwardProp(v, O,
|
|
13946
|
+
n && e.shouldForwardProp && (m = t.shouldForwardProp ? function(v, O, R) {
|
|
13947
|
+
return e.shouldForwardProp(v, O, R) && t.shouldForwardProp(v, O, R);
|
|
13948
13948
|
} : e.shouldForwardProp);
|
|
13949
13949
|
var g, _ = new y_(r, d, n ? e.componentStyle : void 0), x = _.isStatic && o.length === 0, y = function(v, O) {
|
|
13950
|
-
return function(
|
|
13951
|
-
var S =
|
|
13950
|
+
return function(R, b, C, k) {
|
|
13951
|
+
var S = R.attrs, $ = R.componentStyle, A = R.defaultProps, j = R.foldedComponentIds, M = R.shouldForwardProp, H = R.styledComponentId, Y = R.target, ue = function(ee, I, Q) {
|
|
13952
13952
|
ee === void 0 && (ee = hr);
|
|
13953
13953
|
var D = Zt({}, I, { theme: ee }), q = {};
|
|
13954
13954
|
return Q.forEach(function(Z) {
|
|
13955
13955
|
var X, L, V, te = Z;
|
|
13956
13956
|
for (X in Kn(te) && (te = te(D)), te) D[X] = q[X] = X === "className" ? (L = q[X], V = te[X], L && V ? L + " " + V : L || V) : te[X];
|
|
13957
13957
|
}), [D, q];
|
|
13958
|
-
}(P_(b, Jn(_d), A) || hr, b, S),
|
|
13958
|
+
}(P_(b, Jn(_d), A) || hr, b, S), ke = ue[0], se = ue[1], ge = function(ee, I, Q, D) {
|
|
13959
13959
|
var q = E_(), Z = S_(), X = I ? ee.generateAndInjectStyles(hr, q, Z) : ee.generateAndInjectStyles(Q, q, Z);
|
|
13960
13960
|
return X;
|
|
13961
|
-
}($,
|
|
13961
|
+
}($, k, ke), Fe = C, Ie = se.$as || b.$as || se.as || b.as || Y, ie = zi(Ie), F = se !== b ? Zt({}, b, {}, se) : b, G = {};
|
|
13962
13962
|
for (var W in F) W[0] !== "$" && W !== "as" && (W === "forwardedAs" ? G.as = F[W] : (M ? M(W, zl, Ie) : !ie || zl(W)) && (G[W] = F[W]));
|
|
13963
|
-
return b.style &&
|
|
13963
|
+
return b.style && se.style !== b.style && (G.style = Zt({}, b.style, {}, se.style)), G.className = Array.prototype.concat(j, H, ge !== H ? ge : null, b.className, se.className).filter(Boolean).join(" "), G.ref = Fe, mh(Ie, G);
|
|
13964
13964
|
}(g, v, O, x);
|
|
13965
13965
|
};
|
|
13966
13966
|
return y.displayName = u, (g = Ce.forwardRef(y)).attrs = p, g.componentStyle = _, g.displayName = u, g.shouldForwardProp = m, g.foldedComponentIds = n ? Array.prototype.concat(e.foldedComponentIds, e.styledComponentId) : fa, g.styledComponentId = d, g.target = n ? e.target : e, g.withComponent = function(v) {
|
|
13967
|
-
var O = t.componentId,
|
|
13967
|
+
var O = t.componentId, R = function(C, k) {
|
|
13968
13968
|
if (C == null) return {};
|
|
13969
13969
|
var S, $, A = {}, j = Object.keys(C);
|
|
13970
|
-
for ($ = 0; $ < j.length; $++) S = j[$],
|
|
13970
|
+
for ($ = 0; $ < j.length; $++) S = j[$], k.indexOf(S) >= 0 || (A[S] = C[S]);
|
|
13971
13971
|
return A;
|
|
13972
13972
|
}(t, ["componentId"]), b = O && O + "-" + (zi(v) ? v : So(Ul(v)));
|
|
13973
|
-
return vd(v, Zt({},
|
|
13973
|
+
return vd(v, Zt({}, R, { attrs: p, componentId: b }), r);
|
|
13974
13974
|
}, Object.defineProperty(g, "defaultProps", { get: function() {
|
|
13975
13975
|
return this._foldedDefaultProps;
|
|
13976
13976
|
}, set: function(v) {
|
|
@@ -14078,9 +14078,9 @@ const z_ = yr.div`
|
|
|
14078
14078
|
}, Sd = (e) => {
|
|
14079
14079
|
const t = e;
|
|
14080
14080
|
return {
|
|
14081
|
-
createProject: async (
|
|
14081
|
+
createProject: async (k, S) => {
|
|
14082
14082
|
const $ = {
|
|
14083
|
-
description:
|
|
14083
|
+
description: k,
|
|
14084
14084
|
component_namespace: S
|
|
14085
14085
|
};
|
|
14086
14086
|
return await fetch(`${t}/create_project`, {
|
|
@@ -14097,8 +14097,8 @@ const z_ = yr.div`
|
|
|
14097
14097
|
"Content-Type": "application/json"
|
|
14098
14098
|
}
|
|
14099
14099
|
}),
|
|
14100
|
-
getSubdomains: async (
|
|
14101
|
-
`${t}/subdomains?project_name=${
|
|
14100
|
+
getSubdomains: async (k) => await fetch(
|
|
14101
|
+
`${t}/subdomains?project_name=${k}`,
|
|
14102
14102
|
{
|
|
14103
14103
|
method: "GET",
|
|
14104
14104
|
headers: {
|
|
@@ -14106,9 +14106,9 @@ const z_ = yr.div`
|
|
|
14106
14106
|
}
|
|
14107
14107
|
}
|
|
14108
14108
|
),
|
|
14109
|
-
allocateSubdomain: async (
|
|
14109
|
+
allocateSubdomain: async (k, S) => {
|
|
14110
14110
|
const $ = {
|
|
14111
|
-
project_name:
|
|
14111
|
+
project_name: k,
|
|
14112
14112
|
subdomain: S
|
|
14113
14113
|
};
|
|
14114
14114
|
return await fetch(`${t}/allocate_subdomain`, {
|
|
@@ -14119,9 +14119,9 @@ const z_ = yr.div`
|
|
|
14119
14119
|
body: JSON.stringify($)
|
|
14120
14120
|
});
|
|
14121
14121
|
},
|
|
14122
|
-
updateSubdomain: async (
|
|
14122
|
+
updateSubdomain: async (k, S) => {
|
|
14123
14123
|
const $ = {
|
|
14124
|
-
project_name:
|
|
14124
|
+
project_name: k,
|
|
14125
14125
|
subdomain: S
|
|
14126
14126
|
};
|
|
14127
14127
|
return await fetch(`${t}/update_subdomain`, {
|
|
@@ -14132,9 +14132,9 @@ const z_ = yr.div`
|
|
|
14132
14132
|
body: JSON.stringify($)
|
|
14133
14133
|
});
|
|
14134
14134
|
},
|
|
14135
|
-
releaseSubdomain: async (
|
|
14135
|
+
releaseSubdomain: async (k, S) => {
|
|
14136
14136
|
const $ = {
|
|
14137
|
-
project_name:
|
|
14137
|
+
project_name: k,
|
|
14138
14138
|
subdomain: S
|
|
14139
14139
|
};
|
|
14140
14140
|
return await fetch(`${t}/release_subdomain`, {
|
|
@@ -14145,9 +14145,9 @@ const z_ = yr.div`
|
|
|
14145
14145
|
body: JSON.stringify($)
|
|
14146
14146
|
});
|
|
14147
14147
|
},
|
|
14148
|
-
publishProject: async (
|
|
14148
|
+
publishProject: async (k, S) => {
|
|
14149
14149
|
const $ = {
|
|
14150
|
-
project_name:
|
|
14150
|
+
project_name: k,
|
|
14151
14151
|
git_ref: S
|
|
14152
14152
|
};
|
|
14153
14153
|
return await fetch(`${t}/publish_project`, {
|
|
@@ -14158,9 +14158,9 @@ const z_ = yr.div`
|
|
|
14158
14158
|
body: JSON.stringify($)
|
|
14159
14159
|
});
|
|
14160
14160
|
},
|
|
14161
|
-
unpublishProject: async (
|
|
14161
|
+
unpublishProject: async (k) => {
|
|
14162
14162
|
const S = {
|
|
14163
|
-
project_name:
|
|
14163
|
+
project_name: k
|
|
14164
14164
|
};
|
|
14165
14165
|
return await fetch(`${t}/unpublish_project`, {
|
|
14166
14166
|
method: "POST",
|
|
@@ -14170,9 +14170,9 @@ const z_ = yr.div`
|
|
|
14170
14170
|
body: JSON.stringify(S)
|
|
14171
14171
|
});
|
|
14172
14172
|
},
|
|
14173
|
-
tagCommit: async (
|
|
14173
|
+
tagCommit: async (k, S, $) => {
|
|
14174
14174
|
const A = {
|
|
14175
|
-
project_name:
|
|
14175
|
+
project_name: k,
|
|
14176
14176
|
commit_hash: S,
|
|
14177
14177
|
tag_name: $
|
|
14178
14178
|
};
|
|
@@ -14193,9 +14193,9 @@ const z_ = yr.div`
|
|
|
14193
14193
|
}
|
|
14194
14194
|
}
|
|
14195
14195
|
),
|
|
14196
|
-
addProjectComponent: async (
|
|
14196
|
+
addProjectComponent: async (k, S, $, A) => {
|
|
14197
14197
|
const j = {
|
|
14198
|
-
project_name:
|
|
14198
|
+
project_name: k,
|
|
14199
14199
|
component_namespace: S,
|
|
14200
14200
|
component_name: $,
|
|
14201
14201
|
layout_metadata: A
|
|
@@ -14208,9 +14208,9 @@ const z_ = yr.div`
|
|
|
14208
14208
|
body: JSON.stringify(j)
|
|
14209
14209
|
});
|
|
14210
14210
|
},
|
|
14211
|
-
addProjectChart: async (
|
|
14211
|
+
addProjectChart: async (k, S, $) => {
|
|
14212
14212
|
const A = {
|
|
14213
|
-
project_name:
|
|
14213
|
+
project_name: k,
|
|
14214
14214
|
visual_id: S,
|
|
14215
14215
|
layout_metadata: $
|
|
14216
14216
|
};
|
|
@@ -14222,9 +14222,9 @@ const z_ = yr.div`
|
|
|
14222
14222
|
body: JSON.stringify(A)
|
|
14223
14223
|
});
|
|
14224
14224
|
},
|
|
14225
|
-
updateProjectComponentLayoutMetadata: async (
|
|
14225
|
+
updateProjectComponentLayoutMetadata: async (k, S, $) => {
|
|
14226
14226
|
const A = {
|
|
14227
|
-
project_name:
|
|
14227
|
+
project_name: k,
|
|
14228
14228
|
component_id: S,
|
|
14229
14229
|
layout_metadata: $
|
|
14230
14230
|
};
|
|
@@ -14239,9 +14239,9 @@ const z_ = yr.div`
|
|
|
14239
14239
|
}
|
|
14240
14240
|
);
|
|
14241
14241
|
},
|
|
14242
|
-
updateProjectComponentSourceCode: async (
|
|
14242
|
+
updateProjectComponentSourceCode: async (k, S, $) => {
|
|
14243
14243
|
const A = {
|
|
14244
|
-
project_name:
|
|
14244
|
+
project_name: k,
|
|
14245
14245
|
component_id: S,
|
|
14246
14246
|
source_code: $
|
|
14247
14247
|
};
|
|
@@ -14253,9 +14253,9 @@ const z_ = yr.div`
|
|
|
14253
14253
|
body: JSON.stringify(A)
|
|
14254
14254
|
});
|
|
14255
14255
|
},
|
|
14256
|
-
updateApplicationMetadata: async (
|
|
14256
|
+
updateApplicationMetadata: async (k, S, $, A) => {
|
|
14257
14257
|
const j = {
|
|
14258
|
-
project_name:
|
|
14258
|
+
project_name: k,
|
|
14259
14259
|
application_name: S,
|
|
14260
14260
|
application_description: $,
|
|
14261
14261
|
application_category: A
|
|
@@ -14268,9 +14268,9 @@ const z_ = yr.div`
|
|
|
14268
14268
|
body: JSON.stringify(j)
|
|
14269
14269
|
});
|
|
14270
14270
|
},
|
|
14271
|
-
updateApplicationSettings: async (
|
|
14271
|
+
updateApplicationSettings: async (k, S) => {
|
|
14272
14272
|
const $ = {
|
|
14273
|
-
project_name:
|
|
14273
|
+
project_name: k,
|
|
14274
14274
|
application_login_enabled: S
|
|
14275
14275
|
};
|
|
14276
14276
|
return await fetch(`${t}/update_application_settings`, {
|
|
@@ -14281,9 +14281,9 @@ const z_ = yr.div`
|
|
|
14281
14281
|
body: JSON.stringify($)
|
|
14282
14282
|
});
|
|
14283
14283
|
},
|
|
14284
|
-
deleteProjectFile: async (
|
|
14284
|
+
deleteProjectFile: async (k, S) => {
|
|
14285
14285
|
const $ = {
|
|
14286
|
-
project_name:
|
|
14286
|
+
project_name: k,
|
|
14287
14287
|
file_path: S
|
|
14288
14288
|
};
|
|
14289
14289
|
return await fetch(`${t}/delete_project_file`, {
|
|
@@ -14294,9 +14294,9 @@ const z_ = yr.div`
|
|
|
14294
14294
|
body: JSON.stringify($)
|
|
14295
14295
|
});
|
|
14296
14296
|
},
|
|
14297
|
-
resetProjectFile: async (
|
|
14297
|
+
resetProjectFile: async (k, S, $, A, j) => {
|
|
14298
14298
|
let M = {
|
|
14299
|
-
project_name:
|
|
14299
|
+
project_name: k,
|
|
14300
14300
|
file_path: S,
|
|
14301
14301
|
git_ref: $
|
|
14302
14302
|
};
|
|
@@ -14308,9 +14308,9 @@ const z_ = yr.div`
|
|
|
14308
14308
|
body: JSON.stringify(M)
|
|
14309
14309
|
});
|
|
14310
14310
|
},
|
|
14311
|
-
deleteProject: async (
|
|
14311
|
+
deleteProject: async (k) => {
|
|
14312
14312
|
const S = {
|
|
14313
|
-
projects: [
|
|
14313
|
+
projects: [k]
|
|
14314
14314
|
};
|
|
14315
14315
|
return await fetch(`${t}/delete_projects`, {
|
|
14316
14316
|
method: "POST",
|
|
@@ -14320,9 +14320,9 @@ const z_ = yr.div`
|
|
|
14320
14320
|
body: JSON.stringify(S)
|
|
14321
14321
|
});
|
|
14322
14322
|
},
|
|
14323
|
-
requestErrorCorrection: async (
|
|
14323
|
+
requestErrorCorrection: async (k, S, $) => {
|
|
14324
14324
|
const A = {
|
|
14325
|
-
project_name:
|
|
14325
|
+
project_name: k,
|
|
14326
14326
|
component_id: S,
|
|
14327
14327
|
error_message: $
|
|
14328
14328
|
};
|
|
@@ -14334,9 +14334,9 @@ const z_ = yr.div`
|
|
|
14334
14334
|
body: JSON.stringify(A)
|
|
14335
14335
|
});
|
|
14336
14336
|
},
|
|
14337
|
-
addImage: async (
|
|
14337
|
+
addImage: async (k) => await fetch(`${t}/add_image`, {
|
|
14338
14338
|
method: "POST",
|
|
14339
|
-
body:
|
|
14339
|
+
body: k
|
|
14340
14340
|
})
|
|
14341
14341
|
};
|
|
14342
14342
|
}, Xl = (e) => {
|
|
@@ -14387,28 +14387,28 @@ const z_ = yr.div`
|
|
|
14387
14387
|
"Content-Type": "application/json"
|
|
14388
14388
|
}
|
|
14389
14389
|
}),
|
|
14390
|
-
putSecret: async (
|
|
14390
|
+
putSecret: async (R, b) => await fetch(`${t}/config/secrets/${R}`, {
|
|
14391
14391
|
method: "PUT",
|
|
14392
14392
|
headers: {
|
|
14393
14393
|
"Content-Type": "application/json"
|
|
14394
14394
|
},
|
|
14395
14395
|
body: JSON.stringify(b)
|
|
14396
14396
|
}),
|
|
14397
|
-
getSecret: async (
|
|
14397
|
+
getSecret: async (R) => await fetch(`${t}/config/secrets/${R}`, {
|
|
14398
14398
|
method: "GET",
|
|
14399
14399
|
headers: {
|
|
14400
14400
|
"Content-Type": "application/json"
|
|
14401
14401
|
}
|
|
14402
14402
|
}),
|
|
14403
|
-
deleteSecret: async (
|
|
14403
|
+
deleteSecret: async (R) => await fetch(`${t}/config/secrets/${R}`, {
|
|
14404
14404
|
method: "DELETE",
|
|
14405
14405
|
headers: {
|
|
14406
14406
|
"Content-Type": "application/json"
|
|
14407
14407
|
}
|
|
14408
14408
|
}),
|
|
14409
14409
|
// Tier-Key Mappings
|
|
14410
|
-
getTierKeyMap: async (
|
|
14411
|
-
`${t}/config/miniapps/${
|
|
14410
|
+
getTierKeyMap: async (R) => await fetch(
|
|
14411
|
+
`${t}/config/miniapps/${R}/tier-key-map`,
|
|
14412
14412
|
{
|
|
14413
14413
|
method: "GET",
|
|
14414
14414
|
headers: {
|
|
@@ -14416,8 +14416,8 @@ const z_ = yr.div`
|
|
|
14416
14416
|
}
|
|
14417
14417
|
}
|
|
14418
14418
|
),
|
|
14419
|
-
putTierKeyMap: async (
|
|
14420
|
-
`${t}/config/miniapps/${
|
|
14419
|
+
putTierKeyMap: async (R, b, C) => await fetch(
|
|
14420
|
+
`${t}/config/miniapps/${R}/tier-key-map/${b}`,
|
|
14421
14421
|
{
|
|
14422
14422
|
method: "PUT",
|
|
14423
14423
|
headers: {
|
|
@@ -14426,8 +14426,8 @@ const z_ = yr.div`
|
|
|
14426
14426
|
body: JSON.stringify({ secret_reference: C })
|
|
14427
14427
|
}
|
|
14428
14428
|
),
|
|
14429
|
-
getTierKeyMapForTier: async (
|
|
14430
|
-
`${t}/config/miniapps/${
|
|
14429
|
+
getTierKeyMapForTier: async (R, b) => await fetch(
|
|
14430
|
+
`${t}/config/miniapps/${R}/tier-key-map/${b}`,
|
|
14431
14431
|
{
|
|
14432
14432
|
method: "GET",
|
|
14433
14433
|
headers: {
|
|
@@ -14435,8 +14435,8 @@ const z_ = yr.div`
|
|
|
14435
14435
|
}
|
|
14436
14436
|
}
|
|
14437
14437
|
),
|
|
14438
|
-
deleteTierKeyMap: async (
|
|
14439
|
-
`${t}/config/miniapps/${
|
|
14438
|
+
deleteTierKeyMap: async (R, b) => await fetch(
|
|
14439
|
+
`${t}/config/miniapps/${R}/tier-key-map/${b}`,
|
|
14440
14440
|
{
|
|
14441
14441
|
method: "DELETE",
|
|
14442
14442
|
headers: {
|
|
@@ -14445,8 +14445,8 @@ const z_ = yr.div`
|
|
|
14445
14445
|
}
|
|
14446
14446
|
),
|
|
14447
14447
|
// Tier Assignments
|
|
14448
|
-
getTierAssignments: async (
|
|
14449
|
-
`${t}/config/miniapps/${
|
|
14448
|
+
getTierAssignments: async (R) => await fetch(
|
|
14449
|
+
`${t}/config/miniapps/${R}/assignments`,
|
|
14450
14450
|
{
|
|
14451
14451
|
method: "GET",
|
|
14452
14452
|
headers: {
|
|
@@ -14454,8 +14454,8 @@ const z_ = yr.div`
|
|
|
14454
14454
|
}
|
|
14455
14455
|
}
|
|
14456
14456
|
),
|
|
14457
|
-
putTierAssignment: async (
|
|
14458
|
-
`${t}/config/miniapps/${
|
|
14457
|
+
putTierAssignment: async (R, b, C) => await fetch(
|
|
14458
|
+
`${t}/config/miniapps/${R}/assignments/${b}`,
|
|
14459
14459
|
{
|
|
14460
14460
|
method: "PUT",
|
|
14461
14461
|
headers: {
|
|
@@ -14464,8 +14464,8 @@ const z_ = yr.div`
|
|
|
14464
14464
|
body: JSON.stringify({ tier: C })
|
|
14465
14465
|
}
|
|
14466
14466
|
),
|
|
14467
|
-
getTierAssignment: async (
|
|
14468
|
-
`${t}/config/miniapps/${
|
|
14467
|
+
getTierAssignment: async (R, b) => await fetch(
|
|
14468
|
+
`${t}/config/miniapps/${R}/assignments/${b}`,
|
|
14469
14469
|
{
|
|
14470
14470
|
method: "GET",
|
|
14471
14471
|
headers: {
|
|
@@ -14473,8 +14473,8 @@ const z_ = yr.div`
|
|
|
14473
14473
|
}
|
|
14474
14474
|
}
|
|
14475
14475
|
),
|
|
14476
|
-
deleteTierAssignment: async (
|
|
14477
|
-
`${t}/config/miniapps/${
|
|
14476
|
+
deleteTierAssignment: async (R, b) => await fetch(
|
|
14477
|
+
`${t}/config/miniapps/${R}/assignments/${b}`,
|
|
14478
14478
|
{
|
|
14479
14479
|
method: "DELETE",
|
|
14480
14480
|
headers: {
|
|
@@ -14483,8 +14483,8 @@ const z_ = yr.div`
|
|
|
14483
14483
|
}
|
|
14484
14484
|
),
|
|
14485
14485
|
// Rate Limits
|
|
14486
|
-
getRateLimits: async (
|
|
14487
|
-
`${t}/config/miniapps/${
|
|
14486
|
+
getRateLimits: async (R) => await fetch(
|
|
14487
|
+
`${t}/config/miniapps/${R}/rate-limits`,
|
|
14488
14488
|
{
|
|
14489
14489
|
method: "GET",
|
|
14490
14490
|
headers: {
|
|
@@ -14492,18 +14492,18 @@ const z_ = yr.div`
|
|
|
14492
14492
|
}
|
|
14493
14493
|
}
|
|
14494
14494
|
),
|
|
14495
|
-
putRateLimit: async (
|
|
14496
|
-
`${t}/config/miniapps/${
|
|
14495
|
+
putRateLimit: async (R, b, C, k) => await fetch(
|
|
14496
|
+
`${t}/config/miniapps/${R}/rate-limits/${b}/${C}`,
|
|
14497
14497
|
{
|
|
14498
14498
|
method: "PUT",
|
|
14499
14499
|
headers: {
|
|
14500
14500
|
"Content-Type": "application/json"
|
|
14501
14501
|
},
|
|
14502
|
-
body: JSON.stringify(
|
|
14502
|
+
body: JSON.stringify(k)
|
|
14503
14503
|
}
|
|
14504
14504
|
),
|
|
14505
|
-
getRateLimit: async (
|
|
14506
|
-
`${t}/config/miniapps/${
|
|
14505
|
+
getRateLimit: async (R, b, C) => await fetch(
|
|
14506
|
+
`${t}/config/miniapps/${R}/rate-limits/${b}/${C}`,
|
|
14507
14507
|
{
|
|
14508
14508
|
method: "GET",
|
|
14509
14509
|
headers: {
|
|
@@ -14511,8 +14511,8 @@ const z_ = yr.div`
|
|
|
14511
14511
|
}
|
|
14512
14512
|
}
|
|
14513
14513
|
),
|
|
14514
|
-
deleteRateLimit: async (
|
|
14515
|
-
`${t}/config/miniapps/${
|
|
14514
|
+
deleteRateLimit: async (R, b, C) => await fetch(
|
|
14515
|
+
`${t}/config/miniapps/${R}/rate-limits/${b}/${C}`,
|
|
14516
14516
|
{
|
|
14517
14517
|
method: "DELETE",
|
|
14518
14518
|
headers: {
|
|
@@ -14521,19 +14521,19 @@ const z_ = yr.div`
|
|
|
14521
14521
|
}
|
|
14522
14522
|
),
|
|
14523
14523
|
// Proxy
|
|
14524
|
-
createProxyFetch: (
|
|
14525
|
-
const
|
|
14524
|
+
createProxyFetch: (R) => async (b, C) => {
|
|
14525
|
+
const k = b instanceof URL ? b : new URL(b.toString());
|
|
14526
14526
|
return await fetch(
|
|
14527
|
-
`${t}/proxy/${
|
|
14527
|
+
`${t}/proxy/${R.miniappName}/${k.host}${k.pathname}${k.search}${k.hash}`,
|
|
14528
14528
|
C
|
|
14529
14529
|
);
|
|
14530
14530
|
},
|
|
14531
|
-
createProxyGetView: (
|
|
14532
|
-
const b = new URL(
|
|
14533
|
-
return async (C,
|
|
14534
|
-
let $ = `SELECT * FROM ${C}.${
|
|
14531
|
+
createProxyGetView: (R) => {
|
|
14532
|
+
const b = new URL(R.gwProxyUrl);
|
|
14533
|
+
return async (C, k, S = {}) => {
|
|
14534
|
+
let $ = `SELECT * FROM ${C}.${k}`;
|
|
14535
14535
|
return S && Object.keys(S).length > 0 && ($ += `(${Object.entries(S).map(([A, j]) => `'${A}=${j}'`).join(",")})`), await fetch(
|
|
14536
|
-
`${t}/proxy/${
|
|
14536
|
+
`${t}/proxy/${R.miniappName}/${b}/v1/sql`,
|
|
14537
14537
|
{
|
|
14538
14538
|
method: "POST",
|
|
14539
14539
|
headers: {
|
|
@@ -14596,41 +14596,44 @@ const Y_ = (e) => {
|
|
|
14596
14596
|
PROXY_API_BASE_URL: null
|
|
14597
14597
|
}), [a, o] = Xe(
|
|
14598
14598
|
() => Xl(e.config.GW_BASE_URL)
|
|
14599
|
-
), [s, l] = Xe(!1), [c, u] = Xe(""), [d, p] = Xe(""), [m, g] = Xe(""), [_, x] = Xe(Kl()), y = q_(e.config.API_BASE_URL), v = Sd(e.config.API_BASE_URL), O = y || v, [
|
|
14599
|
+
), [s, l] = Xe(!1), [c, u] = Xe(""), [d, p] = Xe(""), [m, g] = Xe(""), [_, x] = Xe(Kl()), y = q_(e.config.API_BASE_URL), v = Sd(e.config.API_BASE_URL), O = y || v, [R, b] = Xe(
|
|
14600
14600
|
() => Zl(e.config.PROXY_API_BASE_URL)
|
|
14601
|
-
), [C,
|
|
14601
|
+
), [C, k] = Xe(null), [S, $] = Xe(null), [A, j] = Xe(), [M, H] = Xe(!1), Y = () => {
|
|
14602
14602
|
x(Kl());
|
|
14603
|
-
},
|
|
14604
|
-
if (!
|
|
14603
|
+
}, ue = (ke, se) => {
|
|
14604
|
+
if (!ke) return;
|
|
14605
14605
|
A && (A.close(), H(!1));
|
|
14606
|
-
const ge = localStorage.getItem("accessToken") || "", Fe = `${n.WS_BASE_URL}/ws/chat/${
|
|
14606
|
+
const ge = localStorage.getItem("accessToken") || "", Fe = `${n.WS_BASE_URL}/ws/chat/${ke}?token=${ge}`;
|
|
14607
14607
|
if (!Fe.startsWith("ws://") && !Fe.startsWith("wss://")) {
|
|
14608
|
-
|
|
14608
|
+
se.onerror({
|
|
14609
14609
|
customWebsocketError: "INVALID_URL"
|
|
14610
14610
|
});
|
|
14611
14611
|
return;
|
|
14612
14612
|
}
|
|
14613
14613
|
const Ie = new WebSocket(Fe);
|
|
14614
14614
|
Ie.onopen = () => {
|
|
14615
|
-
H(!0),
|
|
14615
|
+
H(!0), se.onopen();
|
|
14616
14616
|
}, Ie.onclose = (ie) => {
|
|
14617
|
-
H(!1),
|
|
14617
|
+
H(!1), se.onclose(ie);
|
|
14618
14618
|
}, Ie.onerror = (ie) => {
|
|
14619
|
-
|
|
14619
|
+
se.onerror(ie);
|
|
14620
14620
|
}, Ie.onmessage = (ie) => {
|
|
14621
|
-
|
|
14621
|
+
se.onmessage(ie);
|
|
14622
14622
|
}, j(Ie);
|
|
14623
14623
|
};
|
|
14624
|
-
return hu(() => (i(e.config), o(Xl(e.config.GW_BASE_URL)), b(
|
|
14625
|
-
|
|
14626
|
-
|
|
14627
|
-
|
|
14628
|
-
|
|
14629
|
-
|
|
14630
|
-
|
|
14631
|
-
|
|
14632
|
-
|
|
14633
|
-
|
|
14624
|
+
return hu(() => (i(e.config), o(Xl(e.config.GW_BASE_URL)), b((ke) => {
|
|
14625
|
+
const se = Zl(e.config.PROXY_API_BASE_URL);
|
|
14626
|
+
return e.metadata.projectName && (k(
|
|
14627
|
+
se.createProxyFetch({
|
|
14628
|
+
miniappName: e.metadata.projectName
|
|
14629
|
+
})
|
|
14630
|
+
), $(
|
|
14631
|
+
se.createProxyGetView({
|
|
14632
|
+
miniappName: e.metadata.projectName,
|
|
14633
|
+
gwProxyUrl: e.config.GW_PROXY_URL
|
|
14634
|
+
})
|
|
14635
|
+
)), se;
|
|
14636
|
+
}), () => {
|
|
14634
14637
|
A && A.close();
|
|
14635
14638
|
}), [e.config, e.metadata]), /* @__PURE__ */ ye.jsx(
|
|
14636
14639
|
Us.Provider,
|
|
@@ -14651,10 +14654,10 @@ const Y_ = (e) => {
|
|
|
14651
14654
|
setIsComponentSubselected: l,
|
|
14652
14655
|
APIHandler: O,
|
|
14653
14656
|
gwAPIHandler: a,
|
|
14654
|
-
proxyHandler:
|
|
14657
|
+
proxyHandler: R,
|
|
14655
14658
|
proxyFetch: C,
|
|
14656
14659
|
proxyGetView: S,
|
|
14657
|
-
startChatbot:
|
|
14660
|
+
startChatbot: ue,
|
|
14658
14661
|
chatbotWebsocket: A,
|
|
14659
14662
|
chatbotWebsocketConnected: M
|
|
14660
14663
|
},
|
|
@@ -14852,8 +14855,8 @@ var Rd = { exports: {} }, Ri = {}, es = { exports: {} };
|
|
|
14852
14855
|
n(t);
|
|
14853
14856
|
})(Hi, function(r) {
|
|
14854
14857
|
function n(D) {
|
|
14855
|
-
return function(Z, X, L, V, te, J,
|
|
14856
|
-
return D(Z, X,
|
|
14858
|
+
return function(Z, X, L, V, te, J, ce) {
|
|
14859
|
+
return D(Z, X, ce);
|
|
14857
14860
|
};
|
|
14858
14861
|
}
|
|
14859
14862
|
function i(D) {
|
|
@@ -14864,8 +14867,8 @@ var Rd = { exports: {} }, Ri = {}, es = { exports: {} };
|
|
|
14864
14867
|
if (te && J)
|
|
14865
14868
|
return te === X && J === Z;
|
|
14866
14869
|
V.set(Z, X), V.set(X, Z);
|
|
14867
|
-
var
|
|
14868
|
-
return V.delete(Z), V.delete(X),
|
|
14870
|
+
var ce = D(Z, X, L, V);
|
|
14871
|
+
return V.delete(Z), V.delete(X), ce;
|
|
14869
14872
|
};
|
|
14870
14873
|
}
|
|
14871
14874
|
function a(D, q) {
|
|
@@ -14887,23 +14890,23 @@ var Rd = { exports: {} }, Ri = {}, es = { exports: {} };
|
|
|
14887
14890
|
}
|
|
14888
14891
|
var c = "[object Arguments]", u = "[object Boolean]", d = "[object Date]", p = "[object RegExp]", m = "[object Map]", g = "[object Number]", _ = "[object Object]", x = "[object Set]", y = "[object String]", v = Object.prototype.toString;
|
|
14889
14892
|
function O(D) {
|
|
14890
|
-
var q = D.areArraysEqual, Z = D.areDatesEqual, X = D.areMapsEqual, L = D.areObjectsEqual, V = D.areRegExpsEqual, te = D.areSetsEqual, J = D.createIsNestedEqual,
|
|
14893
|
+
var q = D.areArraysEqual, Z = D.areDatesEqual, X = D.areMapsEqual, L = D.areObjectsEqual, V = D.areRegExpsEqual, te = D.areSetsEqual, J = D.createIsNestedEqual, ce = J(re);
|
|
14891
14894
|
function re(ne, Ee, _e) {
|
|
14892
14895
|
if (ne === Ee)
|
|
14893
14896
|
return !0;
|
|
14894
14897
|
if (!ne || !Ee || typeof ne != "object" || typeof Ee != "object")
|
|
14895
14898
|
return ne !== ne && Ee !== Ee;
|
|
14896
14899
|
if (o(ne) && o(Ee))
|
|
14897
|
-
return L(ne, Ee,
|
|
14900
|
+
return L(ne, Ee, ce, _e);
|
|
14898
14901
|
var yt = Array.isArray(ne), Ue = Array.isArray(Ee);
|
|
14899
14902
|
if (yt || Ue)
|
|
14900
|
-
return yt === Ue && q(ne, Ee,
|
|
14903
|
+
return yt === Ue && q(ne, Ee, ce, _e);
|
|
14901
14904
|
var $e = v.call(ne);
|
|
14902
|
-
return $e !== v.call(Ee) ? !1 : $e === d ? Z(ne, Ee,
|
|
14905
|
+
return $e !== v.call(Ee) ? !1 : $e === d ? Z(ne, Ee, ce, _e) : $e === p ? V(ne, Ee, ce, _e) : $e === m ? X(ne, Ee, ce, _e) : $e === x ? te(ne, Ee, ce, _e) : $e === _ || $e === c ? s(ne) || s(Ee) ? !1 : L(ne, Ee, ce, _e) : $e === u || $e === g || $e === y ? l(ne.valueOf(), Ee.valueOf()) : !1;
|
|
14903
14906
|
}
|
|
14904
14907
|
return re;
|
|
14905
14908
|
}
|
|
14906
|
-
function
|
|
14909
|
+
function R(D, q, Z, X) {
|
|
14907
14910
|
var L = D.length;
|
|
14908
14911
|
if (q.length !== L)
|
|
14909
14912
|
return !1;
|
|
@@ -14912,35 +14915,35 @@ var Rd = { exports: {} }, Ri = {}, es = { exports: {} };
|
|
|
14912
14915
|
return !1;
|
|
14913
14916
|
return !0;
|
|
14914
14917
|
}
|
|
14915
|
-
var b = i(
|
|
14918
|
+
var b = i(R);
|
|
14916
14919
|
function C(D, q) {
|
|
14917
14920
|
return l(D.valueOf(), q.valueOf());
|
|
14918
14921
|
}
|
|
14919
|
-
function
|
|
14922
|
+
function k(D, q, Z, X) {
|
|
14920
14923
|
var L = D.size === q.size;
|
|
14921
14924
|
if (!L)
|
|
14922
14925
|
return !1;
|
|
14923
14926
|
if (!D.size)
|
|
14924
14927
|
return !0;
|
|
14925
14928
|
var V = {}, te = 0;
|
|
14926
|
-
return D.forEach(function(J,
|
|
14929
|
+
return D.forEach(function(J, ce) {
|
|
14927
14930
|
if (L) {
|
|
14928
14931
|
var re = !1, ne = 0;
|
|
14929
14932
|
q.forEach(function(Ee, _e) {
|
|
14930
|
-
!re && !V[ne] && (re = Z(
|
|
14933
|
+
!re && !V[ne] && (re = Z(ce, _e, te, ne, D, q, X) && Z(J, Ee, ce, _e, D, q, X)) && (V[ne] = !0), ne++;
|
|
14931
14934
|
}), te++, L = re;
|
|
14932
14935
|
}
|
|
14933
14936
|
}), L;
|
|
14934
14937
|
}
|
|
14935
|
-
var S = i(
|
|
14938
|
+
var S = i(k), $ = "_owner", A = Object.prototype.hasOwnProperty;
|
|
14936
14939
|
function j(D, q, Z, X) {
|
|
14937
14940
|
var L = Object.keys(D), V = L.length;
|
|
14938
14941
|
if (Object.keys(q).length !== V)
|
|
14939
14942
|
return !1;
|
|
14940
14943
|
for (var te; V-- > 0; ) {
|
|
14941
14944
|
if (te = L[V], te === $) {
|
|
14942
|
-
var J = !!D.$$typeof,
|
|
14943
|
-
if ((J ||
|
|
14945
|
+
var J = !!D.$$typeof, ce = !!q.$$typeof;
|
|
14946
|
+
if ((J || ce) && J !== ce)
|
|
14944
14947
|
return !1;
|
|
14945
14948
|
}
|
|
14946
14949
|
if (!A.call(q, te) || !Z(D[te], q[te], te, te, D, q, X))
|
|
@@ -14961,44 +14964,44 @@ var Rd = { exports: {} }, Ri = {}, es = { exports: {} };
|
|
|
14961
14964
|
var V = {};
|
|
14962
14965
|
return D.forEach(function(te, J) {
|
|
14963
14966
|
if (L) {
|
|
14964
|
-
var
|
|
14967
|
+
var ce = !1, re = 0;
|
|
14965
14968
|
q.forEach(function(ne, Ee) {
|
|
14966
|
-
!
|
|
14967
|
-
}), L =
|
|
14969
|
+
!ce && !V[re] && (ce = Z(te, ne, J, Ee, D, q, X)) && (V[re] = !0), re++;
|
|
14970
|
+
}), L = ce;
|
|
14968
14971
|
}
|
|
14969
14972
|
}), L;
|
|
14970
14973
|
}
|
|
14971
|
-
var
|
|
14972
|
-
areArraysEqual:
|
|
14974
|
+
var ue = i(Y), ke = Object.freeze({
|
|
14975
|
+
areArraysEqual: R,
|
|
14973
14976
|
areDatesEqual: C,
|
|
14974
|
-
areMapsEqual:
|
|
14977
|
+
areMapsEqual: k,
|
|
14975
14978
|
areObjectsEqual: j,
|
|
14976
14979
|
areRegExpsEqual: H,
|
|
14977
14980
|
areSetsEqual: Y,
|
|
14978
14981
|
createIsNestedEqual: n
|
|
14979
|
-
}),
|
|
14982
|
+
}), se = Object.freeze({
|
|
14980
14983
|
areArraysEqual: b,
|
|
14981
14984
|
areDatesEqual: C,
|
|
14982
14985
|
areMapsEqual: S,
|
|
14983
14986
|
areObjectsEqual: M,
|
|
14984
14987
|
areRegExpsEqual: H,
|
|
14985
|
-
areSetsEqual:
|
|
14988
|
+
areSetsEqual: ue,
|
|
14986
14989
|
createIsNestedEqual: n
|
|
14987
|
-
}), ge = O(
|
|
14990
|
+
}), ge = O(ke);
|
|
14988
14991
|
function Fe(D, q) {
|
|
14989
14992
|
return ge(D, q, void 0);
|
|
14990
14993
|
}
|
|
14991
|
-
var Ie = O(a(
|
|
14994
|
+
var Ie = O(a(ke, { createIsNestedEqual: function() {
|
|
14992
14995
|
return l;
|
|
14993
14996
|
} }));
|
|
14994
14997
|
function ie(D, q) {
|
|
14995
14998
|
return Ie(D, q, void 0);
|
|
14996
14999
|
}
|
|
14997
|
-
var F = O(
|
|
15000
|
+
var F = O(se);
|
|
14998
15001
|
function G(D, q) {
|
|
14999
15002
|
return F(D, q, /* @__PURE__ */ new WeakMap());
|
|
15000
15003
|
}
|
|
15001
|
-
var W = O(a(
|
|
15004
|
+
var W = O(a(se, {
|
|
15002
15005
|
createIsNestedEqual: function() {
|
|
15003
15006
|
return l;
|
|
15004
15007
|
}
|
|
@@ -15007,10 +15010,10 @@ var Rd = { exports: {} }, Ri = {}, es = { exports: {} };
|
|
|
15007
15010
|
return W(D, q, /* @__PURE__ */ new WeakMap());
|
|
15008
15011
|
}
|
|
15009
15012
|
function I(D) {
|
|
15010
|
-
return O(a(
|
|
15013
|
+
return O(a(ke, D(ke)));
|
|
15011
15014
|
}
|
|
15012
15015
|
function Q(D) {
|
|
15013
|
-
var q = O(a(
|
|
15016
|
+
var q = O(a(se, D(se)));
|
|
15014
15017
|
return function(Z, X, L) {
|
|
15015
15018
|
return L === void 0 && (L = /* @__PURE__ */ new WeakMap()), q(Z, X, L);
|
|
15016
15019
|
};
|
|
@@ -16163,9 +16166,9 @@ tt(Ha, "defaultProps", {
|
|
|
16163
16166
|
}
|
|
16164
16167
|
function d(v) {
|
|
16165
16168
|
if (typeof WeakMap != "function") return null;
|
|
16166
|
-
var O = /* @__PURE__ */ new WeakMap(),
|
|
16169
|
+
var O = /* @__PURE__ */ new WeakMap(), R = /* @__PURE__ */ new WeakMap();
|
|
16167
16170
|
return (d = function(b) {
|
|
16168
|
-
return b ?
|
|
16171
|
+
return b ? R : O;
|
|
16169
16172
|
})(v);
|
|
16170
16173
|
}
|
|
16171
16174
|
function p(v, O) {
|
|
@@ -16173,29 +16176,29 @@ tt(Ha, "defaultProps", {
|
|
|
16173
16176
|
return v;
|
|
16174
16177
|
if (v === null || typeof v != "object" && typeof v != "function")
|
|
16175
16178
|
return { default: v };
|
|
16176
|
-
var
|
|
16177
|
-
if (
|
|
16178
|
-
return
|
|
16179
|
+
var R = d(O);
|
|
16180
|
+
if (R && R.has(v))
|
|
16181
|
+
return R.get(v);
|
|
16179
16182
|
var b = {}, C = Object.defineProperty && Object.getOwnPropertyDescriptor;
|
|
16180
|
-
for (var
|
|
16181
|
-
if (
|
|
16182
|
-
var S = C ? Object.getOwnPropertyDescriptor(v,
|
|
16183
|
-
S && (S.get || S.set) ? Object.defineProperty(b,
|
|
16183
|
+
for (var k in v)
|
|
16184
|
+
if (k !== "default" && Object.prototype.hasOwnProperty.call(v, k)) {
|
|
16185
|
+
var S = C ? Object.getOwnPropertyDescriptor(v, k) : null;
|
|
16186
|
+
S && (S.get || S.set) ? Object.defineProperty(b, k, S) : b[k] = v[k];
|
|
16184
16187
|
}
|
|
16185
|
-
return b.default = v,
|
|
16188
|
+
return b.default = v, R && R.set(v, b), b;
|
|
16186
16189
|
}
|
|
16187
16190
|
function m() {
|
|
16188
16191
|
return m = Object.assign ? Object.assign.bind() : function(v) {
|
|
16189
16192
|
for (var O = 1; O < arguments.length; O++) {
|
|
16190
|
-
var
|
|
16191
|
-
for (var b in
|
|
16192
|
-
Object.prototype.hasOwnProperty.call(
|
|
16193
|
+
var R = arguments[O];
|
|
16194
|
+
for (var b in R)
|
|
16195
|
+
Object.prototype.hasOwnProperty.call(R, b) && (v[b] = R[b]);
|
|
16193
16196
|
}
|
|
16194
16197
|
return v;
|
|
16195
16198
|
}, m.apply(this, arguments);
|
|
16196
16199
|
}
|
|
16197
|
-
function g(v, O,
|
|
16198
|
-
return O = _(O), O in v ? Object.defineProperty(v, O, { value:
|
|
16200
|
+
function g(v, O, R) {
|
|
16201
|
+
return O = _(O), O in v ? Object.defineProperty(v, O, { value: R, enumerable: !0, configurable: !0, writable: !0 }) : v[O] = R, v;
|
|
16199
16202
|
}
|
|
16200
16203
|
function _(v) {
|
|
16201
16204
|
var O = x(v, "string");
|
|
@@ -16203,9 +16206,9 @@ tt(Ha, "defaultProps", {
|
|
|
16203
16206
|
}
|
|
16204
16207
|
function x(v, O) {
|
|
16205
16208
|
if (typeof v != "object" || v === null) return v;
|
|
16206
|
-
var
|
|
16207
|
-
if (
|
|
16208
|
-
var b =
|
|
16209
|
+
var R = v[Symbol.toPrimitive];
|
|
16210
|
+
if (R !== void 0) {
|
|
16211
|
+
var b = R.call(v, O || "default");
|
|
16209
16212
|
if (typeof b != "object") return b;
|
|
16210
16213
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
16211
16214
|
}
|
|
@@ -16214,12 +16217,12 @@ tt(Ha, "defaultProps", {
|
|
|
16214
16217
|
class y extends t.Component {
|
|
16215
16218
|
// React 16.3+
|
|
16216
16219
|
// Arity (props, state)
|
|
16217
|
-
static getDerivedStateFromProps(O,
|
|
16220
|
+
static getDerivedStateFromProps(O, R) {
|
|
16218
16221
|
let {
|
|
16219
16222
|
position: b
|
|
16220
16223
|
} = O, {
|
|
16221
16224
|
prevPropsPosition: C
|
|
16222
|
-
} =
|
|
16225
|
+
} = R;
|
|
16223
16226
|
return b && (!C || b.x !== C.x || b.y !== C.y) ? ((0, c.default)("Draggable: getDerivedStateFromProps %j", {
|
|
16224
16227
|
position: b,
|
|
16225
16228
|
prevPropsPosition: C
|
|
@@ -16232,16 +16235,16 @@ tt(Ha, "defaultProps", {
|
|
|
16232
16235
|
}) : null;
|
|
16233
16236
|
}
|
|
16234
16237
|
constructor(O) {
|
|
16235
|
-
super(O), g(this, "onDragStart", (
|
|
16236
|
-
if ((0, c.default)("Draggable: onDragStart: %j", b), this.props.onStart(
|
|
16238
|
+
super(O), g(this, "onDragStart", (R, b) => {
|
|
16239
|
+
if ((0, c.default)("Draggable: onDragStart: %j", b), this.props.onStart(R, (0, o.createDraggableData)(this, b)) === !1) return !1;
|
|
16237
16240
|
this.setState({
|
|
16238
16241
|
dragging: !0,
|
|
16239
16242
|
dragged: !0
|
|
16240
16243
|
});
|
|
16241
|
-
}), g(this, "onDrag", (
|
|
16244
|
+
}), g(this, "onDrag", (R, b) => {
|
|
16242
16245
|
if (!this.state.dragging) return !1;
|
|
16243
16246
|
(0, c.default)("Draggable: onDrag: %j", b);
|
|
16244
|
-
const C = (0, o.createDraggableData)(this, b),
|
|
16247
|
+
const C = (0, o.createDraggableData)(this, b), k = {
|
|
16245
16248
|
x: C.x,
|
|
16246
16249
|
y: C.y,
|
|
16247
16250
|
slackX: 0,
|
|
@@ -16251,17 +16254,17 @@ tt(Ha, "defaultProps", {
|
|
|
16251
16254
|
const {
|
|
16252
16255
|
x: $,
|
|
16253
16256
|
y: A
|
|
16254
|
-
} =
|
|
16255
|
-
|
|
16256
|
-
const [j, M] = (0, o.getBoundPosition)(this,
|
|
16257
|
-
|
|
16257
|
+
} = k;
|
|
16258
|
+
k.x += this.state.slackX, k.y += this.state.slackY;
|
|
16259
|
+
const [j, M] = (0, o.getBoundPosition)(this, k.x, k.y);
|
|
16260
|
+
k.x = j, k.y = M, k.slackX = this.state.slackX + ($ - k.x), k.slackY = this.state.slackY + (A - k.y), C.x = k.x, C.y = k.y, C.deltaX = k.x - this.state.x, C.deltaY = k.y - this.state.y;
|
|
16258
16261
|
}
|
|
16259
|
-
if (this.props.onDrag(
|
|
16260
|
-
this.setState(
|
|
16261
|
-
}), g(this, "onDragStop", (
|
|
16262
|
-
if (!this.state.dragging || this.props.onStop(
|
|
16262
|
+
if (this.props.onDrag(R, C) === !1) return !1;
|
|
16263
|
+
this.setState(k);
|
|
16264
|
+
}), g(this, "onDragStop", (R, b) => {
|
|
16265
|
+
if (!this.state.dragging || this.props.onStop(R, (0, o.createDraggableData)(this, b)) === !1) return !1;
|
|
16263
16266
|
(0, c.default)("Draggable: onDragStop: %j", b);
|
|
16264
|
-
const
|
|
16267
|
+
const k = {
|
|
16265
16268
|
dragging: !1,
|
|
16266
16269
|
slackX: 0,
|
|
16267
16270
|
slackY: 0
|
|
@@ -16271,9 +16274,9 @@ tt(Ha, "defaultProps", {
|
|
|
16271
16274
|
x: $,
|
|
16272
16275
|
y: A
|
|
16273
16276
|
} = this.props.position;
|
|
16274
|
-
|
|
16277
|
+
k.x = $, k.y = A;
|
|
16275
16278
|
}
|
|
16276
|
-
this.setState(
|
|
16279
|
+
this.setState(k);
|
|
16277
16280
|
}), this.state = {
|
|
16278
16281
|
// Whether or not we are currently dragging.
|
|
16279
16282
|
dragging: !1,
|
|
@@ -16305,16 +16308,16 @@ tt(Ha, "defaultProps", {
|
|
|
16305
16308
|
// React Strict Mode compatibility: if `nodeRef` is passed, we will use it instead of trying to find
|
|
16306
16309
|
// the underlying DOM node ourselves. See the README for more information.
|
|
16307
16310
|
findDOMNode() {
|
|
16308
|
-
var O,
|
|
16309
|
-
return (O = (
|
|
16311
|
+
var O, R;
|
|
16312
|
+
return (O = (R = this.props) === null || R === void 0 || (R = R.nodeRef) === null || R === void 0 ? void 0 : R.current) !== null && O !== void 0 ? O : n.default.findDOMNode(this);
|
|
16310
16313
|
}
|
|
16311
16314
|
render() {
|
|
16312
16315
|
const {
|
|
16313
16316
|
axis: O,
|
|
16314
|
-
bounds:
|
|
16317
|
+
bounds: R,
|
|
16315
16318
|
children: b,
|
|
16316
16319
|
defaultPosition: C,
|
|
16317
|
-
defaultClassName:
|
|
16320
|
+
defaultClassName: k,
|
|
16318
16321
|
defaultClassNameDragging: S,
|
|
16319
16322
|
defaultClassNameDragged: $,
|
|
16320
16323
|
position: A,
|
|
@@ -16322,15 +16325,15 @@ tt(Ha, "defaultProps", {
|
|
|
16322
16325
|
scale: M,
|
|
16323
16326
|
...H
|
|
16324
16327
|
} = this.props;
|
|
16325
|
-
let Y = {},
|
|
16326
|
-
const
|
|
16328
|
+
let Y = {}, ue = null;
|
|
16329
|
+
const se = !!!A || this.state.dragging, ge = A || C, Fe = {
|
|
16327
16330
|
// Set left if horizontal drag is enabled
|
|
16328
|
-
x: (0, o.canDragX)(this) &&
|
|
16331
|
+
x: (0, o.canDragX)(this) && se ? this.state.x : ge.x,
|
|
16329
16332
|
// Set top if vertical drag is enabled
|
|
16330
|
-
y: (0, o.canDragY)(this) &&
|
|
16333
|
+
y: (0, o.canDragY)(this) && se ? this.state.y : ge.y
|
|
16331
16334
|
};
|
|
16332
|
-
this.state.isElementSVG ?
|
|
16333
|
-
const Ie = (0, i.default)(b.props.className || "",
|
|
16335
|
+
this.state.isElementSVG ? ue = (0, a.createSVGTransform)(Fe, j) : Y = (0, a.createCSSTransform)(Fe, j);
|
|
16336
|
+
const Ie = (0, i.default)(b.props.className || "", k, {
|
|
16334
16337
|
[S]: this.state.dragging,
|
|
16335
16338
|
[$]: this.state.dragged
|
|
16336
16339
|
});
|
|
@@ -16344,7 +16347,7 @@ tt(Ha, "defaultProps", {
|
|
|
16344
16347
|
...b.props.style,
|
|
16345
16348
|
...Y
|
|
16346
16349
|
},
|
|
16347
|
-
transform:
|
|
16350
|
+
transform: ue
|
|
16348
16351
|
}));
|
|
16349
16352
|
}
|
|
16350
16353
|
}
|
|
@@ -16527,7 +16530,7 @@ function d1(e, t) {
|
|
|
16527
16530
|
var Ci = {};
|
|
16528
16531
|
Ci.__esModule = !0;
|
|
16529
16532
|
Ci.resizableProps = void 0;
|
|
16530
|
-
var
|
|
16533
|
+
var fe = h1(_r);
|
|
16531
16534
|
function h1(e) {
|
|
16532
16535
|
return e && e.__esModule ? e : { default: e };
|
|
16533
16536
|
}
|
|
@@ -16539,30 +16542,30 @@ var p1 = {
|
|
|
16539
16542
|
* 'y' - only allows the height to be changed
|
|
16540
16543
|
* 'none' - disables resizing altogether
|
|
16541
16544
|
* */
|
|
16542
|
-
axis:
|
|
16543
|
-
className:
|
|
16545
|
+
axis: fe.default.oneOf(["both", "x", "y", "none"]),
|
|
16546
|
+
className: fe.default.string,
|
|
16544
16547
|
/*
|
|
16545
16548
|
* Require that one and only one child be present.
|
|
16546
16549
|
* */
|
|
16547
|
-
children:
|
|
16550
|
+
children: fe.default.element.isRequired,
|
|
16548
16551
|
/*
|
|
16549
16552
|
* These will be passed wholesale to react-draggable's DraggableCore
|
|
16550
16553
|
* */
|
|
16551
|
-
draggableOpts:
|
|
16552
|
-
allowAnyClick:
|
|
16553
|
-
cancel:
|
|
16554
|
-
children:
|
|
16555
|
-
disabled:
|
|
16556
|
-
enableUserSelectHack:
|
|
16557
|
-
offsetParent:
|
|
16558
|
-
grid:
|
|
16559
|
-
handle:
|
|
16560
|
-
nodeRef:
|
|
16561
|
-
onStart:
|
|
16562
|
-
onDrag:
|
|
16563
|
-
onStop:
|
|
16564
|
-
onMouseDown:
|
|
16565
|
-
scale:
|
|
16554
|
+
draggableOpts: fe.default.shape({
|
|
16555
|
+
allowAnyClick: fe.default.bool,
|
|
16556
|
+
cancel: fe.default.string,
|
|
16557
|
+
children: fe.default.node,
|
|
16558
|
+
disabled: fe.default.bool,
|
|
16559
|
+
enableUserSelectHack: fe.default.bool,
|
|
16560
|
+
offsetParent: fe.default.node,
|
|
16561
|
+
grid: fe.default.arrayOf(fe.default.number),
|
|
16562
|
+
handle: fe.default.string,
|
|
16563
|
+
nodeRef: fe.default.object,
|
|
16564
|
+
onStart: fe.default.func,
|
|
16565
|
+
onDrag: fe.default.func,
|
|
16566
|
+
onStop: fe.default.func,
|
|
16567
|
+
onMouseDown: fe.default.func,
|
|
16568
|
+
scale: fe.default.number
|
|
16566
16569
|
}),
|
|
16567
16570
|
/*
|
|
16568
16571
|
* Initial height
|
|
@@ -16573,39 +16576,39 @@ var p1 = {
|
|
|
16573
16576
|
var i = r[0];
|
|
16574
16577
|
if (i.axis === "both" || i.axis === "y") {
|
|
16575
16578
|
var a;
|
|
16576
|
-
return (a =
|
|
16579
|
+
return (a = fe.default.number).isRequired.apply(a, r);
|
|
16577
16580
|
}
|
|
16578
|
-
return
|
|
16581
|
+
return fe.default.number.apply(fe.default, r);
|
|
16579
16582
|
},
|
|
16580
16583
|
/*
|
|
16581
16584
|
* Customize cursor resize handle
|
|
16582
16585
|
* */
|
|
16583
|
-
handle:
|
|
16586
|
+
handle: fe.default.oneOfType([fe.default.node, fe.default.func]),
|
|
16584
16587
|
/*
|
|
16585
16588
|
* If you change this, be sure to update your css
|
|
16586
16589
|
* */
|
|
16587
|
-
handleSize:
|
|
16588
|
-
lockAspectRatio:
|
|
16590
|
+
handleSize: fe.default.arrayOf(fe.default.number),
|
|
16591
|
+
lockAspectRatio: fe.default.bool,
|
|
16589
16592
|
/*
|
|
16590
16593
|
* Max X & Y measure
|
|
16591
16594
|
* */
|
|
16592
|
-
maxConstraints:
|
|
16595
|
+
maxConstraints: fe.default.arrayOf(fe.default.number),
|
|
16593
16596
|
/*
|
|
16594
16597
|
* Min X & Y measure
|
|
16595
16598
|
* */
|
|
16596
|
-
minConstraints:
|
|
16599
|
+
minConstraints: fe.default.arrayOf(fe.default.number),
|
|
16597
16600
|
/*
|
|
16598
16601
|
* Called on stop resize event
|
|
16599
16602
|
* */
|
|
16600
|
-
onResizeStop:
|
|
16603
|
+
onResizeStop: fe.default.func,
|
|
16601
16604
|
/*
|
|
16602
16605
|
* Called on start resize event
|
|
16603
16606
|
* */
|
|
16604
|
-
onResizeStart:
|
|
16607
|
+
onResizeStart: fe.default.func,
|
|
16605
16608
|
/*
|
|
16606
16609
|
* Called on resize event
|
|
16607
16610
|
* */
|
|
16608
|
-
onResize:
|
|
16611
|
+
onResize: fe.default.func,
|
|
16609
16612
|
/*
|
|
16610
16613
|
* Defines which resize handles should be rendered (default: 'se')
|
|
16611
16614
|
* 's' - South handle (bottom-center)
|
|
@@ -16617,11 +16620,11 @@ var p1 = {
|
|
|
16617
16620
|
* 'se' - Southeast handle (bottom-right)
|
|
16618
16621
|
* 'ne' - Northeast handle (top-center)
|
|
16619
16622
|
* */
|
|
16620
|
-
resizeHandles:
|
|
16623
|
+
resizeHandles: fe.default.arrayOf(fe.default.oneOf(["s", "w", "e", "n", "sw", "nw", "se", "ne"])),
|
|
16621
16624
|
/*
|
|
16622
16625
|
* If `transform: scale(n)` is set on the parent, this should be set to `n`.
|
|
16623
16626
|
* */
|
|
16624
|
-
transformScale:
|
|
16627
|
+
transformScale: fe.default.number,
|
|
16625
16628
|
/*
|
|
16626
16629
|
* Initial width
|
|
16627
16630
|
*/
|
|
@@ -16631,9 +16634,9 @@ var p1 = {
|
|
|
16631
16634
|
var i = r[0];
|
|
16632
16635
|
if (i.axis === "both" || i.axis === "x") {
|
|
16633
16636
|
var a;
|
|
16634
|
-
return (a =
|
|
16637
|
+
return (a = fe.default.number).isRequired.apply(a, r);
|
|
16635
16638
|
}
|
|
16636
|
-
return
|
|
16639
|
+
return fe.default.number.apply(fe.default, r);
|
|
16637
16640
|
}
|
|
16638
16641
|
};
|
|
16639
16642
|
Ci.resizableProps = p1;
|
|
@@ -16766,14 +16769,14 @@ var ic = /* @__PURE__ */ function(e) {
|
|
|
16766
16769
|
}
|
|
16767
16770
|
}
|
|
16768
16771
|
o.lastHandleRect = x, _ === "w" && (u = -u), g === "n" && (d = -d);
|
|
16769
|
-
var O = o.props.width + (p ? u / o.props.transformScale : 0),
|
|
16770
|
-
O = b[0],
|
|
16771
|
-
var C = O !== o.props.width ||
|
|
16772
|
-
|
|
16772
|
+
var O = o.props.width + (p ? u / o.props.transformScale : 0), R = o.props.height + (m ? d / o.props.transformScale : 0), b = o.runConstraints(O, R);
|
|
16773
|
+
O = b[0], R = b[1];
|
|
16774
|
+
var C = O !== o.props.width || R !== o.props.height, k = typeof o.props[i] == "function" ? o.props[i] : null, S = i === "onResize" && !C;
|
|
16775
|
+
k && !S && (s.persist == null || s.persist(), k(s, {
|
|
16773
16776
|
node: c,
|
|
16774
16777
|
size: {
|
|
16775
16778
|
width: O,
|
|
16776
|
-
height:
|
|
16779
|
+
height: R
|
|
16777
16780
|
},
|
|
16778
16781
|
handle: a
|
|
16779
16782
|
})), i === "onResizeStop" && o.resetData();
|
|
@@ -17186,11 +17189,11 @@ class oc extends qr.default.Component {
|
|
|
17186
17189
|
if (v) {
|
|
17187
17190
|
const {
|
|
17188
17191
|
margin: O,
|
|
17189
|
-
rowHeight:
|
|
17192
|
+
rowHeight: R,
|
|
17190
17193
|
containerPadding: b
|
|
17191
|
-
} = this.props, C = v.clientHeight - (0, qe.calcGridItemWHPx)(p,
|
|
17194
|
+
} = this.props, C = v.clientHeight - (0, qe.calcGridItemWHPx)(p, R, O[1]);
|
|
17192
17195
|
s = (0, qe.clamp)(s - b[1], 0, C);
|
|
17193
|
-
const
|
|
17196
|
+
const k = (0, qe.calcGridColWidth)(g), S = m - (0, qe.calcGridItemWHPx)(d, k, O[0]);
|
|
17194
17197
|
l = (0, qe.clamp)(l - b[0], 0, S);
|
|
17195
17198
|
}
|
|
17196
17199
|
}
|
|
@@ -17721,7 +17724,7 @@ class qa extends xr.Component {
|
|
|
17721
17724
|
});
|
|
17722
17725
|
if (!O) return;
|
|
17723
17726
|
_ = v, g && (_ = (0, oe.moveElement)(v, O, x, y, !0, this.props.preventCollision, (0, oe.compactType)(this.props), d, m));
|
|
17724
|
-
const
|
|
17727
|
+
const R = {
|
|
17725
17728
|
w: O.w,
|
|
17726
17729
|
h: O.h,
|
|
17727
17730
|
x: O.x,
|
|
@@ -17729,9 +17732,9 @@ class qa extends xr.Component {
|
|
|
17729
17732
|
static: !0,
|
|
17730
17733
|
i: t
|
|
17731
17734
|
};
|
|
17732
|
-
this.props.onResize(_, c, O,
|
|
17735
|
+
this.props.onResize(_, c, O, R, a, o), this.setState({
|
|
17733
17736
|
layout: m ? _ : (0, oe.compact)(_, (0, oe.compactType)(this.props), d),
|
|
17734
|
-
activeDrag:
|
|
17737
|
+
activeDrag: R
|
|
17735
17738
|
});
|
|
17736
17739
|
}), Je(this, "onResizeStop", (t, r, n, i) => {
|
|
17737
17740
|
let {
|
|
@@ -17788,9 +17791,9 @@ class qa extends xr.Component {
|
|
|
17788
17791
|
if (this.state.droppingPosition) {
|
|
17789
17792
|
const {
|
|
17790
17793
|
left: O,
|
|
17791
|
-
top:
|
|
17794
|
+
top: R
|
|
17792
17795
|
} = this.state.droppingPosition;
|
|
17793
|
-
(O != _ ||
|
|
17796
|
+
(O != _ || R != x) && this.setState({
|
|
17794
17797
|
droppingPosition: y
|
|
17795
17798
|
});
|
|
17796
17799
|
}
|
|
@@ -17802,7 +17805,7 @@ class qa extends xr.Component {
|
|
|
17802
17805
|
rowHeight: o,
|
|
17803
17806
|
containerWidth: l,
|
|
17804
17807
|
containerPadding: c || i
|
|
17805
|
-
},
|
|
17808
|
+
}, R = (0, G1.calcXY)(O, x, _, p.w, p.h);
|
|
17806
17809
|
this.setState({
|
|
17807
17810
|
droppingDOMNode: /* @__PURE__ */ xr.createElement("div", {
|
|
17808
17811
|
key: p.i
|
|
@@ -17810,8 +17813,8 @@ class qa extends xr.Component {
|
|
|
17810
17813
|
droppingPosition: y,
|
|
17811
17814
|
layout: [...m, {
|
|
17812
17815
|
...p,
|
|
17813
|
-
x:
|
|
17814
|
-
y:
|
|
17816
|
+
x: R.x,
|
|
17817
|
+
y: R.y,
|
|
17815
17818
|
static: !1,
|
|
17816
17819
|
isDraggable: !0
|
|
17817
17820
|
}]
|
|
@@ -17952,8 +17955,8 @@ class qa extends xr.Component {
|
|
|
17952
17955
|
resizeHandle: v
|
|
17953
17956
|
} = this.props, {
|
|
17954
17957
|
mounted: O,
|
|
17955
|
-
droppingPosition:
|
|
17956
|
-
} = this.state, b = typeof n.isDraggable == "boolean" ? n.isDraggable : !n.static && u, C = typeof n.isResizable == "boolean" ? n.isResizable : !n.static && d,
|
|
17958
|
+
droppingPosition: R
|
|
17959
|
+
} = this.state, b = typeof n.isDraggable == "boolean" ? n.isDraggable : !n.static && u, C = typeof n.isResizable == "boolean" ? n.isResizable : !n.static && d, k = n.resizeHandles || y, S = b && p && n.isBounded !== !1;
|
|
17957
17960
|
return /* @__PURE__ */ xr.createElement(su.default, {
|
|
17958
17961
|
containerWidth: i,
|
|
17959
17962
|
cols: a,
|
|
@@ -17985,8 +17988,8 @@ class qa extends xr.Component {
|
|
|
17985
17988
|
maxH: n.maxH,
|
|
17986
17989
|
maxW: n.maxW,
|
|
17987
17990
|
static: n.static,
|
|
17988
|
-
droppingPosition: r ?
|
|
17989
|
-
resizeHandles:
|
|
17991
|
+
droppingPosition: r ? R : void 0,
|
|
17992
|
+
resizeHandles: k,
|
|
17990
17993
|
resizeHandle: v
|
|
17991
17994
|
}, t);
|
|
17992
17995
|
}
|