@stytch/vanilla-js 3.0.0 → 3.0.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.
@@ -1,13 +1,13 @@
1
1
  function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
2
2
  function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
3
3
  function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
4
- function _iterableToArrayLimit(arr, i) { var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"]; if (null != _i) { var _s, _e, _x, _r, _arr = [], _n = !0, _d = !1; try { if (_x = (_i = _i.call(arr)).next, 0 === i) { if (Object(_i) !== _i) return; _n = !1; } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0); } catch (err) { _d = !0, _e = err; } finally { try { if (!_n && null != _i["return"] && (_r = _i["return"](), Object(_r) !== _r)) return; } finally { if (_d) throw _e; } } return _arr; } }
4
+ function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
5
5
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
6
6
  function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
7
7
  function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
8
8
  function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
9
9
  function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
10
- function _regeneratorRuntime() { "use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ _regeneratorRuntime = function _regeneratorRuntime() { return exports; }; var exports = {}, Op = Object.prototype, hasOwn = Op.hasOwnProperty, defineProperty = Object.defineProperty || function (obj, key, desc) { obj[key] = desc.value; }, $Symbol = "function" == typeof Symbol ? Symbol : {}, iteratorSymbol = $Symbol.iterator || "@@iterator", asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator", toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag"; function define(obj, key, value) { return Object.defineProperty(obj, key, { value: value, enumerable: !0, configurable: !0, writable: !0 }), obj[key]; } try { define({}, ""); } catch (err) { define = function define(obj, key, value) { return obj[key] = value; }; } function wrap(innerFn, outerFn, self, tryLocsList) { var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator, generator = Object.create(protoGenerator.prototype), context = new Context(tryLocsList || []); return defineProperty(generator, "_invoke", { value: makeInvokeMethod(innerFn, self, context) }), generator; } function tryCatch(fn, obj, arg) { try { return { type: "normal", arg: fn.call(obj, arg) }; } catch (err) { return { type: "throw", arg: err }; } } exports.wrap = wrap; var ContinueSentinel = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var IteratorPrototype = {}; define(IteratorPrototype, iteratorSymbol, function () { return this; }); var getProto = Object.getPrototypeOf, NativeIteratorPrototype = getProto && getProto(getProto(values([]))); NativeIteratorPrototype && NativeIteratorPrototype !== Op && hasOwn.call(NativeIteratorPrototype, iteratorSymbol) && (IteratorPrototype = NativeIteratorPrototype); var Gp = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(IteratorPrototype); function defineIteratorMethods(prototype) { ["next", "throw", "return"].forEach(function (method) { define(prototype, method, function (arg) { return this._invoke(method, arg); }); }); } function AsyncIterator(generator, PromiseImpl) { function invoke(method, arg, resolve, reject) { var record = tryCatch(generator[method], generator, arg); if ("throw" !== record.type) { var result = record.arg, value = result.value; return value && "object" == _typeof(value) && hasOwn.call(value, "__await") ? PromiseImpl.resolve(value.__await).then(function (value) { invoke("next", value, resolve, reject); }, function (err) { invoke("throw", err, resolve, reject); }) : PromiseImpl.resolve(value).then(function (unwrapped) { result.value = unwrapped, resolve(result); }, function (error) { return invoke("throw", error, resolve, reject); }); } reject(record.arg); } var previousPromise; defineProperty(this, "_invoke", { value: function value(method, arg) { function callInvokeWithMethodAndArg() { return new PromiseImpl(function (resolve, reject) { invoke(method, arg, resolve, reject); }); } return previousPromise = previousPromise ? previousPromise.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); } }); } function makeInvokeMethod(innerFn, self, context) { var state = "suspendedStart"; return function (method, arg) { if ("executing" === state) throw new Error("Generator is already running"); if ("completed" === state) { if ("throw" === method) throw arg; return doneResult(); } for (context.method = method, context.arg = arg;;) { var delegate = context.delegate; if (delegate) { var delegateResult = maybeInvokeDelegate(delegate, context); if (delegateResult) { if (delegateResult === ContinueSentinel) continue; return delegateResult; } } if ("next" === context.method) context.sent = context._sent = context.arg;else if ("throw" === context.method) { if ("suspendedStart" === state) throw state = "completed", context.arg; context.dispatchException(context.arg); } else "return" === context.method && context.abrupt("return", context.arg); state = "executing"; var record = tryCatch(innerFn, self, context); if ("normal" === record.type) { if (state = context.done ? "completed" : "suspendedYield", record.arg === ContinueSentinel) continue; return { value: record.arg, done: context.done }; } "throw" === record.type && (state = "completed", context.method = "throw", context.arg = record.arg); } }; } function maybeInvokeDelegate(delegate, context) { var methodName = context.method, method = delegate.iterator[methodName]; if (undefined === method) return context.delegate = null, "throw" === methodName && delegate.iterator["return"] && (context.method = "return", context.arg = undefined, maybeInvokeDelegate(delegate, context), "throw" === context.method) || "return" !== methodName && (context.method = "throw", context.arg = new TypeError("The iterator does not provide a '" + methodName + "' method")), ContinueSentinel; var record = tryCatch(method, delegate.iterator, context.arg); if ("throw" === record.type) return context.method = "throw", context.arg = record.arg, context.delegate = null, ContinueSentinel; var info = record.arg; return info ? info.done ? (context[delegate.resultName] = info.value, context.next = delegate.nextLoc, "return" !== context.method && (context.method = "next", context.arg = undefined), context.delegate = null, ContinueSentinel) : info : (context.method = "throw", context.arg = new TypeError("iterator result is not an object"), context.delegate = null, ContinueSentinel); } function pushTryEntry(locs) { var entry = { tryLoc: locs[0] }; 1 in locs && (entry.catchLoc = locs[1]), 2 in locs && (entry.finallyLoc = locs[2], entry.afterLoc = locs[3]), this.tryEntries.push(entry); } function resetTryEntry(entry) { var record = entry.completion || {}; record.type = "normal", delete record.arg, entry.completion = record; } function Context(tryLocsList) { this.tryEntries = [{ tryLoc: "root" }], tryLocsList.forEach(pushTryEntry, this), this.reset(!0); } function values(iterable) { if (iterable) { var iteratorMethod = iterable[iteratorSymbol]; if (iteratorMethod) return iteratorMethod.call(iterable); if ("function" == typeof iterable.next) return iterable; if (!isNaN(iterable.length)) { var i = -1, next = function next() { for (; ++i < iterable.length;) if (hasOwn.call(iterable, i)) return next.value = iterable[i], next.done = !1, next; return next.value = undefined, next.done = !0, next; }; return next.next = next; } } return { next: doneResult }; } function doneResult() { return { value: undefined, done: !0 }; } return GeneratorFunction.prototype = GeneratorFunctionPrototype, defineProperty(Gp, "constructor", { value: GeneratorFunctionPrototype, configurable: !0 }), defineProperty(GeneratorFunctionPrototype, "constructor", { value: GeneratorFunction, configurable: !0 }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, toStringTagSymbol, "GeneratorFunction"), exports.isGeneratorFunction = function (genFun) { var ctor = "function" == typeof genFun && genFun.constructor; return !!ctor && (ctor === GeneratorFunction || "GeneratorFunction" === (ctor.displayName || ctor.name)); }, exports.mark = function (genFun) { return Object.setPrototypeOf ? Object.setPrototypeOf(genFun, GeneratorFunctionPrototype) : (genFun.__proto__ = GeneratorFunctionPrototype, define(genFun, toStringTagSymbol, "GeneratorFunction")), genFun.prototype = Object.create(Gp), genFun; }, exports.awrap = function (arg) { return { __await: arg }; }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, asyncIteratorSymbol, function () { return this; }), exports.AsyncIterator = AsyncIterator, exports.async = function (innerFn, outerFn, self, tryLocsList, PromiseImpl) { void 0 === PromiseImpl && (PromiseImpl = Promise); var iter = new AsyncIterator(wrap(innerFn, outerFn, self, tryLocsList), PromiseImpl); return exports.isGeneratorFunction(outerFn) ? iter : iter.next().then(function (result) { return result.done ? result.value : iter.next(); }); }, defineIteratorMethods(Gp), define(Gp, toStringTagSymbol, "Generator"), define(Gp, iteratorSymbol, function () { return this; }), define(Gp, "toString", function () { return "[object Generator]"; }), exports.keys = function (val) { var object = Object(val), keys = []; for (var key in object) keys.push(key); return keys.reverse(), function next() { for (; keys.length;) { var key = keys.pop(); if (key in object) return next.value = key, next.done = !1, next; } return next.done = !0, next; }; }, exports.values = values, Context.prototype = { constructor: Context, reset: function reset(skipTempReset) { if (this.prev = 0, this.next = 0, this.sent = this._sent = undefined, this.done = !1, this.delegate = null, this.method = "next", this.arg = undefined, this.tryEntries.forEach(resetTryEntry), !skipTempReset) for (var name in this) "t" === name.charAt(0) && hasOwn.call(this, name) && !isNaN(+name.slice(1)) && (this[name] = undefined); }, stop: function stop() { this.done = !0; var rootRecord = this.tryEntries[0].completion; if ("throw" === rootRecord.type) throw rootRecord.arg; return this.rval; }, dispatchException: function dispatchException(exception) { if (this.done) throw exception; var context = this; function handle(loc, caught) { return record.type = "throw", record.arg = exception, context.next = loc, caught && (context.method = "next", context.arg = undefined), !!caught; } for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i], record = entry.completion; if ("root" === entry.tryLoc) return handle("end"); if (entry.tryLoc <= this.prev) { var hasCatch = hasOwn.call(entry, "catchLoc"), hasFinally = hasOwn.call(entry, "finallyLoc"); if (hasCatch && hasFinally) { if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0); if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc); } else if (hasCatch) { if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0); } else { if (!hasFinally) throw new Error("try statement without catch or finally"); if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc); } } } }, abrupt: function abrupt(type, arg) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.tryLoc <= this.prev && hasOwn.call(entry, "finallyLoc") && this.prev < entry.finallyLoc) { var finallyEntry = entry; break; } } finallyEntry && ("break" === type || "continue" === type) && finallyEntry.tryLoc <= arg && arg <= finallyEntry.finallyLoc && (finallyEntry = null); var record = finallyEntry ? finallyEntry.completion : {}; return record.type = type, record.arg = arg, finallyEntry ? (this.method = "next", this.next = finallyEntry.finallyLoc, ContinueSentinel) : this.complete(record); }, complete: function complete(record, afterLoc) { if ("throw" === record.type) throw record.arg; return "break" === record.type || "continue" === record.type ? this.next = record.arg : "return" === record.type ? (this.rval = this.arg = record.arg, this.method = "return", this.next = "end") : "normal" === record.type && afterLoc && (this.next = afterLoc), ContinueSentinel; }, finish: function finish(finallyLoc) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.finallyLoc === finallyLoc) return this.complete(entry.completion, entry.afterLoc), resetTryEntry(entry), ContinueSentinel; } }, "catch": function _catch(tryLoc) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.tryLoc === tryLoc) { var record = entry.completion; if ("throw" === record.type) { var thrown = record.arg; resetTryEntry(entry); } return thrown; } } throw new Error("illegal catch attempt"); }, delegateYield: function delegateYield(iterable, resultName, nextLoc) { return this.delegate = { iterator: values(iterable), resultName: resultName, nextLoc: nextLoc }, "next" === this.method && (this.arg = undefined), ContinueSentinel; } }, exports; }
10
+ function _regeneratorRuntime() { "use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ _regeneratorRuntime = function _regeneratorRuntime() { return e; }; var t, e = {}, r = Object.prototype, n = r.hasOwnProperty, o = Object.defineProperty || function (t, e, r) { t[e] = r.value; }, i = "function" == typeof Symbol ? Symbol : {}, a = i.iterator || "@@iterator", c = i.asyncIterator || "@@asyncIterator", u = i.toStringTag || "@@toStringTag"; function define(t, e, r) { return Object.defineProperty(t, e, { value: r, enumerable: !0, configurable: !0, writable: !0 }), t[e]; } try { define({}, ""); } catch (t) { define = function define(t, e, r) { return t[e] = r; }; } function wrap(t, e, r, n) { var i = e && e.prototype instanceof Generator ? e : Generator, a = Object.create(i.prototype), c = new Context(n || []); return o(a, "_invoke", { value: makeInvokeMethod(t, r, c) }), a; } function tryCatch(t, e, r) { try { return { type: "normal", arg: t.call(e, r) }; } catch (t) { return { type: "throw", arg: t }; } } e.wrap = wrap; var h = "suspendedStart", l = "suspendedYield", f = "executing", s = "completed", y = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var p = {}; define(p, a, function () { return this; }); var d = Object.getPrototypeOf, v = d && d(d(values([]))); v && v !== r && n.call(v, a) && (p = v); var g = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(p); function defineIteratorMethods(t) { ["next", "throw", "return"].forEach(function (e) { define(t, e, function (t) { return this._invoke(e, t); }); }); } function AsyncIterator(t, e) { function invoke(r, o, i, a) { var c = tryCatch(t[r], t, o); if ("throw" !== c.type) { var u = c.arg, h = u.value; return h && "object" == _typeof(h) && n.call(h, "__await") ? e.resolve(h.__await).then(function (t) { invoke("next", t, i, a); }, function (t) { invoke("throw", t, i, a); }) : e.resolve(h).then(function (t) { u.value = t, i(u); }, function (t) { return invoke("throw", t, i, a); }); } a(c.arg); } var r; o(this, "_invoke", { value: function value(t, n) { function callInvokeWithMethodAndArg() { return new e(function (e, r) { invoke(t, n, e, r); }); } return r = r ? r.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); } }); } function makeInvokeMethod(e, r, n) { var o = h; return function (i, a) { if (o === f) throw new Error("Generator is already running"); if (o === s) { if ("throw" === i) throw a; return { value: t, done: !0 }; } for (n.method = i, n.arg = a;;) { var c = n.delegate; if (c) { var u = maybeInvokeDelegate(c, n); if (u) { if (u === y) continue; return u; } } if ("next" === n.method) n.sent = n._sent = n.arg;else if ("throw" === n.method) { if (o === h) throw o = s, n.arg; n.dispatchException(n.arg); } else "return" === n.method && n.abrupt("return", n.arg); o = f; var p = tryCatch(e, r, n); if ("normal" === p.type) { if (o = n.done ? s : l, p.arg === y) continue; return { value: p.arg, done: n.done }; } "throw" === p.type && (o = s, n.method = "throw", n.arg = p.arg); } }; } function maybeInvokeDelegate(e, r) { var n = r.method, o = e.iterator[n]; if (o === t) return r.delegate = null, "throw" === n && e.iterator["return"] && (r.method = "return", r.arg = t, maybeInvokeDelegate(e, r), "throw" === r.method) || "return" !== n && (r.method = "throw", r.arg = new TypeError("The iterator does not provide a '" + n + "' method")), y; var i = tryCatch(o, e.iterator, r.arg); if ("throw" === i.type) return r.method = "throw", r.arg = i.arg, r.delegate = null, y; var a = i.arg; return a ? a.done ? (r[e.resultName] = a.value, r.next = e.nextLoc, "return" !== r.method && (r.method = "next", r.arg = t), r.delegate = null, y) : a : (r.method = "throw", r.arg = new TypeError("iterator result is not an object"), r.delegate = null, y); } function pushTryEntry(t) { var e = { tryLoc: t[0] }; 1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e); } function resetTryEntry(t) { var e = t.completion || {}; e.type = "normal", delete e.arg, t.completion = e; } function Context(t) { this.tryEntries = [{ tryLoc: "root" }], t.forEach(pushTryEntry, this), this.reset(!0); } function values(e) { if (e || "" === e) { var r = e[a]; if (r) return r.call(e); if ("function" == typeof e.next) return e; if (!isNaN(e.length)) { var o = -1, i = function next() { for (; ++o < e.length;) if (n.call(e, o)) return next.value = e[o], next.done = !1, next; return next.value = t, next.done = !0, next; }; return i.next = i; } } throw new TypeError(_typeof(e) + " is not iterable"); } return GeneratorFunction.prototype = GeneratorFunctionPrototype, o(g, "constructor", { value: GeneratorFunctionPrototype, configurable: !0 }), o(GeneratorFunctionPrototype, "constructor", { value: GeneratorFunction, configurable: !0 }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, u, "GeneratorFunction"), e.isGeneratorFunction = function (t) { var e = "function" == typeof t && t.constructor; return !!e && (e === GeneratorFunction || "GeneratorFunction" === (e.displayName || e.name)); }, e.mark = function (t) { return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, define(t, u, "GeneratorFunction")), t.prototype = Object.create(g), t; }, e.awrap = function (t) { return { __await: t }; }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, c, function () { return this; }), e.AsyncIterator = AsyncIterator, e.async = function (t, r, n, o, i) { void 0 === i && (i = Promise); var a = new AsyncIterator(wrap(t, r, n, o), i); return e.isGeneratorFunction(r) ? a : a.next().then(function (t) { return t.done ? t.value : a.next(); }); }, defineIteratorMethods(g), define(g, u, "Generator"), define(g, a, function () { return this; }), define(g, "toString", function () { return "[object Generator]"; }), e.keys = function (t) { var e = Object(t), r = []; for (var n in e) r.push(n); return r.reverse(), function next() { for (; r.length;) { var t = r.pop(); if (t in e) return next.value = t, next.done = !1, next; } return next.done = !0, next; }; }, e.values = values, Context.prototype = { constructor: Context, reset: function reset(e) { if (this.prev = 0, this.next = 0, this.sent = this._sent = t, this.done = !1, this.delegate = null, this.method = "next", this.arg = t, this.tryEntries.forEach(resetTryEntry), !e) for (var r in this) "t" === r.charAt(0) && n.call(this, r) && !isNaN(+r.slice(1)) && (this[r] = t); }, stop: function stop() { this.done = !0; var t = this.tryEntries[0].completion; if ("throw" === t.type) throw t.arg; return this.rval; }, dispatchException: function dispatchException(e) { if (this.done) throw e; var r = this; function handle(n, o) { return a.type = "throw", a.arg = e, r.next = n, o && (r.method = "next", r.arg = t), !!o; } for (var o = this.tryEntries.length - 1; o >= 0; --o) { var i = this.tryEntries[o], a = i.completion; if ("root" === i.tryLoc) return handle("end"); if (i.tryLoc <= this.prev) { var c = n.call(i, "catchLoc"), u = n.call(i, "finallyLoc"); if (c && u) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } else if (c) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); } else { if (!u) throw new Error("try statement without catch or finally"); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } } } }, abrupt: function abrupt(t, e) { for (var r = this.tryEntries.length - 1; r >= 0; --r) { var o = this.tryEntries[r]; if (o.tryLoc <= this.prev && n.call(o, "finallyLoc") && this.prev < o.finallyLoc) { var i = o; break; } } i && ("break" === t || "continue" === t) && i.tryLoc <= e && e <= i.finallyLoc && (i = null); var a = i ? i.completion : {}; return a.type = t, a.arg = e, i ? (this.method = "next", this.next = i.finallyLoc, y) : this.complete(a); }, complete: function complete(t, e) { if ("throw" === t.type) throw t.arg; return "break" === t.type || "continue" === t.type ? this.next = t.arg : "return" === t.type ? (this.rval = this.arg = t.arg, this.method = "return", this.next = "end") : "normal" === t.type && e && (this.next = e), y; }, finish: function finish(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.finallyLoc === t) return this.complete(r.completion, r.afterLoc), resetTryEntry(r), y; } }, "catch": function _catch(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.tryLoc === t) { var n = r.completion; if ("throw" === n.type) { var o = n.arg; resetTryEntry(r); } return o; } } throw new Error("illegal catch attempt"); }, delegateYield: function delegateYield(e, r, n) { return this.delegate = { iterator: values(e), resultName: r, nextLoc: n }, "next" === this.method && (this.arg = t), y; } }, e; }
11
11
  function _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e4) { throw _e4; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e5) { didErr = true; err = _e5; }, f: function f() { try { if (!normalCompletion && it["return"] != null) it["return"](); } finally { if (didErr) throw err; } } }; }
12
12
  function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
13
13
  function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
@@ -26,7 +26,7 @@ function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Re
26
26
  function _isNativeFunction(fn) { return Function.toString.call(fn).indexOf("[native code]") !== -1; }
27
27
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
28
28
  function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
29
- function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
29
+ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
30
30
  function e(e, r) {
31
31
  return function (e) {
32
32
  if (Array.isArray(e)) return e;
@@ -82,19 +82,20 @@ function n(e) {
82
82
  function i() {
83
83
  /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
84
84
  i = function i() {
85
- return e;
85
+ return t;
86
86
  };
87
- var e = {},
88
- t = Object.prototype,
89
- r = t.hasOwnProperty,
90
- o = Object.defineProperty || function (e, t, r) {
87
+ var e,
88
+ t = {},
89
+ r = Object.prototype,
90
+ o = r.hasOwnProperty,
91
+ s = Object.defineProperty || function (e, t, r) {
91
92
  e[t] = r.value;
92
93
  },
93
- s = "function" == typeof Symbol ? Symbol : {},
94
- a = s.iterator || "@@iterator",
95
- c = s.asyncIterator || "@@asyncIterator",
96
- u = s.toStringTag || "@@toStringTag";
97
- function l(e, t, r) {
94
+ a = "function" == typeof Symbol ? Symbol : {},
95
+ c = a.iterator || "@@iterator",
96
+ u = a.asyncIterator || "@@asyncIterator",
97
+ l = a.toStringTag || "@@toStringTag";
98
+ function d(e, t, r) {
98
99
  return Object.defineProperty(e, t, {
99
100
  value: r,
100
101
  enumerable: !0,
@@ -103,21 +104,21 @@ function i() {
103
104
  }), e[t];
104
105
  }
105
106
  try {
106
- l({}, "");
107
+ d({}, "");
107
108
  } catch (e) {
108
- l = function l(e, t, r) {
109
+ d = function d(e, t, r) {
109
110
  return e[t] = r;
110
111
  };
111
112
  }
112
- function d(e, t, r, n) {
113
- var i = t && t.prototype instanceof p ? t : p,
114
- s = Object.create(i.prototype),
115
- a = new E(n || []);
116
- return o(s, "_invoke", {
117
- value: w(e, r, a)
118
- }), s;
113
+ function h(e, t, r, n) {
114
+ var i = t && t.prototype instanceof g ? t : g,
115
+ o = Object.create(i.prototype),
116
+ a = new R(n || []);
117
+ return s(o, "_invoke", {
118
+ value: C(e, r, a)
119
+ }), o;
119
120
  }
120
- function h(e, t, r) {
121
+ function _(e, t, r) {
121
122
  try {
122
123
  return {
123
124
  type: "normal",
@@ -130,166 +131,165 @@ function i() {
130
131
  };
131
132
  }
132
133
  }
133
- e.wrap = d;
134
- var _ = {};
135
- function p() {}
136
- function m() {}
137
- function f() {}
138
- var v = {};
139
- l(v, a, function () {
134
+ t.wrap = h;
135
+ var p = "suspendedStart",
136
+ m = "suspendedYield",
137
+ f = "executing",
138
+ v = "completed",
139
+ b = {};
140
+ function g() {}
141
+ function y() {}
142
+ function k() {}
143
+ var S = {};
144
+ d(S, c, function () {
140
145
  return this;
141
146
  });
142
- var b = Object.getPrototypeOf,
143
- g = b && b(b(C([])));
144
- g && g !== t && r.call(g, a) && (v = g);
145
- var y = f.prototype = p.prototype = Object.create(v);
146
- function k(e) {
147
+ var w = Object.getPrototypeOf,
148
+ A = w && w(w(I([])));
149
+ A && A !== r && o.call(A, c) && (S = A);
150
+ var T = k.prototype = g.prototype = Object.create(S);
151
+ function E(e) {
147
152
  ["next", "throw", "return"].forEach(function (t) {
148
- l(e, t, function (e) {
153
+ d(e, t, function (e) {
149
154
  return this._invoke(t, e);
150
155
  });
151
156
  });
152
157
  }
153
- function S(e, t) {
154
- function i(o, s, a, c) {
155
- var u = h(e[o], e, s);
158
+ function O(e, t) {
159
+ function r(i, s, a, c) {
160
+ var u = _(e[i], e, s);
156
161
  if ("throw" !== u.type) {
157
162
  var l = u.arg,
158
163
  d = l.value;
159
- return d && "object" == n(d) && r.call(d, "__await") ? t.resolve(d.__await).then(function (e) {
160
- i("next", e, a, c);
164
+ return d && "object" == n(d) && o.call(d, "__await") ? t.resolve(d.__await).then(function (e) {
165
+ r("next", e, a, c);
161
166
  }, function (e) {
162
- i("throw", e, a, c);
167
+ r("throw", e, a, c);
163
168
  }) : t.resolve(d).then(function (e) {
164
169
  l.value = e, a(l);
165
170
  }, function (e) {
166
- return i("throw", e, a, c);
171
+ return r("throw", e, a, c);
167
172
  });
168
173
  }
169
174
  c(u.arg);
170
175
  }
171
- var s;
172
- o(this, "_invoke", {
173
- value: function value(e, r) {
174
- function n() {
175
- return new t(function (t, n) {
176
- i(e, r, t, n);
176
+ var i;
177
+ s(this, "_invoke", {
178
+ value: function value(e, n) {
179
+ function o() {
180
+ return new t(function (t, i) {
181
+ r(e, n, t, i);
177
182
  });
178
183
  }
179
- return s = s ? s.then(n, n) : n();
184
+ return i = i ? i.then(o, o) : o();
180
185
  }
181
186
  });
182
187
  }
183
- function w(e, t, r) {
184
- var n = "suspendedStart";
185
- return function (i, o) {
186
- if ("executing" === n) throw new Error("Generator is already running");
187
- if ("completed" === n) {
188
- if ("throw" === i) throw o;
189
- return P();
188
+ function C(t, r, n) {
189
+ var i = p;
190
+ return function (o, s) {
191
+ if (i === f) throw new Error("Generator is already running");
192
+ if (i === v) {
193
+ if ("throw" === o) throw s;
194
+ return {
195
+ value: e,
196
+ done: !0
197
+ };
190
198
  }
191
- for (r.method = i, r.arg = o;;) {
192
- var s = r.delegate;
193
- if (s) {
194
- var a = A(s, r);
195
- if (a) {
196
- if (a === _) continue;
197
- return a;
199
+ for (n.method = o, n.arg = s;;) {
200
+ var a = n.delegate;
201
+ if (a) {
202
+ var c = P(a, n);
203
+ if (c) {
204
+ if (c === b) continue;
205
+ return c;
198
206
  }
199
207
  }
200
- if ("next" === r.method) r.sent = r._sent = r.arg;else if ("throw" === r.method) {
201
- if ("suspendedStart" === n) throw n = "completed", r.arg;
202
- r.dispatchException(r.arg);
203
- } else "return" === r.method && r.abrupt("return", r.arg);
204
- n = "executing";
205
- var c = h(e, t, r);
206
- if ("normal" === c.type) {
207
- if (n = r.done ? "completed" : "suspendedYield", c.arg === _) continue;
208
+ if ("next" === n.method) n.sent = n._sent = n.arg;else if ("throw" === n.method) {
209
+ if (i === p) throw i = v, n.arg;
210
+ n.dispatchException(n.arg);
211
+ } else "return" === n.method && n.abrupt("return", n.arg);
212
+ i = f;
213
+ var u = _(t, r, n);
214
+ if ("normal" === u.type) {
215
+ if (i = n.done ? v : m, u.arg === b) continue;
208
216
  return {
209
- value: c.arg,
210
- done: r.done
217
+ value: u.arg,
218
+ done: n.done
211
219
  };
212
220
  }
213
- "throw" === c.type && (n = "completed", r.method = "throw", r.arg = c.arg);
221
+ "throw" === u.type && (i = v, n.method = "throw", n.arg = u.arg);
214
222
  }
215
223
  };
216
224
  }
217
- function A(e, t) {
218
- var r = t.method,
219
- n = e.iterator[r];
220
- if (void 0 === n) return t.delegate = null, "throw" === r && e.iterator["return"] && (t.method = "return", t.arg = void 0, A(e, t), "throw" === t.method) || "return" !== r && (t.method = "throw", t.arg = new TypeError("The iterator does not provide a '" + r + "' method")), _;
221
- var i = h(n, e.iterator, t.arg);
222
- if ("throw" === i.type) return t.method = "throw", t.arg = i.arg, t.delegate = null, _;
223
- var o = i.arg;
224
- return o ? o.done ? (t[e.resultName] = o.value, t.next = e.nextLoc, "return" !== t.method && (t.method = "next", t.arg = void 0), t.delegate = null, _) : o : (t.method = "throw", t.arg = new TypeError("iterator result is not an object"), t.delegate = null, _);
225
+ function P(t, r) {
226
+ var n = r.method,
227
+ i = t.iterator[n];
228
+ if (i === e) return r.delegate = null, "throw" === n && t.iterator["return"] && (r.method = "return", r.arg = e, P(t, r), "throw" === r.method) || "return" !== n && (r.method = "throw", r.arg = new TypeError("The iterator does not provide a '" + n + "' method")), b;
229
+ var o = _(i, t.iterator, r.arg);
230
+ if ("throw" === o.type) return r.method = "throw", r.arg = o.arg, r.delegate = null, b;
231
+ var s = o.arg;
232
+ return s ? s.done ? (r[t.resultName] = s.value, r.next = t.nextLoc, "return" !== r.method && (r.method = "next", r.arg = e), r.delegate = null, b) : s : (r.method = "throw", r.arg = new TypeError("iterator result is not an object"), r.delegate = null, b);
225
233
  }
226
- function T(e) {
234
+ function B(e) {
227
235
  var t = {
228
236
  tryLoc: e[0]
229
237
  };
230
238
  1 in e && (t.catchLoc = e[1]), 2 in e && (t.finallyLoc = e[2], t.afterLoc = e[3]), this.tryEntries.push(t);
231
239
  }
232
- function O(e) {
240
+ function x(e) {
233
241
  var t = e.completion || {};
234
242
  t.type = "normal", delete t.arg, e.completion = t;
235
243
  }
236
- function E(e) {
244
+ function R(e) {
237
245
  this.tryEntries = [{
238
246
  tryLoc: "root"
239
- }], e.forEach(T, this), this.reset(!0);
247
+ }], e.forEach(B, this), this.reset(!0);
240
248
  }
241
- function C(e) {
242
- if (e) {
243
- var t = e[a];
244
- if (t) return t.call(e);
245
- if ("function" == typeof e.next) return e;
246
- if (!isNaN(e.length)) {
247
- var n = -1,
248
- i = function t() {
249
- for (; ++n < e.length;) if (r.call(e, n)) return t.value = e[n], t.done = !1, t;
250
- return t.value = void 0, t.done = !0, t;
249
+ function I(t) {
250
+ if (t || "" === t) {
251
+ var r = t[c];
252
+ if (r) return r.call(t);
253
+ if ("function" == typeof t.next) return t;
254
+ if (!isNaN(t.length)) {
255
+ var i = -1,
256
+ s = function r() {
257
+ for (; ++i < t.length;) if (o.call(t, i)) return r.value = t[i], r.done = !1, r;
258
+ return r.value = e, r.done = !0, r;
251
259
  };
252
- return i.next = i;
260
+ return s.next = s;
253
261
  }
254
262
  }
255
- return {
256
- next: P
257
- };
258
- }
259
- function P() {
260
- return {
261
- value: void 0,
262
- done: !0
263
- };
263
+ throw new TypeError(n(t) + " is not iterable");
264
264
  }
265
- return m.prototype = f, o(y, "constructor", {
266
- value: f,
265
+ return y.prototype = k, s(T, "constructor", {
266
+ value: k,
267
267
  configurable: !0
268
- }), o(f, "constructor", {
269
- value: m,
268
+ }), s(k, "constructor", {
269
+ value: y,
270
270
  configurable: !0
271
- }), m.displayName = l(f, u, "GeneratorFunction"), e.isGeneratorFunction = function (e) {
271
+ }), y.displayName = d(k, l, "GeneratorFunction"), t.isGeneratorFunction = function (e) {
272
272
  var t = "function" == typeof e && e.constructor;
273
- return !!t && (t === m || "GeneratorFunction" === (t.displayName || t.name));
274
- }, e.mark = function (e) {
275
- return Object.setPrototypeOf ? Object.setPrototypeOf(e, f) : (e.__proto__ = f, l(e, u, "GeneratorFunction")), e.prototype = Object.create(y), e;
276
- }, e.awrap = function (e) {
273
+ return !!t && (t === y || "GeneratorFunction" === (t.displayName || t.name));
274
+ }, t.mark = function (e) {
275
+ return Object.setPrototypeOf ? Object.setPrototypeOf(e, k) : (e.__proto__ = k, d(e, l, "GeneratorFunction")), e.prototype = Object.create(T), e;
276
+ }, t.awrap = function (e) {
277
277
  return {
278
278
  __await: e
279
279
  };
280
- }, k(S.prototype), l(S.prototype, c, function () {
280
+ }, E(O.prototype), d(O.prototype, u, function () {
281
281
  return this;
282
- }), e.AsyncIterator = S, e.async = function (t, r, n, i, o) {
282
+ }), t.AsyncIterator = O, t.async = function (e, r, n, i, o) {
283
283
  void 0 === o && (o = Promise);
284
- var s = new S(d(t, r, n, i), o);
285
- return e.isGeneratorFunction(r) ? s : s.next().then(function (e) {
284
+ var s = new O(h(e, r, n, i), o);
285
+ return t.isGeneratorFunction(r) ? s : s.next().then(function (e) {
286
286
  return e.done ? e.value : s.next();
287
287
  });
288
- }, k(y), l(y, u, "Generator"), l(y, a, function () {
288
+ }, E(T), d(T, l, "Generator"), d(T, c, function () {
289
289
  return this;
290
- }), l(y, "toString", function () {
290
+ }), d(T, "toString", function () {
291
291
  return "[object Generator]";
292
- }), e.keys = function (e) {
292
+ }), t.keys = function (e) {
293
293
  var t = Object(e),
294
294
  r = [];
295
295
  for (var n in t) r.push(n);
@@ -300,10 +300,10 @@ function i() {
300
300
  }
301
301
  return e.done = !0, e;
302
302
  };
303
- }, e.values = C, E.prototype = {
304
- constructor: E,
305
- reset: function reset(e) {
306
- if (this.prev = 0, this.next = 0, this.sent = this._sent = void 0, this.done = !1, this.delegate = null, this.method = "next", this.arg = void 0, this.tryEntries.forEach(O), !e) for (var t in this) "t" === t.charAt(0) && r.call(this, t) && !isNaN(+t.slice(1)) && (this[t] = void 0);
303
+ }, t.values = I, R.prototype = {
304
+ constructor: R,
305
+ reset: function reset(t) {
306
+ if (this.prev = 0, this.next = 0, this.sent = this._sent = e, this.done = !1, this.delegate = null, this.method = "next", this.arg = e, this.tryEntries.forEach(x), !t) for (var r in this) "t" === r.charAt(0) && o.call(this, r) && !isNaN(+r.slice(1)) && (this[r] = e);
307
307
  },
308
308
  stop: function stop() {
309
309
  this.done = !0;
@@ -311,51 +311,51 @@ function i() {
311
311
  if ("throw" === e.type) throw e.arg;
312
312
  return this.rval;
313
313
  },
314
- dispatchException: function dispatchException(e) {
315
- if (this.done) throw e;
316
- var t = this;
317
- function n(r, n) {
318
- return s.type = "throw", s.arg = e, t.next = r, n && (t.method = "next", t.arg = void 0), !!n;
314
+ dispatchException: function dispatchException(t) {
315
+ if (this.done) throw t;
316
+ var r = this;
317
+ function n(n, i) {
318
+ return a.type = "throw", a.arg = t, r.next = n, i && (r.method = "next", r.arg = e), !!i;
319
319
  }
320
320
  for (var i = this.tryEntries.length - 1; i >= 0; --i) {
321
- var o = this.tryEntries[i],
322
- s = o.completion;
323
- if ("root" === o.tryLoc) return n("end");
324
- if (o.tryLoc <= this.prev) {
325
- var a = r.call(o, "catchLoc"),
326
- c = r.call(o, "finallyLoc");
327
- if (a && c) {
328
- if (this.prev < o.catchLoc) return n(o.catchLoc, !0);
329
- if (this.prev < o.finallyLoc) return n(o.finallyLoc);
330
- } else if (a) {
331
- if (this.prev < o.catchLoc) return n(o.catchLoc, !0);
321
+ var s = this.tryEntries[i],
322
+ a = s.completion;
323
+ if ("root" === s.tryLoc) return n("end");
324
+ if (s.tryLoc <= this.prev) {
325
+ var c = o.call(s, "catchLoc"),
326
+ u = o.call(s, "finallyLoc");
327
+ if (c && u) {
328
+ if (this.prev < s.catchLoc) return n(s.catchLoc, !0);
329
+ if (this.prev < s.finallyLoc) return n(s.finallyLoc);
330
+ } else if (c) {
331
+ if (this.prev < s.catchLoc) return n(s.catchLoc, !0);
332
332
  } else {
333
- if (!c) throw new Error("try statement without catch or finally");
334
- if (this.prev < o.finallyLoc) return n(o.finallyLoc);
333
+ if (!u) throw new Error("try statement without catch or finally");
334
+ if (this.prev < s.finallyLoc) return n(s.finallyLoc);
335
335
  }
336
336
  }
337
337
  }
338
338
  },
339
339
  abrupt: function abrupt(e, t) {
340
- for (var n = this.tryEntries.length - 1; n >= 0; --n) {
341
- var i = this.tryEntries[n];
342
- if (i.tryLoc <= this.prev && r.call(i, "finallyLoc") && this.prev < i.finallyLoc) {
343
- var o = i;
340
+ for (var r = this.tryEntries.length - 1; r >= 0; --r) {
341
+ var n = this.tryEntries[r];
342
+ if (n.tryLoc <= this.prev && o.call(n, "finallyLoc") && this.prev < n.finallyLoc) {
343
+ var i = n;
344
344
  break;
345
345
  }
346
346
  }
347
- o && ("break" === e || "continue" === e) && o.tryLoc <= t && t <= o.finallyLoc && (o = null);
348
- var s = o ? o.completion : {};
349
- return s.type = e, s.arg = t, o ? (this.method = "next", this.next = o.finallyLoc, _) : this.complete(s);
347
+ i && ("break" === e || "continue" === e) && i.tryLoc <= t && t <= i.finallyLoc && (i = null);
348
+ var s = i ? i.completion : {};
349
+ return s.type = e, s.arg = t, i ? (this.method = "next", this.next = i.finallyLoc, b) : this.complete(s);
350
350
  },
351
351
  complete: function complete(e, t) {
352
352
  if ("throw" === e.type) throw e.arg;
353
- return "break" === e.type || "continue" === e.type ? this.next = e.arg : "return" === e.type ? (this.rval = this.arg = e.arg, this.method = "return", this.next = "end") : "normal" === e.type && t && (this.next = t), _;
353
+ return "break" === e.type || "continue" === e.type ? this.next = e.arg : "return" === e.type ? (this.rval = this.arg = e.arg, this.method = "return", this.next = "end") : "normal" === e.type && t && (this.next = t), b;
354
354
  },
355
355
  finish: function finish(e) {
356
356
  for (var t = this.tryEntries.length - 1; t >= 0; --t) {
357
357
  var r = this.tryEntries[t];
358
- if (r.finallyLoc === e) return this.complete(r.completion, r.afterLoc), O(r), _;
358
+ if (r.finallyLoc === e) return this.complete(r.completion, r.afterLoc), x(r), b;
359
359
  }
360
360
  },
361
361
  "catch": function _catch(e) {
@@ -365,21 +365,21 @@ function i() {
365
365
  var n = r.completion;
366
366
  if ("throw" === n.type) {
367
367
  var i = n.arg;
368
- O(r);
368
+ x(r);
369
369
  }
370
370
  return i;
371
371
  }
372
372
  }
373
373
  throw new Error("illegal catch attempt");
374
374
  },
375
- delegateYield: function delegateYield(e, t, r) {
375
+ delegateYield: function delegateYield(t, r, n) {
376
376
  return this.delegate = {
377
- iterator: C(e),
378
- resultName: t,
379
- nextLoc: r
380
- }, "next" === this.method && (this.arg = void 0), _;
377
+ iterator: I(t),
378
+ resultName: r,
379
+ nextLoc: n
380
+ }, "next" === this.method && (this.arg = e), b;
381
381
  }
382
- }, e;
382
+ }, t;
383
383
  }
384
384
  function o(e, t) {
385
385
  for (var r = 0; r < t.length; r++) {
@@ -514,7 +514,7 @@ function S(e, t, r, n) {
514
514
  c((n = n.apply(e, t || [])).next());
515
515
  });
516
516
  }
517
- !function (e) {
517
+ "function" == typeof SuppressedError && SuppressedError, function (e) {
518
518
  e.emailMagicLinks = "emailMagicLinks", e.oauth = "oauth", e.otp = "otp", e.crypto = "crypto", e.passwords = "passwords";
519
519
  }(f || (f = {})), function (e) {
520
520
  e.Google = "google", e.Microsoft = "microsoft", e.Apple = "apple", e.Github = "github", e.GitLab = "gitlab", e.Facebook = "facebook", e.Discord = "discord", e.Salesforce = "salesforce", e.Slack = "slack", e.Amazon = "amazon", e.Bitbucket = "bitbucket", e.LinkedIn = "linkedin", e.Coinbase = "coinbase", e.Twitch = "twitch", e.Twitter = "twitter", e.TikTok = "tiktok", e.Snapchat = "snapchat", e.Figma = "figma", e.Yahoo = "yahoo";
@@ -530,8 +530,8 @@ function S(e, t, r, n) {
530
530
  var w,
531
531
  A,
532
532
  T,
533
- O,
534
533
  E,
534
+ O,
535
535
  C = function (e) {
536
536
  c(r, d(Error));
537
537
  var t = u(r);
@@ -587,7 +587,7 @@ var w,
587
587
  e.Discovery = "Discovery", e.Organization = "Organization", e.PasswordReset = "PasswordReset";
588
588
  }(T || (T = {})), function (e) {
589
589
  e.Google = "google", e.Microsoft = "microsoft";
590
- }(O || (O = {})), (E || (E = {})).RequiredCatcha = "Catcha Required";
590
+ }(E || (E = {})), (O || (O = {})).RequiredCatcha = "Catcha Required";
591
591
  var I,
592
592
  D = function (e) {
593
593
  c(r, d(Error));
@@ -647,7 +647,7 @@ function L(e) {
647
647
  e.next = 26;
648
648
  break;
649
649
  }
650
- throw new D(E.RequiredCatcha);
650
+ throw new D(O.RequiredCatcha);
651
651
  case 26:
652
652
  throw new C(r, "Invalid response from the Stytch servers.");
653
653
  case 27:
@@ -964,7 +964,7 @@ var Y,
964
964
  case 0:
965
965
  return r.next = 2, this.state;
966
966
  case 2:
967
- if (n = r.sent, o = n.enabled, s = n.executeRecaptcha, e.type !== E.RequiredCatcha || !o) {
967
+ if (n = r.sent, o = n.enabled, s = n.executeRecaptcha, e.type !== O.RequiredCatcha || !o) {
968
968
  r.next = 14;
969
969
  break;
970
970
  }
@@ -1595,14 +1595,14 @@ var ne = Promise.resolve({
1595
1595
  }));
1596
1596
  }
1597
1597
  }, this.google = {
1598
- start: this.startOAuthFlow(O.Google),
1598
+ start: this.startOAuthFlow(E.Google),
1599
1599
  discovery: {
1600
- start: this.startDiscoveryOAuthFlow(O.Google)
1600
+ start: this.startDiscoveryOAuthFlow(E.Google)
1601
1601
  }
1602
1602
  }, this.microsoft = {
1603
- start: this.startOAuthFlow(O.Microsoft),
1603
+ start: this.startOAuthFlow(E.Microsoft),
1604
1604
  discovery: {
1605
- start: this.startDiscoveryOAuthFlow(O.Microsoft)
1605
+ start: this.startDiscoveryOAuthFlow(E.Microsoft)
1606
1606
  }
1607
1607
  };
1608
1608
  }
@@ -2175,7 +2175,7 @@ function Ae(e, t, r, n) {
2175
2175
  c((n = n.apply(e, t || [])).next());
2176
2176
  });
2177
2177
  }
2178
- we.REFRESH_INTERVAL_MS = 18e4, function (e) {
2178
+ we.REFRESH_INTERVAL_MS = 18e4, "function" == typeof SuppressedError && SuppressedError, function (e) {
2179
2179
  e.emailMagicLinks = "emailMagicLinks", e.oauth = "oauth", e.otp = "otp", e.crypto = "crypto", e.passwords = "passwords";
2180
2180
  }(de || (de = {})), function (e) {
2181
2181
  e.Google = "google", e.Microsoft = "microsoft", e.Apple = "apple", e.Github = "github", e.GitLab = "gitlab", e.Facebook = "facebook", e.Discord = "discord", e.Salesforce = "salesforce", e.Slack = "slack", e.Amazon = "amazon", e.Bitbucket = "bitbucket", e.LinkedIn = "linkedin", e.Coinbase = "coinbase", e.Twitch = "twitch", e.Twitter = "twitter", e.TikTok = "tiktok", e.Snapchat = "snapchat", e.Figma = "figma", e.Yahoo = "yahoo";
@@ -2210,7 +2210,7 @@ var Te = /*#__PURE__*/function (_Error) {
2210
2210
  }(ye || (ye = {})), function (e) {
2211
2211
  e.RequiredCatcha = "Catcha Required";
2212
2212
  }(ke || (ke = {}));
2213
- var Oe = function Oe(e) {
2213
+ var Ee = function Ee(e) {
2214
2214
  var t = {
2215
2215
  isObject: function isObject(r, n) {
2216
2216
  if (!("object" == _typeof(n) && !Array.isArray(n) && null !== n)) throw new Te(e, r + " must be an object.");
@@ -2262,10 +2262,10 @@ var Oe = function Oe(e) {
2262
2262
  };
2263
2263
  return t;
2264
2264
  };
2265
- var Ee;
2265
+ var Oe;
2266
2266
  !function (e) {
2267
2267
  e.LoginOrCreateEML = "login_or_create_eml", e.LoginOrCreateOTP = "login_or_create_otp", e.ResetPassword = "reset_password";
2268
- }(Ee || (Ee = {})), Promise.resolve({
2268
+ }(Oe || (Oe = {})), Promise.resolve({
2269
2269
  pkceRequiredForEmailMagicLinks: !1
2270
2270
  }), Promise.resolve({
2271
2271
  pkceRequiredForPasswordResets: !1
@@ -2387,7 +2387,7 @@ var Pe = /*#__PURE__*/function () {
2387
2387
  return _regeneratorRuntime().wrap(function _callee6$(_context6) {
2388
2388
  while (1) switch (_context6.prev = _context6.next) {
2389
2389
  case 0:
2390
- Oe("stytch.passwords.authenticate").isString("org_id", e.organization_id).isString("password", e.password).isString("email_address", e.email_address).isNumber("session_duration_minutes", e.session_duration_minutes).isOptionalString("locale", e.locale);
2390
+ Ee("stytch.passwords.authenticate").isString("org_id", e.organization_id).isString("password", e.password).isString("email_address", e.email_address).isNumber("session_duration_minutes", e.session_duration_minutes).isOptionalString("locale", e.locale);
2391
2391
  _context6.next = 3;
2392
2392
  return this._pkceManager.getPKPair();
2393
2393
  case 3:
@@ -2447,7 +2447,7 @@ var Pe = /*#__PURE__*/function () {
2447
2447
  return _regeneratorRuntime().wrap(function _callee7$(_context7) {
2448
2448
  while (1) switch (_context7.prev = _context7.next) {
2449
2449
  case 0:
2450
- Oe("stytch.passwords.resetByEmailStart").isString("email", e.email_address).isOptionalString("login_redirect_url", e.login_redirect_url).isOptionalString("reset_password_redirect_url", e.reset_password_redirect_url).isOptionalString("reset_password_template_id", e.reset_password_template_id).isOptionalNumber("reset_password_expiration_minutes", e.reset_password_expiration_minutes);
2450
+ Ee("stytch.passwords.resetByEmailStart").isString("email", e.email_address).isOptionalString("login_redirect_url", e.login_redirect_url).isOptionalString("reset_password_redirect_url", e.reset_password_redirect_url).isOptionalString("reset_password_template_id", e.reset_password_template_id).isOptionalNumber("reset_password_expiration_minutes", e.reset_password_expiration_minutes);
2451
2451
  _context7.next = 3;
2452
2452
  return this.getCodeChallenge();
2453
2453
  case 3:
@@ -2490,7 +2490,7 @@ var Pe = /*#__PURE__*/function () {
2490
2490
  return _regeneratorRuntime().wrap(function _callee8$(_context8) {
2491
2491
  while (1) switch (_context8.prev = _context8.next) {
2492
2492
  case 0:
2493
- Oe("stytch.passwords.resetByEmail").isString("password_reset_token", e.password_reset_token).isString("password", e.password).isNumber("session_duration_minutes", e.session_duration_minutes).isOptionalString("locale", e.locale);
2493
+ Ee("stytch.passwords.resetByEmail").isString("password_reset_token", e.password_reset_token).isString("password", e.password).isNumber("session_duration_minutes", e.session_duration_minutes).isOptionalString("locale", e.locale);
2494
2494
  _context8.next = 3;
2495
2495
  return this.dfpProtectedAuth.getDFPTelemetryIDAndCaptcha();
2496
2496
  case 3:
@@ -2549,7 +2549,7 @@ var Pe = /*#__PURE__*/function () {
2549
2549
  return _regeneratorRuntime().wrap(function _callee9$(_context9) {
2550
2550
  while (1) switch (_context9.prev = _context9.next) {
2551
2551
  case 0:
2552
- Oe("stytch.passwords.resetByExistingPassword").isString("email", e.email_address).isString("existing_password", e.existing_password).isString("new_password", e.new_password).isOptionalString("locale", e.locale);
2552
+ Ee("stytch.passwords.resetByExistingPassword").isString("email", e.email_address).isString("existing_password", e.existing_password).isString("new_password", e.new_password).isOptionalString("locale", e.locale);
2553
2553
  _context9.next = 3;
2554
2554
  return this.dfpProtectedAuth.getDFPTelemetryIDAndCaptcha();
2555
2555
  case 3:
@@ -2603,7 +2603,7 @@ var Pe = /*#__PURE__*/function () {
2603
2603
  return _regeneratorRuntime().wrap(function _callee10$(_context10) {
2604
2604
  while (1) switch (_context10.prev = _context10.next) {
2605
2605
  case 0:
2606
- Oe("stytch.passwords.resetBySession").isString("password", e.password);
2606
+ Ee("stytch.passwords.resetBySession").isString("password", e.password);
2607
2607
  _context10.next = 3;
2608
2608
  return this.dfpProtectedAuth.getDFPTelemetryIDAndCaptcha();
2609
2609
  case 3:
@@ -2614,9 +2614,8 @@ var Pe = /*#__PURE__*/function () {
2614
2614
  return this._networkClient.retriableFetchSDK({
2615
2615
  url: "/b2b/passwords/session/reset",
2616
2616
  method: "POST",
2617
- errorMessage: "Failed to reset session.",
2617
+ errorMessage: "Failed to reset by session.",
2618
2618
  body: {
2619
- organization_id: e.organization_id,
2620
2619
  password: e.password,
2621
2620
  captcha_token: r,
2622
2621
  dfp_telemetry_id: t
@@ -2648,7 +2647,7 @@ var Pe = /*#__PURE__*/function () {
2648
2647
  return _regeneratorRuntime().wrap(function _callee11$(_context11) {
2649
2648
  while (1) switch (_context11.prev = _context11.next) {
2650
2649
  case 0:
2651
- return _context11.abrupt("return", (Oe("stytch.passwords.strengthCheck").isOptionalString("email", e.email_address).isString("password", e.password), this._networkClient.fetchSDK({
2650
+ return _context11.abrupt("return", (Ee("stytch.passwords.strengthCheck").isOptionalString("email", e.email_address).isString("password", e.password), this._networkClient.fetchSDK({
2652
2651
  url: "/b2b/passwords/strength_check",
2653
2652
  method: "POST",
2654
2653
  errorMessage: "Failed to check password strength.",
@@ -2885,7 +2884,7 @@ var Ie = /*#__PURE__*/function () {
2885
2884
  },
2886
2885
  sdk: {
2887
2886
  identifier: "Stytch.js Javascript SDK",
2888
- version: "3.0.0"
2887
+ version: "3.0.2"
2889
2888
  }
2890
2889
  });
2891
2890
  }
@@ -2999,52 +2998,16 @@ var Ie = /*#__PURE__*/function () {
2999
2998
  }]);
3000
2999
  return Ie;
3001
3000
  }();
3002
- var De = /*#__PURE__*/function () {
3003
- function De(e, t) {
3004
- _classCallCheck(this, De);
3005
- this._networkClient = e, this._subscriptionService = t;
3006
- }
3007
- _createClass(De, [{
3008
- key: "resetBySession",
3009
- value: function resetBySession(e) {
3010
- return Ae(this, void 0, void 0, /*#__PURE__*/_regeneratorRuntime().mark(function _callee16() {
3011
- return _regeneratorRuntime().wrap(function _callee16$(_context16) {
3012
- while (1) switch (_context16.prev = _context16.next) {
3013
- case 0:
3014
- Oe("stytch.passwords.resetBySession").isString("password", e.password);
3015
- _context16.next = 3;
3016
- return this._networkClient.fetchSDK({
3017
- url: "/b2b/passwords/session/reset",
3018
- method: "POST",
3019
- errorMessage: "Failed to reset session.",
3020
- body: {
3021
- organization_id: e.organization_id,
3022
- password: e.password,
3023
- session_token: e.session_token
3024
- }
3025
- });
3026
- case 3:
3027
- return _context16.abrupt("return", _context16.sent);
3028
- case 4:
3029
- case "end":
3030
- return _context16.stop();
3031
- }
3032
- }, _callee16, this);
3033
- }));
3034
- }
3035
- }]);
3036
- return De;
3037
- }();
3038
- function Le(e) {
3001
+ function De(e) {
3039
3002
  var t = e.toString(16);
3040
3003
  return 1 === t.length && (t = "0" + t), t;
3041
3004
  }
3042
- var Me = /*#__PURE__*/function () {
3043
- function Me(e, t) {
3044
- _classCallCheck(this, Me);
3005
+ var Le = /*#__PURE__*/function () {
3006
+ function Le(e, t) {
3007
+ _classCallCheck(this, Le);
3045
3008
  this._dataLayer = e, this.namespace = t;
3046
3009
  }
3047
- _createClass(Me, [{
3010
+ _createClass(Le, [{
3048
3011
  key: "key",
3049
3012
  value: function key() {
3050
3013
  return "PKCE_VERIFIER:" + this.namespace;
@@ -3052,21 +3015,21 @@ var Me = /*#__PURE__*/function () {
3052
3015
  }, {
3053
3016
  key: "startPKCETransaction",
3054
3017
  value: function startPKCETransaction() {
3055
- return Ae(this, void 0, void 0, /*#__PURE__*/_regeneratorRuntime().mark(function _callee17() {
3018
+ return Ae(this, void 0, void 0, /*#__PURE__*/_regeneratorRuntime().mark(function _callee16() {
3056
3019
  var e;
3057
- return _regeneratorRuntime().wrap(function _callee17$(_context17) {
3058
- while (1) switch (_context17.prev = _context17.next) {
3020
+ return _regeneratorRuntime().wrap(function _callee16$(_context16) {
3021
+ while (1) switch (_context16.prev = _context16.next) {
3059
3022
  case 0:
3060
- _context17.next = 2;
3061
- return Me.createProofkeyPair();
3023
+ _context16.next = 2;
3024
+ return Le.createProofkeyPair();
3062
3025
  case 2:
3063
- e = _context17.sent;
3064
- return _context17.abrupt("return", (this._dataLayer.setItem(this.key(), JSON.stringify(e)), e));
3026
+ e = _context16.sent;
3027
+ return _context16.abrupt("return", (this._dataLayer.setItem(this.key(), JSON.stringify(e)), e));
3065
3028
  case 4:
3066
3029
  case "end":
3067
- return _context17.stop();
3030
+ return _context16.stop();
3068
3031
  }
3069
- }, _callee17, this);
3032
+ }, _callee16, this);
3070
3033
  }));
3071
3034
  }
3072
3035
  }, {
@@ -3087,39 +3050,39 @@ var Me = /*#__PURE__*/function () {
3087
3050
  }], [{
3088
3051
  key: "createProofkeyPair",
3089
3052
  value: function createProofkeyPair() {
3090
- return Ae(this, void 0, void 0, /*#__PURE__*/_regeneratorRuntime().mark(function _callee18() {
3053
+ return Ae(this, void 0, void 0, /*#__PURE__*/_regeneratorRuntime().mark(function _callee17() {
3091
3054
  var _String$fromCharCode;
3092
3055
  var e, t, r, n;
3093
- return _regeneratorRuntime().wrap(function _callee18$(_context18) {
3094
- while (1) switch (_context18.prev = _context18.next) {
3056
+ return _regeneratorRuntime().wrap(function _callee17$(_context17) {
3057
+ while (1) switch (_context17.prev = _context17.next) {
3095
3058
  case 0:
3096
3059
  e = new Uint32Array(16);
3097
3060
  window.crypto.getRandomValues(e);
3098
- t = Array.from(e).map(Le).join("");
3099
- _context18.next = 5;
3061
+ t = Array.from(e).map(De).join("");
3062
+ _context17.next = 5;
3100
3063
  return window.crypto.subtle.digest("SHA-256", new TextEncoder().encode(t));
3101
3064
  case 5:
3102
- r = _context18.sent;
3103
- return _context18.abrupt("return", {
3065
+ r = _context17.sent;
3066
+ return _context17.abrupt("return", {
3104
3067
  code_challenge: (n = r, btoa((_String$fromCharCode = String.fromCharCode).call.apply(_String$fromCharCode, [null].concat(_toConsumableArray(new Uint8Array(n))))).replace(/\+/g, "-").replace(/\//g, "_").replace(/=+$/, "")),
3105
3068
  code_verifier: t
3106
3069
  });
3107
3070
  case 7:
3108
3071
  case "end":
3109
- return _context18.stop();
3072
+ return _context17.stop();
3110
3073
  }
3111
- }, _callee18);
3074
+ }, _callee17);
3112
3075
  }));
3113
3076
  }
3114
3077
  }]);
3115
- return Me;
3078
+ return Le;
3116
3079
  }();
3117
- var Ne = /*#__PURE__*/function () {
3118
- function Ne(e) {
3119
- _classCallCheck(this, Ne);
3080
+ var Me = /*#__PURE__*/function () {
3081
+ function Me(e) {
3082
+ _classCallCheck(this, Me);
3120
3083
  this._networkClient = e;
3121
3084
  }
3122
- _createClass(Ne, [{
3085
+ _createClass(Me, [{
3123
3086
  key: "searchUser",
3124
3087
  value: function searchUser(e) {
3125
3088
  return this._networkClient.fetchSDK({
@@ -3157,9 +3120,9 @@ var Ne = /*#__PURE__*/function () {
3157
3120
  });
3158
3121
  }
3159
3122
  }]);
3160
- return Ne;
3123
+ return Me;
3161
3124
  }();
3162
- var je = function je(e) {
3125
+ var Ne = function Ne(e) {
3163
3126
  return (document.cookie ? document.cookie.split("; ") : []).filter(function (t) {
3164
3127
  var _t$split = t.split("="),
3165
3128
  _t$split2 = _slicedToArray(_t$split, 1),
@@ -3168,17 +3131,17 @@ var je = function je(e) {
3168
3131
  }).length > 1;
3169
3132
  };
3170
3133
  /*! js-cookie v3.0.1 | MIT */
3171
- function Fe(e) {
3134
+ function je(e) {
3172
3135
  for (var t = 1; t < arguments.length; t++) {
3173
3136
  var r = arguments[t];
3174
3137
  for (var n in r) e[n] = r[n];
3175
3138
  }
3176
3139
  return e;
3177
3140
  }
3178
- var Ke = function e(t, r) {
3141
+ var Fe = function e(t, r) {
3179
3142
  function n(e, n, i) {
3180
3143
  if ("undefined" != typeof document) {
3181
- "number" == typeof (i = Fe({}, r, i)).expires && (i.expires = new Date(Date.now() + 864e5 * i.expires)), i.expires && (i.expires = i.expires.toUTCString()), e = encodeURIComponent(e).replace(/%(2[346B]|5E|60|7C)/g, decodeURIComponent).replace(/[()]/g, escape);
3144
+ "number" == typeof (i = je({}, r, i)).expires && (i.expires = new Date(Date.now() + 864e5 * i.expires)), i.expires && (i.expires = i.expires.toUTCString()), e = encodeURIComponent(e).replace(/%(2[346B]|5E|60|7C)/g, decodeURIComponent).replace(/[()]/g, escape);
3182
3145
  var o = "";
3183
3146
  for (var s in i) i[s] && (o += "; " + s, !0 !== i[s] && (o += "=" + i[s].split(";")[0]));
3184
3147
  return document.cookie = e + "=" + t.write(n, e) + o;
@@ -3200,15 +3163,15 @@ var Ke = function e(t, r) {
3200
3163
  }
3201
3164
  },
3202
3165
  remove: function remove(e, t) {
3203
- n(e, "", Fe({}, t, {
3166
+ n(e, "", je({}, t, {
3204
3167
  expires: -1
3205
3168
  }));
3206
3169
  },
3207
3170
  withAttributes: function withAttributes(t) {
3208
- return e(this.converter, Fe({}, this.attributes, t));
3171
+ return e(this.converter, je({}, this.attributes, t));
3209
3172
  },
3210
3173
  withConverter: function withConverter(t) {
3211
- return e(Fe({}, this.converter, t), this.attributes);
3174
+ return e(je({}, this.converter, t), this.attributes);
3212
3175
  }
3213
3176
  }, {
3214
3177
  attributes: {
@@ -3228,26 +3191,26 @@ var Ke = function e(t, r) {
3228
3191
  }, {
3229
3192
  path: "/"
3230
3193
  });
3231
- var Ue = function Ue(e) {
3194
+ var Ke = function Ke(e) {
3232
3195
  var t = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : "";
3233
3196
  return "stytch_sdk_state_".concat(e).concat(t ? "::".concat(t) : "");
3234
3197
  };
3235
- var ze = /*#__PURE__*/function () {
3236
- function ze(e, t) {
3198
+ var Ue = /*#__PURE__*/function () {
3199
+ function Ue(e, t) {
3237
3200
  var _this4 = this;
3238
- _classCallCheck(this, ze);
3201
+ _classCallCheck(this, Ue);
3239
3202
  this.browserSessionStorage = {
3240
3203
  getItem: function getItem(e) {
3241
- return sessionStorage.getItem(Ue(_this4.publicToken, e));
3204
+ return sessionStorage.getItem(Ke(_this4.publicToken, e));
3242
3205
  },
3243
3206
  setItem: function setItem(e, t) {
3244
- return sessionStorage.setItem(Ue(_this4.publicToken, e), t);
3207
+ return sessionStorage.setItem(Ke(_this4.publicToken, e), t);
3245
3208
  },
3246
3209
  removeItem: function removeItem(e) {
3247
- return sessionStorage.removeItem(Ue(_this4.publicToken, e));
3210
+ return sessionStorage.removeItem(Ke(_this4.publicToken, e));
3248
3211
  }
3249
3212
  }, this.publicToken = e, this.state = null, this.subscriptions = {}, (null == t ? void 0 : t.cookieOptions) ? (Q("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).isOptionalString("cookieOptions.domain", t.cookieOptions.domain), this._jwtCookieName = t.cookieOptions.jwtCookieName || null, this._opaqueTokenCookieName = t.cookieOptions.opaqueTokenCookieName || null, this._cookiePath = t.cookieOptions.path || null, this._domain = t.cookieOptions.domain || null, this._cookieAvailableToSubdomains = t.cookieOptions.availableToSubdomains || !1, this._istCookieName = t.cookieOptions.istCookieName || null) : (this._opaqueTokenCookieName = null, this._jwtCookieName = null, this._cookiePath = null, this._domain = null, this._cookieAvailableToSubdomains = !1, this._istCookieName = null);
3250
- var r = localStorage.getItem(Ue(this.publicToken));
3213
+ var r = localStorage.getItem(Ke(this.publicToken));
3251
3214
  if (!r) return;
3252
3215
  var n;
3253
3216
  try {
@@ -3257,7 +3220,7 @@ var ze = /*#__PURE__*/function () {
3257
3220
  }
3258
3221
  this.state = n;
3259
3222
  }
3260
- _createClass(ze, [{
3223
+ _createClass(Ue, [{
3261
3224
  key: "opaqueTokenCookieName",
3262
3225
  get: function get() {
3263
3226
  var e;
@@ -3279,14 +3242,14 @@ var ze = /*#__PURE__*/function () {
3279
3242
  key: "readSessionCookie",
3280
3243
  value: function readSessionCookie() {
3281
3244
  return {
3282
- session_token: Ke.get(this.opaqueTokenCookieName),
3283
- session_jwt: Ke.get(this.jwtCookieName)
3245
+ session_token: Fe.get(this.opaqueTokenCookieName),
3246
+ session_jwt: Fe.get(this.jwtCookieName)
3284
3247
  };
3285
3248
  }
3286
3249
  }, {
3287
3250
  key: "readIntermediateSessionTokenCookie",
3288
3251
  value: function readIntermediateSessionTokenCookie() {
3289
- return Ke.get(this.istCookieName);
3252
+ return Fe.get(this.istCookieName);
3290
3253
  }
3291
3254
  }, {
3292
3255
  key: "writeSessionCookie",
@@ -3295,32 +3258,32 @@ var ze = /*#__PURE__*/function () {
3295
3258
  var o = e.state,
3296
3259
  s = e.session_token,
3297
3260
  a = e.session_jwt,
3298
- c = ze.generateCookieOpts({
3261
+ c = Ue.generateCookieOpts({
3299
3262
  expiresAt: null !== (r = null === (t = null == o ? void 0 : o.session) || void 0 === t ? void 0 : t.expires_at) && void 0 !== r ? r : "",
3300
3263
  availableToSubdomains: this._cookieAvailableToSubdomains,
3301
3264
  path: this._cookiePath,
3302
3265
  domain: this._domain
3303
3266
  });
3304
- Ke.set(this.opaqueTokenCookieName, s, c), Ke.set(this.jwtCookieName, a, c);
3305
- var u = ze.generateCookieOpts({
3267
+ Fe.set(this.opaqueTokenCookieName, s, c), Fe.set(this.jwtCookieName, a, c);
3268
+ var u = Ue.generateCookieOpts({
3306
3269
  expiresAt: null !== (i = null === (n = null == o ? void 0 : o.session) || void 0 === n ? void 0 : n.expires_at) && void 0 !== i ? i : "",
3307
3270
  availableToSubdomains: !this._cookieAvailableToSubdomains,
3308
3271
  path: this._cookiePath,
3309
3272
  domain: this._domain
3310
3273
  });
3311
- je(this.jwtCookieName) && Ke.remove(this.jwtCookieName, u), je(this.opaqueTokenCookieName) && Ke.remove(this.opaqueTokenCookieName, u), je(this.jwtCookieName) && $("Could not remove extraneous JWT cookie. This might happen if the cookie has been set using multiple `path` settings, and may produce unwanted behavior."), je(this.opaqueTokenCookieName) && $("Could not remove extraneous opaque token cookie.");
3274
+ Ne(this.jwtCookieName) && Fe.remove(this.jwtCookieName, u), Ne(this.opaqueTokenCookieName) && Fe.remove(this.opaqueTokenCookieName, u), Ne(this.jwtCookieName) && $("Could not remove extraneous JWT cookie. This might happen if the cookie has been set using multiple `path` settings, and may produce unwanted behavior."), Ne(this.opaqueTokenCookieName) && $("Could not remove extraneous opaque token cookie.");
3312
3275
  }
3313
3276
  }, {
3314
3277
  key: "writeIntermediateSessionTokenCookie",
3315
3278
  value: function writeIntermediateSessionTokenCookie(e) {
3316
3279
  var t = new Date(Date.now() + 6e5),
3317
- r = ze.generateCookieOpts({
3280
+ r = Ue.generateCookieOpts({
3318
3281
  expiresAt: t.toString(),
3319
3282
  availableToSubdomains: this._cookieAvailableToSubdomains,
3320
3283
  path: this._cookiePath,
3321
3284
  domain: this._domain
3322
3285
  });
3323
- Ke.set(this.istCookieName, e, r);
3286
+ Fe.set(this.istCookieName, e, r);
3324
3287
  }
3325
3288
  }, {
3326
3289
  key: "removeSessionCookie",
@@ -3339,14 +3302,14 @@ var ze = /*#__PURE__*/function () {
3339
3302
  [!0, !1].forEach(function (t) {
3340
3303
  [_this5._cookiePath, null].forEach(function (r) {
3341
3304
  [_this5._domain, null].forEach(function (n) {
3342
- var i = ze.generateCookieOpts({
3305
+ var i = Ue.generateCookieOpts({
3343
3306
  expiresAt: new Date(0).toString(),
3344
3307
  availableToSubdomains: t,
3345
3308
  path: r,
3346
3309
  domain: n
3347
3310
  });
3348
3311
  e.forEach(function (e) {
3349
- Ke.remove(e, i);
3312
+ Fe.remove(e, i);
3350
3313
  });
3351
3314
  });
3352
3315
  });
@@ -3355,22 +3318,22 @@ var ze = /*#__PURE__*/function () {
3355
3318
  }, {
3356
3319
  key: "syncToLocalStorage",
3357
3320
  value: function syncToLocalStorage() {
3358
- localStorage.setItem(Ue(this.publicToken), JSON.stringify(this.state));
3321
+ localStorage.setItem(Ke(this.publicToken), JSON.stringify(this.state));
3359
3322
  }
3360
3323
  }, {
3361
3324
  key: "getItem",
3362
3325
  value: function getItem(e) {
3363
- return localStorage.getItem(Ue(this.publicToken, e));
3326
+ return localStorage.getItem(Ke(this.publicToken, e));
3364
3327
  }
3365
3328
  }, {
3366
3329
  key: "setItem",
3367
3330
  value: function setItem(e, t) {
3368
- return localStorage.setItem(Ue(this.publicToken, e), t);
3331
+ return localStorage.setItem(Ke(this.publicToken, e), t);
3369
3332
  }
3370
3333
  }, {
3371
3334
  key: "removeItem",
3372
3335
  value: function removeItem(e) {
3373
- return localStorage.removeItem(Ue(this.publicToken, e));
3336
+ return localStorage.removeItem(Ke(this.publicToken, e));
3374
3337
  }
3375
3338
  }], [{
3376
3339
  key: "generateCookieOpts",
@@ -3386,31 +3349,31 @@ var ze = /*#__PURE__*/function () {
3386
3349
  return e && (i.path = e), Boolean("localhost" === window.location.hostname || "[::1]" === window.location.hostname || window.location.hostname.match(/^127(?:\.(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)){3}$/)) ? i.secure = !1 : (r && (i.domain = t || window.location.host), i.secure = !0), i;
3387
3350
  }
3388
3351
  }]);
3389
- return ze;
3352
+ return Ue;
3390
3353
  }();
3391
- var We = /*#__PURE__*/function (_ze) {
3392
- _inherits(We, _ze);
3393
- var _super2 = _createSuper(We);
3394
- function We() {
3395
- _classCallCheck(this, We);
3354
+ var ze = /*#__PURE__*/function (_Ue) {
3355
+ _inherits(ze, _Ue);
3356
+ var _super2 = _createSuper(ze);
3357
+ function ze() {
3358
+ _classCallCheck(this, ze);
3396
3359
  return _super2.apply(this, arguments);
3397
3360
  }
3398
- return _createClass(We);
3399
- }(ze);
3400
- var Ge = Symbol["for"]("__stytch_b2b_DataLayer"),
3401
- He = function He(e, t) {
3361
+ return _createClass(ze);
3362
+ }(Ue);
3363
+ var We = Symbol["for"]("__stytch_b2b_DataLayer"),
3364
+ Ge = function Ge(e, t) {
3402
3365
  var r = function () {
3403
3366
  var e = window;
3404
- return e[Ge] || (e[Ge] = {}), e[Ge];
3367
+ return e[We] || (e[We] = {}), e[We];
3405
3368
  }();
3406
- return r[e] || (r[e] = new We(e, t)), r[e];
3369
+ return r[e] || (r[e] = new ze(e, t)), r[e];
3407
3370
  },
3408
- qe = function qe(e, t) {
3371
+ He = function He(e, t) {
3409
3372
  Object.values(e).forEach(function (e) {
3410
3373
  return e(t);
3411
3374
  });
3412
3375
  },
3413
- Ye = function () {
3376
+ qe = function () {
3414
3377
  var t = (arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {}).KEYS_TO_EXCLUDE,
3415
3378
  r = void 0 === t ? [] : t;
3416
3379
  return function t(i, o) {
@@ -3429,24 +3392,21 @@ var Ge = Symbol["for"]("__stytch_b2b_DataLayer"),
3429
3392
  }({
3430
3393
  KEYS_TO_EXCLUDE: ["last_accessed_at"]
3431
3394
  });
3432
- var Ve = /*#__PURE__*/function () {
3433
- function Ve(e, t) {
3395
+ var Ye = /*#__PURE__*/function () {
3396
+ function Ye(e, t) {
3434
3397
  var _this6 = this;
3435
- _classCallCheck(this, Ve);
3436
- var r;
3398
+ _classCallCheck(this, Ye);
3437
3399
  this._publicToken = e, this._datalayer = t, this._listen = function (e) {
3438
- if (e.key !== Ue(_this6._publicToken)) return;
3400
+ if (e.key !== Ke(_this6._publicToken)) return;
3439
3401
  if (null === e.newValue || "null" === e.newValue) return void _this6.destroyState();
3440
3402
  var t = JSON.parse(e.newValue);
3441
3403
  _this6.updateState(t);
3442
3404
  }, window.addEventListener("storage", this._listen);
3443
- var n = null === (r = this._datalayer.state) || void 0 === r ? void 0 : r.session;
3444
- if (n && Date.parse(n.expires_at) < Date.now()) return void this.destroyState();
3445
3405
  var _this$_datalayer$read = this._datalayer.readSessionCookie(),
3446
- i = _this$_datalayer$read.session_token;
3447
- i || this.destroyState();
3406
+ r = _this$_datalayer$read.session_token;
3407
+ r || this.destroyState();
3448
3408
  }
3449
- _createClass(Ve, [{
3409
+ _createClass(Ye, [{
3450
3410
  key: "getTokens",
3451
3411
  value: function getTokens() {
3452
3412
  var _this$_datalayer$read2 = this._datalayer.readSessionCookie(),
@@ -3477,7 +3437,7 @@ var Ve = /*#__PURE__*/function () {
3477
3437
  value: function _updateStateAndTokensInternal(e) {
3478
3438
  var t = this._datalayer.state,
3479
3439
  r = null === e.state ? null : Object.assign(Object.assign({}, this._datalayer.state), e.state);
3480
- this._datalayer.state = r, Ye(t, r) || qe(this._datalayer.subscriptions, r);
3440
+ this._datalayer.state = r, qe(t, r) || He(this._datalayer.subscriptions, r);
3481
3441
  }
3482
3442
  }, {
3483
3443
  key: "updateStateAndTokens",
@@ -3489,7 +3449,7 @@ var Ve = /*#__PURE__*/function () {
3489
3449
  value: function updateState(e) {
3490
3450
  var t = this._datalayer.state,
3491
3451
  r = null === e ? null : Object.assign(Object.assign({}, this._datalayer.state), e);
3492
- this._datalayer.state = r, Ye(t, r) || (qe(this._datalayer.subscriptions, r), this._datalayer.syncToLocalStorage());
3452
+ this._datalayer.state = r, qe(t, r) || (He(this._datalayer.subscriptions, r), this._datalayer.syncToLocalStorage());
3493
3453
  }
3494
3454
  }, {
3495
3455
  key: "updateTokens",
@@ -3529,14 +3489,14 @@ var Ve = /*#__PURE__*/function () {
3529
3489
  return null;
3530
3490
  }
3531
3491
  }]);
3532
- return Ve;
3492
+ return Ye;
3533
3493
  }();
3534
- var $e = /*#__PURE__*/function (_Ve) {
3535
- _inherits($e, _Ve);
3536
- var _super3 = _createSuper($e);
3537
- function $e() {
3494
+ var Ve = /*#__PURE__*/function (_Ye) {
3495
+ _inherits(Ve, _Ye);
3496
+ var _super3 = _createSuper(Ve);
3497
+ function Ve() {
3538
3498
  var _this7;
3539
- _classCallCheck(this, $e);
3499
+ _classCallCheck(this, Ve);
3540
3500
  _this7 = _super3.apply(this, arguments), _this7.updateMember = function (e) {
3541
3501
  return _this7.updateState({
3542
3502
  member: e
@@ -3550,12 +3510,12 @@ var $e = /*#__PURE__*/function (_Ve) {
3550
3510
  };
3551
3511
  return _this7;
3552
3512
  }
3553
- return _createClass($e);
3554
- }(Ve);
3555
- var Je = Symbol["for"]("stytch__internal_b2b");
3556
- var Xe = /*#__PURE__*/_createClass(function Xe(e, t) {
3513
+ return _createClass(Ve);
3514
+ }(Ye);
3515
+ var $e = Symbol["for"]("stytch__internal_b2b");
3516
+ var Je = /*#__PURE__*/_createClass(function Je(e, t) {
3557
3517
  var _this8 = this;
3558
- _classCallCheck(this, Xe);
3518
+ _classCallCheck(this, Je);
3559
3519
  var r;
3560
3520
  !function (e) {
3561
3521
  if ("undefined" == typeof window) throw new Error("The ".concat(e, " is not compatible with server-side environments.\nIf using nextjs, use the create").concat(e, " method instead.\n```\n").concat("import { createStytchB2BHeadlessClient } from '@stytch/nextjs/b2b';\n \n const stytch = createStytchB2BHeadlessClient('public-token-...');\n ", "\n```\n"));
@@ -3572,8 +3532,8 @@ var Xe = /*#__PURE__*/_createClass(function Xe(e, t) {
3572
3532
  }
3573
3533
  };
3574
3534
  var s, a, c, u, l, d, h, _, p, m, f;
3575
- this._dataLayer = He(e, i), this._subscriptionService = new $e(e, this._dataLayer);
3576
- var v = new Me(this._dataLayer, "passwords");
3535
+ this._dataLayer = Ge(e, i), this._subscriptionService = new Ve(e, this._dataLayer);
3536
+ var v = new Le(this._dataLayer, "passwords");
3577
3537
  this._networkClient = new Ie(e, this._dataLayer, o.endpoints.sdkBackendURL, function () {
3578
3538
  var e, t, r, n;
3579
3539
  return {
@@ -3583,18 +3543,17 @@ var Xe = /*#__PURE__*/_createClass(function Xe(e, t) {
3583
3543
  });
3584
3544
  var b = new xe(e, this._networkClient, this._dataLayer),
3585
3545
  g = new Re(b.getAsync()),
3586
- y = new ee(e, o.endpoints.dfpBackendURL, b.getAsync(), g.executeRecaptcha),
3587
- k = new De(this._networkClient, this._subscriptionService);
3588
- this.organization = new ae(this._networkClient), this.member = new oe(this._networkClient, this._subscriptionService), this.session = new ue(this._networkClient, this._subscriptionService), this.magicLinks = new ie(this._networkClient, this._subscriptionService, new Me(this._dataLayer, "magic_links"), v, b.getAsync(), y), this.oauth = new ce(this._networkClient, this._subscriptionService, new Me(this._dataLayer, "oauth"), b.getAsync(), {
3546
+ y = new ee(e, o.endpoints.dfpBackendURL, b.getAsync(), g.executeRecaptcha);
3547
+ this.organization = new ae(this._networkClient), this.member = new oe(this._networkClient, this._subscriptionService), this.session = new ue(this._networkClient, this._subscriptionService), this.magicLinks = new ie(this._networkClient, this._subscriptionService, new Le(this._dataLayer, "magic_links"), v, b.getAsync(), y), this.oauth = new ce(this._networkClient, this._subscriptionService, new Le(this._dataLayer, "oauth"), b.getAsync(), {
3589
3548
  publicToken: e,
3590
3549
  testAPIURL: o.endpoints.testAPIURL,
3591
3550
  liveAPIURL: o.endpoints.liveAPIURL
3592
- }, y), this.sso = new se(this._networkClient, this._subscriptionService, new Me(this._dataLayer, "sso"), b.getAsync(), {
3551
+ }, y), this.sso = new se(this._networkClient, this._subscriptionService, new Le(this._dataLayer, "sso"), b.getAsync(), {
3593
3552
  publicToken: e,
3594
3553
  testAPIURL: o.endpoints.testAPIURL,
3595
3554
  liveAPIURL: o.endpoints.liveAPIURL
3596
3555
  }), this.discovery = new le(this._networkClient, this._subscriptionService), this.passwords = new Pe(this._networkClient, this._subscriptionService, v, b.getAsync(), y), this.otps = new Se(this._networkClient, this._subscriptionService, y), this._sessionManager = new we(this._subscriptionService, this.session);
3597
- var S = new Ne(this._networkClient);
3556
+ var k = new Me(this._networkClient);
3598
3557
  this._dataLayer.readSessionCookie().session_token && this._sessionManager.performBackgroundRefresh(), this._networkClient.logEvent({
3599
3558
  name: "b2b_sdk_instance_instantiated",
3600
3559
  details: {
@@ -3604,48 +3563,47 @@ var Xe = /*#__PURE__*/_createClass(function Xe(e, t) {
3604
3563
  }
3605
3564
  });
3606
3565
  (function (e, t) {
3607
- Object.assign(e, _defineProperty({}, Je, t));
3566
+ Object.assign(e, _defineProperty({}, $e, t));
3608
3567
  })(this, {
3609
3568
  bootstrap: b,
3610
3569
  publicToken: e,
3611
- searchManager: S,
3612
- passwordResetClient: k,
3570
+ searchManager: k,
3613
3571
  dataLayer: this._dataLayer,
3614
3572
  networkClient: this._networkClient
3615
3573
  });
3616
3574
  });
3617
- function Ze(e) {
3618
- return Ze = "function" == typeof Symbol && "symbol" == _typeof(Symbol.iterator) ? function (e) {
3575
+ function Xe(e) {
3576
+ return Xe = "function" == typeof Symbol && "symbol" == _typeof(Symbol.iterator) ? function (e) {
3619
3577
  return _typeof(e);
3620
3578
  } : function (e) {
3621
3579
  return e && "function" == typeof Symbol && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : _typeof(e);
3622
- }, Ze(e);
3580
+ }, Xe(e);
3623
3581
  }
3624
- function Qe(e, t) {
3582
+ function Ze(e, t) {
3625
3583
  for (var r = 0; r < t.length; r++) {
3626
3584
  var n = t[r];
3627
3585
  n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(e, (i = n.key, o = void 0, o = function (e, t) {
3628
- if ("object" !== Ze(e) || null === e) return e;
3586
+ if ("object" !== Xe(e) || null === e) return e;
3629
3587
  var r = e[Symbol.toPrimitive];
3630
3588
  if (void 0 !== r) {
3631
3589
  var n = r.call(e, t || "default");
3632
- if ("object" !== Ze(n)) return n;
3590
+ if ("object" !== Xe(n)) return n;
3633
3591
  throw new TypeError("@@toPrimitive must return a primitive value.");
3634
3592
  }
3635
3593
  return ("string" === t ? String : Number)(e);
3636
- }(i, "string"), "symbol" === Ze(o) ? o : String(o)), n);
3594
+ }(i, "string"), "symbol" === Xe(o) ? o : String(o)), n);
3637
3595
  }
3638
3596
  var i, o;
3639
3597
  }
3640
- function et(e, t, r) {
3641
- return t && Qe(e.prototype, t), r && Qe(e, r), Object.defineProperty(e, "prototype", {
3598
+ function Qe(e, t, r) {
3599
+ return t && Ze(e.prototype, t), r && Ze(e, r), Object.defineProperty(e, "prototype", {
3642
3600
  writable: !1
3643
3601
  }), e;
3644
3602
  }
3645
- function tt(e, t) {
3603
+ function et(e, t) {
3646
3604
  if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function");
3647
3605
  }
3648
- function rt(e, t) {
3606
+ function tt(e, t) {
3649
3607
  if ("function" != typeof t && null !== t) throw new TypeError("Super expression must either be null or a function");
3650
3608
  e.prototype = Object.create(t && t.prototype, {
3651
3609
  constructor: {
@@ -3655,31 +3613,31 @@ function rt(e, t) {
3655
3613
  }
3656
3614
  }), Object.defineProperty(e, "prototype", {
3657
3615
  writable: !1
3658
- }), t && ct(e, t);
3616
+ }), t && at(e, t);
3659
3617
  }
3660
- function nt(e) {
3661
- var t = at();
3618
+ function rt(e) {
3619
+ var t = st();
3662
3620
  return function () {
3663
3621
  var r,
3664
- n = ut(e);
3622
+ n = ct(e);
3665
3623
  if (t) {
3666
- var i = ut(this).constructor;
3624
+ var i = ct(this).constructor;
3667
3625
  r = Reflect.construct(n, arguments, i);
3668
3626
  } else r = n.apply(this, arguments);
3669
3627
  return function (e, t) {
3670
- if (t && ("object" === Ze(t) || "function" == typeof t)) return t;
3628
+ if (t && ("object" === Xe(t) || "function" == typeof t)) return t;
3671
3629
  if (void 0 !== t) throw new TypeError("Derived constructors may only return object or undefined");
3672
- return it(e);
3630
+ return nt(e);
3673
3631
  }(this, r);
3674
3632
  };
3675
3633
  }
3676
- function it(e) {
3634
+ function nt(e) {
3677
3635
  if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
3678
3636
  return e;
3679
3637
  }
3680
- function ot(e) {
3638
+ function it(e) {
3681
3639
  var t = "function" == typeof Map ? new Map() : void 0;
3682
- return ot = function ot(e) {
3640
+ return it = function it(e) {
3683
3641
  if (null === e || (r = e, -1 === Function.toString.call(r).indexOf("[native code]"))) return e;
3684
3642
  var r;
3685
3643
  if ("function" != typeof e) throw new TypeError("Super expression must either be null or a function");
@@ -3688,7 +3646,7 @@ function ot(e) {
3688
3646
  t.set(e, n);
3689
3647
  }
3690
3648
  function n() {
3691
- return st(e, arguments, ut(this).constructor);
3649
+ return ot(e, arguments, ct(this).constructor);
3692
3650
  }
3693
3651
  return n.prototype = Object.create(e.prototype, {
3694
3652
  constructor: {
@@ -3697,18 +3655,18 @@ function ot(e) {
3697
3655
  writable: !0,
3698
3656
  configurable: !0
3699
3657
  }
3700
- }), ct(n, e);
3701
- }, ot(e);
3658
+ }), at(n, e);
3659
+ }, it(e);
3702
3660
  }
3703
- function st(e, t, r) {
3704
- return st = at() ? Reflect.construct.bind() : function (e, t, r) {
3661
+ function ot(e, t, r) {
3662
+ return ot = st() ? Reflect.construct.bind() : function (e, t, r) {
3705
3663
  var n = [null];
3706
3664
  n.push.apply(n, t);
3707
3665
  var i = new (Function.bind.apply(e, n))();
3708
- return r && ct(i, r.prototype), i;
3709
- }, st.apply(null, arguments);
3666
+ return r && at(i, r.prototype), i;
3667
+ }, ot.apply(null, arguments);
3710
3668
  }
3711
- function at() {
3669
+ function st() {
3712
3670
  if ("undefined" == typeof Reflect || !Reflect.construct) return !1;
3713
3671
  if (Reflect.construct.sham) return !1;
3714
3672
  if ("function" == typeof Proxy) return !0;
@@ -3718,71 +3676,71 @@ function at() {
3718
3676
  return !1;
3719
3677
  }
3720
3678
  }
3721
- function ct(e, t) {
3722
- return ct = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (e, t) {
3679
+ function at(e, t) {
3680
+ return at = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (e, t) {
3723
3681
  return e.__proto__ = t, e;
3724
- }, ct(e, t);
3682
+ }, at(e, t);
3725
3683
  }
3726
- function ut(e) {
3727
- return ut = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (e) {
3684
+ function ct(e) {
3685
+ return ct = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (e) {
3728
3686
  return e.__proto__ || Object.getPrototypeOf(e);
3729
- }, ut(e);
3687
+ }, ct(e);
3730
3688
  }
3731
- var lt, dt, ht, _t, pt, mt;
3689
+ var ut, lt, dt, ht, _t, pt;
3732
3690
  !function (e) {
3733
3691
  e.emailMagicLinks = "emailMagicLinks", e.oauth = "oauth", e.otp = "otp", e.crypto = "crypto", e.passwords = "passwords";
3734
- }(lt || (lt = {})), function (e) {
3692
+ }(ut || (ut = {})), function (e) {
3735
3693
  e.Google = "google", e.Microsoft = "microsoft", e.Apple = "apple", e.Github = "github", e.GitLab = "gitlab", e.Facebook = "facebook", e.Discord = "discord", e.Salesforce = "salesforce", e.Slack = "slack", e.Amazon = "amazon", e.Bitbucket = "bitbucket", e.LinkedIn = "linkedin", e.Coinbase = "coinbase", e.Twitch = "twitch", e.Twitter = "twitter", e.TikTok = "tiktok", e.Snapchat = "snapchat", e.Figma = "figma", e.Yahoo = "yahoo";
3736
- }(dt || (dt = {})), function (e) {
3694
+ }(lt || (lt = {})), function (e) {
3737
3695
  e.Vessel = "Vessel", e.Phantom = "Phantom", e.Metamask = "Metamask", e.Coinbase = "Coinbase", e.Binance = "Binance", e.GenericEthereumWallet = "Other Ethereum Wallet", e.GenericSolanaWallet = "Other Solana Wallet";
3738
- }(ht || (ht = {})), function (e) {
3696
+ }(dt || (dt = {})), function (e) {
3739
3697
  e.embedded = "embedded", e.floating = "floating";
3740
- }(_t || (_t = {})), function (e) {
3698
+ }(ht || (ht = {})), function (e) {
3741
3699
  e.SMS = "sms", e.WhatsApp = "whatsapp", e.Email = "email";
3742
- }(pt || (pt = {})), function (e) {
3700
+ }(_t || (_t = {})), function (e) {
3743
3701
  e.MagicLinkLoginOrCreateEvent = "MAGIC_LINK_LOGIN_OR_CREATE", e.OTPsLoginOrCreateEvent = "OTP_LOGIN_OR_CREATE", e.OTPsAuthenticate = "OTP_AUTHENTICATE", e.CryptoWalletAuthenticateStart = "CRYPTO_WALLET_AUTHENTICATE_START", e.CryptoWalletAuthenticate = "CRYPTO_WALLET_AUTHENTICATE", e.PasswordCreate = "PASSWORD_CREATE", e.PasswordAuthenticate = "PASSWORD_AUTHENTICATE", e.PasswordResetByEmailStart = "PASSWORD_RESET_BY_EMAIL_START", e.PasswordResetByEmail = "PASSWORD_RESET_BY_EMAIL", e.B2BMagicLinkEmailLoginOrSignup = "B2B_MAGIC_LINK_EMAIL_LOGIN_OR_SIGNUP", e.B2BMagicLinkAuthenticate = "B2B_MAGIC_LINK_AUTHENTICATE", e.B2BMagicLinkEmailDiscoverySend = "B2B_MAGIC_LINK_EMAIL_DISCOVERY_SEND", e.B2BMagicLinkDiscoveryAuthenticate = "B2B_MAGIC_LINK_DISCOVERY_AUTHENTICATE", e.B2BSSOStart = "B2B_SSO_START", e.B2BSSOAuthenticate = "B2B_SSO_AUTHENTICATE", e.B2BOAuthAuthenticate = "B2B_SSO_AUTHENTICATE", e.B2BOAuthDiscoveryAuthenticate = "B2B_OAUTH_DISCOVERY_AUTHENTICATE", e.B2BDiscoveryOrganizationsCreate = "B2B_DISCOVERY_ORGANIZATIONS_CREATE", e.B2BDiscoveryIntermediateSessionExchange = "B2B_DISCOVERY_INTERMEDIATE_SESSION_EXCHANGE", e.B2BPasswordAuthenticate = "B2B_PASSWORD_AUTHENTICATE", e.B2BPasswordResetByEmailStart = "B2B_PASSWORD_RESET_BY_EMAIL_START", e.B2BPasswordResetByEmail = "B2B_PASSWORD_RESET_BY_EMAIL", e.B2BPasswordResetBySession = "B2B_PASSWORD_RESET_BY_SESSION";
3744
- }(mt || (mt = {}));
3745
- var ft,
3702
+ }(pt || (pt = {}));
3703
+ var mt,
3704
+ ft,
3746
3705
  vt,
3747
3706
  bt,
3748
- gt,
3749
- yt = function (e) {
3750
- rt(r, ot(Error));
3751
- var t = nt(r);
3707
+ gt = function (e) {
3708
+ tt(r, it(Error));
3709
+ var t = rt(r);
3752
3710
  function r(e, n) {
3753
3711
  var i;
3754
- return tt(this, r), (i = t.call(this, e + "\n" + n)).message = e + "\n" + n, i.name = "SDKAPIUnreachableError", i.details = n, Object.setPrototypeOf(it(i), r.prototype), i;
3712
+ return et(this, r), (i = t.call(this, e + "\n" + n)).message = e + "\n" + n, i.name = "SDKAPIUnreachableError", i.details = n, Object.setPrototypeOf(nt(i), r.prototype), i;
3755
3713
  }
3756
- return et(r);
3714
+ return Qe(r);
3757
3715
  }(),
3758
- kt = function (e) {
3759
- rt(r, ot(Error));
3760
- var t = nt(r);
3716
+ yt = function (e) {
3717
+ tt(r, it(Error));
3718
+ var t = rt(r);
3761
3719
  function r(e, n) {
3762
3720
  var i;
3763
- return tt(this, r), (i = t.call(this)).name = "StytchSDKUsageError", i.message = "Invalid call to ".concat(e, "\n") + n, i;
3721
+ return et(this, r), (i = t.call(this)).name = "StytchSDKUsageError", i.message = "Invalid call to ".concat(e, "\n") + n, i;
3764
3722
  }
3765
- return et(r);
3723
+ return Qe(r);
3766
3724
  }(),
3767
- St = function (e) {
3768
- rt(r, ot(Error));
3769
- var t = nt(r);
3725
+ kt = function (e) {
3726
+ tt(r, it(Error));
3727
+ var t = rt(r);
3770
3728
  function r(e) {
3771
3729
  var n, i;
3772
- tt(this, r), (n = t.call(this)).name = "StytchSDKSchemaError";
3730
+ et(this, r), (n = t.call(this)).name = "StytchSDKSchemaError";
3773
3731
  var o = null === (i = e.body) || void 0 === i ? void 0 : i.map(function (e) {
3774
3732
  return "".concat(e.dataPath, ": ").concat(e.message);
3775
3733
  }).join("\n");
3776
3734
  return n.message = "[400] Request does not match expected schema\n".concat(o), n;
3777
3735
  }
3778
- return et(r);
3736
+ return Qe(r);
3779
3737
  }(),
3780
- wt = function (e) {
3781
- rt(r, ot(Error));
3782
- var t = nt(r);
3738
+ St = function (e) {
3739
+ tt(r, it(Error));
3740
+ var t = rt(r);
3783
3741
  function r(e) {
3784
3742
  var n;
3785
- tt(this, r), (n = t.call(this)).name = "StytchSDKAPIError";
3743
+ et(this, r), (n = t.call(this)).name = "StytchSDKAPIError";
3786
3744
  var i = e.status_code,
3787
3745
  o = e.error_type,
3788
3746
  s = e.error_message,
@@ -3790,25 +3748,25 @@ var ft,
3790
3748
  c = e.request_id;
3791
3749
  return n.error_type = o, n.error_message = s, n.error_url = a, n.request_id = c, n.status_code = i, n.message = "[".concat(i, "] ").concat(o, "\n") + "".concat(s, "\n") + "See ".concat(a, " for more information.\n") + (c ? "request_id: ".concat(c, "\n") : ""), n;
3792
3750
  }
3793
- return et(r);
3751
+ return Qe(r);
3794
3752
  }(),
3795
- At = function (e) {
3796
- rt(r, ot(Error));
3797
- var t = nt(r);
3753
+ wt = function (e) {
3754
+ tt(r, it(Error));
3755
+ var t = rt(r);
3798
3756
  function r(e) {
3799
3757
  var n;
3800
- return tt(this, r), (n = t.call(this)).name = "StytchSDKNativeError", n.error_type = e, n.message = "".concat(e), n;
3758
+ return et(this, r), (n = t.call(this)).name = "StytchSDKNativeError", n.error_type = e, n.message = "".concat(e), n;
3801
3759
  }
3802
- return et(r);
3760
+ return Qe(r);
3803
3761
  }(),
3804
- Tt = ["unauthorized_credentials", "user_unauthenticated", "invalid_secret_authentication", "session_not_found"];
3762
+ At = ["unauthorized_credentials", "user_unauthenticated", "invalid_secret_authentication", "session_not_found"];
3805
3763
  !function (e) {
3806
3764
  e.BiometricsSensorError = "biometrics_sensor_error", e.DeviceCredentialsNotAllowed = "device_credentials_not_allowed", e.DeviceHardwareError = "device_hardware_error", e.InternalError = "internal_error", e.KeyInvalidated = "key_invalidated", e.KeystoreUnavailable = "keystore_unavailable", e.NoBiometricsEnrolled = "no_biometrics_enrolled", e.NoBiometricsRegistration = "no_biometrics_registration", e.SessionExpired = "session_expired", e.UserCancellation = "user_cancellation", e.UserLockedOut = "user_locked_out", e.BiometricsNotAvailable = "biometrics_not_available";
3807
- }(ft || (ft = {})), function (e) {
3765
+ }(mt || (mt = {})), function (e) {
3808
3766
  e.emailMagicLinks = "emailMagicLinks", e.sso = "sso", e.passwords = "passwords", e.oauth = "oauth";
3809
- }(vt || (vt = {})), function (e) {
3767
+ }(ft || (ft = {})), function (e) {
3810
3768
  e.Discovery = "Discovery", e.Organization = "Organization", e.PasswordReset = "PasswordReset";
3811
- }(bt || (bt = {})), function (e) {
3769
+ }(vt || (vt = {})), function (e) {
3812
3770
  e.Google = "google", e.Microsoft = "microsoft";
3813
- }(gt || (gt = {}));
3814
- export { bt as AuthFlowType, gt as B2BOAuthProviders, vt as B2BProducts, ft as BiometricsErrors, dt as OAuthProviders, pt as OTPMethods, _t as OneTapPositions, lt as Products, yt as SDKAPIUnreachableError, Xe as StytchB2BHeadlessClient, mt as StytchEventType, wt as StytchSDKAPIError, At as StytchSDKNativeError, St as StytchSDKSchemaError, kt as StytchSDKUsageError, Tt as UNRECOVERABLE_ERROR_TYPES, ht as Wallets };
3771
+ }(bt || (bt = {}));
3772
+ export { vt as AuthFlowType, bt as B2BOAuthProviders, ft as B2BProducts, mt as BiometricsErrors, lt as OAuthProviders, _t as OTPMethods, ht as OneTapPositions, ut as Products, gt as SDKAPIUnreachableError, Je as StytchB2BHeadlessClient, pt as StytchEventType, St as StytchSDKAPIError, wt as StytchSDKNativeError, kt as StytchSDKSchemaError, yt as StytchSDKUsageError, At as UNRECOVERABLE_ERROR_TYPES, dt as Wallets };