@strapi/plugin-users-permissions 5.4.2 → 5.5.1
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/admin/src/components/Permissions/PermissionRow/SubCategory.jsx +1 -1
- package/admin/src/pages/EmailTemplates/components/EmailTable.jsx +2 -2
- package/admin/src/pages/Roles/pages/ListPage/components/TableBody.jsx +1 -1
- package/dist/_chunks/{index-Bzdgm3YY.js → index-C3iYythL.js} +22 -17
- package/dist/_chunks/{index-Bzdgm3YY.js.map → index-C3iYythL.js.map} +1 -1
- package/dist/_chunks/{index-og30lh2q.mjs → index-CKD-Sp9s.mjs} +3 -3
- package/dist/_chunks/{index-og30lh2q.mjs.map → index-CKD-Sp9s.mjs.map} +1 -1
- package/dist/_chunks/{index-CH7DTQRg.js → index-CLDK4fmy.js} +3 -4
- package/dist/_chunks/{index-CH7DTQRg.js.map → index-CLDK4fmy.js.map} +1 -1
- package/dist/_chunks/{index-DQjBkqk6.mjs → index-CsqdN7DN.mjs} +4 -4
- package/dist/_chunks/index-CsqdN7DN.mjs.map +1 -0
- package/dist/_chunks/{index-DkLfQU9x.js → index-CuvIhX1e.js} +8 -9
- package/dist/_chunks/{index-DkLfQU9x.js.map → index-CuvIhX1e.js.map} +1 -1
- package/dist/_chunks/{index-B31GwOBY.js → index-D0wS054s.js} +5 -6
- package/dist/_chunks/index-D0wS054s.js.map +1 -0
- package/dist/_chunks/{index-rj9z5xOr.mjs → index-DO8lvE2K.mjs} +5 -5
- package/dist/_chunks/index-DO8lvE2K.mjs.map +1 -0
- package/dist/_chunks/{index-DS3khL98.js → index-LdWx-SAe.js} +7 -8
- package/dist/_chunks/index-LdWx-SAe.js.map +1 -0
- package/dist/_chunks/{index-YiI4HHBF.mjs → index-O1ma7Zwx.mjs} +2 -2
- package/dist/_chunks/{index-YiI4HHBF.mjs.map → index-O1ma7Zwx.mjs.map} +1 -1
- package/dist/_chunks/{index-BnX71_B4-BwTVUy-u.js → index-UvlzzkEs-Be9Y8EXt.js} +236 -359
- package/dist/_chunks/index-UvlzzkEs-Be9Y8EXt.js.map +1 -0
- package/dist/_chunks/{index-BnX71_B4-BeiPUoDw.mjs → index-UvlzzkEs-CkJgvpmE.mjs} +235 -357
- package/dist/_chunks/index-UvlzzkEs-CkJgvpmE.mjs.map +1 -0
- package/dist/_chunks/{index-Dby0-3V3.mjs → index-uRurQtZZ.mjs} +22 -17
- package/dist/_chunks/{index-Dby0-3V3.mjs.map → index-uRurQtZZ.mjs.map} +1 -1
- package/dist/admin/index.js +1 -1
- package/dist/admin/index.mjs +1 -1
- package/package.json +7 -8
- package/server/graphql/types/me.js +1 -0
- package/dist/_chunks/index-B31GwOBY.js.map +0 -1
- package/dist/_chunks/index-BnX71_B4-BeiPUoDw.mjs.map +0 -1
- package/dist/_chunks/index-BnX71_B4-BwTVUy-u.js.map +0 -1
- package/dist/_chunks/index-DQjBkqk6.mjs.map +0 -1
- package/dist/_chunks/index-DS3khL98.js.map +0 -1
- package/dist/_chunks/index-rj9z5xOr.mjs.map +0 -1
|
@@ -10,6 +10,7 @@ import { useCallback, useMemo, useDebugValue, useState, useEffect, useRef, useLa
|
|
|
10
10
|
import { useIntl } from "react-intl";
|
|
11
11
|
import { ArrowLeft, Eye, EyeStriked, WarningCircle, Filter, CaretDown } from "@strapi/icons";
|
|
12
12
|
import "@strapi/icons/symbols";
|
|
13
|
+
import "lodash/trimEnd";
|
|
13
14
|
import createNextState2, { enableES5, isDraftable, isDraft, enablePatches, applyPatches, produceWithPatches, original, produce } from "immer";
|
|
14
15
|
import { shallowEqual, batch, useDispatch, useSelector, useStore } from "react-redux";
|
|
15
16
|
import pipe from "lodash/fp/pipe";
|
|
@@ -32,8 +33,7 @@ function getDefaultExportFromCjs(x) {
|
|
|
32
33
|
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, "default") ? x["default"] : x;
|
|
33
34
|
}
|
|
34
35
|
function getAugmentedNamespace(n) {
|
|
35
|
-
if (n.__esModule)
|
|
36
|
-
return n;
|
|
36
|
+
if (n.__esModule) return n;
|
|
37
37
|
var f2 = n.default;
|
|
38
38
|
if (typeof f2 == "function") {
|
|
39
39
|
var a2 = function a3() {
|
|
@@ -43,8 +43,7 @@ function getAugmentedNamespace(n) {
|
|
|
43
43
|
return f2.apply(this, arguments);
|
|
44
44
|
};
|
|
45
45
|
a2.prototype = f2.prototype;
|
|
46
|
-
} else
|
|
47
|
-
a2 = {};
|
|
46
|
+
} else a2 = {};
|
|
48
47
|
Object.defineProperty(a2, "__esModule", { value: true });
|
|
49
48
|
Object.keys(n).forEach(function(k) {
|
|
50
49
|
var d2 = Object.getOwnPropertyDescriptor(n, k);
|
|
@@ -127,11 +126,12 @@ var hasSymbols$1 = function hasNativeSymbols() {
|
|
|
127
126
|
return hasSymbolSham();
|
|
128
127
|
};
|
|
129
128
|
var test$1 = {
|
|
129
|
+
__proto__: null,
|
|
130
130
|
foo: {}
|
|
131
131
|
};
|
|
132
132
|
var $Object = Object;
|
|
133
133
|
var hasProto$1 = function hasProto() {
|
|
134
|
-
return { __proto__: test$1 }.foo === test$1.foo && !(
|
|
134
|
+
return { __proto__: test$1 }.foo === test$1.foo && !(test$1 instanceof $Object);
|
|
135
135
|
};
|
|
136
136
|
var ERROR_MESSAGE = "Function.prototype.bind called on incompatible ";
|
|
137
137
|
var toStr$1 = Object.prototype.toString;
|
|
@@ -518,8 +518,7 @@ var callBind$1 = { exports: {} };
|
|
|
518
518
|
var esDefineProperty;
|
|
519
519
|
var hasRequiredEsDefineProperty;
|
|
520
520
|
function requireEsDefineProperty() {
|
|
521
|
-
if (hasRequiredEsDefineProperty)
|
|
522
|
-
return esDefineProperty;
|
|
521
|
+
if (hasRequiredEsDefineProperty) return esDefineProperty;
|
|
523
522
|
hasRequiredEsDefineProperty = 1;
|
|
524
523
|
var GetIntrinsic3 = getIntrinsic;
|
|
525
524
|
var $defineProperty2 = GetIntrinsic3("%Object.defineProperty%", true) || false;
|
|
@@ -1988,8 +1987,7 @@ var ActionTypes = {
|
|
|
1988
1987
|
}
|
|
1989
1988
|
};
|
|
1990
1989
|
function isPlainObject$3(obj) {
|
|
1991
|
-
if (typeof obj !== "object" || obj === null)
|
|
1992
|
-
return false;
|
|
1990
|
+
if (typeof obj !== "object" || obj === null) return false;
|
|
1993
1991
|
var proto = obj;
|
|
1994
1992
|
while (Object.getPrototypeOf(proto) !== null) {
|
|
1995
1993
|
proto = Object.getPrototypeOf(proto);
|
|
@@ -1997,10 +1995,8 @@ function isPlainObject$3(obj) {
|
|
|
1997
1995
|
return Object.getPrototypeOf(obj) === proto;
|
|
1998
1996
|
}
|
|
1999
1997
|
function miniKindOf(val) {
|
|
2000
|
-
if (val === void 0)
|
|
2001
|
-
|
|
2002
|
-
if (val === null)
|
|
2003
|
-
return "null";
|
|
1998
|
+
if (val === void 0) return "undefined";
|
|
1999
|
+
if (val === null) return "null";
|
|
2004
2000
|
var type2 = typeof val;
|
|
2005
2001
|
switch (type2) {
|
|
2006
2002
|
case "boolean":
|
|
@@ -2011,12 +2007,9 @@ function miniKindOf(val) {
|
|
|
2011
2007
|
return type2;
|
|
2012
2008
|
}
|
|
2013
2009
|
}
|
|
2014
|
-
if (Array.isArray(val))
|
|
2015
|
-
|
|
2016
|
-
if (
|
|
2017
|
-
return "date";
|
|
2018
|
-
if (isError(val))
|
|
2019
|
-
return "error";
|
|
2010
|
+
if (Array.isArray(val)) return "array";
|
|
2011
|
+
if (isDate$1(val)) return "date";
|
|
2012
|
+
if (isError(val)) return "error";
|
|
2020
2013
|
var constructorName = ctorName(val);
|
|
2021
2014
|
switch (constructorName) {
|
|
2022
2015
|
case "Symbol":
|
|
@@ -2036,8 +2029,7 @@ function isError(val) {
|
|
|
2036
2029
|
return val instanceof Error || typeof val.message === "string" && val.constructor && typeof val.constructor.stackTraceLimit === "number";
|
|
2037
2030
|
}
|
|
2038
2031
|
function isDate$1(val) {
|
|
2039
|
-
if (val instanceof Date)
|
|
2040
|
-
return true;
|
|
2032
|
+
if (val instanceof Date) return true;
|
|
2041
2033
|
return typeof val.toDateString === "function" && typeof val.getDate === "function" && typeof val.setDate === "function";
|
|
2042
2034
|
}
|
|
2043
2035
|
function kindOf$1(val) {
|
|
@@ -2071,8 +2063,7 @@ function getUnexpectedStateShapeWarningMessage(inputState, reducers, action, une
|
|
|
2071
2063
|
unexpectedKeys.forEach(function(key) {
|
|
2072
2064
|
unexpectedKeyCache[key] = true;
|
|
2073
2065
|
});
|
|
2074
|
-
if (action && action.type === ActionTypes.REPLACE)
|
|
2075
|
-
return;
|
|
2066
|
+
if (action && action.type === ActionTypes.REPLACE) return;
|
|
2076
2067
|
if (unexpectedKeys.length > 0) {
|
|
2077
2068
|
return "Unexpected " + (unexpectedKeys.length > 1 ? "keys" : "key") + " " + ('"' + unexpectedKeys.join('", "') + '" found in ' + argumentName + ". ") + "Expected to find one of the known reducer keys instead: " + ('"' + reducerKeys.join('", "') + '". Unexpected keys will be ignored.');
|
|
2078
2069
|
}
|
|
@@ -2332,9 +2323,7 @@ var __extends = /* @__PURE__ */ function() {
|
|
|
2332
2323
|
extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d3, b2) {
|
|
2333
2324
|
d3.__proto__ = b2;
|
|
2334
2325
|
} || function(d3, b2) {
|
|
2335
|
-
for (var p in b2)
|
|
2336
|
-
if (Object.prototype.hasOwnProperty.call(b2, p))
|
|
2337
|
-
d3[p] = b2[p];
|
|
2326
|
+
for (var p in b2) if (Object.prototype.hasOwnProperty.call(b2, p)) d3[p] = b2[p];
|
|
2338
2327
|
};
|
|
2339
2328
|
return extendStatics(d2, b);
|
|
2340
2329
|
};
|
|
@@ -2350,8 +2339,7 @@ var __extends = /* @__PURE__ */ function() {
|
|
|
2350
2339
|
}();
|
|
2351
2340
|
var __generator$1 = function(thisArg, body) {
|
|
2352
2341
|
var _ = { label: 0, sent: function() {
|
|
2353
|
-
if (t[0] & 1)
|
|
2354
|
-
throw t[1];
|
|
2342
|
+
if (t[0] & 1) throw t[1];
|
|
2355
2343
|
return t[1];
|
|
2356
2344
|
}, trys: [], ops: [] }, f2, y, t, g;
|
|
2357
2345
|
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() {
|
|
@@ -2363,64 +2351,58 @@ var __generator$1 = function(thisArg, body) {
|
|
|
2363
2351
|
};
|
|
2364
2352
|
}
|
|
2365
2353
|
function step(op) {
|
|
2366
|
-
if (f2)
|
|
2367
|
-
|
|
2368
|
-
|
|
2369
|
-
|
|
2370
|
-
|
|
2371
|
-
|
|
2372
|
-
|
|
2373
|
-
|
|
2374
|
-
|
|
2375
|
-
|
|
2376
|
-
|
|
2354
|
+
if (f2) throw new TypeError("Generator is already executing.");
|
|
2355
|
+
while (_) try {
|
|
2356
|
+
if (f2 = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
2357
|
+
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
2358
|
+
switch (op[0]) {
|
|
2359
|
+
case 0:
|
|
2360
|
+
case 1:
|
|
2361
|
+
t = op;
|
|
2362
|
+
break;
|
|
2363
|
+
case 4:
|
|
2364
|
+
_.label++;
|
|
2365
|
+
return { value: op[1], done: false };
|
|
2366
|
+
case 5:
|
|
2367
|
+
_.label++;
|
|
2368
|
+
y = op[1];
|
|
2369
|
+
op = [0];
|
|
2370
|
+
continue;
|
|
2371
|
+
case 7:
|
|
2372
|
+
op = _.ops.pop();
|
|
2373
|
+
_.trys.pop();
|
|
2374
|
+
continue;
|
|
2375
|
+
default:
|
|
2376
|
+
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
|
|
2377
|
+
_ = 0;
|
|
2378
|
+
continue;
|
|
2379
|
+
}
|
|
2380
|
+
if (op[0] === 3 && (!t || op[1] > t[0] && op[1] < t[3])) {
|
|
2381
|
+
_.label = op[1];
|
|
2382
|
+
break;
|
|
2383
|
+
}
|
|
2384
|
+
if (op[0] === 6 && _.label < t[1]) {
|
|
2385
|
+
_.label = t[1];
|
|
2377
2386
|
t = op;
|
|
2378
2387
|
break;
|
|
2379
|
-
|
|
2380
|
-
|
|
2381
|
-
|
|
2382
|
-
|
|
2383
|
-
|
|
2384
|
-
|
|
2385
|
-
|
|
2386
|
-
|
|
2387
|
-
|
|
2388
|
-
op = _.ops.pop();
|
|
2389
|
-
_.trys.pop();
|
|
2390
|
-
continue;
|
|
2391
|
-
default:
|
|
2392
|
-
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
|
|
2393
|
-
_ = 0;
|
|
2394
|
-
continue;
|
|
2395
|
-
}
|
|
2396
|
-
if (op[0] === 3 && (!t || op[1] > t[0] && op[1] < t[3])) {
|
|
2397
|
-
_.label = op[1];
|
|
2398
|
-
break;
|
|
2399
|
-
}
|
|
2400
|
-
if (op[0] === 6 && _.label < t[1]) {
|
|
2401
|
-
_.label = t[1];
|
|
2402
|
-
t = op;
|
|
2403
|
-
break;
|
|
2404
|
-
}
|
|
2405
|
-
if (t && _.label < t[2]) {
|
|
2406
|
-
_.label = t[2];
|
|
2407
|
-
_.ops.push(op);
|
|
2408
|
-
break;
|
|
2409
|
-
}
|
|
2410
|
-
if (t[2])
|
|
2411
|
-
_.ops.pop();
|
|
2412
|
-
_.trys.pop();
|
|
2413
|
-
continue;
|
|
2414
|
-
}
|
|
2415
|
-
op = body.call(thisArg, _);
|
|
2416
|
-
} catch (e) {
|
|
2417
|
-
op = [6, e];
|
|
2418
|
-
y = 0;
|
|
2419
|
-
} finally {
|
|
2420
|
-
f2 = t = 0;
|
|
2388
|
+
}
|
|
2389
|
+
if (t && _.label < t[2]) {
|
|
2390
|
+
_.label = t[2];
|
|
2391
|
+
_.ops.push(op);
|
|
2392
|
+
break;
|
|
2393
|
+
}
|
|
2394
|
+
if (t[2]) _.ops.pop();
|
|
2395
|
+
_.trys.pop();
|
|
2396
|
+
continue;
|
|
2421
2397
|
}
|
|
2422
|
-
|
|
2423
|
-
|
|
2398
|
+
op = body.call(thisArg, _);
|
|
2399
|
+
} catch (e) {
|
|
2400
|
+
op = [6, e];
|
|
2401
|
+
y = 0;
|
|
2402
|
+
} finally {
|
|
2403
|
+
f2 = t = 0;
|
|
2404
|
+
}
|
|
2405
|
+
if (op[0] & 5) throw op[1];
|
|
2424
2406
|
return { value: op[0] ? op[1] : void 0, done: true };
|
|
2425
2407
|
}
|
|
2426
2408
|
};
|
|
@@ -2931,8 +2913,7 @@ var createAsyncThunk = function() {
|
|
|
2931
2913
|
case 0:
|
|
2932
2914
|
_c.trys.push([0, 4, , 5]);
|
|
2933
2915
|
conditionResult = (_a = options == null ? void 0 : options.condition) == null ? void 0 : _a.call(options, arg, { getState, extra });
|
|
2934
|
-
if (!isThenable$1(conditionResult))
|
|
2935
|
-
return [3, 2];
|
|
2916
|
+
if (!isThenable$1(conditionResult)) return [3, 2];
|
|
2936
2917
|
return [4, conditionResult];
|
|
2937
2918
|
case 1:
|
|
2938
2919
|
conditionResult = _c.sent();
|
|
@@ -3201,8 +3182,7 @@ typeof queueMicrotask === "function" ? queueMicrotask.bind(typeof window !== "un
|
|
|
3201
3182
|
enableES5();
|
|
3202
3183
|
var __generator = function(thisArg, body) {
|
|
3203
3184
|
var _ = { label: 0, sent: function() {
|
|
3204
|
-
if (t[0] & 1)
|
|
3205
|
-
throw t[1];
|
|
3185
|
+
if (t[0] & 1) throw t[1];
|
|
3206
3186
|
return t[1];
|
|
3207
3187
|
}, trys: [], ops: [] }, f2, y, t, g;
|
|
3208
3188
|
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() {
|
|
@@ -3214,64 +3194,58 @@ var __generator = function(thisArg, body) {
|
|
|
3214
3194
|
};
|
|
3215
3195
|
}
|
|
3216
3196
|
function step(op) {
|
|
3217
|
-
if (f2)
|
|
3218
|
-
|
|
3219
|
-
|
|
3220
|
-
|
|
3221
|
-
|
|
3222
|
-
|
|
3223
|
-
|
|
3224
|
-
|
|
3225
|
-
|
|
3226
|
-
|
|
3227
|
-
|
|
3197
|
+
if (f2) throw new TypeError("Generator is already executing.");
|
|
3198
|
+
while (_) try {
|
|
3199
|
+
if (f2 = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
3200
|
+
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
3201
|
+
switch (op[0]) {
|
|
3202
|
+
case 0:
|
|
3203
|
+
case 1:
|
|
3204
|
+
t = op;
|
|
3205
|
+
break;
|
|
3206
|
+
case 4:
|
|
3207
|
+
_.label++;
|
|
3208
|
+
return { value: op[1], done: false };
|
|
3209
|
+
case 5:
|
|
3210
|
+
_.label++;
|
|
3211
|
+
y = op[1];
|
|
3212
|
+
op = [0];
|
|
3213
|
+
continue;
|
|
3214
|
+
case 7:
|
|
3215
|
+
op = _.ops.pop();
|
|
3216
|
+
_.trys.pop();
|
|
3217
|
+
continue;
|
|
3218
|
+
default:
|
|
3219
|
+
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
|
|
3220
|
+
_ = 0;
|
|
3221
|
+
continue;
|
|
3222
|
+
}
|
|
3223
|
+
if (op[0] === 3 && (!t || op[1] > t[0] && op[1] < t[3])) {
|
|
3224
|
+
_.label = op[1];
|
|
3225
|
+
break;
|
|
3226
|
+
}
|
|
3227
|
+
if (op[0] === 6 && _.label < t[1]) {
|
|
3228
|
+
_.label = t[1];
|
|
3228
3229
|
t = op;
|
|
3229
3230
|
break;
|
|
3230
|
-
|
|
3231
|
-
|
|
3232
|
-
|
|
3233
|
-
|
|
3234
|
-
|
|
3235
|
-
|
|
3236
|
-
|
|
3237
|
-
|
|
3238
|
-
|
|
3239
|
-
op = _.ops.pop();
|
|
3240
|
-
_.trys.pop();
|
|
3241
|
-
continue;
|
|
3242
|
-
default:
|
|
3243
|
-
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
|
|
3244
|
-
_ = 0;
|
|
3245
|
-
continue;
|
|
3246
|
-
}
|
|
3247
|
-
if (op[0] === 3 && (!t || op[1] > t[0] && op[1] < t[3])) {
|
|
3248
|
-
_.label = op[1];
|
|
3249
|
-
break;
|
|
3250
|
-
}
|
|
3251
|
-
if (op[0] === 6 && _.label < t[1]) {
|
|
3252
|
-
_.label = t[1];
|
|
3253
|
-
t = op;
|
|
3254
|
-
break;
|
|
3255
|
-
}
|
|
3256
|
-
if (t && _.label < t[2]) {
|
|
3257
|
-
_.label = t[2];
|
|
3258
|
-
_.ops.push(op);
|
|
3259
|
-
break;
|
|
3260
|
-
}
|
|
3261
|
-
if (t[2])
|
|
3262
|
-
_.ops.pop();
|
|
3263
|
-
_.trys.pop();
|
|
3264
|
-
continue;
|
|
3265
|
-
}
|
|
3266
|
-
op = body.call(thisArg, _);
|
|
3267
|
-
} catch (e) {
|
|
3268
|
-
op = [6, e];
|
|
3269
|
-
y = 0;
|
|
3270
|
-
} finally {
|
|
3271
|
-
f2 = t = 0;
|
|
3231
|
+
}
|
|
3232
|
+
if (t && _.label < t[2]) {
|
|
3233
|
+
_.label = t[2];
|
|
3234
|
+
_.ops.push(op);
|
|
3235
|
+
break;
|
|
3236
|
+
}
|
|
3237
|
+
if (t[2]) _.ops.pop();
|
|
3238
|
+
_.trys.pop();
|
|
3239
|
+
continue;
|
|
3272
3240
|
}
|
|
3273
|
-
|
|
3274
|
-
|
|
3241
|
+
op = body.call(thisArg, _);
|
|
3242
|
+
} catch (e) {
|
|
3243
|
+
op = [6, e];
|
|
3244
|
+
y = 0;
|
|
3245
|
+
} finally {
|
|
3246
|
+
f2 = t = 0;
|
|
3247
|
+
}
|
|
3248
|
+
if (op[0] & 5) throw op[1];
|
|
3275
3249
|
return { value: op[0] ? op[1] : void 0, done: true };
|
|
3276
3250
|
}
|
|
3277
3251
|
};
|
|
@@ -3737,13 +3711,11 @@ function buildThunks(_j) {
|
|
|
3737
3711
|
forced: arg.type === "query" ? isForcedQuery(arg, getState()) : void 0
|
|
3738
3712
|
};
|
|
3739
3713
|
forceQueryFn = arg.type === "query" ? arg[forceQueryFnSymbol] : void 0;
|
|
3740
|
-
if (!forceQueryFn)
|
|
3741
|
-
return [3, 2];
|
|
3714
|
+
if (!forceQueryFn) return [3, 2];
|
|
3742
3715
|
result = forceQueryFn();
|
|
3743
3716
|
return [3, 6];
|
|
3744
3717
|
case 2:
|
|
3745
|
-
if (!endpointDefinition.query)
|
|
3746
|
-
return [3, 4];
|
|
3718
|
+
if (!endpointDefinition.query) return [3, 4];
|
|
3747
3719
|
return [4, baseQuery(endpointDefinition.query(arg.originalArgs), baseQueryApi_1, endpointDefinition.extraOptions)];
|
|
3748
3720
|
case 3:
|
|
3749
3721
|
result = _r.sent();
|
|
@@ -3795,8 +3767,7 @@ function buildThunks(_j) {
|
|
|
3795
3767
|
case 8:
|
|
3796
3768
|
error_1 = _r.sent();
|
|
3797
3769
|
catchedError = error_1;
|
|
3798
|
-
if (!(catchedError instanceof HandledError))
|
|
3799
|
-
return [3, 12];
|
|
3770
|
+
if (!(catchedError instanceof HandledError)) return [3, 12];
|
|
3800
3771
|
transformErrorResponse = defaultTransformResponse;
|
|
3801
3772
|
if (endpointDefinition.query && endpointDefinition.transformErrorResponse) {
|
|
3802
3773
|
transformErrorResponse = endpointDefinition.transformErrorResponse;
|
|
@@ -4035,8 +4006,7 @@ function buildSlice(_j) {
|
|
|
4035
4006
|
}).addCase(queryThunk.rejected, function(draft, _j2) {
|
|
4036
4007
|
var _k2 = _j2.meta, condition = _k2.condition, arg = _k2.arg, requestId = _k2.requestId, error = _j2.error, payload = _j2.payload;
|
|
4037
4008
|
updateQuerySubstateIfExists(draft, arg.queryCacheKey, function(substate) {
|
|
4038
|
-
if (condition)
|
|
4039
|
-
;
|
|
4009
|
+
if (condition) ;
|
|
4040
4010
|
else {
|
|
4041
4011
|
if (substate.requestId !== requestId)
|
|
4042
4012
|
return;
|
|
@@ -5983,8 +5953,7 @@ function findKey(obj, key) {
|
|
|
5983
5953
|
return null;
|
|
5984
5954
|
}
|
|
5985
5955
|
const _global = (() => {
|
|
5986
|
-
if (typeof globalThis !== "undefined")
|
|
5987
|
-
return globalThis;
|
|
5956
|
+
if (typeof globalThis !== "undefined") return globalThis;
|
|
5988
5957
|
return typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : global;
|
|
5989
5958
|
})();
|
|
5990
5959
|
const isContextDefined = (context) => !isUndefined(context) && context !== _global;
|
|
@@ -6038,8 +6007,7 @@ const toFlatObject = (sourceObj, destObj, filter2, propFilter) => {
|
|
|
6038
6007
|
let prop;
|
|
6039
6008
|
const merged = {};
|
|
6040
6009
|
destObj = destObj || {};
|
|
6041
|
-
if (sourceObj == null)
|
|
6042
|
-
return destObj;
|
|
6010
|
+
if (sourceObj == null) return destObj;
|
|
6043
6011
|
do {
|
|
6044
6012
|
props = Object.getOwnPropertyNames(sourceObj);
|
|
6045
6013
|
i = props.length;
|
|
@@ -6064,13 +6032,10 @@ const endsWith = (str, searchString, position) => {
|
|
|
6064
6032
|
return lastIndex !== -1 && lastIndex === position;
|
|
6065
6033
|
};
|
|
6066
6034
|
const toArray = (thing) => {
|
|
6067
|
-
if (!thing)
|
|
6068
|
-
|
|
6069
|
-
if (isArray(thing))
|
|
6070
|
-
return thing;
|
|
6035
|
+
if (!thing) return null;
|
|
6036
|
+
if (isArray(thing)) return thing;
|
|
6071
6037
|
let i = thing.length;
|
|
6072
|
-
if (!isNumber(i))
|
|
6073
|
-
return null;
|
|
6038
|
+
if (!isNumber(i)) return null;
|
|
6074
6039
|
const arr = new Array(i);
|
|
6075
6040
|
while (i-- > 0) {
|
|
6076
6041
|
arr[i] = thing[i];
|
|
@@ -6127,8 +6092,7 @@ const freezeMethods = (obj) => {
|
|
|
6127
6092
|
return false;
|
|
6128
6093
|
}
|
|
6129
6094
|
const value = obj[name];
|
|
6130
|
-
if (!isFunction(value))
|
|
6131
|
-
return;
|
|
6095
|
+
if (!isFunction(value)) return;
|
|
6132
6096
|
descriptor.enumerable = false;
|
|
6133
6097
|
if ("writable" in descriptor) {
|
|
6134
6098
|
descriptor.writable = false;
|
|
@@ -6355,8 +6319,7 @@ function removeBrackets(key) {
|
|
|
6355
6319
|
return utils$1.endsWith(key, "[]") ? key.slice(0, -2) : key;
|
|
6356
6320
|
}
|
|
6357
6321
|
function renderKey(path, key, dots) {
|
|
6358
|
-
if (!path)
|
|
6359
|
-
return key;
|
|
6322
|
+
if (!path) return key;
|
|
6360
6323
|
return path.concat(key).map(function each(token, i) {
|
|
6361
6324
|
token = removeBrackets(token);
|
|
6362
6325
|
return !dots && i ? "[" + token + "]" : token;
|
|
@@ -6390,8 +6353,7 @@ function toFormData(obj, formData, options) {
|
|
|
6390
6353
|
throw new TypeError("visitor must be a function");
|
|
6391
6354
|
}
|
|
6392
6355
|
function convertValue(value) {
|
|
6393
|
-
if (value === null)
|
|
6394
|
-
return "";
|
|
6356
|
+
if (value === null) return "";
|
|
6395
6357
|
if (utils$1.isDate(value)) {
|
|
6396
6358
|
return value.toISOString();
|
|
6397
6359
|
}
|
|
@@ -6434,8 +6396,7 @@ function toFormData(obj, formData, options) {
|
|
|
6434
6396
|
isVisitable
|
|
6435
6397
|
});
|
|
6436
6398
|
function build(value, path) {
|
|
6437
|
-
if (utils$1.isUndefined(value))
|
|
6438
|
-
return;
|
|
6399
|
+
if (utils$1.isUndefined(value)) return;
|
|
6439
6400
|
if (stack.indexOf(value) !== -1) {
|
|
6440
6401
|
throw Error("Circular reference detected in " + path.join("."));
|
|
6441
6402
|
}
|
|
@@ -6643,8 +6604,7 @@ function arrayToObject2(arr) {
|
|
|
6643
6604
|
function formDataToJSON(formData) {
|
|
6644
6605
|
function buildPath(path, value, target, index) {
|
|
6645
6606
|
let name = path[index++];
|
|
6646
|
-
if (name === "__proto__")
|
|
6647
|
-
return true;
|
|
6607
|
+
if (name === "__proto__") return true;
|
|
6648
6608
|
const isNumericKey = Number.isFinite(+name);
|
|
6649
6609
|
const isLast = index >= path.length;
|
|
6650
6610
|
name = !name && utils$1.isArray(target) ? target.length : name;
|
|
@@ -6685,7 +6645,7 @@ function stringifySafely(rawValue, parser, encoder) {
|
|
|
6685
6645
|
}
|
|
6686
6646
|
}
|
|
6687
6647
|
}
|
|
6688
|
-
return (
|
|
6648
|
+
return (0, JSON.stringify)(rawValue);
|
|
6689
6649
|
}
|
|
6690
6650
|
const defaults = {
|
|
6691
6651
|
transitional: transitionalDefaults,
|
|
@@ -6850,8 +6810,7 @@ function matchHeaderValue(context, value, header, filter2, isHeaderNameFilter) {
|
|
|
6850
6810
|
if (isHeaderNameFilter) {
|
|
6851
6811
|
value = header;
|
|
6852
6812
|
}
|
|
6853
|
-
if (!utils$1.isString(value))
|
|
6854
|
-
return;
|
|
6813
|
+
if (!utils$1.isString(value)) return;
|
|
6855
6814
|
if (utils$1.isString(filter2)) {
|
|
6856
6815
|
return value.indexOf(filter2) !== -1;
|
|
6857
6816
|
}
|
|
@@ -7529,7 +7488,7 @@ const composeSignals = (signals, timeout) => {
|
|
|
7529
7488
|
};
|
|
7530
7489
|
const streamChunk = function* (chunk, chunkSize) {
|
|
7531
7490
|
let len = chunk.byteLength;
|
|
7532
|
-
if (
|
|
7491
|
+
if (len < chunkSize) {
|
|
7533
7492
|
yield chunk;
|
|
7534
7493
|
return;
|
|
7535
7494
|
}
|
|
@@ -8068,8 +8027,7 @@ class CancelToken {
|
|
|
8068
8027
|
});
|
|
8069
8028
|
const token = this;
|
|
8070
8029
|
this.promise.then((cancel) => {
|
|
8071
|
-
if (!token._listeners)
|
|
8072
|
-
return;
|
|
8030
|
+
if (!token._listeners) return;
|
|
8073
8031
|
let i = token._listeners.length;
|
|
8074
8032
|
while (i-- > 0) {
|
|
8075
8033
|
token._listeners[i](cancel);
|
|
@@ -8263,41 +8221,32 @@ var scheduler_production_min = {};
|
|
|
8263
8221
|
*/
|
|
8264
8222
|
var hasRequiredScheduler_production_min;
|
|
8265
8223
|
function requireScheduler_production_min() {
|
|
8266
|
-
if (hasRequiredScheduler_production_min)
|
|
8267
|
-
return scheduler_production_min;
|
|
8224
|
+
if (hasRequiredScheduler_production_min) return scheduler_production_min;
|
|
8268
8225
|
hasRequiredScheduler_production_min = 1;
|
|
8269
8226
|
(function(exports) {
|
|
8270
8227
|
function f2(a2, b) {
|
|
8271
8228
|
var c = a2.length;
|
|
8272
8229
|
a2.push(b);
|
|
8273
|
-
a:
|
|
8274
|
-
|
|
8275
|
-
|
|
8276
|
-
|
|
8277
|
-
|
|
8278
|
-
else
|
|
8279
|
-
break a;
|
|
8280
|
-
}
|
|
8230
|
+
a: for (; 0 < c; ) {
|
|
8231
|
+
var d2 = c - 1 >>> 1, e = a2[d2];
|
|
8232
|
+
if (0 < g(e, b)) a2[d2] = b, a2[c] = e, c = d2;
|
|
8233
|
+
else break a;
|
|
8234
|
+
}
|
|
8281
8235
|
}
|
|
8282
8236
|
function h2(a2) {
|
|
8283
8237
|
return 0 === a2.length ? null : a2[0];
|
|
8284
8238
|
}
|
|
8285
8239
|
function k(a2) {
|
|
8286
|
-
if (0 === a2.length)
|
|
8287
|
-
return null;
|
|
8240
|
+
if (0 === a2.length) return null;
|
|
8288
8241
|
var b = a2[0], c = a2.pop();
|
|
8289
8242
|
if (c !== b) {
|
|
8290
8243
|
a2[0] = c;
|
|
8291
|
-
a:
|
|
8292
|
-
|
|
8293
|
-
|
|
8294
|
-
|
|
8295
|
-
|
|
8296
|
-
|
|
8297
|
-
a2[d2] = x, a2[n] = c, d2 = n;
|
|
8298
|
-
else
|
|
8299
|
-
break a;
|
|
8300
|
-
}
|
|
8244
|
+
a: for (var d2 = 0, e = a2.length, w = e >>> 1; d2 < w; ) {
|
|
8245
|
+
var m = 2 * (d2 + 1) - 1, C = a2[m], n = m + 1, x = a2[n];
|
|
8246
|
+
if (0 > g(C, c)) n < e && 0 > g(x, C) ? (a2[d2] = x, a2[n] = c, d2 = n) : (a2[d2] = C, a2[m] = c, d2 = m);
|
|
8247
|
+
else if (n < e && 0 > g(x, c)) a2[d2] = x, a2[n] = c, d2 = n;
|
|
8248
|
+
else break a;
|
|
8249
|
+
}
|
|
8301
8250
|
}
|
|
8302
8251
|
return b;
|
|
8303
8252
|
}
|
|
@@ -8320,25 +8269,20 @@ function requireScheduler_production_min() {
|
|
|
8320
8269
|
"undefined" !== typeof navigator && void 0 !== navigator.scheduling && void 0 !== navigator.scheduling.isInputPending && navigator.scheduling.isInputPending.bind(navigator.scheduling);
|
|
8321
8270
|
function G(a2) {
|
|
8322
8271
|
for (var b = h2(t); null !== b; ) {
|
|
8323
|
-
if (null === b.callback)
|
|
8324
|
-
|
|
8325
|
-
else
|
|
8326
|
-
k(t), b.sortIndex = b.expirationTime, f2(r, b);
|
|
8327
|
-
else
|
|
8328
|
-
break;
|
|
8272
|
+
if (null === b.callback) k(t);
|
|
8273
|
+
else if (b.startTime <= a2) k(t), b.sortIndex = b.expirationTime, f2(r, b);
|
|
8274
|
+
else break;
|
|
8329
8275
|
b = h2(t);
|
|
8330
8276
|
}
|
|
8331
8277
|
}
|
|
8332
8278
|
function H(a2) {
|
|
8333
8279
|
B = false;
|
|
8334
8280
|
G(a2);
|
|
8335
|
-
if (!A)
|
|
8336
|
-
|
|
8337
|
-
|
|
8338
|
-
|
|
8339
|
-
|
|
8340
|
-
null !== b && K(H, b.startTime - a2);
|
|
8341
|
-
}
|
|
8281
|
+
if (!A) if (null !== h2(r)) A = true, I(J);
|
|
8282
|
+
else {
|
|
8283
|
+
var b = h2(t);
|
|
8284
|
+
null !== b && K(H, b.startTime - a2);
|
|
8285
|
+
}
|
|
8342
8286
|
}
|
|
8343
8287
|
function J(a2, b) {
|
|
8344
8288
|
A = false;
|
|
@@ -8356,12 +8300,10 @@ function requireScheduler_production_min() {
|
|
|
8356
8300
|
b = exports.unstable_now();
|
|
8357
8301
|
"function" === typeof e ? v2.callback = e : v2 === h2(r) && k(r);
|
|
8358
8302
|
G(b);
|
|
8359
|
-
} else
|
|
8360
|
-
k(r);
|
|
8303
|
+
} else k(r);
|
|
8361
8304
|
v2 = h2(r);
|
|
8362
8305
|
}
|
|
8363
|
-
if (null !== v2)
|
|
8364
|
-
var w = true;
|
|
8306
|
+
if (null !== v2) var w = true;
|
|
8365
8307
|
else {
|
|
8366
8308
|
var m = h2(t);
|
|
8367
8309
|
null !== m && K(H, m.startTime - b);
|
|
@@ -8386,24 +8328,21 @@ function requireScheduler_production_min() {
|
|
|
8386
8328
|
} finally {
|
|
8387
8329
|
b ? S() : (N = false, O = null);
|
|
8388
8330
|
}
|
|
8389
|
-
} else
|
|
8390
|
-
N = false;
|
|
8331
|
+
} else N = false;
|
|
8391
8332
|
}
|
|
8392
8333
|
var S;
|
|
8393
|
-
if ("function" === typeof F)
|
|
8394
|
-
|
|
8395
|
-
|
|
8396
|
-
};
|
|
8334
|
+
if ("function" === typeof F) S = function() {
|
|
8335
|
+
F(R);
|
|
8336
|
+
};
|
|
8397
8337
|
else if ("undefined" !== typeof MessageChannel) {
|
|
8398
8338
|
var T = new MessageChannel(), U = T.port2;
|
|
8399
8339
|
T.port1.onmessage = R;
|
|
8400
8340
|
S = function() {
|
|
8401
8341
|
U.postMessage(null);
|
|
8402
8342
|
};
|
|
8403
|
-
} else
|
|
8404
|
-
|
|
8405
|
-
|
|
8406
|
-
};
|
|
8343
|
+
} else S = function() {
|
|
8344
|
+
D(R, 0);
|
|
8345
|
+
};
|
|
8407
8346
|
function I(a2) {
|
|
8408
8347
|
O = a2;
|
|
8409
8348
|
N || (N = true, S());
|
|
@@ -8527,8 +8466,7 @@ var scheduler_development = {};
|
|
|
8527
8466
|
*/
|
|
8528
8467
|
var hasRequiredScheduler_development;
|
|
8529
8468
|
function requireScheduler_development() {
|
|
8530
|
-
if (hasRequiredScheduler_development)
|
|
8531
|
-
return scheduler_development;
|
|
8469
|
+
if (hasRequiredScheduler_development) return scheduler_development;
|
|
8532
8470
|
hasRequiredScheduler_development = 1;
|
|
8533
8471
|
(function(exports) {
|
|
8534
8472
|
if (process.env.NODE_ENV !== "production") {
|
|
@@ -8683,8 +8621,7 @@ function requireScheduler_development() {
|
|
|
8683
8621
|
var previousPriorityLevel = currentPriorityLevel;
|
|
8684
8622
|
try {
|
|
8685
8623
|
var currentTime;
|
|
8686
|
-
if (enableProfiling)
|
|
8687
|
-
;
|
|
8624
|
+
if (enableProfiling) ;
|
|
8688
8625
|
else {
|
|
8689
8626
|
return workLoop(hasTimeRemaining, initialTime2);
|
|
8690
8627
|
}
|
|
@@ -9007,19 +8944,14 @@ function E(r) {
|
|
|
9007
8944
|
}
|
|
9008
8945
|
function h(e, n) {
|
|
9009
8946
|
const o = useContext(e)[d];
|
|
9010
|
-
if ("object" == typeof process && "production" !== process.env.NODE_ENV && !o)
|
|
9011
|
-
throw new Error("useContextSelector requires special context");
|
|
8947
|
+
if ("object" == typeof process && "production" !== process.env.NODE_ENV && !o) throw new Error("useContextSelector requires special context");
|
|
9012
8948
|
const { v: { current: c }, n: { current: u }, l: s } = o, i = n(c), [p, l] = useReducer((e2, r) => {
|
|
9013
|
-
if (!r)
|
|
9014
|
-
|
|
9015
|
-
if (
|
|
9016
|
-
throw r.p;
|
|
9017
|
-
if (r.n === u)
|
|
9018
|
-
return Object.is(e2[1], i) ? e2 : [c, i];
|
|
8949
|
+
if (!r) return [c, i];
|
|
8950
|
+
if ("p" in r) throw r.p;
|
|
8951
|
+
if (r.n === u) return Object.is(e2[1], i) ? e2 : [c, i];
|
|
9019
8952
|
try {
|
|
9020
8953
|
if ("v" in r) {
|
|
9021
|
-
if (Object.is(e2[0], r.v))
|
|
9022
|
-
return e2;
|
|
8954
|
+
if (Object.is(e2[0], r.v)) return e2;
|
|
9023
8955
|
const t = n(r.v);
|
|
9024
8956
|
return Object.is(e2[1], t) ? e2 : [r.v, t];
|
|
9025
8957
|
}
|
|
@@ -9578,10 +9510,8 @@ function $3b62074eb05584b2$export$f297eb839006d339(era, year, month, day) {
|
|
|
9578
9510
|
year = $3b62074eb05584b2$export$c36e0ecb2d4fa69d(era, year);
|
|
9579
9511
|
let y1 = year - 1;
|
|
9580
9512
|
let monthOffset = -2;
|
|
9581
|
-
if (month <= 2)
|
|
9582
|
-
|
|
9583
|
-
else if ($3b62074eb05584b2$export$553d7fa8e3805fc0(year))
|
|
9584
|
-
monthOffset = -1;
|
|
9513
|
+
if (month <= 2) monthOffset = 0;
|
|
9514
|
+
else if ($3b62074eb05584b2$export$553d7fa8e3805fc0(year)) monthOffset = -1;
|
|
9585
9515
|
return $3b62074eb05584b2$var$EPOCH - 1 + 365 * y1 + Math.floor(y1 / 4) - Math.floor(y1 / 100) + Math.floor(y1 / 400) + Math.floor((367 * month - 362) / 12 + monthOffset + day);
|
|
9586
9516
|
}
|
|
9587
9517
|
function $3b62074eb05584b2$export$553d7fa8e3805fc0(year) {
|
|
@@ -9646,10 +9576,8 @@ class $3b62074eb05584b2$export$80ee6245ec4f29ec {
|
|
|
9646
9576
|
let [era, year] = $3b62074eb05584b2$export$4475b7e617eb123c(extendedYear);
|
|
9647
9577
|
let yearDay = jd0 - $3b62074eb05584b2$export$f297eb839006d339(era, year, 1, 1);
|
|
9648
9578
|
let leapAdj = 2;
|
|
9649
|
-
if (jd0 < $3b62074eb05584b2$export$f297eb839006d339(era, year, 3, 1))
|
|
9650
|
-
|
|
9651
|
-
else if ($3b62074eb05584b2$export$553d7fa8e3805fc0(year))
|
|
9652
|
-
leapAdj = 1;
|
|
9579
|
+
if (jd0 < $3b62074eb05584b2$export$f297eb839006d339(era, year, 3, 1)) leapAdj = 0;
|
|
9580
|
+
else if ($3b62074eb05584b2$export$553d7fa8e3805fc0(year)) leapAdj = 1;
|
|
9653
9581
|
let month = Math.floor(((yearDay + leapAdj) * 12 + 373) / 367);
|
|
9654
9582
|
let day = jd0 - $3b62074eb05584b2$export$f297eb839006d339(era, year, month, 1) + 1;
|
|
9655
9583
|
return new $35ea8db9cb2ccb90$export$99faa760c7908e4f(era, year, month, day);
|
|
@@ -9701,8 +9629,7 @@ function $14e0f24ef4ac5c92$var$timeToMs(a2) {
|
|
|
9701
9629
|
}
|
|
9702
9630
|
let $14e0f24ef4ac5c92$var$localTimeZone = null;
|
|
9703
9631
|
function $14e0f24ef4ac5c92$export$aa8b41735afcabd2() {
|
|
9704
|
-
if ($14e0f24ef4ac5c92$var$localTimeZone == null)
|
|
9705
|
-
$14e0f24ef4ac5c92$var$localTimeZone = new Intl.DateTimeFormat().resolvedOptions().timeZone;
|
|
9632
|
+
if ($14e0f24ef4ac5c92$var$localTimeZone == null) $14e0f24ef4ac5c92$var$localTimeZone = new Intl.DateTimeFormat().resolvedOptions().timeZone;
|
|
9706
9633
|
return $14e0f24ef4ac5c92$var$localTimeZone;
|
|
9707
9634
|
}
|
|
9708
9635
|
function $11d87f3f76e88657$export$bd4fb2bc8bb06fb(date) {
|
|
@@ -9717,10 +9644,8 @@ function $11d87f3f76e88657$var$epochFromParts(year, month, day, hour, minute, se
|
|
|
9717
9644
|
return date.getTime();
|
|
9718
9645
|
}
|
|
9719
9646
|
function $11d87f3f76e88657$export$59c99f3515d3493f(ms, timeZone) {
|
|
9720
|
-
if (timeZone === "UTC")
|
|
9721
|
-
|
|
9722
|
-
if (ms > 0 && timeZone === $14e0f24ef4ac5c92$export$aa8b41735afcabd2())
|
|
9723
|
-
return new Date(ms).getTimezoneOffset() * -6e4;
|
|
9647
|
+
if (timeZone === "UTC") return 0;
|
|
9648
|
+
if (ms > 0 && timeZone === $14e0f24ef4ac5c92$export$aa8b41735afcabd2()) return new Date(ms).getTimezoneOffset() * -6e4;
|
|
9724
9649
|
let { year, month, day, hour, minute, second } = $11d87f3f76e88657$var$getTimeZoneParts(ms, timeZone);
|
|
9725
9650
|
let utc = $11d87f3f76e88657$var$epochFromParts(year, month, day, hour, minute, second, 0);
|
|
9726
9651
|
return utc - Math.floor(ms / 1e3) * 1e3;
|
|
@@ -9744,9 +9669,7 @@ function $11d87f3f76e88657$var$getTimeZoneParts(ms, timeZone) {
|
|
|
9744
9669
|
}
|
|
9745
9670
|
let parts = formatter.formatToParts(new Date(ms));
|
|
9746
9671
|
let namedParts = {};
|
|
9747
|
-
for (let part of parts)
|
|
9748
|
-
if (part.type !== "literal")
|
|
9749
|
-
namedParts[part.type] = part.value;
|
|
9672
|
+
for (let part of parts) if (part.type !== "literal") namedParts[part.type] = part.value;
|
|
9750
9673
|
return {
|
|
9751
9674
|
// Firefox returns B instead of BC... https://bugzilla.mozilla.org/show_bug.cgi?id=1752253
|
|
9752
9675
|
year: namedParts.era === "BC" || namedParts.era === "B" ? -namedParts.year + 1 : +namedParts.year,
|
|
@@ -9773,8 +9696,7 @@ function $11d87f3f76e88657$var$isValidWallTime(date, timeZone, absolute) {
|
|
|
9773
9696
|
}
|
|
9774
9697
|
function $11d87f3f76e88657$export$5107c82f94518f5c(date, timeZone, disambiguation = "compatible") {
|
|
9775
9698
|
let dateTime = $11d87f3f76e88657$export$b21e0b124e224484(date);
|
|
9776
|
-
if (timeZone === "UTC")
|
|
9777
|
-
return $11d87f3f76e88657$export$bd4fb2bc8bb06fb(dateTime);
|
|
9699
|
+
if (timeZone === "UTC") return $11d87f3f76e88657$export$bd4fb2bc8bb06fb(dateTime);
|
|
9778
9700
|
if (timeZone === $14e0f24ef4ac5c92$export$aa8b41735afcabd2() && disambiguation === "compatible") {
|
|
9779
9701
|
dateTime = $11d87f3f76e88657$export$b4a036af3fc0b032(dateTime, new $3b62074eb05584b2$export$80ee6245ec4f29ec());
|
|
9780
9702
|
let date2 = /* @__PURE__ */ new Date();
|
|
@@ -9787,18 +9709,16 @@ function $11d87f3f76e88657$export$5107c82f94518f5c(date, timeZone, disambiguatio
|
|
|
9787
9709
|
let offsetBefore = $11d87f3f76e88657$export$59c99f3515d3493f(ms - $11d87f3f76e88657$var$DAYMILLIS, timeZone);
|
|
9788
9710
|
let offsetAfter = $11d87f3f76e88657$export$59c99f3515d3493f(ms + $11d87f3f76e88657$var$DAYMILLIS, timeZone);
|
|
9789
9711
|
let valid = $11d87f3f76e88657$var$getValidWallTimes(dateTime, timeZone, ms - offsetBefore, ms - offsetAfter);
|
|
9790
|
-
if (valid.length === 1)
|
|
9791
|
-
|
|
9792
|
-
|
|
9793
|
-
|
|
9794
|
-
|
|
9795
|
-
|
|
9796
|
-
|
|
9797
|
-
|
|
9798
|
-
|
|
9799
|
-
|
|
9800
|
-
throw new RangeError("Multiple possible absolute times found");
|
|
9801
|
-
}
|
|
9712
|
+
if (valid.length === 1) return valid[0];
|
|
9713
|
+
if (valid.length > 1) switch (disambiguation) {
|
|
9714
|
+
case "compatible":
|
|
9715
|
+
case "earlier":
|
|
9716
|
+
return valid[0];
|
|
9717
|
+
case "later":
|
|
9718
|
+
return valid[valid.length - 1];
|
|
9719
|
+
case "reject":
|
|
9720
|
+
throw new RangeError("Multiple possible absolute times found");
|
|
9721
|
+
}
|
|
9802
9722
|
switch (disambiguation) {
|
|
9803
9723
|
case "earlier":
|
|
9804
9724
|
return Math.min(ms - offsetBefore, ms - offsetAfter);
|
|
@@ -9829,17 +9749,13 @@ function $11d87f3f76e88657$export$93522d1a439f3617(dateTime) {
|
|
|
9829
9749
|
}
|
|
9830
9750
|
function $11d87f3f76e88657$export$b21e0b124e224484(date, time) {
|
|
9831
9751
|
let hour = 0, minute = 0, second = 0, millisecond = 0;
|
|
9832
|
-
if ("timeZone" in date)
|
|
9833
|
-
|
|
9834
|
-
|
|
9835
|
-
return date;
|
|
9836
|
-
if (time)
|
|
9837
|
-
({ hour, minute, second, millisecond } = time);
|
|
9752
|
+
if ("timeZone" in date) ({ hour, minute, second, millisecond } = date);
|
|
9753
|
+
else if ("hour" in date && !time) return date;
|
|
9754
|
+
if (time) ({ hour, minute, second, millisecond } = time);
|
|
9838
9755
|
return new $35ea8db9cb2ccb90$export$ca871e8dbb80966f(date.calendar, date.era, date.year, date.month, date.day, hour, minute, second, millisecond);
|
|
9839
9756
|
}
|
|
9840
9757
|
function $11d87f3f76e88657$export$b4a036af3fc0b032(date, calendar) {
|
|
9841
|
-
if (date.calendar.identifier === calendar.identifier)
|
|
9842
|
-
return date;
|
|
9758
|
+
if (date.calendar.identifier === calendar.identifier) return date;
|
|
9843
9759
|
let calendarDate = calendar.fromJulianDay(date.calendar.toJulianDay(date));
|
|
9844
9760
|
let copy = date.copy();
|
|
9845
9761
|
copy.calendar = calendar;
|
|
@@ -9852,8 +9768,7 @@ function $11d87f3f76e88657$export$b4a036af3fc0b032(date, calendar) {
|
|
|
9852
9768
|
}
|
|
9853
9769
|
function $11d87f3f76e88657$export$84c95a83c799e074(date, timeZone, disambiguation) {
|
|
9854
9770
|
if (date instanceof $35ea8db9cb2ccb90$export$d3b7288e7994edea) {
|
|
9855
|
-
if (date.timeZone === timeZone)
|
|
9856
|
-
return date;
|
|
9771
|
+
if (date.timeZone === timeZone) return date;
|
|
9857
9772
|
return $11d87f3f76e88657$export$538b00033cc11c75(date, timeZone);
|
|
9858
9773
|
}
|
|
9859
9774
|
let ms = $11d87f3f76e88657$export$5107c82f94518f5c(date, timeZone, disambiguation);
|
|
@@ -9872,8 +9787,7 @@ function $735220c2d4774dd3$export$e16d8520af44a096(date, duration) {
|
|
|
9872
9787
|
let mutableDate = date.copy();
|
|
9873
9788
|
let days = "hour" in mutableDate ? $735220c2d4774dd3$var$addTimeFields(mutableDate, duration) : 0;
|
|
9874
9789
|
$735220c2d4774dd3$var$addYears(mutableDate, duration.years || 0);
|
|
9875
|
-
if (mutableDate.calendar.balanceYearMonth)
|
|
9876
|
-
mutableDate.calendar.balanceYearMonth(mutableDate, date);
|
|
9790
|
+
if (mutableDate.calendar.balanceYearMonth) mutableDate.calendar.balanceYearMonth(mutableDate, date);
|
|
9877
9791
|
mutableDate.month += duration.months || 0;
|
|
9878
9792
|
$735220c2d4774dd3$var$balanceYearMonth(mutableDate);
|
|
9879
9793
|
$735220c2d4774dd3$var$constrainMonthDay(mutableDate);
|
|
@@ -9881,8 +9795,7 @@ function $735220c2d4774dd3$export$e16d8520af44a096(date, duration) {
|
|
|
9881
9795
|
mutableDate.day += duration.days || 0;
|
|
9882
9796
|
mutableDate.day += days;
|
|
9883
9797
|
$735220c2d4774dd3$var$balanceDay(mutableDate);
|
|
9884
|
-
if (mutableDate.calendar.balanceDate)
|
|
9885
|
-
mutableDate.calendar.balanceDate(mutableDate);
|
|
9798
|
+
if (mutableDate.calendar.balanceDate) mutableDate.calendar.balanceDate(mutableDate);
|
|
9886
9799
|
if (mutableDate.year < 1) {
|
|
9887
9800
|
mutableDate.year = 1;
|
|
9888
9801
|
mutableDate.month = 1;
|
|
@@ -9910,8 +9823,7 @@ function $735220c2d4774dd3$export$e16d8520af44a096(date, duration) {
|
|
|
9910
9823
|
}
|
|
9911
9824
|
function $735220c2d4774dd3$var$addYears(date, years) {
|
|
9912
9825
|
var _date_calendar_isInverseEra, _date_calendar;
|
|
9913
|
-
if ((_date_calendar_isInverseEra = (_date_calendar = date.calendar).isInverseEra) === null || _date_calendar_isInverseEra === void 0 ? void 0 : _date_calendar_isInverseEra.call(_date_calendar, date))
|
|
9914
|
-
years = -years;
|
|
9826
|
+
if ((_date_calendar_isInverseEra = (_date_calendar = date.calendar).isInverseEra) === null || _date_calendar_isInverseEra === void 0 ? void 0 : _date_calendar_isInverseEra.call(_date_calendar, date)) years = -years;
|
|
9915
9827
|
date.year += years;
|
|
9916
9828
|
}
|
|
9917
9829
|
function $735220c2d4774dd3$var$balanceYearMonth(date) {
|
|
@@ -9942,16 +9854,13 @@ function $735220c2d4774dd3$var$constrainMonthDay(date) {
|
|
|
9942
9854
|
date.day = Math.max(1, Math.min(date.calendar.getDaysInMonth(date), date.day));
|
|
9943
9855
|
}
|
|
9944
9856
|
function $735220c2d4774dd3$export$c4e2ecac49351ef2(date) {
|
|
9945
|
-
if (date.calendar.constrainDate)
|
|
9946
|
-
date.calendar.constrainDate(date);
|
|
9857
|
+
if (date.calendar.constrainDate) date.calendar.constrainDate(date);
|
|
9947
9858
|
date.year = Math.max(1, Math.min(date.calendar.getYearsInEra(date), date.year));
|
|
9948
9859
|
$735220c2d4774dd3$var$constrainMonthDay(date);
|
|
9949
9860
|
}
|
|
9950
9861
|
function $735220c2d4774dd3$export$3e2544e88a25bff8(duration) {
|
|
9951
9862
|
let inverseDuration = {};
|
|
9952
|
-
for (let key in duration)
|
|
9953
|
-
if (typeof duration[key] === "number")
|
|
9954
|
-
inverseDuration[key] = -duration[key];
|
|
9863
|
+
for (let key in duration) if (typeof duration[key] === "number") inverseDuration[key] = -duration[key];
|
|
9955
9864
|
return inverseDuration;
|
|
9956
9865
|
}
|
|
9957
9866
|
function $735220c2d4774dd3$export$4e2d2ead65e5f7e3(date, duration) {
|
|
@@ -9959,27 +9868,19 @@ function $735220c2d4774dd3$export$4e2d2ead65e5f7e3(date, duration) {
|
|
|
9959
9868
|
}
|
|
9960
9869
|
function $735220c2d4774dd3$export$adaa4cf7ef1b65be(date, fields) {
|
|
9961
9870
|
let mutableDate = date.copy();
|
|
9962
|
-
if (fields.era != null)
|
|
9963
|
-
|
|
9964
|
-
if (fields.
|
|
9965
|
-
|
|
9966
|
-
if (fields.month != null)
|
|
9967
|
-
mutableDate.month = fields.month;
|
|
9968
|
-
if (fields.day != null)
|
|
9969
|
-
mutableDate.day = fields.day;
|
|
9871
|
+
if (fields.era != null) mutableDate.era = fields.era;
|
|
9872
|
+
if (fields.year != null) mutableDate.year = fields.year;
|
|
9873
|
+
if (fields.month != null) mutableDate.month = fields.month;
|
|
9874
|
+
if (fields.day != null) mutableDate.day = fields.day;
|
|
9970
9875
|
$735220c2d4774dd3$export$c4e2ecac49351ef2(mutableDate);
|
|
9971
9876
|
return mutableDate;
|
|
9972
9877
|
}
|
|
9973
9878
|
function $735220c2d4774dd3$export$e5d5e1c1822b6e56(value, fields) {
|
|
9974
9879
|
let mutableValue = value.copy();
|
|
9975
|
-
if (fields.hour != null)
|
|
9976
|
-
|
|
9977
|
-
if (fields.
|
|
9978
|
-
|
|
9979
|
-
if (fields.second != null)
|
|
9980
|
-
mutableValue.second = fields.second;
|
|
9981
|
-
if (fields.millisecond != null)
|
|
9982
|
-
mutableValue.millisecond = fields.millisecond;
|
|
9880
|
+
if (fields.hour != null) mutableValue.hour = fields.hour;
|
|
9881
|
+
if (fields.minute != null) mutableValue.minute = fields.minute;
|
|
9882
|
+
if (fields.second != null) mutableValue.second = fields.second;
|
|
9883
|
+
if (fields.millisecond != null) mutableValue.millisecond = fields.millisecond;
|
|
9983
9884
|
$735220c2d4774dd3$export$7555de1e070510cb(mutableValue);
|
|
9984
9885
|
return mutableValue;
|
|
9985
9886
|
}
|
|
@@ -10002,8 +9903,7 @@ function $735220c2d4774dd3$export$7555de1e070510cb(time) {
|
|
|
10002
9903
|
}
|
|
10003
9904
|
function $735220c2d4774dd3$var$nonNegativeMod(a2, b) {
|
|
10004
9905
|
let result = a2 % b;
|
|
10005
|
-
if (result < 0)
|
|
10006
|
-
result += b;
|
|
9906
|
+
if (result < 0) result += b;
|
|
10007
9907
|
return result;
|
|
10008
9908
|
}
|
|
10009
9909
|
function $735220c2d4774dd3$var$addTimeFields(time, duration) {
|
|
@@ -10019,8 +9919,7 @@ function $735220c2d4774dd3$export$d52ced6badfb9a4c(value, field, amount, options
|
|
|
10019
9919
|
case "era": {
|
|
10020
9920
|
let eras = value.calendar.getEras();
|
|
10021
9921
|
let eraIndex = eras.indexOf(value.era);
|
|
10022
|
-
if (eraIndex < 0)
|
|
10023
|
-
throw new Error("Invalid era: " + value.era);
|
|
9922
|
+
if (eraIndex < 0) throw new Error("Invalid era: " + value.era);
|
|
10024
9923
|
eraIndex = $735220c2d4774dd3$var$cycleValue(eraIndex, amount, 0, eras.length - 1, options === null || options === void 0 ? void 0 : options.round);
|
|
10025
9924
|
mutable.era = eras[eraIndex];
|
|
10026
9925
|
$735220c2d4774dd3$export$c4e2ecac49351ef2(mutable);
|
|
@@ -10028,13 +9927,10 @@ function $735220c2d4774dd3$export$d52ced6badfb9a4c(value, field, amount, options
|
|
|
10028
9927
|
}
|
|
10029
9928
|
case "year":
|
|
10030
9929
|
var _mutable_calendar_isInverseEra, _mutable_calendar;
|
|
10031
|
-
if ((_mutable_calendar_isInverseEra = (_mutable_calendar = mutable.calendar).isInverseEra) === null || _mutable_calendar_isInverseEra === void 0 ? void 0 : _mutable_calendar_isInverseEra.call(_mutable_calendar, mutable))
|
|
10032
|
-
amount = -amount;
|
|
9930
|
+
if ((_mutable_calendar_isInverseEra = (_mutable_calendar = mutable.calendar).isInverseEra) === null || _mutable_calendar_isInverseEra === void 0 ? void 0 : _mutable_calendar_isInverseEra.call(_mutable_calendar, mutable)) amount = -amount;
|
|
10033
9931
|
mutable.year = $735220c2d4774dd3$var$cycleValue(value.year, amount, -Infinity, 9999, options === null || options === void 0 ? void 0 : options.round);
|
|
10034
|
-
if (mutable.year === -Infinity)
|
|
10035
|
-
|
|
10036
|
-
if (mutable.calendar.balanceYearMonth)
|
|
10037
|
-
mutable.calendar.balanceYearMonth(mutable, value);
|
|
9932
|
+
if (mutable.year === -Infinity) mutable.year = 1;
|
|
9933
|
+
if (mutable.calendar.balanceYearMonth) mutable.calendar.balanceYearMonth(mutable, value);
|
|
10038
9934
|
break;
|
|
10039
9935
|
case "month":
|
|
10040
9936
|
mutable.month = $735220c2d4774dd3$var$cycleValue(value.month, amount, 1, value.calendar.getMonthsInYear(value), options === null || options === void 0 ? void 0 : options.round);
|
|
@@ -10045,8 +9941,7 @@ function $735220c2d4774dd3$export$d52ced6badfb9a4c(value, field, amount, options
|
|
|
10045
9941
|
default:
|
|
10046
9942
|
throw new Error("Unsupported field " + field);
|
|
10047
9943
|
}
|
|
10048
|
-
if (value.calendar.balanceDate)
|
|
10049
|
-
value.calendar.balanceDate(mutable);
|
|
9944
|
+
if (value.calendar.balanceDate) value.calendar.balanceDate(mutable);
|
|
10050
9945
|
$735220c2d4774dd3$export$c4e2ecac49351ef2(mutable);
|
|
10051
9946
|
return mutable;
|
|
10052
9947
|
}
|
|
@@ -10082,21 +9977,15 @@ function $735220c2d4774dd3$export$dd02b3e0007dfe28(value, field, amount, options
|
|
|
10082
9977
|
function $735220c2d4774dd3$var$cycleValue(value, amount, min, max2, round = false) {
|
|
10083
9978
|
if (round) {
|
|
10084
9979
|
value += Math.sign(amount);
|
|
10085
|
-
if (value < min)
|
|
10086
|
-
value = max2;
|
|
9980
|
+
if (value < min) value = max2;
|
|
10087
9981
|
let div = Math.abs(amount);
|
|
10088
|
-
if (amount > 0)
|
|
10089
|
-
|
|
10090
|
-
|
|
10091
|
-
value = Math.floor(value / div) * div;
|
|
10092
|
-
if (value > max2)
|
|
10093
|
-
value = min;
|
|
9982
|
+
if (amount > 0) value = Math.ceil(value / div) * div;
|
|
9983
|
+
else value = Math.floor(value / div) * div;
|
|
9984
|
+
if (value > max2) value = min;
|
|
10094
9985
|
} else {
|
|
10095
9986
|
value += amount;
|
|
10096
|
-
if (value < min)
|
|
10097
|
-
|
|
10098
|
-
else if (value > max2)
|
|
10099
|
-
value = min + (value - max2 - 1);
|
|
9987
|
+
if (value < min) value = max2 - (min - value - 1);
|
|
9988
|
+
else if (value > max2) value = min + (value - max2 - 1);
|
|
10100
9989
|
}
|
|
10101
9990
|
return value;
|
|
10102
9991
|
}
|
|
@@ -10172,27 +10061,23 @@ function $735220c2d4774dd3$export$9a297d111fc86b79(dateTime, field, amount, opti
|
|
|
10172
10061
|
function $735220c2d4774dd3$export$31b5430eb18be4f8(dateTime, fields, disambiguation) {
|
|
10173
10062
|
let plainDateTime = $11d87f3f76e88657$export$b21e0b124e224484(dateTime);
|
|
10174
10063
|
let res = $735220c2d4774dd3$export$e5d5e1c1822b6e56($735220c2d4774dd3$export$adaa4cf7ef1b65be(plainDateTime, fields), fields);
|
|
10175
|
-
if (res.compare(plainDateTime) === 0)
|
|
10176
|
-
return dateTime;
|
|
10064
|
+
if (res.compare(plainDateTime) === 0) return dateTime;
|
|
10177
10065
|
let ms = $11d87f3f76e88657$export$5107c82f94518f5c(res, dateTime.timeZone, disambiguation);
|
|
10178
10066
|
return $11d87f3f76e88657$export$b4a036af3fc0b032($11d87f3f76e88657$export$1b96692a1ba042ac(ms, dateTime.timeZone), dateTime.calendar);
|
|
10179
10067
|
}
|
|
10180
10068
|
const $fae977aafc393c5c$var$ABSOLUTE_RE = /^(\d{4})-(\d{2})-(\d{2})(?:T(\d{2}))?(?::(\d{2}))?(?::(\d{2}))?(\.\d+)?(?:(?:([+-]\d{2})(?::?(\d{2}))?)|Z)$/;
|
|
10181
10069
|
function $fae977aafc393c5c$export$5adfdab05168c219(value, timeZone) {
|
|
10182
10070
|
let m = value.match($fae977aafc393c5c$var$ABSOLUTE_RE);
|
|
10183
|
-
if (!m)
|
|
10184
|
-
throw new Error("Invalid ISO 8601 date time string: " + value);
|
|
10071
|
+
if (!m) throw new Error("Invalid ISO 8601 date time string: " + value);
|
|
10185
10072
|
let date = new $35ea8db9cb2ccb90$export$d3b7288e7994edea($fae977aafc393c5c$var$parseNumber(m[1], 1, 9999), $fae977aafc393c5c$var$parseNumber(m[2], 1, 12), 1, timeZone, 0, m[4] ? $fae977aafc393c5c$var$parseNumber(m[4], 0, 23) : 0, m[5] ? $fae977aafc393c5c$var$parseNumber(m[5], 0, 59) : 0, m[6] ? $fae977aafc393c5c$var$parseNumber(m[6], 0, 59) : 0, m[7] ? $fae977aafc393c5c$var$parseNumber(m[7], 0, Infinity) * 1e3 : 0);
|
|
10186
10073
|
date.day = $fae977aafc393c5c$var$parseNumber(m[3], 0, date.calendar.getDaysInMonth(date));
|
|
10187
10074
|
var _m_;
|
|
10188
|
-
if (m[8])
|
|
10189
|
-
date.offset = $fae977aafc393c5c$var$parseNumber(m[8], -23, 23) * 36e5 + $fae977aafc393c5c$var$parseNumber((_m_ = m[9]) !== null && _m_ !== void 0 ? _m_ : "0", 0, 59) * 6e4;
|
|
10075
|
+
if (m[8]) date.offset = $fae977aafc393c5c$var$parseNumber(m[8], -23, 23) * 36e5 + $fae977aafc393c5c$var$parseNumber((_m_ = m[9]) !== null && _m_ !== void 0 ? _m_ : "0", 0, 59) * 6e4;
|
|
10190
10076
|
return $11d87f3f76e88657$export$538b00033cc11c75(date, timeZone);
|
|
10191
10077
|
}
|
|
10192
10078
|
function $fae977aafc393c5c$var$parseNumber(value, min, max2) {
|
|
10193
10079
|
let val = Number(value);
|
|
10194
|
-
if (val < min || val > max2)
|
|
10195
|
-
throw new RangeError(`Value out of range: ${min} <= ${val} <= ${max2}`);
|
|
10080
|
+
if (val < min || val > max2) throw new RangeError(`Value out of range: ${min} <= ${val} <= ${max2}`);
|
|
10196
10081
|
return val;
|
|
10197
10082
|
}
|
|
10198
10083
|
function $fae977aafc393c5c$export$f59dee82248f5ad4(time) {
|
|
@@ -10227,8 +10112,7 @@ function _class_private_field_init(obj, privateMap, value) {
|
|
|
10227
10112
|
function $35ea8db9cb2ccb90$var$shiftArgs(args) {
|
|
10228
10113
|
let calendar = typeof args[0] === "object" ? args.shift() : new $3b62074eb05584b2$export$80ee6245ec4f29ec();
|
|
10229
10114
|
let era;
|
|
10230
|
-
if (typeof args[0] === "string")
|
|
10231
|
-
era = args.shift();
|
|
10115
|
+
if (typeof args[0] === "string") era = args.shift();
|
|
10232
10116
|
else {
|
|
10233
10117
|
let eras = calendar.getEras();
|
|
10234
10118
|
era = eras[eras.length - 1];
|
|
@@ -10248,10 +10132,8 @@ var $35ea8db9cb2ccb90$var$_type = /* @__PURE__ */ new WeakMap();
|
|
|
10248
10132
|
class $35ea8db9cb2ccb90$export$99faa760c7908e4f {
|
|
10249
10133
|
/** Returns a copy of this date. */
|
|
10250
10134
|
copy() {
|
|
10251
|
-
if (this.era)
|
|
10252
|
-
|
|
10253
|
-
else
|
|
10254
|
-
return new $35ea8db9cb2ccb90$export$99faa760c7908e4f(this.calendar, this.year, this.month, this.day);
|
|
10135
|
+
if (this.era) return new $35ea8db9cb2ccb90$export$99faa760c7908e4f(this.calendar, this.era, this.year, this.month, this.day);
|
|
10136
|
+
else return new $35ea8db9cb2ccb90$export$99faa760c7908e4f(this.calendar, this.year, this.month, this.day);
|
|
10255
10137
|
}
|
|
10256
10138
|
/** Returns a new `CalendarDate` with the given duration added to it. */
|
|
10257
10139
|
add(duration) {
|
|
@@ -10302,10 +10184,8 @@ var $35ea8db9cb2ccb90$var$_type2 = /* @__PURE__ */ new WeakMap();
|
|
|
10302
10184
|
class $35ea8db9cb2ccb90$export$ca871e8dbb80966f {
|
|
10303
10185
|
/** Returns a copy of this date. */
|
|
10304
10186
|
copy() {
|
|
10305
|
-
if (this.era)
|
|
10306
|
-
|
|
10307
|
-
else
|
|
10308
|
-
return new $35ea8db9cb2ccb90$export$ca871e8dbb80966f(this.calendar, this.year, this.month, this.day, this.hour, this.minute, this.second, this.millisecond);
|
|
10187
|
+
if (this.era) return new $35ea8db9cb2ccb90$export$ca871e8dbb80966f(this.calendar, this.era, this.year, this.month, this.day, this.hour, this.minute, this.second, this.millisecond);
|
|
10188
|
+
else return new $35ea8db9cb2ccb90$export$ca871e8dbb80966f(this.calendar, this.year, this.month, this.day, this.hour, this.minute, this.second, this.millisecond);
|
|
10309
10189
|
}
|
|
10310
10190
|
/** Returns a new `CalendarDateTime` with the given duration added to it. */
|
|
10311
10191
|
add(duration) {
|
|
@@ -10345,8 +10225,7 @@ class $35ea8db9cb2ccb90$export$ca871e8dbb80966f {
|
|
|
10345
10225
|
/** Compares this date with another. A negative result indicates that this date is before the given one, and a positive date indicates that it is after. */
|
|
10346
10226
|
compare(b) {
|
|
10347
10227
|
let res = $14e0f24ef4ac5c92$export$68781ddf31c0090f(this, b);
|
|
10348
|
-
if (res === 0)
|
|
10349
|
-
return $14e0f24ef4ac5c92$export$c19a80a9721b80f6(this, $11d87f3f76e88657$export$b21e0b124e224484(b));
|
|
10228
|
+
if (res === 0) return $14e0f24ef4ac5c92$export$c19a80a9721b80f6(this, $11d87f3f76e88657$export$b21e0b124e224484(b));
|
|
10350
10229
|
return res;
|
|
10351
10230
|
}
|
|
10352
10231
|
constructor(...args) {
|
|
@@ -10371,10 +10250,8 @@ var $35ea8db9cb2ccb90$var$_type3 = /* @__PURE__ */ new WeakMap();
|
|
|
10371
10250
|
class $35ea8db9cb2ccb90$export$d3b7288e7994edea {
|
|
10372
10251
|
/** Returns a copy of this date. */
|
|
10373
10252
|
copy() {
|
|
10374
|
-
if (this.era)
|
|
10375
|
-
|
|
10376
|
-
else
|
|
10377
|
-
return new $35ea8db9cb2ccb90$export$d3b7288e7994edea(this.calendar, this.year, this.month, this.day, this.timeZone, this.offset, this.hour, this.minute, this.second, this.millisecond);
|
|
10253
|
+
if (this.era) return new $35ea8db9cb2ccb90$export$d3b7288e7994edea(this.calendar, this.era, this.year, this.month, this.day, this.timeZone, this.offset, this.hour, this.minute, this.second, this.millisecond);
|
|
10254
|
+
else return new $35ea8db9cb2ccb90$export$d3b7288e7994edea(this.calendar, this.year, this.month, this.day, this.timeZone, this.offset, this.hour, this.minute, this.second, this.millisecond);
|
|
10378
10255
|
}
|
|
10379
10256
|
/** Returns a new `ZonedDateTime` with the given duration added to it. */
|
|
10380
10257
|
add(duration) {
|
|
@@ -10452,6 +10329,7 @@ React.forwardRef(
|
|
|
10452
10329
|
const canGoBack = useHistory("BackButton", (state) => state.canGoBack);
|
|
10453
10330
|
const goBack = useHistory("BackButton", (state) => state.goBack);
|
|
10454
10331
|
const history = useHistory("BackButton", (state) => state.history);
|
|
10332
|
+
const currentLocationIndex = useHistory("BackButton", (state) => state.currentLocationIndex);
|
|
10455
10333
|
const hasFallback = fallback !== "";
|
|
10456
10334
|
const shouldBeDisabled = disabled || !canGoBack && !hasFallback;
|
|
10457
10335
|
const handleClick = (e) => {
|
|
@@ -10462,7 +10340,7 @@ React.forwardRef(
|
|
|
10462
10340
|
navigate(fallback);
|
|
10463
10341
|
}
|
|
10464
10342
|
};
|
|
10465
|
-
const historyTo = canGoBack ? history.at(-
|
|
10343
|
+
const historyTo = canGoBack ? history.at(currentLocationIndex - 2) : void 0;
|
|
10466
10344
|
const toWithFallback = historyTo ?? fallback;
|
|
10467
10345
|
return /* @__PURE__ */ jsx(
|
|
10468
10346
|
Link,
|
|
@@ -12002,4 +11880,4 @@ export {
|
|
|
12002
11880
|
Layouts as L,
|
|
12003
11881
|
useTracking as u
|
|
12004
11882
|
};
|
|
12005
|
-
//# sourceMappingURL=index-
|
|
11883
|
+
//# sourceMappingURL=index-UvlzzkEs-CkJgvpmE.mjs.map
|