@strapi/plugin-users-permissions 5.4.2 → 5.5.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.
Files changed (30) hide show
  1. package/dist/_chunks/{index-Bzdgm3YY.js → index-6xS_NVnz.js} +21 -14
  2. package/dist/_chunks/{index-Bzdgm3YY.js.map → index-6xS_NVnz.js.map} +1 -1
  3. package/dist/_chunks/{index-CH7DTQRg.js → index-7urCw5UD.js} +3 -4
  4. package/dist/_chunks/{index-CH7DTQRg.js.map → index-7urCw5UD.js.map} +1 -1
  5. package/dist/_chunks/{index-YiI4HHBF.mjs → index-AVbfDpH6.mjs} +2 -2
  6. package/dist/_chunks/{index-YiI4HHBF.mjs.map → index-AVbfDpH6.mjs.map} +1 -1
  7. package/dist/_chunks/{index-og30lh2q.mjs → index-BLaxSWbC.mjs} +3 -3
  8. package/dist/_chunks/{index-og30lh2q.mjs.map → index-BLaxSWbC.mjs.map} +1 -1
  9. package/dist/_chunks/{index-DQjBkqk6.mjs → index-BReXSOfU.mjs} +2 -2
  10. package/dist/_chunks/{index-DQjBkqk6.mjs.map → index-BReXSOfU.mjs.map} +1 -1
  11. package/dist/_chunks/{index-rj9z5xOr.mjs → index-BYBVysRS.mjs} +3 -3
  12. package/dist/_chunks/{index-rj9z5xOr.mjs.map → index-BYBVysRS.mjs.map} +1 -1
  13. package/dist/_chunks/{index-DS3khL98.js → index-CCAQw4t9.js} +5 -6
  14. package/dist/_chunks/{index-DS3khL98.js.map → index-CCAQw4t9.js.map} +1 -1
  15. package/dist/_chunks/{index-Dby0-3V3.mjs → index-CvQ-xY7a.mjs} +21 -14
  16. package/dist/_chunks/{index-Dby0-3V3.mjs.map → index-CvQ-xY7a.mjs.map} +1 -1
  17. package/dist/_chunks/{index-DkLfQU9x.js → index-CzxZzlFc.js} +8 -9
  18. package/dist/_chunks/{index-DkLfQU9x.js.map → index-CzxZzlFc.js.map} +1 -1
  19. package/dist/_chunks/{index-B31GwOBY.js → index-Dz5Q1Yft.js} +3 -4
  20. package/dist/_chunks/{index-B31GwOBY.js.map → index-Dz5Q1Yft.js.map} +1 -1
  21. package/dist/_chunks/{index-BnX71_B4-BeiPUoDw.mjs → index-UBwCyQ_3-AADEvpEo.mjs} +232 -356
  22. package/dist/_chunks/index-UBwCyQ_3-AADEvpEo.mjs.map +1 -0
  23. package/dist/_chunks/{index-BnX71_B4-BwTVUy-u.js → index-UBwCyQ_3-lG3F5mWr.js} +233 -358
  24. package/dist/_chunks/index-UBwCyQ_3-lG3F5mWr.js.map +1 -0
  25. package/dist/admin/index.js +1 -1
  26. package/dist/admin/index.mjs +1 -1
  27. package/package.json +7 -7
  28. package/server/graphql/types/me.js +1 -0
  29. package/dist/_chunks/index-BnX71_B4-BeiPUoDw.mjs.map +0 -1
  30. package/dist/_chunks/index-BnX71_B4-BwTVUy-u.js.map +0 -1
@@ -29,8 +29,7 @@ require("formik");
29
29
  require("lodash/throttle");
30
30
  const _interopDefault = (e) => e && e.__esModule ? e : { default: e };
31
31
  function _interopNamespace(e) {
32
- if (e && e.__esModule)
33
- return e;
32
+ if (e && e.__esModule) return e;
34
33
  const n = Object.create(null, { [Symbol.toStringTag]: { value: "Module" } });
35
34
  if (e) {
36
35
  for (const k in e) {
@@ -58,8 +57,7 @@ function getDefaultExportFromCjs(x) {
58
57
  return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, "default") ? x["default"] : x;
59
58
  }
60
59
  function getAugmentedNamespace(n) {
61
- if (n.__esModule)
62
- return n;
60
+ if (n.__esModule) return n;
63
61
  var f2 = n.default;
64
62
  if (typeof f2 == "function") {
65
63
  var a2 = function a3() {
@@ -69,8 +67,7 @@ function getAugmentedNamespace(n) {
69
67
  return f2.apply(this, arguments);
70
68
  };
71
69
  a2.prototype = f2.prototype;
72
- } else
73
- a2 = {};
70
+ } else a2 = {};
74
71
  Object.defineProperty(a2, "__esModule", { value: true });
75
72
  Object.keys(n).forEach(function(k) {
76
73
  var d2 = Object.getOwnPropertyDescriptor(n, k);
@@ -153,11 +150,12 @@ var hasSymbols$1 = function hasNativeSymbols() {
153
150
  return hasSymbolSham();
154
151
  };
155
152
  var test$1 = {
153
+ __proto__: null,
156
154
  foo: {}
157
155
  };
158
156
  var $Object = Object;
159
157
  var hasProto$1 = function hasProto() {
160
- return { __proto__: test$1 }.foo === test$1.foo && !({ __proto__: null } instanceof $Object);
158
+ return { __proto__: test$1 }.foo === test$1.foo && !(test$1 instanceof $Object);
161
159
  };
162
160
  var ERROR_MESSAGE = "Function.prototype.bind called on incompatible ";
163
161
  var toStr$1 = Object.prototype.toString;
@@ -544,8 +542,7 @@ var callBind$1 = { exports: {} };
544
542
  var esDefineProperty;
545
543
  var hasRequiredEsDefineProperty;
546
544
  function requireEsDefineProperty() {
547
- if (hasRequiredEsDefineProperty)
548
- return esDefineProperty;
545
+ if (hasRequiredEsDefineProperty) return esDefineProperty;
549
546
  hasRequiredEsDefineProperty = 1;
550
547
  var GetIntrinsic3 = getIntrinsic;
551
548
  var $defineProperty2 = GetIntrinsic3("%Object.defineProperty%", true) || false;
@@ -2014,8 +2011,7 @@ var ActionTypes = {
2014
2011
  }
2015
2012
  };
2016
2013
  function isPlainObject$3(obj) {
2017
- if (typeof obj !== "object" || obj === null)
2018
- return false;
2014
+ if (typeof obj !== "object" || obj === null) return false;
2019
2015
  var proto = obj;
2020
2016
  while (Object.getPrototypeOf(proto) !== null) {
2021
2017
  proto = Object.getPrototypeOf(proto);
@@ -2023,10 +2019,8 @@ function isPlainObject$3(obj) {
2023
2019
  return Object.getPrototypeOf(obj) === proto;
2024
2020
  }
2025
2021
  function miniKindOf(val) {
2026
- if (val === void 0)
2027
- return "undefined";
2028
- if (val === null)
2029
- return "null";
2022
+ if (val === void 0) return "undefined";
2023
+ if (val === null) return "null";
2030
2024
  var type2 = typeof val;
2031
2025
  switch (type2) {
2032
2026
  case "boolean":
@@ -2037,12 +2031,9 @@ function miniKindOf(val) {
2037
2031
  return type2;
2038
2032
  }
2039
2033
  }
2040
- if (Array.isArray(val))
2041
- return "array";
2042
- if (isDate$1(val))
2043
- return "date";
2044
- if (isError(val))
2045
- return "error";
2034
+ if (Array.isArray(val)) return "array";
2035
+ if (isDate$1(val)) return "date";
2036
+ if (isError(val)) return "error";
2046
2037
  var constructorName = ctorName(val);
2047
2038
  switch (constructorName) {
2048
2039
  case "Symbol":
@@ -2062,8 +2053,7 @@ function isError(val) {
2062
2053
  return val instanceof Error || typeof val.message === "string" && val.constructor && typeof val.constructor.stackTraceLimit === "number";
2063
2054
  }
2064
2055
  function isDate$1(val) {
2065
- if (val instanceof Date)
2066
- return true;
2056
+ if (val instanceof Date) return true;
2067
2057
  return typeof val.toDateString === "function" && typeof val.getDate === "function" && typeof val.setDate === "function";
2068
2058
  }
2069
2059
  function kindOf$1(val) {
@@ -2097,8 +2087,7 @@ function getUnexpectedStateShapeWarningMessage(inputState, reducers, action, une
2097
2087
  unexpectedKeys.forEach(function(key) {
2098
2088
  unexpectedKeyCache[key] = true;
2099
2089
  });
2100
- if (action && action.type === ActionTypes.REPLACE)
2101
- return;
2090
+ if (action && action.type === ActionTypes.REPLACE) return;
2102
2091
  if (unexpectedKeys.length > 0) {
2103
2092
  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.');
2104
2093
  }
@@ -2358,9 +2347,7 @@ var __extends = /* @__PURE__ */ function() {
2358
2347
  extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d3, b2) {
2359
2348
  d3.__proto__ = b2;
2360
2349
  } || function(d3, b2) {
2361
- for (var p in b2)
2362
- if (Object.prototype.hasOwnProperty.call(b2, p))
2363
- d3[p] = b2[p];
2350
+ for (var p in b2) if (Object.prototype.hasOwnProperty.call(b2, p)) d3[p] = b2[p];
2364
2351
  };
2365
2352
  return extendStatics(d2, b);
2366
2353
  };
@@ -2376,8 +2363,7 @@ var __extends = /* @__PURE__ */ function() {
2376
2363
  }();
2377
2364
  var __generator$1 = function(thisArg, body) {
2378
2365
  var _ = { label: 0, sent: function() {
2379
- if (t[0] & 1)
2380
- throw t[1];
2366
+ if (t[0] & 1) throw t[1];
2381
2367
  return t[1];
2382
2368
  }, trys: [], ops: [] }, f2, y, t, g;
2383
2369
  return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() {
@@ -2389,64 +2375,58 @@ var __generator$1 = function(thisArg, body) {
2389
2375
  };
2390
2376
  }
2391
2377
  function step(op) {
2392
- if (f2)
2393
- throw new TypeError("Generator is already executing.");
2394
- while (_)
2395
- try {
2396
- 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)
2397
- return t;
2398
- if (y = 0, t)
2399
- op = [op[0] & 2, t.value];
2400
- switch (op[0]) {
2401
- case 0:
2402
- case 1:
2378
+ if (f2) throw new TypeError("Generator is already executing.");
2379
+ while (_) try {
2380
+ 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;
2381
+ if (y = 0, t) op = [op[0] & 2, t.value];
2382
+ switch (op[0]) {
2383
+ case 0:
2384
+ case 1:
2385
+ t = op;
2386
+ break;
2387
+ case 4:
2388
+ _.label++;
2389
+ return { value: op[1], done: false };
2390
+ case 5:
2391
+ _.label++;
2392
+ y = op[1];
2393
+ op = [0];
2394
+ continue;
2395
+ case 7:
2396
+ op = _.ops.pop();
2397
+ _.trys.pop();
2398
+ continue;
2399
+ default:
2400
+ if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
2401
+ _ = 0;
2402
+ continue;
2403
+ }
2404
+ if (op[0] === 3 && (!t || op[1] > t[0] && op[1] < t[3])) {
2405
+ _.label = op[1];
2406
+ break;
2407
+ }
2408
+ if (op[0] === 6 && _.label < t[1]) {
2409
+ _.label = t[1];
2403
2410
  t = op;
2404
2411
  break;
2405
- case 4:
2406
- _.label++;
2407
- return { value: op[1], done: false };
2408
- case 5:
2409
- _.label++;
2410
- y = op[1];
2411
- op = [0];
2412
- continue;
2413
- case 7:
2414
- op = _.ops.pop();
2415
- _.trys.pop();
2416
- continue;
2417
- default:
2418
- if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
2419
- _ = 0;
2420
- continue;
2421
- }
2422
- if (op[0] === 3 && (!t || op[1] > t[0] && op[1] < t[3])) {
2423
- _.label = op[1];
2424
- break;
2425
- }
2426
- if (op[0] === 6 && _.label < t[1]) {
2427
- _.label = t[1];
2428
- t = op;
2429
- break;
2430
- }
2431
- if (t && _.label < t[2]) {
2432
- _.label = t[2];
2433
- _.ops.push(op);
2434
- break;
2435
- }
2436
- if (t[2])
2437
- _.ops.pop();
2438
- _.trys.pop();
2439
- continue;
2440
- }
2441
- op = body.call(thisArg, _);
2442
- } catch (e) {
2443
- op = [6, e];
2444
- y = 0;
2445
- } finally {
2446
- f2 = t = 0;
2412
+ }
2413
+ if (t && _.label < t[2]) {
2414
+ _.label = t[2];
2415
+ _.ops.push(op);
2416
+ break;
2417
+ }
2418
+ if (t[2]) _.ops.pop();
2419
+ _.trys.pop();
2420
+ continue;
2447
2421
  }
2448
- if (op[0] & 5)
2449
- throw op[1];
2422
+ op = body.call(thisArg, _);
2423
+ } catch (e) {
2424
+ op = [6, e];
2425
+ y = 0;
2426
+ } finally {
2427
+ f2 = t = 0;
2428
+ }
2429
+ if (op[0] & 5) throw op[1];
2450
2430
  return { value: op[0] ? op[1] : void 0, done: true };
2451
2431
  }
2452
2432
  };
@@ -2957,8 +2937,7 @@ var createAsyncThunk = function() {
2957
2937
  case 0:
2958
2938
  _c.trys.push([0, 4, , 5]);
2959
2939
  conditionResult = (_a = options == null ? void 0 : options.condition) == null ? void 0 : _a.call(options, arg, { getState, extra });
2960
- if (!isThenable$1(conditionResult))
2961
- return [3, 2];
2940
+ if (!isThenable$1(conditionResult)) return [3, 2];
2962
2941
  return [4, conditionResult];
2963
2942
  case 1:
2964
2943
  conditionResult = _c.sent();
@@ -3227,8 +3206,7 @@ typeof queueMicrotask === "function" ? queueMicrotask.bind(typeof window !== "un
3227
3206
  createNextState2.enableES5();
3228
3207
  var __generator = function(thisArg, body) {
3229
3208
  var _ = { label: 0, sent: function() {
3230
- if (t[0] & 1)
3231
- throw t[1];
3209
+ if (t[0] & 1) throw t[1];
3232
3210
  return t[1];
3233
3211
  }, trys: [], ops: [] }, f2, y, t, g;
3234
3212
  return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() {
@@ -3240,64 +3218,58 @@ var __generator = function(thisArg, body) {
3240
3218
  };
3241
3219
  }
3242
3220
  function step(op) {
3243
- if (f2)
3244
- throw new TypeError("Generator is already executing.");
3245
- while (_)
3246
- try {
3247
- 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)
3248
- return t;
3249
- if (y = 0, t)
3250
- op = [op[0] & 2, t.value];
3251
- switch (op[0]) {
3252
- case 0:
3253
- case 1:
3221
+ if (f2) throw new TypeError("Generator is already executing.");
3222
+ while (_) try {
3223
+ 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;
3224
+ if (y = 0, t) op = [op[0] & 2, t.value];
3225
+ switch (op[0]) {
3226
+ case 0:
3227
+ case 1:
3228
+ t = op;
3229
+ break;
3230
+ case 4:
3231
+ _.label++;
3232
+ return { value: op[1], done: false };
3233
+ case 5:
3234
+ _.label++;
3235
+ y = op[1];
3236
+ op = [0];
3237
+ continue;
3238
+ case 7:
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];
3254
3253
  t = op;
3255
3254
  break;
3256
- case 4:
3257
- _.label++;
3258
- return { value: op[1], done: false };
3259
- case 5:
3260
- _.label++;
3261
- y = op[1];
3262
- op = [0];
3263
- continue;
3264
- case 7:
3265
- op = _.ops.pop();
3266
- _.trys.pop();
3267
- continue;
3268
- default:
3269
- if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
3270
- _ = 0;
3271
- continue;
3272
- }
3273
- if (op[0] === 3 && (!t || op[1] > t[0] && op[1] < t[3])) {
3274
- _.label = op[1];
3275
- break;
3276
- }
3277
- if (op[0] === 6 && _.label < t[1]) {
3278
- _.label = t[1];
3279
- t = op;
3280
- break;
3281
- }
3282
- if (t && _.label < t[2]) {
3283
- _.label = t[2];
3284
- _.ops.push(op);
3285
- break;
3286
- }
3287
- if (t[2])
3288
- _.ops.pop();
3289
- _.trys.pop();
3290
- continue;
3291
- }
3292
- op = body.call(thisArg, _);
3293
- } catch (e) {
3294
- op = [6, e];
3295
- y = 0;
3296
- } finally {
3297
- f2 = t = 0;
3255
+ }
3256
+ if (t && _.label < t[2]) {
3257
+ _.label = t[2];
3258
+ _.ops.push(op);
3259
+ break;
3260
+ }
3261
+ if (t[2]) _.ops.pop();
3262
+ _.trys.pop();
3263
+ continue;
3298
3264
  }
3299
- if (op[0] & 5)
3300
- throw op[1];
3265
+ op = body.call(thisArg, _);
3266
+ } catch (e) {
3267
+ op = [6, e];
3268
+ y = 0;
3269
+ } finally {
3270
+ f2 = t = 0;
3271
+ }
3272
+ if (op[0] & 5) throw op[1];
3301
3273
  return { value: op[0] ? op[1] : void 0, done: true };
3302
3274
  }
3303
3275
  };
@@ -3763,13 +3735,11 @@ function buildThunks(_j) {
3763
3735
  forced: arg.type === "query" ? isForcedQuery(arg, getState()) : void 0
3764
3736
  };
3765
3737
  forceQueryFn = arg.type === "query" ? arg[forceQueryFnSymbol] : void 0;
3766
- if (!forceQueryFn)
3767
- return [3, 2];
3738
+ if (!forceQueryFn) return [3, 2];
3768
3739
  result = forceQueryFn();
3769
3740
  return [3, 6];
3770
3741
  case 2:
3771
- if (!endpointDefinition.query)
3772
- return [3, 4];
3742
+ if (!endpointDefinition.query) return [3, 4];
3773
3743
  return [4, baseQuery(endpointDefinition.query(arg.originalArgs), baseQueryApi_1, endpointDefinition.extraOptions)];
3774
3744
  case 3:
3775
3745
  result = _r.sent();
@@ -3821,8 +3791,7 @@ function buildThunks(_j) {
3821
3791
  case 8:
3822
3792
  error_1 = _r.sent();
3823
3793
  catchedError = error_1;
3824
- if (!(catchedError instanceof HandledError))
3825
- return [3, 12];
3794
+ if (!(catchedError instanceof HandledError)) return [3, 12];
3826
3795
  transformErrorResponse = defaultTransformResponse;
3827
3796
  if (endpointDefinition.query && endpointDefinition.transformErrorResponse) {
3828
3797
  transformErrorResponse = endpointDefinition.transformErrorResponse;
@@ -4061,8 +4030,7 @@ function buildSlice(_j) {
4061
4030
  }).addCase(queryThunk.rejected, function(draft, _j2) {
4062
4031
  var _k2 = _j2.meta, condition = _k2.condition, arg = _k2.arg, requestId = _k2.requestId, error = _j2.error, payload = _j2.payload;
4063
4032
  updateQuerySubstateIfExists(draft, arg.queryCacheKey, function(substate) {
4064
- if (condition)
4065
- ;
4033
+ if (condition) ;
4066
4034
  else {
4067
4035
  if (substate.requestId !== requestId)
4068
4036
  return;
@@ -6009,8 +5977,7 @@ function findKey(obj, key) {
6009
5977
  return null;
6010
5978
  }
6011
5979
  const _global = (() => {
6012
- if (typeof globalThis !== "undefined")
6013
- return globalThis;
5980
+ if (typeof globalThis !== "undefined") return globalThis;
6014
5981
  return typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : global;
6015
5982
  })();
6016
5983
  const isContextDefined = (context) => !isUndefined(context) && context !== _global;
@@ -6064,8 +6031,7 @@ const toFlatObject = (sourceObj, destObj, filter2, propFilter) => {
6064
6031
  let prop;
6065
6032
  const merged = {};
6066
6033
  destObj = destObj || {};
6067
- if (sourceObj == null)
6068
- return destObj;
6034
+ if (sourceObj == null) return destObj;
6069
6035
  do {
6070
6036
  props = Object.getOwnPropertyNames(sourceObj);
6071
6037
  i = props.length;
@@ -6090,13 +6056,10 @@ const endsWith = (str, searchString, position) => {
6090
6056
  return lastIndex !== -1 && lastIndex === position;
6091
6057
  };
6092
6058
  const toArray = (thing) => {
6093
- if (!thing)
6094
- return null;
6095
- if (isArray(thing))
6096
- return thing;
6059
+ if (!thing) return null;
6060
+ if (isArray(thing)) return thing;
6097
6061
  let i = thing.length;
6098
- if (!isNumber(i))
6099
- return null;
6062
+ if (!isNumber(i)) return null;
6100
6063
  const arr = new Array(i);
6101
6064
  while (i-- > 0) {
6102
6065
  arr[i] = thing[i];
@@ -6153,8 +6116,7 @@ const freezeMethods = (obj) => {
6153
6116
  return false;
6154
6117
  }
6155
6118
  const value = obj[name];
6156
- if (!isFunction(value))
6157
- return;
6119
+ if (!isFunction(value)) return;
6158
6120
  descriptor.enumerable = false;
6159
6121
  if ("writable" in descriptor) {
6160
6122
  descriptor.writable = false;
@@ -6381,8 +6343,7 @@ function removeBrackets(key) {
6381
6343
  return utils$1.endsWith(key, "[]") ? key.slice(0, -2) : key;
6382
6344
  }
6383
6345
  function renderKey(path, key, dots) {
6384
- if (!path)
6385
- return key;
6346
+ if (!path) return key;
6386
6347
  return path.concat(key).map(function each(token, i) {
6387
6348
  token = removeBrackets(token);
6388
6349
  return !dots && i ? "[" + token + "]" : token;
@@ -6416,8 +6377,7 @@ function toFormData(obj, formData, options) {
6416
6377
  throw new TypeError("visitor must be a function");
6417
6378
  }
6418
6379
  function convertValue(value) {
6419
- if (value === null)
6420
- return "";
6380
+ if (value === null) return "";
6421
6381
  if (utils$1.isDate(value)) {
6422
6382
  return value.toISOString();
6423
6383
  }
@@ -6460,8 +6420,7 @@ function toFormData(obj, formData, options) {
6460
6420
  isVisitable
6461
6421
  });
6462
6422
  function build(value, path) {
6463
- if (utils$1.isUndefined(value))
6464
- return;
6423
+ if (utils$1.isUndefined(value)) return;
6465
6424
  if (stack.indexOf(value) !== -1) {
6466
6425
  throw Error("Circular reference detected in " + path.join("."));
6467
6426
  }
@@ -6669,8 +6628,7 @@ function arrayToObject2(arr) {
6669
6628
  function formDataToJSON(formData) {
6670
6629
  function buildPath(path, value, target, index) {
6671
6630
  let name = path[index++];
6672
- if (name === "__proto__")
6673
- return true;
6631
+ if (name === "__proto__") return true;
6674
6632
  const isNumericKey = Number.isFinite(+name);
6675
6633
  const isLast = index >= path.length;
6676
6634
  name = !name && utils$1.isArray(target) ? target.length : name;
@@ -6711,7 +6669,7 @@ function stringifySafely(rawValue, parser, encoder) {
6711
6669
  }
6712
6670
  }
6713
6671
  }
6714
- return (encoder || JSON.stringify)(rawValue);
6672
+ return (0, JSON.stringify)(rawValue);
6715
6673
  }
6716
6674
  const defaults = {
6717
6675
  transitional: transitionalDefaults,
@@ -6876,8 +6834,7 @@ function matchHeaderValue(context, value, header, filter2, isHeaderNameFilter) {
6876
6834
  if (isHeaderNameFilter) {
6877
6835
  value = header;
6878
6836
  }
6879
- if (!utils$1.isString(value))
6880
- return;
6837
+ if (!utils$1.isString(value)) return;
6881
6838
  if (utils$1.isString(filter2)) {
6882
6839
  return value.indexOf(filter2) !== -1;
6883
6840
  }
@@ -7555,7 +7512,7 @@ const composeSignals = (signals, timeout) => {
7555
7512
  };
7556
7513
  const streamChunk = function* (chunk, chunkSize) {
7557
7514
  let len = chunk.byteLength;
7558
- if (!chunkSize || len < chunkSize) {
7515
+ if (len < chunkSize) {
7559
7516
  yield chunk;
7560
7517
  return;
7561
7518
  }
@@ -8094,8 +8051,7 @@ class CancelToken {
8094
8051
  });
8095
8052
  const token = this;
8096
8053
  this.promise.then((cancel) => {
8097
- if (!token._listeners)
8098
- return;
8054
+ if (!token._listeners) return;
8099
8055
  let i = token._listeners.length;
8100
8056
  while (i-- > 0) {
8101
8057
  token._listeners[i](cancel);
@@ -8289,41 +8245,32 @@ var scheduler_production_min = {};
8289
8245
  */
8290
8246
  var hasRequiredScheduler_production_min;
8291
8247
  function requireScheduler_production_min() {
8292
- if (hasRequiredScheduler_production_min)
8293
- return scheduler_production_min;
8248
+ if (hasRequiredScheduler_production_min) return scheduler_production_min;
8294
8249
  hasRequiredScheduler_production_min = 1;
8295
8250
  (function(exports2) {
8296
8251
  function f2(a2, b) {
8297
8252
  var c = a2.length;
8298
8253
  a2.push(b);
8299
- a:
8300
- for (; 0 < c; ) {
8301
- var d2 = c - 1 >>> 1, e = a2[d2];
8302
- if (0 < g(e, b))
8303
- a2[d2] = b, a2[c] = e, c = d2;
8304
- else
8305
- break a;
8306
- }
8254
+ a: for (; 0 < c; ) {
8255
+ var d2 = c - 1 >>> 1, e = a2[d2];
8256
+ if (0 < g(e, b)) a2[d2] = b, a2[c] = e, c = d2;
8257
+ else break a;
8258
+ }
8307
8259
  }
8308
8260
  function h2(a2) {
8309
8261
  return 0 === a2.length ? null : a2[0];
8310
8262
  }
8311
8263
  function k(a2) {
8312
- if (0 === a2.length)
8313
- return null;
8264
+ if (0 === a2.length) return null;
8314
8265
  var b = a2[0], c = a2.pop();
8315
8266
  if (c !== b) {
8316
8267
  a2[0] = c;
8317
- a:
8318
- for (var d2 = 0, e = a2.length, w = e >>> 1; d2 < w; ) {
8319
- var m = 2 * (d2 + 1) - 1, C = a2[m], n = m + 1, x = a2[n];
8320
- if (0 > g(C, c))
8321
- n < e && 0 > g(x, C) ? (a2[d2] = x, a2[n] = c, d2 = n) : (a2[d2] = C, a2[m] = c, d2 = m);
8322
- else if (n < e && 0 > g(x, c))
8323
- a2[d2] = x, a2[n] = c, d2 = n;
8324
- else
8325
- break a;
8326
- }
8268
+ a: for (var d2 = 0, e = a2.length, w = e >>> 1; d2 < w; ) {
8269
+ var m = 2 * (d2 + 1) - 1, C = a2[m], n = m + 1, x = a2[n];
8270
+ 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);
8271
+ else if (n < e && 0 > g(x, c)) a2[d2] = x, a2[n] = c, d2 = n;
8272
+ else break a;
8273
+ }
8327
8274
  }
8328
8275
  return b;
8329
8276
  }
@@ -8346,25 +8293,20 @@ function requireScheduler_production_min() {
8346
8293
  "undefined" !== typeof navigator && void 0 !== navigator.scheduling && void 0 !== navigator.scheduling.isInputPending && navigator.scheduling.isInputPending.bind(navigator.scheduling);
8347
8294
  function G(a2) {
8348
8295
  for (var b = h2(t); null !== b; ) {
8349
- if (null === b.callback)
8350
- k(t);
8351
- else if (b.startTime <= a2)
8352
- k(t), b.sortIndex = b.expirationTime, f2(r, b);
8353
- else
8354
- break;
8296
+ if (null === b.callback) k(t);
8297
+ else if (b.startTime <= a2) k(t), b.sortIndex = b.expirationTime, f2(r, b);
8298
+ else break;
8355
8299
  b = h2(t);
8356
8300
  }
8357
8301
  }
8358
8302
  function H(a2) {
8359
8303
  B = false;
8360
8304
  G(a2);
8361
- if (!A)
8362
- if (null !== h2(r))
8363
- A = true, I(J);
8364
- else {
8365
- var b = h2(t);
8366
- null !== b && K(H, b.startTime - a2);
8367
- }
8305
+ if (!A) if (null !== h2(r)) A = true, I(J);
8306
+ else {
8307
+ var b = h2(t);
8308
+ null !== b && K(H, b.startTime - a2);
8309
+ }
8368
8310
  }
8369
8311
  function J(a2, b) {
8370
8312
  A = false;
@@ -8382,12 +8324,10 @@ function requireScheduler_production_min() {
8382
8324
  b = exports2.unstable_now();
8383
8325
  "function" === typeof e ? v2.callback = e : v2 === h2(r) && k(r);
8384
8326
  G(b);
8385
- } else
8386
- k(r);
8327
+ } else k(r);
8387
8328
  v2 = h2(r);
8388
8329
  }
8389
- if (null !== v2)
8390
- var w = true;
8330
+ if (null !== v2) var w = true;
8391
8331
  else {
8392
8332
  var m = h2(t);
8393
8333
  null !== m && K(H, m.startTime - b);
@@ -8412,24 +8352,21 @@ function requireScheduler_production_min() {
8412
8352
  } finally {
8413
8353
  b ? S() : (N = false, O = null);
8414
8354
  }
8415
- } else
8416
- N = false;
8355
+ } else N = false;
8417
8356
  }
8418
8357
  var S;
8419
- if ("function" === typeof F)
8420
- S = function() {
8421
- F(R);
8422
- };
8358
+ if ("function" === typeof F) S = function() {
8359
+ F(R);
8360
+ };
8423
8361
  else if ("undefined" !== typeof MessageChannel) {
8424
8362
  var T = new MessageChannel(), U = T.port2;
8425
8363
  T.port1.onmessage = R;
8426
8364
  S = function() {
8427
8365
  U.postMessage(null);
8428
8366
  };
8429
- } else
8430
- S = function() {
8431
- D(R, 0);
8432
- };
8367
+ } else S = function() {
8368
+ D(R, 0);
8369
+ };
8433
8370
  function I(a2) {
8434
8371
  O = a2;
8435
8372
  N || (N = true, S());
@@ -8553,8 +8490,7 @@ var scheduler_development = {};
8553
8490
  */
8554
8491
  var hasRequiredScheduler_development;
8555
8492
  function requireScheduler_development() {
8556
- if (hasRequiredScheduler_development)
8557
- return scheduler_development;
8493
+ if (hasRequiredScheduler_development) return scheduler_development;
8558
8494
  hasRequiredScheduler_development = 1;
8559
8495
  (function(exports2) {
8560
8496
  if (process.env.NODE_ENV !== "production") {
@@ -8709,8 +8645,7 @@ function requireScheduler_development() {
8709
8645
  var previousPriorityLevel = currentPriorityLevel;
8710
8646
  try {
8711
8647
  var currentTime;
8712
- if (enableProfiling)
8713
- ;
8648
+ if (enableProfiling) ;
8714
8649
  else {
8715
8650
  return workLoop(hasTimeRemaining, initialTime2);
8716
8651
  }
@@ -9033,19 +8968,14 @@ function E(r) {
9033
8968
  }
9034
8969
  function h(e, n) {
9035
8970
  const o = React.useContext(e)[d];
9036
- if ("object" == typeof process && "production" !== process.env.NODE_ENV && !o)
9037
- throw new Error("useContextSelector requires special context");
8971
+ if ("object" == typeof process && "production" !== process.env.NODE_ENV && !o) throw new Error("useContextSelector requires special context");
9038
8972
  const { v: { current: c }, n: { current: u }, l: s } = o, i = n(c), [p, l] = React.useReducer((e2, r) => {
9039
- if (!r)
9040
- return [c, i];
9041
- if ("p" in r)
9042
- throw r.p;
9043
- if (r.n === u)
9044
- return Object.is(e2[1], i) ? e2 : [c, i];
8973
+ if (!r) return [c, i];
8974
+ if ("p" in r) throw r.p;
8975
+ if (r.n === u) return Object.is(e2[1], i) ? e2 : [c, i];
9045
8976
  try {
9046
8977
  if ("v" in r) {
9047
- if (Object.is(e2[0], r.v))
9048
- return e2;
8978
+ if (Object.is(e2[0], r.v)) return e2;
9049
8979
  const t = n(r.v);
9050
8980
  return Object.is(e2[1], t) ? e2 : [r.v, t];
9051
8981
  }
@@ -9604,10 +9534,8 @@ function $3b62074eb05584b2$export$f297eb839006d339(era, year, month, day) {
9604
9534
  year = $3b62074eb05584b2$export$c36e0ecb2d4fa69d(era, year);
9605
9535
  let y1 = year - 1;
9606
9536
  let monthOffset = -2;
9607
- if (month <= 2)
9608
- monthOffset = 0;
9609
- else if ($3b62074eb05584b2$export$553d7fa8e3805fc0(year))
9610
- monthOffset = -1;
9537
+ if (month <= 2) monthOffset = 0;
9538
+ else if ($3b62074eb05584b2$export$553d7fa8e3805fc0(year)) monthOffset = -1;
9611
9539
  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);
9612
9540
  }
9613
9541
  function $3b62074eb05584b2$export$553d7fa8e3805fc0(year) {
@@ -9672,10 +9600,8 @@ class $3b62074eb05584b2$export$80ee6245ec4f29ec {
9672
9600
  let [era, year] = $3b62074eb05584b2$export$4475b7e617eb123c(extendedYear);
9673
9601
  let yearDay = jd0 - $3b62074eb05584b2$export$f297eb839006d339(era, year, 1, 1);
9674
9602
  let leapAdj = 2;
9675
- if (jd0 < $3b62074eb05584b2$export$f297eb839006d339(era, year, 3, 1))
9676
- leapAdj = 0;
9677
- else if ($3b62074eb05584b2$export$553d7fa8e3805fc0(year))
9678
- leapAdj = 1;
9603
+ if (jd0 < $3b62074eb05584b2$export$f297eb839006d339(era, year, 3, 1)) leapAdj = 0;
9604
+ else if ($3b62074eb05584b2$export$553d7fa8e3805fc0(year)) leapAdj = 1;
9679
9605
  let month = Math.floor(((yearDay + leapAdj) * 12 + 373) / 367);
9680
9606
  let day = jd0 - $3b62074eb05584b2$export$f297eb839006d339(era, year, month, 1) + 1;
9681
9607
  return new $35ea8db9cb2ccb90$export$99faa760c7908e4f(era, year, month, day);
@@ -9727,8 +9653,7 @@ function $14e0f24ef4ac5c92$var$timeToMs(a2) {
9727
9653
  }
9728
9654
  let $14e0f24ef4ac5c92$var$localTimeZone = null;
9729
9655
  function $14e0f24ef4ac5c92$export$aa8b41735afcabd2() {
9730
- if ($14e0f24ef4ac5c92$var$localTimeZone == null)
9731
- $14e0f24ef4ac5c92$var$localTimeZone = new Intl.DateTimeFormat().resolvedOptions().timeZone;
9656
+ if ($14e0f24ef4ac5c92$var$localTimeZone == null) $14e0f24ef4ac5c92$var$localTimeZone = new Intl.DateTimeFormat().resolvedOptions().timeZone;
9732
9657
  return $14e0f24ef4ac5c92$var$localTimeZone;
9733
9658
  }
9734
9659
  function $11d87f3f76e88657$export$bd4fb2bc8bb06fb(date) {
@@ -9743,10 +9668,8 @@ function $11d87f3f76e88657$var$epochFromParts(year, month, day, hour, minute, se
9743
9668
  return date.getTime();
9744
9669
  }
9745
9670
  function $11d87f3f76e88657$export$59c99f3515d3493f(ms, timeZone) {
9746
- if (timeZone === "UTC")
9747
- return 0;
9748
- if (ms > 0 && timeZone === $14e0f24ef4ac5c92$export$aa8b41735afcabd2())
9749
- return new Date(ms).getTimezoneOffset() * -6e4;
9671
+ if (timeZone === "UTC") return 0;
9672
+ if (ms > 0 && timeZone === $14e0f24ef4ac5c92$export$aa8b41735afcabd2()) return new Date(ms).getTimezoneOffset() * -6e4;
9750
9673
  let { year, month, day, hour, minute, second } = $11d87f3f76e88657$var$getTimeZoneParts(ms, timeZone);
9751
9674
  let utc = $11d87f3f76e88657$var$epochFromParts(year, month, day, hour, minute, second, 0);
9752
9675
  return utc - Math.floor(ms / 1e3) * 1e3;
@@ -9770,9 +9693,7 @@ function $11d87f3f76e88657$var$getTimeZoneParts(ms, timeZone) {
9770
9693
  }
9771
9694
  let parts = formatter.formatToParts(new Date(ms));
9772
9695
  let namedParts = {};
9773
- for (let part of parts)
9774
- if (part.type !== "literal")
9775
- namedParts[part.type] = part.value;
9696
+ for (let part of parts) if (part.type !== "literal") namedParts[part.type] = part.value;
9776
9697
  return {
9777
9698
  // Firefox returns B instead of BC... https://bugzilla.mozilla.org/show_bug.cgi?id=1752253
9778
9699
  year: namedParts.era === "BC" || namedParts.era === "B" ? -namedParts.year + 1 : +namedParts.year,
@@ -9799,8 +9720,7 @@ function $11d87f3f76e88657$var$isValidWallTime(date, timeZone, absolute) {
9799
9720
  }
9800
9721
  function $11d87f3f76e88657$export$5107c82f94518f5c(date, timeZone, disambiguation = "compatible") {
9801
9722
  let dateTime = $11d87f3f76e88657$export$b21e0b124e224484(date);
9802
- if (timeZone === "UTC")
9803
- return $11d87f3f76e88657$export$bd4fb2bc8bb06fb(dateTime);
9723
+ if (timeZone === "UTC") return $11d87f3f76e88657$export$bd4fb2bc8bb06fb(dateTime);
9804
9724
  if (timeZone === $14e0f24ef4ac5c92$export$aa8b41735afcabd2() && disambiguation === "compatible") {
9805
9725
  dateTime = $11d87f3f76e88657$export$b4a036af3fc0b032(dateTime, new $3b62074eb05584b2$export$80ee6245ec4f29ec());
9806
9726
  let date2 = /* @__PURE__ */ new Date();
@@ -9813,18 +9733,16 @@ function $11d87f3f76e88657$export$5107c82f94518f5c(date, timeZone, disambiguatio
9813
9733
  let offsetBefore = $11d87f3f76e88657$export$59c99f3515d3493f(ms - $11d87f3f76e88657$var$DAYMILLIS, timeZone);
9814
9734
  let offsetAfter = $11d87f3f76e88657$export$59c99f3515d3493f(ms + $11d87f3f76e88657$var$DAYMILLIS, timeZone);
9815
9735
  let valid = $11d87f3f76e88657$var$getValidWallTimes(dateTime, timeZone, ms - offsetBefore, ms - offsetAfter);
9816
- if (valid.length === 1)
9817
- return valid[0];
9818
- if (valid.length > 1)
9819
- switch (disambiguation) {
9820
- case "compatible":
9821
- case "earlier":
9822
- return valid[0];
9823
- case "later":
9824
- return valid[valid.length - 1];
9825
- case "reject":
9826
- throw new RangeError("Multiple possible absolute times found");
9827
- }
9736
+ if (valid.length === 1) return valid[0];
9737
+ if (valid.length > 1) switch (disambiguation) {
9738
+ case "compatible":
9739
+ case "earlier":
9740
+ return valid[0];
9741
+ case "later":
9742
+ return valid[valid.length - 1];
9743
+ case "reject":
9744
+ throw new RangeError("Multiple possible absolute times found");
9745
+ }
9828
9746
  switch (disambiguation) {
9829
9747
  case "earlier":
9830
9748
  return Math.min(ms - offsetBefore, ms - offsetAfter);
@@ -9855,17 +9773,13 @@ function $11d87f3f76e88657$export$93522d1a439f3617(dateTime) {
9855
9773
  }
9856
9774
  function $11d87f3f76e88657$export$b21e0b124e224484(date, time) {
9857
9775
  let hour = 0, minute = 0, second = 0, millisecond = 0;
9858
- if ("timeZone" in date)
9859
- ({ hour, minute, second, millisecond } = date);
9860
- else if ("hour" in date && !time)
9861
- return date;
9862
- if (time)
9863
- ({ hour, minute, second, millisecond } = time);
9776
+ if ("timeZone" in date) ({ hour, minute, second, millisecond } = date);
9777
+ else if ("hour" in date && !time) return date;
9778
+ if (time) ({ hour, minute, second, millisecond } = time);
9864
9779
  return new $35ea8db9cb2ccb90$export$ca871e8dbb80966f(date.calendar, date.era, date.year, date.month, date.day, hour, minute, second, millisecond);
9865
9780
  }
9866
9781
  function $11d87f3f76e88657$export$b4a036af3fc0b032(date, calendar) {
9867
- if (date.calendar.identifier === calendar.identifier)
9868
- return date;
9782
+ if (date.calendar.identifier === calendar.identifier) return date;
9869
9783
  let calendarDate = calendar.fromJulianDay(date.calendar.toJulianDay(date));
9870
9784
  let copy = date.copy();
9871
9785
  copy.calendar = calendar;
@@ -9878,8 +9792,7 @@ function $11d87f3f76e88657$export$b4a036af3fc0b032(date, calendar) {
9878
9792
  }
9879
9793
  function $11d87f3f76e88657$export$84c95a83c799e074(date, timeZone, disambiguation) {
9880
9794
  if (date instanceof $35ea8db9cb2ccb90$export$d3b7288e7994edea) {
9881
- if (date.timeZone === timeZone)
9882
- return date;
9795
+ if (date.timeZone === timeZone) return date;
9883
9796
  return $11d87f3f76e88657$export$538b00033cc11c75(date, timeZone);
9884
9797
  }
9885
9798
  let ms = $11d87f3f76e88657$export$5107c82f94518f5c(date, timeZone, disambiguation);
@@ -9898,8 +9811,7 @@ function $735220c2d4774dd3$export$e16d8520af44a096(date, duration) {
9898
9811
  let mutableDate = date.copy();
9899
9812
  let days = "hour" in mutableDate ? $735220c2d4774dd3$var$addTimeFields(mutableDate, duration) : 0;
9900
9813
  $735220c2d4774dd3$var$addYears(mutableDate, duration.years || 0);
9901
- if (mutableDate.calendar.balanceYearMonth)
9902
- mutableDate.calendar.balanceYearMonth(mutableDate, date);
9814
+ if (mutableDate.calendar.balanceYearMonth) mutableDate.calendar.balanceYearMonth(mutableDate, date);
9903
9815
  mutableDate.month += duration.months || 0;
9904
9816
  $735220c2d4774dd3$var$balanceYearMonth(mutableDate);
9905
9817
  $735220c2d4774dd3$var$constrainMonthDay(mutableDate);
@@ -9907,8 +9819,7 @@ function $735220c2d4774dd3$export$e16d8520af44a096(date, duration) {
9907
9819
  mutableDate.day += duration.days || 0;
9908
9820
  mutableDate.day += days;
9909
9821
  $735220c2d4774dd3$var$balanceDay(mutableDate);
9910
- if (mutableDate.calendar.balanceDate)
9911
- mutableDate.calendar.balanceDate(mutableDate);
9822
+ if (mutableDate.calendar.balanceDate) mutableDate.calendar.balanceDate(mutableDate);
9912
9823
  if (mutableDate.year < 1) {
9913
9824
  mutableDate.year = 1;
9914
9825
  mutableDate.month = 1;
@@ -9936,8 +9847,7 @@ function $735220c2d4774dd3$export$e16d8520af44a096(date, duration) {
9936
9847
  }
9937
9848
  function $735220c2d4774dd3$var$addYears(date, years) {
9938
9849
  var _date_calendar_isInverseEra, _date_calendar;
9939
- if ((_date_calendar_isInverseEra = (_date_calendar = date.calendar).isInverseEra) === null || _date_calendar_isInverseEra === void 0 ? void 0 : _date_calendar_isInverseEra.call(_date_calendar, date))
9940
- years = -years;
9850
+ 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;
9941
9851
  date.year += years;
9942
9852
  }
9943
9853
  function $735220c2d4774dd3$var$balanceYearMonth(date) {
@@ -9968,16 +9878,13 @@ function $735220c2d4774dd3$var$constrainMonthDay(date) {
9968
9878
  date.day = Math.max(1, Math.min(date.calendar.getDaysInMonth(date), date.day));
9969
9879
  }
9970
9880
  function $735220c2d4774dd3$export$c4e2ecac49351ef2(date) {
9971
- if (date.calendar.constrainDate)
9972
- date.calendar.constrainDate(date);
9881
+ if (date.calendar.constrainDate) date.calendar.constrainDate(date);
9973
9882
  date.year = Math.max(1, Math.min(date.calendar.getYearsInEra(date), date.year));
9974
9883
  $735220c2d4774dd3$var$constrainMonthDay(date);
9975
9884
  }
9976
9885
  function $735220c2d4774dd3$export$3e2544e88a25bff8(duration) {
9977
9886
  let inverseDuration = {};
9978
- for (let key in duration)
9979
- if (typeof duration[key] === "number")
9980
- inverseDuration[key] = -duration[key];
9887
+ for (let key in duration) if (typeof duration[key] === "number") inverseDuration[key] = -duration[key];
9981
9888
  return inverseDuration;
9982
9889
  }
9983
9890
  function $735220c2d4774dd3$export$4e2d2ead65e5f7e3(date, duration) {
@@ -9985,27 +9892,19 @@ function $735220c2d4774dd3$export$4e2d2ead65e5f7e3(date, duration) {
9985
9892
  }
9986
9893
  function $735220c2d4774dd3$export$adaa4cf7ef1b65be(date, fields) {
9987
9894
  let mutableDate = date.copy();
9988
- if (fields.era != null)
9989
- mutableDate.era = fields.era;
9990
- if (fields.year != null)
9991
- mutableDate.year = fields.year;
9992
- if (fields.month != null)
9993
- mutableDate.month = fields.month;
9994
- if (fields.day != null)
9995
- mutableDate.day = fields.day;
9895
+ if (fields.era != null) mutableDate.era = fields.era;
9896
+ if (fields.year != null) mutableDate.year = fields.year;
9897
+ if (fields.month != null) mutableDate.month = fields.month;
9898
+ if (fields.day != null) mutableDate.day = fields.day;
9996
9899
  $735220c2d4774dd3$export$c4e2ecac49351ef2(mutableDate);
9997
9900
  return mutableDate;
9998
9901
  }
9999
9902
  function $735220c2d4774dd3$export$e5d5e1c1822b6e56(value, fields) {
10000
9903
  let mutableValue = value.copy();
10001
- if (fields.hour != null)
10002
- mutableValue.hour = fields.hour;
10003
- if (fields.minute != null)
10004
- mutableValue.minute = fields.minute;
10005
- if (fields.second != null)
10006
- mutableValue.second = fields.second;
10007
- if (fields.millisecond != null)
10008
- mutableValue.millisecond = fields.millisecond;
9904
+ if (fields.hour != null) mutableValue.hour = fields.hour;
9905
+ if (fields.minute != null) mutableValue.minute = fields.minute;
9906
+ if (fields.second != null) mutableValue.second = fields.second;
9907
+ if (fields.millisecond != null) mutableValue.millisecond = fields.millisecond;
10009
9908
  $735220c2d4774dd3$export$7555de1e070510cb(mutableValue);
10010
9909
  return mutableValue;
10011
9910
  }
@@ -10028,8 +9927,7 @@ function $735220c2d4774dd3$export$7555de1e070510cb(time) {
10028
9927
  }
10029
9928
  function $735220c2d4774dd3$var$nonNegativeMod(a2, b) {
10030
9929
  let result = a2 % b;
10031
- if (result < 0)
10032
- result += b;
9930
+ if (result < 0) result += b;
10033
9931
  return result;
10034
9932
  }
10035
9933
  function $735220c2d4774dd3$var$addTimeFields(time, duration) {
@@ -10045,8 +9943,7 @@ function $735220c2d4774dd3$export$d52ced6badfb9a4c(value, field, amount, options
10045
9943
  case "era": {
10046
9944
  let eras = value.calendar.getEras();
10047
9945
  let eraIndex = eras.indexOf(value.era);
10048
- if (eraIndex < 0)
10049
- throw new Error("Invalid era: " + value.era);
9946
+ if (eraIndex < 0) throw new Error("Invalid era: " + value.era);
10050
9947
  eraIndex = $735220c2d4774dd3$var$cycleValue(eraIndex, amount, 0, eras.length - 1, options === null || options === void 0 ? void 0 : options.round);
10051
9948
  mutable.era = eras[eraIndex];
10052
9949
  $735220c2d4774dd3$export$c4e2ecac49351ef2(mutable);
@@ -10054,13 +9951,10 @@ function $735220c2d4774dd3$export$d52ced6badfb9a4c(value, field, amount, options
10054
9951
  }
10055
9952
  case "year":
10056
9953
  var _mutable_calendar_isInverseEra, _mutable_calendar;
10057
- if ((_mutable_calendar_isInverseEra = (_mutable_calendar = mutable.calendar).isInverseEra) === null || _mutable_calendar_isInverseEra === void 0 ? void 0 : _mutable_calendar_isInverseEra.call(_mutable_calendar, mutable))
10058
- amount = -amount;
9954
+ 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;
10059
9955
  mutable.year = $735220c2d4774dd3$var$cycleValue(value.year, amount, -Infinity, 9999, options === null || options === void 0 ? void 0 : options.round);
10060
- if (mutable.year === -Infinity)
10061
- mutable.year = 1;
10062
- if (mutable.calendar.balanceYearMonth)
10063
- mutable.calendar.balanceYearMonth(mutable, value);
9956
+ if (mutable.year === -Infinity) mutable.year = 1;
9957
+ if (mutable.calendar.balanceYearMonth) mutable.calendar.balanceYearMonth(mutable, value);
10064
9958
  break;
10065
9959
  case "month":
10066
9960
  mutable.month = $735220c2d4774dd3$var$cycleValue(value.month, amount, 1, value.calendar.getMonthsInYear(value), options === null || options === void 0 ? void 0 : options.round);
@@ -10071,8 +9965,7 @@ function $735220c2d4774dd3$export$d52ced6badfb9a4c(value, field, amount, options
10071
9965
  default:
10072
9966
  throw new Error("Unsupported field " + field);
10073
9967
  }
10074
- if (value.calendar.balanceDate)
10075
- value.calendar.balanceDate(mutable);
9968
+ if (value.calendar.balanceDate) value.calendar.balanceDate(mutable);
10076
9969
  $735220c2d4774dd3$export$c4e2ecac49351ef2(mutable);
10077
9970
  return mutable;
10078
9971
  }
@@ -10108,21 +10001,15 @@ function $735220c2d4774dd3$export$dd02b3e0007dfe28(value, field, amount, options
10108
10001
  function $735220c2d4774dd3$var$cycleValue(value, amount, min, max2, round = false) {
10109
10002
  if (round) {
10110
10003
  value += Math.sign(amount);
10111
- if (value < min)
10112
- value = max2;
10004
+ if (value < min) value = max2;
10113
10005
  let div = Math.abs(amount);
10114
- if (amount > 0)
10115
- value = Math.ceil(value / div) * div;
10116
- else
10117
- value = Math.floor(value / div) * div;
10118
- if (value > max2)
10119
- value = min;
10006
+ if (amount > 0) value = Math.ceil(value / div) * div;
10007
+ else value = Math.floor(value / div) * div;
10008
+ if (value > max2) value = min;
10120
10009
  } else {
10121
10010
  value += amount;
10122
- if (value < min)
10123
- value = max2 - (min - value - 1);
10124
- else if (value > max2)
10125
- value = min + (value - max2 - 1);
10011
+ if (value < min) value = max2 - (min - value - 1);
10012
+ else if (value > max2) value = min + (value - max2 - 1);
10126
10013
  }
10127
10014
  return value;
10128
10015
  }
@@ -10198,27 +10085,23 @@ function $735220c2d4774dd3$export$9a297d111fc86b79(dateTime, field, amount, opti
10198
10085
  function $735220c2d4774dd3$export$31b5430eb18be4f8(dateTime, fields, disambiguation) {
10199
10086
  let plainDateTime = $11d87f3f76e88657$export$b21e0b124e224484(dateTime);
10200
10087
  let res = $735220c2d4774dd3$export$e5d5e1c1822b6e56($735220c2d4774dd3$export$adaa4cf7ef1b65be(plainDateTime, fields), fields);
10201
- if (res.compare(plainDateTime) === 0)
10202
- return dateTime;
10088
+ if (res.compare(plainDateTime) === 0) return dateTime;
10203
10089
  let ms = $11d87f3f76e88657$export$5107c82f94518f5c(res, dateTime.timeZone, disambiguation);
10204
10090
  return $11d87f3f76e88657$export$b4a036af3fc0b032($11d87f3f76e88657$export$1b96692a1ba042ac(ms, dateTime.timeZone), dateTime.calendar);
10205
10091
  }
10206
10092
  const $fae977aafc393c5c$var$ABSOLUTE_RE = /^(\d{4})-(\d{2})-(\d{2})(?:T(\d{2}))?(?::(\d{2}))?(?::(\d{2}))?(\.\d+)?(?:(?:([+-]\d{2})(?::?(\d{2}))?)|Z)$/;
10207
10093
  function $fae977aafc393c5c$export$5adfdab05168c219(value, timeZone) {
10208
10094
  let m = value.match($fae977aafc393c5c$var$ABSOLUTE_RE);
10209
- if (!m)
10210
- throw new Error("Invalid ISO 8601 date time string: " + value);
10095
+ if (!m) throw new Error("Invalid ISO 8601 date time string: " + value);
10211
10096
  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);
10212
10097
  date.day = $fae977aafc393c5c$var$parseNumber(m[3], 0, date.calendar.getDaysInMonth(date));
10213
10098
  var _m_;
10214
- if (m[8])
10215
- 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;
10099
+ 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;
10216
10100
  return $11d87f3f76e88657$export$538b00033cc11c75(date, timeZone);
10217
10101
  }
10218
10102
  function $fae977aafc393c5c$var$parseNumber(value, min, max2) {
10219
10103
  let val = Number(value);
10220
- if (val < min || val > max2)
10221
- throw new RangeError(`Value out of range: ${min} <= ${val} <= ${max2}`);
10104
+ if (val < min || val > max2) throw new RangeError(`Value out of range: ${min} <= ${val} <= ${max2}`);
10222
10105
  return val;
10223
10106
  }
10224
10107
  function $fae977aafc393c5c$export$f59dee82248f5ad4(time) {
@@ -10253,8 +10136,7 @@ function _class_private_field_init(obj, privateMap, value) {
10253
10136
  function $35ea8db9cb2ccb90$var$shiftArgs(args) {
10254
10137
  let calendar = typeof args[0] === "object" ? args.shift() : new $3b62074eb05584b2$export$80ee6245ec4f29ec();
10255
10138
  let era;
10256
- if (typeof args[0] === "string")
10257
- era = args.shift();
10139
+ if (typeof args[0] === "string") era = args.shift();
10258
10140
  else {
10259
10141
  let eras = calendar.getEras();
10260
10142
  era = eras[eras.length - 1];
@@ -10274,10 +10156,8 @@ var $35ea8db9cb2ccb90$var$_type = /* @__PURE__ */ new WeakMap();
10274
10156
  class $35ea8db9cb2ccb90$export$99faa760c7908e4f {
10275
10157
  /** Returns a copy of this date. */
10276
10158
  copy() {
10277
- if (this.era)
10278
- return new $35ea8db9cb2ccb90$export$99faa760c7908e4f(this.calendar, this.era, this.year, this.month, this.day);
10279
- else
10280
- return new $35ea8db9cb2ccb90$export$99faa760c7908e4f(this.calendar, this.year, this.month, this.day);
10159
+ if (this.era) return new $35ea8db9cb2ccb90$export$99faa760c7908e4f(this.calendar, this.era, this.year, this.month, this.day);
10160
+ else return new $35ea8db9cb2ccb90$export$99faa760c7908e4f(this.calendar, this.year, this.month, this.day);
10281
10161
  }
10282
10162
  /** Returns a new `CalendarDate` with the given duration added to it. */
10283
10163
  add(duration) {
@@ -10328,10 +10208,8 @@ var $35ea8db9cb2ccb90$var$_type2 = /* @__PURE__ */ new WeakMap();
10328
10208
  class $35ea8db9cb2ccb90$export$ca871e8dbb80966f {
10329
10209
  /** Returns a copy of this date. */
10330
10210
  copy() {
10331
- if (this.era)
10332
- return new $35ea8db9cb2ccb90$export$ca871e8dbb80966f(this.calendar, this.era, this.year, this.month, this.day, this.hour, this.minute, this.second, this.millisecond);
10333
- else
10334
- return new $35ea8db9cb2ccb90$export$ca871e8dbb80966f(this.calendar, this.year, this.month, this.day, this.hour, this.minute, this.second, this.millisecond);
10211
+ 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);
10212
+ else return new $35ea8db9cb2ccb90$export$ca871e8dbb80966f(this.calendar, this.year, this.month, this.day, this.hour, this.minute, this.second, this.millisecond);
10335
10213
  }
10336
10214
  /** Returns a new `CalendarDateTime` with the given duration added to it. */
10337
10215
  add(duration) {
@@ -10371,8 +10249,7 @@ class $35ea8db9cb2ccb90$export$ca871e8dbb80966f {
10371
10249
  /** 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. */
10372
10250
  compare(b) {
10373
10251
  let res = $14e0f24ef4ac5c92$export$68781ddf31c0090f(this, b);
10374
- if (res === 0)
10375
- return $14e0f24ef4ac5c92$export$c19a80a9721b80f6(this, $11d87f3f76e88657$export$b21e0b124e224484(b));
10252
+ if (res === 0) return $14e0f24ef4ac5c92$export$c19a80a9721b80f6(this, $11d87f3f76e88657$export$b21e0b124e224484(b));
10376
10253
  return res;
10377
10254
  }
10378
10255
  constructor(...args) {
@@ -10397,10 +10274,8 @@ var $35ea8db9cb2ccb90$var$_type3 = /* @__PURE__ */ new WeakMap();
10397
10274
  class $35ea8db9cb2ccb90$export$d3b7288e7994edea {
10398
10275
  /** Returns a copy of this date. */
10399
10276
  copy() {
10400
- if (this.era)
10401
- 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);
10402
- else
10403
- 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);
10277
+ 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);
10278
+ 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);
10404
10279
  }
10405
10280
  /** Returns a new `ZonedDateTime` with the given duration added to it. */
10406
10281
  add(duration) {
@@ -12026,4 +11901,4 @@ adminApi.enhanceEndpoints({
12026
11901
  });
12027
11902
  exports.Layouts = Layouts;
12028
11903
  exports.useTracking = useTracking;
12029
- //# sourceMappingURL=index-BnX71_B4-BwTVUy-u.js.map
11904
+ //# sourceMappingURL=index-UBwCyQ_3-lG3F5mWr.js.map