@spaceandtimelabs/makeinfinite-ui 0.42.1 → 0.43.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/makeinfinite-ui.es.js +586 -588
- package/dist/makeinfinite-ui.umd.js +12 -12
- package/package.json +1 -1
|
@@ -1038,8 +1038,8 @@ Em.write = function(e, t, n, r, o, a) {
|
|
|
1038
1038
|
const A = M.valueOf && M.valueOf();
|
|
1039
1039
|
if (A != null && A !== M)
|
|
1040
1040
|
return s.from(A, _, E);
|
|
1041
|
-
const
|
|
1042
|
-
if (
|
|
1041
|
+
const V = v(M);
|
|
1042
|
+
if (V) return V;
|
|
1043
1043
|
if (typeof Symbol < "u" && Symbol.toPrimitive != null && typeof M[Symbol.toPrimitive] == "function")
|
|
1044
1044
|
return s.from(M[Symbol.toPrimitive]("string"), _, E);
|
|
1045
1045
|
throw new TypeError(
|
|
@@ -1074,8 +1074,8 @@ Em.write = function(e, t, n, r, o, a) {
|
|
|
1074
1074
|
throw new TypeError("Unknown encoding: " + _);
|
|
1075
1075
|
const E = x(M, _) | 0;
|
|
1076
1076
|
let A = i(E);
|
|
1077
|
-
const
|
|
1078
|
-
return
|
|
1077
|
+
const V = A.write(M, _);
|
|
1078
|
+
return V !== E && (A = A.slice(0, V)), A;
|
|
1079
1079
|
}
|
|
1080
1080
|
function h(M) {
|
|
1081
1081
|
const _ = M.length < 0 ? 0 : w(M.length) | 0, E = i(_);
|
|
@@ -1124,13 +1124,13 @@ Em.write = function(e, t, n, r, o, a) {
|
|
|
1124
1124
|
'The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array'
|
|
1125
1125
|
);
|
|
1126
1126
|
if (_ === E) return 0;
|
|
1127
|
-
let A = _.length,
|
|
1128
|
-
for (let Q = 0, ce = Math.min(A,
|
|
1127
|
+
let A = _.length, V = E.length;
|
|
1128
|
+
for (let Q = 0, ce = Math.min(A, V); Q < ce; ++Q)
|
|
1129
1129
|
if (_[Q] !== E[Q]) {
|
|
1130
|
-
A = _[Q],
|
|
1130
|
+
A = _[Q], V = E[Q];
|
|
1131
1131
|
break;
|
|
1132
1132
|
}
|
|
1133
|
-
return A <
|
|
1133
|
+
return A < V ? -1 : V < A ? 1 : 0;
|
|
1134
1134
|
}, s.isEncoding = function(_) {
|
|
1135
1135
|
switch (String(_).toLowerCase()) {
|
|
1136
1136
|
case "hex":
|
|
@@ -1157,23 +1157,23 @@ Em.write = function(e, t, n, r, o, a) {
|
|
|
1157
1157
|
if (E === void 0)
|
|
1158
1158
|
for (E = 0, A = 0; A < _.length; ++A)
|
|
1159
1159
|
E += _[A].length;
|
|
1160
|
-
const
|
|
1160
|
+
const V = s.allocUnsafe(E);
|
|
1161
1161
|
let Q = 0;
|
|
1162
1162
|
for (A = 0; A < _.length; ++A) {
|
|
1163
1163
|
let ce = _[A];
|
|
1164
1164
|
if (Oe(ce, Uint8Array))
|
|
1165
|
-
Q + ce.length >
|
|
1166
|
-
|
|
1165
|
+
Q + ce.length > V.length ? (s.isBuffer(ce) || (ce = s.from(ce)), ce.copy(V, Q)) : Uint8Array.prototype.set.call(
|
|
1166
|
+
V,
|
|
1167
1167
|
ce,
|
|
1168
1168
|
Q
|
|
1169
1169
|
);
|
|
1170
1170
|
else if (s.isBuffer(ce))
|
|
1171
|
-
ce.copy(
|
|
1171
|
+
ce.copy(V, Q);
|
|
1172
1172
|
else
|
|
1173
1173
|
throw new TypeError('"list" argument must be an Array of Buffers');
|
|
1174
1174
|
Q += ce.length;
|
|
1175
1175
|
}
|
|
1176
|
-
return
|
|
1176
|
+
return V;
|
|
1177
1177
|
};
|
|
1178
1178
|
function x(M, _) {
|
|
1179
1179
|
if (s.isBuffer(M))
|
|
@@ -1186,7 +1186,7 @@ Em.write = function(e, t, n, r, o, a) {
|
|
|
1186
1186
|
);
|
|
1187
1187
|
const E = M.length, A = arguments.length > 2 && arguments[2] === !0;
|
|
1188
1188
|
if (!A && E === 0) return 0;
|
|
1189
|
-
let
|
|
1189
|
+
let V = !1;
|
|
1190
1190
|
for (; ; )
|
|
1191
1191
|
switch (_) {
|
|
1192
1192
|
case "ascii":
|
|
@@ -1206,9 +1206,9 @@ Em.write = function(e, t, n, r, o, a) {
|
|
|
1206
1206
|
case "base64":
|
|
1207
1207
|
return Ne(M).length;
|
|
1208
1208
|
default:
|
|
1209
|
-
if (
|
|
1209
|
+
if (V)
|
|
1210
1210
|
return A ? -1 : me(M).length;
|
|
1211
|
-
_ = ("" + _).toLowerCase(),
|
|
1211
|
+
_ = ("" + _).toLowerCase(), V = !0;
|
|
1212
1212
|
}
|
|
1213
1213
|
}
|
|
1214
1214
|
s.byteLength = x;
|
|
@@ -1276,22 +1276,22 @@ Em.write = function(e, t, n, r, o, a) {
|
|
|
1276
1276
|
let _ = "";
|
|
1277
1277
|
const E = e.INSPECT_MAX_BYTES;
|
|
1278
1278
|
return _ = this.toString("hex", 0, E).replace(/(.{2})/g, "$1 ").trim(), this.length > E && (_ += " ... "), "<Buffer " + _ + ">";
|
|
1279
|
-
}, r && (s.prototype[r] = s.prototype.inspect), s.prototype.compare = function(_, E, A,
|
|
1279
|
+
}, r && (s.prototype[r] = s.prototype.inspect), s.prototype.compare = function(_, E, A, V, Q) {
|
|
1280
1280
|
if (Oe(_, Uint8Array) && (_ = s.from(_, _.offset, _.byteLength)), !s.isBuffer(_))
|
|
1281
1281
|
throw new TypeError(
|
|
1282
1282
|
'The "target" argument must be one of type Buffer or Uint8Array. Received type ' + typeof _
|
|
1283
1283
|
);
|
|
1284
|
-
if (E === void 0 && (E = 0), A === void 0 && (A = _ ? _.length : 0),
|
|
1284
|
+
if (E === void 0 && (E = 0), A === void 0 && (A = _ ? _.length : 0), V === void 0 && (V = 0), Q === void 0 && (Q = this.length), E < 0 || A > _.length || V < 0 || Q > this.length)
|
|
1285
1285
|
throw new RangeError("out of range index");
|
|
1286
|
-
if (
|
|
1286
|
+
if (V >= Q && E >= A)
|
|
1287
1287
|
return 0;
|
|
1288
|
-
if (
|
|
1288
|
+
if (V >= Q)
|
|
1289
1289
|
return -1;
|
|
1290
1290
|
if (E >= A)
|
|
1291
1291
|
return 1;
|
|
1292
|
-
if (E >>>= 0, A >>>= 0,
|
|
1293
|
-
let ce = Q -
|
|
1294
|
-
const tt = Math.min(ce, Ae), Je = this.slice(
|
|
1292
|
+
if (E >>>= 0, A >>>= 0, V >>>= 0, Q >>>= 0, this === _) return 0;
|
|
1293
|
+
let ce = Q - V, Ae = A - E;
|
|
1294
|
+
const tt = Math.min(ce, Ae), Je = this.slice(V, Q), at = _.slice(E, A);
|
|
1295
1295
|
for (let Ue = 0; Ue < tt; ++Ue)
|
|
1296
1296
|
if (Je[Ue] !== at[Ue]) {
|
|
1297
1297
|
ce = Je[Ue], Ae = at[Ue];
|
|
@@ -1299,21 +1299,21 @@ Em.write = function(e, t, n, r, o, a) {
|
|
|
1299
1299
|
}
|
|
1300
1300
|
return ce < Ae ? -1 : Ae < ce ? 1 : 0;
|
|
1301
1301
|
};
|
|
1302
|
-
function P(M, _, E, A,
|
|
1302
|
+
function P(M, _, E, A, V) {
|
|
1303
1303
|
if (M.length === 0) return -1;
|
|
1304
|
-
if (typeof E == "string" ? (A = E, E = 0) : E > 2147483647 ? E = 2147483647 : E < -2147483648 && (E = -2147483648), E = +E, $e(E) && (E =
|
|
1305
|
-
if (
|
|
1304
|
+
if (typeof E == "string" ? (A = E, E = 0) : E > 2147483647 ? E = 2147483647 : E < -2147483648 && (E = -2147483648), E = +E, $e(E) && (E = V ? 0 : M.length - 1), E < 0 && (E = M.length + E), E >= M.length) {
|
|
1305
|
+
if (V) return -1;
|
|
1306
1306
|
E = M.length - 1;
|
|
1307
1307
|
} else if (E < 0)
|
|
1308
|
-
if (
|
|
1308
|
+
if (V) E = 0;
|
|
1309
1309
|
else return -1;
|
|
1310
1310
|
if (typeof _ == "string" && (_ = s.from(_, A)), s.isBuffer(_))
|
|
1311
|
-
return _.length === 0 ? -1 : R(M, _, E, A,
|
|
1311
|
+
return _.length === 0 ? -1 : R(M, _, E, A, V);
|
|
1312
1312
|
if (typeof _ == "number")
|
|
1313
|
-
return _ = _ & 255, typeof Uint8Array.prototype.indexOf == "function" ?
|
|
1313
|
+
return _ = _ & 255, typeof Uint8Array.prototype.indexOf == "function" ? V ? Uint8Array.prototype.indexOf.call(M, _, E) : Uint8Array.prototype.lastIndexOf.call(M, _, E) : R(M, [_], E, A, V);
|
|
1314
1314
|
throw new TypeError("val must be string, number or Buffer");
|
|
1315
1315
|
}
|
|
1316
|
-
function R(M, _, E, A,
|
|
1316
|
+
function R(M, _, E, A, V) {
|
|
1317
1317
|
let Q = 1, ce = M.length, Ae = _.length;
|
|
1318
1318
|
if (A !== void 0 && (A = String(A).toLowerCase(), A === "ucs2" || A === "ucs-2" || A === "utf16le" || A === "utf-16le")) {
|
|
1319
1319
|
if (M.length < 2 || _.length < 2)
|
|
@@ -1324,7 +1324,7 @@ Em.write = function(e, t, n, r, o, a) {
|
|
|
1324
1324
|
return Q === 1 ? at[Ue] : at.readUInt16BE(Ue * Q);
|
|
1325
1325
|
}
|
|
1326
1326
|
let Je;
|
|
1327
|
-
if (
|
|
1327
|
+
if (V) {
|
|
1328
1328
|
let at = -1;
|
|
1329
1329
|
for (Je = E; Je < ce; Je++)
|
|
1330
1330
|
if (tt(M, Je) === tt(_, at === -1 ? 0 : Je - at)) {
|
|
@@ -1352,8 +1352,8 @@ Em.write = function(e, t, n, r, o, a) {
|
|
|
1352
1352
|
};
|
|
1353
1353
|
function N(M, _, E, A) {
|
|
1354
1354
|
E = Number(E) || 0;
|
|
1355
|
-
const
|
|
1356
|
-
A ? (A = Number(A), A >
|
|
1355
|
+
const V = M.length - E;
|
|
1356
|
+
A ? (A = Number(A), A > V && (A = V)) : A = V;
|
|
1357
1357
|
const Q = _.length;
|
|
1358
1358
|
A > Q / 2 && (A = Q / 2);
|
|
1359
1359
|
let ce;
|
|
@@ -1376,13 +1376,13 @@ Em.write = function(e, t, n, r, o, a) {
|
|
|
1376
1376
|
function j(M, _, E, A) {
|
|
1377
1377
|
return et(Se(_, M.length - E), M, E, A);
|
|
1378
1378
|
}
|
|
1379
|
-
s.prototype.write = function(_, E, A,
|
|
1379
|
+
s.prototype.write = function(_, E, A, V) {
|
|
1380
1380
|
if (E === void 0)
|
|
1381
|
-
|
|
1381
|
+
V = "utf8", A = this.length, E = 0;
|
|
1382
1382
|
else if (A === void 0 && typeof E == "string")
|
|
1383
|
-
|
|
1383
|
+
V = E, A = this.length, E = 0;
|
|
1384
1384
|
else if (isFinite(E))
|
|
1385
|
-
E = E >>> 0, isFinite(A) ? (A = A >>> 0,
|
|
1385
|
+
E = E >>> 0, isFinite(A) ? (A = A >>> 0, V === void 0 && (V = "utf8")) : (V = A, A = void 0);
|
|
1386
1386
|
else
|
|
1387
1387
|
throw new Error(
|
|
1388
1388
|
"Buffer.write(string, encoding, offset[, length]) is no longer supported"
|
|
@@ -1390,10 +1390,10 @@ Em.write = function(e, t, n, r, o, a) {
|
|
|
1390
1390
|
const Q = this.length - E;
|
|
1391
1391
|
if ((A === void 0 || A > Q) && (A = Q), _.length > 0 && (A < 0 || E < 0) || E > this.length)
|
|
1392
1392
|
throw new RangeError("Attempt to write outside buffer bounds");
|
|
1393
|
-
|
|
1393
|
+
V || (V = "utf8");
|
|
1394
1394
|
let ce = !1;
|
|
1395
1395
|
for (; ; )
|
|
1396
|
-
switch (
|
|
1396
|
+
switch (V) {
|
|
1397
1397
|
case "hex":
|
|
1398
1398
|
return N(this, _, E, A);
|
|
1399
1399
|
case "utf8":
|
|
@@ -1411,8 +1411,8 @@ Em.write = function(e, t, n, r, o, a) {
|
|
|
1411
1411
|
case "utf-16le":
|
|
1412
1412
|
return j(this, _, E, A);
|
|
1413
1413
|
default:
|
|
1414
|
-
if (ce) throw new TypeError("Unknown encoding: " +
|
|
1415
|
-
|
|
1414
|
+
if (ce) throw new TypeError("Unknown encoding: " + V);
|
|
1415
|
+
V = ("" + V).toLowerCase(), ce = !0;
|
|
1416
1416
|
}
|
|
1417
1417
|
}, s.prototype.toJSON = function() {
|
|
1418
1418
|
return {
|
|
@@ -1426,27 +1426,27 @@ Em.write = function(e, t, n, r, o, a) {
|
|
|
1426
1426
|
function K(M, _, E) {
|
|
1427
1427
|
E = Math.min(M.length, E);
|
|
1428
1428
|
const A = [];
|
|
1429
|
-
let
|
|
1430
|
-
for (;
|
|
1431
|
-
const Q = M[
|
|
1429
|
+
let V = _;
|
|
1430
|
+
for (; V < E; ) {
|
|
1431
|
+
const Q = M[V];
|
|
1432
1432
|
let ce = null, Ae = Q > 239 ? 4 : Q > 223 ? 3 : Q > 191 ? 2 : 1;
|
|
1433
|
-
if (
|
|
1433
|
+
if (V + Ae <= E) {
|
|
1434
1434
|
let tt, Je, at, Ue;
|
|
1435
1435
|
switch (Ae) {
|
|
1436
1436
|
case 1:
|
|
1437
1437
|
Q < 128 && (ce = Q);
|
|
1438
1438
|
break;
|
|
1439
1439
|
case 2:
|
|
1440
|
-
tt = M[
|
|
1440
|
+
tt = M[V + 1], (tt & 192) === 128 && (Ue = (Q & 31) << 6 | tt & 63, Ue > 127 && (ce = Ue));
|
|
1441
1441
|
break;
|
|
1442
1442
|
case 3:
|
|
1443
|
-
tt = M[
|
|
1443
|
+
tt = M[V + 1], Je = M[V + 2], (tt & 192) === 128 && (Je & 192) === 128 && (Ue = (Q & 15) << 12 | (tt & 63) << 6 | Je & 63, Ue > 2047 && (Ue < 55296 || Ue > 57343) && (ce = Ue));
|
|
1444
1444
|
break;
|
|
1445
1445
|
case 4:
|
|
1446
|
-
tt = M[
|
|
1446
|
+
tt = M[V + 1], Je = M[V + 2], at = M[V + 3], (tt & 192) === 128 && (Je & 192) === 128 && (at & 192) === 128 && (Ue = (Q & 15) << 18 | (tt & 63) << 12 | (Je & 63) << 6 | at & 63, Ue > 65535 && Ue < 1114112 && (ce = Ue));
|
|
1447
1447
|
}
|
|
1448
1448
|
}
|
|
1449
|
-
ce === null ? (ce = 65533, Ae = 1) : ce > 65535 && (ce -= 65536, A.push(ce >>> 10 & 1023 | 55296), ce = 56320 | ce & 1023), A.push(ce),
|
|
1449
|
+
ce === null ? (ce = 65533, Ae = 1) : ce > 65535 && (ce -= 65536, A.push(ce >>> 10 & 1023 | 55296), ce = 56320 | ce & 1023), A.push(ce), V += Ae;
|
|
1450
1450
|
}
|
|
1451
1451
|
return q(A);
|
|
1452
1452
|
}
|
|
@@ -1466,37 +1466,37 @@ Em.write = function(e, t, n, r, o, a) {
|
|
|
1466
1466
|
function X(M, _, E) {
|
|
1467
1467
|
let A = "";
|
|
1468
1468
|
E = Math.min(M.length, E);
|
|
1469
|
-
for (let
|
|
1470
|
-
A += String.fromCharCode(M[
|
|
1469
|
+
for (let V = _; V < E; ++V)
|
|
1470
|
+
A += String.fromCharCode(M[V] & 127);
|
|
1471
1471
|
return A;
|
|
1472
1472
|
}
|
|
1473
1473
|
function B(M, _, E) {
|
|
1474
1474
|
let A = "";
|
|
1475
1475
|
E = Math.min(M.length, E);
|
|
1476
|
-
for (let
|
|
1477
|
-
A += String.fromCharCode(M[
|
|
1476
|
+
for (let V = _; V < E; ++V)
|
|
1477
|
+
A += String.fromCharCode(M[V]);
|
|
1478
1478
|
return A;
|
|
1479
1479
|
}
|
|
1480
1480
|
function ee(M, _, E) {
|
|
1481
1481
|
const A = M.length;
|
|
1482
1482
|
(!_ || _ < 0) && (_ = 0), (!E || E < 0 || E > A) && (E = A);
|
|
1483
|
-
let
|
|
1483
|
+
let V = "";
|
|
1484
1484
|
for (let Q = _; Q < E; ++Q)
|
|
1485
|
-
|
|
1486
|
-
return
|
|
1485
|
+
V += Ee[M[Q]];
|
|
1486
|
+
return V;
|
|
1487
1487
|
}
|
|
1488
1488
|
function Z(M, _, E) {
|
|
1489
1489
|
const A = M.slice(_, E);
|
|
1490
|
-
let
|
|
1490
|
+
let V = "";
|
|
1491
1491
|
for (let Q = 0; Q < A.length - 1; Q += 2)
|
|
1492
|
-
|
|
1493
|
-
return
|
|
1492
|
+
V += String.fromCharCode(A[Q] + A[Q + 1] * 256);
|
|
1493
|
+
return V;
|
|
1494
1494
|
}
|
|
1495
1495
|
s.prototype.slice = function(_, E) {
|
|
1496
1496
|
const A = this.length;
|
|
1497
1497
|
_ = ~~_, E = E === void 0 ? A : ~~E, _ < 0 ? (_ += A, _ < 0 && (_ = 0)) : _ > A && (_ = A), E < 0 ? (E += A, E < 0 && (E = 0)) : E > A && (E = A), E < _ && (E = _);
|
|
1498
|
-
const
|
|
1499
|
-
return Object.setPrototypeOf(
|
|
1498
|
+
const V = this.subarray(_, E);
|
|
1499
|
+
return Object.setPrototypeOf(V, s.prototype), V;
|
|
1500
1500
|
};
|
|
1501
1501
|
function J(M, _, E) {
|
|
1502
1502
|
if (M % 1 !== 0 || M < 0) throw new RangeError("offset is not uint");
|
|
@@ -1504,16 +1504,16 @@ Em.write = function(e, t, n, r, o, a) {
|
|
|
1504
1504
|
}
|
|
1505
1505
|
s.prototype.readUintLE = s.prototype.readUIntLE = function(_, E, A) {
|
|
1506
1506
|
_ = _ >>> 0, E = E >>> 0, A || J(_, E, this.length);
|
|
1507
|
-
let
|
|
1507
|
+
let V = this[_], Q = 1, ce = 0;
|
|
1508
1508
|
for (; ++ce < E && (Q *= 256); )
|
|
1509
|
-
|
|
1510
|
-
return
|
|
1509
|
+
V += this[_ + ce] * Q;
|
|
1510
|
+
return V;
|
|
1511
1511
|
}, s.prototype.readUintBE = s.prototype.readUIntBE = function(_, E, A) {
|
|
1512
1512
|
_ = _ >>> 0, E = E >>> 0, A || J(_, E, this.length);
|
|
1513
|
-
let
|
|
1513
|
+
let V = this[_ + --E], Q = 1;
|
|
1514
1514
|
for (; E > 0 && (Q *= 256); )
|
|
1515
|
-
|
|
1516
|
-
return
|
|
1515
|
+
V += this[_ + --E] * Q;
|
|
1516
|
+
return V;
|
|
1517
1517
|
}, s.prototype.readUint8 = s.prototype.readUInt8 = function(_, E) {
|
|
1518
1518
|
return _ = _ >>> 0, E || J(_, 1, this.length), this[_];
|
|
1519
1519
|
}, s.prototype.readUint16LE = s.prototype.readUInt16LE = function(_, E) {
|
|
@@ -1527,26 +1527,26 @@ Em.write = function(e, t, n, r, o, a) {
|
|
|
1527
1527
|
}, s.prototype.readBigUInt64LE = Le(function(_) {
|
|
1528
1528
|
_ = _ >>> 0, se(_, "offset");
|
|
1529
1529
|
const E = this[_], A = this[_ + 7];
|
|
1530
|
-
(E === void 0 || A === void 0) &&
|
|
1531
|
-
const
|
|
1532
|
-
return BigInt(
|
|
1530
|
+
(E === void 0 || A === void 0) && ae(_, this.length - 8);
|
|
1531
|
+
const V = E + this[++_] * 2 ** 8 + this[++_] * 2 ** 16 + this[++_] * 2 ** 24, Q = this[++_] + this[++_] * 2 ** 8 + this[++_] * 2 ** 16 + A * 2 ** 24;
|
|
1532
|
+
return BigInt(V) + (BigInt(Q) << BigInt(32));
|
|
1533
1533
|
}), s.prototype.readBigUInt64BE = Le(function(_) {
|
|
1534
1534
|
_ = _ >>> 0, se(_, "offset");
|
|
1535
1535
|
const E = this[_], A = this[_ + 7];
|
|
1536
|
-
(E === void 0 || A === void 0) &&
|
|
1537
|
-
const
|
|
1538
|
-
return (BigInt(
|
|
1536
|
+
(E === void 0 || A === void 0) && ae(_, this.length - 8);
|
|
1537
|
+
const V = E * 2 ** 24 + this[++_] * 2 ** 16 + this[++_] * 2 ** 8 + this[++_], Q = this[++_] * 2 ** 24 + this[++_] * 2 ** 16 + this[++_] * 2 ** 8 + A;
|
|
1538
|
+
return (BigInt(V) << BigInt(32)) + BigInt(Q);
|
|
1539
1539
|
}), s.prototype.readIntLE = function(_, E, A) {
|
|
1540
1540
|
_ = _ >>> 0, E = E >>> 0, A || J(_, E, this.length);
|
|
1541
|
-
let
|
|
1541
|
+
let V = this[_], Q = 1, ce = 0;
|
|
1542
1542
|
for (; ++ce < E && (Q *= 256); )
|
|
1543
|
-
|
|
1544
|
-
return Q *= 128,
|
|
1543
|
+
V += this[_ + ce] * Q;
|
|
1544
|
+
return Q *= 128, V >= Q && (V -= Math.pow(2, 8 * E)), V;
|
|
1545
1545
|
}, s.prototype.readIntBE = function(_, E, A) {
|
|
1546
1546
|
_ = _ >>> 0, E = E >>> 0, A || J(_, E, this.length);
|
|
1547
|
-
let
|
|
1548
|
-
for (;
|
|
1549
|
-
ce += this[_ + --
|
|
1547
|
+
let V = E, Q = 1, ce = this[_ + --V];
|
|
1548
|
+
for (; V > 0 && (Q *= 256); )
|
|
1549
|
+
ce += this[_ + --V] * Q;
|
|
1550
1550
|
return Q *= 128, ce >= Q && (ce -= Math.pow(2, 8 * E)), ce;
|
|
1551
1551
|
}, s.prototype.readInt8 = function(_, E) {
|
|
1552
1552
|
return _ = _ >>> 0, E || J(_, 1, this.length), this[_] & 128 ? (255 - this[_] + 1) * -1 : this[_];
|
|
@@ -1565,16 +1565,16 @@ Em.write = function(e, t, n, r, o, a) {
|
|
|
1565
1565
|
}, s.prototype.readBigInt64LE = Le(function(_) {
|
|
1566
1566
|
_ = _ >>> 0, se(_, "offset");
|
|
1567
1567
|
const E = this[_], A = this[_ + 7];
|
|
1568
|
-
(E === void 0 || A === void 0) &&
|
|
1569
|
-
const
|
|
1570
|
-
return (BigInt(
|
|
1568
|
+
(E === void 0 || A === void 0) && ae(_, this.length - 8);
|
|
1569
|
+
const V = this[_ + 4] + this[_ + 5] * 2 ** 8 + this[_ + 6] * 2 ** 16 + (A << 24);
|
|
1570
|
+
return (BigInt(V) << BigInt(32)) + BigInt(E + this[++_] * 2 ** 8 + this[++_] * 2 ** 16 + this[++_] * 2 ** 24);
|
|
1571
1571
|
}), s.prototype.readBigInt64BE = Le(function(_) {
|
|
1572
1572
|
_ = _ >>> 0, se(_, "offset");
|
|
1573
1573
|
const E = this[_], A = this[_ + 7];
|
|
1574
|
-
(E === void 0 || A === void 0) &&
|
|
1575
|
-
const
|
|
1574
|
+
(E === void 0 || A === void 0) && ae(_, this.length - 8);
|
|
1575
|
+
const V = (E << 24) + // Overflow
|
|
1576
1576
|
this[++_] * 2 ** 16 + this[++_] * 2 ** 8 + this[++_];
|
|
1577
|
-
return (BigInt(
|
|
1577
|
+
return (BigInt(V) << BigInt(32)) + BigInt(this[++_] * 2 ** 24 + this[++_] * 2 ** 16 + this[++_] * 2 ** 8 + A);
|
|
1578
1578
|
}), s.prototype.readFloatLE = function(_, E) {
|
|
1579
1579
|
return _ = _ >>> 0, E || J(_, 4, this.length), n.read(this, _, !0, 23, 4);
|
|
1580
1580
|
}, s.prototype.readFloatBE = function(_, E) {
|
|
@@ -1584,13 +1584,13 @@ Em.write = function(e, t, n, r, o, a) {
|
|
|
1584
1584
|
}, s.prototype.readDoubleBE = function(_, E) {
|
|
1585
1585
|
return _ = _ >>> 0, E || J(_, 8, this.length), n.read(this, _, !1, 52, 8);
|
|
1586
1586
|
};
|
|
1587
|
-
function H(M, _, E, A,
|
|
1587
|
+
function H(M, _, E, A, V, Q) {
|
|
1588
1588
|
if (!s.isBuffer(M)) throw new TypeError('"buffer" argument must be a Buffer instance');
|
|
1589
|
-
if (_ >
|
|
1589
|
+
if (_ > V || _ < Q) throw new RangeError('"value" argument is out of bounds');
|
|
1590
1590
|
if (E + A > M.length) throw new RangeError("Index out of range");
|
|
1591
1591
|
}
|
|
1592
|
-
s.prototype.writeUintLE = s.prototype.writeUIntLE = function(_, E, A,
|
|
1593
|
-
if (_ = +_, E = E >>> 0, A = A >>> 0, !
|
|
1592
|
+
s.prototype.writeUintLE = s.prototype.writeUIntLE = function(_, E, A, V) {
|
|
1593
|
+
if (_ = +_, E = E >>> 0, A = A >>> 0, !V) {
|
|
1594
1594
|
const Ae = Math.pow(2, 8 * A) - 1;
|
|
1595
1595
|
H(this, _, E, A, Ae, 0);
|
|
1596
1596
|
}
|
|
@@ -1598,8 +1598,8 @@ Em.write = function(e, t, n, r, o, a) {
|
|
|
1598
1598
|
for (this[E] = _ & 255; ++ce < A && (Q *= 256); )
|
|
1599
1599
|
this[E + ce] = _ / Q & 255;
|
|
1600
1600
|
return E + A;
|
|
1601
|
-
}, s.prototype.writeUintBE = s.prototype.writeUIntBE = function(_, E, A,
|
|
1602
|
-
if (_ = +_, E = E >>> 0, A = A >>> 0, !
|
|
1601
|
+
}, s.prototype.writeUintBE = s.prototype.writeUIntBE = function(_, E, A, V) {
|
|
1602
|
+
if (_ = +_, E = E >>> 0, A = A >>> 0, !V) {
|
|
1603
1603
|
const Ae = Math.pow(2, 8 * A) - 1;
|
|
1604
1604
|
H(this, _, E, A, Ae, 0);
|
|
1605
1605
|
}
|
|
@@ -1618,15 +1618,15 @@ Em.write = function(e, t, n, r, o, a) {
|
|
|
1618
1618
|
}, s.prototype.writeUint32BE = s.prototype.writeUInt32BE = function(_, E, A) {
|
|
1619
1619
|
return _ = +_, E = E >>> 0, A || H(this, _, E, 4, 4294967295, 0), this[E] = _ >>> 24, this[E + 1] = _ >>> 16, this[E + 2] = _ >>> 8, this[E + 3] = _ & 255, E + 4;
|
|
1620
1620
|
};
|
|
1621
|
-
function I(M, _, E, A,
|
|
1622
|
-
z(_, A,
|
|
1621
|
+
function I(M, _, E, A, V) {
|
|
1622
|
+
z(_, A, V, M, E, 7);
|
|
1623
1623
|
let Q = Number(_ & BigInt(4294967295));
|
|
1624
1624
|
M[E++] = Q, Q = Q >> 8, M[E++] = Q, Q = Q >> 8, M[E++] = Q, Q = Q >> 8, M[E++] = Q;
|
|
1625
1625
|
let ce = Number(_ >> BigInt(32) & BigInt(4294967295));
|
|
1626
1626
|
return M[E++] = ce, ce = ce >> 8, M[E++] = ce, ce = ce >> 8, M[E++] = ce, ce = ce >> 8, M[E++] = ce, E;
|
|
1627
1627
|
}
|
|
1628
|
-
function
|
|
1629
|
-
z(_, A,
|
|
1628
|
+
function U(M, _, E, A, V) {
|
|
1629
|
+
z(_, A, V, M, E, 7);
|
|
1630
1630
|
let Q = Number(_ & BigInt(4294967295));
|
|
1631
1631
|
M[E + 7] = Q, Q = Q >> 8, M[E + 6] = Q, Q = Q >> 8, M[E + 5] = Q, Q = Q >> 8, M[E + 4] = Q;
|
|
1632
1632
|
let ce = Number(_ >> BigInt(32) & BigInt(4294967295));
|
|
@@ -1635,9 +1635,9 @@ Em.write = function(e, t, n, r, o, a) {
|
|
|
1635
1635
|
s.prototype.writeBigUInt64LE = Le(function(_, E = 0) {
|
|
1636
1636
|
return I(this, _, E, BigInt(0), BigInt("0xffffffffffffffff"));
|
|
1637
1637
|
}), s.prototype.writeBigUInt64BE = Le(function(_, E = 0) {
|
|
1638
|
-
return
|
|
1639
|
-
}), s.prototype.writeIntLE = function(_, E, A,
|
|
1640
|
-
if (_ = +_, E = E >>> 0, !
|
|
1638
|
+
return U(this, _, E, BigInt(0), BigInt("0xffffffffffffffff"));
|
|
1639
|
+
}), s.prototype.writeIntLE = function(_, E, A, V) {
|
|
1640
|
+
if (_ = +_, E = E >>> 0, !V) {
|
|
1641
1641
|
const tt = Math.pow(2, 8 * A - 1);
|
|
1642
1642
|
H(this, _, E, A, tt - 1, -tt);
|
|
1643
1643
|
}
|
|
@@ -1645,8 +1645,8 @@ Em.write = function(e, t, n, r, o, a) {
|
|
|
1645
1645
|
for (this[E] = _ & 255; ++Q < A && (ce *= 256); )
|
|
1646
1646
|
_ < 0 && Ae === 0 && this[E + Q - 1] !== 0 && (Ae = 1), this[E + Q] = (_ / ce >> 0) - Ae & 255;
|
|
1647
1647
|
return E + A;
|
|
1648
|
-
}, s.prototype.writeIntBE = function(_, E, A,
|
|
1649
|
-
if (_ = +_, E = E >>> 0, !
|
|
1648
|
+
}, s.prototype.writeIntBE = function(_, E, A, V) {
|
|
1649
|
+
if (_ = +_, E = E >>> 0, !V) {
|
|
1650
1650
|
const tt = Math.pow(2, 8 * A - 1);
|
|
1651
1651
|
H(this, _, E, A, tt - 1, -tt);
|
|
1652
1652
|
}
|
|
@@ -1667,50 +1667,50 @@ Em.write = function(e, t, n, r, o, a) {
|
|
|
1667
1667
|
}, s.prototype.writeBigInt64LE = Le(function(_, E = 0) {
|
|
1668
1668
|
return I(this, _, E, -BigInt("0x8000000000000000"), BigInt("0x7fffffffffffffff"));
|
|
1669
1669
|
}), s.prototype.writeBigInt64BE = Le(function(_, E = 0) {
|
|
1670
|
-
return
|
|
1670
|
+
return U(this, _, E, -BigInt("0x8000000000000000"), BigInt("0x7fffffffffffffff"));
|
|
1671
1671
|
});
|
|
1672
|
-
function
|
|
1672
|
+
function re(M, _, E, A, V, Q) {
|
|
1673
1673
|
if (E + A > M.length) throw new RangeError("Index out of range");
|
|
1674
1674
|
if (E < 0) throw new RangeError("Index out of range");
|
|
1675
1675
|
}
|
|
1676
|
-
function O(M, _, E, A,
|
|
1677
|
-
return _ = +_, E = E >>> 0,
|
|
1676
|
+
function O(M, _, E, A, V) {
|
|
1677
|
+
return _ = +_, E = E >>> 0, V || re(M, _, E, 4), n.write(M, _, E, A, 23, 4), E + 4;
|
|
1678
1678
|
}
|
|
1679
1679
|
s.prototype.writeFloatLE = function(_, E, A) {
|
|
1680
1680
|
return O(this, _, E, !0, A);
|
|
1681
1681
|
}, s.prototype.writeFloatBE = function(_, E, A) {
|
|
1682
1682
|
return O(this, _, E, !1, A);
|
|
1683
1683
|
};
|
|
1684
|
-
function G(M, _, E, A,
|
|
1685
|
-
return _ = +_, E = E >>> 0,
|
|
1684
|
+
function G(M, _, E, A, V) {
|
|
1685
|
+
return _ = +_, E = E >>> 0, V || re(M, _, E, 8), n.write(M, _, E, A, 52, 8), E + 8;
|
|
1686
1686
|
}
|
|
1687
1687
|
s.prototype.writeDoubleLE = function(_, E, A) {
|
|
1688
1688
|
return G(this, _, E, !0, A);
|
|
1689
1689
|
}, s.prototype.writeDoubleBE = function(_, E, A) {
|
|
1690
1690
|
return G(this, _, E, !1, A);
|
|
1691
|
-
}, s.prototype.copy = function(_, E, A,
|
|
1691
|
+
}, s.prototype.copy = function(_, E, A, V) {
|
|
1692
1692
|
if (!s.isBuffer(_)) throw new TypeError("argument should be a Buffer");
|
|
1693
|
-
if (A || (A = 0), !
|
|
1693
|
+
if (A || (A = 0), !V && V !== 0 && (V = this.length), E >= _.length && (E = _.length), E || (E = 0), V > 0 && V < A && (V = A), V === A || _.length === 0 || this.length === 0) return 0;
|
|
1694
1694
|
if (E < 0)
|
|
1695
1695
|
throw new RangeError("targetStart out of bounds");
|
|
1696
1696
|
if (A < 0 || A >= this.length) throw new RangeError("Index out of range");
|
|
1697
|
-
if (
|
|
1698
|
-
|
|
1699
|
-
const Q =
|
|
1700
|
-
return this === _ && typeof Uint8Array.prototype.copyWithin == "function" ? this.copyWithin(E, A,
|
|
1697
|
+
if (V < 0) throw new RangeError("sourceEnd out of bounds");
|
|
1698
|
+
V > this.length && (V = this.length), _.length - E < V - A && (V = _.length - E + A);
|
|
1699
|
+
const Q = V - A;
|
|
1700
|
+
return this === _ && typeof Uint8Array.prototype.copyWithin == "function" ? this.copyWithin(E, A, V) : Uint8Array.prototype.set.call(
|
|
1701
1701
|
_,
|
|
1702
|
-
this.subarray(A,
|
|
1702
|
+
this.subarray(A, V),
|
|
1703
1703
|
E
|
|
1704
1704
|
), Q;
|
|
1705
|
-
}, s.prototype.fill = function(_, E, A,
|
|
1705
|
+
}, s.prototype.fill = function(_, E, A, V) {
|
|
1706
1706
|
if (typeof _ == "string") {
|
|
1707
|
-
if (typeof E == "string" ? (
|
|
1707
|
+
if (typeof E == "string" ? (V = E, E = 0, A = this.length) : typeof A == "string" && (V = A, A = this.length), V !== void 0 && typeof V != "string")
|
|
1708
1708
|
throw new TypeError("encoding must be a string");
|
|
1709
|
-
if (typeof
|
|
1710
|
-
throw new TypeError("Unknown encoding: " +
|
|
1709
|
+
if (typeof V == "string" && !s.isEncoding(V))
|
|
1710
|
+
throw new TypeError("Unknown encoding: " + V);
|
|
1711
1711
|
if (_.length === 1) {
|
|
1712
1712
|
const ce = _.charCodeAt(0);
|
|
1713
|
-
(
|
|
1713
|
+
(V === "utf8" && ce < 128 || V === "latin1") && (_ = ce);
|
|
1714
1714
|
}
|
|
1715
1715
|
} else typeof _ == "number" ? _ = _ & 255 : typeof _ == "boolean" && (_ = Number(_));
|
|
1716
1716
|
if (E < 0 || this.length < E || this.length < A)
|
|
@@ -1723,7 +1723,7 @@ Em.write = function(e, t, n, r, o, a) {
|
|
|
1723
1723
|
for (Q = E; Q < A; ++Q)
|
|
1724
1724
|
this[Q] = _;
|
|
1725
1725
|
else {
|
|
1726
|
-
const ce = s.isBuffer(_) ? _ : s.from(_,
|
|
1726
|
+
const ce = s.isBuffer(_) ? _ : s.from(_, V), Ae = ce.length;
|
|
1727
1727
|
if (Ae === 0)
|
|
1728
1728
|
throw new TypeError('The value "' + _ + '" is invalid for argument "value"');
|
|
1729
1729
|
for (Q = 0; Q < A - E; ++Q)
|
|
@@ -1744,11 +1744,11 @@ Em.write = function(e, t, n, r, o, a) {
|
|
|
1744
1744
|
get code() {
|
|
1745
1745
|
return M;
|
|
1746
1746
|
}
|
|
1747
|
-
set code(
|
|
1747
|
+
set code(V) {
|
|
1748
1748
|
Object.defineProperty(this, "code", {
|
|
1749
1749
|
configurable: !0,
|
|
1750
1750
|
enumerable: !0,
|
|
1751
|
-
value:
|
|
1751
|
+
value: V,
|
|
1752
1752
|
writable: !0
|
|
1753
1753
|
});
|
|
1754
1754
|
}
|
|
@@ -1772,34 +1772,34 @@ Em.write = function(e, t, n, r, o, a) {
|
|
|
1772
1772
|
), te(
|
|
1773
1773
|
"ERR_OUT_OF_RANGE",
|
|
1774
1774
|
function(M, _, E) {
|
|
1775
|
-
let A = `The value of "${M}" is out of range.`,
|
|
1776
|
-
return Number.isInteger(E) && Math.abs(E) > 2 ** 32 ?
|
|
1775
|
+
let A = `The value of "${M}" is out of range.`, V = E;
|
|
1776
|
+
return Number.isInteger(E) && Math.abs(E) > 2 ** 32 ? V = ie(String(E)) : typeof E == "bigint" && (V = String(E), (E > BigInt(2) ** BigInt(32) || E < -(BigInt(2) ** BigInt(32))) && (V = ie(V)), V += "n"), A += ` It must be ${_}. Received ${V}`, A;
|
|
1777
1777
|
},
|
|
1778
1778
|
RangeError
|
|
1779
1779
|
);
|
|
1780
|
-
function
|
|
1780
|
+
function ie(M) {
|
|
1781
1781
|
let _ = "", E = M.length;
|
|
1782
1782
|
const A = M[0] === "-" ? 1 : 0;
|
|
1783
1783
|
for (; E >= A + 4; E -= 3)
|
|
1784
1784
|
_ = `_${M.slice(E - 3, E)}${_}`;
|
|
1785
1785
|
return `${M.slice(0, E)}${_}`;
|
|
1786
1786
|
}
|
|
1787
|
-
function
|
|
1788
|
-
se(_, "offset"), (M[_] === void 0 || M[_ + E] === void 0) &&
|
|
1787
|
+
function oe(M, _, E) {
|
|
1788
|
+
se(_, "offset"), (M[_] === void 0 || M[_ + E] === void 0) && ae(_, M.length - (E + 1));
|
|
1789
1789
|
}
|
|
1790
|
-
function z(M, _, E, A,
|
|
1790
|
+
function z(M, _, E, A, V, Q) {
|
|
1791
1791
|
if (M > E || M < _) {
|
|
1792
1792
|
const ce = typeof _ == "bigint" ? "n" : "";
|
|
1793
1793
|
let Ae;
|
|
1794
1794
|
throw _ === 0 || _ === BigInt(0) ? Ae = `>= 0${ce} and < 2${ce} ** ${(Q + 1) * 8}${ce}` : Ae = `>= -(2${ce} ** ${(Q + 1) * 8 - 1}${ce}) and < 2 ** ${(Q + 1) * 8 - 1}${ce}`, new k.ERR_OUT_OF_RANGE("value", Ae, M);
|
|
1795
1795
|
}
|
|
1796
|
-
|
|
1796
|
+
oe(A, V, Q);
|
|
1797
1797
|
}
|
|
1798
1798
|
function se(M, _) {
|
|
1799
1799
|
if (typeof M != "number")
|
|
1800
1800
|
throw new k.ERR_INVALID_ARG_TYPE(_, "number", M);
|
|
1801
1801
|
}
|
|
1802
|
-
function
|
|
1802
|
+
function ae(M, _, E) {
|
|
1803
1803
|
throw Math.floor(M) !== M ? (se(M, E), new k.ERR_OUT_OF_RANGE("offset", "an integer", M)) : _ < 0 ? new k.ERR_BUFFER_OUT_OF_BOUNDS() : new k.ERR_OUT_OF_RANGE(
|
|
1804
1804
|
"offset",
|
|
1805
1805
|
`>= 0 and <= ${_}`,
|
|
@@ -1817,11 +1817,11 @@ Em.write = function(e, t, n, r, o, a) {
|
|
|
1817
1817
|
_ = _ || 1 / 0;
|
|
1818
1818
|
let E;
|
|
1819
1819
|
const A = M.length;
|
|
1820
|
-
let
|
|
1820
|
+
let V = null;
|
|
1821
1821
|
const Q = [];
|
|
1822
1822
|
for (let ce = 0; ce < A; ++ce) {
|
|
1823
1823
|
if (E = M.charCodeAt(ce), E > 55295 && E < 57344) {
|
|
1824
|
-
if (!
|
|
1824
|
+
if (!V) {
|
|
1825
1825
|
if (E > 56319) {
|
|
1826
1826
|
(_ -= 3) > -1 && Q.push(239, 191, 189);
|
|
1827
1827
|
continue;
|
|
@@ -1829,16 +1829,16 @@ Em.write = function(e, t, n, r, o, a) {
|
|
|
1829
1829
|
(_ -= 3) > -1 && Q.push(239, 191, 189);
|
|
1830
1830
|
continue;
|
|
1831
1831
|
}
|
|
1832
|
-
|
|
1832
|
+
V = E;
|
|
1833
1833
|
continue;
|
|
1834
1834
|
}
|
|
1835
1835
|
if (E < 56320) {
|
|
1836
|
-
(_ -= 3) > -1 && Q.push(239, 191, 189),
|
|
1836
|
+
(_ -= 3) > -1 && Q.push(239, 191, 189), V = E;
|
|
1837
1837
|
continue;
|
|
1838
1838
|
}
|
|
1839
|
-
E = (
|
|
1840
|
-
} else
|
|
1841
|
-
if (
|
|
1839
|
+
E = (V - 55296 << 10 | E - 56320) + 65536;
|
|
1840
|
+
} else V && (_ -= 3) > -1 && Q.push(239, 191, 189);
|
|
1841
|
+
if (V = null, E < 128) {
|
|
1842
1842
|
if ((_ -= 1) < 0) break;
|
|
1843
1843
|
Q.push(E);
|
|
1844
1844
|
} else if (E < 2048) {
|
|
@@ -1874,20 +1874,20 @@ Em.write = function(e, t, n, r, o, a) {
|
|
|
1874
1874
|
return _;
|
|
1875
1875
|
}
|
|
1876
1876
|
function Se(M, _) {
|
|
1877
|
-
let E, A,
|
|
1877
|
+
let E, A, V;
|
|
1878
1878
|
const Q = [];
|
|
1879
1879
|
for (let ce = 0; ce < M.length && !((_ -= 2) < 0); ++ce)
|
|
1880
|
-
E = M.charCodeAt(ce), A = E >> 8,
|
|
1880
|
+
E = M.charCodeAt(ce), A = E >> 8, V = E % 256, Q.push(V), Q.push(A);
|
|
1881
1881
|
return Q;
|
|
1882
1882
|
}
|
|
1883
1883
|
function Ne(M) {
|
|
1884
1884
|
return t.toByteArray(we(M));
|
|
1885
1885
|
}
|
|
1886
1886
|
function et(M, _, E, A) {
|
|
1887
|
-
let
|
|
1888
|
-
for (
|
|
1889
|
-
_[
|
|
1890
|
-
return
|
|
1887
|
+
let V;
|
|
1888
|
+
for (V = 0; V < A && !(V + E >= _.length || V >= M.length); ++V)
|
|
1889
|
+
_[V + E] = M[V];
|
|
1890
|
+
return V;
|
|
1891
1891
|
}
|
|
1892
1892
|
function Oe(M, _) {
|
|
1893
1893
|
return M instanceof _ || M != null && M.constructor != null && M.constructor.name != null && M.constructor.name === _.name;
|
|
@@ -1899,8 +1899,8 @@ Em.write = function(e, t, n, r, o, a) {
|
|
|
1899
1899
|
const M = "0123456789abcdef", _ = new Array(256);
|
|
1900
1900
|
for (let E = 0; E < 16; ++E) {
|
|
1901
1901
|
const A = E * 16;
|
|
1902
|
-
for (let
|
|
1903
|
-
_[A +
|
|
1902
|
+
for (let V = 0; V < 16; ++V)
|
|
1903
|
+
_[A + V] = M[E] + M[V];
|
|
1904
1904
|
}
|
|
1905
1905
|
return _;
|
|
1906
1906
|
}();
|
|
@@ -9059,7 +9059,7 @@ async function zm({
|
|
|
9059
9059
|
} catch {
|
|
9060
9060
|
}
|
|
9061
9061
|
J = [...new Set(J)];
|
|
9062
|
-
const H = await Gs.read({ fs: e, gitdir: l }), I = F.capabilities.has("shallow") ? [...H] : [],
|
|
9062
|
+
const H = await Gs.read({ fs: e, gitdir: l }), I = F.capabilities.has("shallow") ? [...H] : [], U = bL({
|
|
9063
9063
|
capabilities: B,
|
|
9064
9064
|
wants: ee,
|
|
9065
9065
|
haves: J,
|
|
@@ -9067,22 +9067,22 @@ async function zm({
|
|
|
9067
9067
|
depth: p,
|
|
9068
9068
|
since: m,
|
|
9069
9069
|
exclude: v
|
|
9070
|
-
}),
|
|
9070
|
+
}), re = Buffer.from(await du(U)), O = await j.connect({
|
|
9071
9071
|
http: n,
|
|
9072
9072
|
onProgress: r,
|
|
9073
9073
|
corsProxy: h,
|
|
9074
9074
|
service: "git-upload-pack",
|
|
9075
9075
|
url: $,
|
|
9076
9076
|
auth: K,
|
|
9077
|
-
body: [
|
|
9077
|
+
body: [re],
|
|
9078
9078
|
headers: S
|
|
9079
9079
|
}), G = await yL(O.body);
|
|
9080
9080
|
O.headers && (G.headers = O.headers);
|
|
9081
9081
|
for (const z of G.shallows)
|
|
9082
9082
|
if (!H.has(z))
|
|
9083
9083
|
try {
|
|
9084
|
-
const { object: se } = await gt({ fs: e, cache: t, gitdir: l, oid: z }),
|
|
9085
|
-
|
|
9084
|
+
const { object: se } = await gt({ fs: e, cache: t, gitdir: l, oid: z }), ae = new mt(se), he = await Promise.all(
|
|
9085
|
+
ae.headers().parent.map((me) => u0({ fs: e, cache: t, gitdir: l, oid: me }))
|
|
9086
9086
|
);
|
|
9087
9087
|
he.length === 0 || he.every((me) => me) || H.add(z);
|
|
9088
9088
|
} catch {
|
|
@@ -9092,8 +9092,8 @@ async function zm({
|
|
|
9092
9092
|
H.delete(z);
|
|
9093
9093
|
if (await Gs.write({ fs: e, gitdir: l, oids: H }), x) {
|
|
9094
9094
|
const z = /* @__PURE__ */ new Map([[X, q]]), se = /* @__PURE__ */ new Map();
|
|
9095
|
-
let
|
|
9096
|
-
for (;
|
|
9095
|
+
let ae = 10, he = X;
|
|
9096
|
+
for (; ae--; ) {
|
|
9097
9097
|
const ge = F.symrefs.get(he);
|
|
9098
9098
|
if (ge === void 0) break;
|
|
9099
9099
|
se.set(he, ge), he = ge;
|
|
@@ -9128,8 +9128,8 @@ async function zm({
|
|
|
9128
9128
|
ref: "HEAD",
|
|
9129
9129
|
map: ne
|
|
9130
9130
|
});
|
|
9131
|
-
for (const [se,
|
|
9132
|
-
if (se !== "HEAD" &&
|
|
9131
|
+
for (const [se, ae] of ne.entries())
|
|
9132
|
+
if (se !== "HEAD" && ae === z) {
|
|
9133
9133
|
G.HEAD = se;
|
|
9134
9134
|
break;
|
|
9135
9135
|
}
|
|
@@ -9142,34 +9142,34 @@ async function zm({
|
|
|
9142
9142
|
const z = W_(G.progress);
|
|
9143
9143
|
$l(z, async (se) => {
|
|
9144
9144
|
if (o && await o(se), r) {
|
|
9145
|
-
const
|
|
9146
|
-
|
|
9147
|
-
phase:
|
|
9148
|
-
loaded: parseInt(
|
|
9149
|
-
total: parseInt(
|
|
9145
|
+
const ae = se.match(/([^:]*).*\((\d+?)\/(\d+?)\)/);
|
|
9146
|
+
ae && await r({
|
|
9147
|
+
phase: ae[1].trim(),
|
|
9148
|
+
loaded: parseInt(ae[2], 10),
|
|
9149
|
+
total: parseInt(ae[3], 10)
|
|
9150
9150
|
});
|
|
9151
9151
|
}
|
|
9152
9152
|
});
|
|
9153
9153
|
}
|
|
9154
9154
|
const te = Buffer.from(await du(G.packfile));
|
|
9155
9155
|
if (O.body.error) throw O.body.error;
|
|
9156
|
-
const
|
|
9156
|
+
const ie = te.slice(-20).toString("hex"), oe = {
|
|
9157
9157
|
defaultBranch: G.HEAD,
|
|
9158
9158
|
fetchHead: G.FETCH_HEAD.oid,
|
|
9159
9159
|
fetchHeadDescription: G.FETCH_HEAD.description
|
|
9160
9160
|
};
|
|
9161
|
-
if (G.headers && (
|
|
9162
|
-
|
|
9163
|
-
const z = de.join(l,
|
|
9161
|
+
if (G.headers && (oe.headers = G.headers), C && (oe.pruned = G.pruned), ie !== "" && !wL(te)) {
|
|
9162
|
+
oe.packfile = `objects/pack/pack-${ie}.pack`;
|
|
9163
|
+
const z = de.join(l, oe.packfile);
|
|
9164
9164
|
await e.write(z, te);
|
|
9165
|
-
const se = (he) => gt({ fs: e, cache: t, gitdir: l, oid: he }),
|
|
9165
|
+
const se = (he) => gt({ fs: e, cache: t, gitdir: l, oid: he }), ae = await ui.fromPack({
|
|
9166
9166
|
pack: te,
|
|
9167
9167
|
getExternalRefDelta: se,
|
|
9168
9168
|
onProgress: r
|
|
9169
9169
|
});
|
|
9170
|
-
await e.write(z.replace(/\.pack$/, ".idx"), await
|
|
9170
|
+
await e.write(z.replace(/\.pack$/, ".idx"), await ae.toBuffer());
|
|
9171
9171
|
}
|
|
9172
|
-
return
|
|
9172
|
+
return oe;
|
|
9173
9173
|
}
|
|
9174
9174
|
async function q_({
|
|
9175
9175
|
fs: e,
|
|
@@ -11089,43 +11089,43 @@ async function Rz({
|
|
|
11089
11089
|
const H = [...T.refs.values()];
|
|
11090
11090
|
let I = /* @__PURE__ */ new Set();
|
|
11091
11091
|
if (j !== "0000000000000000000000000000000000000000") {
|
|
11092
|
-
const
|
|
11092
|
+
const U = await Bm({
|
|
11093
11093
|
fs: e,
|
|
11094
11094
|
cache: t,
|
|
11095
11095
|
gitdir: c,
|
|
11096
11096
|
oids: [R, j]
|
|
11097
11097
|
});
|
|
11098
|
-
for (const
|
|
11099
|
-
F && (I = await Uf({ fs: e, cache: t, gitdir: c, oids:
|
|
11098
|
+
for (const re of U) H.push(re);
|
|
11099
|
+
F && (I = await Uf({ fs: e, cache: t, gitdir: c, oids: U }));
|
|
11100
11100
|
}
|
|
11101
11101
|
if (!H.includes(R)) {
|
|
11102
|
-
const
|
|
11102
|
+
const U = await Sz({
|
|
11103
11103
|
fs: e,
|
|
11104
11104
|
cache: t,
|
|
11105
11105
|
gitdir: c,
|
|
11106
11106
|
start: [R],
|
|
11107
11107
|
finish: H
|
|
11108
11108
|
});
|
|
11109
|
-
K = await Uf({ fs: e, cache: t, gitdir: c, oids:
|
|
11109
|
+
K = await Uf({ fs: e, cache: t, gitdir: c, oids: U });
|
|
11110
11110
|
}
|
|
11111
11111
|
if (F) {
|
|
11112
11112
|
try {
|
|
11113
|
-
const
|
|
11113
|
+
const U = await fe.resolve({
|
|
11114
11114
|
fs: e,
|
|
11115
11115
|
gitdir: c,
|
|
11116
11116
|
ref: `refs/remotes/${f}/HEAD`,
|
|
11117
11117
|
depth: 2
|
|
11118
|
-
}), { oid:
|
|
11119
|
-
ref:
|
|
11120
|
-
fullref:
|
|
11118
|
+
}), { oid: re } = await fe.resolveAgainstMap({
|
|
11119
|
+
ref: U.replace(`refs/remotes/${f}/`, ""),
|
|
11120
|
+
fullref: U,
|
|
11121
11121
|
map: T.refs
|
|
11122
|
-
}), O = [
|
|
11122
|
+
}), O = [re];
|
|
11123
11123
|
for (const G of await Uf({ fs: e, cache: t, gitdir: c, oids: O }))
|
|
11124
11124
|
I.add(G);
|
|
11125
11125
|
} catch {
|
|
11126
11126
|
}
|
|
11127
|
-
for (const
|
|
11128
|
-
K.delete(
|
|
11127
|
+
for (const U of I)
|
|
11128
|
+
K.delete(U);
|
|
11129
11129
|
}
|
|
11130
11130
|
if (R === j && (p = !0), !p) {
|
|
11131
11131
|
if (P.startsWith("refs/tags") && j !== "0000000000000000000000000000000000000000")
|
|
@@ -11179,8 +11179,8 @@ async function Rz({
|
|
|
11179
11179
|
if (J.ok && Object.values(J.refs).every((H) => H.ok))
|
|
11180
11180
|
return J;
|
|
11181
11181
|
{
|
|
11182
|
-
const H = Object.entries(J.refs).filter(([I,
|
|
11183
|
-
- ${I}: ${
|
|
11182
|
+
const H = Object.entries(J.refs).filter(([I, U]) => !U.ok).map(([I, U]) => `
|
|
11183
|
+
- ${I}: ${U.error}`).join("");
|
|
11184
11184
|
throw new bl(H, J);
|
|
11185
11185
|
}
|
|
11186
11186
|
}
|
|
@@ -13557,9 +13557,9 @@ ot.typeOf = Dn;
|
|
|
13557
13557
|
_S.exports = ot;
|
|
13558
13558
|
var qm = _S.exports;
|
|
13559
13559
|
function u4(e) {
|
|
13560
|
-
function t(H, I,
|
|
13561
|
-
for (var G = 0, k = 0, te = 0,
|
|
13562
|
-
if (z =
|
|
13560
|
+
function t(H, I, U, re, O) {
|
|
13561
|
+
for (var G = 0, k = 0, te = 0, ie = 0, oe, z, se = 0, ae = 0, he, we = he = oe = 0, me = 0, ge = 0, Se = 0, Ne = 0, et = U.length, Oe = et - 1, $e, Ee = "", Le = "", an = "", M = "", _; me < et; ) {
|
|
13562
|
+
if (z = U.charCodeAt(me), me === Oe && k + ie + te + G !== 0 && (k !== 0 && (z = k === 47 ? 10 : 47), ie = te = G = 0, et++, Oe++), k + ie + te + G === 0) {
|
|
13563
13563
|
if (me === Oe && (0 < ge && (Ee = Ee.replace(f, "")), 0 < Ee.trim().length)) {
|
|
13564
13564
|
switch (z) {
|
|
13565
13565
|
case 32:
|
|
@@ -13569,14 +13569,14 @@ function u4(e) {
|
|
|
13569
13569
|
case 10:
|
|
13570
13570
|
break;
|
|
13571
13571
|
default:
|
|
13572
|
-
Ee +=
|
|
13572
|
+
Ee += U.charAt(me);
|
|
13573
13573
|
}
|
|
13574
13574
|
z = 59;
|
|
13575
13575
|
}
|
|
13576
13576
|
switch (z) {
|
|
13577
13577
|
case 123:
|
|
13578
|
-
for (Ee = Ee.trim(),
|
|
13579
|
-
switch (z =
|
|
13578
|
+
for (Ee = Ee.trim(), oe = Ee.charCodeAt(0), he = 1, Ne = ++me; me < et; ) {
|
|
13579
|
+
switch (z = U.charCodeAt(me)) {
|
|
13580
13580
|
case 123:
|
|
13581
13581
|
he++;
|
|
13582
13582
|
break;
|
|
@@ -13584,14 +13584,14 @@ function u4(e) {
|
|
|
13584
13584
|
he--;
|
|
13585
13585
|
break;
|
|
13586
13586
|
case 47:
|
|
13587
|
-
switch (z =
|
|
13587
|
+
switch (z = U.charCodeAt(me + 1)) {
|
|
13588
13588
|
case 42:
|
|
13589
13589
|
case 47:
|
|
13590
13590
|
e: {
|
|
13591
13591
|
for (we = me + 1; we < Oe; ++we)
|
|
13592
|
-
switch (
|
|
13592
|
+
switch (U.charCodeAt(we)) {
|
|
13593
13593
|
case 47:
|
|
13594
|
-
if (z === 42 &&
|
|
13594
|
+
if (z === 42 && U.charCodeAt(we - 1) === 42 && me + 2 !== we) {
|
|
13595
13595
|
me = we + 1;
|
|
13596
13596
|
break e;
|
|
13597
13597
|
}
|
|
@@ -13612,13 +13612,13 @@ function u4(e) {
|
|
|
13612
13612
|
z++;
|
|
13613
13613
|
case 34:
|
|
13614
13614
|
case 39:
|
|
13615
|
-
for (; me++ < Oe &&
|
|
13615
|
+
for (; me++ < Oe && U.charCodeAt(me) !== z; )
|
|
13616
13616
|
;
|
|
13617
13617
|
}
|
|
13618
13618
|
if (he === 0) break;
|
|
13619
13619
|
me++;
|
|
13620
13620
|
}
|
|
13621
|
-
switch (he =
|
|
13621
|
+
switch (he = U.substring(Ne, me), oe === 0 && (oe = (Ee = Ee.replace(d, "").trim()).charCodeAt(0)), oe) {
|
|
13622
13622
|
case 64:
|
|
13623
13623
|
switch (0 < ge && (Ee = Ee.replace(f, "")), z = Ee.charCodeAt(1), z) {
|
|
13624
13624
|
case 100:
|
|
@@ -13630,7 +13630,7 @@ function u4(e) {
|
|
|
13630
13630
|
default:
|
|
13631
13631
|
ge = q;
|
|
13632
13632
|
}
|
|
13633
|
-
if (he = t(I, ge, he, z, O + 1), Ne = he.length, 0 < B && (ge = n(q, Ee, Se), _ = s(3, he, ge, I, F, j, Ne, z, O,
|
|
13633
|
+
if (he = t(I, ge, he, z, O + 1), Ne = he.length, 0 < B && (ge = n(q, Ee, Se), _ = s(3, he, ge, I, F, j, Ne, z, O, re), Ee = ge.join(""), _ !== void 0 && (Ne = (he = _.trim()).length) === 0 && (z = 0, he = "")), 0 < Ne) switch (z) {
|
|
13634
13634
|
case 115:
|
|
13635
13635
|
Ee = Ee.replace(P, i);
|
|
13636
13636
|
case 100:
|
|
@@ -13642,47 +13642,47 @@ function u4(e) {
|
|
|
13642
13642
|
Ee = Ee.replace(b, "$1 $2"), he = Ee + "{" + he + "}", he = ne === 1 || ne === 2 && a("@" + he, 3) ? "@-webkit-" + he + "@" + he : "@" + he;
|
|
13643
13643
|
break;
|
|
13644
13644
|
default:
|
|
13645
|
-
he = Ee + he,
|
|
13645
|
+
he = Ee + he, re === 112 && (he = (Le += he, ""));
|
|
13646
13646
|
}
|
|
13647
13647
|
else he = "";
|
|
13648
13648
|
break;
|
|
13649
13649
|
default:
|
|
13650
|
-
he = t(I, n(I, Ee, Se), he,
|
|
13650
|
+
he = t(I, n(I, Ee, Se), he, re, O + 1);
|
|
13651
13651
|
}
|
|
13652
|
-
an += he, he = Se = ge = we =
|
|
13652
|
+
an += he, he = Se = ge = we = oe = 0, Ee = "", z = U.charCodeAt(++me);
|
|
13653
13653
|
break;
|
|
13654
13654
|
case 125:
|
|
13655
13655
|
case 59:
|
|
13656
|
-
if (Ee = (0 < ge ? Ee.replace(f, "") : Ee).trim(), 1 < (Ne = Ee.length)) switch (we === 0 && (
|
|
13656
|
+
if (Ee = (0 < ge ? Ee.replace(f, "") : Ee).trim(), 1 < (Ne = Ee.length)) switch (we === 0 && (oe = Ee.charCodeAt(0), oe === 45 || 96 < oe && 123 > oe) && (Ne = (Ee = Ee.replace(" ", ":")).length), 0 < B && (_ = s(1, Ee, I, H, F, j, Le.length, re, O, re)) !== void 0 && (Ne = (Ee = _.trim()).length) === 0 && (Ee = "\0\0"), oe = Ee.charCodeAt(0), z = Ee.charCodeAt(1), oe) {
|
|
13657
13657
|
case 0:
|
|
13658
13658
|
break;
|
|
13659
13659
|
case 64:
|
|
13660
13660
|
if (z === 105 || z === 99) {
|
|
13661
|
-
M += Ee +
|
|
13661
|
+
M += Ee + U.charAt(me);
|
|
13662
13662
|
break;
|
|
13663
13663
|
}
|
|
13664
13664
|
default:
|
|
13665
|
-
Ee.charCodeAt(Ne - 1) !== 58 && (Le += o(Ee,
|
|
13665
|
+
Ee.charCodeAt(Ne - 1) !== 58 && (Le += o(Ee, oe, z, Ee.charCodeAt(2)));
|
|
13666
13666
|
}
|
|
13667
|
-
Se = ge = we =
|
|
13667
|
+
Se = ge = we = oe = 0, Ee = "", z = U.charCodeAt(++me);
|
|
13668
13668
|
}
|
|
13669
13669
|
}
|
|
13670
13670
|
switch (z) {
|
|
13671
13671
|
case 13:
|
|
13672
13672
|
case 10:
|
|
13673
|
-
k === 47 ? k = 0 : 1 +
|
|
13673
|
+
k === 47 ? k = 0 : 1 + oe === 0 && re !== 107 && 0 < Ee.length && (ge = 1, Ee += "\0"), 0 < B * Z && s(0, Ee, I, H, F, j, Le.length, re, O, re), j = 1, F++;
|
|
13674
13674
|
break;
|
|
13675
13675
|
case 59:
|
|
13676
13676
|
case 125:
|
|
13677
|
-
if (k +
|
|
13677
|
+
if (k + ie + te + G === 0) {
|
|
13678
13678
|
j++;
|
|
13679
13679
|
break;
|
|
13680
13680
|
}
|
|
13681
13681
|
default:
|
|
13682
|
-
switch (j++, $e =
|
|
13682
|
+
switch (j++, $e = U.charAt(me), z) {
|
|
13683
13683
|
case 9:
|
|
13684
13684
|
case 32:
|
|
13685
|
-
if (
|
|
13685
|
+
if (ie + G + k === 0) switch (se) {
|
|
13686
13686
|
case 44:
|
|
13687
13687
|
case 58:
|
|
13688
13688
|
case 9:
|
|
@@ -13703,54 +13703,54 @@ function u4(e) {
|
|
|
13703
13703
|
$e = "\\v";
|
|
13704
13704
|
break;
|
|
13705
13705
|
case 38:
|
|
13706
|
-
|
|
13706
|
+
ie + k + G === 0 && (ge = Se = 1, $e = "\f" + $e);
|
|
13707
13707
|
break;
|
|
13708
13708
|
case 108:
|
|
13709
|
-
if (
|
|
13709
|
+
if (ie + k + G + K === 0 && 0 < we) switch (me - we) {
|
|
13710
13710
|
case 2:
|
|
13711
|
-
se === 112 &&
|
|
13711
|
+
se === 112 && U.charCodeAt(me - 3) === 58 && (K = se);
|
|
13712
13712
|
case 8:
|
|
13713
|
-
|
|
13713
|
+
ae === 111 && (K = ae);
|
|
13714
13714
|
}
|
|
13715
13715
|
break;
|
|
13716
13716
|
case 58:
|
|
13717
|
-
|
|
13717
|
+
ie + k + G === 0 && (we = me);
|
|
13718
13718
|
break;
|
|
13719
13719
|
case 44:
|
|
13720
|
-
k + te +
|
|
13720
|
+
k + te + ie + G === 0 && (ge = 1, $e += "\r");
|
|
13721
13721
|
break;
|
|
13722
13722
|
case 34:
|
|
13723
13723
|
case 39:
|
|
13724
|
-
k === 0 && (
|
|
13724
|
+
k === 0 && (ie = ie === z ? 0 : ie === 0 ? z : ie);
|
|
13725
13725
|
break;
|
|
13726
13726
|
case 91:
|
|
13727
|
-
|
|
13727
|
+
ie + k + te === 0 && G++;
|
|
13728
13728
|
break;
|
|
13729
13729
|
case 93:
|
|
13730
|
-
|
|
13730
|
+
ie + k + te === 0 && G--;
|
|
13731
13731
|
break;
|
|
13732
13732
|
case 41:
|
|
13733
|
-
|
|
13733
|
+
ie + k + G === 0 && te--;
|
|
13734
13734
|
break;
|
|
13735
13735
|
case 40:
|
|
13736
|
-
if (
|
|
13737
|
-
if (
|
|
13736
|
+
if (ie + k + G === 0) {
|
|
13737
|
+
if (oe === 0) switch (2 * se + 3 * ae) {
|
|
13738
13738
|
case 533:
|
|
13739
13739
|
break;
|
|
13740
13740
|
default:
|
|
13741
|
-
|
|
13741
|
+
oe = 1;
|
|
13742
13742
|
}
|
|
13743
13743
|
te++;
|
|
13744
13744
|
}
|
|
13745
13745
|
break;
|
|
13746
13746
|
case 64:
|
|
13747
|
-
k + te +
|
|
13747
|
+
k + te + ie + G + we + he === 0 && (he = 1);
|
|
13748
13748
|
break;
|
|
13749
13749
|
case 42:
|
|
13750
13750
|
case 47:
|
|
13751
|
-
if (!(0 <
|
|
13751
|
+
if (!(0 < ie + G + te)) switch (k) {
|
|
13752
13752
|
case 0:
|
|
13753
|
-
switch (2 * z + 3 *
|
|
13753
|
+
switch (2 * z + 3 * U.charCodeAt(me + 1)) {
|
|
13754
13754
|
case 235:
|
|
13755
13755
|
k = 47;
|
|
13756
13756
|
break;
|
|
@@ -13759,15 +13759,15 @@ function u4(e) {
|
|
|
13759
13759
|
}
|
|
13760
13760
|
break;
|
|
13761
13761
|
case 42:
|
|
13762
|
-
z === 47 && se === 42 && Ne + 2 !== me && (
|
|
13762
|
+
z === 47 && se === 42 && Ne + 2 !== me && (U.charCodeAt(Ne + 2) === 33 && (Le += U.substring(Ne, me + 1)), $e = "", k = 0);
|
|
13763
13763
|
}
|
|
13764
13764
|
}
|
|
13765
13765
|
k === 0 && (Ee += $e);
|
|
13766
13766
|
}
|
|
13767
|
-
|
|
13767
|
+
ae = se, se = z, me++;
|
|
13768
13768
|
}
|
|
13769
13769
|
if (Ne = Le.length, 0 < Ne) {
|
|
13770
|
-
if (ge = I, 0 < B && (_ = s(2, Le, ge, H, F, j, Ne,
|
|
13770
|
+
if (ge = I, 0 < B && (_ = s(2, Le, ge, H, F, j, Ne, re, O, re), _ !== void 0 && (Le = _).length === 0)) return M + Le + an;
|
|
13771
13771
|
if (Le = ge.join(",") + "{" + Le + "}", ne * K !== 0) {
|
|
13772
13772
|
switch (ne !== 2 || a(Le, 2) || (K = 0), K) {
|
|
13773
13773
|
case 111:
|
|
@@ -13781,39 +13781,39 @@ function u4(e) {
|
|
|
13781
13781
|
}
|
|
13782
13782
|
return M + Le + an;
|
|
13783
13783
|
}
|
|
13784
|
-
function n(H, I,
|
|
13785
|
-
var
|
|
13786
|
-
I =
|
|
13787
|
-
var O =
|
|
13784
|
+
function n(H, I, U) {
|
|
13785
|
+
var re = I.trim().split(v);
|
|
13786
|
+
I = re;
|
|
13787
|
+
var O = re.length, G = H.length;
|
|
13788
13788
|
switch (G) {
|
|
13789
13789
|
case 0:
|
|
13790
13790
|
case 1:
|
|
13791
13791
|
var k = 0;
|
|
13792
13792
|
for (H = G === 0 ? "" : H[0] + " "; k < O; ++k)
|
|
13793
|
-
I[k] = r(H, I[k],
|
|
13793
|
+
I[k] = r(H, I[k], U).trim();
|
|
13794
13794
|
break;
|
|
13795
13795
|
default:
|
|
13796
13796
|
var te = k = 0;
|
|
13797
13797
|
for (I = []; k < O; ++k)
|
|
13798
|
-
for (var
|
|
13799
|
-
I[te++] = r(H[
|
|
13798
|
+
for (var ie = 0; ie < G; ++ie)
|
|
13799
|
+
I[te++] = r(H[ie] + " ", re[k], U).trim();
|
|
13800
13800
|
}
|
|
13801
13801
|
return I;
|
|
13802
13802
|
}
|
|
13803
|
-
function r(H, I,
|
|
13804
|
-
var
|
|
13805
|
-
switch (33 >
|
|
13803
|
+
function r(H, I, U) {
|
|
13804
|
+
var re = I.charCodeAt(0);
|
|
13805
|
+
switch (33 > re && (re = (I = I.trim()).charCodeAt(0)), re) {
|
|
13806
13806
|
case 38:
|
|
13807
13807
|
return I.replace(w, "$1" + H.trim());
|
|
13808
13808
|
case 58:
|
|
13809
13809
|
return H.trim() + I.replace(w, "$1" + H.trim());
|
|
13810
13810
|
default:
|
|
13811
|
-
if (0 < 1 *
|
|
13811
|
+
if (0 < 1 * U && 0 < I.indexOf("\f")) return I.replace(w, (H.charCodeAt(0) === 58 ? "" : "$1") + H.trim());
|
|
13812
13812
|
}
|
|
13813
13813
|
return H + I;
|
|
13814
13814
|
}
|
|
13815
|
-
function o(H, I,
|
|
13816
|
-
var O = H + ";", G = 2 * I + 3 *
|
|
13815
|
+
function o(H, I, U, re) {
|
|
13816
|
+
var O = H + ";", G = 2 * I + 3 * U + 4 * re;
|
|
13817
13817
|
if (G === 944) {
|
|
13818
13818
|
H = O.indexOf(":", 9) + 1;
|
|
13819
13819
|
var k = O.substring(H, O.length - 1).trim();
|
|
@@ -13902,31 +13902,31 @@ function u4(e) {
|
|
|
13902
13902
|
if (O.charCodeAt(3) !== 45 || O.charCodeAt(4) === 122) break;
|
|
13903
13903
|
case 931:
|
|
13904
13904
|
case 953:
|
|
13905
|
-
if ($.test(H) === !0) return (k = H.substring(H.indexOf(":") + 1)).charCodeAt(0) === 115 ? o(H.replace("stretch", "fill-available"), I,
|
|
13905
|
+
if ($.test(H) === !0) return (k = H.substring(H.indexOf(":") + 1)).charCodeAt(0) === 115 ? o(H.replace("stretch", "fill-available"), I, U, re).replace(":fill-available", ":stretch") : O.replace(k, "-webkit-" + k) + O.replace(k, "-moz-" + k.replace("fill-", "")) + O;
|
|
13906
13906
|
break;
|
|
13907
13907
|
case 962:
|
|
13908
|
-
if (O = "-webkit-" + O + (O.charCodeAt(5) === 102 ? "-ms-" + O : "") + O,
|
|
13908
|
+
if (O = "-webkit-" + O + (O.charCodeAt(5) === 102 ? "-ms-" + O : "") + O, U + re === 211 && O.charCodeAt(13) === 105 && 0 < O.indexOf("transform", 10)) return O.substring(0, O.indexOf(";", 27) + 1).replace(m, "$1-webkit-$2") + O;
|
|
13909
13909
|
}
|
|
13910
13910
|
return O;
|
|
13911
13911
|
}
|
|
13912
13912
|
function a(H, I) {
|
|
13913
|
-
var
|
|
13914
|
-
return
|
|
13913
|
+
var U = H.indexOf(I === 1 ? ":" : "{"), re = H.substring(0, I !== 3 ? U : 10);
|
|
13914
|
+
return U = H.substring(U + 1, H.length - 1), ee(I !== 2 ? re : re.replace(T, "$1"), U, I);
|
|
13915
13915
|
}
|
|
13916
13916
|
function i(H, I) {
|
|
13917
|
-
var
|
|
13918
|
-
return
|
|
13917
|
+
var U = o(I, I.charCodeAt(0), I.charCodeAt(1), I.charCodeAt(2));
|
|
13918
|
+
return U !== I + ";" ? U.replace(R, " or ($1)").substring(4) : "(" + I + ")";
|
|
13919
13919
|
}
|
|
13920
|
-
function s(H, I,
|
|
13921
|
-
for (var z = 0, se = I,
|
|
13922
|
-
switch (
|
|
13920
|
+
function s(H, I, U, re, O, G, k, te, ie, oe) {
|
|
13921
|
+
for (var z = 0, se = I, ae; z < B; ++z)
|
|
13922
|
+
switch (ae = X[z].call(u, H, se, U, re, O, G, k, te, ie, oe)) {
|
|
13923
13923
|
case void 0:
|
|
13924
13924
|
case !1:
|
|
13925
13925
|
case !0:
|
|
13926
13926
|
case null:
|
|
13927
13927
|
break;
|
|
13928
13928
|
default:
|
|
13929
|
-
se =
|
|
13929
|
+
se = ae;
|
|
13930
13930
|
}
|
|
13931
13931
|
if (se !== I) return se;
|
|
13932
13932
|
}
|
|
@@ -13938,7 +13938,7 @@ function u4(e) {
|
|
|
13938
13938
|
break;
|
|
13939
13939
|
default:
|
|
13940
13940
|
if (typeof H == "function") X[B++] = H;
|
|
13941
|
-
else if (typeof H == "object") for (var I = 0,
|
|
13941
|
+
else if (typeof H == "object") for (var I = 0, U = H.length; I < U; ++I)
|
|
13942
13942
|
l(H[I]);
|
|
13943
13943
|
else Z = !!H | 0;
|
|
13944
13944
|
}
|
|
@@ -13948,13 +13948,13 @@ function u4(e) {
|
|
|
13948
13948
|
return H = H.prefix, H !== void 0 && (ee = null, H ? typeof H != "function" ? ne = 1 : (ne = 2, ee = H) : ne = 0), c;
|
|
13949
13949
|
}
|
|
13950
13950
|
function u(H, I) {
|
|
13951
|
-
var
|
|
13952
|
-
if (33 >
|
|
13953
|
-
var
|
|
13954
|
-
|
|
13951
|
+
var U = H;
|
|
13952
|
+
if (33 > U.charCodeAt(0) && (U = U.trim()), J = U, U = [J], 0 < B) {
|
|
13953
|
+
var re = s(-1, I, U, U, F, j, 0, 0, 0, 0);
|
|
13954
|
+
re !== void 0 && typeof re == "string" && (I = re);
|
|
13955
13955
|
}
|
|
13956
|
-
var O = t(q,
|
|
13957
|
-
return 0 < B && (
|
|
13956
|
+
var O = t(q, U, I, 0, 0);
|
|
13957
|
+
return 0 < B && (re = s(-2, O, U, U, F, j, O.length, 0, 0, 0), re !== void 0 && (O = re)), J = "", K = 0, j = F = 1, O;
|
|
13958
13958
|
}
|
|
13959
13959
|
var d = /^\0+/g, f = /[\0\r\f]/g, h = /: */g, p = /zoo|gra/, m = /([,: ])(transform)/g, v = /,\r+?/g, w = /([\t\r\n ])*\f?&/g, b = /@(k\w+)\s*(\S*)\s*/, x = /::(place)/g, S = /:(read-only)/g, C = /[svh]\w+-[tblr]{2}/, P = /\(\s*(.*)\s*\)/g, R = /([\s\S]*?);/g, N = /-self|flex-/g, T = /[^]*?(:[rp][el]a[\w-]+)[^]*/, $ = /stretch|:\s*\w+\-(?:conte|avail)/, D = /([^-])(image-set\()/, j = 1, F = 1, K = 0, ne = 1, q = [], X = [], B = 0, ee = null, Z = 0, J = "";
|
|
13960
13960
|
return u.use = l, u.set = c, e !== void 0 && c(e), u;
|
|
@@ -14491,18 +14491,18 @@ function AS(e, t, n) {
|
|
|
14491
14491
|
} : e.shouldForwardProp);
|
|
14492
14492
|
var p, m = new L4(n, d, r ? e.componentStyle : void 0), v = m.isStatic && i.length === 0, w = function(b, x) {
|
|
14493
14493
|
return function(S, C, P, R) {
|
|
14494
|
-
var N = S.attrs, T = S.componentStyle, $ = S.defaultProps, D = S.foldedComponentIds, j = S.shouldForwardProp, F = S.styledComponentId, K = S.target, ne = function(
|
|
14495
|
-
|
|
14496
|
-
var k = Br({}, O, { theme:
|
|
14497
|
-
return G.forEach(function(
|
|
14498
|
-
var
|
|
14499
|
-
for (
|
|
14494
|
+
var N = S.attrs, T = S.componentStyle, $ = S.defaultProps, D = S.foldedComponentIds, j = S.shouldForwardProp, F = S.styledComponentId, K = S.target, ne = function(re, O, G) {
|
|
14495
|
+
re === void 0 && (re = vo);
|
|
14496
|
+
var k = Br({}, O, { theme: re }), te = {};
|
|
14497
|
+
return G.forEach(function(ie) {
|
|
14498
|
+
var oe, z, se, ae = ie;
|
|
14499
|
+
for (oe in Ys(ae) && (ae = ae(k)), ae) k[oe] = te[oe] = oe === "className" ? (z = te[oe], se = ae[oe], z && se ? z + " " + se : z || se) : ae[oe];
|
|
14500
14500
|
}), [k, te];
|
|
14501
|
-
}(J4(C, Rt(DS), $) || vo, C, N), q = ne[0], X = ne[1], B = function(
|
|
14502
|
-
var te = V4(),
|
|
14503
|
-
return
|
|
14501
|
+
}(J4(C, Rt(DS), $) || vo, C, N), q = ne[0], X = ne[1], B = function(re, O, G, k) {
|
|
14502
|
+
var te = V4(), ie = W4(), oe = O ? re.generateAndInjectStyles(vo, te, ie) : re.generateAndInjectStyles(G, te, ie);
|
|
14503
|
+
return oe;
|
|
14504
14504
|
}(T, R, q), ee = P, Z = X.$as || C.$as || X.as || C.as || K, J = vc(Z), H = X !== C ? Br({}, C, {}, X) : C, I = {};
|
|
14505
|
-
for (var
|
|
14505
|
+
for (var U in H) U[0] !== "$" && U !== "as" && (U === "forwardedAs" ? I.as = H[U] : (j ? j(U, w0, Z) : !J || w0(U)) && (I[U] = H[U]));
|
|
14506
14506
|
return C.style && X.style !== C.style && (I.style = Br({}, C.style, {}, X.style)), I.className = Array.prototype.concat(D, F, B !== F ? B : null, C.className, X.className).filter(Boolean).join(" "), I.ref = ee, st(Z, I);
|
|
14507
14507
|
}(p, b, x, v);
|
|
14508
14508
|
};
|
|
@@ -15163,23 +15163,21 @@ const f5 = (e) => {
|
|
|
15163
15163
|
return;
|
|
15164
15164
|
}
|
|
15165
15165
|
return i(N0(r.GW_BASE_URL)), R((B) => {
|
|
15166
|
-
const ee = T0(r.PROXY_API_BASE_URL)
|
|
15167
|
-
|
|
15168
|
-
|
|
15169
|
-
|
|
15170
|
-
|
|
15171
|
-
);
|
|
15172
|
-
const Z = ee.createProxyGetView({
|
|
15166
|
+
const ee = T0(r.PROXY_API_BASE_URL), Z = ee.createProxyFetch({
|
|
15167
|
+
miniappName: t.projectName
|
|
15168
|
+
}), J = async (U, re) => Z(U, re);
|
|
15169
|
+
T(() => J);
|
|
15170
|
+
const H = ee.createProxyGetView({
|
|
15173
15171
|
miniappName: t.projectName,
|
|
15174
15172
|
gwProxyUrl: r.GW_PROXY_URL
|
|
15175
|
-
}),
|
|
15176
|
-
if (typeof
|
|
15173
|
+
}), I = async (U, re, O = {}) => {
|
|
15174
|
+
if (typeof U != "string" || typeof re != "string")
|
|
15177
15175
|
throw new Error(
|
|
15178
|
-
`Invalid parameters: schema and viewName must be strings. Got schema: ${typeof
|
|
15176
|
+
`Invalid parameters: schema and viewName must be strings. Got schema: ${typeof U}, viewName: ${typeof re}`
|
|
15179
15177
|
);
|
|
15180
|
-
return
|
|
15178
|
+
return H(U, re, O);
|
|
15181
15179
|
};
|
|
15182
|
-
return D(() =>
|
|
15180
|
+
return D(() => I), ee;
|
|
15183
15181
|
}), () => {
|
|
15184
15182
|
j && j.close();
|
|
15185
15183
|
};
|
|
@@ -15254,29 +15252,29 @@ var jS = { exports: {} }, Il = {}, fp = { exports: {} };
|
|
|
15254
15252
|
r(t);
|
|
15255
15253
|
})(Uc, function(n) {
|
|
15256
15254
|
function r(k) {
|
|
15257
|
-
return function(
|
|
15258
|
-
return k(
|
|
15255
|
+
return function(ie, oe, z, se, ae, he, we) {
|
|
15256
|
+
return k(ie, oe, we);
|
|
15259
15257
|
};
|
|
15260
15258
|
}
|
|
15261
15259
|
function o(k) {
|
|
15262
|
-
return function(
|
|
15263
|
-
if (!
|
|
15264
|
-
return k(
|
|
15265
|
-
var
|
|
15266
|
-
if (
|
|
15267
|
-
return
|
|
15268
|
-
se.set(
|
|
15269
|
-
var we = k(
|
|
15270
|
-
return se.delete(
|
|
15260
|
+
return function(ie, oe, z, se) {
|
|
15261
|
+
if (!ie || !oe || typeof ie != "object" || typeof oe != "object")
|
|
15262
|
+
return k(ie, oe, z, se);
|
|
15263
|
+
var ae = se.get(ie), he = se.get(oe);
|
|
15264
|
+
if (ae && he)
|
|
15265
|
+
return ae === oe && he === ie;
|
|
15266
|
+
se.set(ie, oe), se.set(oe, ie);
|
|
15267
|
+
var we = k(ie, oe, z, se);
|
|
15268
|
+
return se.delete(ie), se.delete(oe), we;
|
|
15271
15269
|
};
|
|
15272
15270
|
}
|
|
15273
15271
|
function a(k, te) {
|
|
15274
|
-
var
|
|
15275
|
-
for (var
|
|
15276
|
-
|
|
15277
|
-
for (var
|
|
15278
|
-
|
|
15279
|
-
return
|
|
15272
|
+
var ie = {};
|
|
15273
|
+
for (var oe in k)
|
|
15274
|
+
ie[oe] = k[oe];
|
|
15275
|
+
for (var oe in te)
|
|
15276
|
+
ie[oe] = te[oe];
|
|
15277
|
+
return ie;
|
|
15280
15278
|
}
|
|
15281
15279
|
function i(k) {
|
|
15282
15280
|
return k.constructor === Object || k.constructor == null;
|
|
@@ -15289,7 +15287,7 @@ var jS = { exports: {} }, Il = {}, fp = { exports: {} };
|
|
|
15289
15287
|
}
|
|
15290
15288
|
var c = "[object Arguments]", u = "[object Boolean]", d = "[object Date]", f = "[object RegExp]", h = "[object Map]", p = "[object Number]", m = "[object Object]", v = "[object Set]", w = "[object String]", b = Object.prototype.toString;
|
|
15291
15289
|
function x(k) {
|
|
15292
|
-
var te = k.areArraysEqual,
|
|
15290
|
+
var te = k.areArraysEqual, ie = k.areDatesEqual, oe = k.areMapsEqual, z = k.areObjectsEqual, se = k.areRegExpsEqual, ae = k.areSetsEqual, he = k.createIsNestedEqual, we = he(me);
|
|
15293
15291
|
function me(ge, Se, Ne) {
|
|
15294
15292
|
if (ge === Se)
|
|
15295
15293
|
return !0;
|
|
@@ -15301,16 +15299,16 @@ var jS = { exports: {} }, Il = {}, fp = { exports: {} };
|
|
|
15301
15299
|
if (et || Oe)
|
|
15302
15300
|
return et === Oe && te(ge, Se, we, Ne);
|
|
15303
15301
|
var $e = b.call(ge);
|
|
15304
|
-
return $e !== b.call(Se) ? !1 : $e === d ?
|
|
15302
|
+
return $e !== b.call(Se) ? !1 : $e === d ? ie(ge, Se, we, Ne) : $e === f ? se(ge, Se, we, Ne) : $e === h ? oe(ge, Se, we, Ne) : $e === v ? ae(ge, Se, we, Ne) : $e === m || $e === c ? s(ge) || s(Se) ? !1 : z(ge, Se, we, Ne) : $e === u || $e === p || $e === w ? l(ge.valueOf(), Se.valueOf()) : !1;
|
|
15305
15303
|
}
|
|
15306
15304
|
return me;
|
|
15307
15305
|
}
|
|
15308
|
-
function S(k, te,
|
|
15306
|
+
function S(k, te, ie, oe) {
|
|
15309
15307
|
var z = k.length;
|
|
15310
15308
|
if (te.length !== z)
|
|
15311
15309
|
return !1;
|
|
15312
15310
|
for (; z-- > 0; )
|
|
15313
|
-
if (!
|
|
15311
|
+
if (!ie(k[z], te[z], z, z, k, te, oe))
|
|
15314
15312
|
return !1;
|
|
15315
15313
|
return !0;
|
|
15316
15314
|
}
|
|
@@ -15318,34 +15316,34 @@ var jS = { exports: {} }, Il = {}, fp = { exports: {} };
|
|
|
15318
15316
|
function P(k, te) {
|
|
15319
15317
|
return l(k.valueOf(), te.valueOf());
|
|
15320
15318
|
}
|
|
15321
|
-
function R(k, te,
|
|
15319
|
+
function R(k, te, ie, oe) {
|
|
15322
15320
|
var z = k.size === te.size;
|
|
15323
15321
|
if (!z)
|
|
15324
15322
|
return !1;
|
|
15325
15323
|
if (!k.size)
|
|
15326
15324
|
return !0;
|
|
15327
|
-
var se = {},
|
|
15325
|
+
var se = {}, ae = 0;
|
|
15328
15326
|
return k.forEach(function(he, we) {
|
|
15329
15327
|
if (z) {
|
|
15330
15328
|
var me = !1, ge = 0;
|
|
15331
15329
|
te.forEach(function(Se, Ne) {
|
|
15332
|
-
!me && !se[ge] && (me =
|
|
15333
|
-
}),
|
|
15330
|
+
!me && !se[ge] && (me = ie(we, Ne, ae, ge, k, te, oe) && ie(he, Se, we, Ne, k, te, oe)) && (se[ge] = !0), ge++;
|
|
15331
|
+
}), ae++, z = me;
|
|
15334
15332
|
}
|
|
15335
15333
|
}), z;
|
|
15336
15334
|
}
|
|
15337
15335
|
var N = o(R), T = "_owner", $ = Object.prototype.hasOwnProperty;
|
|
15338
|
-
function D(k, te,
|
|
15336
|
+
function D(k, te, ie, oe) {
|
|
15339
15337
|
var z = Object.keys(k), se = z.length;
|
|
15340
15338
|
if (Object.keys(te).length !== se)
|
|
15341
15339
|
return !1;
|
|
15342
|
-
for (var
|
|
15343
|
-
if (
|
|
15340
|
+
for (var ae; se-- > 0; ) {
|
|
15341
|
+
if (ae = z[se], ae === T) {
|
|
15344
15342
|
var he = !!k.$$typeof, we = !!te.$$typeof;
|
|
15345
15343
|
if ((he || we) && he !== we)
|
|
15346
15344
|
return !1;
|
|
15347
15345
|
}
|
|
15348
|
-
if (!$.call(te,
|
|
15346
|
+
if (!$.call(te, ae) || !ie(k[ae], te[ae], ae, ae, k, te, oe))
|
|
15349
15347
|
return !1;
|
|
15350
15348
|
}
|
|
15351
15349
|
return !0;
|
|
@@ -15354,18 +15352,18 @@ var jS = { exports: {} }, Il = {}, fp = { exports: {} };
|
|
|
15354
15352
|
function F(k, te) {
|
|
15355
15353
|
return k.source === te.source && k.flags === te.flags;
|
|
15356
15354
|
}
|
|
15357
|
-
function K(k, te,
|
|
15355
|
+
function K(k, te, ie, oe) {
|
|
15358
15356
|
var z = k.size === te.size;
|
|
15359
15357
|
if (!z)
|
|
15360
15358
|
return !1;
|
|
15361
15359
|
if (!k.size)
|
|
15362
15360
|
return !0;
|
|
15363
15361
|
var se = {};
|
|
15364
|
-
return k.forEach(function(
|
|
15362
|
+
return k.forEach(function(ae, he) {
|
|
15365
15363
|
if (z) {
|
|
15366
15364
|
var we = !1, me = 0;
|
|
15367
15365
|
te.forEach(function(ge, Se) {
|
|
15368
|
-
!we && !se[me] && (we = ae
|
|
15366
|
+
!we && !se[me] && (we = ie(ae, ge, he, Se, k, te, oe)) && (se[me] = !0), me++;
|
|
15369
15367
|
}), z = we;
|
|
15370
15368
|
}
|
|
15371
15369
|
}), z;
|
|
@@ -15400,24 +15398,24 @@ var jS = { exports: {} }, Il = {}, fp = { exports: {} };
|
|
|
15400
15398
|
function I(k, te) {
|
|
15401
15399
|
return H(k, te, /* @__PURE__ */ new WeakMap());
|
|
15402
15400
|
}
|
|
15403
|
-
var
|
|
15401
|
+
var U = x(a(X, {
|
|
15404
15402
|
createIsNestedEqual: function() {
|
|
15405
15403
|
return l;
|
|
15406
15404
|
}
|
|
15407
15405
|
}));
|
|
15408
|
-
function
|
|
15409
|
-
return
|
|
15406
|
+
function re(k, te) {
|
|
15407
|
+
return U(k, te, /* @__PURE__ */ new WeakMap());
|
|
15410
15408
|
}
|
|
15411
15409
|
function O(k) {
|
|
15412
15410
|
return x(a(q, k(q)));
|
|
15413
15411
|
}
|
|
15414
15412
|
function G(k) {
|
|
15415
15413
|
var te = x(a(X, k(X)));
|
|
15416
|
-
return function(
|
|
15417
|
-
return z === void 0 && (z = /* @__PURE__ */ new WeakMap()), te(
|
|
15414
|
+
return function(ie, oe, z) {
|
|
15415
|
+
return z === void 0 && (z = /* @__PURE__ */ new WeakMap()), te(ie, oe, z);
|
|
15418
15416
|
};
|
|
15419
15417
|
}
|
|
15420
|
-
n.circularDeepEqual = I, n.circularShallowEqual =
|
|
15418
|
+
n.circularDeepEqual = I, n.circularShallowEqual = re, n.createCustomCircularEqual = G, n.createCustomEqual = O, n.deepEqual = ee, n.sameValueZeroEqual = l, n.shallowEqual = J, Object.defineProperty(n, "__esModule", { value: !0 });
|
|
15421
15419
|
});
|
|
15422
15420
|
})(fp, fp.exports);
|
|
15423
15421
|
var Qm = fp.exports;
|
|
@@ -22700,7 +22698,7 @@ var hE = "PopperAnchor", pE = y.forwardRef(
|
|
|
22700
22698
|
pE.displayName = hE;
|
|
22701
22699
|
var Kg = "PopperContent", [dV, fV] = uE(Kg), mE = y.forwardRef(
|
|
22702
22700
|
(e, t) => {
|
|
22703
|
-
var G, k, te,
|
|
22701
|
+
var G, k, te, ie, oe, z;
|
|
22704
22702
|
const {
|
|
22705
22703
|
__scopePopper: n,
|
|
22706
22704
|
side: r = "bottom",
|
|
@@ -22742,8 +22740,8 @@ var Kg = "PopperContent", [dV, fV] = uE(Kg), mE = y.forwardRef(
|
|
|
22742
22740
|
l && oV({ ...F }),
|
|
22743
22741
|
aV({
|
|
22744
22742
|
...F,
|
|
22745
|
-
apply: ({ elements: se, rects:
|
|
22746
|
-
const { width: me, height: ge } =
|
|
22743
|
+
apply: ({ elements: se, rects: ae, availableWidth: he, availableHeight: we }) => {
|
|
22744
|
+
const { width: me, height: ge } = ae.reference, Se = se.floating.style;
|
|
22747
22745
|
Se.setProperty("--radix-popper-available-width", `${he}px`), Se.setProperty("--radix-popper-available-height", `${we}px`), Se.setProperty("--radix-popper-anchor-width", `${me}px`), Se.setProperty("--radix-popper-anchor-height", `${ge}px`);
|
|
22748
22746
|
}
|
|
22749
22747
|
}),
|
|
@@ -22755,7 +22753,7 @@ var Kg = "PopperContent", [dV, fV] = uE(Kg), mE = y.forwardRef(
|
|
|
22755
22753
|
bt(() => {
|
|
22756
22754
|
X && (J == null || J());
|
|
22757
22755
|
}, [X, J]);
|
|
22758
|
-
const H = (G = B.arrow) == null ? void 0 : G.x, I = (k = B.arrow) == null ? void 0 : k.y,
|
|
22756
|
+
const H = (G = B.arrow) == null ? void 0 : G.x, I = (k = B.arrow) == null ? void 0 : k.y, U = ((te = B.arrow) == null ? void 0 : te.centerOffset) !== 0, [re, O] = y.useState();
|
|
22759
22757
|
return bt(() => {
|
|
22760
22758
|
w && O(window.getComputedStyle(w).zIndex);
|
|
22761
22759
|
}, [w]), /* @__PURE__ */ g.jsx(
|
|
@@ -22768,10 +22766,10 @@ var Kg = "PopperContent", [dV, fV] = uE(Kg), mE = y.forwardRef(
|
|
|
22768
22766
|
transform: X ? ne.transform : "translate(0, -200%)",
|
|
22769
22767
|
// keep off the page when measuring
|
|
22770
22768
|
minWidth: "max-content",
|
|
22771
|
-
zIndex:
|
|
22769
|
+
zIndex: re,
|
|
22772
22770
|
"--radix-popper-transform-origin": [
|
|
22773
|
-
(
|
|
22774
|
-
(
|
|
22771
|
+
(ie = B.transformOrigin) == null ? void 0 : ie.x,
|
|
22772
|
+
(oe = B.transformOrigin) == null ? void 0 : oe.y
|
|
22775
22773
|
].join(" "),
|
|
22776
22774
|
// hide the content if using the hide middleware and should be hidden
|
|
22777
22775
|
// set visibility to hidden and disable pointer events so the UI behaves
|
|
@@ -22790,7 +22788,7 @@ var Kg = "PopperContent", [dV, fV] = uE(Kg), mE = y.forwardRef(
|
|
|
22790
22788
|
onArrowChange: C,
|
|
22791
22789
|
arrowX: H,
|
|
22792
22790
|
arrowY: I,
|
|
22793
|
-
shouldHideArrow:
|
|
22791
|
+
shouldHideArrow: U,
|
|
22794
22792
|
children: /* @__PURE__ */ g.jsx(
|
|
22795
22793
|
pe.div,
|
|
22796
22794
|
{
|
|
@@ -23158,9 +23156,9 @@ var Ln = "MenuContent", [OV, Jg] = Sa(Ln), ME = y.forwardRef(
|
|
|
23158
23156
|
...m
|
|
23159
23157
|
} = e, v = Ao(Ln, n), w = Zl(Ln, n), b = Xl(n), x = EE(n), S = MV(n), [C, P] = y.useState(null), R = y.useRef(null), N = Ce(t, R, v.onContentChange), T = y.useRef(0), $ = y.useRef(""), D = y.useRef(0), j = y.useRef(null), F = y.useRef("right"), K = y.useRef(0), ne = p ? zl : y.Fragment, q = p ? { as: Jn, allowPinchZoom: !0 } : void 0, X = (ee) => {
|
|
23160
23158
|
var G, k;
|
|
23161
|
-
const Z = $.current + ee, J = S().filter((te) => !te.disabled), H = document.activeElement, I = (G = J.find((te) => te.ref.current === H)) == null ? void 0 : G.textValue,
|
|
23162
|
-
(function te(
|
|
23163
|
-
$.current =
|
|
23159
|
+
const Z = $.current + ee, J = S().filter((te) => !te.disabled), H = document.activeElement, I = (G = J.find((te) => te.ref.current === H)) == null ? void 0 : G.textValue, U = J.map((te) => te.textValue), re = KV(U, Z, I), O = (k = J.find((te) => te.textValue === re)) == null ? void 0 : k.ref.current;
|
|
23160
|
+
(function te(ie) {
|
|
23161
|
+
$.current = ie, window.clearTimeout(T.current), ie !== "" && (T.current = window.setTimeout(() => te(""), 1e3));
|
|
23164
23162
|
})(Z), O && setTimeout(() => O.focus());
|
|
23165
23163
|
};
|
|
23166
23164
|
y.useEffect(() => () => window.clearTimeout(T.current), []), Md();
|
|
@@ -23245,8 +23243,8 @@ var Ln = "MenuContent", [OV, Jg] = Sa(Ln), ME = y.forwardRef(
|
|
|
23245
23243
|
onKeyDown: le(m.onKeyDown, (ee) => {
|
|
23246
23244
|
const J = ee.target.closest("[data-radix-menu-content]") === ee.currentTarget, H = ee.ctrlKey || ee.altKey || ee.metaKey, I = ee.key.length === 1;
|
|
23247
23245
|
J && (ee.key === "Tab" && ee.preventDefault(), !H && I && X(ee.key));
|
|
23248
|
-
const
|
|
23249
|
-
if (ee.target !==
|
|
23246
|
+
const U = R.current;
|
|
23247
|
+
if (ee.target !== U || !PV.includes(ee.key)) return;
|
|
23250
23248
|
ee.preventDefault();
|
|
23251
23249
|
const O = S().filter((G) => !G.disabled).map((G) => G.ref.current);
|
|
23252
23250
|
CE.includes(ee.key) && O.reverse(), qV(O);
|
|
@@ -26263,9 +26261,9 @@ var Wn = 10, [tT, ko] = Xi(da), D7 = "SelectContentImpl", nT = y.forwardRef(
|
|
|
26263
26261
|
}, [x]), Md();
|
|
26264
26262
|
const q = y.useCallback(
|
|
26265
26263
|
(G) => {
|
|
26266
|
-
const [k, ...te] = j().map((z) => z.ref.current), [
|
|
26264
|
+
const [k, ...te] = j().map((z) => z.ref.current), [ie] = te.slice(-1), oe = document.activeElement;
|
|
26267
26265
|
for (const z of G)
|
|
26268
|
-
if (z ===
|
|
26266
|
+
if (z === oe || (z == null || z.scrollIntoView({ block: "nearest" }), z === k && C && (C.scrollTop = 0), z === ie && C && (C.scrollTop = C.scrollHeight), z == null || z.focus(), document.activeElement !== oe)) return;
|
|
26269
26267
|
},
|
|
26270
26268
|
[j, C]
|
|
26271
26269
|
), X = y.useCallback(
|
|
@@ -26279,14 +26277,14 @@ var Wn = 10, [tT, ko] = Xi(da), D7 = "SelectContentImpl", nT = y.forwardRef(
|
|
|
26279
26277
|
y.useEffect(() => {
|
|
26280
26278
|
if (x) {
|
|
26281
26279
|
let G = { x: 0, y: 0 };
|
|
26282
|
-
const k = (
|
|
26283
|
-
var
|
|
26280
|
+
const k = (ie) => {
|
|
26281
|
+
var oe, z;
|
|
26284
26282
|
G = {
|
|
26285
|
-
x: Math.abs(Math.round(
|
|
26286
|
-
y: Math.abs(Math.round(
|
|
26283
|
+
x: Math.abs(Math.round(ie.pageX) - (((oe = ee.current) == null ? void 0 : oe.x) ?? 0)),
|
|
26284
|
+
y: Math.abs(Math.round(ie.pageY) - (((z = ee.current) == null ? void 0 : z.y) ?? 0))
|
|
26287
26285
|
};
|
|
26288
|
-
}, te = (
|
|
26289
|
-
G.x <= 10 && G.y <= 10 ?
|
|
26286
|
+
}, te = (ie) => {
|
|
26287
|
+
G.x <= 10 && G.y <= 10 ? ie.preventDefault() : x.contains(ie.target) || B(!1), document.removeEventListener("pointermove", k), ee.current = null;
|
|
26290
26288
|
};
|
|
26291
26289
|
return ee.current !== null && (document.addEventListener("pointermove", k), document.addEventListener("pointerup", te, { capture: !0, once: !0 })), () => {
|
|
26292
26290
|
document.removeEventListener("pointermove", k), document.removeEventListener("pointerup", te, { capture: !0 });
|
|
@@ -26299,21 +26297,21 @@ var Wn = 10, [tT, ko] = Xi(da), D7 = "SelectContentImpl", nT = y.forwardRef(
|
|
|
26299
26297
|
};
|
|
26300
26298
|
}, [B]);
|
|
26301
26299
|
const [Z, J] = bT((G) => {
|
|
26302
|
-
const k = j().filter((
|
|
26303
|
-
|
|
26300
|
+
const k = j().filter((oe) => !oe.disabled), te = k.find((oe) => oe.ref.current === document.activeElement), ie = xT(k, G, te);
|
|
26301
|
+
ie && setTimeout(() => ie.ref.current.focus());
|
|
26304
26302
|
}), H = y.useCallback(
|
|
26305
26303
|
(G, k, te) => {
|
|
26306
|
-
const
|
|
26307
|
-
(b.value !== void 0 && b.value === k ||
|
|
26304
|
+
const ie = !ne.current && !te;
|
|
26305
|
+
(b.value !== void 0 && b.value === k || ie) && (T(G), ie && (ne.current = !0));
|
|
26308
26306
|
},
|
|
26309
26307
|
[b.value]
|
|
26310
|
-
), I = y.useCallback(() => x == null ? void 0 : x.focus(), [x]),
|
|
26308
|
+
), I = y.useCallback(() => x == null ? void 0 : x.focus(), [x]), U = y.useCallback(
|
|
26311
26309
|
(G, k, te) => {
|
|
26312
|
-
const
|
|
26313
|
-
(b.value !== void 0 && b.value === k ||
|
|
26310
|
+
const ie = !ne.current && !te;
|
|
26311
|
+
(b.value !== void 0 && b.value === k || ie) && D(G);
|
|
26314
26312
|
},
|
|
26315
26313
|
[b.value]
|
|
26316
|
-
),
|
|
26314
|
+
), re = r === "popper" ? Lp : rT, O = re === Lp ? {
|
|
26317
26315
|
side: s,
|
|
26318
26316
|
sideOffset: l,
|
|
26319
26317
|
align: c,
|
|
@@ -26335,7 +26333,7 @@ var Wn = 10, [tT, ko] = Xi(da), D7 = "SelectContentImpl", nT = y.forwardRef(
|
|
|
26335
26333
|
itemRefCallback: H,
|
|
26336
26334
|
selectedItem: N,
|
|
26337
26335
|
onItemLeave: I,
|
|
26338
|
-
itemTextRefCallback:
|
|
26336
|
+
itemTextRefCallback: U,
|
|
26339
26337
|
focusSelectedItem: X,
|
|
26340
26338
|
selectedItemText: $,
|
|
26341
26339
|
position: r,
|
|
@@ -26363,7 +26361,7 @@ var Wn = 10, [tT, ko] = Xi(da), D7 = "SelectContentImpl", nT = y.forwardRef(
|
|
|
26363
26361
|
onFocusOutside: (G) => G.preventDefault(),
|
|
26364
26362
|
onDismiss: () => b.onOpenChange(!1),
|
|
26365
26363
|
children: /* @__PURE__ */ g.jsx(
|
|
26366
|
-
|
|
26364
|
+
re,
|
|
26367
26365
|
{
|
|
26368
26366
|
role: "listbox",
|
|
26369
26367
|
id: b.contentId,
|
|
@@ -26385,12 +26383,12 @@ var Wn = 10, [tT, ko] = Xi(da), D7 = "SelectContentImpl", nT = y.forwardRef(
|
|
|
26385
26383
|
onKeyDown: le(w.onKeyDown, (G) => {
|
|
26386
26384
|
const k = G.ctrlKey || G.altKey || G.metaKey;
|
|
26387
26385
|
if (G.key === "Tab" && G.preventDefault(), !k && G.key.length === 1 && J(G.key), ["ArrowUp", "ArrowDown", "Home", "End"].includes(G.key)) {
|
|
26388
|
-
let
|
|
26389
|
-
if (["ArrowUp", "End"].includes(G.key) && (
|
|
26390
|
-
const
|
|
26391
|
-
|
|
26386
|
+
let ie = j().filter((oe) => !oe.disabled).map((oe) => oe.ref.current);
|
|
26387
|
+
if (["ArrowUp", "End"].includes(G.key) && (ie = ie.slice().reverse()), ["ArrowUp", "ArrowDown"].includes(G.key)) {
|
|
26388
|
+
const oe = G.target, z = ie.indexOf(oe);
|
|
26389
|
+
ie = ie.slice(z + 1);
|
|
26392
26390
|
}
|
|
26393
|
-
setTimeout(() => q(
|
|
26391
|
+
setTimeout(() => q(ie)), G.preventDefault();
|
|
26394
26392
|
}
|
|
26395
26393
|
})
|
|
26396
26394
|
}
|
|
@@ -26409,7 +26407,7 @@ var A7 = "SelectItemAlignedPosition", rT = y.forwardRef((e, t) => {
|
|
|
26409
26407
|
if (a.trigger && a.valueNode && s && c && m && v && w) {
|
|
26410
26408
|
const R = a.trigger.getBoundingClientRect(), N = c.getBoundingClientRect(), T = a.valueNode.getBoundingClientRect(), $ = w.getBoundingClientRect();
|
|
26411
26409
|
if (a.dir !== "rtl") {
|
|
26412
|
-
const
|
|
26410
|
+
const oe = $.left - N.left, z = T.left - oe, se = R.left - z, ae = R.width + se, he = Math.max(ae, N.width), we = window.innerWidth - Wn, me = Qs(z, [
|
|
26413
26411
|
Wn,
|
|
26414
26412
|
// Prevents the content from going off the starting edge of the
|
|
26415
26413
|
// viewport. It may still go off the ending edge, but this can be
|
|
@@ -26418,33 +26416,33 @@ var A7 = "SelectItemAlignedPosition", rT = y.forwardRef((e, t) => {
|
|
|
26418
26416
|
// https://github.com/radix-ui/primitives/issues/2049
|
|
26419
26417
|
Math.max(Wn, we - he)
|
|
26420
26418
|
]);
|
|
26421
|
-
s.style.minWidth =
|
|
26419
|
+
s.style.minWidth = ae + "px", s.style.left = me + "px";
|
|
26422
26420
|
} else {
|
|
26423
|
-
const
|
|
26421
|
+
const oe = N.right - $.right, z = window.innerWidth - T.right - oe, se = window.innerWidth - R.right - z, ae = R.width + se, he = Math.max(ae, N.width), we = window.innerWidth - Wn, me = Qs(z, [
|
|
26424
26422
|
Wn,
|
|
26425
26423
|
Math.max(Wn, we - he)
|
|
26426
26424
|
]);
|
|
26427
|
-
s.style.minWidth =
|
|
26425
|
+
s.style.minWidth = ae + "px", s.style.right = me + "px";
|
|
26428
26426
|
}
|
|
26429
|
-
const D = f(), j = window.innerHeight - Wn * 2, F = m.scrollHeight, K = window.getComputedStyle(c), ne = parseInt(K.borderTopWidth, 10), q = parseInt(K.paddingTop, 10), X = parseInt(K.borderBottomWidth, 10), B = parseInt(K.paddingBottom, 10), ee = ne + q + F + B + X, Z = Math.min(v.offsetHeight * 5, ee), J = window.getComputedStyle(m), H = parseInt(J.paddingTop, 10), I = parseInt(J.paddingBottom, 10),
|
|
26430
|
-
if (k <=
|
|
26431
|
-
const
|
|
26427
|
+
const D = f(), j = window.innerHeight - Wn * 2, F = m.scrollHeight, K = window.getComputedStyle(c), ne = parseInt(K.borderTopWidth, 10), q = parseInt(K.paddingTop, 10), X = parseInt(K.borderBottomWidth, 10), B = parseInt(K.paddingBottom, 10), ee = ne + q + F + B + X, Z = Math.min(v.offsetHeight * 5, ee), J = window.getComputedStyle(m), H = parseInt(J.paddingTop, 10), I = parseInt(J.paddingBottom, 10), U = R.top + R.height / 2 - Wn, re = j - U, O = v.offsetHeight / 2, G = v.offsetTop + O, k = ne + q + G, te = ee - k;
|
|
26428
|
+
if (k <= U) {
|
|
26429
|
+
const oe = D.length > 0 && v === D[D.length - 1].ref.current;
|
|
26432
26430
|
s.style.bottom = "0px";
|
|
26433
26431
|
const z = c.clientHeight - m.offsetTop - m.offsetHeight, se = Math.max(
|
|
26434
|
-
|
|
26432
|
+
re,
|
|
26435
26433
|
O + // viewport might have padding bottom, include it to avoid a scrollable viewport
|
|
26436
|
-
(
|
|
26437
|
-
),
|
|
26438
|
-
s.style.height =
|
|
26434
|
+
(oe ? I : 0) + z + X
|
|
26435
|
+
), ae = k + se;
|
|
26436
|
+
s.style.height = ae + "px";
|
|
26439
26437
|
} else {
|
|
26440
|
-
const
|
|
26438
|
+
const oe = D.length > 0 && v === D[0].ref.current;
|
|
26441
26439
|
s.style.top = "0px";
|
|
26442
26440
|
const se = Math.max(
|
|
26443
|
-
|
|
26441
|
+
U,
|
|
26444
26442
|
ne + m.offsetTop + // viewport might have padding top, include it to avoid a scrollable viewport
|
|
26445
|
-
(
|
|
26443
|
+
(oe ? H : 0) + O
|
|
26446
26444
|
) + te;
|
|
26447
|
-
s.style.height = se + "px", m.scrollTop = k -
|
|
26445
|
+
s.style.height = se + "px", m.scrollTop = k - U + m.offsetTop;
|
|
26448
26446
|
}
|
|
26449
26447
|
s.style.margin = `${Wn}px 0`, s.style.minHeight = Z + "px", s.style.maxHeight = j + "px", r == null || r(), requestAnimationFrame(() => h.current = !0);
|
|
26450
26448
|
}
|
|
@@ -28421,7 +28419,7 @@ const Dt = (e) => {
|
|
|
28421
28419
|
h,
|
|
28422
28420
|
be,
|
|
28423
28421
|
ye
|
|
28424
|
-
], I = () => ["center", "top", "top-right", "right", "bottom-right", "bottom", "bottom-left", "left", "top-left", be, ye],
|
|
28422
|
+
], I = () => ["center", "top", "top-right", "right", "bottom-right", "bottom", "bottom-left", "left", "top-left", be, ye], U = () => ["none", He, be, ye], re = () => ["none", He, be, ye], O = () => [He, be, ye], G = () => [ja, "full", ...P()];
|
|
28425
28423
|
return {
|
|
28426
28424
|
cacheSize: 500,
|
|
28427
28425
|
theme: {
|
|
@@ -30141,56 +30139,56 @@ const Dt = (e) => {
|
|
|
30141
30139
|
* @see https://tailwindcss.com/docs/rotate
|
|
30142
30140
|
*/
|
|
30143
30141
|
rotate: [{
|
|
30144
|
-
rotate:
|
|
30142
|
+
rotate: U()
|
|
30145
30143
|
}],
|
|
30146
30144
|
/**
|
|
30147
30145
|
* Rotate X
|
|
30148
30146
|
* @see https://tailwindcss.com/docs/rotate
|
|
30149
30147
|
*/
|
|
30150
30148
|
"rotate-x": [{
|
|
30151
|
-
"rotate-x":
|
|
30149
|
+
"rotate-x": U()
|
|
30152
30150
|
}],
|
|
30153
30151
|
/**
|
|
30154
30152
|
* Rotate Y
|
|
30155
30153
|
* @see https://tailwindcss.com/docs/rotate
|
|
30156
30154
|
*/
|
|
30157
30155
|
"rotate-y": [{
|
|
30158
|
-
"rotate-y":
|
|
30156
|
+
"rotate-y": U()
|
|
30159
30157
|
}],
|
|
30160
30158
|
/**
|
|
30161
30159
|
* Rotate Z
|
|
30162
30160
|
* @see https://tailwindcss.com/docs/rotate
|
|
30163
30161
|
*/
|
|
30164
30162
|
"rotate-z": [{
|
|
30165
|
-
"rotate-z":
|
|
30163
|
+
"rotate-z": U()
|
|
30166
30164
|
}],
|
|
30167
30165
|
/**
|
|
30168
30166
|
* Scale
|
|
30169
30167
|
* @see https://tailwindcss.com/docs/scale
|
|
30170
30168
|
*/
|
|
30171
30169
|
scale: [{
|
|
30172
|
-
scale:
|
|
30170
|
+
scale: re()
|
|
30173
30171
|
}],
|
|
30174
30172
|
/**
|
|
30175
30173
|
* Scale X
|
|
30176
30174
|
* @see https://tailwindcss.com/docs/scale
|
|
30177
30175
|
*/
|
|
30178
30176
|
"scale-x": [{
|
|
30179
|
-
"scale-x":
|
|
30177
|
+
"scale-x": re()
|
|
30180
30178
|
}],
|
|
30181
30179
|
/**
|
|
30182
30180
|
* Scale Y
|
|
30183
30181
|
* @see https://tailwindcss.com/docs/scale
|
|
30184
30182
|
*/
|
|
30185
30183
|
"scale-y": [{
|
|
30186
|
-
"scale-y":
|
|
30184
|
+
"scale-y": re()
|
|
30187
30185
|
}],
|
|
30188
30186
|
/**
|
|
30189
30187
|
* Scale Z
|
|
30190
30188
|
* @see https://tailwindcss.com/docs/scale
|
|
30191
30189
|
*/
|
|
30192
30190
|
"scale-z": [{
|
|
30193
|
-
"scale-z":
|
|
30191
|
+
"scale-z": re()
|
|
30194
30192
|
}],
|
|
30195
30193
|
/**
|
|
30196
30194
|
* Scale 3D
|
|
@@ -33793,10 +33791,10 @@ function cZ(e, t, n, r, o, a, i, s, l, c, u, d, f, h, p, m, v, w, b) {
|
|
|
33793
33791
|
function se(he) {
|
|
33794
33792
|
(rf(b) || b(z, he)) && O(he);
|
|
33795
33793
|
}
|
|
33796
|
-
const
|
|
33797
|
-
R.add(
|
|
33798
|
-
}, P).add(
|
|
33799
|
-
}).add(
|
|
33794
|
+
const ae = t;
|
|
33795
|
+
R.add(ae, "dragstart", (he) => he.preventDefault(), P).add(ae, "touchmove", () => {
|
|
33796
|
+
}, P).add(ae, "touchend", () => {
|
|
33797
|
+
}).add(ae, "touchstart", se).add(ae, "mousedown", se).add(ae, "touchcancel", k).add(ae, "contextmenu", k).add(ae, "click", te, !0);
|
|
33800
33798
|
}
|
|
33801
33799
|
function J() {
|
|
33802
33800
|
R.clear(), N.clear();
|
|
@@ -33809,12 +33807,12 @@ function cZ(e, t, n, r, o, a, i, s, l, c, u, d, f, h, p, m, v, w, b) {
|
|
|
33809
33807
|
const se = z.nodeName || "";
|
|
33810
33808
|
return C.includes(se);
|
|
33811
33809
|
}
|
|
33812
|
-
function
|
|
33810
|
+
function U() {
|
|
33813
33811
|
return (p ? D : $)[ee ? "mouse" : "touch"];
|
|
33814
33812
|
}
|
|
33815
|
-
function
|
|
33816
|
-
const
|
|
33817
|
-
return p || yt(z) < T ? he : v && se ? he * 0.5 : u.byIndex(
|
|
33813
|
+
function re(z, se) {
|
|
33814
|
+
const ae = d.add(fv(z) * -1), he = u.byDistance(z, !p).distance;
|
|
33815
|
+
return p || yt(z) < T ? he : v && se ? he * 0.5 : u.byIndex(ae.get(), 0).distance;
|
|
33818
33816
|
}
|
|
33819
33817
|
function O(z) {
|
|
33820
33818
|
const se = tm(z, r);
|
|
@@ -33822,26 +33820,26 @@ function cZ(e, t, n, r, o, a, i, s, l, c, u, d, f, h, p, m, v, w, b) {
|
|
|
33822
33820
|
}
|
|
33823
33821
|
function G(z) {
|
|
33824
33822
|
if (!tm(z, r) && z.touches.length >= 2) return k(z);
|
|
33825
|
-
const
|
|
33823
|
+
const ae = a.readPoint(z), he = a.readPoint(z, x), we = ks(ae, K), me = ks(he, ne);
|
|
33826
33824
|
if (!X && !ee && (!z.cancelable || (X = we > me, !X)))
|
|
33827
33825
|
return k(z);
|
|
33828
33826
|
const ge = a.pointerMove(z);
|
|
33829
33827
|
we > m && (B = !0), c.useFriction(0.3).useDuration(0.75), s.start(), o.add(S(ge)), z.preventDefault();
|
|
33830
33828
|
}
|
|
33831
33829
|
function k(z) {
|
|
33832
|
-
const
|
|
33830
|
+
const ae = u.byDistance(0, !1).index !== d.get(), he = a.pointerUp(z) * U(), we = re(S(he), ae), me = oZ(he, we), ge = j - 10 * me, Se = w + me / 50;
|
|
33833
33831
|
X = !1, q = !1, N.clear(), c.useDuration(ge).useFriction(Se), l.distance(we, !p), ee = !1, f.emit("pointerUp");
|
|
33834
33832
|
}
|
|
33835
33833
|
function te(z) {
|
|
33836
33834
|
B && (z.stopPropagation(), z.preventDefault(), B = !1);
|
|
33837
33835
|
}
|
|
33838
|
-
function
|
|
33836
|
+
function ie() {
|
|
33839
33837
|
return q;
|
|
33840
33838
|
}
|
|
33841
33839
|
return {
|
|
33842
33840
|
init: Z,
|
|
33843
33841
|
destroy: J,
|
|
33844
|
-
pointerDown:
|
|
33842
|
+
pointerDown: ie
|
|
33845
33843
|
};
|
|
33846
33844
|
}
|
|
33847
33845
|
function uZ(e, t) {
|
|
@@ -34470,23 +34468,23 @@ function MZ(e, t, n, r, o, a, i) {
|
|
|
34470
34468
|
} = NZ(D, T, $, n, q, o), J = TZ(D, j, v, d, T, $, ee, Z, R), {
|
|
34471
34469
|
snaps: H,
|
|
34472
34470
|
snapsAligned: I
|
|
34473
|
-
} = bZ(D, K, T, $, J),
|
|
34474
|
-
snapsContained:
|
|
34471
|
+
} = bZ(D, K, T, $, J), U = -Yn(H) + Yn(B), {
|
|
34472
|
+
snapsContained: re,
|
|
34475
34473
|
scrollContainLimit: O
|
|
34476
|
-
} = gZ(j,
|
|
34474
|
+
} = gZ(j, U, I, b, R), G = ne ? re : I, {
|
|
34477
34475
|
limit: k
|
|
34478
|
-
} = wZ(
|
|
34476
|
+
} = wZ(U, G, d), te = O$(oc(G), u, d), ie = te.clone(), oe = tl(n), z = ({
|
|
34479
34477
|
dragHandler: A,
|
|
34480
|
-
scrollBody:
|
|
34478
|
+
scrollBody: V,
|
|
34481
34479
|
scrollBounds: Q,
|
|
34482
34480
|
options: {
|
|
34483
34481
|
loop: ce
|
|
34484
34482
|
}
|
|
34485
34483
|
}) => {
|
|
34486
|
-
ce || Q.constrain(A.pointerDown()),
|
|
34484
|
+
ce || Q.constrain(A.pointerDown()), V.seek();
|
|
34487
34485
|
}, se = ({
|
|
34488
34486
|
scrollBody: A,
|
|
34489
|
-
translate:
|
|
34487
|
+
translate: V,
|
|
34490
34488
|
location: Q,
|
|
34491
34489
|
offsetLocation: ce,
|
|
34492
34490
|
previousLocation: Ae,
|
|
@@ -34503,22 +34501,22 @@ function MZ(e, t, n, r, o, a, i) {
|
|
|
34503
34501
|
const ve = A.settled(), Ve = !Ye.shouldConstrain(), We = Xe ? ve : ve && Ve;
|
|
34504
34502
|
We && !at.pointerDown() && (Ue.stop(), _e.emit("settle")), We || _e.emit("scroll");
|
|
34505
34503
|
const ht = Q.get() * ze + Ae.get() * (1 - ze);
|
|
34506
|
-
ce.set(ht), Xe && (tt.loop(A.direction()), Je.loop()),
|
|
34507
|
-
},
|
|
34504
|
+
ce.set(ht), Xe && (tt.loop(A.direction()), Je.loop()), V.to(ce.get());
|
|
34505
|
+
}, ae = sZ(r, o, () => z(E), (A) => se(E, A)), he = 0.68, we = G[te.get()], me = Es(we), ge = Es(we), Se = Es(we), Ne = Es(we), et = pZ(me, Se, ge, Ne, f, he), Oe = _Z(d, G, U, k, Ne), $e = SZ(ae, te, ie, et, Oe, Ne, i), Ee = yZ(k), Le = rl(), an = PZ(t, n, i, m), {
|
|
34508
34506
|
slideRegistry: M
|
|
34509
|
-
} = xZ(ne, b, G, O, J,
|
|
34507
|
+
} = xZ(ne, b, G, O, J, oe), _ = CZ(e, n, M, $e, et, Le, i, P), E = {
|
|
34510
34508
|
ownerDocument: r,
|
|
34511
34509
|
ownerWindow: o,
|
|
34512
34510
|
eventHandler: i,
|
|
34513
34511
|
containerRect: T,
|
|
34514
34512
|
slideRects: $,
|
|
34515
|
-
animation:
|
|
34513
|
+
animation: ae,
|
|
34516
34514
|
axis: D,
|
|
34517
|
-
dragHandler: cZ(D, e, r, o, Ne, uZ(D, o), me,
|
|
34515
|
+
dragHandler: cZ(D, e, r, o, Ne, uZ(D, o), me, ae, $e, et, Oe, te, i, F, h, p, w, he, C),
|
|
34518
34516
|
eventStore: Le,
|
|
34519
34517
|
percentOfView: F,
|
|
34520
34518
|
index: te,
|
|
34521
|
-
indexPrevious:
|
|
34519
|
+
indexPrevious: ie,
|
|
34522
34520
|
limit: k,
|
|
34523
34521
|
location: me,
|
|
34524
34522
|
offsetLocation: Se,
|
|
@@ -34527,17 +34525,17 @@ function MZ(e, t, n, r, o, a, i) {
|
|
|
34527
34525
|
resizeHandler: hZ(t, i, o, n, D, x, N),
|
|
34528
34526
|
scrollBody: et,
|
|
34529
34527
|
scrollBounds: mZ(k, Se, Ne, et, F),
|
|
34530
|
-
scrollLooper: vZ(
|
|
34528
|
+
scrollLooper: vZ(U, k, Se, [me, Se, ge, Ne]),
|
|
34531
34529
|
scrollProgress: Ee,
|
|
34532
34530
|
scrollSnapList: G.map(Ee.get),
|
|
34533
34531
|
scrollSnaps: G,
|
|
34534
34532
|
scrollTarget: Oe,
|
|
34535
34533
|
scrollTo: $e,
|
|
34536
|
-
slideLooper: EZ(D, j,
|
|
34534
|
+
slideLooper: EZ(D, j, U, X, B, H, G, Se, n),
|
|
34537
34535
|
slideFocus: _,
|
|
34538
34536
|
slidesHandler: RZ(t, i, S),
|
|
34539
34537
|
slidesInView: an,
|
|
34540
|
-
slideIndexes:
|
|
34538
|
+
slideIndexes: oe,
|
|
34541
34539
|
slideRegistry: M,
|
|
34542
34540
|
slidesToScroll: J,
|
|
34543
34541
|
target: Ne,
|
|
@@ -34643,33 +34641,33 @@ function Uu(e, t, n) {
|
|
|
34643
34641
|
let v = !1, w, b = c(DZ, Uu.globalOptions), x = c(b), S = [], C, P, R;
|
|
34644
34642
|
function N() {
|
|
34645
34643
|
const {
|
|
34646
|
-
container:
|
|
34644
|
+
container: oe,
|
|
34647
34645
|
slides: z
|
|
34648
34646
|
} = x;
|
|
34649
|
-
P = (em(
|
|
34650
|
-
const
|
|
34651
|
-
R = [].slice.call(
|
|
34652
|
-
}
|
|
34653
|
-
function T(
|
|
34654
|
-
const z = MZ(e, P, R, r, o,
|
|
34655
|
-
if (
|
|
34656
|
-
const se = Object.assign({},
|
|
34647
|
+
P = (em(oe) ? e.querySelector(oe) : oe) || e.children[0];
|
|
34648
|
+
const ae = em(z) ? P.querySelectorAll(z) : z;
|
|
34649
|
+
R = [].slice.call(ae || P.children);
|
|
34650
|
+
}
|
|
34651
|
+
function T(oe) {
|
|
34652
|
+
const z = MZ(e, P, R, r, o, oe, l);
|
|
34653
|
+
if (oe.loop && !z.slideLooper.canLoop()) {
|
|
34654
|
+
const se = Object.assign({}, oe, {
|
|
34657
34655
|
loop: !1
|
|
34658
34656
|
});
|
|
34659
34657
|
return T(se);
|
|
34660
34658
|
}
|
|
34661
34659
|
return z;
|
|
34662
34660
|
}
|
|
34663
|
-
function $(
|
|
34664
|
-
v || (b = c(b,
|
|
34661
|
+
function $(oe, z) {
|
|
34662
|
+
v || (b = c(b, oe), x = u(b), S = z || S, N(), w = T(x), d([b, ...S.map(({
|
|
34665
34663
|
options: se
|
|
34666
|
-
}) => se)]).forEach((se) => s.add(se, "change", D)), x.active && (w.translate.to(w.location.get()), w.animation.init(), w.slidesInView.init(), w.slideFocus.init(
|
|
34664
|
+
}) => se)]).forEach((se) => s.add(se, "change", D)), x.active && (w.translate.to(w.location.get()), w.animation.init(), w.slidesInView.init(), w.slideFocus.init(ie), w.eventHandler.init(ie), w.resizeHandler.init(ie), w.slidesHandler.init(ie), w.options.loop && w.slideLooper.loop(), P.offsetParent && R.length && w.dragHandler.init(ie), C = i.init(ie, S)));
|
|
34667
34665
|
}
|
|
34668
|
-
function D(
|
|
34666
|
+
function D(oe, z) {
|
|
34669
34667
|
const se = J();
|
|
34670
34668
|
j(), $(c({
|
|
34671
34669
|
startIndex: se
|
|
34672
|
-
},
|
|
34670
|
+
}, oe), z), l.emit("reInit");
|
|
34673
34671
|
}
|
|
34674
34672
|
function j() {
|
|
34675
34673
|
w.dragHandler.destroy(), w.eventStore.clear(), w.translate.clear(), w.slideLooper.clear(), w.resizeHandler.destroy(), w.slidesHandler.destroy(), w.slidesInView.destroy(), w.animation.destroy(), i.destroy(), s.clear();
|
|
@@ -34677,16 +34675,16 @@ function Uu(e, t, n) {
|
|
|
34677
34675
|
function F() {
|
|
34678
34676
|
v || (v = !0, s.clear(), j(), l.emit("destroy"), l.clear());
|
|
34679
34677
|
}
|
|
34680
|
-
function K(
|
|
34681
|
-
!x.active || v || (w.scrollBody.useBaseFriction().useDuration(z === !0 ? 0 : x.duration), w.scrollTo.index(
|
|
34678
|
+
function K(oe, z, se) {
|
|
34679
|
+
!x.active || v || (w.scrollBody.useBaseFriction().useDuration(z === !0 ? 0 : x.duration), w.scrollTo.index(oe, se || 0));
|
|
34682
34680
|
}
|
|
34683
|
-
function ne(
|
|
34681
|
+
function ne(oe) {
|
|
34684
34682
|
const z = w.index.add(1).get();
|
|
34685
|
-
K(z,
|
|
34683
|
+
K(z, oe, -1);
|
|
34686
34684
|
}
|
|
34687
|
-
function q(
|
|
34685
|
+
function q(oe) {
|
|
34688
34686
|
const z = w.index.add(-1).get();
|
|
34689
|
-
K(z,
|
|
34687
|
+
K(z, oe, 1);
|
|
34690
34688
|
}
|
|
34691
34689
|
function X() {
|
|
34692
34690
|
return w.index.add(1).get() !== J();
|
|
@@ -34709,10 +34707,10 @@ function Uu(e, t, n) {
|
|
|
34709
34707
|
function I() {
|
|
34710
34708
|
return w.slidesInView.get();
|
|
34711
34709
|
}
|
|
34712
|
-
function
|
|
34710
|
+
function U() {
|
|
34713
34711
|
return w.slidesInView.get(!1);
|
|
34714
34712
|
}
|
|
34715
|
-
function
|
|
34713
|
+
function re() {
|
|
34716
34714
|
return C;
|
|
34717
34715
|
}
|
|
34718
34716
|
function O() {
|
|
@@ -34727,7 +34725,7 @@ function Uu(e, t, n) {
|
|
|
34727
34725
|
function te() {
|
|
34728
34726
|
return R;
|
|
34729
34727
|
}
|
|
34730
|
-
const
|
|
34728
|
+
const ie = {
|
|
34731
34729
|
canScrollNext: X,
|
|
34732
34730
|
canScrollPrev: B,
|
|
34733
34731
|
containerNode: k,
|
|
@@ -34736,7 +34734,7 @@ function Uu(e, t, n) {
|
|
|
34736
34734
|
off: h,
|
|
34737
34735
|
on: f,
|
|
34738
34736
|
emit: p,
|
|
34739
|
-
plugins:
|
|
34737
|
+
plugins: re,
|
|
34740
34738
|
previousScrollSnap: H,
|
|
34741
34739
|
reInit: m,
|
|
34742
34740
|
rootNode: G,
|
|
@@ -34748,9 +34746,9 @@ function Uu(e, t, n) {
|
|
|
34748
34746
|
selectedScrollSnap: J,
|
|
34749
34747
|
slideNodes: te,
|
|
34750
34748
|
slidesInView: I,
|
|
34751
|
-
slidesNotInView:
|
|
34749
|
+
slidesNotInView: U
|
|
34752
34750
|
};
|
|
34753
|
-
return $(t, n), setTimeout(() => l.emit("init"), 0),
|
|
34751
|
+
return $(t, n), setTimeout(() => l.emit("init"), 0), ie;
|
|
34754
34752
|
}
|
|
34755
34753
|
Uu.globalOptions = void 0;
|
|
34756
34754
|
function pv(e = {}, t = []) {
|
|
@@ -35930,12 +35928,12 @@ var GJ = '[cmdk-list-sizer=""]', ps = '[cmdk-group=""]', Nh = '[cmdk-group-items
|
|
|
35930
35928
|
}
|
|
35931
35929
|
}, [d]);
|
|
35932
35930
|
let C = y.useMemo(() => ({ subscribe: (Z) => (s.current.add(Z), () => s.current.delete(Z)), snapshot: () => r.current, setState: (Z, J, H) => {
|
|
35933
|
-
var I,
|
|
35931
|
+
var I, U, re;
|
|
35934
35932
|
if (!Object.is(r.current[Z], J)) {
|
|
35935
35933
|
if (r.current[Z] = J, Z === "search") $(), N(), S(1, T);
|
|
35936
35934
|
else if (Z === "value") if (((I = l.current) == null ? void 0 : I.value) !== void 0) {
|
|
35937
35935
|
let O = J ?? "";
|
|
35938
|
-
(
|
|
35936
|
+
(re = (U = l.current).onValueChange) == null || re.call(U, O);
|
|
35939
35937
|
return;
|
|
35940
35938
|
} else H || S(5, D);
|
|
35941
35939
|
C.emit();
|
|
@@ -35966,23 +35964,23 @@ var GJ = '[cmdk-list-sizer=""]', ps = '[cmdk-group=""]', Nh = '[cmdk-group-items
|
|
|
35966
35964
|
if (!n.current || !r.current.search || l.current.shouldFilter === !1) return;
|
|
35967
35965
|
let Z = r.current.filtered.items, J = [];
|
|
35968
35966
|
r.current.filtered.groups.forEach((I) => {
|
|
35969
|
-
let
|
|
35970
|
-
|
|
35967
|
+
let U = a.current.get(I), re = 0;
|
|
35968
|
+
U.forEach((O) => {
|
|
35971
35969
|
let G = Z.get(O);
|
|
35972
|
-
|
|
35973
|
-
}), J.push([I,
|
|
35970
|
+
re = Math.max(G, re);
|
|
35971
|
+
}), J.push([I, re]);
|
|
35974
35972
|
});
|
|
35975
35973
|
let H = n.current.querySelector(GJ);
|
|
35976
|
-
F().sort((I,
|
|
35977
|
-
var
|
|
35978
|
-
let G = I.getAttribute(kr), k =
|
|
35979
|
-
return ((
|
|
35974
|
+
F().sort((I, U) => {
|
|
35975
|
+
var re, O;
|
|
35976
|
+
let G = I.getAttribute(kr), k = U.getAttribute(kr);
|
|
35977
|
+
return ((re = Z.get(k)) != null ? re : 0) - ((O = Z.get(G)) != null ? O : 0);
|
|
35980
35978
|
}).forEach((I) => {
|
|
35981
|
-
let
|
|
35982
|
-
|
|
35983
|
-
}), J.sort((I,
|
|
35984
|
-
let
|
|
35985
|
-
|
|
35979
|
+
let U = I.closest(Nh);
|
|
35980
|
+
U ? U.appendChild(I.parentElement === U ? I : I.closest(`${Nh} > *`)) : H.appendChild(I.parentElement === H ? I : I.closest(`${Nh} > *`));
|
|
35981
|
+
}), J.sort((I, U) => U[1] - I[1]).forEach((I) => {
|
|
35982
|
+
let U = n.current.querySelector(`${ps}[${kr}="${I[0]}"]`);
|
|
35983
|
+
U == null || U.parentElement.appendChild(U);
|
|
35986
35984
|
});
|
|
35987
35985
|
}
|
|
35988
35986
|
function T() {
|
|
@@ -36024,8 +36022,8 @@ var GJ = '[cmdk-list-sizer=""]', ps = '[cmdk-group=""]', Nh = '[cmdk-group-items
|
|
|
36024
36022
|
}
|
|
36025
36023
|
function ne(Z) {
|
|
36026
36024
|
var J;
|
|
36027
|
-
let H = j(), I = F(),
|
|
36028
|
-
(J = l.current) != null && J.loop && (
|
|
36025
|
+
let H = j(), I = F(), U = I.findIndex((O) => O === H), re = I[U + Z];
|
|
36026
|
+
(J = l.current) != null && J.loop && (re = U + Z < 0 ? I[I.length - 1] : U + Z === I.length ? I[0] : I[U + Z]), re && C.setState("value", re.getAttribute(kr));
|
|
36029
36027
|
}
|
|
36030
36028
|
function q(Z) {
|
|
36031
36029
|
let J = j(), H = J == null ? void 0 : J.closest(ps), I;
|
|
@@ -39813,13 +39811,13 @@ function XD({ open: e, onOpenChange: t, children: n, onDrag: r, onRelease: o, sn
|
|
|
39813
39811
|
document.body.style.pointerEvents = "auto";
|
|
39814
39812
|
}), _e || (document.body.style.pointerEvents = "auto");
|
|
39815
39813
|
}
|
|
39816
|
-
}), [X, B] = L.useState(!1), [ee, Z] = L.useState(!1), [J, H] = L.useState(!1), I = L.useRef(null),
|
|
39817
|
-
a && _e === $e.length - 1 && (
|
|
39814
|
+
}), [X, B] = L.useState(!1), [ee, Z] = L.useState(!1), [J, H] = L.useState(!1), I = L.useRef(null), U = L.useRef(null), re = L.useRef(null), O = L.useRef(null), G = L.useRef(null), k = L.useRef(!1), te = L.useRef(null), ie = L.useRef(0), oe = L.useRef(!1), z = L.useRef(!C), se = L.useRef(0), ae = L.useRef(null), he = L.useRef(((F = ae.current) == null ? void 0 : F.getBoundingClientRect().height) || 0), we = L.useRef(((K = ae.current) == null ? void 0 : K.getBoundingClientRect().width) || 0), me = L.useRef(0), ge = L.useCallback((_e) => {
|
|
39815
|
+
a && _e === $e.length - 1 && (U.current = /* @__PURE__ */ new Date());
|
|
39818
39816
|
}, []), { activeSnapPoint: Se, activeSnapPointIndex: Ne, setActiveSnapPoint: et, onRelease: Oe, snapPointsOffset: $e, onDrag: Ee, shouldFade: Le, getPercentageDragged: an } = Yee({
|
|
39819
39817
|
snapPoints: a,
|
|
39820
39818
|
activeSnapPointProp: h,
|
|
39821
39819
|
setActiveSnapPointProp: p,
|
|
39822
|
-
drawerRef:
|
|
39820
|
+
drawerRef: ae,
|
|
39823
39821
|
fadeFromIndex: f,
|
|
39824
39822
|
overlayRef: I,
|
|
39825
39823
|
onSnapPointChange: ge,
|
|
@@ -39843,19 +39841,19 @@ function XD({ open: e, onOpenChange: t, children: n, onDrag: r, onRelease: o, sn
|
|
|
39843
39841
|
}
|
|
39844
39842
|
function E(_e) {
|
|
39845
39843
|
var Ye, Xe;
|
|
39846
|
-
!u && !a ||
|
|
39844
|
+
!u && !a || ae.current && !ae.current.contains(_e.target) || (he.current = ((Ye = ae.current) == null ? void 0 : Ye.getBoundingClientRect().height) || 0, we.current = ((Xe = ae.current) == null ? void 0 : Xe.getBoundingClientRect().width) || 0, Z(!0), re.current = /* @__PURE__ */ new Date(), HD() && window.addEventListener("touchend", () => k.current = !1, {
|
|
39847
39845
|
once: !0
|
|
39848
|
-
}), _e.target.setPointerCapture(_e.pointerId),
|
|
39846
|
+
}), _e.target.setPointerCapture(_e.pointerId), ie.current = Nt(S) ? _e.pageY : _e.pageX);
|
|
39849
39847
|
}
|
|
39850
39848
|
function A(_e, Ye) {
|
|
39851
39849
|
var Xe;
|
|
39852
39850
|
let ze = _e;
|
|
39853
|
-
const ve = (Xe = window.getSelection()) == null ? void 0 : Xe.toString(), Ve =
|
|
39851
|
+
const ve = (Xe = window.getSelection()) == null ? void 0 : Xe.toString(), Ve = ae.current ? Lc(ae.current, S) : null, We = /* @__PURE__ */ new Date();
|
|
39854
39852
|
if (ze.tagName === "SELECT" || ze.hasAttribute("data-vaul-no-drag") || ze.closest("[data-vaul-no-drag]"))
|
|
39855
39853
|
return !1;
|
|
39856
39854
|
if (S === "right" || S === "left")
|
|
39857
39855
|
return !0;
|
|
39858
|
-
if (
|
|
39856
|
+
if (U.current && We.getTime() - U.current.getTime() < 500)
|
|
39859
39857
|
return !1;
|
|
39860
39858
|
if (Ve !== null && (S === "bottom" ? Ve > 0 : Ve < 0))
|
|
39861
39859
|
return !0;
|
|
@@ -39874,15 +39872,15 @@ function XD({ open: e, onOpenChange: t, children: n, onDrag: r, onRelease: o, sn
|
|
|
39874
39872
|
}
|
|
39875
39873
|
return !0;
|
|
39876
39874
|
}
|
|
39877
|
-
function
|
|
39878
|
-
if (
|
|
39879
|
-
const Ye = S === "bottom" || S === "right" ? 1 : -1, Xe = (
|
|
39875
|
+
function V(_e) {
|
|
39876
|
+
if (ae.current && ee) {
|
|
39877
|
+
const Ye = S === "bottom" || S === "right" ? 1 : -1, Xe = (ie.current - (Nt(S) ? _e.pageY : _e.pageX)) * Ye, ze = Xe > 0, ve = a && !u && !ze;
|
|
39880
39878
|
if (ve && Ne === 0) return;
|
|
39881
39879
|
const Ve = Math.abs(Xe), We = document.querySelector("[data-vaul-drawer-wrapper]"), ht = S === "bottom" || S === "top" ? he.current : we.current;
|
|
39882
39880
|
let Ft = Ve / ht;
|
|
39883
39881
|
const dt = an(Ve, ze);
|
|
39884
39882
|
if (dt !== null && (Ft = dt), ve && Ft >= 1 || !k.current && !A(_e.target, ze)) return;
|
|
39885
|
-
if (
|
|
39883
|
+
if (ae.current.classList.add(Bh), k.current = !0, Mt(ae.current, {
|
|
39886
39884
|
transition: "none"
|
|
39887
39885
|
}), Mt(I.current, {
|
|
39888
39886
|
transition: "none"
|
|
@@ -39890,7 +39888,7 @@ function XD({ open: e, onOpenChange: t, children: n, onDrag: r, onRelease: o, sn
|
|
|
39890
39888
|
draggedDistance: Xe
|
|
39891
39889
|
}), ze && !a) {
|
|
39892
39890
|
const Zt = Uee(Xe), Lt = Math.min(Zt * -1, 0) * Ye;
|
|
39893
|
-
Mt(
|
|
39891
|
+
Mt(ae.current, {
|
|
39894
39892
|
transform: Nt(S) ? `translate3d(0, ${Lt}px, 0)` : `translate3d(${Lt}px, 0, 0)`
|
|
39895
39893
|
});
|
|
39896
39894
|
return;
|
|
@@ -39909,7 +39907,7 @@ function XD({ open: e, onOpenChange: t, children: n, onDrag: r, onRelease: o, sn
|
|
|
39909
39907
|
}
|
|
39910
39908
|
if (!a) {
|
|
39911
39909
|
const Zt = Ve * Ye;
|
|
39912
|
-
Mt(
|
|
39910
|
+
Mt(ae.current, {
|
|
39913
39911
|
transform: Nt(S) ? `translate3d(0, ${Zt}px, 0)` : `translate3d(${Zt}px, 0, 0)`
|
|
39914
39912
|
});
|
|
39915
39913
|
}
|
|
@@ -39922,25 +39920,25 @@ function XD({ open: e, onOpenChange: t, children: n, onDrag: r, onRelease: o, sn
|
|
|
39922
39920
|
}, []), L.useEffect(() => {
|
|
39923
39921
|
var _e;
|
|
39924
39922
|
function Ye() {
|
|
39925
|
-
if (!
|
|
39923
|
+
if (!ae.current || !T) return;
|
|
39926
39924
|
const Xe = document.activeElement;
|
|
39927
|
-
if (mm(Xe) ||
|
|
39925
|
+
if (mm(Xe) || oe.current) {
|
|
39928
39926
|
var ze;
|
|
39929
39927
|
const ve = ((ze = window.visualViewport) == null ? void 0 : ze.height) || 0, Ve = window.innerHeight;
|
|
39930
39928
|
let We = Ve - ve;
|
|
39931
|
-
const ht =
|
|
39929
|
+
const ht = ae.current.getBoundingClientRect().height || 0, Ft = ht > Ve * 0.8;
|
|
39932
39930
|
me.current || (me.current = ht);
|
|
39933
|
-
const dt =
|
|
39934
|
-
if (Math.abs(se.current - We) > 60 && (
|
|
39931
|
+
const dt = ae.current.getBoundingClientRect().top;
|
|
39932
|
+
if (Math.abs(se.current - We) > 60 && (oe.current = !oe.current), a && a.length > 0 && $e && Ne) {
|
|
39935
39933
|
const _t = $e[Ne] || 0;
|
|
39936
39934
|
We += _t;
|
|
39937
39935
|
}
|
|
39938
|
-
if (se.current = We, ht > ve ||
|
|
39939
|
-
const _t =
|
|
39936
|
+
if (se.current = We, ht > ve || oe.current) {
|
|
39937
|
+
const _t = ae.current.getBoundingClientRect().height;
|
|
39940
39938
|
let Zt = _t;
|
|
39941
|
-
_t > ve && (Zt = ve - (Ft ? dt : gm)), m ?
|
|
39942
|
-
} else Mee() || (
|
|
39943
|
-
a && a.length > 0 && !
|
|
39939
|
+
_t > ve && (Zt = ve - (Ft ? dt : gm)), m ? ae.current.style.height = `${_t - Math.max(We, 0)}px` : ae.current.style.height = `${Math.max(Zt, ve - dt)}px`;
|
|
39940
|
+
} else Mee() || (ae.current.style.height = `${me.current}px`);
|
|
39941
|
+
a && a.length > 0 && !oe.current ? ae.current.style.bottom = "0px" : ae.current.style.bottom = `${Math.max(We, 0)}px`;
|
|
39944
39942
|
}
|
|
39945
39943
|
}
|
|
39946
39944
|
return (_e = window.visualViewport) == null || _e.addEventListener("resize", Ye), () => {
|
|
@@ -39958,9 +39956,9 @@ function XD({ open: e, onOpenChange: t, children: n, onDrag: r, onRelease: o, sn
|
|
|
39958
39956
|
}, vt.DURATION * 1e3);
|
|
39959
39957
|
}
|
|
39960
39958
|
function ce() {
|
|
39961
|
-
if (!
|
|
39962
|
-
const _e = document.querySelector("[data-vaul-drawer-wrapper]"), Ye = Lc(
|
|
39963
|
-
Mt(
|
|
39959
|
+
if (!ae.current) return;
|
|
39960
|
+
const _e = document.querySelector("[data-vaul-drawer-wrapper]"), Ye = Lc(ae.current, S);
|
|
39961
|
+
Mt(ae.current, {
|
|
39964
39962
|
transform: "translate3d(0, 0, 0)",
|
|
39965
39963
|
transition: `transform ${vt.DURATION}s cubic-bezier(${vt.EASE.join(",")})`
|
|
39966
39964
|
}), Mt(I.current, {
|
|
@@ -39982,14 +39980,14 @@ function XD({ open: e, onOpenChange: t, children: n, onDrag: r, onRelease: o, sn
|
|
|
39982
39980
|
}, !0);
|
|
39983
39981
|
}
|
|
39984
39982
|
function Ae() {
|
|
39985
|
-
!ee || !
|
|
39983
|
+
!ee || !ae.current || (ae.current.classList.remove(Bh), k.current = !1, Z(!1), O.current = /* @__PURE__ */ new Date());
|
|
39986
39984
|
}
|
|
39987
39985
|
function tt(_e) {
|
|
39988
|
-
if (!ee || !
|
|
39989
|
-
|
|
39990
|
-
const Ye = Lc(
|
|
39991
|
-
if (!_e || !A(_e.target, !1) || !Ye || Number.isNaN(Ye) ||
|
|
39992
|
-
const Xe = O.current.getTime() -
|
|
39986
|
+
if (!ee || !ae.current) return;
|
|
39987
|
+
ae.current.classList.remove(Bh), k.current = !1, Z(!1), O.current = /* @__PURE__ */ new Date();
|
|
39988
|
+
const Ye = Lc(ae.current, S);
|
|
39989
|
+
if (!_e || !A(_e.target, !1) || !Ye || Number.isNaN(Ye) || re.current === null) return;
|
|
39990
|
+
const Xe = O.current.getTime() - re.current.getTime(), ze = ie.current - (Nt(S) ? _e.pageY : _e.pageX), ve = Math.abs(ze) / Xe;
|
|
39993
39991
|
if (ve > 0.05 && (H(!0), setTimeout(() => {
|
|
39994
39992
|
H(!1);
|
|
39995
39993
|
}, 200)), a) {
|
|
@@ -40010,9 +40008,9 @@ function XD({ open: e, onOpenChange: t, children: n, onDrag: r, onRelease: o, sn
|
|
|
40010
40008
|
return;
|
|
40011
40009
|
}
|
|
40012
40010
|
var Ve;
|
|
40013
|
-
const We = Math.min((Ve =
|
|
40011
|
+
const We = Math.min((Ve = ae.current.getBoundingClientRect().height) != null ? Ve : 0, window.innerHeight);
|
|
40014
40012
|
var ht;
|
|
40015
|
-
const Ft = Math.min((ht =
|
|
40013
|
+
const Ft = Math.min((ht = ae.current.getBoundingClientRect().width) != null ? ht : 0, window.innerWidth), dt = S === "left" || S === "right";
|
|
40016
40014
|
if (Math.abs(Ye) >= (dt ? Ft : We) * l) {
|
|
40017
40015
|
Q(), o == null || o(_e, !1);
|
|
40018
40016
|
return;
|
|
@@ -40021,19 +40019,19 @@ function XD({ open: e, onOpenChange: t, children: n, onDrag: r, onRelease: o, sn
|
|
|
40021
40019
|
}
|
|
40022
40020
|
L.useEffect(() => (ne && (Mt(document.documentElement, {
|
|
40023
40021
|
scrollBehavior: "auto"
|
|
40024
|
-
}),
|
|
40022
|
+
}), U.current = /* @__PURE__ */ new Date()), () => {
|
|
40025
40023
|
Hee(document.documentElement, "scrollBehavior");
|
|
40026
40024
|
}), [
|
|
40027
40025
|
ne
|
|
40028
40026
|
]);
|
|
40029
40027
|
function Je(_e) {
|
|
40030
40028
|
const Ye = _e ? (window.innerWidth - zc) / window.innerWidth : 1, Xe = _e ? -16 : 0;
|
|
40031
|
-
te.current && window.clearTimeout(te.current), Mt(
|
|
40029
|
+
te.current && window.clearTimeout(te.current), Mt(ae.current, {
|
|
40032
40030
|
transition: `transform ${vt.DURATION}s cubic-bezier(${vt.EASE.join(",")})`,
|
|
40033
40031
|
transform: Nt(S) ? `scale(${Ye}) translate3d(0, ${Xe}px, 0)` : `scale(${Ye}) translate3d(${Xe}px, 0, 0)`
|
|
40034
|
-
}), !_e &&
|
|
40035
|
-
const ze = Lc(
|
|
40036
|
-
Mt(
|
|
40032
|
+
}), !_e && ae.current && (te.current = setTimeout(() => {
|
|
40033
|
+
const ze = Lc(ae.current, S);
|
|
40034
|
+
Mt(ae.current, {
|
|
40037
40035
|
transition: "none",
|
|
40038
40036
|
transform: Nt(S) ? `translate3d(0, ${ze}px, 0)` : `translate3d(${ze}px, 0, 0)`
|
|
40039
40037
|
});
|
|
@@ -40042,14 +40040,14 @@ function XD({ open: e, onOpenChange: t, children: n, onDrag: r, onRelease: o, sn
|
|
|
40042
40040
|
function at(_e, Ye) {
|
|
40043
40041
|
if (Ye < 0) return;
|
|
40044
40042
|
const Xe = (window.innerWidth - zc) / window.innerWidth, ze = Xe + Ye * (1 - Xe), ve = -16 + Ye * zc;
|
|
40045
|
-
Mt(
|
|
40043
|
+
Mt(ae.current, {
|
|
40046
40044
|
transform: Nt(S) ? `scale(${ze}) translate3d(0, ${ve}px, 0)` : `scale(${ze}) translate3d(${ve}px, 0, 0)`,
|
|
40047
40045
|
transition: "none"
|
|
40048
40046
|
});
|
|
40049
40047
|
}
|
|
40050
40048
|
function Ue(_e, Ye) {
|
|
40051
40049
|
const Xe = Nt(S) ? window.innerHeight : window.innerWidth, ze = Ye ? (Xe - zc) / Xe : 1, ve = Ye ? -16 : 0;
|
|
40052
|
-
Ye && Mt(
|
|
40050
|
+
Ye && Mt(ae.current, {
|
|
40053
40051
|
transition: `transform ${vt.DURATION}s cubic-bezier(${vt.EASE.join(",")})`,
|
|
40054
40052
|
transform: Nt(S) ? `scale(${ze}) translate3d(0, ${ve}px, 0)` : `scale(${ze}) translate3d(${ve}px, 0, 0)`
|
|
40055
40053
|
});
|
|
@@ -40071,12 +40069,12 @@ function XD({ open: e, onOpenChange: t, children: n, onDrag: r, onRelease: o, sn
|
|
|
40071
40069
|
activeSnapPoint: Se,
|
|
40072
40070
|
snapPoints: a,
|
|
40073
40071
|
setActiveSnapPoint: et,
|
|
40074
|
-
drawerRef:
|
|
40072
|
+
drawerRef: ae,
|
|
40075
40073
|
overlayRef: I,
|
|
40076
40074
|
onOpenChange: t,
|
|
40077
40075
|
onPress: E,
|
|
40078
40076
|
onRelease: tt,
|
|
40079
|
-
onDrag:
|
|
40077
|
+
onDrag: V,
|
|
40080
40078
|
dismissible: u,
|
|
40081
40079
|
shouldAnimate: z,
|
|
40082
40080
|
handleOnly: d,
|
|
@@ -40087,7 +40085,7 @@ function XD({ open: e, onOpenChange: t, children: n, onDrag: r, onRelease: o, sn
|
|
|
40087
40085
|
onNestedDrag: at,
|
|
40088
40086
|
onNestedOpenChange: Je,
|
|
40089
40087
|
onNestedRelease: Ue,
|
|
40090
|
-
keyboardIsOpen:
|
|
40088
|
+
keyboardIsOpen: oe,
|
|
40091
40089
|
modal: v,
|
|
40092
40090
|
snapPointsOffset: $e,
|
|
40093
40091
|
activeSnapPointIndex: Ne,
|
|
@@ -42214,15 +42212,15 @@ function CI({
|
|
|
42214
42212
|
},
|
|
42215
42213
|
setLayout: (I) => {
|
|
42216
42214
|
const {
|
|
42217
|
-
onLayout:
|
|
42215
|
+
onLayout: U
|
|
42218
42216
|
} = P.current, {
|
|
42219
|
-
layout:
|
|
42217
|
+
layout: re,
|
|
42220
42218
|
panelDataArray: O
|
|
42221
42219
|
} = R.current, G = wx({
|
|
42222
42220
|
layout: I,
|
|
42223
42221
|
panelConstraints: O.map((k) => k.constraints)
|
|
42224
42222
|
});
|
|
42225
|
-
mx(
|
|
42223
|
+
mx(re, G) || (w(G), R.current.layout = G, U && U(G), Ua(O, G, x.current));
|
|
42226
42224
|
}
|
|
42227
42225
|
}), []), ra(() => {
|
|
42228
42226
|
P.current.autoSaveId = e, P.current.direction = r, P.current.dragState = p, P.current.id = f, P.current.onLayout = i, P.current.storage = l;
|
|
@@ -42241,55 +42239,55 @@ function CI({
|
|
|
42241
42239
|
if (e) {
|
|
42242
42240
|
if (v.length === 0 || v.length !== I.length)
|
|
42243
42241
|
return;
|
|
42244
|
-
let
|
|
42245
|
-
|
|
42246
|
-
const
|
|
42247
|
-
|
|
42242
|
+
let U = vx[e];
|
|
42243
|
+
U == null && (U = mne(wne, vne), vx[e] = U);
|
|
42244
|
+
const re = [...I], O = new Map(S.current);
|
|
42245
|
+
U(e, re, O, v, l);
|
|
42248
42246
|
}
|
|
42249
42247
|
}, [e, v, l]), na(() => {
|
|
42250
42248
|
});
|
|
42251
42249
|
const N = dn((I) => {
|
|
42252
42250
|
const {
|
|
42253
|
-
onLayout:
|
|
42251
|
+
onLayout: U
|
|
42254
42252
|
} = P.current, {
|
|
42255
|
-
layout:
|
|
42253
|
+
layout: re,
|
|
42256
42254
|
panelDataArray: O
|
|
42257
42255
|
} = R.current;
|
|
42258
42256
|
if (I.constraints.collapsible) {
|
|
42259
|
-
const G = O.map((
|
|
42257
|
+
const G = O.map((oe) => oe.constraints), {
|
|
42260
42258
|
collapsedSize: k = 0,
|
|
42261
42259
|
panelSize: te,
|
|
42262
|
-
pivotIndices:
|
|
42263
|
-
} = Wo(O, I,
|
|
42260
|
+
pivotIndices: ie
|
|
42261
|
+
} = Wo(O, I, re);
|
|
42264
42262
|
if (Fe(te != null, `Panel size not found for panel "${I.id}"`), !zr(te, k)) {
|
|
42265
42263
|
S.current.set(I.id, te);
|
|
42266
42264
|
const z = Wa(O, I) === O.length - 1 ? te - k : k - te, se = Rs({
|
|
42267
42265
|
delta: z,
|
|
42268
|
-
initialLayout:
|
|
42266
|
+
initialLayout: re,
|
|
42269
42267
|
panelConstraints: G,
|
|
42270
|
-
pivotIndices:
|
|
42271
|
-
prevLayout:
|
|
42268
|
+
pivotIndices: ie,
|
|
42269
|
+
prevLayout: re,
|
|
42272
42270
|
trigger: "imperative-api"
|
|
42273
42271
|
});
|
|
42274
|
-
Bc(
|
|
42272
|
+
Bc(re, se) || (w(se), R.current.layout = se, U && U(se), Ua(O, se, x.current));
|
|
42275
42273
|
}
|
|
42276
42274
|
}
|
|
42277
|
-
}, []), T = dn((I,
|
|
42275
|
+
}, []), T = dn((I, U) => {
|
|
42278
42276
|
const {
|
|
42279
|
-
onLayout:
|
|
42277
|
+
onLayout: re
|
|
42280
42278
|
} = P.current, {
|
|
42281
42279
|
layout: O,
|
|
42282
42280
|
panelDataArray: G
|
|
42283
42281
|
} = R.current;
|
|
42284
42282
|
if (I.constraints.collapsible) {
|
|
42285
|
-
const k = G.map((
|
|
42283
|
+
const k = G.map((ae) => ae.constraints), {
|
|
42286
42284
|
collapsedSize: te = 0,
|
|
42287
|
-
panelSize:
|
|
42288
|
-
minSize:
|
|
42285
|
+
panelSize: ie = 0,
|
|
42286
|
+
minSize: oe = 0,
|
|
42289
42287
|
pivotIndices: z
|
|
42290
|
-
} = Wo(G, I, O), se =
|
|
42291
|
-
if (zr(
|
|
42292
|
-
const
|
|
42288
|
+
} = Wo(G, I, O), se = U ?? oe;
|
|
42289
|
+
if (zr(ie, te)) {
|
|
42290
|
+
const ae = S.current.get(I.id), he = ae != null && ae >= se ? ae : se, me = Wa(G, I) === G.length - 1 ? ie - he : he - ie, ge = Rs({
|
|
42293
42291
|
delta: me,
|
|
42294
42292
|
initialLayout: O,
|
|
42295
42293
|
panelConstraints: k,
|
|
@@ -42297,54 +42295,54 @@ function CI({
|
|
|
42297
42295
|
prevLayout: O,
|
|
42298
42296
|
trigger: "imperative-api"
|
|
42299
42297
|
});
|
|
42300
|
-
Bc(O, ge) || (w(ge), R.current.layout = ge,
|
|
42298
|
+
Bc(O, ge) || (w(ge), R.current.layout = ge, re && re(ge), Ua(G, ge, x.current));
|
|
42301
42299
|
}
|
|
42302
42300
|
}
|
|
42303
42301
|
}, []), $ = dn((I) => {
|
|
42304
42302
|
const {
|
|
42305
|
-
layout:
|
|
42306
|
-
panelDataArray:
|
|
42303
|
+
layout: U,
|
|
42304
|
+
panelDataArray: re
|
|
42307
42305
|
} = R.current, {
|
|
42308
42306
|
panelSize: O
|
|
42309
|
-
} = Wo(
|
|
42307
|
+
} = Wo(re, I, U);
|
|
42310
42308
|
return Fe(O != null, `Panel size not found for panel "${I.id}"`), O;
|
|
42311
|
-
}, []), D = dn((I,
|
|
42309
|
+
}, []), D = dn((I, U) => {
|
|
42312
42310
|
const {
|
|
42313
|
-
panelDataArray:
|
|
42314
|
-
} = R.current, O = Wa(
|
|
42311
|
+
panelDataArray: re
|
|
42312
|
+
} = R.current, O = Wa(re, I);
|
|
42315
42313
|
return pne({
|
|
42316
|
-
defaultSize:
|
|
42314
|
+
defaultSize: U,
|
|
42317
42315
|
dragState: p,
|
|
42318
42316
|
layout: v,
|
|
42319
|
-
panelData:
|
|
42317
|
+
panelData: re,
|
|
42320
42318
|
panelIndex: O
|
|
42321
42319
|
});
|
|
42322
42320
|
}, [p, v]), j = dn((I) => {
|
|
42323
42321
|
const {
|
|
42324
|
-
layout:
|
|
42325
|
-
panelDataArray:
|
|
42322
|
+
layout: U,
|
|
42323
|
+
panelDataArray: re
|
|
42326
42324
|
} = R.current, {
|
|
42327
42325
|
collapsedSize: O = 0,
|
|
42328
42326
|
collapsible: G,
|
|
42329
42327
|
panelSize: k
|
|
42330
|
-
} = Wo(
|
|
42328
|
+
} = Wo(re, I, U);
|
|
42331
42329
|
return Fe(k != null, `Panel size not found for panel "${I.id}"`), G === !0 && zr(k, O);
|
|
42332
42330
|
}, []), F = dn((I) => {
|
|
42333
42331
|
const {
|
|
42334
|
-
layout:
|
|
42335
|
-
panelDataArray:
|
|
42332
|
+
layout: U,
|
|
42333
|
+
panelDataArray: re
|
|
42336
42334
|
} = R.current, {
|
|
42337
42335
|
collapsedSize: O = 0,
|
|
42338
42336
|
collapsible: G,
|
|
42339
42337
|
panelSize: k
|
|
42340
|
-
} = Wo(
|
|
42338
|
+
} = Wo(re, I, U);
|
|
42341
42339
|
return Fe(k != null, `Panel size not found for panel "${I.id}"`), !G || ga(k, O) > 0;
|
|
42342
42340
|
}, []), K = dn((I) => {
|
|
42343
42341
|
const {
|
|
42344
|
-
panelDataArray:
|
|
42342
|
+
panelDataArray: U
|
|
42345
42343
|
} = R.current;
|
|
42346
|
-
|
|
42347
|
-
const G =
|
|
42344
|
+
U.push(I), U.sort((re, O) => {
|
|
42345
|
+
const G = re.order, k = O.order;
|
|
42348
42346
|
return G == null && k == null ? 0 : G == null ? -1 : k == null ? 1 : G - k;
|
|
42349
42347
|
}), R.current.panelDataArrayChanged = !0, b();
|
|
42350
42348
|
}, [b]);
|
|
@@ -42353,25 +42351,25 @@ function CI({
|
|
|
42353
42351
|
R.current.panelDataArrayChanged = !1;
|
|
42354
42352
|
const {
|
|
42355
42353
|
autoSaveId: I,
|
|
42356
|
-
onLayout:
|
|
42357
|
-
storage:
|
|
42354
|
+
onLayout: U,
|
|
42355
|
+
storage: re
|
|
42358
42356
|
} = P.current, {
|
|
42359
42357
|
layout: O,
|
|
42360
42358
|
panelDataArray: G
|
|
42361
42359
|
} = R.current;
|
|
42362
42360
|
let k = null;
|
|
42363
42361
|
if (I) {
|
|
42364
|
-
const
|
|
42365
|
-
|
|
42362
|
+
const ie = gne(I, G, re);
|
|
42363
|
+
ie && (S.current = new Map(Object.entries(ie.expandToSizes)), k = ie.layout);
|
|
42366
42364
|
}
|
|
42367
42365
|
k == null && (k = hne({
|
|
42368
42366
|
panelDataArray: G
|
|
42369
42367
|
}));
|
|
42370
42368
|
const te = wx({
|
|
42371
42369
|
layout: k,
|
|
42372
|
-
panelConstraints: G.map((
|
|
42370
|
+
panelConstraints: G.map((ie) => ie.constraints)
|
|
42373
42371
|
});
|
|
42374
|
-
mx(O, te) || (w(te), R.current.layout = te,
|
|
42372
|
+
mx(O, te) || (w(te), R.current.layout = te, U && U(te), Ua(G, te, x.current));
|
|
42375
42373
|
}
|
|
42376
42374
|
}), ra(() => {
|
|
42377
42375
|
const I = R.current;
|
|
@@ -42380,77 +42378,77 @@ function CI({
|
|
|
42380
42378
|
};
|
|
42381
42379
|
}, []);
|
|
42382
42380
|
const ne = dn((I) => {
|
|
42383
|
-
let
|
|
42384
|
-
const
|
|
42385
|
-
return
|
|
42381
|
+
let U = !1;
|
|
42382
|
+
const re = h.current;
|
|
42383
|
+
return re && window.getComputedStyle(re, null).getPropertyValue("direction") === "rtl" && (U = !0), function(G) {
|
|
42386
42384
|
G.preventDefault();
|
|
42387
42385
|
const k = h.current;
|
|
42388
42386
|
if (!k)
|
|
42389
42387
|
return () => null;
|
|
42390
42388
|
const {
|
|
42391
42389
|
direction: te,
|
|
42392
|
-
dragState:
|
|
42393
|
-
id:
|
|
42390
|
+
dragState: ie,
|
|
42391
|
+
id: oe,
|
|
42394
42392
|
keyboardResizeBy: z,
|
|
42395
42393
|
onLayout: se
|
|
42396
42394
|
} = P.current, {
|
|
42397
|
-
layout:
|
|
42395
|
+
layout: ae,
|
|
42398
42396
|
panelDataArray: he
|
|
42399
42397
|
} = R.current, {
|
|
42400
42398
|
initialLayout: we
|
|
42401
|
-
} =
|
|
42402
|
-
let ge = fne(G, I, te,
|
|
42399
|
+
} = ie ?? {}, me = vI(oe, I, k);
|
|
42400
|
+
let ge = fne(G, I, te, ie, z, k);
|
|
42403
42401
|
const Se = te === "horizontal";
|
|
42404
|
-
Se &&
|
|
42402
|
+
Se && U && (ge = -ge);
|
|
42405
42403
|
const Ne = he.map(($e) => $e.constraints), et = Rs({
|
|
42406
42404
|
delta: ge,
|
|
42407
|
-
initialLayout: we ??
|
|
42405
|
+
initialLayout: we ?? ae,
|
|
42408
42406
|
panelConstraints: Ne,
|
|
42409
42407
|
pivotIndices: me,
|
|
42410
|
-
prevLayout:
|
|
42408
|
+
prevLayout: ae,
|
|
42411
42409
|
trigger: cI(G) ? "keyboard" : "mouse-or-touch"
|
|
42412
|
-
}), Oe = !Bc(
|
|
42410
|
+
}), Oe = !Bc(ae, et);
|
|
42413
42411
|
(uI(G) || dI(G)) && C.current != ge && (C.current = ge, !Oe && ge !== 0 ? Se ? Uh(I, ge < 0 ? hI : pI) : Uh(I, ge < 0 ? mI : gI) : Uh(I, 0)), Oe && (w(et), R.current.layout = et, se && se(et), Ua(he, et, x.current));
|
|
42414
42412
|
};
|
|
42415
|
-
}, []), q = dn((I,
|
|
42413
|
+
}, []), q = dn((I, U) => {
|
|
42416
42414
|
const {
|
|
42417
|
-
onLayout:
|
|
42415
|
+
onLayout: re
|
|
42418
42416
|
} = P.current, {
|
|
42419
42417
|
layout: O,
|
|
42420
42418
|
panelDataArray: G
|
|
42421
|
-
} = R.current, k = G.map((
|
|
42419
|
+
} = R.current, k = G.map((ae) => ae.constraints), {
|
|
42422
42420
|
panelSize: te,
|
|
42423
|
-
pivotIndices:
|
|
42421
|
+
pivotIndices: ie
|
|
42424
42422
|
} = Wo(G, I, O);
|
|
42425
42423
|
Fe(te != null, `Panel size not found for panel "${I.id}"`);
|
|
42426
|
-
const z = Wa(G, I) === G.length - 1 ? te -
|
|
42424
|
+
const z = Wa(G, I) === G.length - 1 ? te - U : U - te, se = Rs({
|
|
42427
42425
|
delta: z,
|
|
42428
42426
|
initialLayout: O,
|
|
42429
42427
|
panelConstraints: k,
|
|
42430
|
-
pivotIndices:
|
|
42428
|
+
pivotIndices: ie,
|
|
42431
42429
|
prevLayout: O,
|
|
42432
42430
|
trigger: "imperative-api"
|
|
42433
42431
|
});
|
|
42434
|
-
Bc(O, se) || (w(se), R.current.layout = se,
|
|
42435
|
-
}, []), X = dn((I,
|
|
42432
|
+
Bc(O, se) || (w(se), R.current.layout = se, re && re(se), Ua(G, se, x.current));
|
|
42433
|
+
}, []), X = dn((I, U) => {
|
|
42436
42434
|
const {
|
|
42437
|
-
layout:
|
|
42435
|
+
layout: re,
|
|
42438
42436
|
panelDataArray: O
|
|
42439
42437
|
} = R.current, {
|
|
42440
42438
|
collapsedSize: G = 0,
|
|
42441
42439
|
collapsible: k
|
|
42442
|
-
} =
|
|
42440
|
+
} = U, {
|
|
42443
42441
|
collapsedSize: te = 0,
|
|
42444
|
-
collapsible:
|
|
42445
|
-
maxSize:
|
|
42442
|
+
collapsible: ie,
|
|
42443
|
+
maxSize: oe = 100,
|
|
42446
42444
|
minSize: z = 0
|
|
42447
42445
|
} = I.constraints, {
|
|
42448
42446
|
panelSize: se
|
|
42449
|
-
} = Wo(O, I,
|
|
42450
|
-
se != null && (k &&
|
|
42451
|
-
}, [q]), B = dn((I,
|
|
42447
|
+
} = Wo(O, I, re);
|
|
42448
|
+
se != null && (k && ie && zr(se, G) ? zr(G, te) || q(I, te) : se < z ? q(I, z) : se > oe && q(I, oe));
|
|
42449
|
+
}, [q]), B = dn((I, U) => {
|
|
42452
42450
|
const {
|
|
42453
|
-
direction:
|
|
42451
|
+
direction: re
|
|
42454
42452
|
} = P.current, {
|
|
42455
42453
|
layout: O
|
|
42456
42454
|
} = R.current;
|
|
@@ -42458,7 +42456,7 @@ function CI({
|
|
|
42458
42456
|
return;
|
|
42459
42457
|
const G = gf(I, h.current);
|
|
42460
42458
|
Fe(G, `Drag handle element not found for id "${I}"`);
|
|
42461
|
-
const k = bI(
|
|
42459
|
+
const k = bI(re, U);
|
|
42462
42460
|
m({
|
|
42463
42461
|
dragHandleId: I,
|
|
42464
42462
|
dragHandleRect: G.getBoundingClientRect(),
|
|
@@ -42469,9 +42467,9 @@ function CI({
|
|
|
42469
42467
|
m(null);
|
|
42470
42468
|
}, []), Z = dn((I) => {
|
|
42471
42469
|
const {
|
|
42472
|
-
panelDataArray:
|
|
42473
|
-
} = R.current,
|
|
42474
|
-
|
|
42470
|
+
panelDataArray: U
|
|
42471
|
+
} = R.current, re = Wa(U, I);
|
|
42472
|
+
re >= 0 && (U.splice(re, 1), delete x.current[I.id], R.current.panelDataArrayChanged = !0, b());
|
|
42475
42473
|
}, [b]), J = Gte(() => ({
|
|
42476
42474
|
collapsePanel: N,
|
|
42477
42475
|
direction: r,
|
|
@@ -43398,7 +43396,7 @@ function ere(e) {
|
|
|
43398
43396
|
}
|
|
43399
43397
|
const tre = (e) => {
|
|
43400
43398
|
var t, n, r, o, a, i, s, l, c;
|
|
43401
|
-
const { invert: u, toast: d, unstyled: f, interacting: h, setHeights: p, visibleToasts: m, heights: v, index: w, toasts: b, expanded: x, removeToast: S, defaultRichColors: C, closeButton: P, style: R, cancelButtonStyle: N, actionButtonStyle: T, className: $ = "", descriptionClassName: D = "", duration: j, position: F, gap: K, expandByDefault: ne, classNames: q, icons: X, closeButtonAriaLabel: B = "Close toast" } = e, [ee, Z] = L.useState(null), [J, H] = L.useState(null), [I,
|
|
43399
|
+
const { invert: u, toast: d, unstyled: f, interacting: h, setHeights: p, visibleToasts: m, heights: v, index: w, toasts: b, expanded: x, removeToast: S, defaultRichColors: C, closeButton: P, style: R, cancelButtonStyle: N, actionButtonStyle: T, className: $ = "", descriptionClassName: D = "", duration: j, position: F, gap: K, expandByDefault: ne, classNames: q, icons: X, closeButtonAriaLabel: B = "Close toast" } = e, [ee, Z] = L.useState(null), [J, H] = L.useState(null), [I, U] = L.useState(!1), [re, O] = L.useState(!1), [G, k] = L.useState(!1), [te, ie] = L.useState(!1), [oe, z] = L.useState(!1), [se, ae] = L.useState(0), [he, we] = L.useState(0), me = L.useRef(d.duration || j || yx), ge = L.useRef(null), Se = L.useRef(null), Ne = w === 0, et = w + 1 <= m, Oe = d.type, $e = d.dismissible !== !1, Ee = d.className || "", Le = d.descriptionClassName || "", an = L.useMemo(() => v.findIndex((ve) => ve.toastId === d.id) || 0, [
|
|
43402
43400
|
v,
|
|
43403
43401
|
d.id
|
|
43404
43402
|
]), M = L.useMemo(() => {
|
|
@@ -43410,7 +43408,7 @@ const tre = (e) => {
|
|
|
43410
43408
|
]), _ = L.useMemo(() => d.duration || j || yx, [
|
|
43411
43409
|
d.duration,
|
|
43412
43410
|
j
|
|
43413
|
-
]), E = L.useRef(0), A = L.useRef(0),
|
|
43411
|
+
]), E = L.useRef(0), A = L.useRef(0), V = L.useRef(0), Q = L.useRef(null), [ce, Ae] = F.split("-"), tt = L.useMemo(() => v.reduce((ve, Ve, We) => We >= an ? ve : ve + Ve.height, 0), [
|
|
43414
43412
|
v,
|
|
43415
43413
|
an
|
|
43416
43414
|
]), Je = zne(), at = d.invert || u, Ue = Oe === "loading";
|
|
@@ -43422,7 +43420,7 @@ const tre = (e) => {
|
|
|
43422
43420
|
}, [
|
|
43423
43421
|
_
|
|
43424
43422
|
]), L.useEffect(() => {
|
|
43425
|
-
|
|
43423
|
+
U(!0);
|
|
43426
43424
|
}, []), L.useEffect(() => {
|
|
43427
43425
|
const ve = Se.current;
|
|
43428
43426
|
if (ve) {
|
|
@@ -43463,7 +43461,7 @@ const tre = (e) => {
|
|
|
43463
43461
|
d.id
|
|
43464
43462
|
]);
|
|
43465
43463
|
const _e = L.useCallback(() => {
|
|
43466
|
-
O(!0),
|
|
43464
|
+
O(!0), ae(A.current), p((ve) => ve.filter((Ve) => Ve.toastId !== d.id)), setTimeout(() => {
|
|
43467
43465
|
S(d);
|
|
43468
43466
|
}, Qne);
|
|
43469
43467
|
}, [
|
|
@@ -43476,11 +43474,11 @@ const tre = (e) => {
|
|
|
43476
43474
|
if (d.promise && Oe === "loading" || d.duration === 1 / 0 || d.type === "loading") return;
|
|
43477
43475
|
let ve;
|
|
43478
43476
|
return x || h || Je ? (() => {
|
|
43479
|
-
if (
|
|
43477
|
+
if (V.current < E.current) {
|
|
43480
43478
|
const ht = (/* @__PURE__ */ new Date()).getTime() - E.current;
|
|
43481
43479
|
me.current = me.current - ht;
|
|
43482
43480
|
}
|
|
43483
|
-
|
|
43481
|
+
V.current = (/* @__PURE__ */ new Date()).getTime();
|
|
43484
43482
|
})() : (() => {
|
|
43485
43483
|
me.current !== 1 / 0 && (E.current = (/* @__PURE__ */ new Date()).getTime(), ve = setTimeout(() => {
|
|
43486
43484
|
d.onAutoClose == null || d.onAutoClose.call(d, d), _e();
|
|
@@ -43523,8 +43521,8 @@ const tre = (e) => {
|
|
|
43523
43521
|
"data-styled": !(d.jsx || d.unstyled || f),
|
|
43524
43522
|
"data-mounted": I,
|
|
43525
43523
|
"data-promise": !!d.promise,
|
|
43526
|
-
"data-swiped":
|
|
43527
|
-
"data-removed":
|
|
43524
|
+
"data-swiped": oe,
|
|
43525
|
+
"data-removed": re,
|
|
43528
43526
|
"data-visible": et,
|
|
43529
43527
|
"data-y-position": ce,
|
|
43530
43528
|
"data-x-position": Ae,
|
|
@@ -43541,7 +43539,7 @@ const tre = (e) => {
|
|
|
43541
43539
|
"--index": w,
|
|
43542
43540
|
"--toasts-before": w,
|
|
43543
43541
|
"--z-index": b.length - w,
|
|
43544
|
-
"--offset": `${
|
|
43542
|
+
"--offset": `${re ? se : A.current}px`,
|
|
43545
43543
|
"--initial-height": ne ? "auto" : `${he}px`,
|
|
43546
43544
|
...R,
|
|
43547
43545
|
...d.style
|
|
@@ -43550,7 +43548,7 @@ const tre = (e) => {
|
|
|
43550
43548
|
k(!1), Z(null), Q.current = null;
|
|
43551
43549
|
},
|
|
43552
43550
|
onPointerDown: (ve) => {
|
|
43553
|
-
Ue || !$e || (ge.current = /* @__PURE__ */ new Date(),
|
|
43551
|
+
Ue || !$e || (ge.current = /* @__PURE__ */ new Date(), ae(A.current), ve.target.setPointerCapture(ve.pointerId), ve.target.tagName !== "BUTTON" && (k(!0), Q.current = {
|
|
43554
43552
|
x: ve.clientX,
|
|
43555
43553
|
y: ve.clientY
|
|
43556
43554
|
}));
|
|
@@ -43561,7 +43559,7 @@ const tre = (e) => {
|
|
|
43561
43559
|
Q.current = null;
|
|
43562
43560
|
const ht = Number(((ve = Se.current) == null ? void 0 : ve.style.getPropertyValue("--swipe-amount-x").replace("px", "")) || 0), Ft = Number(((Ve = Se.current) == null ? void 0 : Ve.style.getPropertyValue("--swipe-amount-y").replace("px", "")) || 0), dt = (/* @__PURE__ */ new Date()).getTime() - ((We = ge.current) == null ? void 0 : We.getTime()), _t = ee === "x" ? ht : Ft, Zt = Math.abs(_t) / dt;
|
|
43563
43561
|
if (Math.abs(_t) >= Jne || Zt > 0.11) {
|
|
43564
|
-
|
|
43562
|
+
ae(A.current), d.onDismiss == null || d.onDismiss.call(d, d), H(ee === "x" ? ht > 0 ? "right" : "left" : Ft > 0 ? "down" : "up"), _e(), ie(!0);
|
|
43565
43563
|
return;
|
|
43566
43564
|
} else {
|
|
43567
43565
|
var Lt, sn;
|
|
@@ -43681,7 +43679,7 @@ const rre = /* @__PURE__ */ L.forwardRef(function(t, n) {
|
|
|
43681
43679
|
]), [N, T] = L.useState([]), [$, D] = L.useState(!1), [j, F] = L.useState(!1), [K, ne] = L.useState(d !== "system" ? d : typeof window < "u" && window.matchMedia && window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light"), q = L.useRef(null), X = a.join("+").replace(/Key/g, "").replace(/Digit/g, ""), B = L.useRef(null), ee = L.useRef(!1), Z = L.useCallback((J) => {
|
|
43682
43680
|
P((H) => {
|
|
43683
43681
|
var I;
|
|
43684
|
-
return (I = H.find((
|
|
43682
|
+
return (I = H.find((U) => U.id === J.id)) != null && I.delete || hn.dismiss(J.id), H.filter(({ id: U }) => U !== J.id);
|
|
43685
43683
|
});
|
|
43686
43684
|
}, []);
|
|
43687
43685
|
return L.useEffect(() => hn.subscribe((J) => {
|
|
@@ -43698,7 +43696,7 @@ const rre = /* @__PURE__ */ L.forwardRef(function(t, n) {
|
|
|
43698
43696
|
setTimeout(() => {
|
|
43699
43697
|
Pi.flushSync(() => {
|
|
43700
43698
|
P((H) => {
|
|
43701
|
-
const I = H.findIndex((
|
|
43699
|
+
const I = H.findIndex((U) => U.id === J.id);
|
|
43702
43700
|
return I !== -1 ? [
|
|
43703
43701
|
...H.slice(0, I),
|
|
43704
43702
|
{
|
|
@@ -43730,8 +43728,8 @@ const rre = /* @__PURE__ */ L.forwardRef(function(t, n) {
|
|
|
43730
43728
|
J.addListener(({ matches: I }) => {
|
|
43731
43729
|
try {
|
|
43732
43730
|
ne(I ? "dark" : "light");
|
|
43733
|
-
} catch (
|
|
43734
|
-
console.error(
|
|
43731
|
+
} catch (U) {
|
|
43732
|
+
console.error(U);
|
|
43735
43733
|
}
|
|
43736
43734
|
});
|
|
43737
43735
|
}
|
|
@@ -43745,8 +43743,8 @@ const rre = /* @__PURE__ */ L.forwardRef(function(t, n) {
|
|
|
43745
43743
|
const J = (H) => {
|
|
43746
43744
|
var I;
|
|
43747
43745
|
if (a.every((O) => H[O] || H.code === O)) {
|
|
43748
|
-
var
|
|
43749
|
-
D(!0), (
|
|
43746
|
+
var re;
|
|
43747
|
+
D(!0), (re = q.current) == null || re.focus();
|
|
43750
43748
|
}
|
|
43751
43749
|
H.code === "Escape" && (document.activeElement === q.current || (I = q.current) != null && I.contains(document.activeElement)) && D(!1);
|
|
43752
43750
|
};
|
|
@@ -43773,7 +43771,7 @@ const rre = /* @__PURE__ */ L.forwardRef(function(t, n) {
|
|
|
43773
43771
|
suppressHydrationWarning: !0
|
|
43774
43772
|
}, R.map((J, H) => {
|
|
43775
43773
|
var I;
|
|
43776
|
-
const [
|
|
43774
|
+
const [U, re] = J.split("-");
|
|
43777
43775
|
return C.length ? /* @__PURE__ */ L.createElement("ol", {
|
|
43778
43776
|
key: J,
|
|
43779
43777
|
dir: w === "auto" ? bx() : w,
|
|
@@ -43782,9 +43780,9 @@ const rre = /* @__PURE__ */ L.forwardRef(function(t, n) {
|
|
|
43782
43780
|
className: l,
|
|
43783
43781
|
"data-sonner-toaster": !0,
|
|
43784
43782
|
"data-sonner-theme": K,
|
|
43785
|
-
"data-y-position":
|
|
43783
|
+
"data-y-position": U,
|
|
43786
43784
|
"data-lifted": $ && C.length > 1 && !i,
|
|
43787
|
-
"data-x-position":
|
|
43785
|
+
"data-x-position": re,
|
|
43788
43786
|
style: {
|
|
43789
43787
|
"--front-toast-height": `${((I = N[0]) == null ? void 0 : I.height) || 0}px`,
|
|
43790
43788
|
"--width": `${Xne}px`,
|
|
@@ -43833,8 +43831,8 @@ const rre = /* @__PURE__ */ L.forwardRef(function(t, n) {
|
|
|
43833
43831
|
actionButtonStyle: v == null ? void 0 : v.actionButtonStyle,
|
|
43834
43832
|
closeButtonAriaLabel: v == null ? void 0 : v.closeButtonAriaLabel,
|
|
43835
43833
|
removeToast: Z,
|
|
43836
|
-
toasts: C.filter((
|
|
43837
|
-
heights: N.filter((
|
|
43834
|
+
toasts: C.filter((ie) => ie.position == O.position),
|
|
43835
|
+
heights: N.filter((ie) => ie.position == O.position),
|
|
43838
43836
|
setHeights: T,
|
|
43839
43837
|
expandByDefault: i,
|
|
43840
43838
|
gap: b,
|