@stytch/vanilla-js 2.0.3 → 2.0.4

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/b2b/index.js CHANGED
@@ -659,10 +659,10 @@ var $ = ["[Stytch]"],
659
659
  return (e = console).error.apply(e, $.concat(n));
660
660
  },
661
661
  q = "\nYou can find your public token at https://stytch.com/dashboard/api-keys.",
662
- W = function W(e) {
662
+ K = function K(e) {
663
663
  return e.includes("public-token-test");
664
664
  },
665
- K = function K(e) {
665
+ W = function W(e) {
666
666
  var n = {
667
667
  isObject: function isObject(t, o) {
668
668
  var i = "object" === r(o) && !Array.isArray(o) && null !== o;
@@ -817,17 +817,17 @@ var Y = Promise.resolve({
817
817
  pkceRequiredForEmailMagicLinks: !1
818
818
  }),
819
819
  J = function () {
820
- function e(t, n, r) {
821
- var i = this,
822
- a = arguments.length > 3 && void 0 !== arguments[3] ? arguments[3] : Y;
823
- s(this, e), this._networkClient = t, this._subscriptionService = n, this._pkceManager = r, this._config = a, this.email = {
820
+ function e(t, n, r, i) {
821
+ var a = this,
822
+ l = arguments.length > 4 && void 0 !== arguments[4] ? arguments[4] : Y;
823
+ s(this, e), this._networkClient = t, this._subscriptionService = n, this._pkceManager = r, this._passwordResetPKCEManager = i, this._config = l, this.email = {
824
824
  loginOrSignup: function loginOrSignup(e) {
825
- return v(i, void 0, void 0, o().mark(function t() {
825
+ return v(a, void 0, void 0, o().mark(function t() {
826
826
  var n, r;
827
827
  return o().wrap(function (t) {
828
828
  for (;;) switch (t.prev = t.next) {
829
829
  case 0:
830
- return K("stytch.magicLinks.email.loginOrSignup").isString("email", e.email_address).isString("organization_id", e.organization_id).isOptionalString("login_redirect_url", e.login_redirect_url).isOptionalString("login_template_id", e.login_template_id).isOptionalString("signup_redirect_url", e.signup_redirect_url).isOptionalString("signup_template_id", e.signup_template_id).isOptionalString("locale", e.locale), t.next = 3, this.getCodeChallenge();
830
+ return W("stytch.magicLinks.email.loginOrSignup").isString("email", e.email_address).isString("organization_id", e.organization_id).isOptionalString("login_redirect_url", e.login_redirect_url).isOptionalString("login_template_id", e.login_template_id).isOptionalString("signup_redirect_url", e.signup_redirect_url).isOptionalString("signup_template_id", e.signup_template_id).isOptionalString("locale", e.locale), t.next = 3, this.getCodeChallenge();
831
831
  case 3:
832
832
  return n = t.sent, r = Object.assign(Object.assign({}, e), {
833
833
  pkce_code_challenge: n
@@ -846,12 +846,12 @@ var Y = Promise.resolve({
846
846
  },
847
847
  discovery: {
848
848
  send: function send(e) {
849
- return v(i, void 0, void 0, o().mark(function t() {
849
+ return v(a, void 0, void 0, o().mark(function t() {
850
850
  var n, r;
851
851
  return o().wrap(function (t) {
852
852
  for (;;) switch (t.prev = t.next) {
853
853
  case 0:
854
- return K("stytch.magicLinks.email.discovery.send").isString("email_address", e.email_address).isOptionalString("discovery_redirect_url", e.discovery_redirect_url).isOptionalString("login_template_id", e.login_template_id).isOptionalString("locale", e.locale), t.next = 3, this.getCodeChallenge();
854
+ return W("stytch.magicLinks.email.discovery.send").isString("email_address", e.email_address).isOptionalString("discovery_redirect_url", e.discovery_redirect_url).isOptionalString("login_template_id", e.login_template_id).isOptionalString("locale", e.locale), t.next = 3, this.getCodeChallenge();
855
855
  case 3:
856
856
  return n = t.sent, r = Object.assign(Object.assign({}, e), {
857
857
  pkce_code_challenge: n
@@ -870,50 +870,67 @@ var Y = Promise.resolve({
870
870
  }
871
871
  }
872
872
  }, this.authenticate = function (e) {
873
- return v(i, void 0, void 0, o().mark(function t() {
874
- var n, r, i;
873
+ return v(a, void 0, void 0, o().mark(function t() {
874
+ var n, r;
875
875
  return o().wrap(function (t) {
876
876
  for (;;) switch (t.prev = t.next) {
877
877
  case 0:
878
- return K("stytch.magicLinks.authenticate").isString("magic_links_token", e.magic_links_token).isNumber("session_duration_minutes", e.session_duration_minutes).isOptionalString("locale", e.locale), t.next = 3, this._pkceManager.getPKPair();
878
+ return W("stytch.magicLinks.authenticate").isString("magic_links_token", e.magic_links_token).isNumber("session_duration_minutes", e.session_duration_minutes).isOptionalString("locale", e.locale), t.next = 3, this._passwordResetPKCEManager.getPKPair();
879
879
  case 3:
880
- return n = t.sent, r = Object.assign({
881
- pkce_code_verifier: null == n ? void 0 : n.code_verifier
882
- }, e), t.next = 7, this._networkClient.fetchSDK({
883
- url: "/b2b/magic_links/authenticate",
884
- body: r,
885
- errorMessage: "Failed to authenticate token",
886
- method: "POST"
887
- });
888
- case 7:
889
- return i = t.sent, this._pkceManager.clearPKPair(), i.member_session ? this._subscriptionService.updateStateAndTokens({
880
+ if (n = t.sent, r = null, !(null == n ? void 0 : n.code_verifier)) {
881
+ t.next = 19;
882
+ break;
883
+ }
884
+ return t.prev = 6, t.next = 9, this.handlePKCEForAuthenticate(this._passwordResetPKCEManager, e);
885
+ case 9:
886
+ r = t.sent, t.next = 19;
887
+ break;
888
+ case 12:
889
+ if (t.prev = 12, t.t0 = t["catch"](6), !t.t0.message.includes("pkce")) {
890
+ t.next = 18;
891
+ break;
892
+ }
893
+ console.log("Authenticate with passwords pkce namespace failed. Falling back to authenticate with magic_links namespace."), t.next = 19;
894
+ break;
895
+ case 18:
896
+ throw t.t0;
897
+ case 19:
898
+ if (r) {
899
+ t.next = 23;
900
+ break;
901
+ }
902
+ return t.next = 22, this.handlePKCEForAuthenticate(this._pkceManager, e);
903
+ case 22:
904
+ r = t.sent;
905
+ case 23:
906
+ return r.member_session ? this._subscriptionService.updateStateAndTokens({
890
907
  state: {
891
- session: i.member_session,
892
- member: i.member
908
+ session: r.member_session,
909
+ member: r.member
893
910
  },
894
- session_token: i.session_token,
895
- session_jwt: i.session_jwt,
911
+ session_token: r.session_token,
912
+ session_jwt: r.session_jwt,
896
913
  intermediate_session_token: null
897
914
  }) : this._subscriptionService.updateStateAndTokens({
898
915
  state: null,
899
916
  session_token: null,
900
917
  session_jwt: null,
901
- intermediate_session_token: i.intermediate_session_token
902
- }), t.abrupt("return", i);
903
- case 11:
918
+ intermediate_session_token: r.intermediate_session_token
919
+ }), t.abrupt("return", r);
920
+ case 25:
904
921
  case "end":
905
922
  return t.stop();
906
923
  }
907
- }, t, this);
924
+ }, t, this, [[6, 12]]);
908
925
  }));
909
926
  }, this.discovery = {
910
927
  authenticate: function authenticate(e) {
911
- return v(i, void 0, void 0, o().mark(function t() {
928
+ return v(a, void 0, void 0, o().mark(function t() {
912
929
  var n, r, i;
913
930
  return o().wrap(function (t) {
914
931
  for (;;) switch (t.prev = t.next) {
915
932
  case 0:
916
- return K("stytch.magicLinks.discovery.authenticate").isString("discovery_magic_links_token", e.discovery_magic_links_token), t.next = 3, this._pkceManager.getPKPair();
933
+ return W("stytch.magicLinks.discovery.authenticate").isString("discovery_magic_links_token", e.discovery_magic_links_token), t.next = 3, this._pkceManager.getPKPair();
917
934
  case 3:
918
935
  return n = t.sent, r = Object.assign({
919
936
  pkce_code_verifier: null == n ? void 0 : n.code_verifier
@@ -973,6 +990,33 @@ var Y = Promise.resolve({
973
990
  }, e, this);
974
991
  }));
975
992
  }
993
+ }, {
994
+ key: "handlePKCEForAuthenticate",
995
+ value: function value(e, t) {
996
+ return v(this, void 0, void 0, o().mark(function n() {
997
+ var r, i, a;
998
+ return o().wrap(function (n) {
999
+ for (;;) switch (n.prev = n.next) {
1000
+ case 0:
1001
+ return n.next = 2, e.getPKPair();
1002
+ case 2:
1003
+ return r = n.sent, i = Object.assign({
1004
+ pkce_code_verifier: null == r ? void 0 : r.code_verifier
1005
+ }, t), n.next = 6, this._networkClient.fetchSDK({
1006
+ url: "/b2b/magic_links/authenticate",
1007
+ body: i,
1008
+ errorMessage: "Failed to authenticate token",
1009
+ method: "POST"
1010
+ });
1011
+ case 6:
1012
+ return a = n.sent, e.clearPKPair(), n.abrupt("return", a);
1013
+ case 9:
1014
+ case "end":
1015
+ return n.stop();
1016
+ }
1017
+ }, n, this);
1018
+ }));
1019
+ }
976
1020
  }]), e;
977
1021
  }(),
978
1022
  Z = a(function e(t, n) {
@@ -1009,7 +1053,7 @@ var Y = Promise.resolve({
1009
1053
  return o().wrap(function (t) {
1010
1054
  for (;;) switch (t.prev = t.next) {
1011
1055
  case 0:
1012
- return K("stytch.member.update").isOptionalString("name", e.name).isOptionalObject("untrusted_metadata", e.untrusted_metadata).isOptionalBoolean("mfa_enrolled", e.mfa_enrolled).isOptionalString("mfa_phone_number", e.mfa_phone_number), t.next = 3, this._networkClient.fetchSDK({
1056
+ return W("stytch.member.update").isOptionalString("name", e.name).isOptionalObject("untrusted_metadata", e.untrusted_metadata).isOptionalBoolean("mfa_enrolled", e.mfa_enrolled).isOptionalString("mfa_phone_number", e.mfa_phone_number), t.next = 3, this._networkClient.fetchSDK({
1013
1057
  url: "/b2b/organizations/members/update",
1014
1058
  body: e,
1015
1059
  errorMessage: "Failed to update member.",
@@ -1056,7 +1100,7 @@ var Y = Promise.resolve({
1056
1100
  return o().wrap(function (t) {
1057
1101
  for (;;) switch (t.prev = t.next) {
1058
1102
  case 0:
1059
- return K("stytch.sso.authenticate").isString("sso_token", e.sso_token).isNumber("session_duration_minutes", e.session_duration_minutes).isOptionalString("locale", e.locale), t.next = 3, this._pkceManager.getPKPair();
1103
+ return W("stytch.sso.authenticate").isString("sso_token", e.sso_token).isNumber("session_duration_minutes", e.session_duration_minutes).isOptionalString("locale", e.locale), t.next = 3, this._pkceManager.getPKPair();
1060
1104
  case 3:
1061
1105
  return (n = t.sent) || H("No code verifier found in local storage for SSO flow.\nConsider using stytch.sso.start() to add PKCE to your SSO flows for added security.\nSee https://stytch.com/docs/oauth#guides_pkce for more information."), t.next = 7, this._networkClient.fetchSDK({
1062
1106
  url: "/b2b/sso/authenticate",
@@ -1095,7 +1139,7 @@ var Y = Promise.resolve({
1095
1139
  return o().wrap(function (e) {
1096
1140
  for (;;) switch (e.prev = e.next) {
1097
1141
  case 0:
1098
- if (!W(this._config.publicToken)) {
1142
+ if (!K(this._config.publicToken)) {
1099
1143
  e.next = 2;
1100
1144
  break;
1101
1145
  }
@@ -1178,7 +1222,7 @@ var Y = Promise.resolve({
1178
1222
  return o().wrap(function (t) {
1179
1223
  for (;;) switch (t.prev = t.next) {
1180
1224
  case 0:
1181
- return K("stytch.oauth.discovery.authenticate").isString("discovery_oauth_token", e.discovery_oauth_token), t.next = 3, this._pkceManager.getPKPair();
1225
+ return W("stytch.oauth.discovery.authenticate").isString("discovery_oauth_token", e.discovery_oauth_token), t.next = 3, this._pkceManager.getPKPair();
1182
1226
  case 3:
1183
1227
  return n = t.sent, r = Object.assign({
1184
1228
  pkce_code_verifier: null == n ? void 0 : n.code_verifier
@@ -1222,7 +1266,7 @@ var Y = Promise.resolve({
1222
1266
  return o().wrap(function (t) {
1223
1267
  for (;;) switch (t.prev = t.next) {
1224
1268
  case 0:
1225
- return K("stytch.oauth.authenticate").isString("oauth_token", e.oauth_token).isNumber("session_duration_minutes", e.session_duration_minutes).isOptionalString("locale", e.locale), t.next = 3, this._pkceManager.getPKPair();
1269
+ return W("stytch.oauth.authenticate").isString("oauth_token", e.oauth_token).isNumber("session_duration_minutes", e.session_duration_minutes).isOptionalString("locale", e.locale), t.next = 3, this._pkceManager.getPKPair();
1226
1270
  case 3:
1227
1271
  return (n = t.sent) || H("No code verifier found in local storage for OAuth flow.\nConsider using stytch.oauth.$provider.start() to add PKCE to your OAuth flows for added security.\nSee https://stytch.com/docs/oauth#guides_pkce for more information."), t.next = 7, this._networkClient.fetchSDK({
1228
1272
  url: "/b2b/oauth/authenticate",
@@ -1270,7 +1314,7 @@ var Y = Promise.resolve({
1270
1314
  }
1271
1315
  return e.abrupt("return", "https://".concat(n));
1272
1316
  case 6:
1273
- if (!W(this._config.publicToken)) {
1317
+ if (!K(this._config.publicToken)) {
1274
1318
  e.next = 8;
1275
1319
  break;
1276
1320
  }
@@ -1303,7 +1347,7 @@ var Y = Promise.resolve({
1303
1347
  case 2:
1304
1348
  return n = t.sent, c = n.pkceRequiredForOAuth, t.next = 6, this.getBaseApiUrl();
1305
1349
  case 6:
1306
- if (u = t.sent, (d = new URL("".concat(u, "/v1/b2b/public/oauth/").concat(e, "/start"))).searchParams.set("public_token", this._config.publicToken), r && "" != r && d.searchParams.set("organization_id", r), i && "" != i && d.searchParams.set("slug", i), l && (K("startOAuthFlow").isStringArray("custom_scopes", l), d.searchParams.set("custom_scopes", l.join(" "))), !c) {
1350
+ if (u = t.sent, (d = new URL("".concat(u, "/v1/b2b/public/oauth/").concat(e, "/start"))).searchParams.set("public_token", this._config.publicToken), r && "" != r && d.searchParams.set("organization_id", r), i && "" != i && d.searchParams.set("slug", i), l && (W("startOAuthFlow").isStringArray("custom_scopes", l), d.searchParams.set("custom_scopes", l.join(" "))), !c) {
1307
1351
  t.next = 19;
1308
1352
  break;
1309
1353
  }
@@ -1339,7 +1383,7 @@ var Y = Promise.resolve({
1339
1383
  case 2:
1340
1384
  return n = t.sent, a = n.pkceRequiredForOAuth, t.next = 6, this.getBaseApiUrl();
1341
1385
  case 6:
1342
- if (s = t.sent, (l = new URL("".concat(s, "/v1/b2b/public/oauth/").concat(e, "/discovery/start"))).searchParams.set("public_token", this._config.publicToken), i && (K("startOAuthFlow").isStringArray("custom_scopes", i), l.searchParams.set("custom_scopes", i.join(" "))), !a) {
1386
+ if (s = t.sent, (l = new URL("".concat(s, "/v1/b2b/public/oauth/").concat(e, "/discovery/start"))).searchParams.set("public_token", this._config.publicToken), i && (W("startOAuthFlow").isStringArray("custom_scopes", i), l.searchParams.set("custom_scopes", i.join(" "))), !a) {
1343
1387
  t.next = 17;
1344
1388
  break;
1345
1389
  }
@@ -1430,7 +1474,7 @@ var Y = Promise.resolve({
1430
1474
  return o().wrap(function (t) {
1431
1475
  for (;;) switch (t.prev = t.next) {
1432
1476
  case 0:
1433
- return K("stytch.sessions.exchange").isString("organization_id", e.organization_id).isNumber("session_duration_minutes", e.session_duration_minutes).isOptionalString("locale", e.locale), t.prev = 1, t.next = 4, this._networkClient.fetchSDK({
1477
+ return W("stytch.sessions.exchange").isString("organization_id", e.organization_id).isNumber("session_duration_minutes", e.session_duration_minutes).isOptionalString("locale", e.locale), t.prev = 1, t.next = 4, this._networkClient.fetchSDK({
1434
1478
  url: "/b2b/sessions/exchange",
1435
1479
  body: e,
1436
1480
  errorMessage: "Failed to exchange session",
@@ -1505,7 +1549,7 @@ var Y = Promise.resolve({
1505
1549
  return o().wrap(function (t) {
1506
1550
  for (;;) switch (t.prev = t.next) {
1507
1551
  case 0:
1508
- return K("stytch.discovery.organizations.create").isNumber("session_duration_minutes", e.session_duration_minutes).isOptionalString("organization_name", e.organization_name).isOptionalString("organization_slug", e.organization_slug).isOptionalString("organization_logo_url", e.organization_logo_url).isOptionalString("sso_jit_provisioning", e.sso_jit_provisioning).isOptionalStringArray("email_allowed_domains", e.email_allowed_domains).isOptionalString("email_invites", e.email_invites).isOptionalString("auth_methods", e.auth_methods).isOptionalStringArray("allowed_auth_methods", e.allowed_auth_methods).isOptionalString("mfa_policy", e.mfa_policy), t.t0 = Object, t.t1 = Object.assign({}, e), t.next = 5, this._subscriptionService.getIntermediateSessionToken();
1552
+ return W("stytch.discovery.organizations.create").isNumber("session_duration_minutes", e.session_duration_minutes).isOptionalString("organization_name", e.organization_name).isOptionalString("organization_slug", e.organization_slug).isOptionalString("organization_logo_url", e.organization_logo_url).isOptionalString("sso_jit_provisioning", e.sso_jit_provisioning).isOptionalStringArray("email_allowed_domains", e.email_allowed_domains).isOptionalString("email_invites", e.email_invites).isOptionalString("auth_methods", e.auth_methods).isOptionalStringArray("allowed_auth_methods", e.allowed_auth_methods).isOptionalString("mfa_policy", e.mfa_policy), t.t0 = Object, t.t1 = Object.assign({}, e), t.next = 5, this._subscriptionService.getIntermediateSessionToken();
1509
1553
  case 5:
1510
1554
  if (t.t2 = t.sent, t.t2) {
1511
1555
  t.next = 8;
@@ -1550,7 +1594,7 @@ var Y = Promise.resolve({
1550
1594
  return o().wrap(function (t) {
1551
1595
  for (;;) switch (t.prev = t.next) {
1552
1596
  case 0:
1553
- return K("stytch.discovery.intermediateSessions.exchange").isString("organization_id", e.organization_id).isNumber("session_duration_minutes", e.session_duration_minutes).isOptionalString("locale", e.locale), t.t0 = Object, t.t1 = Object.assign({}, e), t.next = 5, this._subscriptionService.getIntermediateSessionToken();
1597
+ return W("stytch.discovery.intermediateSessions.exchange").isString("organization_id", e.organization_id).isNumber("session_duration_minutes", e.session_duration_minutes).isOptionalString("locale", e.locale), t.t0 = Object, t.t1 = Object.assign({}, e), t.next = 5, this._subscriptionService.getIntermediateSessionToken();
1554
1598
  case 5:
1555
1599
  if (t.t2 = t.sent, t.t2) {
1556
1600
  t.next = 8;
@@ -1602,7 +1646,7 @@ var oe,
1602
1646
  return o().wrap(function (t) {
1603
1647
  for (;;) switch (t.prev = t.next) {
1604
1648
  case 0:
1605
- return K("stytch.otps.sms.send").isString("organization_id", e.organization_id).isString("member_id", e.member_id).isOptionalString("mfa_phone_number", e.mfa_phone_number).isOptionalString("locale", e.locale), t.abrupt("return", this._networkClient.fetchSDK({
1649
+ return W("stytch.otps.sms.send").isString("organization_id", e.organization_id).isString("member_id", e.member_id).isOptionalString("mfa_phone_number", e.mfa_phone_number).isOptionalString("locale", e.locale), t.abrupt("return", this._networkClient.fetchSDK({
1606
1650
  url: "/b2b/otps/sms/send",
1607
1651
  body: e,
1608
1652
  errorMessage: "Failed to send one time passcode",
@@ -1621,7 +1665,7 @@ var oe,
1621
1665
  return o().wrap(function (t) {
1622
1666
  for (;;) switch (t.prev = t.next) {
1623
1667
  case 0:
1624
- return K("stytch.otps.sms.authenticate").isString("organization_id", e.organization_id).isString("member_id", e.member_id).isString("code", e.code).isOptionalString("set_mfa_enrollment", e.set_mfa_enrollment), t.t0 = Object, t.t1 = Object.assign({}, e), t.next = 5, this._subscriptionService.getIntermediateSessionToken();
1668
+ return W("stytch.otps.sms.authenticate").isString("organization_id", e.organization_id).isString("member_id", e.member_id).isString("code", e.code).isOptionalString("set_mfa_enrollment", e.set_mfa_enrollment), t.t0 = Object, t.t1 = Object.assign({}, e), t.next = 5, this._subscriptionService.getIntermediateSessionToken();
1625
1669
  case 5:
1626
1670
  if (t.t2 = t.sent, t.t2) {
1627
1671
  t.next = 8;
@@ -1907,7 +1951,7 @@ var he = /*#__PURE__*/function () {
1907
1951
  },
1908
1952
  sdk: {
1909
1953
  identifier: "Stytch.js Javascript SDK",
1910
- version: "2.0.3"
1954
+ version: "2.0.4"
1911
1955
  }
1912
1956
  });
1913
1957
  }
@@ -2100,7 +2144,7 @@ var ye = /*#__PURE__*/function () {
2100
2144
  removeItem: function removeItem(e) {
2101
2145
  return sessionStorage.removeItem(ve(_this.publicToken, e));
2102
2146
  }
2103
- }, this.publicToken = e, this.state = null, this.subscriptions = {}, (null == t ? void 0 : t.cookieOptions) ? (K("SubscriptionDataLayer").isOptionalString("cookieOptions.opaqueTokenCookieName", t.cookieOptions.opaqueTokenCookieName).isOptionalString("cookieOptions.jwtCookieName", t.cookieOptions.jwtCookieName).isOptionalString("cookieOptions.istCookieName", t.cookieOptions.istCookieName).isOptionalString("cookieOptions.path", t.cookieOptions.path), this._jwtCookieName = t.cookieOptions.jwtCookieName || null, this._opaqueTokenCookieName = t.cookieOptions.opaqueTokenCookieName || null, this._cookiePath = t.cookieOptions.path || null, this._cookieAvailableToSubdomains = t.cookieOptions.availableToSubdomains || !1, this._istCookieName = t.cookieOptions.istCookieName || null) : (this._opaqueTokenCookieName = null, this._jwtCookieName = null, this._cookiePath = null, this._cookieAvailableToSubdomains = !1, this._istCookieName = null);
2147
+ }, this.publicToken = e, this.state = null, this.subscriptions = {}, (null == t ? void 0 : t.cookieOptions) ? (W("SubscriptionDataLayer").isOptionalString("cookieOptions.opaqueTokenCookieName", t.cookieOptions.opaqueTokenCookieName).isOptionalString("cookieOptions.jwtCookieName", t.cookieOptions.jwtCookieName).isOptionalString("cookieOptions.istCookieName", t.cookieOptions.istCookieName).isOptionalString("cookieOptions.path", t.cookieOptions.path), this._jwtCookieName = t.cookieOptions.jwtCookieName || null, this._opaqueTokenCookieName = t.cookieOptions.opaqueTokenCookieName || null, this._cookiePath = t.cookieOptions.path || null, this._cookieAvailableToSubdomains = t.cookieOptions.availableToSubdomains || !1, this._istCookieName = t.cookieOptions.istCookieName || null) : (this._opaqueTokenCookieName = null, this._jwtCookieName = null, this._cookiePath = null, this._cookieAvailableToSubdomains = !1, this._istCookieName = null);
2104
2148
  var n = localStorage.getItem(ve(this.publicToken));
2105
2149
  if (!n) return this.removeSessionCookie(), void this.removeISTCookie();
2106
2150
  var r;
@@ -3056,9 +3100,9 @@ var qe = function qe(e) {
3056
3100
  return window.grecaptcha.enterprise;
3057
3101
  });
3058
3102
  };
3059
- var We = /*#__PURE__*/_createClass(function We(e) {
3103
+ var Ke = /*#__PURE__*/_createClass(function Ke(e) {
3060
3104
  var _this7 = this;
3061
- _classCallCheck(this, We);
3105
+ _classCallCheck(this, Ke);
3062
3106
  this.bootstrapPromise = e, this.executeRecaptcha = function () {
3063
3107
  return pe(_this7, void 0, void 0, /*#__PURE__*/_regeneratorRuntime().mark(function _callee12() {
3064
3108
  var _yield$this$state, e, t, n;
@@ -3126,12 +3170,12 @@ var We = /*#__PURE__*/_createClass(function We(e) {
3126
3170
  }));
3127
3171
  });
3128
3172
  });
3129
- var Ke = /*#__PURE__*/function () {
3130
- function Ke(e, t) {
3131
- _classCallCheck(this, Ke);
3173
+ var We = /*#__PURE__*/function () {
3174
+ function We(e, t) {
3175
+ _classCallCheck(this, We);
3132
3176
  this._networkClient = e, this._subscriptionService = t;
3133
3177
  }
3134
- _createClass(Ke, [{
3178
+ _createClass(We, [{
3135
3179
  key: "resetBySession",
3136
3180
  value: function resetBySession(e) {
3137
3181
  return pe(this, void 0, void 0, /*#__PURE__*/_regeneratorRuntime().mark(function _callee14() {
@@ -3160,7 +3204,7 @@ var Ke = /*#__PURE__*/function () {
3160
3204
  }));
3161
3205
  }
3162
3206
  }]);
3163
- return Ke;
3207
+ return We;
3164
3208
  }();
3165
3209
  var Ge = /*#__PURE__*/_createClass(function Ge(e, t) {
3166
3210
  var _this8 = this;
@@ -3184,6 +3228,7 @@ var Ge = /*#__PURE__*/_createClass(function Ge(e, t) {
3184
3228
  };
3185
3229
  }(o);
3186
3230
  this._dataLayer = _e(e, o), this._subscriptionService = new Se(e, this._dataLayer);
3231
+ var a = new xe(this._dataLayer, "passwords");
3187
3232
  this._networkClient = new he(e, this._dataLayer, i.endpoints.sdkBackendURL, function () {
3188
3233
  var e, t, n, r;
3189
3234
  return {
@@ -3191,19 +3236,19 @@ var Ge = /*#__PURE__*/_createClass(function Ge(e, t) {
3191
3236
  stytch_member_session_id: null === (r = null === (n = _this8._dataLayer.state) || void 0 === n ? void 0 : n.session) || void 0 === r ? void 0 : r.member_session_id
3192
3237
  };
3193
3238
  });
3194
- var a = new Te(e, this._networkClient, this._dataLayer),
3195
- s = new We(a.getAsync()),
3196
- l = new Ke(this._networkClient, this._subscriptionService);
3197
- this.organization = new ee(this._networkClient), this.member = new Z(this._networkClient, this._subscriptionService), this.session = new ne(this._networkClient, this._subscriptionService), this.magicLinks = new J(this._networkClient, this._subscriptionService, new xe(this._dataLayer, "magic_links"), a.getAsync()), this.oauth = new te(this._networkClient, this._subscriptionService, new xe(this._dataLayer, "oauth"), a.getAsync(), {
3239
+ var s = new Te(e, this._networkClient, this._dataLayer),
3240
+ l = new Ke(s.getAsync()),
3241
+ c = new We(this._networkClient, this._subscriptionService);
3242
+ this.organization = new ee(this._networkClient), this.member = new Z(this._networkClient, this._subscriptionService), this.session = new ne(this._networkClient, this._subscriptionService), this.magicLinks = new J(this._networkClient, this._subscriptionService, new xe(this._dataLayer, "magic_links"), a, s.getAsync()), this.oauth = new te(this._networkClient, this._subscriptionService, new xe(this._dataLayer, "oauth"), s.getAsync(), {
3198
3243
  publicToken: e,
3199
3244
  testAPIURL: i.endpoints.testAPIURL,
3200
3245
  liveAPIURL: i.endpoints.liveAPIURL
3201
- }), this.sso = new X(this._networkClient, this._subscriptionService, new xe(this._dataLayer, "sso"), a.getAsync(), {
3246
+ }), this.sso = new X(this._networkClient, this._subscriptionService, new xe(this._dataLayer, "sso"), s.getAsync(), {
3202
3247
  publicToken: e,
3203
3248
  testAPIURL: i.endpoints.testAPIURL,
3204
3249
  liveAPIURL: i.endpoints.liveAPIURL
3205
- }), this.discovery = new re(this._networkClient, this._subscriptionService), this.passwords = new He(this._networkClient, this._subscriptionService, new xe(this._dataLayer, "passwords"), a.getAsync(), s.executeRecaptcha), this.otps = new ie(this._networkClient, this._subscriptionService), this._sessionManager = new le(this._subscriptionService, this.session);
3206
- var c = new Pe(this._networkClient);
3250
+ }), this.discovery = new re(this._networkClient, this._subscriptionService), this.passwords = new He(this._networkClient, this._subscriptionService, a, s.getAsync(), l.executeRecaptcha), this.otps = new ie(this._networkClient, this._subscriptionService), this._sessionManager = new le(this._subscriptionService, this.session);
3251
+ var u = new Pe(this._networkClient);
3207
3252
  this._dataLayer.readSessionCookie().session_token && this._sessionManager.performBackgroundRefresh(), this._networkClient.logEvent({
3208
3253
  name: "b2b_sdk_instance_instantiated",
3209
3254
  details: {
@@ -3215,10 +3260,10 @@ var Ge = /*#__PURE__*/_createClass(function Ge(e, t) {
3215
3260
  (function (e, t) {
3216
3261
  Object.assign(e, _defineProperty({}, ce, t));
3217
3262
  })(this, {
3218
- bootstrap: a,
3263
+ bootstrap: s,
3219
3264
  publicToken: e,
3220
- searchManager: c,
3221
- passwordResetClient: l,
3265
+ searchManager: u,
3266
+ passwordResetClient: c,
3222
3267
  dataLayer: this._dataLayer,
3223
3268
  networkClient: this._networkClient
3224
3269
  });
@@ -3546,14 +3591,14 @@ var It = Ye.exports,
3546
3591
  Ht = 60120,
3547
3592
  Vt = 60115,
3548
3593
  qt = 60116,
3549
- Wt = 60121,
3550
- Kt = 60122,
3594
+ Kt = 60121,
3595
+ Wt = 60122,
3551
3596
  Gt = 60117,
3552
3597
  Yt = 60129,
3553
3598
  Jt = 60131;
3554
3599
  if ("function" == typeof Symbol && Symbol["for"]) {
3555
3600
  var Zt = Symbol["for"];
3556
- Mt = Zt("react.element"), zt = Zt("react.portal"), Nt = Zt("react.fragment"), Dt = Zt("react.strict_mode"), jt = Zt("react.profiler"), Ft = Zt("react.provider"), Ut = Zt("react.context"), Qt = Zt("react.forward_ref"), $t = Zt("react.suspense"), Ht = Zt("react.suspense_list"), Vt = Zt("react.memo"), qt = Zt("react.lazy"), Wt = Zt("react.block"), Kt = Zt("react.server.block"), Gt = Zt("react.fundamental"), Yt = Zt("react.debug_trace_mode"), Jt = Zt("react.legacy_hidden");
3601
+ Mt = Zt("react.element"), zt = Zt("react.portal"), Nt = Zt("react.fragment"), Dt = Zt("react.strict_mode"), jt = Zt("react.profiler"), Ft = Zt("react.provider"), Ut = Zt("react.context"), Qt = Zt("react.forward_ref"), $t = Zt("react.suspense"), Ht = Zt("react.suspense_list"), Vt = Zt("react.memo"), qt = Zt("react.lazy"), Kt = Zt("react.block"), Wt = Zt("react.server.block"), Gt = Zt("react.fundamental"), Yt = Zt("react.debug_trace_mode"), Jt = Zt("react.legacy_hidden");
3557
3602
  }
3558
3603
  function Xt(e) {
3559
3604
  if ("object" == _typeof(e) && null !== e) {
@@ -3621,7 +3666,7 @@ Lt.ContextConsumer = Ut, Lt.ContextProvider = en, Lt.Element = tn, Lt.ForwardRef
3621
3666
  }, Lt.isSuspense = function (e) {
3622
3667
  return Xt(e) === $t;
3623
3668
  }, Lt.isValidElementType = function (e) {
3624
- return "string" == typeof e || "function" == typeof e || e === Nt || e === jt || e === Yt || e === Dt || e === $t || e === Ht || e === Jt || "object" == _typeof(e) && null !== e && (e.$$typeof === qt || e.$$typeof === Vt || e.$$typeof === Ft || e.$$typeof === Ut || e.$$typeof === Qt || e.$$typeof === Gt || e.$$typeof === Wt || e[0] === Kt);
3669
+ return "string" == typeof e || "function" == typeof e || e === Nt || e === jt || e === Yt || e === Dt || e === $t || e === Ht || e === Jt || "object" == _typeof(e) && null !== e && (e.$$typeof === qt || e.$$typeof === Vt || e.$$typeof === Ft || e.$$typeof === Ut || e.$$typeof === Qt || e.$$typeof === Gt || e.$$typeof === Kt || e[0] === Wt);
3625
3670
  }, Lt.typeOf = Xt, Rt.exports = Lt;
3626
3671
  var dn = function dn(e, t, n, r) {
3627
3672
  var o = n ? n.call(r, e, t) : void 0;
@@ -4234,8 +4279,8 @@ Hn[Fn.ForwardRef] = {
4234
4279
  propTypes: !0
4235
4280
  }, Hn[Fn.Memo] = $n;
4236
4281
  var qn = Object.defineProperty,
4237
- Wn = Object.getOwnPropertyNames,
4238
- Kn = Object.getOwnPropertySymbols,
4282
+ Kn = Object.getOwnPropertyNames,
4283
+ Wn = Object.getOwnPropertySymbols,
4239
4284
  Gn = Object.getOwnPropertyDescriptor,
4240
4285
  Yn = Object.getPrototypeOf,
4241
4286
  Jn = Object.prototype;
@@ -4245,8 +4290,8 @@ var Zn = function e(t, n, r) {
4245
4290
  var o = Yn(n);
4246
4291
  o && o !== Jn && e(t, o, r);
4247
4292
  }
4248
- var i = Wn(n);
4249
- Kn && (i = i.concat(Kn(n)));
4293
+ var i = Kn(n);
4294
+ Wn && (i = i.concat(Wn(n)));
4250
4295
  for (var a = Vn(t), s = Vn(n), l = 0; l < i.length; ++l) {
4251
4296
  var c = i[l];
4252
4297
  if (!(Qn[c] || r && r[c] || s && s[c] || a && a[c])) {
@@ -4667,13 +4712,13 @@ var Vr = function () {
4667
4712
  }, e;
4668
4713
  }(),
4669
4714
  qr = /([A-Z])/,
4670
- Wr = /([A-Z])/g,
4671
- Kr = /^ms-/,
4715
+ Kr = /([A-Z])/g,
4716
+ Wr = /^ms-/,
4672
4717
  Gr = function Gr(e) {
4673
4718
  return "-" + e.toLowerCase();
4674
4719
  };
4675
4720
  function Yr(e) {
4676
- return qr.test(e) ? e.replace(Wr, Gr).replace(Kr, "-ms-") : e;
4721
+ return qr.test(e) ? e.replace(Kr, Gr).replace(Wr, "-ms-") : e;
4677
4722
  }
4678
4723
  var Jr = function Jr(e) {
4679
4724
  return null == e || !1 === e || "" === e;
@@ -5219,8 +5264,8 @@ var Uo = ko.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,
5219
5264
  Ho = 60107,
5220
5265
  Vo = 60108,
5221
5266
  qo = 60114,
5222
- Wo = 60109,
5223
- Ko = 60110,
5267
+ Ko = 60109,
5268
+ Wo = 60110,
5224
5269
  Go = 60112,
5225
5270
  Yo = 60113,
5226
5271
  Jo = 60120,
@@ -5233,7 +5278,7 @@ var Uo = ko.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,
5233
5278
  oi = 60131;
5234
5279
  if ("function" == typeof Symbol && Symbol["for"]) {
5235
5280
  var ii = Symbol["for"];
5236
- Qo = ii("react.element"), $o = ii("react.portal"), Ho = ii("react.fragment"), Vo = ii("react.strict_mode"), qo = ii("react.profiler"), Wo = ii("react.provider"), Ko = ii("react.context"), Go = ii("react.forward_ref"), Yo = ii("react.suspense"), Jo = ii("react.suspense_list"), Zo = ii("react.memo"), Xo = ii("react.lazy"), ei = ii("react.block"), ii("react.scope"), ti = ii("react.opaque.id"), ni = ii("react.debug_trace_mode"), ri = ii("react.offscreen"), oi = ii("react.legacy_hidden");
5281
+ Qo = ii("react.element"), $o = ii("react.portal"), Ho = ii("react.fragment"), Vo = ii("react.strict_mode"), qo = ii("react.profiler"), Ko = ii("react.provider"), Wo = ii("react.context"), Go = ii("react.forward_ref"), Yo = ii("react.suspense"), Jo = ii("react.suspense_list"), Zo = ii("react.memo"), Xo = ii("react.lazy"), ei = ii("react.block"), ii("react.scope"), ti = ii("react.opaque.id"), ni = ii("react.debug_trace_mode"), ri = ii("react.offscreen"), oi = ii("react.legacy_hidden");
5237
5282
  }
5238
5283
  var ai,
5239
5284
  si = "function" == typeof Symbol && Symbol.iterator;
@@ -5344,9 +5389,9 @@ function pi(e) {
5344
5389
  return "SuspenseList";
5345
5390
  }
5346
5391
  if ("object" == _typeof(e)) switch (e.$$typeof) {
5347
- case Ko:
5348
- return (e.displayName || "Context") + ".Consumer";
5349
5392
  case Wo:
5393
+ return (e.displayName || "Context") + ".Consumer";
5394
+ case Ko:
5350
5395
  return (e._context.displayName || "Context") + ".Provider";
5351
5396
  case Go:
5352
5397
  var t = e.render;
@@ -5671,8 +5716,8 @@ function Hi(e) {
5671
5716
  }
5672
5717
  var Vi = null,
5673
5718
  qi = null,
5674
- Wi = null;
5675
- function Ki(e) {
5719
+ Ki = null;
5720
+ function Wi(e) {
5676
5721
  if (e = bc(e)) {
5677
5722
  if ("function" != typeof Vi) throw Error(Co(280));
5678
5723
  var t = e.stateNode;
@@ -5680,13 +5725,13 @@ function Ki(e) {
5680
5725
  }
5681
5726
  }
5682
5727
  function Gi(e) {
5683
- qi ? Wi ? Wi.push(e) : Wi = [e] : qi = e;
5728
+ qi ? Ki ? Ki.push(e) : Ki = [e] : qi = e;
5684
5729
  }
5685
5730
  function Yi() {
5686
5731
  if (qi) {
5687
5732
  var e = qi,
5688
- t = Wi;
5689
- if (Wi = qi = null, Ki(e), t) for (e = 0; e < t.length; e++) Ki(t[e]);
5733
+ t = Ki;
5734
+ if (Ki = qi = null, Wi(e), t) for (e = 0; e < t.length; e++) Wi(t[e]);
5690
5735
  }
5691
5736
  }
5692
5737
  function Ji(e, t) {
@@ -5700,7 +5745,7 @@ var ea = Ji,
5700
5745
  ta = !1,
5701
5746
  na = !1;
5702
5747
  function ra() {
5703
- null === qi && null === Wi || (Xi(), Yi());
5748
+ null === qi && null === Ki || (Xi(), Yi());
5704
5749
  }
5705
5750
  function oa(e, t) {
5706
5751
  var n = e.stateNode;
@@ -5991,12 +6036,12 @@ function Va(e) {
5991
6036
  }
5992
6037
  Bo && (Ha = document.createElement("div").style, "AnimationEvent" in window || (delete Qa.animationend.animation, delete Qa.animationiteration.animation, delete Qa.animationstart.animation), "TransitionEvent" in window || delete Qa.transitionend.transition);
5993
6038
  var qa = Va("animationend"),
5994
- Wa = Va("animationiteration"),
5995
- Ka = Va("animationstart"),
6039
+ Ka = Va("animationiteration"),
6040
+ Wa = Va("animationstart"),
5996
6041
  Ga = Va("transitionend"),
5997
6042
  Ya = new Map(),
5998
6043
  Ja = new Map(),
5999
- Za = ["abort", "abort", qa, "animationEnd", Wa, "animationIteration", Ka, "animationStart", "canplay", "canPlay", "canplaythrough", "canPlayThrough", "durationchange", "durationChange", "emptied", "emptied", "encrypted", "encrypted", "ended", "ended", "error", "error", "gotpointercapture", "gotPointerCapture", "load", "load", "loadeddata", "loadedData", "loadedmetadata", "loadedMetadata", "loadstart", "loadStart", "lostpointercapture", "lostPointerCapture", "playing", "playing", "progress", "progress", "seeking", "seeking", "stalled", "stalled", "suspend", "suspend", "timeupdate", "timeUpdate", Ga, "transitionEnd", "waiting", "waiting"];
6044
+ Za = ["abort", "abort", qa, "animationEnd", Ka, "animationIteration", Wa, "animationStart", "canplay", "canPlay", "canplaythrough", "canPlayThrough", "durationchange", "durationChange", "emptied", "emptied", "encrypted", "encrypted", "ended", "ended", "error", "error", "gotpointercapture", "gotPointerCapture", "load", "load", "loadeddata", "loadedData", "loadedmetadata", "loadedMetadata", "loadstart", "loadStart", "lostpointercapture", "lostPointerCapture", "playing", "playing", "progress", "progress", "seeking", "seeking", "stalled", "stalled", "suspend", "suspend", "timeupdate", "timeUpdate", Ga, "transitionEnd", "waiting", "waiting"];
6000
6045
  function Xa(e, t) {
6001
6046
  for (var n = 0; n < e.length; n += 2) {
6002
6047
  var r = e[n],
@@ -6334,8 +6379,8 @@ var qs = Eo({}, Bs, {
6334
6379
  return "keypress" === e.type ? ws(e) : "keydown" === e.type || "keyup" === e.type ? e.keyCode : 0;
6335
6380
  }
6336
6381
  }),
6337
- Ws = Ss(qs),
6338
- Ks = Ss(Eo({}, Rs, {
6382
+ Ks = Ss(qs),
6383
+ Ws = Ss(Eo({}, Rs, {
6339
6384
  pointerId: 0,
6340
6385
  width: 0,
6341
6386
  height: 0,
@@ -6595,14 +6640,14 @@ function ql(e, t) {
6595
6640
  }
6596
6641
  if (ua) throw e = da, ua = !1, da = null, e;
6597
6642
  }
6598
- function Wl(e, t) {
6643
+ function Kl(e, t) {
6599
6644
  var n = kc(t),
6600
6645
  r = e + "__bubble";
6601
6646
  n.has(r) || (Jl(t, e, 2, !1), n.add(r));
6602
6647
  }
6603
- var Kl = "_reactListening" + Math.random().toString(36).slice(2);
6648
+ var Wl = "_reactListening" + Math.random().toString(36).slice(2);
6604
6649
  function Gl(e) {
6605
- e[Kl] || (e[Kl] = !0, xo.forEach(function (t) {
6650
+ e[Wl] || (e[Wl] = !0, xo.forEach(function (t) {
6606
6651
  Hl.has(t) || Yl(t, !1, e, null), Yl(t, !0, e, null);
6607
6652
  }));
6608
6653
  }
@@ -6682,7 +6727,7 @@ function Zl(e, t, n, r, o) {
6682
6727
  if (0 === ws(n)) break e;
6683
6728
  case "keydown":
6684
6729
  case "keyup":
6685
- l = Ws;
6730
+ l = Ks;
6686
6731
  break;
6687
6732
  case "focusin":
6688
6733
  c = "focus", l = zs;
@@ -6723,8 +6768,8 @@ function Zl(e, t, n, r, o) {
6723
6768
  l = Gs;
6724
6769
  break;
6725
6770
  case qa:
6726
- case Wa:
6727
6771
  case Ka:
6772
+ case Wa:
6728
6773
  l = Ns;
6729
6774
  break;
6730
6775
  case Ga:
@@ -6749,7 +6794,7 @@ function Zl(e, t, n, r, o) {
6749
6794
  case "pointerout":
6750
6795
  case "pointerover":
6751
6796
  case "pointerup":
6752
- l = Ks;
6797
+ l = Ws;
6753
6798
  }
6754
6799
  var u = 0 != (4 & t),
6755
6800
  d = !u && "scroll" === e,
@@ -6768,7 +6813,7 @@ function Zl(e, t, n, r, o) {
6768
6813
  }
6769
6814
  if (0 == (7 & t)) {
6770
6815
  if (l = "mouseout" === e || "pointerout" === e, (!(s = "mouseover" === e || "pointerover" === e) || 0 != (16 & t) || !(c = n.relatedTarget || n.fromElement) || !Ac(c) && !c[vc]) && (l || s) && (s = o.window === o ? o : (s = o.ownerDocument) ? s.defaultView || s.parentWindow : window, l ? (l = r, null !== (c = (c = n.relatedTarget || n.toElement) ? Ac(c) : null) && (c !== (d = ha(c)) || 5 !== c.tag && 6 !== c.tag) && (c = null)) : (l = null, c = r), l !== c)) {
6771
- if (u = Ls, m = "onMouseLeave", f = "onMouseEnter", h = "mouse", "pointerout" !== e && "pointerover" !== e || (u = Ks, m = "onPointerLeave", f = "onPointerEnter", h = "pointer"), d = null == l ? s : _c(l), p = null == c ? s : _c(c), (s = new u(m, h + "leave", l, n, o)).target = d, s.relatedTarget = p, m = null, Ac(o) === r && ((u = new u(f, h + "enter", c, n, o)).target = p, u.relatedTarget = d, m = u), d = m, l && c) e: {
6816
+ if (u = Ls, m = "onMouseLeave", f = "onMouseEnter", h = "mouse", "pointerout" !== e && "pointerover" !== e || (u = Ws, m = "onPointerLeave", f = "onPointerEnter", h = "pointer"), d = null == l ? s : _c(l), p = null == c ? s : _c(c), (s = new u(m, h + "leave", l, n, o)).target = d, s.relatedTarget = p, m = null, Ac(o) === r && ((u = new u(f, h + "enter", c, n, o)).target = p, u.relatedTarget = d, m = u), d = m, l && c) e: {
6772
6817
  for (f = c, h = 0, p = u = l; p; p = tc(p)) h++;
6773
6818
  for (p = 0, m = f; m; m = tc(m)) p++;
6774
6819
  for (; 0 < h - p;) u = tc(u), h--;
@@ -7030,8 +7075,8 @@ var Fc = null,
7030
7075
  Hc = So.unstable_cancelCallback,
7031
7076
  Vc = So.unstable_shouldYield,
7032
7077
  qc = So.unstable_requestPaint,
7033
- Wc = So.unstable_now,
7034
- Kc = So.unstable_getCurrentPriorityLevel,
7078
+ Kc = So.unstable_now,
7079
+ Wc = So.unstable_getCurrentPriorityLevel,
7035
7080
  Gc = So.unstable_ImmediatePriority,
7036
7081
  Yc = So.unstable_UserBlockingPriority,
7037
7082
  Jc = So.unstable_NormalPriority,
@@ -7042,12 +7087,12 @@ var Fc = null,
7042
7087
  nu = null,
7043
7088
  ru = null,
7044
7089
  ou = !1,
7045
- iu = Wc(),
7046
- au = 1e4 > iu ? Wc : function () {
7047
- return Wc() - iu;
7090
+ iu = Kc(),
7091
+ au = 1e4 > iu ? Kc : function () {
7092
+ return Kc() - iu;
7048
7093
  };
7049
7094
  function su() {
7050
- switch (Kc()) {
7095
+ switch (Wc()) {
7051
7096
  case Gc:
7052
7097
  return 99;
7053
7098
  case Yc:
@@ -7559,14 +7604,14 @@ var $u = Qu(!0),
7559
7604
  Hu = Qu(!1),
7560
7605
  Vu = {},
7561
7606
  qu = Cc(Vu),
7562
- Wu = Cc(Vu),
7563
- Ku = Cc(Vu);
7607
+ Ku = Cc(Vu),
7608
+ Wu = Cc(Vu);
7564
7609
  function Gu(e) {
7565
7610
  if (e === Vu) throw Error(Co(174));
7566
7611
  return e;
7567
7612
  }
7568
7613
  function Yu(e, t) {
7569
- switch (Oc(Ku, t), Oc(Wu, e), Oc(qu, Vu), e = t.nodeType) {
7614
+ switch (Oc(Wu, t), Oc(Ku, e), Oc(qu, Vu), e = t.nodeType) {
7570
7615
  case 9:
7571
7616
  case 11:
7572
7617
  t = (t = t.documentElement) ? t.namespaceURI : Ri(null, "");
@@ -7577,16 +7622,16 @@ function Yu(e, t) {
7577
7622
  xc(qu), Oc(qu, t);
7578
7623
  }
7579
7624
  function Ju() {
7580
- xc(qu), xc(Wu), xc(Ku);
7625
+ xc(qu), xc(Ku), xc(Wu);
7581
7626
  }
7582
7627
  function Zu(e) {
7583
- Gu(Ku.current);
7628
+ Gu(Wu.current);
7584
7629
  var t = Gu(qu.current),
7585
7630
  n = Ri(t, e.type);
7586
- t !== n && (Oc(Wu, e), Oc(qu, n));
7631
+ t !== n && (Oc(Ku, e), Oc(qu, n));
7587
7632
  }
7588
7633
  function Xu(e) {
7589
- Wu.current === e && (xc(qu), xc(Wu));
7634
+ Ku.current === e && (xc(qu), xc(Ku));
7590
7635
  }
7591
7636
  var ed = Cc(0);
7592
7637
  function td(e) {
@@ -7702,7 +7747,7 @@ function kd(e, t, n, r, o, i) {
7702
7747
  i += 1, yd = vd = null, t.updateQueue = null, pd.current = Jd, e = n(r, o);
7703
7748
  } while (bd);
7704
7749
  }
7705
- if (pd.current = Kd, t = null !== vd && null !== vd.next, md = 0, yd = vd = gd = null, Ad = !1, t) throw Error(Co(300));
7750
+ if (pd.current = Wd, t = null !== vd && null !== vd.next, md = 0, yd = vd = gd = null, Ad = !1, t) throw Error(Co(300));
7706
7751
  return e;
7707
7752
  }
7708
7753
  function Ed() {
@@ -7856,7 +7901,7 @@ function Pd(e, t, n, r) {
7856
7901
  dispatch: null,
7857
7902
  lastRenderedReducer: Cd,
7858
7903
  lastRenderedState: u
7859
- }).dispatch = c = Wd.bind(null, gd, e), l.queue = e, l.baseQueue = null, u = Td(o, t, n), l.memoizedState = l.baseState = u), u;
7904
+ }).dispatch = c = Kd.bind(null, gd, e), l.queue = e, l.baseQueue = null, u = Td(o, t, n), l.memoizedState = l.baseState = u), u;
7860
7905
  }
7861
7906
  function Bd(e, t, n) {
7862
7907
  return Pd(Sd(), e, t, n);
@@ -7868,7 +7913,7 @@ function Id(e) {
7868
7913
  dispatch: null,
7869
7914
  lastRenderedReducer: Cd,
7870
7915
  lastRenderedState: e
7871
- }).dispatch = Wd.bind(null, gd, e), [t.memoizedState, e];
7916
+ }).dispatch = Kd.bind(null, gd, e), [t.memoizedState, e];
7872
7917
  }
7873
7918
  function Rd(e, t, n, r) {
7874
7919
  return e = {
@@ -7949,7 +7994,7 @@ function qd(e, t) {
7949
7994
  }
7950
7995
  });
7951
7996
  }
7952
- function Wd(e, t, n) {
7997
+ function Kd(e, t, n) {
7953
7998
  var r = Pp(),
7954
7999
  o = Bp(e),
7955
8000
  i = {
@@ -7969,7 +8014,7 @@ function Wd(e, t, n) {
7969
8014
  Ip(e, o, r);
7970
8015
  }
7971
8016
  }
7972
- var Kd = {
8017
+ var Wd = {
7973
8018
  readContext: ku,
7974
8019
  useCallback: _d,
7975
8020
  useContext: _d,
@@ -8011,7 +8056,7 @@ var Kd = {
8011
8056
  dispatch: null,
8012
8057
  lastRenderedReducer: e,
8013
8058
  lastRenderedState: t
8014
- }).dispatch = Wd.bind(null, gd, e), [r.memoizedState, e];
8059
+ }).dispatch = Kd.bind(null, gd, e), [r.memoizedState, e];
8015
8060
  },
8016
8061
  useRef: Ld,
8017
8062
  useState: Id,
@@ -8386,7 +8431,7 @@ function Sf(e, t, n) {
8386
8431
  return Ju(), xc(Bc), xc(Pc), fd(), (r = t.stateNode).pendingContext && (r.context = r.pendingContext, r.pendingContext = null), null !== e && null !== e.child || (cd(t) ? t.flags |= 4 : r.hydrate || (t.flags |= 256)), ff(t), null;
8387
8432
  case 5:
8388
8433
  Xu(t);
8389
- var o = Gu(Ku.current);
8434
+ var o = Gu(Wu.current);
8390
8435
  if (n = t.type, null !== e && null != t.stateNode) pf(e, t, n, r, o), e.ref !== t.ref && (t.flags |= 128);else {
8391
8436
  if (!r) {
8392
8437
  if (null === t.stateNode) throw Error(Co(166));
@@ -8397,40 +8442,40 @@ function Sf(e, t, n) {
8397
8442
  var i = t.memoizedProps;
8398
8443
  switch (r[mc] = t, r[gc] = i, n) {
8399
8444
  case "dialog":
8400
- Wl("cancel", r), Wl("close", r);
8445
+ Kl("cancel", r), Kl("close", r);
8401
8446
  break;
8402
8447
  case "iframe":
8403
8448
  case "object":
8404
8449
  case "embed":
8405
- Wl("load", r);
8450
+ Kl("load", r);
8406
8451
  break;
8407
8452
  case "video":
8408
8453
  case "audio":
8409
- for (e = 0; e < $l.length; e++) Wl($l[e], r);
8454
+ for (e = 0; e < $l.length; e++) Kl($l[e], r);
8410
8455
  break;
8411
8456
  case "source":
8412
- Wl("error", r);
8457
+ Kl("error", r);
8413
8458
  break;
8414
8459
  case "img":
8415
8460
  case "image":
8416
8461
  case "link":
8417
- Wl("error", r), Wl("load", r);
8462
+ Kl("error", r), Kl("load", r);
8418
8463
  break;
8419
8464
  case "details":
8420
- Wl("toggle", r);
8465
+ Kl("toggle", r);
8421
8466
  break;
8422
8467
  case "input":
8423
- bi(r, i), Wl("invalid", r);
8468
+ bi(r, i), Kl("invalid", r);
8424
8469
  break;
8425
8470
  case "select":
8426
8471
  r._wrapperState = {
8427
8472
  wasMultiple: !!i.multiple
8428
- }, Wl("invalid", r);
8473
+ }, Kl("invalid", r);
8429
8474
  break;
8430
8475
  case "textarea":
8431
- Oi(r, i), Wl("invalid", r);
8476
+ Oi(r, i), Kl("invalid", r);
8432
8477
  }
8433
- for (var a in Qi(n, i), e = null, i) i.hasOwnProperty(a) && (o = i[a], "children" === a ? "string" == typeof o ? r.textContent !== o && (e = ["children", o]) : "number" == typeof o && r.textContent !== "" + o && (e = ["children", "" + o]) : Oo.hasOwnProperty(a) && null != o && "onScroll" === a && Wl("scroll", r));
8478
+ for (var a in Qi(n, i), e = null, i) i.hasOwnProperty(a) && (o = i[a], "children" === a ? "string" == typeof o ? r.textContent !== o && (e = ["children", o]) : "number" == typeof o && r.textContent !== "" + o && (e = ["children", "" + o]) : Oo.hasOwnProperty(a) && null != o && "onScroll" === a && Kl("scroll", r));
8434
8479
  switch (n) {
8435
8480
  case "input":
8436
8481
  gi(r), ki(r, i, !0);
@@ -8450,31 +8495,31 @@ function Sf(e, t, n) {
8450
8495
  is: r.is
8451
8496
  }) : (e = a.createElement(n), "select" === n && (a = e, r.multiple ? a.multiple = !0 : r.size && (a.size = r.size))) : e = a.createElementNS(e, n), e[mc] = t, e[gc] = r, df(e, t, !1, !1), t.stateNode = e, a = $i(n, r), n) {
8452
8497
  case "dialog":
8453
- Wl("cancel", e), Wl("close", e), o = r;
8498
+ Kl("cancel", e), Kl("close", e), o = r;
8454
8499
  break;
8455
8500
  case "iframe":
8456
8501
  case "object":
8457
8502
  case "embed":
8458
- Wl("load", e), o = r;
8503
+ Kl("load", e), o = r;
8459
8504
  break;
8460
8505
  case "video":
8461
8506
  case "audio":
8462
- for (o = 0; o < $l.length; o++) Wl($l[o], e);
8507
+ for (o = 0; o < $l.length; o++) Kl($l[o], e);
8463
8508
  o = r;
8464
8509
  break;
8465
8510
  case "source":
8466
- Wl("error", e), o = r;
8511
+ Kl("error", e), o = r;
8467
8512
  break;
8468
8513
  case "img":
8469
8514
  case "image":
8470
8515
  case "link":
8471
- Wl("error", e), Wl("load", e), o = r;
8516
+ Kl("error", e), Kl("load", e), o = r;
8472
8517
  break;
8473
8518
  case "details":
8474
- Wl("toggle", e), o = r;
8519
+ Kl("toggle", e), o = r;
8475
8520
  break;
8476
8521
  case "input":
8477
- bi(e, r), o = Ai(e, r), Wl("invalid", e);
8522
+ bi(e, r), o = Ai(e, r), Kl("invalid", e);
8478
8523
  break;
8479
8524
  case "option":
8480
8525
  o = Si(e, r);
@@ -8484,10 +8529,10 @@ function Sf(e, t, n) {
8484
8529
  wasMultiple: !!r.multiple
8485
8530
  }, o = Eo({}, r, {
8486
8531
  value: void 0
8487
- }), Wl("invalid", e);
8532
+ }), Kl("invalid", e);
8488
8533
  break;
8489
8534
  case "textarea":
8490
- Oi(e, r), o = xi(e, r), Wl("invalid", e);
8535
+ Oi(e, r), o = xi(e, r), Kl("invalid", e);
8491
8536
  break;
8492
8537
  default:
8493
8538
  o = r;
@@ -8496,7 +8541,7 @@ function Sf(e, t, n) {
8496
8541
  var s = o;
8497
8542
  for (i in s) if (s.hasOwnProperty(i)) {
8498
8543
  var l = s[i];
8499
- "style" === i ? Fi(e, l) : "dangerouslySetInnerHTML" === i ? null != (l = l ? l.__html : void 0) && Mi(e, l) : "children" === i ? "string" == typeof l ? ("textarea" !== n || "" !== l) && zi(e, l) : "number" == typeof l && zi(e, "" + l) : "suppressContentEditableWarning" !== i && "suppressHydrationWarning" !== i && "autoFocus" !== i && (Oo.hasOwnProperty(i) ? null != l && "onScroll" === i && Wl("scroll", e) : null != l && Fo(e, i, l, a));
8544
+ "style" === i ? Fi(e, l) : "dangerouslySetInnerHTML" === i ? null != (l = l ? l.__html : void 0) && Mi(e, l) : "children" === i ? "string" == typeof l ? ("textarea" !== n || "" !== l) && zi(e, l) : "number" == typeof l && zi(e, "" + l) : "suppressContentEditableWarning" !== i && "suppressHydrationWarning" !== i && "autoFocus" !== i && (Oo.hasOwnProperty(i) ? null != l && "onScroll" === i && Kl("scroll", e) : null != l && Fo(e, i, l, a));
8500
8545
  }
8501
8546
  switch (n) {
8502
8547
  case "input":
@@ -8522,7 +8567,7 @@ function Sf(e, t, n) {
8522
8567
  case 6:
8523
8568
  if (e && null != t.stateNode) hf(e, t, e.memoizedProps, r);else {
8524
8569
  if ("string" != typeof r && null === t.stateNode) throw Error(Co(166));
8525
- n = Gu(Ku.current), Gu(qu.current), cd(t) ? (r = t.stateNode, n = t.memoizedProps, r[mc] = t, r.nodeValue !== n && (t.flags |= 4)) : ((r = (9 === n.nodeType ? n : n.ownerDocument).createTextNode(r))[mc] = t, t.stateNode = r);
8570
+ n = Gu(Wu.current), Gu(qu.current), cd(t) ? (r = t.stateNode, n = t.memoizedProps, r[mc] = t, r.nodeValue !== n && (t.flags |= 4)) : ((r = (9 === n.nodeType ? n : n.ownerDocument).createTextNode(r))[mc] = t, t.stateNode = r);
8526
8571
  }
8527
8572
  return null;
8528
8573
  case 13:
@@ -8662,7 +8707,7 @@ df = function df(e, t) {
8662
8707
  for (i in s) !s.hasOwnProperty(i) || l && l.hasOwnProperty(i) || (n || (n = {}), n[i] = "");
8663
8708
  for (i in l) l.hasOwnProperty(i) && s[i] !== l[i] && (n || (n = {}), n[i] = l[i]);
8664
8709
  } else n || (a || (a = []), a.push(c, n)), n = l;
8665
- } else "dangerouslySetInnerHTML" === c ? (l = l ? l.__html : void 0, s = s ? s.__html : void 0, null != l && s !== l && (a = a || []).push(c, l)) : "children" === c ? "string" != typeof l && "number" != typeof l || (a = a || []).push(c, "" + l) : "suppressContentEditableWarning" !== c && "suppressHydrationWarning" !== c && (Oo.hasOwnProperty(c) ? (null != l && "onScroll" === c && Wl("scroll", e), a || s === l || (a = [])) : "object" == _typeof(l) && null !== l && l.$$typeof === ti ? l.toString() : (a = a || []).push(c, l));
8710
+ } else "dangerouslySetInnerHTML" === c ? (l = l ? l.__html : void 0, s = s ? s.__html : void 0, null != l && s !== l && (a = a || []).push(c, l)) : "children" === c ? "string" != typeof l && "number" != typeof l || (a = a || []).push(c, "" + l) : "suppressContentEditableWarning" !== c && "suppressHydrationWarning" !== c && (Oo.hasOwnProperty(c) ? (null != l && "onScroll" === c && Kl("scroll", e), a || s === l || (a = [])) : "object" == _typeof(l) && null !== l && l.$$typeof === ti ? l.toString() : (a = a || []).push(c, l));
8666
8711
  }
8667
8712
  n && (a = a || []).push("style", n);
8668
8713
  var c = a;
@@ -9022,8 +9067,8 @@ function Vf(e) {
9022
9067
  function qf(e, t) {
9023
9068
  return null !== e && (null === (e = e.memoizedState) || null !== e.dehydrated) && null !== (t = t.memoizedState) && null === t.dehydrated;
9024
9069
  }
9025
- var Wf = Math.ceil,
9026
- Kf = Uo.ReactCurrentDispatcher,
9070
+ var Kf = Math.ceil,
9071
+ Wf = Uo.ReactCurrentDispatcher,
9027
9072
  Gf = Uo.ReactCurrentOwner,
9028
9073
  Yf = 0,
9029
9074
  Jf = null,
@@ -9160,12 +9205,12 @@ function Mp(e) {
9160
9205
  Yf |= 16;
9161
9206
  var i = Hp();
9162
9207
  for (Jf === e && Xf === r || (dp(), Qp(e, r));;) try {
9163
- Wp();
9208
+ Kp();
9164
9209
  break;
9165
9210
  } catch (t) {
9166
9211
  $p(e, t);
9167
9212
  }
9168
- if (Au(), Kf.current = i, Yf = o, null !== Zf ? r = 0 : (Jf = null, Xf = 0, r = np), 0 != (op & ap)) Qp(e, 0);else if (0 !== r) {
9213
+ if (Au(), Wf.current = i, Yf = o, null !== Zf ? r = 0 : (Jf = null, Xf = 0, r = np), 0 != (op & ap)) Qp(e, 0);else if (0 !== r) {
9169
9214
  if (2 === r && (Yf |= 64, e.hydrate && (e.hydrate = !1, uc(e.containerInfo)), 0 !== (n = rs(e)) && (r = Vp(e, n))), 1 === r) throw t = rp, Qp(e, 0), zp(e, n), Lp(e, au()), t;
9170
9215
  switch (e.finishedWork = e.current.alternate, e.finishedLanes = n, r) {
9171
9216
  case 0:
@@ -9193,7 +9238,7 @@ function Mp(e) {
9193
9238
  var a = 31 - ls(n);
9194
9239
  i = 1 << a, (a = r[a]) > o && (o = a), n &= ~i;
9195
9240
  }
9196
- if (n = o, 10 < (n = (120 > (n = au() - n) ? 120 : 480 > n ? 480 : 1080 > n ? 1080 : 1920 > n ? 1920 : 3e3 > n ? 3e3 : 4320 > n ? 4320 : 1960 * Wf(n / 1960)) - n)) {
9241
+ if (n = o, 10 < (n = (120 > (n = au() - n) ? 120 : 480 > n ? 480 : 1080 > n ? 1080 : 1920 > n ? 1920 : 3e3 > n ? 3e3 : 4320 > n ? 4320 : 1960 * Kf(n / 1960)) - n)) {
9197
9242
  e.timeoutHandle = lc(Yp.bind(null, e), n);
9198
9243
  break;
9199
9244
  }
@@ -9283,7 +9328,7 @@ function $p(e, t) {
9283
9328
  for (;;) {
9284
9329
  var n = Zf;
9285
9330
  try {
9286
- if (Au(), pd.current = Kd, Ad) {
9331
+ if (Au(), pd.current = Wd, Ad) {
9287
9332
  for (var r = gd.memoizedState; null !== r;) {
9288
9333
  var o = r.queue;
9289
9334
  null !== o && (o.pending = null), r = r.next;
@@ -9371,8 +9416,8 @@ function $p(e, t) {
9371
9416
  }
9372
9417
  }
9373
9418
  function Hp() {
9374
- var e = Kf.current;
9375
- return Kf.current = Kd, null === e ? Kd : e;
9419
+ var e = Wf.current;
9420
+ return Wf.current = Wd, null === e ? Wd : e;
9376
9421
  }
9377
9422
  function Vp(e, t) {
9378
9423
  var n = Yf;
@@ -9384,16 +9429,16 @@ function Vp(e, t) {
9384
9429
  } catch (t) {
9385
9430
  $p(e, t);
9386
9431
  }
9387
- if (Au(), Yf = n, Kf.current = r, null !== Zf) throw Error(Co(261));
9432
+ if (Au(), Yf = n, Wf.current = r, null !== Zf) throw Error(Co(261));
9388
9433
  return Jf = null, Xf = 0, np;
9389
9434
  }
9390
9435
  function qp() {
9391
- for (; null !== Zf;) Kp(Zf);
9436
+ for (; null !== Zf;) Wp(Zf);
9392
9437
  }
9393
- function Wp() {
9394
- for (; null !== Zf && !Vc();) Kp(Zf);
9438
+ function Kp() {
9439
+ for (; null !== Zf && !Vc();) Wp(Zf);
9395
9440
  }
9396
- function Kp(e) {
9441
+ function Wp(e) {
9397
9442
  var t = fp(e.alternate, e, ep);
9398
9443
  e.memoizedProps = e.pendingProps, null === t ? Gp(e) : Zf = t, Gf.current = null;
9399
9444
  }
@@ -9696,10 +9741,10 @@ function dh(e, t, n, r, o, i) {
9696
9741
  return (e = lh(24, n, t, o)).elementType = oi, e.lanes = i, e;
9697
9742
  default:
9698
9743
  if ("object" == _typeof(e) && null !== e) switch (e.$$typeof) {
9699
- case Wo:
9744
+ case Ko:
9700
9745
  a = 10;
9701
9746
  break e;
9702
- case Ko:
9747
+ case Wo:
9703
9748
  a = 9;
9704
9749
  break e;
9705
9750
  case Go:
@@ -10352,8 +10397,8 @@ exports.BiometricsErrors = void 0, function (e) {
10352
10397
  }(exports.AuthFlowType || (exports.AuthFlowType = {})), exports.B2BOAuthProviders = void 0, function (e) {
10353
10398
  e.Google = "google", e.Microsoft = "microsoft";
10354
10399
  }(exports.B2BOAuthProviders || (exports.B2BOAuthProviders = {}));
10355
- var Wh = "<div data-prompt_parent_id='g_id_onload' id='google-parent-prompt' style=''></div>";
10356
- var Kh = function Kh(e, t) {
10400
+ var Kh = "<div data-prompt_parent_id='g_id_onload' id='google-parent-prompt' style=''></div>";
10401
+ var Wh = function Wh(e, t) {
10357
10402
  switch (t.type) {
10358
10403
  case "transition":
10359
10404
  return Object.assign(Object.assign({}, e), {
@@ -10440,7 +10485,7 @@ var Yh = {
10440
10485
  n = _ref5.config,
10441
10486
  r = _ref5.callbacks,
10442
10487
  o = _ref5.initialState;
10443
- var i = It.useReducer(Kh, null != o ? o : Yh);
10488
+ var i = It.useReducer(Wh, null != o ? o : Yh);
10444
10489
  return It.createElement(Zh.Provider, {
10445
10490
  value: {
10446
10491
  client: t,
@@ -10533,8 +10578,8 @@ var am = "undefined" != typeof globalThis ? globalThis : "undefined" != typeof w
10533
10578
  return e({}, "", {}), e;
10534
10579
  } catch (e) {}
10535
10580
  }(),
10536
- W = N ? N.isBuffer : void 0,
10537
- K = Math.max,
10581
+ K = N ? N.isBuffer : void 0,
10582
+ W = Math.max,
10538
10583
  G = Date.now,
10539
10584
  Y = ye(v, "Map"),
10540
10585
  J = ye(Object, "create"),
@@ -10790,8 +10835,8 @@ var am = "undefined" != typeof globalThis ? globalThis : "undefined" != typeof w
10790
10835
  }
10791
10836
  function me(e, t) {
10792
10837
  return we(function (e, t, n) {
10793
- return t = K(void 0 === t ? e.length - 1 : t, 0), function () {
10794
- for (var r = arguments, o = -1, i = K(r.length - t, 0), a = Array(i); ++o < i;) a[o] = r[t + o];
10838
+ return t = W(void 0 === t ? e.length - 1 : t, 0), function () {
10839
+ for (var r = arguments, o = -1, i = W(r.length - t, 0), a = Array(i); ++o < i;) a[o] = r[t + o];
10795
10840
  o = -1;
10796
10841
  for (var s = Array(t + 1); ++o < t;) s[o] = r[o];
10797
10842
  return s[t] = n(a), function (e, t, n) {
@@ -10868,7 +10913,7 @@ var am = "undefined" != typeof globalThis ? globalThis : "undefined" != typeof w
10868
10913
  function Ce(e) {
10869
10914
  return null != e && Te(e.length) && !Oe(e);
10870
10915
  }
10871
- var xe = W || function () {
10916
+ var xe = K || function () {
10872
10917
  return !1;
10873
10918
  };
10874
10919
  function Oe(e) {
@@ -11388,20 +11433,20 @@ function qm() {
11388
11433
  return e;
11389
11434
  }, e;
11390
11435
  }
11391
- function Wm() {
11436
+ function Km() {
11392
11437
  var e = Pm(["\nfrom {\n transform: scale(0);\n opacity: 0;\n}\nto {\n transform: scale(1);\n opacity: 1;\n}"]);
11393
- return Wm = function Wm() {
11438
+ return Km = function Km() {
11394
11439
  return e;
11395
11440
  }, e;
11396
11441
  }
11397
- function Km() {
11442
+ function Wm() {
11398
11443
  var e = Pm(["\nfrom {\n transform: scale(0) rotate(45deg);\n\topacity: 0;\n}\nto {\n transform: scale(1) rotate(45deg);\n opacity: 1;\n}"]);
11399
- return Km = function Km() {
11444
+ return Wm = function Wm() {
11400
11445
  return e;
11401
11446
  }, e;
11402
11447
  }
11403
- var Gm = xm(Km()),
11404
- Ym = xm(Wm()),
11448
+ var Gm = xm(Wm()),
11449
+ Ym = xm(Km()),
11405
11450
  Jm = xm(qm()),
11406
11451
  Zm = Om("div")(Vm(), function (e) {
11407
11452
  return e.primary || "#ff4b4b";
@@ -11865,8 +11910,8 @@ var Hg = "function" == typeof Object.is ? Object.is : function (e, t) {
11865
11910
  },
11866
11911
  Vg = $g.useState,
11867
11912
  qg = $g.useEffect,
11868
- Wg = $g.useLayoutEffect,
11869
- Kg = $g.useDebugValue;
11913
+ Kg = $g.useLayoutEffect,
11914
+ Wg = $g.useDebugValue;
11870
11915
  function Gg(e) {
11871
11916
  var t = e.getSnapshot;
11872
11917
  e = e.value;
@@ -11889,7 +11934,7 @@ var Yg = "undefined" == typeof window || void 0 === window.document || void 0 ==
11889
11934
  }),
11890
11935
  o = r[0].inst,
11891
11936
  i = r[1];
11892
- return Wg(function () {
11937
+ return Kg(function () {
11893
11938
  o.value = n, o.getSnapshot = t, Gg(o) && i({
11894
11939
  inst: o
11895
11940
  });
@@ -11901,7 +11946,7 @@ var Yg = "undefined" == typeof window || void 0 === window.document || void 0 ==
11901
11946
  inst: o
11902
11947
  });
11903
11948
  });
11904
- }, [e]), Kg(n), n;
11949
+ }, [e]), Wg(n), n;
11905
11950
  };
11906
11951
  Qg.useSyncExternalStore = void 0 !== $g.useSyncExternalStore ? $g.useSyncExternalStore : Yg, Ug.exports = Qg;
11907
11952
  var Jg = new WeakMap(),
@@ -12654,7 +12699,7 @@ var qv = {
12654
12699
  "stytch.oauth.authenticate": exports.StytchEventType.B2BOAuthAuthenticate,
12655
12700
  "stytch.oauth.discovery.authenticate": exports.StytchEventType.B2BOAuthDiscoveryAuthenticate
12656
12701
  },
12657
- Wv = function Wv(e, t, n) {
12702
+ Kv = function Kv(e, t, n) {
12658
12703
  var r = im(),
12659
12704
  o = om();
12660
12705
  return Vv(e, t, Object.assign(Object.assign({}, n), {
@@ -12669,7 +12714,7 @@ var qv = {
12669
12714
  }
12670
12715
  }));
12671
12716
  },
12672
- Kv = function Kv() {
12717
+ Wv = function Wv() {
12673
12718
  var e = tm(),
12674
12719
  _Ye$exports$useState = Ye.exports.useState(ue(e).bootstrap.getSync()),
12675
12720
  _Ye$exports$useState2 = _slicedToArray(_Ye$exports$useState, 2),
@@ -12917,7 +12962,7 @@ var Xv = go(_templateObject5 || (_templateObject5 = _taggedTemplateLiteral(["\n
12917
12962
  _Ye$exports$useState12 = _slicedToArray(_Ye$exports$useState11, 2),
12918
12963
  o = _Ye$exports$useState12[0],
12919
12964
  i = _Ye$exports$useState12[1],
12920
- _Wv = Wv("stytch.magicLinks.email.loginOrSignup", function (e, _ref44) {
12965
+ _Kv = Kv("stytch.magicLinks.email.loginOrSignup", function (e, _ref44) {
12921
12966
  var t = _ref44.arg.organization_id;
12922
12967
  var i, a, s, l;
12923
12968
  return n.magicLinks.email.loginOrSignup({
@@ -12939,9 +12984,9 @@ var Xv = go(_templateObject5 || (_templateObject5 = _taggedTemplateLiteral(["\n
12939
12984
  });
12940
12985
  }
12941
12986
  }),
12942
- a = _Wv.trigger,
12943
- s = _Wv.error,
12944
- l = _Wv.isMutating,
12987
+ a = _Kv.trigger,
12988
+ s = _Kv.error,
12989
+ l = _Kv.isMutating,
12945
12990
  c = e.flowState.organization;
12946
12991
  if (!c) return It.createElement(It.Fragment, null);
12947
12992
  return It.createElement("form", {
@@ -12989,7 +13034,7 @@ var Xv = go(_templateObject5 || (_templateObject5 = _taggedTemplateLiteral(["\n
12989
13034
  _Ye$exports$useState14 = _slicedToArray(_Ye$exports$useState13, 2),
12990
13035
  r = _Ye$exports$useState14[0],
12991
13036
  o = _Ye$exports$useState14[1],
12992
- _Wv2 = Wv("stytch.magicLinks.discovery.send", function () {
13037
+ _Kv2 = Kv("stytch.magicLinks.discovery.send", function () {
12993
13038
  var e, o;
12994
13039
  return t.magicLinks.email.discovery.send({
12995
13040
  email_address: r,
@@ -13007,9 +13052,9 @@ var Xv = go(_templateObject5 || (_templateObject5 = _taggedTemplateLiteral(["\n
13007
13052
  });
13008
13053
  }
13009
13054
  }),
13010
- i = _Wv2.trigger,
13011
- a = _Wv2.error,
13012
- s = _Wv2.isMutating;
13055
+ i = _Kv2.trigger,
13056
+ a = _Kv2.error,
13057
+ s = _Kv2.isMutating;
13013
13058
  return It.createElement("form", {
13014
13059
  onSubmit: function onSubmit(e) {
13015
13060
  return pe(void 0, void 0, void 0, /*#__PURE__*/_regeneratorRuntime().mark(function _callee20() {
@@ -13719,7 +13764,7 @@ var Uy = yo(zg)(_templateObject20 || (_templateObject20 = _taggedTemplateLiteral
13719
13764
  components: f
13720
13765
  }));
13721
13766
  };
13722
- var Wy = Ly("gmail", function () {
13767
+ var Ky = Ly("gmail", function () {
13723
13768
  return It.createElement("svg", {
13724
13769
  xmlns: "http://www.w3.org/2000/svg",
13725
13770
  viewBox: "0 0 48 48",
@@ -13742,7 +13787,7 @@ var Wy = Ly("gmail", function () {
13742
13787
  d: "M45,12.298V16.2l-10,7.5V11.2l3.124-2.341C38.868,8.301,39.772,8,40.702,8h0 C43.076,8,45,9.924,45,12.298z"
13743
13788
  }));
13744
13789
  });
13745
- var Ky = Ly("outlook", function () {
13790
+ var Wy = Ly("outlook", function () {
13746
13791
  return It.createElement("svg", {
13747
13792
  xmlns: "http://www.w3.org/2000/svg",
13748
13793
  version: "1.1",
@@ -13862,7 +13907,7 @@ var Yy = yo.a(_templateObject23 || (_templateObject23 = _taggedTemplateLiteral([
13862
13907
  }, It.createElement(Jy, {
13863
13908
  href: r,
13864
13909
  label: "Gmail",
13865
- Icon: It.createElement(Wy, null)
13910
+ Icon: It.createElement(Ky, null)
13866
13911
  }), It.createElement(Jy, {
13867
13912
  href: o,
13868
13913
  label: "Yahoo",
@@ -13870,7 +13915,7 @@ var Yy = yo.a(_templateObject23 || (_templateObject23 = _taggedTemplateLiteral([
13870
13915
  }), It.createElement(Jy, {
13871
13916
  href: i,
13872
13917
  label: "Outlook",
13873
- Icon: It.createElement(Ky, null)
13918
+ Icon: It.createElement(Wy, null)
13874
13919
  }))), It.createElement(Zv, {
13875
13920
  onClick: t
13876
13921
  }, "Try again"));
@@ -13987,15 +14032,15 @@ var Yy = yo.a(_templateObject23 || (_templateObject23 = _taggedTemplateLiteral([
13987
14032
  t = _nm24[1],
13988
14033
  n = tm(),
13989
14034
  r = rm(),
13990
- _Kv = Kv(),
13991
- o = _Kv.createOrganizationEnabled,
14035
+ _Wv = Wv(),
14036
+ o = _Wv.createOrganizationEnabled,
13992
14037
  i = function i() {
13993
14038
  return t({
13994
14039
  type: "transition",
13995
14040
  screen: Gh.Main
13996
14041
  });
13997
14042
  },
13998
- _Wv3 = Wv("stytch.discovery.organization.create", function () {
14043
+ _Kv3 = Kv("stytch.discovery.organization.create", function () {
13999
14044
  return n.discovery.organizations.create({
14000
14045
  session_duration_minutes: r.sessionOptions.sessionDurationMinutes
14001
14046
  });
@@ -14010,8 +14055,8 @@ var Yy = yo.a(_templateObject23 || (_templateObject23 = _taggedTemplateLiteral([
14010
14055
  });
14011
14056
  }
14012
14057
  }),
14013
- a = _Wv3.trigger,
14014
- s = _Wv3.isMutating;
14058
+ a = _Kv3.trigger,
14059
+ s = _Kv3.isMutating;
14015
14060
  return s ? Ye.exports.createElement(tA, null) : o ? Ye.exports.createElement(zg, {
14016
14061
  direction: "column",
14017
14062
  gap: 24
@@ -14042,14 +14087,14 @@ var Yy = yo.a(_templateObject23 || (_templateObject23 = _taggedTemplateLiteral([
14042
14087
  t = _nm26[1],
14043
14088
  n = tm(),
14044
14089
  r = rm(),
14045
- _Kv2 = Kv(),
14046
- o = _Kv2.createOrganizationEnabled,
14090
+ _Wv2 = Wv(),
14091
+ o = _Wv2.createOrganizationEnabled,
14047
14092
  i = Ye.exports.useCallback(function (e) {
14048
14093
  n.sso.start({
14049
14094
  connection_id: e
14050
14095
  });
14051
14096
  }, [n]),
14052
- _Wv4 = Wv("stytch.discovery.intermediateSessions.exchange", function (e, _ref68) {
14097
+ _Kv4 = Kv("stytch.discovery.intermediateSessions.exchange", function (e, _ref68) {
14053
14098
  var t = _ref68.arg.organizationId;
14054
14099
  return n.discovery.intermediateSessions.exchange({
14055
14100
  organization_id: t,
@@ -14060,9 +14105,9 @@ var Yy = yo.a(_templateObject23 || (_templateObject23 = _taggedTemplateLiteral([
14060
14105
  Gv(e, t);
14061
14106
  }
14062
14107
  }),
14063
- a = _Wv4.trigger,
14064
- s = _Wv4.isMutating,
14065
- _Wv5 = Wv("stytch.discovery.organization.create", function () {
14108
+ a = _Kv4.trigger,
14109
+ s = _Kv4.isMutating,
14110
+ _Kv5 = Kv("stytch.discovery.organization.create", function () {
14066
14111
  return n.discovery.organizations.create({
14067
14112
  session_duration_minutes: r.sessionOptions.sessionDurationMinutes
14068
14113
  });
@@ -14077,8 +14122,8 @@ var Yy = yo.a(_templateObject23 || (_templateObject23 = _taggedTemplateLiteral([
14077
14122
  });
14078
14123
  }
14079
14124
  }),
14080
- l = _Wv5.trigger,
14081
- c = _Wv5.isMutating;
14125
+ l = _Kv5.trigger,
14126
+ c = _Kv5.isMutating;
14082
14127
  return s ? Ye.exports.createElement(eA, null) : c ? Ye.exports.createElement(tA, null) : 0 === e.formState.discoveryState.discoveredOrganizations.length ? Ye.exports.createElement(cA, null) : Ye.exports.createElement(zg, {
14083
14128
  direction: "column",
14084
14129
  gap: 24
@@ -14298,7 +14343,7 @@ var Yy = yo.a(_templateObject23 || (_templateObject23 = _taggedTemplateLiteral([
14298
14343
  },
14299
14344
  vA = function vA(e) {
14300
14345
  var t, n;
14301
- var r = Kv(),
14346
+ var r = Wv(),
14302
14347
  o = null === (t = r.passwordConfig) || void 0 === t ? void 0 : t.ludsComplexity,
14303
14348
  i = null === (n = r.passwordConfig) || void 0 === n ? void 0 : n.ludsMinimumCount;
14304
14349
  return "none" === e.passwordPolicy ? null : "zxcvbn" === e.passwordPolicy ? It.createElement(It.Fragment, null, It.createElement(hA, {
@@ -14567,11 +14612,11 @@ var Yy = yo.a(_templateObject23 || (_templateObject23 = _taggedTemplateLiteral([
14567
14612
  }, It.createElement(_A, {
14568
14613
  href: r,
14569
14614
  label: "Gmail",
14570
- Icon: It.createElement(Wy, null)
14615
+ Icon: It.createElement(Ky, null)
14571
14616
  }), It.createElement(_A, {
14572
14617
  href: o,
14573
14618
  label: "Outlook",
14574
- Icon: It.createElement(Ky, null)
14619
+ Icon: It.createElement(Wy, null)
14575
14620
  }))), It.createElement(zg, {
14576
14621
  direction: "row"
14577
14622
  }, It.createElement(Ng, {
@@ -14812,7 +14857,7 @@ var Yy = yo.a(_templateObject23 || (_templateObject23 = _taggedTemplateLiteral([
14812
14857
  screen: Gh.Error
14813
14858
  });
14814
14859
  },
14815
- _Wv6 = Wv("stytch.magicLinks.authenticate", function (e, _ref83) {
14860
+ _Kv6 = Kv("stytch.magicLinks.authenticate", function (e, _ref83) {
14816
14861
  var t = _ref83.arg.token;
14817
14862
  return n.magicLinks.authenticate({
14818
14863
  magic_links_token: t,
@@ -14822,9 +14867,9 @@ var Yy = yo.a(_templateObject23 || (_templateObject23 = _taggedTemplateLiteral([
14822
14867
  onSuccess: s,
14823
14868
  onError: c
14824
14869
  }),
14825
- u = _Wv6.trigger,
14826
- d = _Wv6.isMutating,
14827
- _Wv7 = Wv("stytch.oauth.authenticate", function (e, _ref84) {
14870
+ u = _Kv6.trigger,
14871
+ d = _Kv6.isMutating,
14872
+ _Kv7 = Kv("stytch.oauth.authenticate", function (e, _ref84) {
14828
14873
  var t = _ref84.arg.token;
14829
14874
  return n.oauth.authenticate({
14830
14875
  oauth_token: t,
@@ -14834,9 +14879,9 @@ var Yy = yo.a(_templateObject23 || (_templateObject23 = _taggedTemplateLiteral([
14834
14879
  onSuccess: s,
14835
14880
  onError: c
14836
14881
  }),
14837
- f = _Wv7.trigger,
14838
- p = _Wv7.isMutating,
14839
- _Wv8 = Wv("stytch.oauth.discovery.authenticate", function (e, _ref85) {
14882
+ f = _Kv7.trigger,
14883
+ p = _Kv7.isMutating,
14884
+ _Kv8 = Kv("stytch.oauth.discovery.authenticate", function (e, _ref85) {
14840
14885
  var t = _ref85.arg.token;
14841
14886
  return n.oauth.discovery.authenticate({
14842
14887
  discovery_oauth_token: t
@@ -14845,9 +14890,9 @@ var Yy = yo.a(_templateObject23 || (_templateObject23 = _taggedTemplateLiteral([
14845
14890
  onSuccess: l,
14846
14891
  onError: c
14847
14892
  }),
14848
- h = _Wv8.trigger,
14849
- m = _Wv8.isMutating,
14850
- _Wv9 = Wv("stytch.sso.authenticate", function (e, _ref86) {
14893
+ h = _Kv8.trigger,
14894
+ m = _Kv8.isMutating,
14895
+ _Kv9 = Kv("stytch.sso.authenticate", function (e, _ref86) {
14851
14896
  var t = _ref86.arg.token;
14852
14897
  return n.sso.authenticate({
14853
14898
  sso_token: t,
@@ -14857,9 +14902,9 @@ var Yy = yo.a(_templateObject23 || (_templateObject23 = _taggedTemplateLiteral([
14857
14902
  onSuccess: s,
14858
14903
  onError: c
14859
14904
  }),
14860
- g = _Wv9.trigger,
14861
- v = _Wv9.isMutating,
14862
- _Wv10 = Wv("stytch.magicLinks.discovery.authenticate", function (e, _ref87) {
14905
+ g = _Kv9.trigger,
14906
+ v = _Kv9.isMutating,
14907
+ _Kv10 = Kv("stytch.magicLinks.discovery.authenticate", function (e, _ref87) {
14863
14908
  var t = _ref87.arg.token;
14864
14909
  return n.magicLinks.discovery.authenticate({
14865
14910
  discovery_magic_links_token: t
@@ -14868,8 +14913,8 @@ var Yy = yo.a(_templateObject23 || (_templateObject23 = _taggedTemplateLiteral([
14868
14913
  onSuccess: l,
14869
14914
  onError: c
14870
14915
  }),
14871
- y = _Wv10.trigger,
14872
- A = _Wv10.isMutating,
14916
+ y = _Kv10.trigger,
14917
+ A = _Kv10.isMutating,
14873
14918
  _ref82 = function () {
14874
14919
  var _nm39 = nm(),
14875
14920
  _nm40 = _slicedToArray(_nm39, 2),
@@ -14881,7 +14926,7 @@ var Yy = yo.a(_templateObject23 || (_templateObject23 = _taggedTemplateLiteral([
14881
14926
  r = _Ye$exports$useState54[1],
14882
14927
  o = tm(),
14883
14928
  i = Jv(n),
14884
- _Wv11 = Wv("stytch.searchOrganization", function (e, _ref88) {
14929
+ _Kv11 = Kv("stytch.searchOrganization", function (e, _ref88) {
14885
14930
  var t = _ref88.arg.slug;
14886
14931
  return ue(o).searchManager.searchOrganization(t);
14887
14932
  }, {
@@ -14896,8 +14941,8 @@ var Yy = yo.a(_templateObject23 || (_templateObject23 = _taggedTemplateLiteral([
14896
14941
  });
14897
14942
  }
14898
14943
  }),
14899
- a = _Wv11.trigger,
14900
- s = _Wv11.isMutating;
14944
+ a = _Kv11.trigger,
14945
+ s = _Kv11.isMutating;
14901
14946
  return Ye.exports.useEffect(function () {
14902
14947
  ue(o).bootstrap.getAsync().then(function (_ref90) {
14903
14948
  var e = _ref90.slugPattern;
@@ -15082,8 +15127,8 @@ var Yy = yo.a(_templateObject23 || (_templateObject23 = _taggedTemplateLiteral([
15082
15127
  var o = null === (_r6 = null === (n = null === (t = null == e ? void 0 : e.config) || void 0 === t ? void 0 : t.oauthOptions) || void 0 === n ? void 0 : n.providers) || void 0 === _r6 ? void 0 : _r6.find(function (e) {
15083
15128
  return e.type === exports.OAuthProviders.Google && e.one_tap;
15084
15129
  }),
15085
- i = this.innerHTML.includes(Wh);
15086
- o ? i || (this.innerHTML = Wh) : this.innerHTML = "";
15130
+ i = this.innerHTML.includes(Kh);
15131
+ o ? i || (this.innerHTML = Kh) : this.innerHTML = "";
15087
15132
  }
15088
15133
  }, {
15089
15134
  key: "render",