@strapi/plugin-users-permissions 5.0.6 → 5.1.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.
Files changed (32) hide show
  1. package/dist/_chunks/{index-Cb03Ke48.js → index-BBPGXd0j.js} +4 -4
  2. package/dist/_chunks/{index-Cb03Ke48.js.map → index-BBPGXd0j.js.map} +1 -1
  3. package/dist/_chunks/{index-_vrdPeYp.js → index-BTNTOiVP.js} +7 -10
  4. package/dist/_chunks/{index-_vrdPeYp.js.map → index-BTNTOiVP.js.map} +1 -1
  5. package/dist/_chunks/{index-bDCZWhLO.mjs → index-Bpa0xGn5.mjs} +7 -10
  6. package/dist/_chunks/{index-bDCZWhLO.mjs.map → index-Bpa0xGn5.mjs.map} +1 -1
  7. package/dist/_chunks/{index-cL_YxyjM.js → index-BwJsoSwt.js} +12 -10
  8. package/dist/_chunks/index-BwJsoSwt.js.map +1 -0
  9. package/dist/_chunks/{index-BJTnrL31.js → index-CJ_7DFfa.js} +2 -2
  10. package/dist/_chunks/{index-BJTnrL31.js.map → index-CJ_7DFfa.js.map} +1 -1
  11. package/dist/_chunks/{index-B9cFxoCN.mjs → index-CRukUN74.mjs} +8 -6
  12. package/dist/_chunks/index-CRukUN74.mjs.map +1 -0
  13. package/dist/_chunks/{index-DDglyd0X.mjs → index-D2kGAZf4.mjs} +2 -2
  14. package/dist/_chunks/{index-DDglyd0X.mjs.map → index-D2kGAZf4.mjs.map} +1 -1
  15. package/dist/_chunks/{index-QPUYgtlo-BfJxOAzF.mjs → index-D3MhJ11W-C1E7ADbJ.mjs} +408 -269
  16. package/dist/_chunks/index-D3MhJ11W-C1E7ADbJ.mjs.map +1 -0
  17. package/dist/_chunks/{index-QPUYgtlo-QiBdpWEj.js → index-D3MhJ11W-fMZ4nmrb.js} +408 -269
  18. package/dist/_chunks/index-D3MhJ11W-fMZ4nmrb.js.map +1 -0
  19. package/dist/_chunks/{index-CI_b1cXd.mjs → index-D70N5IWW.mjs} +3 -4
  20. package/dist/_chunks/{index-CI_b1cXd.mjs.map → index-D70N5IWW.mjs.map} +1 -1
  21. package/dist/_chunks/{index-CAgV-G5k.js → index-DQyDoFw3.js} +3 -4
  22. package/dist/_chunks/{index-CAgV-G5k.js.map → index-DQyDoFw3.js.map} +1 -1
  23. package/dist/_chunks/{index-DJOPnOVo.mjs → index-Dly8ozQR.mjs} +3 -3
  24. package/dist/_chunks/{index-DJOPnOVo.mjs.map → index-Dly8ozQR.mjs.map} +1 -1
  25. package/dist/admin/index.js +1 -1
  26. package/dist/admin/index.mjs +1 -1
  27. package/package.json +4 -4
  28. package/server/controllers/role.js +16 -3
  29. package/dist/_chunks/index-B9cFxoCN.mjs.map +0 -1
  30. package/dist/_chunks/index-QPUYgtlo-BfJxOAzF.mjs.map +0 -1
  31. package/dist/_chunks/index-QPUYgtlo-QiBdpWEj.js.map +0 -1
  32. package/dist/_chunks/index-cL_YxyjM.js.map +0 -1
@@ -53,6 +53,7 @@ const clone__default = /* @__PURE__ */ _interopDefault(clone);
53
53
  const toPath__default = /* @__PURE__ */ _interopDefault(toPath);
54
54
  const isEqual__default = /* @__PURE__ */ _interopDefault(isEqual);
55
55
  const yup__namespace = /* @__PURE__ */ _interopNamespace(yup);
56
+ var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof window !== "undefined" ? window : typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : {};
56
57
  function getDefaultExportFromCjs(x) {
57
58
  return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, "default") ? x["default"] : x;
58
59
  }
@@ -82,6 +83,13 @@ function getAugmentedNamespace(n) {
82
83
  });
83
84
  return a2;
84
85
  }
86
+ var esErrors = Error;
87
+ var _eval = EvalError;
88
+ var range = RangeError;
89
+ var ref = ReferenceError;
90
+ var syntax = SyntaxError;
91
+ var type = TypeError;
92
+ var uri = URIError;
85
93
  var shams = function hasSymbols() {
86
94
  if (typeof Symbol !== "function" || typeof Object.getOwnPropertySymbols !== "function") {
87
95
  return false;
@@ -152,39 +160,65 @@ var hasProto$1 = function hasProto() {
152
160
  return { __proto__: test$1 }.foo === test$1.foo && !({ __proto__: null } instanceof $Object);
153
161
  };
154
162
  var ERROR_MESSAGE = "Function.prototype.bind called on incompatible ";
155
- var slice = Array.prototype.slice;
156
163
  var toStr$1 = Object.prototype.toString;
164
+ var max = Math.max;
157
165
  var funcType = "[object Function]";
166
+ var concatty = function concatty2(a2, b) {
167
+ var arr = [];
168
+ for (var i = 0; i < a2.length; i += 1) {
169
+ arr[i] = a2[i];
170
+ }
171
+ for (var j = 0; j < b.length; j += 1) {
172
+ arr[j + a2.length] = b[j];
173
+ }
174
+ return arr;
175
+ };
176
+ var slicy = function slicy2(arrLike, offset) {
177
+ var arr = [];
178
+ for (var i = offset, j = 0; i < arrLike.length; i += 1, j += 1) {
179
+ arr[j] = arrLike[i];
180
+ }
181
+ return arr;
182
+ };
183
+ var joiny = function(arr, joiner) {
184
+ var str = "";
185
+ for (var i = 0; i < arr.length; i += 1) {
186
+ str += arr[i];
187
+ if (i + 1 < arr.length) {
188
+ str += joiner;
189
+ }
190
+ }
191
+ return str;
192
+ };
158
193
  var implementation$1 = function bind(that) {
159
194
  var target = this;
160
- if (typeof target !== "function" || toStr$1.call(target) !== funcType) {
195
+ if (typeof target !== "function" || toStr$1.apply(target) !== funcType) {
161
196
  throw new TypeError(ERROR_MESSAGE + target);
162
197
  }
163
- var args = slice.call(arguments, 1);
198
+ var args = slicy(arguments, 1);
164
199
  var bound;
165
200
  var binder = function() {
166
201
  if (this instanceof bound) {
167
202
  var result = target.apply(
168
203
  this,
169
- args.concat(slice.call(arguments))
204
+ concatty(args, arguments)
170
205
  );
171
206
  if (Object(result) === result) {
172
207
  return result;
173
208
  }
174
209
  return this;
175
- } else {
176
- return target.apply(
177
- that,
178
- args.concat(slice.call(arguments))
179
- );
180
210
  }
211
+ return target.apply(
212
+ that,
213
+ concatty(args, arguments)
214
+ );
181
215
  };
182
- var boundLength = Math.max(0, target.length - args.length);
216
+ var boundLength = max(0, target.length - args.length);
183
217
  var boundArgs = [];
184
218
  for (var i = 0; i < boundLength; i++) {
185
- boundArgs.push("$" + i);
219
+ boundArgs[i] = "$" + i;
186
220
  }
187
- bound = Function("binder", "return function (" + boundArgs.join(",") + "){ return binder.apply(this,arguments); }")(binder);
221
+ bound = Function("binder", "return function (" + joiny(boundArgs, ",") + "){ return binder.apply(this,arguments); }")(binder);
188
222
  if (target.prototype) {
189
223
  var Empty = function Empty2() {
190
224
  };
@@ -196,36 +230,43 @@ var implementation$1 = function bind(that) {
196
230
  };
197
231
  var implementation = implementation$1;
198
232
  var functionBind = Function.prototype.bind || implementation;
233
+ var call = Function.prototype.call;
234
+ var $hasOwn = Object.prototype.hasOwnProperty;
199
235
  var bind$2 = functionBind;
200
- var src = bind$2.call(Function.call, Object.prototype.hasOwnProperty);
236
+ var hasown = bind$2.call(call, $hasOwn);
201
237
  var undefined$1;
202
- var $SyntaxError = SyntaxError;
238
+ var $Error = esErrors;
239
+ var $EvalError = _eval;
240
+ var $RangeError = range;
241
+ var $ReferenceError = ref;
242
+ var $SyntaxError$1 = syntax;
243
+ var $TypeError$3 = type;
244
+ var $URIError = uri;
203
245
  var $Function = Function;
204
- var $TypeError$1 = TypeError;
205
246
  var getEvalledConstructor = function(expressionSyntax) {
206
247
  try {
207
248
  return $Function('"use strict"; return (' + expressionSyntax + ").constructor;")();
208
249
  } catch (e) {
209
250
  }
210
251
  };
211
- var $gOPD = Object.getOwnPropertyDescriptor;
212
- if ($gOPD) {
252
+ var $gOPD$1 = Object.getOwnPropertyDescriptor;
253
+ if ($gOPD$1) {
213
254
  try {
214
- $gOPD({}, "");
255
+ $gOPD$1({}, "");
215
256
  } catch (e) {
216
- $gOPD = null;
257
+ $gOPD$1 = null;
217
258
  }
218
259
  }
219
260
  var throwTypeError = function() {
220
- throw new $TypeError$1();
261
+ throw new $TypeError$3();
221
262
  };
222
- var ThrowTypeError = $gOPD ? function() {
263
+ var ThrowTypeError = $gOPD$1 ? function() {
223
264
  try {
224
265
  arguments.callee;
225
266
  return throwTypeError;
226
267
  } catch (calleeThrows) {
227
268
  try {
228
- return $gOPD(arguments, "callee").get;
269
+ return $gOPD$1(arguments, "callee").get;
229
270
  } catch (gOPDthrows) {
230
271
  return throwTypeError;
231
272
  }
@@ -239,6 +280,7 @@ var getProto = Object.getPrototypeOf || (hasProto2 ? function(x) {
239
280
  var needsEval = {};
240
281
  var TypedArray = typeof Uint8Array === "undefined" || !getProto ? undefined$1 : getProto(Uint8Array);
241
282
  var INTRINSICS = {
283
+ __proto__: null,
242
284
  "%AggregateError%": typeof AggregateError === "undefined" ? undefined$1 : AggregateError,
243
285
  "%Array%": Array,
244
286
  "%ArrayBuffer%": typeof ArrayBuffer === "undefined" ? undefined$1 : ArrayBuffer,
@@ -259,10 +301,10 @@ var INTRINSICS = {
259
301
  "%decodeURIComponent%": decodeURIComponent,
260
302
  "%encodeURI%": encodeURI,
261
303
  "%encodeURIComponent%": encodeURIComponent,
262
- "%Error%": Error,
304
+ "%Error%": $Error,
263
305
  "%eval%": eval,
264
306
  // eslint-disable-line no-eval
265
- "%EvalError%": EvalError,
307
+ "%EvalError%": $EvalError,
266
308
  "%Float32Array%": typeof Float32Array === "undefined" ? undefined$1 : Float32Array,
267
309
  "%Float64Array%": typeof Float64Array === "undefined" ? undefined$1 : Float64Array,
268
310
  "%FinalizationRegistry%": typeof FinalizationRegistry === "undefined" ? undefined$1 : FinalizationRegistry,
@@ -284,8 +326,8 @@ var INTRINSICS = {
284
326
  "%parseInt%": parseInt,
285
327
  "%Promise%": typeof Promise === "undefined" ? undefined$1 : Promise,
286
328
  "%Proxy%": typeof Proxy === "undefined" ? undefined$1 : Proxy,
287
- "%RangeError%": RangeError,
288
- "%ReferenceError%": ReferenceError,
329
+ "%RangeError%": $RangeError,
330
+ "%ReferenceError%": $ReferenceError,
289
331
  "%Reflect%": typeof Reflect === "undefined" ? undefined$1 : Reflect,
290
332
  "%RegExp%": RegExp,
291
333
  "%Set%": typeof Set === "undefined" ? undefined$1 : Set,
@@ -294,15 +336,15 @@ var INTRINSICS = {
294
336
  "%String%": String,
295
337
  "%StringIteratorPrototype%": hasSymbols2 && getProto ? getProto(""[Symbol.iterator]()) : undefined$1,
296
338
  "%Symbol%": hasSymbols2 ? Symbol : undefined$1,
297
- "%SyntaxError%": $SyntaxError,
339
+ "%SyntaxError%": $SyntaxError$1,
298
340
  "%ThrowTypeError%": ThrowTypeError,
299
341
  "%TypedArray%": TypedArray,
300
- "%TypeError%": $TypeError$1,
342
+ "%TypeError%": $TypeError$3,
301
343
  "%Uint8Array%": typeof Uint8Array === "undefined" ? undefined$1 : Uint8Array,
302
344
  "%Uint8ClampedArray%": typeof Uint8ClampedArray === "undefined" ? undefined$1 : Uint8ClampedArray,
303
345
  "%Uint16Array%": typeof Uint16Array === "undefined" ? undefined$1 : Uint16Array,
304
346
  "%Uint32Array%": typeof Uint32Array === "undefined" ? undefined$1 : Uint32Array,
305
- "%URIError%": URIError,
347
+ "%URIError%": $URIError,
306
348
  "%WeakMap%": typeof WeakMap === "undefined" ? undefined$1 : WeakMap,
307
349
  "%WeakRef%": typeof WeakRef === "undefined" ? undefined$1 : WeakRef,
308
350
  "%WeakSet%": typeof WeakSet === "undefined" ? undefined$1 : WeakSet
@@ -338,6 +380,7 @@ var doEval = function doEval2(name) {
338
380
  return value;
339
381
  };
340
382
  var LEGACY_ALIASES = {
383
+ __proto__: null,
341
384
  "%ArrayBufferPrototype%": ["ArrayBuffer", "prototype"],
342
385
  "%ArrayPrototype%": ["Array", "prototype"],
343
386
  "%ArrayProto_entries%": ["Array", "prototype", "entries"],
@@ -391,7 +434,7 @@ var LEGACY_ALIASES = {
391
434
  "%WeakSetPrototype%": ["WeakSet", "prototype"]
392
435
  };
393
436
  var bind$1 = functionBind;
394
- var hasOwn$1 = src;
437
+ var hasOwn$1 = hasown;
395
438
  var $concat$1 = bind$1.call(Function.call, Array.prototype.concat);
396
439
  var $spliceApply = bind$1.call(Function.apply, Array.prototype.splice);
397
440
  var $replace$1 = bind$1.call(Function.call, String.prototype.replace);
@@ -403,9 +446,9 @@ var stringToPath = function stringToPath2(string) {
403
446
  var first = $strSlice(string, 0, 1);
404
447
  var last = $strSlice(string, -1);
405
448
  if (first === "%" && last !== "%") {
406
- throw new $SyntaxError("invalid intrinsic syntax, expected closing `%`");
449
+ throw new $SyntaxError$1("invalid intrinsic syntax, expected closing `%`");
407
450
  } else if (last === "%" && first !== "%") {
408
- throw new $SyntaxError("invalid intrinsic syntax, expected opening `%`");
451
+ throw new $SyntaxError$1("invalid intrinsic syntax, expected opening `%`");
409
452
  }
410
453
  var result = [];
411
454
  $replace$1(string, rePropName, function(match, number, quote2, subString) {
@@ -426,7 +469,7 @@ var getBaseIntrinsic = function getBaseIntrinsic2(name, allowMissing) {
426
469
  value = doEval(intrinsicName);
427
470
  }
428
471
  if (typeof value === "undefined" && !allowMissing) {
429
- throw new $TypeError$1("intrinsic " + name + " exists, but is not available. Please file an issue!");
472
+ throw new $TypeError$3("intrinsic " + name + " exists, but is not available. Please file an issue!");
430
473
  }
431
474
  return {
432
475
  alias,
@@ -434,17 +477,17 @@ var getBaseIntrinsic = function getBaseIntrinsic2(name, allowMissing) {
434
477
  value
435
478
  };
436
479
  }
437
- throw new $SyntaxError("intrinsic " + name + " does not exist!");
480
+ throw new $SyntaxError$1("intrinsic " + name + " does not exist!");
438
481
  };
439
482
  var getIntrinsic = function GetIntrinsic(name, allowMissing) {
440
483
  if (typeof name !== "string" || name.length === 0) {
441
- throw new $TypeError$1("intrinsic name must be a non-empty string");
484
+ throw new $TypeError$3("intrinsic name must be a non-empty string");
442
485
  }
443
486
  if (arguments.length > 1 && typeof allowMissing !== "boolean") {
444
- throw new $TypeError$1('"allowMissing" argument must be a boolean');
487
+ throw new $TypeError$3('"allowMissing" argument must be a boolean');
445
488
  }
446
489
  if ($exec(/^%?[^%]*%?$/, name) === null) {
447
- throw new $SyntaxError("`%` may not be present anywhere but at the beginning and end of the intrinsic name");
490
+ throw new $SyntaxError$1("`%` may not be present anywhere but at the beginning and end of the intrinsic name");
448
491
  }
449
492
  var parts = stringToPath(name);
450
493
  var intrinsicBaseName = parts.length > 0 ? parts[0] : "";
@@ -462,7 +505,7 @@ var getIntrinsic = function GetIntrinsic(name, allowMissing) {
462
505
  var first = $strSlice(part, 0, 1);
463
506
  var last = $strSlice(part, -1);
464
507
  if ((first === '"' || first === "'" || first === "`" || (last === '"' || last === "'" || last === "`")) && first !== last) {
465
- throw new $SyntaxError("property names with quotes must have matching quotes");
508
+ throw new $SyntaxError$1("property names with quotes must have matching quotes");
466
509
  }
467
510
  if (part === "constructor" || !isOwn) {
468
511
  skipFurtherCaching = true;
@@ -474,12 +517,12 @@ var getIntrinsic = function GetIntrinsic(name, allowMissing) {
474
517
  } else if (value != null) {
475
518
  if (!(part in value)) {
476
519
  if (!allowMissing) {
477
- throw new $TypeError$1("base intrinsic for " + name + " exists, but the property is not available.");
520
+ throw new $TypeError$3("base intrinsic for " + name + " exists, but the property is not available.");
478
521
  }
479
522
  return void 0;
480
523
  }
481
- if ($gOPD && i + 1 >= parts.length) {
482
- var desc = $gOPD(value, part);
524
+ if ($gOPD$1 && i + 1 >= parts.length) {
525
+ var desc = $gOPD$1(value, part);
483
526
  isOwn = !!desc;
484
527
  if (isOwn && "get" in desc && !("originalValue" in desc.get)) {
485
528
  value = desc.get;
@@ -498,41 +541,162 @@ var getIntrinsic = function GetIntrinsic(name, allowMissing) {
498
541
  return value;
499
542
  };
500
543
  var callBind$1 = { exports: {} };
544
+ var esDefineProperty;
545
+ var hasRequiredEsDefineProperty;
546
+ function requireEsDefineProperty() {
547
+ if (hasRequiredEsDefineProperty)
548
+ return esDefineProperty;
549
+ hasRequiredEsDefineProperty = 1;
550
+ var GetIntrinsic3 = getIntrinsic;
551
+ var $defineProperty2 = GetIntrinsic3("%Object.defineProperty%", true) || false;
552
+ if ($defineProperty2) {
553
+ try {
554
+ $defineProperty2({}, "a", { value: 1 });
555
+ } catch (e) {
556
+ $defineProperty2 = false;
557
+ }
558
+ }
559
+ esDefineProperty = $defineProperty2;
560
+ return esDefineProperty;
561
+ }
562
+ var GetIntrinsic$3 = getIntrinsic;
563
+ var $gOPD = GetIntrinsic$3("%Object.getOwnPropertyDescriptor%", true);
564
+ if ($gOPD) {
565
+ try {
566
+ $gOPD([], "length");
567
+ } catch (e) {
568
+ $gOPD = null;
569
+ }
570
+ }
571
+ var gopd$1 = $gOPD;
572
+ var $defineProperty$1 = requireEsDefineProperty();
573
+ var $SyntaxError = syntax;
574
+ var $TypeError$2 = type;
575
+ var gopd = gopd$1;
576
+ var defineDataProperty = function defineDataProperty2(obj, property, value) {
577
+ if (!obj || typeof obj !== "object" && typeof obj !== "function") {
578
+ throw new $TypeError$2("`obj` must be an object or a function`");
579
+ }
580
+ if (typeof property !== "string" && typeof property !== "symbol") {
581
+ throw new $TypeError$2("`property` must be a string or a symbol`");
582
+ }
583
+ if (arguments.length > 3 && typeof arguments[3] !== "boolean" && arguments[3] !== null) {
584
+ throw new $TypeError$2("`nonEnumerable`, if provided, must be a boolean or null");
585
+ }
586
+ if (arguments.length > 4 && typeof arguments[4] !== "boolean" && arguments[4] !== null) {
587
+ throw new $TypeError$2("`nonWritable`, if provided, must be a boolean or null");
588
+ }
589
+ if (arguments.length > 5 && typeof arguments[5] !== "boolean" && arguments[5] !== null) {
590
+ throw new $TypeError$2("`nonConfigurable`, if provided, must be a boolean or null");
591
+ }
592
+ if (arguments.length > 6 && typeof arguments[6] !== "boolean") {
593
+ throw new $TypeError$2("`loose`, if provided, must be a boolean");
594
+ }
595
+ var nonEnumerable = arguments.length > 3 ? arguments[3] : null;
596
+ var nonWritable = arguments.length > 4 ? arguments[4] : null;
597
+ var nonConfigurable = arguments.length > 5 ? arguments[5] : null;
598
+ var loose = arguments.length > 6 ? arguments[6] : false;
599
+ var desc = !!gopd && gopd(obj, property);
600
+ if ($defineProperty$1) {
601
+ $defineProperty$1(obj, property, {
602
+ configurable: nonConfigurable === null && desc ? desc.configurable : !nonConfigurable,
603
+ enumerable: nonEnumerable === null && desc ? desc.enumerable : !nonEnumerable,
604
+ value,
605
+ writable: nonWritable === null && desc ? desc.writable : !nonWritable
606
+ });
607
+ } else if (loose || !nonEnumerable && !nonWritable && !nonConfigurable) {
608
+ obj[property] = value;
609
+ } else {
610
+ throw new $SyntaxError("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");
611
+ }
612
+ };
613
+ var $defineProperty = requireEsDefineProperty();
614
+ var hasPropertyDescriptors = function hasPropertyDescriptors2() {
615
+ return !!$defineProperty;
616
+ };
617
+ hasPropertyDescriptors.hasArrayLengthDefineBug = function hasArrayLengthDefineBug() {
618
+ if (!$defineProperty) {
619
+ return null;
620
+ }
621
+ try {
622
+ return $defineProperty([], "length", { value: 1 }).length !== 1;
623
+ } catch (e) {
624
+ return true;
625
+ }
626
+ };
627
+ var hasPropertyDescriptors_1 = hasPropertyDescriptors;
628
+ var GetIntrinsic$2 = getIntrinsic;
629
+ var define = defineDataProperty;
630
+ var hasDescriptors = hasPropertyDescriptors_1();
631
+ var gOPD = gopd$1;
632
+ var $TypeError$1 = type;
633
+ var $floor$1 = GetIntrinsic$2("%Math.floor%");
634
+ var setFunctionLength = function setFunctionLength2(fn, length) {
635
+ if (typeof fn !== "function") {
636
+ throw new $TypeError$1("`fn` is not a function");
637
+ }
638
+ if (typeof length !== "number" || length < 0 || length > 4294967295 || $floor$1(length) !== length) {
639
+ throw new $TypeError$1("`length` must be a positive 32-bit integer");
640
+ }
641
+ var loose = arguments.length > 2 && !!arguments[2];
642
+ var functionLengthIsConfigurable = true;
643
+ var functionLengthIsWritable = true;
644
+ if ("length" in fn && gOPD) {
645
+ var desc = gOPD(fn, "length");
646
+ if (desc && !desc.configurable) {
647
+ functionLengthIsConfigurable = false;
648
+ }
649
+ if (desc && !desc.writable) {
650
+ functionLengthIsWritable = false;
651
+ }
652
+ }
653
+ if (functionLengthIsConfigurable || functionLengthIsWritable || !loose) {
654
+ if (hasDescriptors) {
655
+ define(
656
+ /** @type {Parameters<define>[0]} */
657
+ fn,
658
+ "length",
659
+ length,
660
+ true,
661
+ true
662
+ );
663
+ } else {
664
+ define(
665
+ /** @type {Parameters<define>[0]} */
666
+ fn,
667
+ "length",
668
+ length
669
+ );
670
+ }
671
+ }
672
+ return fn;
673
+ };
501
674
  (function(module2) {
502
675
  var bind3 = functionBind;
503
676
  var GetIntrinsic3 = getIntrinsic;
677
+ var setFunctionLength$1 = setFunctionLength;
678
+ var $TypeError2 = type;
504
679
  var $apply = GetIntrinsic3("%Function.prototype.apply%");
505
680
  var $call = GetIntrinsic3("%Function.prototype.call%");
506
681
  var $reflectApply = GetIntrinsic3("%Reflect.apply%", true) || bind3.call($call, $apply);
507
- var $gOPD2 = GetIntrinsic3("%Object.getOwnPropertyDescriptor%", true);
508
- var $defineProperty = GetIntrinsic3("%Object.defineProperty%", true);
682
+ var $defineProperty2 = requireEsDefineProperty();
509
683
  var $max = GetIntrinsic3("%Math.max%");
510
- if ($defineProperty) {
511
- try {
512
- $defineProperty({}, "a", { value: 1 });
513
- } catch (e) {
514
- $defineProperty = null;
515
- }
516
- }
517
684
  module2.exports = function callBind2(originalFunction) {
518
- var func = $reflectApply(bind3, $call, arguments);
519
- if ($gOPD2 && $defineProperty) {
520
- var desc = $gOPD2(func, "length");
521
- if (desc.configurable) {
522
- $defineProperty(
523
- func,
524
- "length",
525
- { value: 1 + $max(0, originalFunction.length - (arguments.length - 1)) }
526
- );
527
- }
685
+ if (typeof originalFunction !== "function") {
686
+ throw new $TypeError2("a function is required");
528
687
  }
529
- return func;
688
+ var func = $reflectApply(bind3, $call, arguments);
689
+ return setFunctionLength$1(
690
+ func,
691
+ 1 + $max(0, originalFunction.length - (arguments.length - 1)),
692
+ true
693
+ );
530
694
  };
531
695
  var applyBind = function applyBind2() {
532
696
  return $reflectApply(bind3, $apply, arguments);
533
697
  };
534
- if ($defineProperty) {
535
- $defineProperty(module2.exports, "apply", { value: applyBind });
698
+ if ($defineProperty2) {
699
+ $defineProperty2(module2.exports, "apply", { value: applyBind });
536
700
  } else {
537
701
  module2.exports.apply = applyBind;
538
702
  }
@@ -767,6 +931,12 @@ var objectInspect = function inspect_(obj, options, depth, seen) {
767
931
  if (isString$1(obj)) {
768
932
  return markBoxed(inspect2(String(obj)));
769
933
  }
934
+ if (typeof window !== "undefined" && obj === window) {
935
+ return "{ [object Window] }";
936
+ }
937
+ if (typeof globalThis !== "undefined" && obj === globalThis || typeof commonjsGlobal !== "undefined" && obj === commonjsGlobal) {
938
+ return "{ [object globalThis] }";
939
+ }
770
940
  if (!isDate$2(obj) && !isRegExp$2(obj)) {
771
941
  var ys = arrObjKeys(obj, inspect2);
772
942
  var isPlainObject2 = gPO ? gPO(obj) === Object.prototype : obj instanceof Object || obj.constructor === Object;
@@ -980,12 +1150,12 @@ function lowbyte(c) {
980
1150
  function markBoxed(str) {
981
1151
  return "Object(" + str + ")";
982
1152
  }
983
- function weakCollectionOf(type) {
984
- return type + " { ? }";
1153
+ function weakCollectionOf(type2) {
1154
+ return type2 + " { ? }";
985
1155
  }
986
- function collectionOf(type, size, entries, indent) {
1156
+ function collectionOf(type2, size, entries, indent) {
987
1157
  var joinedEntries = indent ? indentedJoin(entries, indent) : $join.call(entries, ", ");
988
- return type + " (" + size + ") {" + joinedEntries + "}";
1158
+ return type2 + " (" + size + ") {" + joinedEntries + "}";
989
1159
  }
990
1160
  function singleLineValues(xs) {
991
1161
  for (var i = 0; i < xs.length; i++) {
@@ -1060,7 +1230,7 @@ function arrObjKeys(obj, inspect2) {
1060
1230
  var GetIntrinsic2 = getIntrinsic;
1061
1231
  var callBound = callBound$1;
1062
1232
  var inspect = objectInspect;
1063
- var $TypeError = GetIntrinsic2("%TypeError%");
1233
+ var $TypeError = type;
1064
1234
  var $WeakMap = GetIntrinsic2("%WeakMap%", true);
1065
1235
  var $Map = GetIntrinsic2("%Map%", true);
1066
1236
  var $weakMapGet = callBound("WeakMap.prototype.get", true);
@@ -1070,10 +1240,13 @@ var $mapGet = callBound("Map.prototype.get", true);
1070
1240
  var $mapSet = callBound("Map.prototype.set", true);
1071
1241
  var $mapHas = callBound("Map.prototype.has", true);
1072
1242
  var listGetNode = function(list, key) {
1073
- for (var prev = list, curr; (curr = prev.next) !== null; prev = curr) {
1243
+ var prev = list;
1244
+ var curr;
1245
+ for (; (curr = prev.next) !== null; prev = curr) {
1074
1246
  if (curr.key === key) {
1075
1247
  prev.next = curr.next;
1076
- curr.next = list.next;
1248
+ curr.next = /** @type {NonNullable<typeof list.next>} */
1249
+ list.next;
1077
1250
  list.next = curr;
1078
1251
  return curr;
1079
1252
  }
@@ -1088,8 +1261,9 @@ var listSet = function(objects, key, value) {
1088
1261
  if (node) {
1089
1262
  node.value = value;
1090
1263
  } else {
1091
- objects.next = {
1092
- // eslint-disable-line no-param-reassign
1264
+ objects.next = /** @type {import('.').ListNode<typeof value>} */
1265
+ {
1266
+ // eslint-disable-line no-param-reassign, no-extra-parens
1093
1267
  key,
1094
1268
  next: objects.next,
1095
1269
  value
@@ -1395,7 +1569,7 @@ var pushToArray = function(arr, valueOrArray) {
1395
1569
  };
1396
1570
  var toISO = Date.prototype.toISOString;
1397
1571
  var defaultFormat = formats$1["default"];
1398
- var defaults$3 = {
1572
+ var defaults$2 = {
1399
1573
  addQueryPrefix: false,
1400
1574
  allowDots: false,
1401
1575
  charset: "utf-8",
@@ -1451,14 +1625,14 @@ var stringify$1 = function stringify(object, prefix, generateArrayPrefix, commaR
1451
1625
  }
1452
1626
  if (obj === null) {
1453
1627
  if (strictNullHandling) {
1454
- return encoder && !encodeValuesOnly ? encoder(prefix, defaults$3.encoder, charset, "key", format) : prefix;
1628
+ return encoder && !encodeValuesOnly ? encoder(prefix, defaults$2.encoder, charset, "key", format) : prefix;
1455
1629
  }
1456
1630
  obj = "";
1457
1631
  }
1458
1632
  if (isNonNullishPrimitive(obj) || utils$3.isBuffer(obj)) {
1459
1633
  if (encoder) {
1460
- var keyValue = encodeValuesOnly ? prefix : encoder(prefix, defaults$3.encoder, charset, "key", format);
1461
- return [formatter(keyValue) + "=" + formatter(encoder(obj, defaults$3.encoder, charset, "value", format))];
1634
+ var keyValue = encodeValuesOnly ? prefix : encoder(prefix, defaults$2.encoder, charset, "key", format);
1635
+ return [formatter(keyValue) + "=" + formatter(encoder(obj, defaults$2.encoder, charset, "value", format))];
1462
1636
  }
1463
1637
  return [formatter(prefix) + "=" + formatter(String(obj))];
1464
1638
  }
@@ -1512,12 +1686,12 @@ var stringify$1 = function stringify(object, prefix, generateArrayPrefix, commaR
1512
1686
  };
1513
1687
  var normalizeStringifyOptions = function normalizeStringifyOptions2(opts) {
1514
1688
  if (!opts) {
1515
- return defaults$3;
1689
+ return defaults$2;
1516
1690
  }
1517
1691
  if (opts.encoder !== null && typeof opts.encoder !== "undefined" && typeof opts.encoder !== "function") {
1518
1692
  throw new TypeError("Encoder has to be a function.");
1519
1693
  }
1520
- var charset = opts.charset || defaults$3.charset;
1694
+ var charset = opts.charset || defaults$2.charset;
1521
1695
  if (typeof opts.charset !== "undefined" && opts.charset !== "utf-8" && opts.charset !== "iso-8859-1") {
1522
1696
  throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");
1523
1697
  }
@@ -1529,26 +1703,26 @@ var normalizeStringifyOptions = function normalizeStringifyOptions2(opts) {
1529
1703
  format = opts.format;
1530
1704
  }
1531
1705
  var formatter = formats$1.formatters[format];
1532
- var filter2 = defaults$3.filter;
1706
+ var filter2 = defaults$2.filter;
1533
1707
  if (typeof opts.filter === "function" || isArray$2(opts.filter)) {
1534
1708
  filter2 = opts.filter;
1535
1709
  }
1536
1710
  return {
1537
- addQueryPrefix: typeof opts.addQueryPrefix === "boolean" ? opts.addQueryPrefix : defaults$3.addQueryPrefix,
1538
- allowDots: typeof opts.allowDots === "undefined" ? defaults$3.allowDots : !!opts.allowDots,
1711
+ addQueryPrefix: typeof opts.addQueryPrefix === "boolean" ? opts.addQueryPrefix : defaults$2.addQueryPrefix,
1712
+ allowDots: typeof opts.allowDots === "undefined" ? defaults$2.allowDots : !!opts.allowDots,
1539
1713
  charset,
1540
- charsetSentinel: typeof opts.charsetSentinel === "boolean" ? opts.charsetSentinel : defaults$3.charsetSentinel,
1541
- delimiter: typeof opts.delimiter === "undefined" ? defaults$3.delimiter : opts.delimiter,
1542
- encode: typeof opts.encode === "boolean" ? opts.encode : defaults$3.encode,
1543
- encoder: typeof opts.encoder === "function" ? opts.encoder : defaults$3.encoder,
1544
- encodeValuesOnly: typeof opts.encodeValuesOnly === "boolean" ? opts.encodeValuesOnly : defaults$3.encodeValuesOnly,
1714
+ charsetSentinel: typeof opts.charsetSentinel === "boolean" ? opts.charsetSentinel : defaults$2.charsetSentinel,
1715
+ delimiter: typeof opts.delimiter === "undefined" ? defaults$2.delimiter : opts.delimiter,
1716
+ encode: typeof opts.encode === "boolean" ? opts.encode : defaults$2.encode,
1717
+ encoder: typeof opts.encoder === "function" ? opts.encoder : defaults$2.encoder,
1718
+ encodeValuesOnly: typeof opts.encodeValuesOnly === "boolean" ? opts.encodeValuesOnly : defaults$2.encodeValuesOnly,
1545
1719
  filter: filter2,
1546
1720
  format,
1547
1721
  formatter,
1548
- serializeDate: typeof opts.serializeDate === "function" ? opts.serializeDate : defaults$3.serializeDate,
1549
- skipNulls: typeof opts.skipNulls === "boolean" ? opts.skipNulls : defaults$3.skipNulls,
1722
+ serializeDate: typeof opts.serializeDate === "function" ? opts.serializeDate : defaults$2.serializeDate,
1723
+ skipNulls: typeof opts.skipNulls === "boolean" ? opts.skipNulls : defaults$2.skipNulls,
1550
1724
  sort: typeof opts.sort === "function" ? opts.sort : null,
1551
- strictNullHandling: typeof opts.strictNullHandling === "boolean" ? opts.strictNullHandling : defaults$3.strictNullHandling
1725
+ strictNullHandling: typeof opts.strictNullHandling === "boolean" ? opts.strictNullHandling : defaults$2.strictNullHandling
1552
1726
  };
1553
1727
  };
1554
1728
  var stringify_1 = function(object, opts) {
@@ -1625,7 +1799,7 @@ var stringify_1 = function(object, opts) {
1625
1799
  var utils$2 = utils$4;
1626
1800
  var has = Object.prototype.hasOwnProperty;
1627
1801
  var isArray$1 = Array.isArray;
1628
- var defaults$2 = {
1802
+ var defaults$1 = {
1629
1803
  allowDots: false,
1630
1804
  allowPrototypes: false,
1631
1805
  allowSparse: false,
@@ -1686,14 +1860,14 @@ var parseValues = function parseQueryStringValues(str, options) {
1686
1860
  var pos = bracketEqualsPos === -1 ? part.indexOf("=") : bracketEqualsPos + 1;
1687
1861
  var key, val;
1688
1862
  if (pos === -1) {
1689
- key = options.decoder(part, defaults$2.decoder, charset, "key");
1863
+ key = options.decoder(part, defaults$1.decoder, charset, "key");
1690
1864
  val = options.strictNullHandling ? null : "";
1691
1865
  } else {
1692
- key = options.decoder(part.slice(0, pos), defaults$2.decoder, charset, "key");
1866
+ key = options.decoder(part.slice(0, pos), defaults$1.decoder, charset, "key");
1693
1867
  val = utils$2.maybeMap(
1694
1868
  parseArrayValue(part.slice(pos + 1), options),
1695
1869
  function(encodedVal) {
1696
- return options.decoder(encodedVal, defaults$2.decoder, charset, "value");
1870
+ return options.decoder(encodedVal, defaults$1.decoder, charset, "value");
1697
1871
  }
1698
1872
  );
1699
1873
  }
@@ -1770,7 +1944,7 @@ var parseKeys = function parseQueryStringKeys(givenKey, val, options, valuesPars
1770
1944
  };
1771
1945
  var normalizeParseOptions = function normalizeParseOptions2(opts) {
1772
1946
  if (!opts) {
1773
- return defaults$2;
1947
+ return defaults$1;
1774
1948
  }
1775
1949
  if (opts.decoder !== null && opts.decoder !== void 0 && typeof opts.decoder !== "function") {
1776
1950
  throw new TypeError("Decoder has to be a function.");
@@ -1778,25 +1952,25 @@ var normalizeParseOptions = function normalizeParseOptions2(opts) {
1778
1952
  if (typeof opts.charset !== "undefined" && opts.charset !== "utf-8" && opts.charset !== "iso-8859-1") {
1779
1953
  throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");
1780
1954
  }
1781
- var charset = typeof opts.charset === "undefined" ? defaults$2.charset : opts.charset;
1955
+ var charset = typeof opts.charset === "undefined" ? defaults$1.charset : opts.charset;
1782
1956
  return {
1783
- allowDots: typeof opts.allowDots === "undefined" ? defaults$2.allowDots : !!opts.allowDots,
1784
- allowPrototypes: typeof opts.allowPrototypes === "boolean" ? opts.allowPrototypes : defaults$2.allowPrototypes,
1785
- allowSparse: typeof opts.allowSparse === "boolean" ? opts.allowSparse : defaults$2.allowSparse,
1786
- arrayLimit: typeof opts.arrayLimit === "number" ? opts.arrayLimit : defaults$2.arrayLimit,
1957
+ allowDots: typeof opts.allowDots === "undefined" ? defaults$1.allowDots : !!opts.allowDots,
1958
+ allowPrototypes: typeof opts.allowPrototypes === "boolean" ? opts.allowPrototypes : defaults$1.allowPrototypes,
1959
+ allowSparse: typeof opts.allowSparse === "boolean" ? opts.allowSparse : defaults$1.allowSparse,
1960
+ arrayLimit: typeof opts.arrayLimit === "number" ? opts.arrayLimit : defaults$1.arrayLimit,
1787
1961
  charset,
1788
- charsetSentinel: typeof opts.charsetSentinel === "boolean" ? opts.charsetSentinel : defaults$2.charsetSentinel,
1789
- comma: typeof opts.comma === "boolean" ? opts.comma : defaults$2.comma,
1790
- decoder: typeof opts.decoder === "function" ? opts.decoder : defaults$2.decoder,
1791
- delimiter: typeof opts.delimiter === "string" || utils$2.isRegExp(opts.delimiter) ? opts.delimiter : defaults$2.delimiter,
1962
+ charsetSentinel: typeof opts.charsetSentinel === "boolean" ? opts.charsetSentinel : defaults$1.charsetSentinel,
1963
+ comma: typeof opts.comma === "boolean" ? opts.comma : defaults$1.comma,
1964
+ decoder: typeof opts.decoder === "function" ? opts.decoder : defaults$1.decoder,
1965
+ delimiter: typeof opts.delimiter === "string" || utils$2.isRegExp(opts.delimiter) ? opts.delimiter : defaults$1.delimiter,
1792
1966
  // eslint-disable-next-line no-implicit-coercion, no-extra-parens
1793
- depth: typeof opts.depth === "number" || opts.depth === false ? +opts.depth : defaults$2.depth,
1967
+ depth: typeof opts.depth === "number" || opts.depth === false ? +opts.depth : defaults$1.depth,
1794
1968
  ignoreQueryPrefix: opts.ignoreQueryPrefix === true,
1795
- interpretNumericEntities: typeof opts.interpretNumericEntities === "boolean" ? opts.interpretNumericEntities : defaults$2.interpretNumericEntities,
1796
- parameterLimit: typeof opts.parameterLimit === "number" ? opts.parameterLimit : defaults$2.parameterLimit,
1969
+ interpretNumericEntities: typeof opts.interpretNumericEntities === "boolean" ? opts.interpretNumericEntities : defaults$1.interpretNumericEntities,
1970
+ parameterLimit: typeof opts.parameterLimit === "number" ? opts.parameterLimit : defaults$1.parameterLimit,
1797
1971
  parseArrays: opts.parseArrays !== false,
1798
- plainObjects: typeof opts.plainObjects === "boolean" ? opts.plainObjects : defaults$2.plainObjects,
1799
- strictNullHandling: typeof opts.strictNullHandling === "boolean" ? opts.strictNullHandling : defaults$2.strictNullHandling
1972
+ plainObjects: typeof opts.plainObjects === "boolean" ? opts.plainObjects : defaults$1.plainObjects,
1973
+ strictNullHandling: typeof opts.strictNullHandling === "boolean" ? opts.strictNullHandling : defaults$1.strictNullHandling
1800
1974
  };
1801
1975
  };
1802
1976
  var parse$1 = function(str, opts) {
@@ -1853,14 +2027,14 @@ function miniKindOf(val) {
1853
2027
  return "undefined";
1854
2028
  if (val === null)
1855
2029
  return "null";
1856
- var type = typeof val;
1857
- switch (type) {
2030
+ var type2 = typeof val;
2031
+ switch (type2) {
1858
2032
  case "boolean":
1859
2033
  case "string":
1860
2034
  case "number":
1861
2035
  case "symbol":
1862
2036
  case "function": {
1863
- return type;
2037
+ return type2;
1864
2038
  }
1865
2039
  }
1866
2040
  if (Array.isArray(val))
@@ -1879,7 +2053,7 @@ function miniKindOf(val) {
1879
2053
  case "Set":
1880
2054
  return constructorName;
1881
2055
  }
1882
- return type.slice(8, -1).toLowerCase().replace(/\s/g, "");
2056
+ return type2.slice(8, -1).toLowerCase().replace(/\s/g, "");
1883
2057
  }
1884
2058
  function ctorName(val) {
1885
2059
  return typeof val.constructor === "function" ? val.constructor.name : null;
@@ -2342,7 +2516,7 @@ function isPlainObject$2(value) {
2342
2516
  var hasMatchFunction = function(v2) {
2343
2517
  return v2 && typeof v2.match === "function";
2344
2518
  };
2345
- function createAction(type, prepareAction) {
2519
+ function createAction(type2, prepareAction) {
2346
2520
  function actionCreator() {
2347
2521
  var args = [];
2348
2522
  for (var _i = 0; _i < arguments.length; _i++) {
@@ -2354,18 +2528,18 @@ function createAction(type, prepareAction) {
2354
2528
  throw new Error("prepareAction did not return an object");
2355
2529
  }
2356
2530
  return __spreadValues$2(__spreadValues$2({
2357
- type,
2531
+ type: type2,
2358
2532
  payload: prepared.payload
2359
2533
  }, "meta" in prepared && { meta: prepared.meta }), "error" in prepared && { error: prepared.error });
2360
2534
  }
2361
- return { type, payload: args[0] };
2535
+ return { type: type2, payload: args[0] };
2362
2536
  }
2363
2537
  actionCreator.toString = function() {
2364
- return "" + type;
2538
+ return "" + type2;
2365
2539
  };
2366
- actionCreator.type = type;
2540
+ actionCreator.type = type2;
2367
2541
  actionCreator.match = function(action) {
2368
- return action.type === type;
2542
+ return action.type === type2;
2369
2543
  };
2370
2544
  return actionCreator;
2371
2545
  }
@@ -2463,14 +2637,14 @@ function executeReducerBuilderCallback(builderCallback) {
2463
2637
  throw new Error("`builder.addCase` should only be called before calling `builder.addDefaultCase`");
2464
2638
  }
2465
2639
  }
2466
- var type = typeof typeOrActionCreator === "string" ? typeOrActionCreator : typeOrActionCreator.type;
2467
- if (!type) {
2640
+ var type2 = typeof typeOrActionCreator === "string" ? typeOrActionCreator : typeOrActionCreator.type;
2641
+ if (!type2) {
2468
2642
  throw new Error("`builder.addCase` cannot be called with an empty action type");
2469
2643
  }
2470
- if (type in actionsMap) {
2644
+ if (type2 in actionsMap) {
2471
2645
  throw new Error("`builder.addCase` cannot be called with two reducers for the same action type");
2472
2646
  }
2473
- actionsMap[type] = reducer2;
2647
+ actionsMap[type2] = reducer2;
2474
2648
  return builder;
2475
2649
  },
2476
2650
  addMatcher: function(matcher, reducer2) {
@@ -2572,8 +2746,8 @@ function createReducer(initialState2, mapOrBuilderCallback, actionMatchers, defa
2572
2746
  return reducer2;
2573
2747
  }
2574
2748
  var hasWarnedAboutObjectNotation2 = false;
2575
- function getType2(slice2, actionKey) {
2576
- return slice2 + "/" + actionKey;
2749
+ function getType2(slice, actionKey) {
2750
+ return slice + "/" + actionKey;
2577
2751
  }
2578
2752
  function createSlice(options) {
2579
2753
  var name = options.name;
@@ -2593,7 +2767,7 @@ function createSlice(options) {
2593
2767
  var actionCreators = {};
2594
2768
  reducerNames.forEach(function(reducerName) {
2595
2769
  var maybeReducerWithPrepare = reducers[reducerName];
2596
- var type = getType2(name, reducerName);
2770
+ var type2 = getType2(name, reducerName);
2597
2771
  var caseReducer;
2598
2772
  var prepareCallback;
2599
2773
  if ("reducer" in maybeReducerWithPrepare) {
@@ -2603,8 +2777,8 @@ function createSlice(options) {
2603
2777
  caseReducer = maybeReducerWithPrepare;
2604
2778
  }
2605
2779
  sliceCaseReducersByName[reducerName] = caseReducer;
2606
- sliceCaseReducersByType[type] = caseReducer;
2607
- actionCreators[reducerName] = prepareCallback ? createAction(type, prepareCallback) : createAction(type);
2780
+ sliceCaseReducersByType[type2] = caseReducer;
2781
+ actionCreators[reducerName] = prepareCallback ? createAction(type2, prepareCallback) : createAction(type2);
2608
2782
  });
2609
2783
  function buildReducer() {
2610
2784
  if (process.env.NODE_ENV !== "production") {
@@ -3792,8 +3966,8 @@ function buildThunks(_j) {
3792
3966
  buildMatchThunkActions
3793
3967
  };
3794
3968
  }
3795
- function calculateProvidedByThunk(action, type, endpointDefinitions, assertTagType) {
3796
- return calculateProvidedBy(endpointDefinitions[action.meta.arg.endpointName][type], isFulfilled(action) ? action.payload : void 0, isRejectedWithValue(action) ? action.payload : void 0, action.meta.arg.originalArgs, "baseQueryMeta" in action.meta ? action.meta.baseQueryMeta : void 0, assertTagType);
3969
+ function calculateProvidedByThunk(action, type2, endpointDefinitions, assertTagType) {
3970
+ return calculateProvidedBy(endpointDefinitions[action.meta.arg.endpointName][type2], isFulfilled(action) ? action.payload : void 0, isRejectedWithValue(action) ? action.payload : void 0, action.meta.arg.originalArgs, "baseQueryMeta" in action.meta ? action.meta.baseQueryMeta : void 0, assertTagType);
3797
3971
  }
3798
3972
  function updateQuerySubstateIfExists(state, queryCacheKey, update) {
3799
3973
  var substate = state[queryCacheKey];
@@ -3984,8 +4158,8 @@ function buildSlice(_j) {
3984
4158
  }
3985
4159
  }
3986
4160
  for (var _p = 0, providedTags_1 = providedTags; _p < providedTags_1.length; _p++) {
3987
- var _q = providedTags_1[_p], type = _q.type, id = _q.id;
3988
- var subscribedQueries = (_d = (_b = (_a = draft[type]) != null ? _a : draft[type] = {})[_c = id || "__internal_without_id"]) != null ? _d : _b[_c] = [];
4161
+ var _q = providedTags_1[_p], type2 = _q.type, id = _q.id;
4162
+ var subscribedQueries = (_d = (_b = (_a = draft[type2]) != null ? _a : draft[type2] = {})[_c = id || "__internal_without_id"]) != null ? _d : _b[_c] = [];
3989
4163
  var alreadySubscribed = subscribedQueries.includes(queryCacheKey);
3990
4164
  if (!alreadySubscribed) {
3991
4165
  subscribedQueries.push(queryCacheKey);
@@ -4012,10 +4186,10 @@ function buildSlice(_j) {
4012
4186
  var _a, _b, _c, _d;
4013
4187
  var provided = extractRehydrationInfo(action).provided;
4014
4188
  for (var _j2 = 0, _k2 = Object.entries(provided); _j2 < _k2.length; _j2++) {
4015
- var _l = _k2[_j2], type = _l[0], incomingTags = _l[1];
4189
+ var _l = _k2[_j2], type2 = _l[0], incomingTags = _l[1];
4016
4190
  for (var _m = 0, _o = Object.entries(incomingTags); _m < _o.length; _m++) {
4017
4191
  var _p = _o[_m], id = _p[0], cacheKeys = _p[1];
4018
- var subscribedQueries = (_d = (_b = (_a = draft[type]) != null ? _a : draft[type] = {})[_c = id || "__internal_without_id"]) != null ? _d : _b[_c] = [];
4192
+ var subscribedQueries = (_d = (_b = (_a = draft[type2]) != null ? _a : draft[type2] = {})[_c = id || "__internal_without_id"]) != null ? _d : _b[_c] = [];
4019
4193
  for (var _q = 0, cacheKeys_1 = cacheKeys; _q < cacheKeys_1.length; _q++) {
4020
4194
  var queryCacheKey = cacheKeys_1[_q];
4021
4195
  var alreadySubscribed = subscribedQueries.includes(queryCacheKey);
@@ -4521,7 +4695,7 @@ var buildWindowEventHandler = function(_j) {
4521
4695
  refetchValidQueries(mwApi, "refetchOnReconnect");
4522
4696
  }
4523
4697
  };
4524
- function refetchValidQueries(api2, type) {
4698
+ function refetchValidQueries(api2, type2) {
4525
4699
  var state = api2.getState()[reducerPath];
4526
4700
  var queries = state.queries;
4527
4701
  var subscriptions = internalState.currentSubscriptions;
@@ -4533,10 +4707,10 @@ var buildWindowEventHandler = function(_j) {
4533
4707
  if (!subscriptionSubState || !querySubState)
4534
4708
  continue;
4535
4709
  var shouldRefetch = Object.values(subscriptionSubState).some(function(sub) {
4536
- return sub[type] === true;
4710
+ return sub[type2] === true;
4537
4711
  }) || Object.values(subscriptionSubState).every(function(sub) {
4538
- return sub[type] === void 0;
4539
- }) && state.config[type];
4712
+ return sub[type2] === void 0;
4713
+ }) && state.config[type2];
4540
4714
  if (shouldRefetch) {
4541
4715
  if (Object.keys(subscriptionSubState).length === 0) {
4542
4716
  api2.dispatch(removeQueryResult({
@@ -5408,7 +5582,7 @@ function safeAssign(target) {
5408
5582
  }
5409
5583
  var reactHooksModuleName = /* @__PURE__ */ Symbol();
5410
5584
  var reactHooksModule = function(_c) {
5411
- var _d = _c === void 0 ? {} : _c, _e = _d.batch, batch = _e === void 0 ? reactRedux.batch : _e, _f = _d.useDispatch, useDispatch = _f === void 0 ? reactRedux.useDispatch : _f, _g = _d.useSelector, useSelector = _g === void 0 ? reactRedux.useSelector : _g, _h = _d.useStore, useStore = _h === void 0 ? reactRedux.useStore : _h, _j = _d.unstable__sideEffectsInRender, unstable__sideEffectsInRender = _j === void 0 ? false : _j;
5585
+ var _d = {}, _e = _d.batch, batch = _e === void 0 ? reactRedux.batch : _e, _f = _d.useDispatch, useDispatch = _f === void 0 ? reactRedux.useDispatch : _f, _g = _d.useSelector, useSelector = _g === void 0 ? reactRedux.useSelector : _g, _h = _d.useStore, useStore = _h === void 0 ? reactRedux.useStore : _h, _j = _d.unstable__sideEffectsInRender, unstable__sideEffectsInRender = _j === void 0 ? false : _j;
5412
5586
  return {
5413
5587
  name: reactHooksModuleName,
5414
5588
  init: function(api, _c2, context) {
@@ -5750,11 +5924,11 @@ const kindOf = /* @__PURE__ */ ((cache2) => (thing) => {
5750
5924
  const str = toString.call(thing);
5751
5925
  return cache2[str] || (cache2[str] = str.slice(8, -1).toLowerCase());
5752
5926
  })(/* @__PURE__ */ Object.create(null));
5753
- const kindOfTest = (type) => {
5754
- type = type.toLowerCase();
5755
- return (thing) => kindOf(thing) === type;
5927
+ const kindOfTest = (type2) => {
5928
+ type2 = type2.toLowerCase();
5929
+ return (thing) => kindOf(thing) === type2;
5756
5930
  };
5757
- const typeOfTest = (type) => (thing) => typeof thing === type;
5931
+ const typeOfTest = (type2) => (thing) => typeof thing === type2;
5758
5932
  const { isArray } = Array;
5759
5933
  const isUndefined = typeOfTest("undefined");
5760
5934
  function isBuffer2(val) {
@@ -5992,12 +6166,12 @@ const freezeMethods = (obj) => {
5992
6166
  };
5993
6167
  const toObjectSet = (arrayOrString, delimiter) => {
5994
6168
  const obj = {};
5995
- const define = (arr) => {
6169
+ const define2 = (arr) => {
5996
6170
  arr.forEach((value) => {
5997
6171
  obj[value] = true;
5998
6172
  });
5999
6173
  };
6000
- isArray(arrayOrString) ? define(arrayOrString) : define(String(arrayOrString).split(delimiter));
6174
+ isArray(arrayOrString) ? define2(arrayOrString) : define2(String(arrayOrString).split(delimiter));
6001
6175
  return obj;
6002
6176
  };
6003
6177
  const noop = () => {
@@ -6629,7 +6803,6 @@ const defaults = {
6629
6803
  utils$1.forEach(["delete", "get", "head", "post", "put", "patch"], (method) => {
6630
6804
  defaults.headers[method] = {};
6631
6805
  });
6632
- const defaults$1 = defaults;
6633
6806
  const ignoreDuplicateOf = utils$1.toObjectSet([
6634
6807
  "age",
6635
6808
  "authorization",
@@ -6892,11 +7065,10 @@ utils$1.reduceDescriptors(AxiosHeaders.prototype, ({ value }, key) => {
6892
7065
  };
6893
7066
  });
6894
7067
  utils$1.freezeMethods(AxiosHeaders);
6895
- const AxiosHeaders$1 = AxiosHeaders;
6896
7068
  function transformData(fns, response) {
6897
- const config = this || defaults$1;
7069
+ const config = this || defaults;
6898
7070
  const context = response || config;
6899
- const headers = AxiosHeaders$1.from(context.headers);
7071
+ const headers = AxiosHeaders.from(context.headers);
6900
7072
  let data = context.data;
6901
7073
  utils$1.forEach(fns, function transform(fn) {
6902
7074
  data = fn.call(config, data, headers.normalize(), response ? response.status : void 0);
@@ -7112,7 +7284,7 @@ function buildFullPath(baseURL, requestedURL) {
7112
7284
  }
7113
7285
  return requestedURL;
7114
7286
  }
7115
- const headersToObject = (thing) => thing instanceof AxiosHeaders$1 ? { ...thing } : thing;
7287
+ const headersToObject = (thing) => thing instanceof AxiosHeaders ? { ...thing } : thing;
7116
7288
  function mergeConfig(config1, config2) {
7117
7289
  config2 = config2 || {};
7118
7290
  const config = {};
@@ -7193,7 +7365,7 @@ function mergeConfig(config1, config2) {
7193
7365
  const resolveConfig = (config) => {
7194
7366
  const newConfig = mergeConfig({}, config);
7195
7367
  let { data, withXSRFToken, xsrfHeaderName, xsrfCookieName, headers, auth } = newConfig;
7196
- newConfig.headers = headers = AxiosHeaders$1.from(headers);
7368
+ newConfig.headers = headers = AxiosHeaders.from(headers);
7197
7369
  newConfig.url = buildURL(buildFullPath(newConfig.baseURL, newConfig.url), config.params, config.paramsSerializer);
7198
7370
  if (auth) {
7199
7371
  headers.set(
@@ -7206,8 +7378,8 @@ const resolveConfig = (config) => {
7206
7378
  if (platform.hasStandardBrowserEnv || platform.hasStandardBrowserWebWorkerEnv) {
7207
7379
  headers.setContentType(void 0);
7208
7380
  } else if ((contentType = headers.getContentType()) !== false) {
7209
- const [type, ...tokens] = contentType ? contentType.split(";").map((token) => token.trim()).filter(Boolean) : [];
7210
- headers.setContentType([type || "multipart/form-data", ...tokens].join("; "));
7381
+ const [type2, ...tokens] = contentType ? contentType.split(";").map((token) => token.trim()).filter(Boolean) : [];
7382
+ headers.setContentType([type2 || "multipart/form-data", ...tokens].join("; "));
7211
7383
  }
7212
7384
  }
7213
7385
  if (platform.hasStandardBrowserEnv) {
@@ -7226,7 +7398,7 @@ const xhrAdapter = isXHRAdapterSupported && function(config) {
7226
7398
  return new Promise(function dispatchXhrRequest(resolve, reject) {
7227
7399
  const _config = resolveConfig(config);
7228
7400
  let requestData = _config.data;
7229
- const requestHeaders = AxiosHeaders$1.from(_config.headers).normalize();
7401
+ const requestHeaders = AxiosHeaders.from(_config.headers).normalize();
7230
7402
  let { responseType, onUploadProgress, onDownloadProgress } = _config;
7231
7403
  let onCanceled;
7232
7404
  let uploadThrottled, downloadThrottled;
@@ -7244,7 +7416,7 @@ const xhrAdapter = isXHRAdapterSupported && function(config) {
7244
7416
  if (!request) {
7245
7417
  return;
7246
7418
  }
7247
- const responseHeaders = AxiosHeaders$1.from(
7419
+ const responseHeaders = AxiosHeaders.from(
7248
7420
  "getAllResponseHeaders" in request && request.getAllResponseHeaders()
7249
7421
  );
7250
7422
  const responseData = !responseType || responseType === "text" || responseType === "json" ? request.responseText : request.response;
@@ -7463,9 +7635,9 @@ const resolvers = {
7463
7635
  stream: supportsResponseStream && ((res) => res.body)
7464
7636
  };
7465
7637
  isFetchSupported && ((res) => {
7466
- ["text", "arrayBuffer", "blob", "formData", "stream"].forEach((type) => {
7467
- !resolvers[type] && (resolvers[type] = utils$1.isFunction(res[type]) ? (res2) => res2[type]() : (_, config) => {
7468
- throw new AxiosError(`Response type '${type}' is not supported`, AxiosError.ERR_NOT_SUPPORT, config);
7638
+ ["text", "arrayBuffer", "blob", "formData", "stream"].forEach((type2) => {
7639
+ !resolvers[type2] && (resolvers[type2] = utils$1.isFunction(res[type2]) ? (res2) => res2[type2]() : (_, config) => {
7640
+ throw new AxiosError(`Response type '${type2}' is not supported`, AxiosError.ERR_NOT_SUPPORT, config);
7469
7641
  });
7470
7642
  });
7471
7643
  })(new Response());
@@ -7576,7 +7748,7 @@ const fetchAdapter = isFetchSupported && (async (config) => {
7576
7748
  return await new Promise((resolve, reject) => {
7577
7749
  settle(resolve, reject, {
7578
7750
  data: responseData,
7579
- headers: AxiosHeaders$1.from(response.headers),
7751
+ headers: AxiosHeaders.from(response.headers),
7580
7752
  status: response.status,
7581
7753
  statusText: response.statusText,
7582
7754
  config,
@@ -7658,7 +7830,7 @@ function throwIfCancellationRequested(config) {
7658
7830
  }
7659
7831
  function dispatchRequest(config) {
7660
7832
  throwIfCancellationRequested(config);
7661
- config.headers = AxiosHeaders$1.from(config.headers);
7833
+ config.headers = AxiosHeaders.from(config.headers);
7662
7834
  config.data = transformData.call(
7663
7835
  config,
7664
7836
  config.transformRequest
@@ -7666,7 +7838,7 @@ function dispatchRequest(config) {
7666
7838
  if (["post", "put", "patch"].indexOf(config.method) !== -1) {
7667
7839
  config.headers.setContentType("application/x-www-form-urlencoded", false);
7668
7840
  }
7669
- const adapter = adapters.getAdapter(config.adapter || defaults$1.adapter);
7841
+ const adapter = adapters.getAdapter(config.adapter || defaults.adapter);
7670
7842
  return adapter(config).then(function onAdapterResolution(response) {
7671
7843
  throwIfCancellationRequested(config);
7672
7844
  response.data = transformData.call(
@@ -7674,7 +7846,7 @@ function dispatchRequest(config) {
7674
7846
  config.transformResponse,
7675
7847
  response
7676
7848
  );
7677
- response.headers = AxiosHeaders$1.from(response.headers);
7849
+ response.headers = AxiosHeaders.from(response.headers);
7678
7850
  return response;
7679
7851
  }, function onAdapterRejection(reason) {
7680
7852
  if (!isCancel(reason)) {
@@ -7685,7 +7857,7 @@ function dispatchRequest(config) {
7685
7857
  config.transformResponse,
7686
7858
  reason.response
7687
7859
  );
7688
- reason.response.headers = AxiosHeaders$1.from(reason.response.headers);
7860
+ reason.response.headers = AxiosHeaders.from(reason.response.headers);
7689
7861
  }
7690
7862
  }
7691
7863
  return Promise.reject(reason);
@@ -7693,9 +7865,9 @@ function dispatchRequest(config) {
7693
7865
  }
7694
7866
  const VERSION = "1.7.4";
7695
7867
  const validators$1 = {};
7696
- ["object", "boolean", "number", "function", "string", "symbol"].forEach((type, i) => {
7697
- validators$1[type] = function validator2(thing) {
7698
- return typeof thing === type || "a" + (i < 1 ? "n " : " ") + type;
7868
+ ["object", "boolean", "number", "function", "string", "symbol"].forEach((type2, i) => {
7869
+ validators$1[type2] = function validator2(thing) {
7870
+ return typeof thing === type2 || "a" + (i < 1 ? "n " : " ") + type2;
7699
7871
  };
7700
7872
  });
7701
7873
  const deprecatedWarnings = {};
@@ -7824,7 +7996,7 @@ class Axios {
7824
7996
  delete headers[method];
7825
7997
  }
7826
7998
  );
7827
- config.headers = AxiosHeaders$1.concat(contextHeaders, headers);
7999
+ config.headers = AxiosHeaders.concat(contextHeaders, headers);
7828
8000
  const requestInterceptorChain = [];
7829
8001
  let synchronousRequestInterceptors = true;
7830
8002
  this.interceptors.request.forEach(function unshiftRequestInterceptors(interceptor) {
@@ -7908,7 +8080,6 @@ utils$1.forEach(["post", "put", "patch"], function forEachMethodWithData(method)
7908
8080
  Axios.prototype[method] = generateHTTPMethod();
7909
8081
  Axios.prototype[method + "Form"] = generateHTTPMethod(true);
7910
8082
  });
7911
- const Axios$1 = Axios;
7912
8083
  class CancelToken {
7913
8084
  constructor(executor) {
7914
8085
  if (typeof executor !== "function") {
@@ -7996,7 +8167,6 @@ class CancelToken {
7996
8167
  };
7997
8168
  }
7998
8169
  }
7999
- const CancelToken$1 = CancelToken;
8000
8170
  function spread(callback) {
8001
8171
  return function wrap(arr) {
8002
8172
  return callback.apply(null, arr);
@@ -8073,21 +8243,20 @@ const HttpStatusCode = {
8073
8243
  Object.entries(HttpStatusCode).forEach(([key, value]) => {
8074
8244
  HttpStatusCode[value] = key;
8075
8245
  });
8076
- const HttpStatusCode$1 = HttpStatusCode;
8077
8246
  function createInstance(defaultConfig) {
8078
- const context = new Axios$1(defaultConfig);
8079
- const instance = bind2(Axios$1.prototype.request, context);
8080
- utils$1.extend(instance, Axios$1.prototype, context, { allOwnKeys: true });
8247
+ const context = new Axios(defaultConfig);
8248
+ const instance = bind2(Axios.prototype.request, context);
8249
+ utils$1.extend(instance, Axios.prototype, context, { allOwnKeys: true });
8081
8250
  utils$1.extend(instance, context, null, { allOwnKeys: true });
8082
8251
  instance.create = function create(instanceConfig) {
8083
8252
  return createInstance(mergeConfig(defaultConfig, instanceConfig));
8084
8253
  };
8085
8254
  return instance;
8086
8255
  }
8087
- const axios = createInstance(defaults$1);
8088
- axios.Axios = Axios$1;
8256
+ const axios = createInstance(defaults);
8257
+ axios.Axios = Axios;
8089
8258
  axios.CanceledError = CanceledError;
8090
- axios.CancelToken = CancelToken$1;
8259
+ axios.CancelToken = CancelToken;
8091
8260
  axios.isCancel = isCancel;
8092
8261
  axios.VERSION = VERSION;
8093
8262
  axios.toFormData = toFormData;
@@ -8099,10 +8268,10 @@ axios.all = function all(promises) {
8099
8268
  axios.spread = spread;
8100
8269
  axios.isAxiosError = isAxiosError;
8101
8270
  axios.mergeConfig = mergeConfig;
8102
- axios.AxiosHeaders = AxiosHeaders$1;
8271
+ axios.AxiosHeaders = AxiosHeaders;
8103
8272
  axios.formToJSON = (thing) => formDataToJSON(utils$1.isHTMLForm(thing) ? new FormData(thing) : thing);
8104
8273
  axios.getAdapter = adapters.getAdapter;
8105
- axios.HttpStatusCode = HttpStatusCode$1;
8274
+ axios.HttpStatusCode = HttpStatusCode;
8106
8275
  axios.default = axios;
8107
8276
  var scheduler = { exports: {} };
8108
8277
  var scheduler_production_min = {};
@@ -9420,38 +9589,9 @@ function generateKeyBetween(a2, b, digits = BASE_62_DIGITS) {
9420
9589
  return ia + midpoint(fa, null, digits);
9421
9590
  }
9422
9591
  function generateNKeysBetween(a2, b, n, digits = BASE_62_DIGITS) {
9423
- if (n === 0) {
9424
- return [];
9425
- }
9426
- if (n === 1) {
9592
+ {
9427
9593
  return [generateKeyBetween(a2, b, digits)];
9428
9594
  }
9429
- if (b == null) {
9430
- let c2 = generateKeyBetween(a2, b, digits);
9431
- const result = [c2];
9432
- for (let i = 0; i < n - 1; i++) {
9433
- c2 = generateKeyBetween(c2, b, digits);
9434
- result.push(c2);
9435
- }
9436
- return result;
9437
- }
9438
- if (a2 == null) {
9439
- let c2 = generateKeyBetween(a2, b, digits);
9440
- const result = [c2];
9441
- for (let i = 0; i < n - 1; i++) {
9442
- c2 = generateKeyBetween(a2, c2, digits);
9443
- result.push(c2);
9444
- }
9445
- result.reverse();
9446
- return result;
9447
- }
9448
- const mid = Math.floor(n / 2);
9449
- const c = generateKeyBetween(a2, b, digits);
9450
- return [
9451
- ...generateNKeysBetween(a2, c, mid, digits),
9452
- c,
9453
- ...generateNKeysBetween(c, b, n - mid - 1, digits)
9454
- ];
9455
9595
  }
9456
9596
  function $2b4dce13dd5a17fa$export$842a2cf37af977e1(amount, numerator) {
9457
9597
  return amount - numerator * Math.floor(amount / numerator);
@@ -9939,13 +10079,13 @@ function $735220c2d4774dd3$export$dd02b3e0007dfe28(value, field, amount, options
9939
10079
  case "hour": {
9940
10080
  let hours = value.hour;
9941
10081
  let min = 0;
9942
- let max = 23;
10082
+ let max2 = 23;
9943
10083
  if ((options === null || options === void 0 ? void 0 : options.hourCycle) === 12) {
9944
10084
  let isPM = hours >= 12;
9945
10085
  min = isPM ? 12 : 0;
9946
- max = isPM ? 23 : 11;
10086
+ max2 = isPM ? 23 : 11;
9947
10087
  }
9948
- mutable.hour = $735220c2d4774dd3$var$cycleValue(hours, amount, min, max, options === null || options === void 0 ? void 0 : options.round);
10088
+ mutable.hour = $735220c2d4774dd3$var$cycleValue(hours, amount, min, max2, options === null || options === void 0 ? void 0 : options.round);
9949
10089
  break;
9950
10090
  }
9951
10091
  case "minute":
@@ -9962,24 +10102,24 @@ function $735220c2d4774dd3$export$dd02b3e0007dfe28(value, field, amount, options
9962
10102
  }
9963
10103
  return mutable;
9964
10104
  }
9965
- function $735220c2d4774dd3$var$cycleValue(value, amount, min, max, round = false) {
10105
+ function $735220c2d4774dd3$var$cycleValue(value, amount, min, max2, round = false) {
9966
10106
  if (round) {
9967
10107
  value += Math.sign(amount);
9968
10108
  if (value < min)
9969
- value = max;
10109
+ value = max2;
9970
10110
  let div = Math.abs(amount);
9971
10111
  if (amount > 0)
9972
10112
  value = Math.ceil(value / div) * div;
9973
10113
  else
9974
10114
  value = Math.floor(value / div) * div;
9975
- if (value > max)
10115
+ if (value > max2)
9976
10116
  value = min;
9977
10117
  } else {
9978
10118
  value += amount;
9979
10119
  if (value < min)
9980
- value = max - (min - value - 1);
9981
- else if (value > max)
9982
- value = min + (value - max - 1);
10120
+ value = max2 - (min - value - 1);
10121
+ else if (value > max2)
10122
+ value = min + (value - max2 - 1);
9983
10123
  }
9984
10124
  return value;
9985
10125
  }
@@ -10009,11 +10149,11 @@ function $735220c2d4774dd3$export$9a297d111fc86b79(dateTime, field, amount, opti
10009
10149
  switch (field) {
10010
10150
  case "hour": {
10011
10151
  let min = 0;
10012
- let max = 23;
10152
+ let max2 = 23;
10013
10153
  if ((options === null || options === void 0 ? void 0 : options.hourCycle) === 12) {
10014
10154
  let isPM = dateTime.hour >= 12;
10015
10155
  min = isPM ? 12 : 0;
10016
- max = isPM ? 23 : 11;
10156
+ max2 = isPM ? 23 : 11;
10017
10157
  }
10018
10158
  let plainDateTime = $11d87f3f76e88657$export$b21e0b124e224484(dateTime);
10019
10159
  let minDate = $11d87f3f76e88657$export$b4a036af3fc0b032($735220c2d4774dd3$export$e5d5e1c1822b6e56(plainDateTime, {
@@ -10024,7 +10164,7 @@ function $735220c2d4774dd3$export$9a297d111fc86b79(dateTime, field, amount, opti
10024
10164
  $11d87f3f76e88657$export$5107c82f94518f5c(minDate, dateTime.timeZone, "later")
10025
10165
  ].filter((ms2) => $11d87f3f76e88657$export$1b96692a1ba042ac(ms2, dateTime.timeZone).day === minDate.day)[0];
10026
10166
  let maxDate = $11d87f3f76e88657$export$b4a036af3fc0b032($735220c2d4774dd3$export$e5d5e1c1822b6e56(plainDateTime, {
10027
- hour: max
10167
+ hour: max2
10028
10168
  }), new $3b62074eb05584b2$export$80ee6245ec4f29ec());
10029
10169
  let maxAbsolute = [
10030
10170
  $11d87f3f76e88657$export$5107c82f94518f5c(maxDate, dateTime.timeZone, "earlier"),
@@ -10072,10 +10212,10 @@ function $fae977aafc393c5c$export$5adfdab05168c219(value, timeZone) {
10072
10212
  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;
10073
10213
  return $11d87f3f76e88657$export$538b00033cc11c75(date, timeZone);
10074
10214
  }
10075
- function $fae977aafc393c5c$var$parseNumber(value, min, max) {
10215
+ function $fae977aafc393c5c$var$parseNumber(value, min, max2) {
10076
10216
  let val = Number(value);
10077
- if (val < min || val > max)
10078
- throw new RangeError(`Value out of range: ${min} <= ${val} <= ${max}`);
10217
+ if (val < min || val > max2)
10218
+ throw new RangeError(`Value out of range: ${min} <= ${val} <= ${max2}`);
10079
10219
  return val;
10080
10220
  }
10081
10221
  function $fae977aafc393c5c$export$f59dee82248f5ad4(time) {
@@ -10328,7 +10468,7 @@ const [Provider, useHistory] = createContext("History", {
10328
10468
  throw new Error("You must use the `HistoryProvider` to access the `goBack` function.");
10329
10469
  }
10330
10470
  });
10331
- React__namespace.forwardRef(({ disabled }, ref) => {
10471
+ React__namespace.forwardRef(({ disabled }, ref2) => {
10332
10472
  const { formatMessage } = reactIntl.useIntl();
10333
10473
  const canGoBack = useHistory("BackButton", (state) => state.canGoBack);
10334
10474
  const goBack = useHistory("BackButton", (state) => state.goBack);
@@ -10340,7 +10480,7 @@ React__namespace.forwardRef(({ disabled }, ref) => {
10340
10480
  return /* @__PURE__ */ jsxRuntime.jsx(
10341
10481
  designSystem.Link,
10342
10482
  {
10343
- ref,
10483
+ ref: ref2,
10344
10484
  tag: reactRouterDom.NavLink,
10345
10485
  to: history.at(-1) ?? "",
10346
10486
  onClick: handleClick,
@@ -10412,7 +10552,7 @@ const GridLayout = ({ size, children }) => {
10412
10552
  return /* @__PURE__ */ jsxRuntime.jsx(StyledGrid, { $size: size, children });
10413
10553
  };
10414
10554
  const BaseHeaderLayout = React__namespace.forwardRef(
10415
- ({ navigationAction, primaryAction, secondaryAction, subtitle, title, sticky, width, ...props }, ref) => {
10555
+ ({ navigationAction, primaryAction, secondaryAction, subtitle, title, sticky, width, ...props }, ref2) => {
10416
10556
  const isSubtitleString = typeof subtitle === "string";
10417
10557
  if (sticky) {
10418
10558
  return /* @__PURE__ */ jsxRuntime.jsx(
@@ -10447,7 +10587,7 @@ const BaseHeaderLayout = React__namespace.forwardRef(
10447
10587
  return /* @__PURE__ */ jsxRuntime.jsxs(
10448
10588
  designSystem.Box,
10449
10589
  {
10450
- ref,
10590
+ ref: ref2,
10451
10591
  paddingLeft: 10,
10452
10592
  paddingRight: 10,
10453
10593
  paddingBottom: 8,
@@ -10589,7 +10729,7 @@ const [FormProvider, useForm] = createContext("Form", {
10589
10729
  values: {}
10590
10730
  });
10591
10731
  React__namespace.forwardRef(
10592
- ({ disabled = false, method, onSubmit, initialErrors, ...props }, ref) => {
10732
+ ({ disabled = false, method, onSubmit, initialErrors, ...props }, ref2) => {
10593
10733
  const formRef = React__namespace.useRef(null);
10594
10734
  const initialValues = React__namespace.useRef(props.initialValues ?? {});
10595
10735
  const [state, dispatch] = React__namespace.useReducer(reducer, {
@@ -10621,7 +10761,7 @@ React__namespace.forwardRef(
10621
10761
  React__namespace.useEffect(() => {
10622
10762
  if (Object.keys(state.errors).length === 0)
10623
10763
  return;
10624
- const ref2 = setTimeout(() => {
10764
+ const ref22 = setTimeout(() => {
10625
10765
  const [firstError] = formRef.current.querySelectorAll("[data-strapi-field-error]");
10626
10766
  if (firstError) {
10627
10767
  const errorId = firstError.getAttribute("id");
@@ -10633,7 +10773,7 @@ React__namespace.forwardRef(
10633
10773
  }
10634
10774
  }
10635
10775
  });
10636
- return () => clearTimeout(ref2);
10776
+ return () => clearTimeout(ref22);
10637
10777
  }, [state.errors]);
10638
10778
  const validate = React__namespace.useCallback(
10639
10779
  async (shouldSetErrors = true, options = {}) => {
@@ -10719,7 +10859,7 @@ React__namespace.forwardRef(
10719
10859
  return;
10720
10860
  }
10721
10861
  const target = eventOrPath.target || eventOrPath.currentTarget;
10722
- const { type, name, id, value, options, multiple } = target;
10862
+ const { type: type2, name, id, value, options, multiple } = target;
10723
10863
  const field = name || id;
10724
10864
  if (!field && process.env.NODE_ENV !== "production") {
10725
10865
  console.warn(
@@ -10727,10 +10867,10 @@ React__namespace.forwardRef(
10727
10867
  );
10728
10868
  }
10729
10869
  let val;
10730
- if (/number|range/.test(type)) {
10870
+ if (/number|range/.test(type2)) {
10731
10871
  const parsed = parseFloat(value);
10732
10872
  val = isNaN(parsed) ? "" : parsed;
10733
- } else if (/checkbox/.test(type)) {
10873
+ } else if (/checkbox/.test(type2)) {
10734
10874
  val = !getIn(state.values, field);
10735
10875
  } else if (options && multiple) {
10736
10876
  val = Array.from(options).filter((el) => el.selected).map((el) => el.value);
@@ -10802,7 +10942,7 @@ React__namespace.forwardRef(
10802
10942
  const setSubmitting = React__namespace.useCallback((isSubmitting) => {
10803
10943
  dispatch({ type: "SET_ISSUBMITTING", payload: isSubmitting });
10804
10944
  }, []);
10805
- const composedRefs = designSystem.useComposedRefs(formRef, ref);
10945
+ const composedRefs = designSystem.useComposedRefs(formRef, ref2);
10806
10946
  return /* @__PURE__ */ jsxRuntime.jsx("form", { ref: composedRefs, method, noValidate: true, onSubmit: handleSubmit, children: /* @__PURE__ */ jsxRuntime.jsx(
10807
10947
  FormProvider,
10808
10948
  {
@@ -10876,8 +11016,7 @@ const reducer = (state, action) => createNextState2.produce(state, (draft) => {
10876
11016
  }
10877
11017
  const [key] = generateNKeysBetween(
10878
11018
  currentField.at(position - 1)?.__temp_key__,
10879
- currentField.at(position)?.__temp_key__,
10880
- 1
11019
+ currentField.at(position)?.__temp_key__
10881
11020
  );
10882
11021
  draft.values = setIn(
10883
11022
  state.values,
@@ -10892,7 +11031,7 @@ const reducer = (state, action) => createNextState2.produce(state, (draft) => {
10892
11031
  const currentRow = currentField[fromIndex];
10893
11032
  const startKey = fromIndex > toIndex ? currentField[toIndex - 1]?.__temp_key__ : currentField[toIndex]?.__temp_key__;
10894
11033
  const endKey = fromIndex > toIndex ? currentField[toIndex]?.__temp_key__ : currentField[toIndex + 1]?.__temp_key__;
10895
- const [newKey] = generateNKeysBetween(startKey, endKey, 1);
11034
+ const [newKey] = generateNKeysBetween(startKey, endKey);
10896
11035
  currentField.splice(fromIndex, 1);
10897
11036
  currentField.splice(toIndex, 0, { ...currentRow, __temp_key__: newKey });
10898
11037
  draft.values = setIn(state.values, field, currentField);
@@ -10987,11 +11126,11 @@ const useFocusInputField = (name) => {
10987
11126
  return setField;
10988
11127
  };
10989
11128
  const BooleanInput = React.forwardRef(
10990
- ({ name, required, label, hint, labelAction, ...props }, ref) => {
11129
+ ({ name, required, label, hint, labelAction, ...props }, ref2) => {
10991
11130
  const { formatMessage } = reactIntl.useIntl();
10992
11131
  const field = useField(name);
10993
11132
  const fieldRef = useFocusInputField(name);
10994
- const composedRefs = designSystem.useComposedRefs(ref, fieldRef);
11133
+ const composedRefs = designSystem.useComposedRefs(ref2, fieldRef);
10995
11134
  return /* @__PURE__ */ jsxRuntime.jsxs(designSystem.Field.Root, { error: field.error, name, hint, required, maxWidth: "320px", children: [
10996
11135
  /* @__PURE__ */ jsxRuntime.jsx(designSystem.Field.Label, { action: labelAction, children: label }),
10997
11136
  /* @__PURE__ */ jsxRuntime.jsx(
@@ -11018,10 +11157,10 @@ const BooleanInput = React.forwardRef(
11018
11157
  );
11019
11158
  const MemoizedBooleanInput = React.memo(BooleanInput);
11020
11159
  const CheckboxInput = React.forwardRef(
11021
- ({ name, required, label, hint, type: _type, ...props }, ref) => {
11160
+ ({ name, required, label, hint, type: _type, ...props }, ref2) => {
11022
11161
  const field = useField(name);
11023
11162
  const fieldRef = useFocusInputField(name);
11024
- const composedRefs = designSystem.useComposedRefs(ref, fieldRef);
11163
+ const composedRefs = designSystem.useComposedRefs(ref2, fieldRef);
11025
11164
  return /* @__PURE__ */ jsxRuntime.jsxs(designSystem.Field.Root, { error: field.error, name, hint, required, children: [
11026
11165
  /* @__PURE__ */ jsxRuntime.jsx(
11027
11166
  designSystem.Checkbox,
@@ -11040,11 +11179,11 @@ const CheckboxInput = React.forwardRef(
11040
11179
  );
11041
11180
  const MemoizedCheckboxInput = React.memo(CheckboxInput);
11042
11181
  const DateInput = React.forwardRef(
11043
- ({ name, required, label, hint, labelAction, type: _type, ...props }, ref) => {
11182
+ ({ name, required, label, hint, labelAction, type: _type, ...props }, ref2) => {
11044
11183
  const { formatMessage } = reactIntl.useIntl();
11045
11184
  const field = useField(name);
11046
11185
  const fieldRef = useFocusInputField(name);
11047
- const composedRefs = designSystem.useComposedRefs(ref, fieldRef);
11186
+ const composedRefs = designSystem.useComposedRefs(ref2, fieldRef);
11048
11187
  const value = typeof field.value === "string" ? new Date(field.value) : field.value;
11049
11188
  return /* @__PURE__ */ jsxRuntime.jsxs(designSystem.Field.Root, { error: field.error, name, hint, required, children: [
11050
11189
  /* @__PURE__ */ jsxRuntime.jsx(designSystem.Field.Label, { action: labelAction, children: label }),
@@ -11074,11 +11213,11 @@ const convertLocalDateToUTCDate = (date) => {
11074
11213
  };
11075
11214
  const MemoizedDateInput = React.memo(DateInput);
11076
11215
  const DateTimeInput = React.forwardRef(
11077
- ({ name, required, label, hint, labelAction, ...props }, ref) => {
11216
+ ({ name, required, label, hint, labelAction, ...props }, ref2) => {
11078
11217
  const { formatMessage } = reactIntl.useIntl();
11079
11218
  const field = useField(name);
11080
11219
  const fieldRef = useFocusInputField(name);
11081
- const composedRefs = designSystem.useComposedRefs(ref, fieldRef);
11220
+ const composedRefs = designSystem.useComposedRefs(ref2, fieldRef);
11082
11221
  const value = typeof field.value === "string" ? new Date(field.value) : field.value;
11083
11222
  return /* @__PURE__ */ jsxRuntime.jsxs(designSystem.Field.Root, { error: field.error, name, hint, required, children: [
11084
11223
  /* @__PURE__ */ jsxRuntime.jsx(designSystem.Field.Label, { action: labelAction, children: label }),
@@ -11102,10 +11241,10 @@ const DateTimeInput = React.forwardRef(
11102
11241
  );
11103
11242
  const MemoizedDateTimeInput = React.memo(DateTimeInput);
11104
11243
  const EmailInput = React.forwardRef(
11105
- ({ name, required, label, hint, labelAction, ...props }, ref) => {
11244
+ ({ name, required, label, hint, labelAction, ...props }, ref2) => {
11106
11245
  const field = useField(name);
11107
11246
  const fieldRef = useFocusInputField(name);
11108
- const composedRefs = designSystem.useComposedRefs(ref, fieldRef);
11247
+ const composedRefs = designSystem.useComposedRefs(ref2, fieldRef);
11109
11248
  return /* @__PURE__ */ jsxRuntime.jsxs(designSystem.Field.Root, { error: field.error, name, hint, required, children: [
11110
11249
  /* @__PURE__ */ jsxRuntime.jsx(designSystem.Field.Label, { action: labelAction, children: label }),
11111
11250
  /* @__PURE__ */ jsxRuntime.jsx(
@@ -11126,10 +11265,10 @@ const EmailInput = React.forwardRef(
11126
11265
  );
11127
11266
  const MemoizedEmailInput = React.memo(EmailInput);
11128
11267
  const EnumerationInput = React.forwardRef(
11129
- ({ name, required, label, hint, labelAction, options = [], ...props }, ref) => {
11268
+ ({ name, required, label, hint, labelAction, options = [], ...props }, ref2) => {
11130
11269
  const field = useField(name);
11131
11270
  const fieldRef = useFocusInputField(name);
11132
- const composedRefs = designSystem.useComposedRefs(ref, fieldRef);
11271
+ const composedRefs = designSystem.useComposedRefs(ref2, fieldRef);
11133
11272
  return /* @__PURE__ */ jsxRuntime.jsxs(designSystem.Field.Root, { error: field.error, name, hint, required, children: [
11134
11273
  /* @__PURE__ */ jsxRuntime.jsx(designSystem.Field.Label, { action: labelAction, children: label }),
11135
11274
  /* @__PURE__ */ jsxRuntime.jsx(
@@ -11153,10 +11292,10 @@ const EnumerationInput = React.forwardRef(
11153
11292
  );
11154
11293
  const MemoizedEnumerationInput = React.memo(EnumerationInput);
11155
11294
  const JsonInput = React__namespace.forwardRef(
11156
- ({ name, required, label, hint, labelAction, ...props }, ref) => {
11295
+ ({ name, required, label, hint, labelAction, ...props }, ref2) => {
11157
11296
  const field = useField(name);
11158
11297
  const fieldRef = useFocusInputField(name);
11159
- const composedRefs = designSystem.useComposedRefs(ref, fieldRef);
11298
+ const composedRefs = designSystem.useComposedRefs(ref2, fieldRef);
11160
11299
  return /* @__PURE__ */ jsxRuntime.jsxs(designSystem.Field.Root, { error: field.error, name, hint, required, children: [
11161
11300
  /* @__PURE__ */ jsxRuntime.jsx(designSystem.Field.Label, { action: labelAction, children: label }),
11162
11301
  /* @__PURE__ */ jsxRuntime.jsx(
@@ -11180,10 +11319,10 @@ const JsonInput = React__namespace.forwardRef(
11180
11319
  );
11181
11320
  const MemoizedJsonInput = React__namespace.memo(JsonInput);
11182
11321
  const NumberInputImpl = React.forwardRef(
11183
- ({ name, required, label, hint, labelAction, type, ...props }, ref) => {
11322
+ ({ name, required, label, hint, labelAction, type: type2, ...props }, ref2) => {
11184
11323
  const field = useField(name);
11185
11324
  const fieldRef = useFocusInputField(name);
11186
- const composedRefs = designSystem.useComposedRefs(ref, fieldRef);
11325
+ const composedRefs = designSystem.useComposedRefs(ref2, fieldRef);
11187
11326
  return /* @__PURE__ */ jsxRuntime.jsxs(designSystem.Field.Root, { error: field.error, name, hint, required, children: [
11188
11327
  /* @__PURE__ */ jsxRuntime.jsx(designSystem.Field.Label, { action: labelAction, children: label }),
11189
11328
  /* @__PURE__ */ jsxRuntime.jsx(
@@ -11193,7 +11332,7 @@ const NumberInputImpl = React.forwardRef(
11193
11332
  onValueChange: (value) => {
11194
11333
  field.onChange(name, value);
11195
11334
  },
11196
- step: type === "float" || type == "decimal" ? 0.01 : 1,
11335
+ step: type2 === "float" || type2 == "decimal" ? 0.01 : 1,
11197
11336
  value: field.value,
11198
11337
  ...props
11199
11338
  }
@@ -11205,12 +11344,12 @@ const NumberInputImpl = React.forwardRef(
11205
11344
  );
11206
11345
  const MemoizedNumberInput = React.memo(NumberInputImpl);
11207
11346
  const PasswordInput = React.forwardRef(
11208
- ({ name, required, label, hint, labelAction, ...props }, ref) => {
11347
+ ({ name, required, label, hint, labelAction, ...props }, ref2) => {
11209
11348
  const [showPassword, setShowPassword] = React.useState(false);
11210
11349
  const { formatMessage } = reactIntl.useIntl();
11211
11350
  const field = useField(name);
11212
11351
  const fieldRef = useFocusInputField(name);
11213
- const composedRefs = designSystem.useComposedRefs(ref, fieldRef);
11352
+ const composedRefs = designSystem.useComposedRefs(ref2, fieldRef);
11214
11353
  return /* @__PURE__ */ jsxRuntime.jsxs(designSystem.Field.Root, { error: field.error, name, hint, required, children: [
11215
11354
  /* @__PURE__ */ jsxRuntime.jsx(designSystem.Field.Label, { action: labelAction, children: label }),
11216
11355
  /* @__PURE__ */ jsxRuntime.jsx(
@@ -11244,10 +11383,10 @@ const PasswordInput = React.forwardRef(
11244
11383
  );
11245
11384
  const MemoizedPasswordInput = React.memo(PasswordInput);
11246
11385
  const StringInput = React.forwardRef(
11247
- ({ name, required, label, hint, labelAction, ...props }, ref) => {
11386
+ ({ name, required, label, hint, labelAction, ...props }, ref2) => {
11248
11387
  const field = useField(name);
11249
11388
  const fieldRef = useFocusInputField(name);
11250
- const composedRefs = designSystem.useComposedRefs(ref, fieldRef);
11389
+ const composedRefs = designSystem.useComposedRefs(ref2, fieldRef);
11251
11390
  return /* @__PURE__ */ jsxRuntime.jsxs(designSystem.Field.Root, { error: field.error, name, hint, required, children: [
11252
11391
  /* @__PURE__ */ jsxRuntime.jsx(designSystem.Field.Label, { action: labelAction, children: label }),
11253
11392
  /* @__PURE__ */ jsxRuntime.jsx(
@@ -11266,10 +11405,10 @@ const StringInput = React.forwardRef(
11266
11405
  );
11267
11406
  const MemoizedStringInput = React.memo(StringInput);
11268
11407
  const TextareaInput = React.forwardRef(
11269
- ({ name, required, label, hint, labelAction, ...props }, ref) => {
11408
+ ({ name, required, label, hint, labelAction, ...props }, ref2) => {
11270
11409
  const field = useField(name);
11271
11410
  const fieldRef = useFocusInputField(name);
11272
- const composedRefs = designSystem.useComposedRefs(ref, fieldRef);
11411
+ const composedRefs = designSystem.useComposedRefs(ref2, fieldRef);
11273
11412
  return /* @__PURE__ */ jsxRuntime.jsxs(designSystem.Field.Root, { error: field.error, name, hint, required, children: [
11274
11413
  /* @__PURE__ */ jsxRuntime.jsx(designSystem.Field.Label, { action: labelAction, children: label }),
11275
11414
  /* @__PURE__ */ jsxRuntime.jsx(
@@ -11288,11 +11427,11 @@ const TextareaInput = React.forwardRef(
11288
11427
  );
11289
11428
  const MemoizedTextareaInput = React.memo(TextareaInput);
11290
11429
  const TimeInput = React.forwardRef(
11291
- ({ name, required, label, hint, labelAction, ...props }, ref) => {
11430
+ ({ name, required, label, hint, labelAction, ...props }, ref2) => {
11292
11431
  const { formatMessage } = reactIntl.useIntl();
11293
11432
  const field = useField(name);
11294
11433
  const fieldRef = useFocusInputField(name);
11295
- const composedRefs = designSystem.useComposedRefs(ref, fieldRef);
11434
+ const composedRefs = designSystem.useComposedRefs(ref2, fieldRef);
11296
11435
  return /* @__PURE__ */ jsxRuntime.jsxs(designSystem.Field.Root, { error: field.error, name, hint, required, children: [
11297
11436
  /* @__PURE__ */ jsxRuntime.jsx(designSystem.Field.Label, { action: labelAction, children: label }),
11298
11437
  /* @__PURE__ */ jsxRuntime.jsx(
@@ -11352,10 +11491,10 @@ const InputRenderer = React.memo(
11352
11491
  })
11353
11492
  );
11354
11493
  const NotSupportedField = React.forwardRef(
11355
- ({ label, hint, name, required, type, labelAction }, ref) => {
11494
+ ({ label, hint, name, required, type: type2, labelAction }, ref2) => {
11356
11495
  const { error } = useField(name);
11357
11496
  const fieldRef = useFocusInputField(name);
11358
- const composedRefs = designSystem.useComposedRefs(ref, fieldRef);
11497
+ const composedRefs = designSystem.useComposedRefs(ref2, fieldRef);
11359
11498
  return /* @__PURE__ */ jsxRuntime.jsxs(designSystem.Field.Root, { error, name, hint, required, children: [
11360
11499
  /* @__PURE__ */ jsxRuntime.jsx(designSystem.Field.Label, { action: labelAction, children: label }),
11361
11500
  /* @__PURE__ */ jsxRuntime.jsx(
@@ -11363,7 +11502,7 @@ const NotSupportedField = React.forwardRef(
11363
11502
  {
11364
11503
  ref: composedRefs,
11365
11504
  disabled: true,
11366
- placeholder: `Unsupported field type: ${type}`,
11505
+ placeholder: `Unsupported field type: ${type2}`,
11367
11506
  required,
11368
11507
  type: "text",
11369
11508
  value: ""
@@ -11624,11 +11763,11 @@ React__namespace.memo(
11624
11763
  (prev, next) => isEqual__default.default(prev.props, next.props)
11625
11764
  );
11626
11765
  const useShallowCompareMemoize = (value) => {
11627
- const ref = React__namespace.useRef(void 0);
11628
- if (!isEqual__default.default(value, ref.current)) {
11629
- ref.current = value;
11766
+ const ref2 = React__namespace.useRef(void 0);
11767
+ if (!isEqual__default.default(value, ref2.current)) {
11768
+ ref2.current = value;
11630
11769
  }
11631
- return [ref.current];
11770
+ return [ref2.current];
11632
11771
  };
11633
11772
  const useShallowCompareEffect = (callback, dependencies) => {
11634
11773
  React__namespace.useEffect(callback, useShallowCompareMemoize(dependencies));
@@ -11866,4 +12005,4 @@ adminApi.enhanceEndpoints({
11866
12005
  });
11867
12006
  exports.Layouts = Layouts;
11868
12007
  exports.useTracking = useTracking;
11869
- //# sourceMappingURL=index-QPUYgtlo-QiBdpWEj.js.map
12008
+ //# sourceMappingURL=index-D3MhJ11W-fMZ4nmrb.js.map