@ory/elements-react 1.0.0-next.0 → 1.0.0-next.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.mjs CHANGED
@@ -34,9 +34,9 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
34
34
  mod
35
35
  ));
36
36
 
37
- // ../../node_modules/react-is/cjs/react-is.production.min.js
37
+ // ../../node_modules/hoist-non-react-statics/node_modules/react-is/cjs/react-is.production.min.js
38
38
  var require_react_is_production_min = __commonJS({
39
- "../../node_modules/react-is/cjs/react-is.production.min.js"(exports) {
39
+ "../../node_modules/hoist-non-react-statics/node_modules/react-is/cjs/react-is.production.min.js"(exports) {
40
40
  var b = "function" === typeof Symbol && Symbol.for;
41
41
  var c = b ? Symbol.for("react.element") : 60103;
42
42
  var d = b ? Symbol.for("react.portal") : 60106;
@@ -146,9 +146,9 @@ var require_react_is_production_min = __commonJS({
146
146
  }
147
147
  });
148
148
 
149
- // ../../node_modules/react-is/cjs/react-is.development.js
149
+ // ../../node_modules/hoist-non-react-statics/node_modules/react-is/cjs/react-is.development.js
150
150
  var require_react_is_development = __commonJS({
151
- "../../node_modules/react-is/cjs/react-is.development.js"(exports) {
151
+ "../../node_modules/hoist-non-react-statics/node_modules/react-is/cjs/react-is.development.js"(exports) {
152
152
  if (process.env.NODE_ENV !== "production") {
153
153
  (function() {
154
154
  var hasSymbol = typeof Symbol === "function" && Symbol.for;
@@ -299,9 +299,9 @@ var require_react_is_development = __commonJS({
299
299
  }
300
300
  });
301
301
 
302
- // ../../node_modules/react-is/index.js
302
+ // ../../node_modules/hoist-non-react-statics/node_modules/react-is/index.js
303
303
  var require_react_is = __commonJS({
304
- "../../node_modules/react-is/index.js"(exports, module) {
304
+ "../../node_modules/hoist-non-react-statics/node_modules/react-is/index.js"(exports, module) {
305
305
  if (process.env.NODE_ENV === "production") {
306
306
  module.exports = require_react_is_production_min();
307
307
  } else {
@@ -449,7 +449,7 @@ function __spreadArray(to, from, pack) {
449
449
  // ../../node_modules/react-intl/lib/src/components/injectIntl.js
450
450
  __toESM(require_hoist_non_react_statics_cjs());
451
451
 
452
- // ../../node_modules/@formatjs/ecma402-abstract/lib/utils.js
452
+ // ../../node_modules/react-intl/node_modules/@formatjs/ecma402-abstract/lib/utils.js
453
453
  function invariant(condition, message, Err) {
454
454
  if (Err === void 0) {
455
455
  Err = Error;
@@ -459,54 +459,54 @@ function invariant(condition, message, Err) {
459
459
  }
460
460
  }
461
461
 
462
- // ../../node_modules/@formatjs/icu-messageformat-parser/lib/error.js
462
+ // ../../node_modules/intl-messageformat/node_modules/@formatjs/icu-messageformat-parser/lib/error.js
463
463
  var ErrorKind;
464
- (function(ErrorKind2) {
465
- ErrorKind2[ErrorKind2["EXPECT_ARGUMENT_CLOSING_BRACE"] = 1] = "EXPECT_ARGUMENT_CLOSING_BRACE";
466
- ErrorKind2[ErrorKind2["EMPTY_ARGUMENT"] = 2] = "EMPTY_ARGUMENT";
467
- ErrorKind2[ErrorKind2["MALFORMED_ARGUMENT"] = 3] = "MALFORMED_ARGUMENT";
468
- ErrorKind2[ErrorKind2["EXPECT_ARGUMENT_TYPE"] = 4] = "EXPECT_ARGUMENT_TYPE";
469
- ErrorKind2[ErrorKind2["INVALID_ARGUMENT_TYPE"] = 5] = "INVALID_ARGUMENT_TYPE";
470
- ErrorKind2[ErrorKind2["EXPECT_ARGUMENT_STYLE"] = 6] = "EXPECT_ARGUMENT_STYLE";
471
- ErrorKind2[ErrorKind2["INVALID_NUMBER_SKELETON"] = 7] = "INVALID_NUMBER_SKELETON";
472
- ErrorKind2[ErrorKind2["INVALID_DATE_TIME_SKELETON"] = 8] = "INVALID_DATE_TIME_SKELETON";
473
- ErrorKind2[ErrorKind2["EXPECT_NUMBER_SKELETON"] = 9] = "EXPECT_NUMBER_SKELETON";
474
- ErrorKind2[ErrorKind2["EXPECT_DATE_TIME_SKELETON"] = 10] = "EXPECT_DATE_TIME_SKELETON";
475
- ErrorKind2[ErrorKind2["UNCLOSED_QUOTE_IN_ARGUMENT_STYLE"] = 11] = "UNCLOSED_QUOTE_IN_ARGUMENT_STYLE";
476
- ErrorKind2[ErrorKind2["EXPECT_SELECT_ARGUMENT_OPTIONS"] = 12] = "EXPECT_SELECT_ARGUMENT_OPTIONS";
477
- ErrorKind2[ErrorKind2["EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE"] = 13] = "EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE";
478
- ErrorKind2[ErrorKind2["INVALID_PLURAL_ARGUMENT_OFFSET_VALUE"] = 14] = "INVALID_PLURAL_ARGUMENT_OFFSET_VALUE";
479
- ErrorKind2[ErrorKind2["EXPECT_SELECT_ARGUMENT_SELECTOR"] = 15] = "EXPECT_SELECT_ARGUMENT_SELECTOR";
480
- ErrorKind2[ErrorKind2["EXPECT_PLURAL_ARGUMENT_SELECTOR"] = 16] = "EXPECT_PLURAL_ARGUMENT_SELECTOR";
481
- ErrorKind2[ErrorKind2["EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT"] = 17] = "EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT";
482
- ErrorKind2[ErrorKind2["EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT"] = 18] = "EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT";
483
- ErrorKind2[ErrorKind2["INVALID_PLURAL_ARGUMENT_SELECTOR"] = 19] = "INVALID_PLURAL_ARGUMENT_SELECTOR";
484
- ErrorKind2[ErrorKind2["DUPLICATE_PLURAL_ARGUMENT_SELECTOR"] = 20] = "DUPLICATE_PLURAL_ARGUMENT_SELECTOR";
485
- ErrorKind2[ErrorKind2["DUPLICATE_SELECT_ARGUMENT_SELECTOR"] = 21] = "DUPLICATE_SELECT_ARGUMENT_SELECTOR";
486
- ErrorKind2[ErrorKind2["MISSING_OTHER_CLAUSE"] = 22] = "MISSING_OTHER_CLAUSE";
487
- ErrorKind2[ErrorKind2["INVALID_TAG"] = 23] = "INVALID_TAG";
488
- ErrorKind2[ErrorKind2["INVALID_TAG_NAME"] = 25] = "INVALID_TAG_NAME";
489
- ErrorKind2[ErrorKind2["UNMATCHED_CLOSING_TAG"] = 26] = "UNMATCHED_CLOSING_TAG";
490
- ErrorKind2[ErrorKind2["UNCLOSED_TAG"] = 27] = "UNCLOSED_TAG";
464
+ (function(ErrorKind3) {
465
+ ErrorKind3[ErrorKind3["EXPECT_ARGUMENT_CLOSING_BRACE"] = 1] = "EXPECT_ARGUMENT_CLOSING_BRACE";
466
+ ErrorKind3[ErrorKind3["EMPTY_ARGUMENT"] = 2] = "EMPTY_ARGUMENT";
467
+ ErrorKind3[ErrorKind3["MALFORMED_ARGUMENT"] = 3] = "MALFORMED_ARGUMENT";
468
+ ErrorKind3[ErrorKind3["EXPECT_ARGUMENT_TYPE"] = 4] = "EXPECT_ARGUMENT_TYPE";
469
+ ErrorKind3[ErrorKind3["INVALID_ARGUMENT_TYPE"] = 5] = "INVALID_ARGUMENT_TYPE";
470
+ ErrorKind3[ErrorKind3["EXPECT_ARGUMENT_STYLE"] = 6] = "EXPECT_ARGUMENT_STYLE";
471
+ ErrorKind3[ErrorKind3["INVALID_NUMBER_SKELETON"] = 7] = "INVALID_NUMBER_SKELETON";
472
+ ErrorKind3[ErrorKind3["INVALID_DATE_TIME_SKELETON"] = 8] = "INVALID_DATE_TIME_SKELETON";
473
+ ErrorKind3[ErrorKind3["EXPECT_NUMBER_SKELETON"] = 9] = "EXPECT_NUMBER_SKELETON";
474
+ ErrorKind3[ErrorKind3["EXPECT_DATE_TIME_SKELETON"] = 10] = "EXPECT_DATE_TIME_SKELETON";
475
+ ErrorKind3[ErrorKind3["UNCLOSED_QUOTE_IN_ARGUMENT_STYLE"] = 11] = "UNCLOSED_QUOTE_IN_ARGUMENT_STYLE";
476
+ ErrorKind3[ErrorKind3["EXPECT_SELECT_ARGUMENT_OPTIONS"] = 12] = "EXPECT_SELECT_ARGUMENT_OPTIONS";
477
+ ErrorKind3[ErrorKind3["EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE"] = 13] = "EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE";
478
+ ErrorKind3[ErrorKind3["INVALID_PLURAL_ARGUMENT_OFFSET_VALUE"] = 14] = "INVALID_PLURAL_ARGUMENT_OFFSET_VALUE";
479
+ ErrorKind3[ErrorKind3["EXPECT_SELECT_ARGUMENT_SELECTOR"] = 15] = "EXPECT_SELECT_ARGUMENT_SELECTOR";
480
+ ErrorKind3[ErrorKind3["EXPECT_PLURAL_ARGUMENT_SELECTOR"] = 16] = "EXPECT_PLURAL_ARGUMENT_SELECTOR";
481
+ ErrorKind3[ErrorKind3["EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT"] = 17] = "EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT";
482
+ ErrorKind3[ErrorKind3["EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT"] = 18] = "EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT";
483
+ ErrorKind3[ErrorKind3["INVALID_PLURAL_ARGUMENT_SELECTOR"] = 19] = "INVALID_PLURAL_ARGUMENT_SELECTOR";
484
+ ErrorKind3[ErrorKind3["DUPLICATE_PLURAL_ARGUMENT_SELECTOR"] = 20] = "DUPLICATE_PLURAL_ARGUMENT_SELECTOR";
485
+ ErrorKind3[ErrorKind3["DUPLICATE_SELECT_ARGUMENT_SELECTOR"] = 21] = "DUPLICATE_SELECT_ARGUMENT_SELECTOR";
486
+ ErrorKind3[ErrorKind3["MISSING_OTHER_CLAUSE"] = 22] = "MISSING_OTHER_CLAUSE";
487
+ ErrorKind3[ErrorKind3["INVALID_TAG"] = 23] = "INVALID_TAG";
488
+ ErrorKind3[ErrorKind3["INVALID_TAG_NAME"] = 25] = "INVALID_TAG_NAME";
489
+ ErrorKind3[ErrorKind3["UNMATCHED_CLOSING_TAG"] = 26] = "UNMATCHED_CLOSING_TAG";
490
+ ErrorKind3[ErrorKind3["UNCLOSED_TAG"] = 27] = "UNCLOSED_TAG";
491
491
  })(ErrorKind || (ErrorKind = {}));
492
492
 
493
- // ../../node_modules/@formatjs/icu-messageformat-parser/lib/types.js
493
+ // ../../node_modules/intl-messageformat/node_modules/@formatjs/icu-messageformat-parser/lib/types.js
494
494
  var TYPE;
495
- (function(TYPE2) {
496
- TYPE2[TYPE2["literal"] = 0] = "literal";
497
- TYPE2[TYPE2["argument"] = 1] = "argument";
498
- TYPE2[TYPE2["number"] = 2] = "number";
499
- TYPE2[TYPE2["date"] = 3] = "date";
500
- TYPE2[TYPE2["time"] = 4] = "time";
501
- TYPE2[TYPE2["select"] = 5] = "select";
502
- TYPE2[TYPE2["plural"] = 6] = "plural";
503
- TYPE2[TYPE2["pound"] = 7] = "pound";
504
- TYPE2[TYPE2["tag"] = 8] = "tag";
495
+ (function(TYPE3) {
496
+ TYPE3[TYPE3["literal"] = 0] = "literal";
497
+ TYPE3[TYPE3["argument"] = 1] = "argument";
498
+ TYPE3[TYPE3["number"] = 2] = "number";
499
+ TYPE3[TYPE3["date"] = 3] = "date";
500
+ TYPE3[TYPE3["time"] = 4] = "time";
501
+ TYPE3[TYPE3["select"] = 5] = "select";
502
+ TYPE3[TYPE3["plural"] = 6] = "plural";
503
+ TYPE3[TYPE3["pound"] = 7] = "pound";
504
+ TYPE3[TYPE3["tag"] = 8] = "tag";
505
505
  })(TYPE || (TYPE = {}));
506
506
  var SKELETON_TYPE;
507
- (function(SKELETON_TYPE2) {
508
- SKELETON_TYPE2[SKELETON_TYPE2["number"] = 0] = "number";
509
- SKELETON_TYPE2[SKELETON_TYPE2["dateTime"] = 1] = "dateTime";
507
+ (function(SKELETON_TYPE3) {
508
+ SKELETON_TYPE3[SKELETON_TYPE3["number"] = 0] = "number";
509
+ SKELETON_TYPE3[SKELETON_TYPE3["dateTime"] = 1] = "dateTime";
510
510
  })(SKELETON_TYPE || (SKELETON_TYPE = {}));
511
511
  function isLiteralElement(el) {
512
512
  return el.type === TYPE.literal;
@@ -542,10 +542,10 @@ function isDateTimeSkeleton(el) {
542
542
  return !!(el && typeof el === "object" && el.type === SKELETON_TYPE.dateTime);
543
543
  }
544
544
 
545
- // ../../node_modules/@formatjs/icu-messageformat-parser/lib/regex.generated.js
545
+ // ../../node_modules/intl-messageformat/node_modules/@formatjs/icu-messageformat-parser/lib/regex.generated.js
546
546
  var SPACE_SEPARATOR_REGEX = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/;
547
547
 
548
- // ../../node_modules/@formatjs/icu-skeleton-parser/lib/date-time.js
548
+ // ../../node_modules/intl-messageformat/node_modules/@formatjs/icu-skeleton-parser/lib/date-time.js
549
549
  var DATE_TIME_REGEX = /(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;
550
550
  function parseDateTimeSkeleton(skeleton) {
551
551
  var result = {};
@@ -646,10 +646,10 @@ function parseDateTimeSkeleton(skeleton) {
646
646
  return result;
647
647
  }
648
648
 
649
- // ../../node_modules/@formatjs/icu-skeleton-parser/lib/regex.generated.js
649
+ // ../../node_modules/intl-messageformat/node_modules/@formatjs/icu-skeleton-parser/lib/regex.generated.js
650
650
  var WHITE_SPACE_REGEX = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
651
651
 
652
- // ../../node_modules/@formatjs/icu-skeleton-parser/lib/number.js
652
+ // ../../node_modules/intl-messageformat/node_modules/@formatjs/icu-skeleton-parser/lib/number.js
653
653
  function parseNumberSkeletonFromString(skeleton) {
654
654
  if (skeleton.length === 0) {
655
655
  throw new Error("Number skeleton cannot be empty");
@@ -665,8 +665,8 @@ function parseNumberSkeletonFromString(skeleton) {
665
665
  throw new Error("Invalid number skeleton");
666
666
  }
667
667
  var stem = stemAndOptions[0], options = stemAndOptions.slice(1);
668
- for (var _a2 = 0, options_1 = options; _a2 < options_1.length; _a2++) {
669
- var option = options_1[_a2];
668
+ for (var _a3 = 0, options_1 = options; _a3 < options_1.length; _a3++) {
669
+ var option = options_1[_a3];
670
670
  if (option.length === 0) {
671
671
  throw new Error("Invalid number skeleton");
672
672
  }
@@ -915,7 +915,7 @@ function parseNumberSkeleton(tokens) {
915
915
  return result;
916
916
  }
917
917
 
918
- // ../../node_modules/@formatjs/icu-messageformat-parser/lib/time-data.generated.js
918
+ // ../../node_modules/intl-messageformat/node_modules/@formatjs/icu-messageformat-parser/lib/time-data.generated.js
919
919
  var timeData = {
920
920
  "001": [
921
921
  "H",
@@ -2254,7 +2254,7 @@ var timeData = {
2254
2254
  ]
2255
2255
  };
2256
2256
 
2257
- // ../../node_modules/@formatjs/icu-messageformat-parser/lib/date-time-pattern-generator.js
2257
+ // ../../node_modules/intl-messageformat/node_modules/@formatjs/icu-messageformat-parser/lib/date-time-pattern-generator.js
2258
2258
  function getBestPattern(skeleton, locale) {
2259
2259
  var skeletonCopy = "";
2260
2260
  for (var patternPos = 0; patternPos < skeleton.length; patternPos++) {
@@ -2316,7 +2316,7 @@ function getDefaultHourSymbolFromLocale(locale) {
2316
2316
  return hourCycles[0];
2317
2317
  }
2318
2318
 
2319
- // ../../node_modules/@formatjs/icu-messageformat-parser/lib/parser.js
2319
+ // ../../node_modules/intl-messageformat/node_modules/@formatjs/icu-messageformat-parser/lib/parser.js
2320
2320
  var _a;
2321
2321
  var SPACE_SEPARATOR_START_REGEX = new RegExp("^".concat(SPACE_SEPARATOR_REGEX.source, "*"));
2322
2322
  var SPACE_SEPARATOR_END_REGEX = new RegExp("".concat(SPACE_SEPARATOR_REGEX.source, "*$"));
@@ -2379,7 +2379,7 @@ var fromEntries = (
2379
2379
  function fromEntries2(entries) {
2380
2380
  var obj = {};
2381
2381
  for (var _i = 0, entries_1 = entries; _i < entries_1.length; _i++) {
2382
- var _a2 = entries_1[_i], k = _a2[0], v = _a2[1];
2382
+ var _a3 = entries_1[_i], k = _a3[0], v = _a3[1];
2383
2383
  obj[k] = v;
2384
2384
  }
2385
2385
  return obj;
@@ -2431,14 +2431,14 @@ function RE(s, flag) {
2431
2431
  var matchIdentifierAtIndex;
2432
2432
  if (REGEX_SUPPORTS_U_AND_Y) {
2433
2433
  IDENTIFIER_PREFIX_RE_1 = RE("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
2434
- matchIdentifierAtIndex = function matchIdentifierAtIndex2(s, index) {
2435
- var _a2;
2434
+ matchIdentifierAtIndex = function matchIdentifierAtIndex3(s, index) {
2435
+ var _a3;
2436
2436
  IDENTIFIER_PREFIX_RE_1.lastIndex = index;
2437
2437
  var match = IDENTIFIER_PREFIX_RE_1.exec(s);
2438
- return (_a2 = match[1]) !== null && _a2 !== void 0 ? _a2 : "";
2438
+ return (_a3 = match[1]) !== null && _a3 !== void 0 ? _a3 : "";
2439
2439
  };
2440
2440
  } else {
2441
- matchIdentifierAtIndex = function matchIdentifierAtIndex2(s, index) {
2441
+ matchIdentifierAtIndex = function matchIdentifierAtIndex3(s, index) {
2442
2442
  var match = [];
2443
2443
  while (true) {
2444
2444
  var c = codePointAt(s, index);
@@ -2455,7 +2455,7 @@ var IDENTIFIER_PREFIX_RE_1;
2455
2455
  var Parser = (
2456
2456
  /** @class */
2457
2457
  function() {
2458
- function Parser2(message, options) {
2458
+ function Parser3(message, options) {
2459
2459
  if (options === void 0) {
2460
2460
  options = {};
2461
2461
  }
@@ -2466,13 +2466,13 @@ var Parser = (
2466
2466
  this.requiresOtherClause = !!options.requiresOtherClause;
2467
2467
  this.shouldParseSkeletons = !!options.shouldParseSkeletons;
2468
2468
  }
2469
- Parser2.prototype.parse = function() {
2469
+ Parser3.prototype.parse = function() {
2470
2470
  if (this.offset() !== 0) {
2471
2471
  throw Error("parser can only be used once");
2472
2472
  }
2473
2473
  return this.parseMessage(0, "", false);
2474
2474
  };
2475
- Parser2.prototype.parseMessage = function(nestingLevel, parentArgType, expectingCloseTag) {
2475
+ Parser3.prototype.parseMessage = function(nestingLevel, parentArgType, expectingCloseTag) {
2476
2476
  var elements = [];
2477
2477
  while (!this.isEOF()) {
2478
2478
  var char = this.char();
@@ -2513,7 +2513,7 @@ var Parser = (
2513
2513
  }
2514
2514
  return { val: elements, err: null };
2515
2515
  };
2516
- Parser2.prototype.parseTag = function(nestingLevel, parentArgType) {
2516
+ Parser3.prototype.parseTag = function(nestingLevel, parentArgType) {
2517
2517
  var startPosition = this.clonePosition();
2518
2518
  this.bump();
2519
2519
  var tagName = this.parseTagName();
@@ -2563,7 +2563,7 @@ var Parser = (
2563
2563
  return this.error(ErrorKind.INVALID_TAG, createLocation(startPosition, this.clonePosition()));
2564
2564
  }
2565
2565
  };
2566
- Parser2.prototype.parseTagName = function() {
2566
+ Parser3.prototype.parseTagName = function() {
2567
2567
  var startOffset = this.offset();
2568
2568
  this.bump();
2569
2569
  while (!this.isEOF() && _isPotentialElementNameChar(this.char())) {
@@ -2571,7 +2571,7 @@ var Parser = (
2571
2571
  }
2572
2572
  return this.message.slice(startOffset, this.offset());
2573
2573
  };
2574
- Parser2.prototype.parseLiteral = function(nestingLevel, parentArgType) {
2574
+ Parser3.prototype.parseLiteral = function(nestingLevel, parentArgType) {
2575
2575
  var start = this.clonePosition();
2576
2576
  var value = "";
2577
2577
  while (true) {
@@ -2598,7 +2598,7 @@ var Parser = (
2598
2598
  err: null
2599
2599
  };
2600
2600
  };
2601
- Parser2.prototype.tryParseLeftAngleBracket = function() {
2601
+ Parser3.prototype.tryParseLeftAngleBracket = function() {
2602
2602
  if (!this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
2603
2603
  !_isAlphaOrSlash(this.peek() || 0))) {
2604
2604
  this.bump();
@@ -2606,7 +2606,7 @@ var Parser = (
2606
2606
  }
2607
2607
  return null;
2608
2608
  };
2609
- Parser2.prototype.tryParseQuote = function(parentArgType) {
2609
+ Parser3.prototype.tryParseQuote = function(parentArgType) {
2610
2610
  if (this.isEOF() || this.char() !== 39) {
2611
2611
  return null;
2612
2612
  }
@@ -2648,7 +2648,7 @@ var Parser = (
2648
2648
  }
2649
2649
  return fromCodePoint.apply(void 0, codePoints);
2650
2650
  };
2651
- Parser2.prototype.tryParseUnquoted = function(nestingLevel, parentArgType) {
2651
+ Parser3.prototype.tryParseUnquoted = function(nestingLevel, parentArgType) {
2652
2652
  if (this.isEOF()) {
2653
2653
  return null;
2654
2654
  }
@@ -2660,7 +2660,7 @@ var Parser = (
2660
2660
  return fromCodePoint(ch);
2661
2661
  }
2662
2662
  };
2663
- Parser2.prototype.parseArgument = function(nestingLevel, expectingCloseTag) {
2663
+ Parser3.prototype.parseArgument = function(nestingLevel, expectingCloseTag) {
2664
2664
  var openingBracePosition = this.clonePosition();
2665
2665
  this.bump();
2666
2666
  this.bumpSpace();
@@ -2704,7 +2704,7 @@ var Parser = (
2704
2704
  return this.error(ErrorKind.MALFORMED_ARGUMENT, createLocation(openingBracePosition, this.clonePosition()));
2705
2705
  }
2706
2706
  };
2707
- Parser2.prototype.parseIdentifierIfPossible = function() {
2707
+ Parser3.prototype.parseIdentifierIfPossible = function() {
2708
2708
  var startingPosition = this.clonePosition();
2709
2709
  var startOffset = this.offset();
2710
2710
  var value = matchIdentifierAtIndex(this.message, startOffset);
@@ -2714,8 +2714,8 @@ var Parser = (
2714
2714
  var location = createLocation(startingPosition, endPosition);
2715
2715
  return { value, location };
2716
2716
  };
2717
- Parser2.prototype.parseArgumentOptions = function(nestingLevel, expectingCloseTag, value, openingBracePosition) {
2718
- var _a2;
2717
+ Parser3.prototype.parseArgumentOptions = function(nestingLevel, expectingCloseTag, value, openingBracePosition) {
2718
+ var _a3;
2719
2719
  var typeStartPosition = this.clonePosition();
2720
2720
  var argType = this.parseIdentifierIfPossible().value;
2721
2721
  var typeEndPosition = this.clonePosition();
@@ -2783,7 +2783,7 @@ var Parser = (
2783
2783
  type: argType === "number" ? TYPE.number : argType === "date" ? TYPE.date : TYPE.time,
2784
2784
  value,
2785
2785
  location: location_1,
2786
- style: (_a2 = styleAndLocation === null || styleAndLocation === void 0 ? void 0 : styleAndLocation.style) !== null && _a2 !== void 0 ? _a2 : null
2786
+ style: (_a3 = styleAndLocation === null || styleAndLocation === void 0 ? void 0 : styleAndLocation.style) !== null && _a3 !== void 0 ? _a3 : null
2787
2787
  },
2788
2788
  err: null
2789
2789
  };
@@ -2849,14 +2849,14 @@ var Parser = (
2849
2849
  return this.error(ErrorKind.INVALID_ARGUMENT_TYPE, createLocation(typeStartPosition, typeEndPosition));
2850
2850
  }
2851
2851
  };
2852
- Parser2.prototype.tryParseArgumentClose = function(openingBracePosition) {
2852
+ Parser3.prototype.tryParseArgumentClose = function(openingBracePosition) {
2853
2853
  if (this.isEOF() || this.char() !== 125) {
2854
2854
  return this.error(ErrorKind.EXPECT_ARGUMENT_CLOSING_BRACE, createLocation(openingBracePosition, this.clonePosition()));
2855
2855
  }
2856
2856
  this.bump();
2857
2857
  return { val: true, err: null };
2858
2858
  };
2859
- Parser2.prototype.parseSimpleArgStyleIfPossible = function() {
2859
+ Parser3.prototype.parseSimpleArgStyleIfPossible = function() {
2860
2860
  var nestedBraces = 0;
2861
2861
  var startPosition = this.clonePosition();
2862
2862
  while (!this.isEOF()) {
@@ -2897,7 +2897,7 @@ var Parser = (
2897
2897
  err: null
2898
2898
  };
2899
2899
  };
2900
- Parser2.prototype.parseNumberSkeletonFromString = function(skeleton, location) {
2900
+ Parser3.prototype.parseNumberSkeletonFromString = function(skeleton, location) {
2901
2901
  var tokens = [];
2902
2902
  try {
2903
2903
  tokens = parseNumberSkeletonFromString(skeleton);
@@ -2914,8 +2914,8 @@ var Parser = (
2914
2914
  err: null
2915
2915
  };
2916
2916
  };
2917
- Parser2.prototype.tryParsePluralOrSelectOptions = function(nestingLevel, parentArgType, expectCloseTag, parsedFirstIdentifier) {
2918
- var _a2;
2917
+ Parser3.prototype.tryParsePluralOrSelectOptions = function(nestingLevel, parentArgType, expectCloseTag, parsedFirstIdentifier) {
2918
+ var _a3;
2919
2919
  var hasOtherClause = false;
2920
2920
  var options = [];
2921
2921
  var parsedSelectors = /* @__PURE__ */ new Set();
@@ -2962,7 +2962,7 @@ var Parser = (
2962
2962
  ]);
2963
2963
  parsedSelectors.add(selector);
2964
2964
  this.bumpSpace();
2965
- _a2 = this.parseIdentifierIfPossible(), selector = _a2.value, selectorLocation = _a2.location;
2965
+ _a3 = this.parseIdentifierIfPossible(), selector = _a3.value, selectorLocation = _a3.location;
2966
2966
  }
2967
2967
  if (options.length === 0) {
2968
2968
  return this.error(parentArgType === "select" ? ErrorKind.EXPECT_SELECT_ARGUMENT_SELECTOR : ErrorKind.EXPECT_PLURAL_ARGUMENT_SELECTOR, createLocation(this.clonePosition(), this.clonePosition()));
@@ -2972,7 +2972,7 @@ var Parser = (
2972
2972
  }
2973
2973
  return { val: options, err: null };
2974
2974
  };
2975
- Parser2.prototype.tryParseDecimalInteger = function(expectNumberError, invalidNumberError) {
2975
+ Parser3.prototype.tryParseDecimalInteger = function(expectNumberError, invalidNumberError) {
2976
2976
  var sign = 1;
2977
2977
  var startingPosition = this.clonePosition();
2978
2978
  if (this.bumpIf("+")) ; else if (this.bumpIf("-")) {
@@ -3000,20 +3000,20 @@ var Parser = (
3000
3000
  }
3001
3001
  return { val: decimal, err: null };
3002
3002
  };
3003
- Parser2.prototype.offset = function() {
3003
+ Parser3.prototype.offset = function() {
3004
3004
  return this.position.offset;
3005
3005
  };
3006
- Parser2.prototype.isEOF = function() {
3006
+ Parser3.prototype.isEOF = function() {
3007
3007
  return this.offset() === this.message.length;
3008
3008
  };
3009
- Parser2.prototype.clonePosition = function() {
3009
+ Parser3.prototype.clonePosition = function() {
3010
3010
  return {
3011
3011
  offset: this.position.offset,
3012
3012
  line: this.position.line,
3013
3013
  column: this.position.column
3014
3014
  };
3015
3015
  };
3016
- Parser2.prototype.char = function() {
3016
+ Parser3.prototype.char = function() {
3017
3017
  var offset = this.position.offset;
3018
3018
  if (offset >= this.message.length) {
3019
3019
  throw Error("out of bound");
@@ -3024,7 +3024,7 @@ var Parser = (
3024
3024
  }
3025
3025
  return code;
3026
3026
  };
3027
- Parser2.prototype.error = function(kind, location) {
3027
+ Parser3.prototype.error = function(kind, location) {
3028
3028
  return {
3029
3029
  val: null,
3030
3030
  err: {
@@ -3034,7 +3034,7 @@ var Parser = (
3034
3034
  }
3035
3035
  };
3036
3036
  };
3037
- Parser2.prototype.bump = function() {
3037
+ Parser3.prototype.bump = function() {
3038
3038
  if (this.isEOF()) {
3039
3039
  return;
3040
3040
  }
@@ -3048,7 +3048,7 @@ var Parser = (
3048
3048
  this.position.offset += code < 65536 ? 1 : 2;
3049
3049
  }
3050
3050
  };
3051
- Parser2.prototype.bumpIf = function(prefix) {
3051
+ Parser3.prototype.bumpIf = function(prefix) {
3052
3052
  if (startsWith(this.message, prefix, this.offset())) {
3053
3053
  for (var i = 0; i < prefix.length; i++) {
3054
3054
  this.bump();
@@ -3057,7 +3057,7 @@ var Parser = (
3057
3057
  }
3058
3058
  return false;
3059
3059
  };
3060
- Parser2.prototype.bumpUntil = function(pattern) {
3060
+ Parser3.prototype.bumpUntil = function(pattern) {
3061
3061
  var currentOffset = this.offset();
3062
3062
  var index = this.message.indexOf(pattern, currentOffset);
3063
3063
  if (index >= 0) {
@@ -3068,7 +3068,7 @@ var Parser = (
3068
3068
  return false;
3069
3069
  }
3070
3070
  };
3071
- Parser2.prototype.bumpTo = function(targetOffset) {
3071
+ Parser3.prototype.bumpTo = function(targetOffset) {
3072
3072
  if (this.offset() > targetOffset) {
3073
3073
  throw Error("targetOffset ".concat(targetOffset, " must be greater than or equal to the current offset ").concat(this.offset()));
3074
3074
  }
@@ -3087,12 +3087,12 @@ var Parser = (
3087
3087
  }
3088
3088
  }
3089
3089
  };
3090
- Parser2.prototype.bumpSpace = function() {
3090
+ Parser3.prototype.bumpSpace = function() {
3091
3091
  while (!this.isEOF() && _isWhiteSpace(this.char())) {
3092
3092
  this.bump();
3093
3093
  }
3094
3094
  };
3095
- Parser2.prototype.peek = function() {
3095
+ Parser3.prototype.peek = function() {
3096
3096
  if (this.isEOF()) {
3097
3097
  return null;
3098
3098
  }
@@ -3101,7 +3101,7 @@ var Parser = (
3101
3101
  var nextCode = this.message.charCodeAt(offset + (code >= 65536 ? 2 : 1));
3102
3102
  return nextCode !== null && nextCode !== void 0 ? nextCode : null;
3103
3103
  };
3104
- return Parser2;
3104
+ return Parser3;
3105
3105
  }()
3106
3106
  );
3107
3107
  function _isAlpha(codepoint) {
@@ -3120,7 +3120,7 @@ function _isPatternSyntax(c) {
3120
3120
  return c >= 33 && c <= 35 || c === 36 || c >= 37 && c <= 39 || c === 40 || c === 41 || c === 42 || c === 43 || c === 44 || c === 45 || c >= 46 && c <= 47 || c >= 58 && c <= 59 || c >= 60 && c <= 62 || c >= 63 && c <= 64 || c === 91 || c === 92 || c === 93 || c === 94 || c === 96 || c === 123 || c === 124 || c === 125 || c === 126 || c === 161 || c >= 162 && c <= 165 || c === 166 || c === 167 || c === 169 || c === 171 || c === 172 || c === 174 || c === 176 || c === 177 || c === 182 || c === 187 || c === 191 || c === 215 || c === 247 || c >= 8208 && c <= 8213 || c >= 8214 && c <= 8215 || c === 8216 || c === 8217 || c === 8218 || c >= 8219 && c <= 8220 || c === 8221 || c === 8222 || c === 8223 || c >= 8224 && c <= 8231 || c >= 8240 && c <= 8248 || c === 8249 || c === 8250 || c >= 8251 && c <= 8254 || c >= 8257 && c <= 8259 || c === 8260 || c === 8261 || c === 8262 || c >= 8263 && c <= 8273 || c === 8274 || c === 8275 || c >= 8277 && c <= 8286 || c >= 8592 && c <= 8596 || c >= 8597 && c <= 8601 || c >= 8602 && c <= 8603 || c >= 8604 && c <= 8607 || c === 8608 || c >= 8609 && c <= 8610 || c === 8611 || c >= 8612 && c <= 8613 || c === 8614 || c >= 8615 && c <= 8621 || c === 8622 || c >= 8623 && c <= 8653 || c >= 8654 && c <= 8655 || c >= 8656 && c <= 8657 || c === 8658 || c === 8659 || c === 8660 || c >= 8661 && c <= 8691 || c >= 8692 && c <= 8959 || c >= 8960 && c <= 8967 || c === 8968 || c === 8969 || c === 8970 || c === 8971 || c >= 8972 && c <= 8991 || c >= 8992 && c <= 8993 || c >= 8994 && c <= 9e3 || c === 9001 || c === 9002 || c >= 9003 && c <= 9083 || c === 9084 || c >= 9085 && c <= 9114 || c >= 9115 && c <= 9139 || c >= 9140 && c <= 9179 || c >= 9180 && c <= 9185 || c >= 9186 && c <= 9254 || c >= 9255 && c <= 9279 || c >= 9280 && c <= 9290 || c >= 9291 && c <= 9311 || c >= 9472 && c <= 9654 || c === 9655 || c >= 9656 && c <= 9664 || c === 9665 || c >= 9666 && c <= 9719 || c >= 9720 && c <= 9727 || c >= 9728 && c <= 9838 || c === 9839 || c >= 9840 && c <= 10087 || c === 10088 || c === 10089 || c === 10090 || c === 10091 || c === 10092 || c === 10093 || c === 10094 || c === 10095 || c === 10096 || c === 10097 || c === 10098 || c === 10099 || c === 10100 || c === 10101 || c >= 10132 && c <= 10175 || c >= 10176 && c <= 10180 || c === 10181 || c === 10182 || c >= 10183 && c <= 10213 || c === 10214 || c === 10215 || c === 10216 || c === 10217 || c === 10218 || c === 10219 || c === 10220 || c === 10221 || c === 10222 || c === 10223 || c >= 10224 && c <= 10239 || c >= 10240 && c <= 10495 || c >= 10496 && c <= 10626 || c === 10627 || c === 10628 || c === 10629 || c === 10630 || c === 10631 || c === 10632 || c === 10633 || c === 10634 || c === 10635 || c === 10636 || c === 10637 || c === 10638 || c === 10639 || c === 10640 || c === 10641 || c === 10642 || c === 10643 || c === 10644 || c === 10645 || c === 10646 || c === 10647 || c === 10648 || c >= 10649 && c <= 10711 || c === 10712 || c === 10713 || c === 10714 || c === 10715 || c >= 10716 && c <= 10747 || c === 10748 || c === 10749 || c >= 10750 && c <= 11007 || c >= 11008 && c <= 11055 || c >= 11056 && c <= 11076 || c >= 11077 && c <= 11078 || c >= 11079 && c <= 11084 || c >= 11085 && c <= 11123 || c >= 11124 && c <= 11125 || c >= 11126 && c <= 11157 || c === 11158 || c >= 11159 && c <= 11263 || c >= 11776 && c <= 11777 || c === 11778 || c === 11779 || c === 11780 || c === 11781 || c >= 11782 && c <= 11784 || c === 11785 || c === 11786 || c === 11787 || c === 11788 || c === 11789 || c >= 11790 && c <= 11798 || c === 11799 || c >= 11800 && c <= 11801 || c === 11802 || c === 11803 || c === 11804 || c === 11805 || c >= 11806 && c <= 11807 || c === 11808 || c === 11809 || c === 11810 || c === 11811 || c === 11812 || c === 11813 || c === 11814 || c === 11815 || c === 11816 || c === 11817 || c >= 11818 && c <= 11822 || c === 11823 || c >= 11824 && c <= 11833 || c >= 11834 && c <= 11835 || c >= 11836 && c <= 11839 || c === 11840 || c === 11841 || c === 11842 || c >= 11843 && c <= 11855 || c >= 11856 && c <= 11857 || c === 11858 || c >= 11859 && c <= 11903 || c >= 12289 && c <= 12291 || c === 12296 || c === 12297 || c === 12298 || c === 12299 || c === 12300 || c === 12301 || c === 12302 || c === 12303 || c === 12304 || c === 12305 || c >= 12306 && c <= 12307 || c === 12308 || c === 12309 || c === 12310 || c === 12311 || c === 12312 || c === 12313 || c === 12314 || c === 12315 || c === 12316 || c === 12317 || c >= 12318 && c <= 12319 || c === 12320 || c === 12336 || c === 64830 || c === 64831 || c >= 65093 && c <= 65094;
3121
3121
  }
3122
3122
 
3123
- // ../../node_modules/@formatjs/icu-messageformat-parser/lib/index.js
3123
+ // ../../node_modules/intl-messageformat/node_modules/@formatjs/icu-messageformat-parser/lib/index.js
3124
3124
  function pruneLocation(els) {
3125
3125
  els.forEach(function(el) {
3126
3126
  delete el.location;
@@ -3460,34 +3460,34 @@ function createDefaultFormatters(cache) {
3460
3460
  }
3461
3461
  return {
3462
3462
  getNumberFormat: memoize(function() {
3463
- var _a2;
3463
+ var _a3;
3464
3464
  var args = [];
3465
3465
  for (var _i = 0; _i < arguments.length; _i++) {
3466
3466
  args[_i] = arguments[_i];
3467
3467
  }
3468
- return new ((_a2 = Intl.NumberFormat).bind.apply(_a2, __spreadArray([void 0], args, false)))();
3468
+ return new ((_a3 = Intl.NumberFormat).bind.apply(_a3, __spreadArray([void 0], args, false)))();
3469
3469
  }, {
3470
3470
  cache: createFastMemoizeCache(cache.number),
3471
3471
  strategy: strategies.variadic
3472
3472
  }),
3473
3473
  getDateTimeFormat: memoize(function() {
3474
- var _a2;
3474
+ var _a3;
3475
3475
  var args = [];
3476
3476
  for (var _i = 0; _i < arguments.length; _i++) {
3477
3477
  args[_i] = arguments[_i];
3478
3478
  }
3479
- return new ((_a2 = Intl.DateTimeFormat).bind.apply(_a2, __spreadArray([void 0], args, false)))();
3479
+ return new ((_a3 = Intl.DateTimeFormat).bind.apply(_a3, __spreadArray([void 0], args, false)))();
3480
3480
  }, {
3481
3481
  cache: createFastMemoizeCache(cache.dateTime),
3482
3482
  strategy: strategies.variadic
3483
3483
  }),
3484
3484
  getPluralRules: memoize(function() {
3485
- var _a2;
3485
+ var _a3;
3486
3486
  var args = [];
3487
3487
  for (var _i = 0; _i < arguments.length; _i++) {
3488
3488
  args[_i] = arguments[_i];
3489
3489
  }
3490
- return new ((_a2 = Intl.PluralRules).bind.apply(_a2, __spreadArray([void 0], args, false)))();
3490
+ return new ((_a3 = Intl.PluralRules).bind.apply(_a3, __spreadArray([void 0], args, false)))();
3491
3491
  }, {
3492
3492
  cache: createFastMemoizeCache(cache.pluralRules),
3493
3493
  strategy: strategies.variadic
@@ -3529,9 +3529,9 @@ var IntlMessageFormat = (
3529
3529
  return formatToParts(_this.ast, _this.locales, _this.formatters, _this.formats, values, void 0, _this.message);
3530
3530
  };
3531
3531
  this.resolvedOptions = function() {
3532
- var _a3;
3532
+ var _a4;
3533
3533
  return {
3534
- locale: ((_a3 = _this.resolvedLocale) === null || _a3 === void 0 ? void 0 : _a3.toString()) || Intl.NumberFormat.supportedLocalesOf(_this.locales)[0]
3534
+ locale: ((_a4 = _this.resolvedLocale) === null || _a4 === void 0 ? void 0 : _a4.toString()) || Intl.NumberFormat.supportedLocalesOf(_this.locales)[0]
3535
3535
  };
3536
3536
  };
3537
3537
  this.getAst = function() {
@@ -3544,7 +3544,7 @@ var IntlMessageFormat = (
3544
3544
  if (!IntlMessageFormat2.__parse) {
3545
3545
  throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
3546
3546
  }
3547
- var _a2 = opts || {}; _a2.formatters; var parseOpts = __rest(_a2, ["formatters"]);
3547
+ var _a3 = opts || {}; _a3.formatters; var parseOpts = __rest(_a3, ["formatters"]);
3548
3548
  this.ast = IntlMessageFormat2.__parse(message, __assign(__assign({}, parseOpts), { locale: this.resolvedLocale }));
3549
3549
  } else {
3550
3550
  this.ast = message;
@@ -3727,8 +3727,8 @@ var MissingTranslationError = (
3727
3727
  __extends(MissingTranslationError2, _super);
3728
3728
  function MissingTranslationError2(descriptor, locale) {
3729
3729
  var _this = _super.call(this, IntlErrorCode.MISSING_TRANSLATION, 'Missing message: "'.concat(descriptor.id, '" for locale "').concat(locale, '", using ').concat(descriptor.defaultMessage ? "default message (".concat(typeof descriptor.defaultMessage === "string" ? descriptor.defaultMessage : descriptor.defaultMessage.map(function(e) {
3730
- var _a2;
3731
- return (_a2 = e.value) !== null && _a2 !== void 0 ? _a2 : JSON.stringify(e);
3730
+ var _a3;
3731
+ return (_a3 = e.value) !== null && _a3 !== void 0 ? _a3 : JSON.stringify(e);
3732
3732
  }).join(), ")") : "id", " as fallback.")) || this;
3733
3733
  _this.descriptor = descriptor;
3734
3734
  return _this;
@@ -3804,34 +3804,34 @@ function createFormatters(cache) {
3804
3804
  var ListFormat = Intl.ListFormat;
3805
3805
  var DisplayNames = Intl.DisplayNames;
3806
3806
  var getDateTimeFormat = memoize(function() {
3807
- var _a2;
3807
+ var _a3;
3808
3808
  var args = [];
3809
3809
  for (var _i = 0; _i < arguments.length; _i++) {
3810
3810
  args[_i] = arguments[_i];
3811
3811
  }
3812
- return new ((_a2 = Intl.DateTimeFormat).bind.apply(_a2, __spreadArray([void 0], args, false)))();
3812
+ return new ((_a3 = Intl.DateTimeFormat).bind.apply(_a3, __spreadArray([void 0], args, false)))();
3813
3813
  }, {
3814
3814
  cache: createFastMemoizeCache2(cache.dateTime),
3815
3815
  strategy: strategies.variadic
3816
3816
  });
3817
3817
  var getNumberFormat = memoize(function() {
3818
- var _a2;
3818
+ var _a3;
3819
3819
  var args = [];
3820
3820
  for (var _i = 0; _i < arguments.length; _i++) {
3821
3821
  args[_i] = arguments[_i];
3822
3822
  }
3823
- return new ((_a2 = Intl.NumberFormat).bind.apply(_a2, __spreadArray([void 0], args, false)))();
3823
+ return new ((_a3 = Intl.NumberFormat).bind.apply(_a3, __spreadArray([void 0], args, false)))();
3824
3824
  }, {
3825
3825
  cache: createFastMemoizeCache2(cache.number),
3826
3826
  strategy: strategies.variadic
3827
3827
  });
3828
3828
  var getPluralRules = memoize(function() {
3829
- var _a2;
3829
+ var _a3;
3830
3830
  var args = [];
3831
3831
  for (var _i = 0; _i < arguments.length; _i++) {
3832
3832
  args[_i] = arguments[_i];
3833
3833
  }
3834
- return new ((_a2 = Intl.PluralRules).bind.apply(_a2, __spreadArray([void 0], args, false)))();
3834
+ return new ((_a3 = Intl.PluralRules).bind.apply(_a3, __spreadArray([void 0], args, false)))();
3835
3835
  }, {
3836
3836
  cache: createFastMemoizeCache2(cache.pluralRules),
3837
3837
  strategy: strategies.variadic
@@ -3894,6 +3894,84 @@ function getNamedFormat(formats, type, name, onError) {
3894
3894
  onError(new UnsupportedFormatterError("No ".concat(type, " format named: ").concat(name)));
3895
3895
  }
3896
3896
 
3897
+ // ../../node_modules/@formatjs/intl/node_modules/@formatjs/ecma402-abstract/lib/utils.js
3898
+ function invariant2(condition, message, Err) {
3899
+ if (Err === void 0) {
3900
+ Err = Error;
3901
+ }
3902
+ if (!condition) {
3903
+ throw new Err(message);
3904
+ }
3905
+ }
3906
+
3907
+ // ../../node_modules/@formatjs/intl/node_modules/@formatjs/icu-messageformat-parser/lib/error.js
3908
+ var ErrorKind2;
3909
+ (function(ErrorKind3) {
3910
+ ErrorKind3[ErrorKind3["EXPECT_ARGUMENT_CLOSING_BRACE"] = 1] = "EXPECT_ARGUMENT_CLOSING_BRACE";
3911
+ ErrorKind3[ErrorKind3["EMPTY_ARGUMENT"] = 2] = "EMPTY_ARGUMENT";
3912
+ ErrorKind3[ErrorKind3["MALFORMED_ARGUMENT"] = 3] = "MALFORMED_ARGUMENT";
3913
+ ErrorKind3[ErrorKind3["EXPECT_ARGUMENT_TYPE"] = 4] = "EXPECT_ARGUMENT_TYPE";
3914
+ ErrorKind3[ErrorKind3["INVALID_ARGUMENT_TYPE"] = 5] = "INVALID_ARGUMENT_TYPE";
3915
+ ErrorKind3[ErrorKind3["EXPECT_ARGUMENT_STYLE"] = 6] = "EXPECT_ARGUMENT_STYLE";
3916
+ ErrorKind3[ErrorKind3["INVALID_NUMBER_SKELETON"] = 7] = "INVALID_NUMBER_SKELETON";
3917
+ ErrorKind3[ErrorKind3["INVALID_DATE_TIME_SKELETON"] = 8] = "INVALID_DATE_TIME_SKELETON";
3918
+ ErrorKind3[ErrorKind3["EXPECT_NUMBER_SKELETON"] = 9] = "EXPECT_NUMBER_SKELETON";
3919
+ ErrorKind3[ErrorKind3["EXPECT_DATE_TIME_SKELETON"] = 10] = "EXPECT_DATE_TIME_SKELETON";
3920
+ ErrorKind3[ErrorKind3["UNCLOSED_QUOTE_IN_ARGUMENT_STYLE"] = 11] = "UNCLOSED_QUOTE_IN_ARGUMENT_STYLE";
3921
+ ErrorKind3[ErrorKind3["EXPECT_SELECT_ARGUMENT_OPTIONS"] = 12] = "EXPECT_SELECT_ARGUMENT_OPTIONS";
3922
+ ErrorKind3[ErrorKind3["EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE"] = 13] = "EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE";
3923
+ ErrorKind3[ErrorKind3["INVALID_PLURAL_ARGUMENT_OFFSET_VALUE"] = 14] = "INVALID_PLURAL_ARGUMENT_OFFSET_VALUE";
3924
+ ErrorKind3[ErrorKind3["EXPECT_SELECT_ARGUMENT_SELECTOR"] = 15] = "EXPECT_SELECT_ARGUMENT_SELECTOR";
3925
+ ErrorKind3[ErrorKind3["EXPECT_PLURAL_ARGUMENT_SELECTOR"] = 16] = "EXPECT_PLURAL_ARGUMENT_SELECTOR";
3926
+ ErrorKind3[ErrorKind3["EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT"] = 17] = "EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT";
3927
+ ErrorKind3[ErrorKind3["EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT"] = 18] = "EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT";
3928
+ ErrorKind3[ErrorKind3["INVALID_PLURAL_ARGUMENT_SELECTOR"] = 19] = "INVALID_PLURAL_ARGUMENT_SELECTOR";
3929
+ ErrorKind3[ErrorKind3["DUPLICATE_PLURAL_ARGUMENT_SELECTOR"] = 20] = "DUPLICATE_PLURAL_ARGUMENT_SELECTOR";
3930
+ ErrorKind3[ErrorKind3["DUPLICATE_SELECT_ARGUMENT_SELECTOR"] = 21] = "DUPLICATE_SELECT_ARGUMENT_SELECTOR";
3931
+ ErrorKind3[ErrorKind3["MISSING_OTHER_CLAUSE"] = 22] = "MISSING_OTHER_CLAUSE";
3932
+ ErrorKind3[ErrorKind3["INVALID_TAG"] = 23] = "INVALID_TAG";
3933
+ ErrorKind3[ErrorKind3["INVALID_TAG_NAME"] = 25] = "INVALID_TAG_NAME";
3934
+ ErrorKind3[ErrorKind3["UNMATCHED_CLOSING_TAG"] = 26] = "UNMATCHED_CLOSING_TAG";
3935
+ ErrorKind3[ErrorKind3["UNCLOSED_TAG"] = 27] = "UNCLOSED_TAG";
3936
+ })(ErrorKind2 || (ErrorKind2 = {}));
3937
+
3938
+ // ../../node_modules/@formatjs/intl/node_modules/@formatjs/icu-messageformat-parser/lib/types.js
3939
+ var TYPE2;
3940
+ (function(TYPE3) {
3941
+ TYPE3[TYPE3["literal"] = 0] = "literal";
3942
+ TYPE3[TYPE3["argument"] = 1] = "argument";
3943
+ TYPE3[TYPE3["number"] = 2] = "number";
3944
+ TYPE3[TYPE3["date"] = 3] = "date";
3945
+ TYPE3[TYPE3["time"] = 4] = "time";
3946
+ TYPE3[TYPE3["select"] = 5] = "select";
3947
+ TYPE3[TYPE3["plural"] = 6] = "plural";
3948
+ TYPE3[TYPE3["pound"] = 7] = "pound";
3949
+ TYPE3[TYPE3["tag"] = 8] = "tag";
3950
+ })(TYPE2 || (TYPE2 = {}));
3951
+ var SKELETON_TYPE2;
3952
+ (function(SKELETON_TYPE3) {
3953
+ SKELETON_TYPE3[SKELETON_TYPE3["number"] = 0] = "number";
3954
+ SKELETON_TYPE3[SKELETON_TYPE3["dateTime"] = 1] = "dateTime";
3955
+ })(SKELETON_TYPE2 || (SKELETON_TYPE2 = {}));
3956
+
3957
+ // ../../node_modules/@formatjs/intl/node_modules/@formatjs/icu-messageformat-parser/lib/parser.js
3958
+ var _a2;
3959
+ var REGEX_SUPPORTS_U_AND_Y2 = true;
3960
+ try {
3961
+ re = RE2("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
3962
+ REGEX_SUPPORTS_U_AND_Y2 = ((_a2 = re.exec("a")) === null || _a2 === void 0 ? void 0 : _a2[0]) === "a";
3963
+ } catch (_) {
3964
+ REGEX_SUPPORTS_U_AND_Y2 = false;
3965
+ }
3966
+ var re;
3967
+ function RE2(s, flag) {
3968
+ return new RegExp(s, flag);
3969
+ }
3970
+ if (REGEX_SUPPORTS_U_AND_Y2) {
3971
+ IDENTIFIER_PREFIX_RE_1 = RE2("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
3972
+ }
3973
+ var IDENTIFIER_PREFIX_RE_1;
3974
+
3897
3975
  // ../../node_modules/@formatjs/intl/lib/src/message.js
3898
3976
  function setTimeZoneInOptions(opts, timeZone) {
3899
3977
  return Object.keys(opts).reduce(function(all, k) {
@@ -3915,13 +3993,13 @@ function deepMergeFormatsAndSetTimeZone(f1, timeZone) {
3915
3993
  var mfFormats = IntlMessageFormat.formats;
3916
3994
  return __assign(__assign(__assign({}, mfFormats), f1), { date: deepMergeOptions(setTimeZoneInOptions(mfFormats.date, timeZone), setTimeZoneInOptions(f1.date || {}, timeZone)), time: deepMergeOptions(setTimeZoneInOptions(mfFormats.time, timeZone), setTimeZoneInOptions(f1.time || {}, timeZone)) });
3917
3995
  }
3918
- var formatMessage = function(_a2, state, messageDescriptor, values, opts) {
3919
- var locale = _a2.locale, formats = _a2.formats, messages = _a2.messages, defaultLocale = _a2.defaultLocale, defaultFormats = _a2.defaultFormats, fallbackOnEmptyString = _a2.fallbackOnEmptyString, onError = _a2.onError, timeZone = _a2.timeZone, defaultRichTextElements = _a2.defaultRichTextElements;
3996
+ var formatMessage = function(_a3, state, messageDescriptor, values, opts) {
3997
+ var locale = _a3.locale, formats = _a3.formats, messages = _a3.messages, defaultLocale = _a3.defaultLocale, defaultFormats = _a3.defaultFormats, fallbackOnEmptyString = _a3.fallbackOnEmptyString, onError = _a3.onError, timeZone = _a3.timeZone, defaultRichTextElements = _a3.defaultRichTextElements;
3920
3998
  if (messageDescriptor === void 0) {
3921
3999
  messageDescriptor = { id: "" };
3922
4000
  }
3923
4001
  var msgId = messageDescriptor.id, defaultMessage = messageDescriptor.defaultMessage;
3924
- invariant(!!msgId, "[@formatjs/intl] An `id` must be provided to format a message. You can either:\n1. Configure your build toolchain with [babel-plugin-formatjs](https://formatjs.io/docs/tooling/babel-plugin)\nor [@formatjs/ts-transformer](https://formatjs.io/docs/tooling/ts-transformer) OR\n2. Configure your `eslint` config to include [eslint-plugin-formatjs](https://formatjs.io/docs/tooling/linter#enforce-id)\nto autofix this issue");
4002
+ invariant2(!!msgId, "[@formatjs/intl] An `id` must be provided to format a message. You can either:\n1. Configure your build toolchain with [babel-plugin-formatjs](https://formatjs.io/docs/tooling/babel-plugin)\nor [@formatjs/ts-transformer](https://formatjs.io/docs/tooling/ts-transformer) OR\n2. Configure your `eslint` config to include [eslint-plugin-formatjs](https://formatjs.io/docs/tooling/linter#enforce-id)\nto autofix this issue");
3925
4003
  var id = String(msgId);
3926
4004
  var message = (
3927
4005
  // In case messages is Object.create(null)
@@ -3929,7 +4007,7 @@ var formatMessage = function(_a2, state, messageDescriptor, values, opts) {
3929
4007
  // See https://github.com/formatjs/formatjs/issues/1914
3930
4008
  messages && Object.prototype.hasOwnProperty.call(messages, id) && messages[id]
3931
4009
  );
3932
- if (Array.isArray(message) && message.length === 1 && message[0].type === TYPE.literal) {
4010
+ if (Array.isArray(message) && message.length === 1 && message[0].type === TYPE2.literal) {
3933
4011
  return message[0].value;
3934
4012
  }
3935
4013
  if (!values && message && typeof message === "string" && !defaultRichTextElements) {
@@ -4001,8 +4079,8 @@ var DATE_TIME_FORMAT_OPTIONS = [
4001
4079
  "numberingSystem",
4002
4080
  "fractionalSecondDigits"
4003
4081
  ];
4004
- function getFormatter(_a2, type, getDateTimeFormat, options) {
4005
- var locale = _a2.locale, formats = _a2.formats, onError = _a2.onError, timeZone = _a2.timeZone;
4082
+ function getFormatter(_a3, type, getDateTimeFormat, options) {
4083
+ var locale = _a3.locale, formats = _a3.formats, onError = _a3.onError, timeZone = _a3.timeZone;
4006
4084
  if (options === void 0) {
4007
4085
  options = {};
4008
4086
  }
@@ -4015,11 +4093,11 @@ function getFormatter(_a2, type, getDateTimeFormat, options) {
4015
4093
  return getDateTimeFormat(locale, filteredOptions);
4016
4094
  }
4017
4095
  function formatDate(config, getDateTimeFormat) {
4018
- var _a2 = [];
4096
+ var _a3 = [];
4019
4097
  for (var _i = 2; _i < arguments.length; _i++) {
4020
- _a2[_i - 2] = arguments[_i];
4098
+ _a3[_i - 2] = arguments[_i];
4021
4099
  }
4022
- var value = _a2[0], _b = _a2[1], options = _b === void 0 ? {} : _b;
4100
+ var value = _a3[0], _b = _a3[1], options = _b === void 0 ? {} : _b;
4023
4101
  var date = typeof value === "string" ? new Date(value || 0) : value;
4024
4102
  try {
4025
4103
  return getFormatter(config, "date", getDateTimeFormat, options).format(date);
@@ -4029,11 +4107,11 @@ function formatDate(config, getDateTimeFormat) {
4029
4107
  return String(date);
4030
4108
  }
4031
4109
  function formatTime(config, getDateTimeFormat) {
4032
- var _a2 = [];
4110
+ var _a3 = [];
4033
4111
  for (var _i = 2; _i < arguments.length; _i++) {
4034
- _a2[_i - 2] = arguments[_i];
4112
+ _a3[_i - 2] = arguments[_i];
4035
4113
  }
4036
- var value = _a2[0], _b = _a2[1], options = _b === void 0 ? {} : _b;
4114
+ var value = _a3[0], _b = _a3[1], options = _b === void 0 ? {} : _b;
4037
4115
  var date = typeof value === "string" ? new Date(value || 0) : value;
4038
4116
  try {
4039
4117
  return getFormatter(config, "time", getDateTimeFormat, options).format(date);
@@ -4043,11 +4121,11 @@ function formatTime(config, getDateTimeFormat) {
4043
4121
  return String(date);
4044
4122
  }
4045
4123
  function formatDateTimeRange(config, getDateTimeFormat) {
4046
- var _a2 = [];
4124
+ var _a3 = [];
4047
4125
  for (var _i = 2; _i < arguments.length; _i++) {
4048
- _a2[_i - 2] = arguments[_i];
4126
+ _a3[_i - 2] = arguments[_i];
4049
4127
  }
4050
- var from = _a2[0], to = _a2[1], _b = _a2[2], options = _b === void 0 ? {} : _b;
4128
+ var from = _a3[0], to = _a3[1], _b = _a3[2], options = _b === void 0 ? {} : _b;
4051
4129
  var timeZone = config.timeZone, locale = config.locale, onError = config.onError;
4052
4130
  var filteredOptions = filterProps(options, DATE_TIME_FORMAT_OPTIONS, timeZone ? { timeZone } : {});
4053
4131
  try {
@@ -4058,11 +4136,11 @@ function formatDateTimeRange(config, getDateTimeFormat) {
4058
4136
  return String(from);
4059
4137
  }
4060
4138
  function formatDateToParts(config, getDateTimeFormat) {
4061
- var _a2 = [];
4139
+ var _a3 = [];
4062
4140
  for (var _i = 2; _i < arguments.length; _i++) {
4063
- _a2[_i - 2] = arguments[_i];
4141
+ _a3[_i - 2] = arguments[_i];
4064
4142
  }
4065
- var value = _a2[0], _b = _a2[1], options = _b === void 0 ? {} : _b;
4143
+ var value = _a3[0], _b = _a3[1], options = _b === void 0 ? {} : _b;
4066
4144
  var date = typeof value === "string" ? new Date(value || 0) : value;
4067
4145
  try {
4068
4146
  return getFormatter(config, "date", getDateTimeFormat, options).formatToParts(date);
@@ -4072,11 +4150,11 @@ function formatDateToParts(config, getDateTimeFormat) {
4072
4150
  return [];
4073
4151
  }
4074
4152
  function formatTimeToParts(config, getDateTimeFormat) {
4075
- var _a2 = [];
4153
+ var _a3 = [];
4076
4154
  for (var _i = 2; _i < arguments.length; _i++) {
4077
- _a2[_i - 2] = arguments[_i];
4155
+ _a3[_i - 2] = arguments[_i];
4078
4156
  }
4079
- var value = _a2[0], _b = _a2[1], options = _b === void 0 ? {} : _b;
4157
+ var value = _a3[0], _b = _a3[1], options = _b === void 0 ? {} : _b;
4080
4158
  var date = typeof value === "string" ? new Date(value || 0) : value;
4081
4159
  try {
4082
4160
  return getFormatter(config, "time", getDateTimeFormat, options).formatToParts(date);
@@ -4093,8 +4171,8 @@ var DISPLAY_NAMES_OPTONS = [
4093
4171
  "fallback",
4094
4172
  "languageDisplay"
4095
4173
  ];
4096
- function formatDisplayName(_a2, getDisplayNames, value, options) {
4097
- var locale = _a2.locale, onError = _a2.onError;
4174
+ function formatDisplayName(_a3, getDisplayNames, value, options) {
4175
+ var locale = _a3.locale, onError = _a3.onError;
4098
4176
  var DisplayNames = Intl.DisplayNames;
4099
4177
  if (!DisplayNames) {
4100
4178
  onError(new FormatError('Intl.DisplayNames is not available in this environment.\nTry polyfilling it using "@formatjs/intl-displaynames"\n', ErrorCode.MISSING_INTL_API));
@@ -4133,8 +4211,8 @@ function formatList(opts, getListFormat, values, options) {
4133
4211
  }, []);
4134
4212
  return results.length === 1 ? results[0] : results.length === 0 ? "" : results;
4135
4213
  }
4136
- function formatListToParts(_a2, getListFormat, values, options) {
4137
- var locale = _a2.locale, onError = _a2.onError;
4214
+ function formatListToParts(_a3, getListFormat, values, options) {
4215
+ var locale = _a3.locale, onError = _a3.onError;
4138
4216
  if (options === void 0) {
4139
4217
  options = {};
4140
4218
  }
@@ -4164,8 +4242,8 @@ function formatListToParts(_a2, getListFormat, values, options) {
4164
4242
 
4165
4243
  // ../../node_modules/@formatjs/intl/lib/src/plural.js
4166
4244
  var PLURAL_FORMAT_OPTIONS = ["type"];
4167
- function formatPlural(_a2, getPluralRules, value, options) {
4168
- var locale = _a2.locale, onError = _a2.onError;
4245
+ function formatPlural(_a3, getPluralRules, value, options) {
4246
+ var locale = _a3.locale, onError = _a3.onError;
4169
4247
  if (options === void 0) {
4170
4248
  options = {};
4171
4249
  }
@@ -4183,8 +4261,8 @@ function formatPlural(_a2, getPluralRules, value, options) {
4183
4261
 
4184
4262
  // ../../node_modules/@formatjs/intl/lib/src/relativeTime.js
4185
4263
  var RELATIVE_TIME_FORMAT_OPTIONS = ["numeric", "style"];
4186
- function getFormatter2(_a2, getRelativeTimeFormat, options) {
4187
- var locale = _a2.locale, formats = _a2.formats, onError = _a2.onError;
4264
+ function getFormatter2(_a3, getRelativeTimeFormat, options) {
4265
+ var locale = _a3.locale, formats = _a3.formats, onError = _a3.onError;
4188
4266
  if (options === void 0) {
4189
4267
  options = {};
4190
4268
  }
@@ -4235,8 +4313,8 @@ var NUMBER_FORMAT_OPTIONS = [
4235
4313
  "unitDisplay",
4236
4314
  "numberingSystem"
4237
4315
  ];
4238
- function getFormatter3(_a2, getNumberFormat, options) {
4239
- var locale = _a2.locale, formats = _a2.formats, onError = _a2.onError;
4316
+ function getFormatter3(_a3, getNumberFormat, options) {
4317
+ var locale = _a3.locale, formats = _a3.formats, onError = _a3.onError;
4240
4318
  if (options === void 0) {
4241
4319
  options = {};
4242
4320
  }
@@ -4447,8 +4525,8 @@ var formatMessage2 = function(config, formatters, descriptor, rawValues) {
4447
4525
  }
4448
4526
  return chunks;
4449
4527
  };
4450
- var createIntl2 = function(_a2, cache) {
4451
- var rawDefaultRichTextElements = _a2.defaultRichTextElements, config = __rest(_a2, ["defaultRichTextElements"]);
4528
+ var createIntl2 = function(_a3, cache) {
4529
+ var rawDefaultRichTextElements = _a3.defaultRichTextElements, config = __rest(_a3, ["defaultRichTextElements"]);
4452
4530
  var defaultRichTextElements = assignUniqueKeysToFormatXMLElementFnArgument(rawDefaultRichTextElements);
4453
4531
  var coreIntl = createIntl(__assign(__assign(__assign({}, DEFAULT_INTL_CONFIG2), config), { defaultRichTextElements }), cache);
4454
4532
  var resolvedConfig = {
@@ -4483,8 +4561,8 @@ var IntlProvider2 = (
4483
4561
  };
4484
4562
  return _this;
4485
4563
  }
4486
- IntlProvider4.getDerivedStateFromProps = function(props, _a2) {
4487
- var prevConfig = _a2.prevConfig, cache = _a2.cache;
4564
+ IntlProvider4.getDerivedStateFromProps = function(props, _a3) {
4565
+ var prevConfig = _a3.prevConfig, cache = _a3.cache;
4488
4566
  var config = processIntlConfig(props);
4489
4567
  if (!shallowEqual(prevConfig, config)) {
4490
4568
  return {
@@ -4543,8 +4621,8 @@ var defaultGroupOrder = [
4543
4621
  "webauthn"
4544
4622
  ];
4545
4623
  function defaultNodeSorter(a, b) {
4546
- var _a2, _b;
4547
- const aGroupWeight = (_a2 = defaultGroupOrder.indexOf(a.group)) != null ? _a2 : 999;
4624
+ var _a3, _b;
4625
+ const aGroupWeight = (_a3 = defaultGroupOrder.indexOf(a.group)) != null ? _a3 : 999;
4548
4626
  const bGroupWeight = (_b = defaultGroupOrder.indexOf(b.group)) != null ? _b : 999;
4549
4627
  return aGroupWeight - bGroupWeight;
4550
4628
  }
@@ -4653,8 +4731,8 @@ var NodeInput = ({
4653
4731
  onloadTrigger,
4654
4732
  onclickTrigger,
4655
4733
  // These properties do not exist on input fields so we remove them (as we already have handled them).
4656
- onclick: ignoredOnclick,
4657
- onload: ignoredOnload,
4734
+ onclick: _ignoredOnclick,
4735
+ onload: _ignoredOnload,
4658
4736
  //
4659
4737
  ...attrs
4660
4738
  } = attributes;
@@ -4666,10 +4744,11 @@ var NodeInput = ({
4666
4744
  triggerToWindowCall(onloadTrigger);
4667
4745
  }
4668
4746
  },
4669
- // eslint-disable-next-line react-hooks/exhaustive-deps
4747
+ // TODO(jonas): make sure onloadTrigger is stable
4748
+ // eslint-disable-next-line react-hooks/exhaustive-deps -- ignore onloadTrigger for now, until we make sure this is stable
4670
4749
  []
4671
4750
  );
4672
- const handleClick = (e) => {
4751
+ const handleClick = () => {
4673
4752
  if (onclickTrigger) {
4674
4753
  triggerToWindowCall(onclickTrigger);
4675
4754
  }
@@ -4747,7 +4826,12 @@ var Node = ({ node, onClick }) => {
4747
4826
  } else if (isUiNodeAnchorAttributes(node.attributes)) {
4748
4827
  return /* @__PURE__ */ jsx(Components.LinkButton, { attributes: node.attributes, node });
4749
4828
  } else if (isUiNodeScriptAttributes(node.attributes)) {
4750
- const { crossorigin, referrerpolicy, node_type, ...attributes } = node.attributes;
4829
+ const {
4830
+ crossorigin,
4831
+ referrerpolicy,
4832
+ node_type: _nodeType,
4833
+ ...attributes
4834
+ } = node.attributes;
4751
4835
  return /* @__PURE__ */ jsx(
4752
4836
  "script",
4753
4837
  {
@@ -4869,18 +4953,18 @@ async function onSubmitLogin({ config, flow }, {
4869
4953
  body,
4870
4954
  onRedirect
4871
4955
  }) {
4872
- var _a2;
4956
+ var _a3;
4873
4957
  if (!config.sdk.url) {
4874
4958
  throw new Error(
4875
4959
  `Please supply your Ory Network SDK url to the Ory Elements configuration.`
4876
4960
  );
4877
4961
  }
4878
- await frontendClient(config.sdk.url, (_a2 = config.sdk.options) != null ? _a2 : {}).updateLoginFlowRaw({
4962
+ await frontendClient(config.sdk.url, (_a3 = config.sdk.options) != null ? _a3 : {}).updateLoginFlowRaw({
4879
4963
  flow: flow.id,
4880
4964
  updateLoginFlowBody: body
4881
4965
  }).then(() => {
4882
- var _a3;
4883
- window.location.href = (_a3 = flow.return_to) != null ? _a3 : config.sdk.url + "/self-service/login/browser";
4966
+ var _a4;
4967
+ window.location.href = (_a4 = flow.return_to) != null ? _a4 : config.sdk.url + "/self-service/login/browser";
4884
4968
  }).catch(
4885
4969
  handleFlowError({
4886
4970
  onRestartFlow: () => {
@@ -4901,13 +4985,13 @@ async function onSubmitSettings({ config, flow }, {
4901
4985
  body,
4902
4986
  onRedirect
4903
4987
  }) {
4904
- var _a2;
4988
+ var _a3;
4905
4989
  if (!config.sdk.url) {
4906
4990
  throw new Error(
4907
4991
  `Please supply your Ory Network SDK url to the Ory Elements configuration.`
4908
4992
  );
4909
4993
  }
4910
- const client = frontendClient(config.sdk.url, (_a2 = config.sdk.options) != null ? _a2 : {});
4994
+ const client = frontendClient(config.sdk.url, (_a3 = config.sdk.options) != null ? _a3 : {});
4911
4995
  await client.updateSettingsFlowRaw({
4912
4996
  flow: flow.id,
4913
4997
  updateSettingsFlowBody: body
@@ -4940,13 +5024,13 @@ async function onSubmitRecovery({ config, flow }, {
4940
5024
  body,
4941
5025
  onRedirect
4942
5026
  }) {
4943
- var _a2;
5027
+ var _a3;
4944
5028
  if (!config.sdk.url) {
4945
5029
  throw new Error(
4946
5030
  `Please supply your Ory Network SDK url to the Ory Elements configuration.`
4947
5031
  );
4948
5032
  }
4949
- await frontendClient(config.sdk.url, (_a2 = config.sdk.options) != null ? _a2 : {}).updateRecoveryFlowRaw({
5033
+ await frontendClient(config.sdk.url, (_a3 = config.sdk.options) != null ? _a3 : {}).updateRecoveryFlowRaw({
4950
5034
  flow: flow.id,
4951
5035
  updateRecoveryFlowBody: body
4952
5036
  }).then(async (res) => {
@@ -4981,13 +5065,13 @@ async function onSubmitVerification({ config, flow }, {
4981
5065
  body,
4982
5066
  onRedirect
4983
5067
  }) {
4984
- var _a2;
5068
+ var _a3;
4985
5069
  if (!config.sdk.url) {
4986
5070
  throw new Error(
4987
5071
  `Please supply your Ory Network SDK URL to the Ory Elements configuration.`
4988
5072
  );
4989
5073
  }
4990
- await frontendClient(config.sdk.url, (_a2 = config.sdk.options) != null ? _a2 : {}).updateVerificationFlowRaw({
5074
+ await frontendClient(config.sdk.url, (_a3 = config.sdk.options) != null ? _a3 : {}).updateVerificationFlowRaw({
4991
5075
  flow: flow.id,
4992
5076
  updateVerificationFlowBody: body
4993
5077
  }).then(
@@ -5015,13 +5099,13 @@ async function onSubmitRegistration({ config, flow }, {
5015
5099
  body,
5016
5100
  onRedirect
5017
5101
  }) {
5018
- var _a2;
5102
+ var _a3;
5019
5103
  if (!config.sdk.url) {
5020
5104
  throw new Error(
5021
5105
  `Please supply your Ory Network SDK url to the Ory Elements configuration.`
5022
5106
  );
5023
5107
  }
5024
- const client = frontendClient(config.sdk.url, (_a2 = config.sdk.options) != null ? _a2 : {});
5108
+ const client = frontendClient(config.sdk.url, (_a3 = config.sdk.options) != null ? _a3 : {});
5025
5109
  await client.updateRegistrationFlowRaw({
5026
5110
  flow: flow.id,
5027
5111
  updateRegistrationFlowBody: body
@@ -5050,7 +5134,7 @@ async function onSubmitRegistration({ config, flow }, {
5050
5134
  );
5051
5135
  }
5052
5136
  function OryForm({ children }) {
5053
- var _a2;
5137
+ var _a3;
5054
5138
  const { FormContainer } = useComponents();
5055
5139
  const flowContainer = useOryFlow();
5056
5140
  const methods = useForm({
@@ -5141,7 +5225,7 @@ function OryForm({ children }) {
5141
5225
  }
5142
5226
  return false;
5143
5227
  }).length > 0;
5144
- if (!hasMethods && ((_a2 = flowContainer.flow.ui.messages) != null ? _a2 : []).length === 0) {
5228
+ if (!hasMethods && ((_a3 = flowContainer.flow.ui.messages) != null ? _a3 : []).length === 0) {
5145
5229
  return intl.formatMessage({
5146
5230
  id: `identities.messages.${5000002}`,
5147
5231
  defaultMessage: "No authentication methods are available for this request. Please contact the site or app owner."
@@ -5152,7 +5236,7 @@ function OryForm({ children }) {
5152
5236
  {
5153
5237
  action: flowContainer.flow.ui.action,
5154
5238
  method: flowContainer.flow.ui.method,
5155
- onSubmit: methods.handleSubmit(onSubmit),
5239
+ onSubmit: () => void methods.handleSubmit(onSubmit),
5156
5240
  children: children != null ? children : /* @__PURE__ */ jsxs(Fragment, { children: [
5157
5241
  /* @__PURE__ */ jsx(OryFormSocialButtons, {}),
5158
5242
  /* @__PURE__ */ jsx(
@@ -5216,7 +5300,7 @@ function OryCardContent({ children }) {
5216
5300
  ] })
5217
5301
  ] });
5218
5302
  }
5219
- function OryCardFooter({}) {
5303
+ function OryCardFooter() {
5220
5304
  const { CardFooter } = useComponents();
5221
5305
  return /* @__PURE__ */ jsx(CardFooter, {});
5222
5306
  }
@@ -6827,7 +6911,7 @@ var IntlProvider3 = ({
6827
6911
  children,
6828
6912
  ...props
6829
6913
  }) => {
6830
- var _a2, _b;
6914
+ var _a3, _b;
6831
6915
  const intlCtx = useContext(Context);
6832
6916
  if (intlCtx) {
6833
6917
  return children;
@@ -6841,7 +6925,7 @@ var IntlProvider3 = ({
6841
6925
  defaultLocale: props.defaultLocale,
6842
6926
  messages: props.customTranslations[props.locale]
6843
6927
  } : {
6844
- locale: (_a2 = props.locale) != null ? _a2 : "en",
6928
+ locale: (_a3 = props.locale) != null ? _a3 : "en",
6845
6929
  defaultLocale: (_b = props.defaultLocale) != null ? _b : "en",
6846
6930
  messages: translation
6847
6931
  };