@turnkey/sdk-react 5.2.11 → 5.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (49) hide show
  1. package/CHANGELOG.md +25 -0
  2. package/dist/_virtual/_rollupPluginBabelHelpers.mjs +186 -218
  3. package/dist/_virtual/_rollupPluginBabelHelpers.mjs.map +1 -1
  4. package/dist/components/auth/Apple.js.map +1 -1
  5. package/dist/components/auth/Apple.mjs.map +1 -1
  6. package/dist/components/auth/Auth.js.map +1 -1
  7. package/dist/components/auth/Auth.mjs +24 -24
  8. package/dist/components/auth/Auth.mjs.map +1 -1
  9. package/dist/components/auth/Auth.module.css.js +1 -1
  10. package/dist/components/auth/Auth.module.css.mjs +1 -1
  11. package/dist/components/auth/Facebook.js.map +1 -1
  12. package/dist/components/auth/Facebook.mjs +1 -1
  13. package/dist/components/auth/Facebook.mjs.map +1 -1
  14. package/dist/components/auth/Google.js.map +1 -1
  15. package/dist/components/auth/Google.mjs.map +1 -1
  16. package/dist/components/auth/OtpVerification.js.map +1 -1
  17. package/dist/components/auth/OtpVerification.mjs.map +1 -1
  18. package/dist/components/auth/OtpVerification.module.css.js +1 -1
  19. package/dist/components/auth/OtpVerification.module.css.mjs +1 -1
  20. package/dist/components/auth/PhoneInput.js.map +1 -1
  21. package/dist/components/auth/PhoneInput.mjs +1 -1
  22. package/dist/components/auth/PhoneInput.mjs.map +1 -1
  23. package/dist/components/auth/TurnkeyThemeProvider.js.map +1 -1
  24. package/dist/components/auth/TurnkeyThemeProvider.mjs.map +1 -1
  25. package/dist/components/auth/constants.js.map +1 -1
  26. package/dist/components/auth/constants.mjs +2 -12
  27. package/dist/components/auth/constants.mjs.map +1 -1
  28. package/dist/components/auth/facebookUtils.js.map +1 -1
  29. package/dist/components/auth/facebookUtils.mjs.map +1 -1
  30. package/dist/components/auth/otp.js.map +1 -1
  31. package/dist/components/auth/otp.mjs.map +1 -1
  32. package/dist/components/auth/utils.js.map +1 -1
  33. package/dist/components/auth/utils.mjs.map +1 -1
  34. package/dist/components/export/Export.js.map +1 -1
  35. package/dist/components/export/Export.mjs.map +1 -1
  36. package/dist/components/export/Export.module.css.js +1 -1
  37. package/dist/components/export/Export.module.css.mjs +1 -1
  38. package/dist/components/import/Import.js.map +1 -1
  39. package/dist/components/import/Import.mjs.map +1 -1
  40. package/dist/components/import/Import.module.css.js +1 -1
  41. package/dist/components/import/Import.module.css.mjs +1 -1
  42. package/dist/contexts/TurnkeyContext.js.map +1 -1
  43. package/dist/contexts/TurnkeyContext.mjs +7 -7
  44. package/dist/contexts/TurnkeyContext.mjs.map +1 -1
  45. package/dist/hooks/use-session.js.map +1 -1
  46. package/dist/hooks/use-session.mjs.map +1 -1
  47. package/dist/hooks/use-turnkey.js.map +1 -1
  48. package/dist/hooks/use-turnkey.mjs.map +1 -1
  49. package/package.json +6 -6
package/CHANGELOG.md CHANGED
@@ -1,5 +1,30 @@
1
1
  # @turnkey/sdk-react
2
2
 
3
+ ## 5.3.1
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [[`f83f25b`](https://github.com/tkhq/sdk/commit/f83f25ba33ef15dbd66723531eebe2fd00f43ac0)]:
8
+ - @turnkey/sdk-browser@5.6.0
9
+ - @turnkey/sdk-server@4.5.0
10
+ - @turnkey/crypto@2.5.0
11
+ - @turnkey/wallet-stamper@1.0.8
12
+
13
+ ## 5.3.0
14
+
15
+ ### Minor Changes
16
+
17
+ - [#651](https://github.com/tkhq/sdk/pull/651) [`81e355c`](https://github.com/tkhq/sdk/commit/81e355c9a8321feffcac056916b65139cf35eeed) Author [@turnekybc](https://github.com/turnekybc) - Add Coinbase & MoonPay Fiat Onramp. View the [Fiat Onramp feature docs](https://docs.turnkey.com/wallets/fiat-on-ramp).
18
+
19
+ ### Patch Changes
20
+
21
+ - Updated dependencies [[`81e355c`](https://github.com/tkhq/sdk/commit/81e355c9a8321feffcac056916b65139cf35eeed), [`6cde41c`](https://github.com/tkhq/sdk/commit/6cde41cfecdfb7d54abf52cc65e28ef0e2ad6ba3)]:
22
+ - @turnkey/sdk-browser@5.5.0
23
+ - @turnkey/sdk-server@4.4.0
24
+ - @turnkey/sdk-types@0.3.0
25
+ - @turnkey/crypto@2.5.0
26
+ - @turnkey/wallet-stamper@1.0.8
27
+
3
28
  ## 5.2.11
4
29
 
5
30
  ### Patch Changes
@@ -37,9 +37,9 @@ function _asyncToGenerator(n) {
37
37
  function _defineProperty(e, r, t) {
38
38
  return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
39
39
  value: t,
40
- enumerable: !0,
41
- configurable: !0,
42
- writable: !0
40
+ enumerable: true,
41
+ configurable: true,
42
+ writable: true
43
43
  }) : e[r] = t, e;
44
44
  }
45
45
  function _iterableToArray(r) {
@@ -53,15 +53,15 @@ function _iterableToArrayLimit(r, l) {
53
53
  i,
54
54
  u,
55
55
  a = [],
56
- f = !0,
57
- o = !1;
56
+ f = true,
57
+ o = false;
58
58
  try {
59
59
  if (i = (t = t.call(r)).next, 0 === l) {
60
60
  if (Object(t) !== t) return;
61
61
  f = !1;
62
62
  } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0);
63
63
  } catch (r) {
64
- o = !0, n = r;
64
+ o = true, n = r;
65
65
  } finally {
66
66
  try {
67
67
  if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return;
@@ -91,7 +91,7 @@ function ownKeys(e, r) {
91
91
  function _objectSpread2(e) {
92
92
  for (var r = 1; r < arguments.length; r++) {
93
93
  var t = null != arguments[r] ? arguments[r] : {};
94
- r % 2 ? ownKeys(Object(t), !0).forEach(function (r) {
94
+ r % 2 ? ownKeys(Object(t), true).forEach(function (r) {
95
95
  _defineProperty(e, r, t[r]);
96
96
  }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) {
97
97
  Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r));
@@ -121,47 +121,77 @@ function _objectWithoutPropertiesLoose(r, e) {
121
121
  }
122
122
  function _regeneratorRuntime() {
123
123
  _regeneratorRuntime = function () {
124
- return e;
124
+ return r;
125
125
  };
126
126
  var t,
127
- e = {},
128
- r = Object.prototype,
129
- n = r.hasOwnProperty,
130
- o = Object.defineProperty || function (t, e, r) {
131
- t[e] = r.value;
132
- },
133
- i = "function" == typeof Symbol ? Symbol : {},
134
- a = i.iterator || "@@iterator",
135
- c = i.asyncIterator || "@@asyncIterator",
136
- u = i.toStringTag || "@@toStringTag";
137
- function define(t, e, r) {
138
- return Object.defineProperty(t, e, {
139
- value: r,
140
- enumerable: !0,
141
- configurable: !0,
142
- writable: !0
143
- }), t[e];
127
+ r = {},
128
+ e = Object.prototype,
129
+ n = e.hasOwnProperty,
130
+ o = "function" == typeof Symbol ? Symbol : {},
131
+ i = o.iterator || "@@iterator",
132
+ a = o.asyncIterator || "@@asyncIterator",
133
+ u = o.toStringTag || "@@toStringTag";
134
+ function c(t, r, e, n) {
135
+ Object.defineProperty(t, r, {
136
+ value: e,
137
+ enumerable: !n,
138
+ configurable: !n,
139
+ writable: !n
140
+ });
144
141
  }
145
142
  try {
146
- define({}, "");
143
+ c({}, "");
147
144
  } catch (t) {
148
- define = function (t, e, r) {
149
- return t[e] = r;
145
+ c = function (t, r, e) {
146
+ return t[r] = e;
150
147
  };
151
148
  }
152
- function wrap(t, e, r, n) {
149
+ function h(r, e, n, o) {
153
150
  var i = e && e.prototype instanceof Generator ? e : Generator,
154
- a = Object.create(i.prototype),
155
- c = new Context(n || []);
156
- return o(a, "_invoke", {
157
- value: makeInvokeMethod(t, r, c)
158
- }), a;
151
+ a = Object.create(i.prototype);
152
+ return c(a, "_invoke", function (r, e, n) {
153
+ var o = 1;
154
+ return function (i, a) {
155
+ if (3 === o) throw Error("Generator is already running");
156
+ if (4 === o) {
157
+ if ("throw" === i) throw a;
158
+ return {
159
+ value: t,
160
+ done: true
161
+ };
162
+ }
163
+ for (n.method = i, n.arg = a;;) {
164
+ var u = n.delegate;
165
+ if (u) {
166
+ var c = d(u, n);
167
+ if (c) {
168
+ if (c === f) continue;
169
+ return c;
170
+ }
171
+ }
172
+ if ("next" === n.method) n.sent = n._sent = n.arg;else if ("throw" === n.method) {
173
+ if (1 === o) throw o = 4, n.arg;
174
+ n.dispatchException(n.arg);
175
+ } else "return" === n.method && n.abrupt("return", n.arg);
176
+ o = 3;
177
+ var h = s(r, e, n);
178
+ if ("normal" === h.type) {
179
+ if (o = n.done ? 4 : 2, h.arg === f) continue;
180
+ return {
181
+ value: h.arg,
182
+ done: n.done
183
+ };
184
+ }
185
+ "throw" === h.type && (o = 4, n.method = "throw", n.arg = h.arg);
186
+ }
187
+ };
188
+ }(r, n, new Context(o || [])), true), a;
159
189
  }
160
- function tryCatch(t, e, r) {
190
+ function s(t, r, e) {
161
191
  try {
162
192
  return {
163
193
  type: "normal",
164
- arg: t.call(e, r)
194
+ arg: t.call(r, e)
165
195
  };
166
196
  } catch (t) {
167
197
  return {
@@ -170,255 +200,193 @@ function _regeneratorRuntime() {
170
200
  };
171
201
  }
172
202
  }
173
- e.wrap = wrap;
174
- var h = "suspendedStart",
175
- l = "suspendedYield",
176
- f = "executing",
177
- s = "completed",
178
- y = {};
203
+ r.wrap = h;
204
+ var f = {};
179
205
  function Generator() {}
180
206
  function GeneratorFunction() {}
181
207
  function GeneratorFunctionPrototype() {}
182
- var p = {};
183
- define(p, a, function () {
208
+ var l = {};
209
+ c(l, i, function () {
184
210
  return this;
185
211
  });
186
- var d = Object.getPrototypeOf,
187
- v = d && d(d(values([])));
188
- v && v !== r && n.call(v, a) && (p = v);
189
- var g = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(p);
190
- function defineIteratorMethods(t) {
191
- ["next", "throw", "return"].forEach(function (e) {
192
- define(t, e, function (t) {
193
- return this._invoke(e, t);
212
+ var p = Object.getPrototypeOf,
213
+ y = p && p(p(x([])));
214
+ y && y !== e && n.call(y, i) && (l = y);
215
+ var v = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(l);
216
+ function g(t) {
217
+ ["next", "throw", "return"].forEach(function (r) {
218
+ c(t, r, function (t) {
219
+ return this._invoke(r, t);
194
220
  });
195
221
  });
196
222
  }
197
- function AsyncIterator(t, e) {
198
- function invoke(r, o, i, a) {
199
- var c = tryCatch(t[r], t, o);
223
+ function AsyncIterator(t, r) {
224
+ function e(o, i, a, u) {
225
+ var c = s(t[o], t, i);
200
226
  if ("throw" !== c.type) {
201
- var u = c.arg,
202
- h = u.value;
203
- return h && "object" == typeof h && n.call(h, "__await") ? e.resolve(h.__await).then(function (t) {
204
- invoke("next", t, i, a);
227
+ var h = c.arg,
228
+ f = h.value;
229
+ return f && "object" == typeof f && n.call(f, "__await") ? r.resolve(f.__await).then(function (t) {
230
+ e("next", t, a, u);
205
231
  }, function (t) {
206
- invoke("throw", t, i, a);
207
- }) : e.resolve(h).then(function (t) {
208
- u.value = t, i(u);
232
+ e("throw", t, a, u);
233
+ }) : r.resolve(f).then(function (t) {
234
+ h.value = t, a(h);
209
235
  }, function (t) {
210
- return invoke("throw", t, i, a);
236
+ return e("throw", t, a, u);
211
237
  });
212
238
  }
213
- a(c.arg);
239
+ u(c.arg);
214
240
  }
215
- var r;
216
- o(this, "_invoke", {
217
- value: function (t, n) {
218
- function callInvokeWithMethodAndArg() {
219
- return new e(function (e, r) {
220
- invoke(t, n, e, r);
221
- });
222
- }
223
- return r = r ? r.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg();
224
- }
225
- });
226
- }
227
- function makeInvokeMethod(e, r, n) {
228
- var o = h;
229
- return function (i, a) {
230
- if (o === f) throw Error("Generator is already running");
231
- if (o === s) {
232
- if ("throw" === i) throw a;
233
- return {
234
- value: t,
235
- done: !0
236
- };
237
- }
238
- for (n.method = i, n.arg = a;;) {
239
- var c = n.delegate;
240
- if (c) {
241
- var u = maybeInvokeDelegate(c, n);
242
- if (u) {
243
- if (u === y) continue;
244
- return u;
245
- }
246
- }
247
- if ("next" === n.method) n.sent = n._sent = n.arg;else if ("throw" === n.method) {
248
- if (o === h) throw o = s, n.arg;
249
- n.dispatchException(n.arg);
250
- } else "return" === n.method && n.abrupt("return", n.arg);
251
- o = f;
252
- var p = tryCatch(e, r, n);
253
- if ("normal" === p.type) {
254
- if (o = n.done ? s : l, p.arg === y) continue;
255
- return {
256
- value: p.arg,
257
- done: n.done
258
- };
259
- }
260
- "throw" === p.type && (o = s, n.method = "throw", n.arg = p.arg);
241
+ var o;
242
+ c(this, "_invoke", function (t, n) {
243
+ function i() {
244
+ return new r(function (r, o) {
245
+ e(t, n, r, o);
246
+ });
261
247
  }
262
- };
248
+ return o = o ? o.then(i, i) : i();
249
+ }, true);
263
250
  }
264
- function maybeInvokeDelegate(e, r) {
265
- var n = r.method,
266
- o = e.iterator[n];
267
- 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;
268
- var i = tryCatch(o, e.iterator, r.arg);
269
- if ("throw" === i.type) return r.method = "throw", r.arg = i.arg, r.delegate = null, y;
251
+ function d(r, e) {
252
+ var n = e.method,
253
+ o = r.i[n];
254
+ if (o === t) return e.delegate = null, "throw" === n && r.i.return && (e.method = "return", e.arg = t, d(r, e), "throw" === e.method) || "return" !== n && (e.method = "throw", e.arg = new TypeError("The iterator does not provide a '" + n + "' method")), f;
255
+ var i = s(o, r.i, e.arg);
256
+ if ("throw" === i.type) return e.method = "throw", e.arg = i.arg, e.delegate = null, f;
270
257
  var a = i.arg;
271
- 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);
258
+ return a ? a.done ? (e[r.r] = a.value, e.next = r.n, "return" !== e.method && (e.method = "next", e.arg = t), e.delegate = null, f) : a : (e.method = "throw", e.arg = new TypeError("iterator result is not an object"), e.delegate = null, f);
272
259
  }
273
- function pushTryEntry(t) {
274
- var e = {
275
- tryLoc: t[0]
276
- };
277
- 1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e);
260
+ function w(t) {
261
+ this.tryEntries.push(t);
278
262
  }
279
- function resetTryEntry(t) {
280
- var e = t.completion || {};
281
- e.type = "normal", delete e.arg, t.completion = e;
263
+ function m(r) {
264
+ var e = r[4] || {};
265
+ e.type = "normal", e.arg = t, r[4] = e;
282
266
  }
283
267
  function Context(t) {
284
- this.tryEntries = [{
285
- tryLoc: "root"
286
- }], t.forEach(pushTryEntry, this), this.reset(!0);
268
+ this.tryEntries = [[-1]], t.forEach(w, this), this.reset(true);
287
269
  }
288
- function values(e) {
289
- if (e || "" === e) {
290
- var r = e[a];
291
- if (r) return r.call(e);
292
- if ("function" == typeof e.next) return e;
293
- if (!isNaN(e.length)) {
270
+ function x(r) {
271
+ if (null != r) {
272
+ var e = r[i];
273
+ if (e) return e.call(r);
274
+ if ("function" == typeof r.next) return r;
275
+ if (!isNaN(r.length)) {
294
276
  var o = -1,
295
- i = function next() {
296
- for (; ++o < e.length;) if (n.call(e, o)) return next.value = e[o], next.done = !1, next;
297
- return next.value = t, next.done = !0, next;
277
+ a = function e() {
278
+ for (; ++o < r.length;) if (n.call(r, o)) return e.value = r[o], e.done = false, e;
279
+ return e.value = t, e.done = true, e;
298
280
  };
299
- return i.next = i;
281
+ return a.next = a;
300
282
  }
301
283
  }
302
- throw new TypeError(typeof e + " is not iterable");
284
+ throw new TypeError(typeof r + " is not iterable");
303
285
  }
304
- return GeneratorFunction.prototype = GeneratorFunctionPrototype, o(g, "constructor", {
305
- value: GeneratorFunctionPrototype,
306
- configurable: !0
307
- }), o(GeneratorFunctionPrototype, "constructor", {
308
- value: GeneratorFunction,
309
- configurable: !0
310
- }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, u, "GeneratorFunction"), e.isGeneratorFunction = function (t) {
311
- var e = "function" == typeof t && t.constructor;
312
- return !!e && (e === GeneratorFunction || "GeneratorFunction" === (e.displayName || e.name));
313
- }, e.mark = function (t) {
314
- return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, define(t, u, "GeneratorFunction")), t.prototype = Object.create(g), t;
315
- }, e.awrap = function (t) {
286
+ return GeneratorFunction.prototype = GeneratorFunctionPrototype, c(v, "constructor", GeneratorFunctionPrototype), c(GeneratorFunctionPrototype, "constructor", GeneratorFunction), c(GeneratorFunctionPrototype, u, GeneratorFunction.displayName = "GeneratorFunction"), r.isGeneratorFunction = function (t) {
287
+ var r = "function" == typeof t && t.constructor;
288
+ return !!r && (r === GeneratorFunction || "GeneratorFunction" === (r.displayName || r.name));
289
+ }, r.mark = function (t) {
290
+ return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, c(t, u, "GeneratorFunction")), t.prototype = Object.create(v), t;
291
+ }, r.awrap = function (t) {
316
292
  return {
317
293
  __await: t
318
294
  };
319
- }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, c, function () {
295
+ }, g(AsyncIterator.prototype), c(AsyncIterator.prototype, a, function () {
320
296
  return this;
321
- }), e.AsyncIterator = AsyncIterator, e.async = function (t, r, n, o, i) {
297
+ }), r.AsyncIterator = AsyncIterator, r.async = function (t, e, n, o, i) {
322
298
  void 0 === i && (i = Promise);
323
- var a = new AsyncIterator(wrap(t, r, n, o), i);
324
- return e.isGeneratorFunction(r) ? a : a.next().then(function (t) {
299
+ var a = new AsyncIterator(h(t, e, n, o), i);
300
+ return r.isGeneratorFunction(e) ? a : a.next().then(function (t) {
325
301
  return t.done ? t.value : a.next();
326
302
  });
327
- }, defineIteratorMethods(g), define(g, u, "Generator"), define(g, a, function () {
303
+ }, g(v), c(v, u, "Generator"), c(v, i, function () {
328
304
  return this;
329
- }), define(g, "toString", function () {
305
+ }), c(v, "toString", function () {
330
306
  return "[object Generator]";
331
- }), e.keys = function (t) {
332
- var e = Object(t),
333
- r = [];
334
- for (var n in e) r.push(n);
335
- return r.reverse(), function next() {
336
- for (; r.length;) {
337
- var t = r.pop();
338
- if (t in e) return next.value = t, next.done = !1, next;
339
- }
340
- return next.done = !0, next;
307
+ }), r.keys = function (t) {
308
+ var r = Object(t),
309
+ e = [];
310
+ for (var n in r) e.unshift(n);
311
+ return function t() {
312
+ for (; e.length;) if ((n = e.pop()) in r) return t.value = n, t.done = false, t;
313
+ return t.done = true, t;
341
314
  };
342
- }, e.values = values, Context.prototype = {
315
+ }, r.values = x, Context.prototype = {
343
316
  constructor: Context,
344
- reset: function (e) {
345
- 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);
317
+ reset: function (r) {
318
+ if (this.prev = this.next = 0, this.sent = this._sent = t, this.done = false, this.delegate = null, this.method = "next", this.arg = t, this.tryEntries.forEach(m), !r) for (var e in this) "t" === e.charAt(0) && n.call(this, e) && !isNaN(+e.slice(1)) && (this[e] = t);
346
319
  },
347
320
  stop: function () {
348
- this.done = !0;
349
- var t = this.tryEntries[0].completion;
321
+ this.done = true;
322
+ var t = this.tryEntries[0][4];
350
323
  if ("throw" === t.type) throw t.arg;
351
324
  return this.rval;
352
325
  },
353
- dispatchException: function (e) {
354
- if (this.done) throw e;
355
- var r = this;
356
- function handle(n, o) {
357
- return a.type = "throw", a.arg = e, r.next = n, o && (r.method = "next", r.arg = t), !!o;
326
+ dispatchException: function (r) {
327
+ if (this.done) throw r;
328
+ var e = this;
329
+ function n(t) {
330
+ a.type = "throw", a.arg = r, e.next = t;
358
331
  }
359
- for (var o = this.tryEntries.length - 1; o >= 0; --o) {
332
+ for (var o = e.tryEntries.length - 1; o >= 0; --o) {
360
333
  var i = this.tryEntries[o],
361
- a = i.completion;
362
- if ("root" === i.tryLoc) return handle("end");
363
- if (i.tryLoc <= this.prev) {
364
- var c = n.call(i, "catchLoc"),
365
- u = n.call(i, "finallyLoc");
366
- if (c && u) {
367
- if (this.prev < i.catchLoc) return handle(i.catchLoc, !0);
368
- if (this.prev < i.finallyLoc) return handle(i.finallyLoc);
369
- } else if (c) {
370
- if (this.prev < i.catchLoc) return handle(i.catchLoc, !0);
371
- } else {
372
- if (!u) throw Error("try statement without catch or finally");
373
- if (this.prev < i.finallyLoc) return handle(i.finallyLoc);
374
- }
334
+ a = i[4],
335
+ u = this.prev,
336
+ c = i[1],
337
+ h = i[2];
338
+ if (-1 === i[0]) return n("end"), false;
339
+ if (!c && !h) throw Error("try statement without catch or finally");
340
+ if (null != i[0] && i[0] <= u) {
341
+ if (u < c) return this.method = "next", this.arg = t, n(c), true;
342
+ if (u < h) return n(h), false;
375
343
  }
376
344
  }
377
345
  },
378
- abrupt: function (t, e) {
379
- for (var r = this.tryEntries.length - 1; r >= 0; --r) {
380
- var o = this.tryEntries[r];
381
- if (o.tryLoc <= this.prev && n.call(o, "finallyLoc") && this.prev < o.finallyLoc) {
382
- var i = o;
346
+ abrupt: function (t, r) {
347
+ for (var e = this.tryEntries.length - 1; e >= 0; --e) {
348
+ var n = this.tryEntries[e];
349
+ if (n[0] > -1 && n[0] <= this.prev && this.prev < n[2]) {
350
+ var o = n;
383
351
  break;
384
352
  }
385
353
  }
386
- i && ("break" === t || "continue" === t) && i.tryLoc <= e && e <= i.finallyLoc && (i = null);
387
- var a = i ? i.completion : {};
388
- return a.type = t, a.arg = e, i ? (this.method = "next", this.next = i.finallyLoc, y) : this.complete(a);
354
+ o && ("break" === t || "continue" === t) && o[0] <= r && r <= o[2] && (o = null);
355
+ var i = o ? o[4] : {};
356
+ return i.type = t, i.arg = r, o ? (this.method = "next", this.next = o[2], f) : this.complete(i);
389
357
  },
390
- complete: function (t, e) {
358
+ complete: function (t, r) {
391
359
  if ("throw" === t.type) throw t.arg;
392
- 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;
360
+ 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 && r && (this.next = r), f;
393
361
  },
394
362
  finish: function (t) {
395
- for (var e = this.tryEntries.length - 1; e >= 0; --e) {
396
- var r = this.tryEntries[e];
397
- if (r.finallyLoc === t) return this.complete(r.completion, r.afterLoc), resetTryEntry(r), y;
363
+ for (var r = this.tryEntries.length - 1; r >= 0; --r) {
364
+ var e = this.tryEntries[r];
365
+ if (e[2] === t) return this.complete(e[4], e[3]), m(e), f;
398
366
  }
399
367
  },
400
368
  catch: function (t) {
401
- for (var e = this.tryEntries.length - 1; e >= 0; --e) {
402
- var r = this.tryEntries[e];
403
- if (r.tryLoc === t) {
404
- var n = r.completion;
369
+ for (var r = this.tryEntries.length - 1; r >= 0; --r) {
370
+ var e = this.tryEntries[r];
371
+ if (e[0] === t) {
372
+ var n = e[4];
405
373
  if ("throw" === n.type) {
406
374
  var o = n.arg;
407
- resetTryEntry(r);
375
+ m(e);
408
376
  }
409
377
  return o;
410
378
  }
411
379
  }
412
380
  throw Error("illegal catch attempt");
413
381
  },
414
- delegateYield: function (e, r, n) {
382
+ delegateYield: function (r, e, n) {
415
383
  return this.delegate = {
416
- iterator: values(e),
417
- resultName: r,
418
- nextLoc: n
419
- }, "next" === this.method && (this.arg = t), y;
384
+ i: x(r),
385
+ r: e,
386
+ n: n
387
+ }, "next" === this.method && (this.arg = t), f;
420
388
  }
421
- }, e;
389
+ }, r;
422
390
  }
423
391
  function _slicedToArray(r, e) {
424
392
  return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest();
@@ -430,7 +398,7 @@ function _toPrimitive(t, r) {
430
398
  if ("object" != typeof t || !t) return t;
431
399
  var e = t[Symbol.toPrimitive];
432
400
  if (void 0 !== e) {
433
- var i = e.call(t, r || "default");
401
+ var i = e.call(t, r);
434
402
  if ("object" != typeof i) return i;
435
403
  throw new TypeError("@@toPrimitive must return a primitive value.");
436
404
  }
@@ -1 +1 @@
1
- {"version":3,"file":"_rollupPluginBabelHelpers.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"_rollupPluginBabelHelpers.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}