@turnkey/sdk-react 5.2.10 → 5.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +24 -0
- package/dist/_virtual/_rollupPluginBabelHelpers.mjs +186 -218
- package/dist/_virtual/_rollupPluginBabelHelpers.mjs.map +1 -1
- package/dist/components/auth/Apple.js.map +1 -1
- package/dist/components/auth/Apple.mjs.map +1 -1
- package/dist/components/auth/Auth.d.ts +1 -0
- package/dist/components/auth/Auth.d.ts.map +1 -1
- package/dist/components/auth/Auth.js +1 -1
- package/dist/components/auth/Auth.js.map +1 -1
- package/dist/components/auth/Auth.mjs +25 -25
- package/dist/components/auth/Auth.mjs.map +1 -1
- package/dist/components/auth/Auth.module.css.js +1 -1
- package/dist/components/auth/Auth.module.css.mjs +1 -1
- package/dist/components/auth/Facebook.js.map +1 -1
- package/dist/components/auth/Facebook.mjs +1 -1
- package/dist/components/auth/Facebook.mjs.map +1 -1
- package/dist/components/auth/Google.js.map +1 -1
- package/dist/components/auth/Google.mjs.map +1 -1
- package/dist/components/auth/OtpVerification.js.map +1 -1
- package/dist/components/auth/OtpVerification.mjs.map +1 -1
- package/dist/components/auth/OtpVerification.module.css.js +1 -1
- package/dist/components/auth/OtpVerification.module.css.mjs +1 -1
- package/dist/components/auth/PhoneInput.js.map +1 -1
- package/dist/components/auth/PhoneInput.mjs +1 -1
- package/dist/components/auth/PhoneInput.mjs.map +1 -1
- package/dist/components/auth/TurnkeyThemeProvider.js.map +1 -1
- package/dist/components/auth/TurnkeyThemeProvider.mjs.map +1 -1
- package/dist/components/auth/constants.js.map +1 -1
- package/dist/components/auth/constants.mjs +2 -12
- package/dist/components/auth/constants.mjs.map +1 -1
- package/dist/components/auth/facebookUtils.js.map +1 -1
- package/dist/components/auth/facebookUtils.mjs.map +1 -1
- package/dist/components/auth/otp.js.map +1 -1
- package/dist/components/auth/otp.mjs.map +1 -1
- package/dist/components/auth/utils.js.map +1 -1
- package/dist/components/auth/utils.mjs.map +1 -1
- package/dist/components/export/Export.js.map +1 -1
- package/dist/components/export/Export.mjs.map +1 -1
- package/dist/components/export/Export.module.css.js +1 -1
- package/dist/components/export/Export.module.css.mjs +1 -1
- package/dist/components/import/Import.js.map +1 -1
- package/dist/components/import/Import.mjs.map +1 -1
- package/dist/components/import/Import.module.css.js +1 -1
- package/dist/components/import/Import.module.css.mjs +1 -1
- package/dist/contexts/TurnkeyContext.js.map +1 -1
- package/dist/contexts/TurnkeyContext.mjs +7 -7
- package/dist/contexts/TurnkeyContext.mjs.map +1 -1
- package/dist/hooks/use-session.js.map +1 -1
- package/dist/hooks/use-session.mjs.map +1 -1
- package/dist/hooks/use-turnkey.js.map +1 -1
- package/dist/hooks/use-turnkey.mjs.map +1 -1
- package/package.json +6 -6
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,29 @@
|
|
|
1
1
|
# @turnkey/sdk-react
|
|
2
2
|
|
|
3
|
+
## 5.3.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [#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).
|
|
8
|
+
|
|
9
|
+
### Patch Changes
|
|
10
|
+
|
|
11
|
+
- Updated dependencies [[`81e355c`](https://github.com/tkhq/sdk/commit/81e355c9a8321feffcac056916b65139cf35eeed), [`6cde41c`](https://github.com/tkhq/sdk/commit/6cde41cfecdfb7d54abf52cc65e28ef0e2ad6ba3)]:
|
|
12
|
+
- @turnkey/sdk-browser@5.5.0
|
|
13
|
+
- @turnkey/sdk-server@4.4.0
|
|
14
|
+
- @turnkey/sdk-types@0.3.0
|
|
15
|
+
- @turnkey/crypto@2.5.0
|
|
16
|
+
- @turnkey/wallet-stamper@1.0.8
|
|
17
|
+
|
|
18
|
+
## 5.2.11
|
|
19
|
+
|
|
20
|
+
### Patch Changes
|
|
21
|
+
|
|
22
|
+
- [#787](https://github.com/tkhq/sdk/pull/787) [`0d1eb2c`](https://github.com/tkhq/sdk/commit/0d1eb2c464bac3cf6f4386f402604ecf8f373f15) Author [@andrewkmin](https://github.com/andrewkmin) - Add `showTitle` toggle in authConfig for the Auth component to control visibility of the "Log in or Sign up" title.
|
|
23
|
+
|
|
24
|
+
- Updated dependencies [[`0d1eb2c`](https://github.com/tkhq/sdk/commit/0d1eb2c464bac3cf6f4386f402604ecf8f373f15)]:
|
|
25
|
+
- @turnkey/sdk-browser@5.4.1
|
|
26
|
+
|
|
3
27
|
## 5.2.10
|
|
4
28
|
|
|
5
29
|
### 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:
|
|
41
|
-
configurable:
|
|
42
|
-
writable:
|
|
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 =
|
|
57
|
-
o =
|
|
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 =
|
|
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),
|
|
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
|
|
124
|
+
return r;
|
|
125
125
|
};
|
|
126
126
|
var t,
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
n =
|
|
130
|
-
o =
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
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
|
-
|
|
143
|
+
c({}, "");
|
|
147
144
|
} catch (t) {
|
|
148
|
-
|
|
149
|
-
return t[
|
|
145
|
+
c = function (t, r, e) {
|
|
146
|
+
return t[r] = e;
|
|
150
147
|
};
|
|
151
148
|
}
|
|
152
|
-
function
|
|
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
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
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
|
|
190
|
+
function s(t, r, e) {
|
|
161
191
|
try {
|
|
162
192
|
return {
|
|
163
193
|
type: "normal",
|
|
164
|
-
arg: t.call(
|
|
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
|
-
|
|
174
|
-
var
|
|
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
|
|
183
|
-
|
|
208
|
+
var l = {};
|
|
209
|
+
c(l, i, function () {
|
|
184
210
|
return this;
|
|
185
211
|
});
|
|
186
|
-
var
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
var
|
|
190
|
-
function
|
|
191
|
-
["next", "throw", "return"].forEach(function (
|
|
192
|
-
|
|
193
|
-
return this._invoke(
|
|
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,
|
|
198
|
-
function
|
|
199
|
-
var c =
|
|
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
|
|
202
|
-
|
|
203
|
-
return
|
|
204
|
-
|
|
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
|
-
|
|
207
|
-
}) :
|
|
208
|
-
|
|
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
|
|
236
|
+
return e("throw", t, a, u);
|
|
211
237
|
});
|
|
212
238
|
}
|
|
213
|
-
|
|
239
|
+
u(c.arg);
|
|
214
240
|
}
|
|
215
|
-
var
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
function
|
|
219
|
-
|
|
220
|
-
|
|
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
|
|
265
|
-
var n =
|
|
266
|
-
o =
|
|
267
|
-
if (o === t) return
|
|
268
|
-
var i =
|
|
269
|
-
if ("throw" === i.type) return
|
|
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
|
|
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
|
|
274
|
-
|
|
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
|
|
280
|
-
var e =
|
|
281
|
-
e.type = "normal",
|
|
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
|
|
289
|
-
if (
|
|
290
|
-
var
|
|
291
|
-
if (
|
|
292
|
-
if ("function" == typeof
|
|
293
|
-
if (!isNaN(
|
|
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
|
-
|
|
296
|
-
for (; ++o <
|
|
297
|
-
return
|
|
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
|
|
281
|
+
return a.next = a;
|
|
300
282
|
}
|
|
301
283
|
}
|
|
302
|
-
throw new TypeError(typeof
|
|
284
|
+
throw new TypeError(typeof r + " is not iterable");
|
|
303
285
|
}
|
|
304
|
-
return GeneratorFunction.prototype = GeneratorFunctionPrototype,
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
}
|
|
308
|
-
|
|
309
|
-
|
|
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
|
-
},
|
|
295
|
+
}, g(AsyncIterator.prototype), c(AsyncIterator.prototype, a, function () {
|
|
320
296
|
return this;
|
|
321
|
-
}),
|
|
297
|
+
}), r.AsyncIterator = AsyncIterator, r.async = function (t, e, n, o, i) {
|
|
322
298
|
void 0 === i && (i = Promise);
|
|
323
|
-
var a = new AsyncIterator(
|
|
324
|
-
return
|
|
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
|
-
},
|
|
303
|
+
}, g(v), c(v, u, "Generator"), c(v, i, function () {
|
|
328
304
|
return this;
|
|
329
|
-
}),
|
|
305
|
+
}), c(v, "toString", function () {
|
|
330
306
|
return "[object Generator]";
|
|
331
|
-
}),
|
|
332
|
-
var
|
|
333
|
-
|
|
334
|
-
for (var n in
|
|
335
|
-
return
|
|
336
|
-
for (;
|
|
337
|
-
|
|
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
|
-
},
|
|
315
|
+
}, r.values = x, Context.prototype = {
|
|
343
316
|
constructor: Context,
|
|
344
|
-
reset: function (
|
|
345
|
-
if (this.prev =
|
|
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 =
|
|
349
|
-
var t = this.tryEntries[0]
|
|
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 (
|
|
354
|
-
if (this.done) throw
|
|
355
|
-
var
|
|
356
|
-
function
|
|
357
|
-
|
|
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 =
|
|
332
|
+
for (var o = e.tryEntries.length - 1; o >= 0; --o) {
|
|
360
333
|
var i = this.tryEntries[o],
|
|
361
|
-
a = i
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
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,
|
|
379
|
-
for (var
|
|
380
|
-
var
|
|
381
|
-
if (
|
|
382
|
-
var
|
|
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
|
-
|
|
387
|
-
var
|
|
388
|
-
return
|
|
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,
|
|
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 &&
|
|
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
|
|
396
|
-
var
|
|
397
|
-
if (
|
|
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
|
|
402
|
-
var
|
|
403
|
-
if (
|
|
404
|
-
var n =
|
|
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
|
-
|
|
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 (
|
|
382
|
+
delegateYield: function (r, e, n) {
|
|
415
383
|
return this.delegate = {
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
}, "next" === this.method && (this.arg = t),
|
|
384
|
+
i: x(r),
|
|
385
|
+
r: e,
|
|
386
|
+
n: n
|
|
387
|
+
}, "next" === this.method && (this.arg = t), f;
|
|
420
388
|
}
|
|
421
|
-
},
|
|
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
|
|
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":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|