tinacms-authjs 2.0.4 → 2.0.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/tinacms.mjs CHANGED
@@ -3,9 +3,9 @@ import { AbstractAuthProvider } from "tinacms";
3
3
  var react = {};
4
4
  var interopRequireDefault = { exports: {} };
5
5
  (function(module) {
6
- function _interopRequireDefault(obj) {
7
- return obj && obj.__esModule ? obj : {
8
- "default": obj
6
+ function _interopRequireDefault(e) {
7
+ return e && e.__esModule ? e : {
8
+ "default": e
9
9
  };
10
10
  }
11
11
  module.exports = _interopRequireDefault, module.exports.__esModule = true, module.exports["default"] = module.exports;
@@ -13,13 +13,13 @@ var interopRequireDefault = { exports: {} };
13
13
  var interopRequireDefaultExports = interopRequireDefault.exports;
14
14
  var _typeof = { exports: {} };
15
15
  (function(module) {
16
- function _typeof2(obj) {
16
+ function _typeof2(o) {
17
17
  "@babel/helpers - typeof";
18
- return module.exports = _typeof2 = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(obj2) {
19
- return typeof obj2;
20
- } : function(obj2) {
21
- return obj2 && "function" == typeof Symbol && obj2.constructor === Symbol && obj2 !== Symbol.prototype ? "symbol" : typeof obj2;
22
- }, module.exports.__esModule = true, module.exports["default"] = module.exports, _typeof2(obj);
18
+ return module.exports = _typeof2 = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o2) {
19
+ return typeof o2;
20
+ } : function(o2) {
21
+ return o2 && "function" == typeof Symbol && o2.constructor === Symbol && o2 !== Symbol.prototype ? "symbol" : typeof o2;
22
+ }, module.exports.__esModule = true, module.exports["default"] = module.exports, _typeof2(o);
23
23
  }
24
24
  module.exports = _typeof2, module.exports.__esModule = true, module.exports["default"] = module.exports;
25
25
  })(_typeof);
@@ -34,319 +34,314 @@ function requireRegeneratorRuntime() {
34
34
  var _typeof2 = _typeofExports["default"];
35
35
  function _regeneratorRuntime() {
36
36
  module.exports = _regeneratorRuntime = function _regeneratorRuntime2() {
37
- return exports;
37
+ return e;
38
38
  }, module.exports.__esModule = true, module.exports["default"] = module.exports;
39
- var exports = {}, Op = Object.prototype, hasOwn = Op.hasOwnProperty, defineProperty2 = Object.defineProperty || function(obj, key, desc) {
40
- obj[key] = desc.value;
41
- }, $Symbol = "function" == typeof Symbol ? Symbol : {}, iteratorSymbol = $Symbol.iterator || "@@iterator", asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator", toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag";
42
- function define(obj, key, value) {
43
- return Object.defineProperty(obj, key, {
44
- value,
39
+ var t, e = {}, r = Object.prototype, n = r.hasOwnProperty, o = Object.defineProperty || function(t2, e2, r2) {
40
+ t2[e2] = r2.value;
41
+ }, i = "function" == typeof Symbol ? Symbol : {}, a = i.iterator || "@@iterator", c = i.asyncIterator || "@@asyncIterator", u = i.toStringTag || "@@toStringTag";
42
+ function define(t2, e2, r2) {
43
+ return Object.defineProperty(t2, e2, {
44
+ value: r2,
45
45
  enumerable: true,
46
46
  configurable: true,
47
47
  writable: true
48
- }), obj[key];
48
+ }), t2[e2];
49
49
  }
50
50
  try {
51
51
  define({}, "");
52
- } catch (err) {
53
- define = function define2(obj, key, value) {
54
- return obj[key] = value;
52
+ } catch (t2) {
53
+ define = function define2(t3, e2, r2) {
54
+ return t3[e2] = r2;
55
55
  };
56
56
  }
57
- function wrap(innerFn, outerFn, self, tryLocsList) {
58
- var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator, generator = Object.create(protoGenerator.prototype), context = new Context(tryLocsList || []);
59
- return defineProperty2(generator, "_invoke", {
60
- value: makeInvokeMethod(innerFn, self, context)
61
- }), generator;
57
+ function wrap(t2, e2, r2, n2) {
58
+ var i2 = e2 && e2.prototype instanceof Generator ? e2 : Generator, a2 = Object.create(i2.prototype), c2 = new Context(n2 || []);
59
+ return o(a2, "_invoke", {
60
+ value: makeInvokeMethod(t2, r2, c2)
61
+ }), a2;
62
62
  }
63
- function tryCatch(fn, obj, arg) {
63
+ function tryCatch(t2, e2, r2) {
64
64
  try {
65
65
  return {
66
66
  type: "normal",
67
- arg: fn.call(obj, arg)
67
+ arg: t2.call(e2, r2)
68
68
  };
69
- } catch (err) {
69
+ } catch (t3) {
70
70
  return {
71
71
  type: "throw",
72
- arg: err
72
+ arg: t3
73
73
  };
74
74
  }
75
75
  }
76
- exports.wrap = wrap;
77
- var ContinueSentinel = {};
76
+ e.wrap = wrap;
77
+ var h = "suspendedStart", l = "suspendedYield", f = "executing", s = "completed", y = {};
78
78
  function Generator() {
79
79
  }
80
80
  function GeneratorFunction() {
81
81
  }
82
82
  function GeneratorFunctionPrototype() {
83
83
  }
84
- var IteratorPrototype = {};
85
- define(IteratorPrototype, iteratorSymbol, function() {
84
+ var p = {};
85
+ define(p, a, function() {
86
86
  return this;
87
87
  });
88
- var getProto = Object.getPrototypeOf, NativeIteratorPrototype = getProto && getProto(getProto(values([])));
89
- NativeIteratorPrototype && NativeIteratorPrototype !== Op && hasOwn.call(NativeIteratorPrototype, iteratorSymbol) && (IteratorPrototype = NativeIteratorPrototype);
90
- var Gp = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(IteratorPrototype);
91
- function defineIteratorMethods(prototype) {
92
- ["next", "throw", "return"].forEach(function(method) {
93
- define(prototype, method, function(arg) {
94
- return this._invoke(method, arg);
88
+ var d = Object.getPrototypeOf, v = d && d(d(values([])));
89
+ v && v !== r && n.call(v, a) && (p = v);
90
+ var g = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(p);
91
+ function defineIteratorMethods(t2) {
92
+ ["next", "throw", "return"].forEach(function(e2) {
93
+ define(t2, e2, function(t3) {
94
+ return this._invoke(e2, t3);
95
95
  });
96
96
  });
97
97
  }
98
- function AsyncIterator(generator, PromiseImpl) {
99
- function invoke(method, arg, resolve, reject) {
100
- var record = tryCatch(generator[method], generator, arg);
101
- if ("throw" !== record.type) {
102
- var result = record.arg, value = result.value;
103
- return value && "object" == _typeof2(value) && hasOwn.call(value, "__await") ? PromiseImpl.resolve(value.__await).then(function(value2) {
104
- invoke("next", value2, resolve, reject);
105
- }, function(err) {
106
- invoke("throw", err, resolve, reject);
107
- }) : PromiseImpl.resolve(value).then(function(unwrapped) {
108
- result.value = unwrapped, resolve(result);
109
- }, function(error) {
110
- return invoke("throw", error, resolve, reject);
98
+ function AsyncIterator(t2, e2) {
99
+ function invoke(r3, o2, i2, a2) {
100
+ var c2 = tryCatch(t2[r3], t2, o2);
101
+ if ("throw" !== c2.type) {
102
+ var u2 = c2.arg, h2 = u2.value;
103
+ return h2 && "object" == _typeof2(h2) && n.call(h2, "__await") ? e2.resolve(h2.__await).then(function(t3) {
104
+ invoke("next", t3, i2, a2);
105
+ }, function(t3) {
106
+ invoke("throw", t3, i2, a2);
107
+ }) : e2.resolve(h2).then(function(t3) {
108
+ u2.value = t3, i2(u2);
109
+ }, function(t3) {
110
+ return invoke("throw", t3, i2, a2);
111
111
  });
112
112
  }
113
- reject(record.arg);
113
+ a2(c2.arg);
114
114
  }
115
- var previousPromise;
116
- defineProperty2(this, "_invoke", {
117
- value: function value(method, arg) {
115
+ var r2;
116
+ o(this, "_invoke", {
117
+ value: function value(t3, n2) {
118
118
  function callInvokeWithMethodAndArg() {
119
- return new PromiseImpl(function(resolve, reject) {
120
- invoke(method, arg, resolve, reject);
119
+ return new e2(function(e3, r3) {
120
+ invoke(t3, n2, e3, r3);
121
121
  });
122
122
  }
123
- return previousPromise = previousPromise ? previousPromise.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg();
123
+ return r2 = r2 ? r2.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg();
124
124
  }
125
125
  });
126
126
  }
127
- function makeInvokeMethod(innerFn, self, context) {
128
- var state = "suspendedStart";
129
- return function(method, arg) {
130
- if ("executing" === state)
131
- throw new Error("Generator is already running");
132
- if ("completed" === state) {
133
- if ("throw" === method)
134
- throw arg;
135
- return doneResult();
136
- }
137
- for (context.method = method, context.arg = arg; ; ) {
138
- var delegate = context.delegate;
139
- if (delegate) {
140
- var delegateResult = maybeInvokeDelegate(delegate, context);
141
- if (delegateResult) {
142
- if (delegateResult === ContinueSentinel)
127
+ function makeInvokeMethod(e2, r2, n2) {
128
+ var o2 = h;
129
+ return function(i2, a2) {
130
+ if (o2 === f)
131
+ throw Error("Generator is already running");
132
+ if (o2 === s) {
133
+ if ("throw" === i2)
134
+ throw a2;
135
+ return {
136
+ value: t,
137
+ done: true
138
+ };
139
+ }
140
+ for (n2.method = i2, n2.arg = a2; ; ) {
141
+ var c2 = n2.delegate;
142
+ if (c2) {
143
+ var u2 = maybeInvokeDelegate(c2, n2);
144
+ if (u2) {
145
+ if (u2 === y)
143
146
  continue;
144
- return delegateResult;
147
+ return u2;
145
148
  }
146
149
  }
147
- if ("next" === context.method)
148
- context.sent = context._sent = context.arg;
149
- else if ("throw" === context.method) {
150
- if ("suspendedStart" === state)
151
- throw state = "completed", context.arg;
152
- context.dispatchException(context.arg);
150
+ if ("next" === n2.method)
151
+ n2.sent = n2._sent = n2.arg;
152
+ else if ("throw" === n2.method) {
153
+ if (o2 === h)
154
+ throw o2 = s, n2.arg;
155
+ n2.dispatchException(n2.arg);
153
156
  } else
154
- "return" === context.method && context.abrupt("return", context.arg);
155
- state = "executing";
156
- var record = tryCatch(innerFn, self, context);
157
- if ("normal" === record.type) {
158
- if (state = context.done ? "completed" : "suspendedYield", record.arg === ContinueSentinel)
157
+ "return" === n2.method && n2.abrupt("return", n2.arg);
158
+ o2 = f;
159
+ var p2 = tryCatch(e2, r2, n2);
160
+ if ("normal" === p2.type) {
161
+ if (o2 = n2.done ? s : l, p2.arg === y)
159
162
  continue;
160
163
  return {
161
- value: record.arg,
162
- done: context.done
164
+ value: p2.arg,
165
+ done: n2.done
163
166
  };
164
167
  }
165
- "throw" === record.type && (state = "completed", context.method = "throw", context.arg = record.arg);
168
+ "throw" === p2.type && (o2 = s, n2.method = "throw", n2.arg = p2.arg);
166
169
  }
167
170
  };
168
171
  }
169
- function maybeInvokeDelegate(delegate, context) {
170
- var methodName = context.method, method = delegate.iterator[methodName];
171
- if (void 0 === method)
172
- return context.delegate = null, "throw" === methodName && delegate.iterator["return"] && (context.method = "return", context.arg = void 0, maybeInvokeDelegate(delegate, context), "throw" === context.method) || "return" !== methodName && (context.method = "throw", context.arg = new TypeError("The iterator does not provide a '" + methodName + "' method")), ContinueSentinel;
173
- var record = tryCatch(method, delegate.iterator, context.arg);
174
- if ("throw" === record.type)
175
- return context.method = "throw", context.arg = record.arg, context.delegate = null, ContinueSentinel;
176
- var info = record.arg;
177
- return info ? info.done ? (context[delegate.resultName] = info.value, context.next = delegate.nextLoc, "return" !== context.method && (context.method = "next", context.arg = void 0), context.delegate = null, ContinueSentinel) : info : (context.method = "throw", context.arg = new TypeError("iterator result is not an object"), context.delegate = null, ContinueSentinel);
178
- }
179
- function pushTryEntry(locs) {
180
- var entry = {
181
- tryLoc: locs[0]
172
+ function maybeInvokeDelegate(e2, r2) {
173
+ var n2 = r2.method, o2 = e2.iterator[n2];
174
+ if (o2 === t)
175
+ return r2.delegate = null, "throw" === n2 && e2.iterator["return"] && (r2.method = "return", r2.arg = t, maybeInvokeDelegate(e2, r2), "throw" === r2.method) || "return" !== n2 && (r2.method = "throw", r2.arg = new TypeError("The iterator does not provide a '" + n2 + "' method")), y;
176
+ var i2 = tryCatch(o2, e2.iterator, r2.arg);
177
+ if ("throw" === i2.type)
178
+ return r2.method = "throw", r2.arg = i2.arg, r2.delegate = null, y;
179
+ var a2 = i2.arg;
180
+ return a2 ? a2.done ? (r2[e2.resultName] = a2.value, r2.next = e2.nextLoc, "return" !== r2.method && (r2.method = "next", r2.arg = t), r2.delegate = null, y) : a2 : (r2.method = "throw", r2.arg = new TypeError("iterator result is not an object"), r2.delegate = null, y);
181
+ }
182
+ function pushTryEntry(t2) {
183
+ var e2 = {
184
+ tryLoc: t2[0]
182
185
  };
183
- 1 in locs && (entry.catchLoc = locs[1]), 2 in locs && (entry.finallyLoc = locs[2], entry.afterLoc = locs[3]), this.tryEntries.push(entry);
186
+ 1 in t2 && (e2.catchLoc = t2[1]), 2 in t2 && (e2.finallyLoc = t2[2], e2.afterLoc = t2[3]), this.tryEntries.push(e2);
184
187
  }
185
- function resetTryEntry(entry) {
186
- var record = entry.completion || {};
187
- record.type = "normal", delete record.arg, entry.completion = record;
188
+ function resetTryEntry(t2) {
189
+ var e2 = t2.completion || {};
190
+ e2.type = "normal", delete e2.arg, t2.completion = e2;
188
191
  }
189
- function Context(tryLocsList) {
192
+ function Context(t2) {
190
193
  this.tryEntries = [{
191
194
  tryLoc: "root"
192
- }], tryLocsList.forEach(pushTryEntry, this), this.reset(true);
193
- }
194
- function values(iterable) {
195
- if (iterable) {
196
- var iteratorMethod = iterable[iteratorSymbol];
197
- if (iteratorMethod)
198
- return iteratorMethod.call(iterable);
199
- if ("function" == typeof iterable.next)
200
- return iterable;
201
- if (!isNaN(iterable.length)) {
202
- var i = -1, next = function next2() {
203
- for (; ++i < iterable.length; )
204
- if (hasOwn.call(iterable, i))
205
- return next2.value = iterable[i], next2.done = false, next2;
206
- return next2.value = void 0, next2.done = true, next2;
195
+ }], t2.forEach(pushTryEntry, this), this.reset(true);
196
+ }
197
+ function values(e2) {
198
+ if (e2 || "" === e2) {
199
+ var r2 = e2[a];
200
+ if (r2)
201
+ return r2.call(e2);
202
+ if ("function" == typeof e2.next)
203
+ return e2;
204
+ if (!isNaN(e2.length)) {
205
+ var o2 = -1, i2 = function next() {
206
+ for (; ++o2 < e2.length; )
207
+ if (n.call(e2, o2))
208
+ return next.value = e2[o2], next.done = false, next;
209
+ return next.value = t, next.done = true, next;
207
210
  };
208
- return next.next = next;
211
+ return i2.next = i2;
209
212
  }
210
213
  }
211
- return {
212
- next: doneResult
213
- };
214
+ throw new TypeError(_typeof2(e2) + " is not iterable");
214
215
  }
215
- function doneResult() {
216
- return {
217
- value: void 0,
218
- done: true
219
- };
220
- }
221
- return GeneratorFunction.prototype = GeneratorFunctionPrototype, defineProperty2(Gp, "constructor", {
216
+ return GeneratorFunction.prototype = GeneratorFunctionPrototype, o(g, "constructor", {
222
217
  value: GeneratorFunctionPrototype,
223
218
  configurable: true
224
- }), defineProperty2(GeneratorFunctionPrototype, "constructor", {
219
+ }), o(GeneratorFunctionPrototype, "constructor", {
225
220
  value: GeneratorFunction,
226
221
  configurable: true
227
- }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, toStringTagSymbol, "GeneratorFunction"), exports.isGeneratorFunction = function(genFun) {
228
- var ctor = "function" == typeof genFun && genFun.constructor;
229
- return !!ctor && (ctor === GeneratorFunction || "GeneratorFunction" === (ctor.displayName || ctor.name));
230
- }, exports.mark = function(genFun) {
231
- return Object.setPrototypeOf ? Object.setPrototypeOf(genFun, GeneratorFunctionPrototype) : (genFun.__proto__ = GeneratorFunctionPrototype, define(genFun, toStringTagSymbol, "GeneratorFunction")), genFun.prototype = Object.create(Gp), genFun;
232
- }, exports.awrap = function(arg) {
222
+ }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, u, "GeneratorFunction"), e.isGeneratorFunction = function(t2) {
223
+ var e2 = "function" == typeof t2 && t2.constructor;
224
+ return !!e2 && (e2 === GeneratorFunction || "GeneratorFunction" === (e2.displayName || e2.name));
225
+ }, e.mark = function(t2) {
226
+ return Object.setPrototypeOf ? Object.setPrototypeOf(t2, GeneratorFunctionPrototype) : (t2.__proto__ = GeneratorFunctionPrototype, define(t2, u, "GeneratorFunction")), t2.prototype = Object.create(g), t2;
227
+ }, e.awrap = function(t2) {
233
228
  return {
234
- __await: arg
229
+ __await: t2
235
230
  };
236
- }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, asyncIteratorSymbol, function() {
231
+ }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, c, function() {
237
232
  return this;
238
- }), exports.AsyncIterator = AsyncIterator, exports.async = function(innerFn, outerFn, self, tryLocsList, PromiseImpl) {
239
- void 0 === PromiseImpl && (PromiseImpl = Promise);
240
- var iter = new AsyncIterator(wrap(innerFn, outerFn, self, tryLocsList), PromiseImpl);
241
- return exports.isGeneratorFunction(outerFn) ? iter : iter.next().then(function(result) {
242
- return result.done ? result.value : iter.next();
233
+ }), e.AsyncIterator = AsyncIterator, e.async = function(t2, r2, n2, o2, i2) {
234
+ void 0 === i2 && (i2 = Promise);
235
+ var a2 = new AsyncIterator(wrap(t2, r2, n2, o2), i2);
236
+ return e.isGeneratorFunction(r2) ? a2 : a2.next().then(function(t3) {
237
+ return t3.done ? t3.value : a2.next();
243
238
  });
244
- }, defineIteratorMethods(Gp), define(Gp, toStringTagSymbol, "Generator"), define(Gp, iteratorSymbol, function() {
239
+ }, defineIteratorMethods(g), define(g, u, "Generator"), define(g, a, function() {
245
240
  return this;
246
- }), define(Gp, "toString", function() {
241
+ }), define(g, "toString", function() {
247
242
  return "[object Generator]";
248
- }), exports.keys = function(val) {
249
- var object = Object(val), keys = [];
250
- for (var key in object)
251
- keys.push(key);
252
- return keys.reverse(), function next() {
253
- for (; keys.length; ) {
254
- var key2 = keys.pop();
255
- if (key2 in object)
256
- return next.value = key2, next.done = false, next;
243
+ }), e.keys = function(t2) {
244
+ var e2 = Object(t2), r2 = [];
245
+ for (var n2 in e2)
246
+ r2.push(n2);
247
+ return r2.reverse(), function next() {
248
+ for (; r2.length; ) {
249
+ var t3 = r2.pop();
250
+ if (t3 in e2)
251
+ return next.value = t3, next.done = false, next;
257
252
  }
258
253
  return next.done = true, next;
259
254
  };
260
- }, exports.values = values, Context.prototype = {
255
+ }, e.values = values, Context.prototype = {
261
256
  constructor: Context,
262
- reset: function reset(skipTempReset) {
263
- if (this.prev = 0, this.next = 0, this.sent = this._sent = void 0, this.done = false, this.delegate = null, this.method = "next", this.arg = void 0, this.tryEntries.forEach(resetTryEntry), !skipTempReset)
264
- for (var name in this)
265
- "t" === name.charAt(0) && hasOwn.call(this, name) && !isNaN(+name.slice(1)) && (this[name] = void 0);
257
+ reset: function reset(e2) {
258
+ if (this.prev = 0, this.next = 0, this.sent = this._sent = t, this.done = false, this.delegate = null, this.method = "next", this.arg = t, this.tryEntries.forEach(resetTryEntry), !e2)
259
+ for (var r2 in this)
260
+ "t" === r2.charAt(0) && n.call(this, r2) && !isNaN(+r2.slice(1)) && (this[r2] = t);
266
261
  },
267
262
  stop: function stop() {
268
263
  this.done = true;
269
- var rootRecord = this.tryEntries[0].completion;
270
- if ("throw" === rootRecord.type)
271
- throw rootRecord.arg;
264
+ var t2 = this.tryEntries[0].completion;
265
+ if ("throw" === t2.type)
266
+ throw t2.arg;
272
267
  return this.rval;
273
268
  },
274
- dispatchException: function dispatchException(exception) {
269
+ dispatchException: function dispatchException(e2) {
275
270
  if (this.done)
276
- throw exception;
277
- var context = this;
278
- function handle(loc, caught) {
279
- return record.type = "throw", record.arg = exception, context.next = loc, caught && (context.method = "next", context.arg = void 0), !!caught;
280
- }
281
- for (var i = this.tryEntries.length - 1; i >= 0; --i) {
282
- var entry = this.tryEntries[i], record = entry.completion;
283
- if ("root" === entry.tryLoc)
271
+ throw e2;
272
+ var r2 = this;
273
+ function handle(n2, o3) {
274
+ return a2.type = "throw", a2.arg = e2, r2.next = n2, o3 && (r2.method = "next", r2.arg = t), !!o3;
275
+ }
276
+ for (var o2 = this.tryEntries.length - 1; o2 >= 0; --o2) {
277
+ var i2 = this.tryEntries[o2], a2 = i2.completion;
278
+ if ("root" === i2.tryLoc)
284
279
  return handle("end");
285
- if (entry.tryLoc <= this.prev) {
286
- var hasCatch = hasOwn.call(entry, "catchLoc"), hasFinally = hasOwn.call(entry, "finallyLoc");
287
- if (hasCatch && hasFinally) {
288
- if (this.prev < entry.catchLoc)
289
- return handle(entry.catchLoc, true);
290
- if (this.prev < entry.finallyLoc)
291
- return handle(entry.finallyLoc);
292
- } else if (hasCatch) {
293
- if (this.prev < entry.catchLoc)
294
- return handle(entry.catchLoc, true);
280
+ if (i2.tryLoc <= this.prev) {
281
+ var c2 = n.call(i2, "catchLoc"), u2 = n.call(i2, "finallyLoc");
282
+ if (c2 && u2) {
283
+ if (this.prev < i2.catchLoc)
284
+ return handle(i2.catchLoc, true);
285
+ if (this.prev < i2.finallyLoc)
286
+ return handle(i2.finallyLoc);
287
+ } else if (c2) {
288
+ if (this.prev < i2.catchLoc)
289
+ return handle(i2.catchLoc, true);
295
290
  } else {
296
- if (!hasFinally)
297
- throw new Error("try statement without catch or finally");
298
- if (this.prev < entry.finallyLoc)
299
- return handle(entry.finallyLoc);
291
+ if (!u2)
292
+ throw Error("try statement without catch or finally");
293
+ if (this.prev < i2.finallyLoc)
294
+ return handle(i2.finallyLoc);
300
295
  }
301
296
  }
302
297
  }
303
298
  },
304
- abrupt: function abrupt(type, arg) {
305
- for (var i = this.tryEntries.length - 1; i >= 0; --i) {
306
- var entry = this.tryEntries[i];
307
- if (entry.tryLoc <= this.prev && hasOwn.call(entry, "finallyLoc") && this.prev < entry.finallyLoc) {
308
- var finallyEntry = entry;
299
+ abrupt: function abrupt(t2, e2) {
300
+ for (var r2 = this.tryEntries.length - 1; r2 >= 0; --r2) {
301
+ var o2 = this.tryEntries[r2];
302
+ if (o2.tryLoc <= this.prev && n.call(o2, "finallyLoc") && this.prev < o2.finallyLoc) {
303
+ var i2 = o2;
309
304
  break;
310
305
  }
311
306
  }
312
- finallyEntry && ("break" === type || "continue" === type) && finallyEntry.tryLoc <= arg && arg <= finallyEntry.finallyLoc && (finallyEntry = null);
313
- var record = finallyEntry ? finallyEntry.completion : {};
314
- return record.type = type, record.arg = arg, finallyEntry ? (this.method = "next", this.next = finallyEntry.finallyLoc, ContinueSentinel) : this.complete(record);
307
+ i2 && ("break" === t2 || "continue" === t2) && i2.tryLoc <= e2 && e2 <= i2.finallyLoc && (i2 = null);
308
+ var a2 = i2 ? i2.completion : {};
309
+ return a2.type = t2, a2.arg = e2, i2 ? (this.method = "next", this.next = i2.finallyLoc, y) : this.complete(a2);
315
310
  },
316
- complete: function complete(record, afterLoc) {
317
- if ("throw" === record.type)
318
- throw record.arg;
319
- 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;
311
+ complete: function complete(t2, e2) {
312
+ if ("throw" === t2.type)
313
+ throw t2.arg;
314
+ return "break" === t2.type || "continue" === t2.type ? this.next = t2.arg : "return" === t2.type ? (this.rval = this.arg = t2.arg, this.method = "return", this.next = "end") : "normal" === t2.type && e2 && (this.next = e2), y;
320
315
  },
321
- finish: function finish(finallyLoc) {
322
- for (var i = this.tryEntries.length - 1; i >= 0; --i) {
323
- var entry = this.tryEntries[i];
324
- if (entry.finallyLoc === finallyLoc)
325
- return this.complete(entry.completion, entry.afterLoc), resetTryEntry(entry), ContinueSentinel;
316
+ finish: function finish(t2) {
317
+ for (var e2 = this.tryEntries.length - 1; e2 >= 0; --e2) {
318
+ var r2 = this.tryEntries[e2];
319
+ if (r2.finallyLoc === t2)
320
+ return this.complete(r2.completion, r2.afterLoc), resetTryEntry(r2), y;
326
321
  }
327
322
  },
328
- "catch": function _catch(tryLoc) {
329
- for (var i = this.tryEntries.length - 1; i >= 0; --i) {
330
- var entry = this.tryEntries[i];
331
- if (entry.tryLoc === tryLoc) {
332
- var record = entry.completion;
333
- if ("throw" === record.type) {
334
- var thrown = record.arg;
335
- resetTryEntry(entry);
323
+ "catch": function _catch(t2) {
324
+ for (var e2 = this.tryEntries.length - 1; e2 >= 0; --e2) {
325
+ var r2 = this.tryEntries[e2];
326
+ if (r2.tryLoc === t2) {
327
+ var n2 = r2.completion;
328
+ if ("throw" === n2.type) {
329
+ var o2 = n2.arg;
330
+ resetTryEntry(r2);
336
331
  }
337
- return thrown;
332
+ return o2;
338
333
  }
339
334
  }
340
- throw new Error("illegal catch attempt");
335
+ throw Error("illegal catch attempt");
341
336
  },
342
- delegateYield: function delegateYield(iterable, resultName, nextLoc) {
337
+ delegateYield: function delegateYield(e2, r2, n2) {
343
338
  return this.delegate = {
344
- iterator: values(iterable),
345
- resultName,
346
- nextLoc
347
- }, "next" === this.method && (this.arg = void 0), ContinueSentinel;
339
+ iterator: values(e2),
340
+ resultName: r2,
341
+ nextLoc: n2
342
+ }, "next" === this.method && (this.arg = t), y;
348
343
  }
349
- }, exports;
344
+ }, e;
350
345
  }
351
346
  module.exports = _regeneratorRuntime, module.exports.__esModule = true, module.exports["default"] = module.exports;
352
347
  })(regeneratorRuntime$1);
@@ -381,19 +376,19 @@ function requireToPrimitive() {
381
376
  hasRequiredToPrimitive = 1;
382
377
  (function(module) {
383
378
  var _typeof2 = _typeofExports["default"];
384
- function _toPrimitive(input, hint) {
385
- if (_typeof2(input) !== "object" || input === null)
386
- return input;
387
- var prim = input[Symbol.toPrimitive];
388
- if (prim !== void 0) {
389
- var res = prim.call(input, hint || "default");
390
- if (_typeof2(res) !== "object")
391
- return res;
379
+ function toPrimitive2(t, r) {
380
+ if ("object" != _typeof2(t) || !t)
381
+ return t;
382
+ var e = t[Symbol.toPrimitive];
383
+ if (void 0 !== e) {
384
+ var i = e.call(t, r || "default");
385
+ if ("object" != _typeof2(i))
386
+ return i;
392
387
  throw new TypeError("@@toPrimitive must return a primitive value.");
393
388
  }
394
- return (hint === "string" ? String : Number)(input);
389
+ return ("string" === r ? String : Number)(t);
395
390
  }
396
- module.exports = _toPrimitive, module.exports.__esModule = true, module.exports["default"] = module.exports;
391
+ module.exports = toPrimitive2, module.exports.__esModule = true, module.exports["default"] = module.exports;
397
392
  })(toPrimitive);
398
393
  return toPrimitive.exports;
399
394
  }
@@ -405,11 +400,11 @@ function requireToPropertyKey() {
405
400
  (function(module) {
406
401
  var _typeof2 = _typeofExports["default"];
407
402
  var toPrimitive2 = requireToPrimitive();
408
- function _toPropertyKey(arg) {
409
- var key = toPrimitive2(arg, "string");
410
- return _typeof2(key) === "symbol" ? key : String(key);
403
+ function toPropertyKey2(t) {
404
+ var i = toPrimitive2(t, "string");
405
+ return "symbol" == _typeof2(i) ? i : i + "";
411
406
  }
412
- module.exports = _toPropertyKey, module.exports.__esModule = true, module.exports["default"] = module.exports;
407
+ module.exports = toPropertyKey2, module.exports.__esModule = true, module.exports["default"] = module.exports;
413
408
  })(toPropertyKey);
414
409
  return toPropertyKey.exports;
415
410
  }
@@ -420,19 +415,13 @@ function requireDefineProperty() {
420
415
  hasRequiredDefineProperty = 1;
421
416
  (function(module) {
422
417
  var toPropertyKey2 = requireToPropertyKey();
423
- function _defineProperty(obj, key, value) {
424
- key = toPropertyKey2(key);
425
- if (key in obj) {
426
- Object.defineProperty(obj, key, {
427
- value,
428
- enumerable: true,
429
- configurable: true,
430
- writable: true
431
- });
432
- } else {
433
- obj[key] = value;
434
- }
435
- return obj;
418
+ function _defineProperty(e, r, t) {
419
+ return (r = toPropertyKey2(r)) in e ? Object.defineProperty(e, r, {
420
+ value: t,
421
+ enumerable: true,
422
+ configurable: true,
423
+ writable: true
424
+ }) : e[r] = t, e;
436
425
  }
437
426
  module.exports = _defineProperty, module.exports.__esModule = true, module.exports["default"] = module.exports;
438
427
  })(defineProperty);
@@ -445,30 +434,24 @@ function requireAsyncToGenerator() {
445
434
  return asyncToGenerator.exports;
446
435
  hasRequiredAsyncToGenerator = 1;
447
436
  (function(module) {
448
- function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
437
+ function asyncGeneratorStep(n, t, e, r, o, a, c) {
449
438
  try {
450
- var info = gen[key](arg);
451
- var value = info.value;
452
- } catch (error) {
453
- reject(error);
454
- return;
455
- }
456
- if (info.done) {
457
- resolve(value);
458
- } else {
459
- Promise.resolve(value).then(_next, _throw);
439
+ var i = n[a](c), u = i.value;
440
+ } catch (n2) {
441
+ return void e(n2);
460
442
  }
443
+ i.done ? t(u) : Promise.resolve(u).then(r, o);
461
444
  }
462
- function _asyncToGenerator(fn) {
445
+ function _asyncToGenerator(n) {
463
446
  return function() {
464
- var self = this, args = arguments;
465
- return new Promise(function(resolve, reject) {
466
- var gen = fn.apply(self, args);
467
- function _next(value) {
468
- asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value);
447
+ var t = this, e = arguments;
448
+ return new Promise(function(r, o) {
449
+ var a = n.apply(t, e);
450
+ function _next(n2) {
451
+ asyncGeneratorStep(a, r, o, _next, _throw, "next", n2);
469
452
  }
470
- function _throw(err) {
471
- asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err);
453
+ function _throw(n2) {
454
+ asyncGeneratorStep(a, r, o, _next, _throw, "throw", n2);
472
455
  }
473
456
  _next(void 0);
474
457
  });
@@ -486,9 +469,9 @@ function requireArrayWithHoles() {
486
469
  return arrayWithHoles.exports;
487
470
  hasRequiredArrayWithHoles = 1;
488
471
  (function(module) {
489
- function _arrayWithHoles(arr) {
490
- if (Array.isArray(arr))
491
- return arr;
472
+ function _arrayWithHoles(r) {
473
+ if (Array.isArray(r))
474
+ return r;
492
475
  }
493
476
  module.exports = _arrayWithHoles, module.exports.__esModule = true, module.exports["default"] = module.exports;
494
477
  })(arrayWithHoles);
@@ -501,30 +484,30 @@ function requireIterableToArrayLimit() {
501
484
  return iterableToArrayLimit.exports;
502
485
  hasRequiredIterableToArrayLimit = 1;
503
486
  (function(module) {
504
- function _iterableToArrayLimit(arr, i) {
505
- var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"];
506
- if (null != _i) {
507
- var _s, _e, _x, _r, _arr = [], _n = true, _d = false;
487
+ function _iterableToArrayLimit(r, l) {
488
+ var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
489
+ if (null != t) {
490
+ var e, n, i, u, a = [], f = true, o = false;
508
491
  try {
509
- if (_x = (_i = _i.call(arr)).next, 0 === i) {
510
- if (Object(_i) !== _i)
492
+ if (i = (t = t.call(r)).next, 0 === l) {
493
+ if (Object(t) !== t)
511
494
  return;
512
- _n = false;
495
+ f = false;
513
496
  } else
514
- for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = true)
497
+ for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = true)
515
498
  ;
516
- } catch (err) {
517
- _d = true, _e = err;
499
+ } catch (r2) {
500
+ o = true, n = r2;
518
501
  } finally {
519
502
  try {
520
- if (!_n && null != _i["return"] && (_r = _i["return"](), Object(_r) !== _r))
503
+ if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u))
521
504
  return;
522
505
  } finally {
523
- if (_d)
524
- throw _e;
506
+ if (o)
507
+ throw n;
525
508
  }
526
509
  }
527
- return _arr;
510
+ return a;
528
511
  }
529
512
  }
530
513
  module.exports = _iterableToArrayLimit, module.exports.__esModule = true, module.exports["default"] = module.exports;
@@ -539,12 +522,11 @@ function requireArrayLikeToArray() {
539
522
  return arrayLikeToArray.exports;
540
523
  hasRequiredArrayLikeToArray = 1;
541
524
  (function(module) {
542
- function _arrayLikeToArray(arr, len) {
543
- if (len == null || len > arr.length)
544
- len = arr.length;
545
- for (var i = 0, arr2 = new Array(len); i < len; i++)
546
- arr2[i] = arr[i];
547
- return arr2;
525
+ function _arrayLikeToArray(r, a) {
526
+ (null == a || a > r.length) && (a = r.length);
527
+ for (var e = 0, n = Array(a); e < a; e++)
528
+ n[e] = r[e];
529
+ return n;
548
530
  }
549
531
  module.exports = _arrayLikeToArray, module.exports.__esModule = true, module.exports["default"] = module.exports;
550
532
  })(arrayLikeToArray);
@@ -557,18 +539,13 @@ function requireUnsupportedIterableToArray() {
557
539
  hasRequiredUnsupportedIterableToArray = 1;
558
540
  (function(module) {
559
541
  var arrayLikeToArray2 = requireArrayLikeToArray();
560
- function _unsupportedIterableToArray(o, minLen) {
561
- if (!o)
562
- return;
563
- if (typeof o === "string")
564
- return arrayLikeToArray2(o, minLen);
565
- var n = Object.prototype.toString.call(o).slice(8, -1);
566
- if (n === "Object" && o.constructor)
567
- n = o.constructor.name;
568
- if (n === "Map" || n === "Set")
569
- return Array.from(o);
570
- if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))
571
- return arrayLikeToArray2(o, minLen);
542
+ function _unsupportedIterableToArray(r, a) {
543
+ if (r) {
544
+ if ("string" == typeof r)
545
+ return arrayLikeToArray2(r, a);
546
+ var t = {}.toString.call(r).slice(8, -1);
547
+ return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? arrayLikeToArray2(r, a) : void 0;
548
+ }
572
549
  }
573
550
  module.exports = _unsupportedIterableToArray, module.exports.__esModule = true, module.exports["default"] = module.exports;
574
551
  })(unsupportedIterableToArray);
@@ -598,8 +575,8 @@ function requireSlicedToArray() {
598
575
  var iterableToArrayLimit2 = requireIterableToArrayLimit();
599
576
  var unsupportedIterableToArray2 = requireUnsupportedIterableToArray();
600
577
  var nonIterableRest2 = requireNonIterableRest();
601
- function _slicedToArray(arr, i) {
602
- return arrayWithHoles2(arr) || iterableToArrayLimit2(arr, i) || unsupportedIterableToArray2(arr, i) || nonIterableRest2();
578
+ function _slicedToArray(r, e) {
579
+ return arrayWithHoles2(r) || iterableToArrayLimit2(r, e) || unsupportedIterableToArray2(r, e) || nonIterableRest2();
603
580
  }
604
581
  module.exports = _slicedToArray, module.exports.__esModule = true, module.exports["default"] = module.exports;
605
582
  })(slicedToArray);
@@ -614,11 +591,10 @@ function requireAssertThisInitialized() {
614
591
  return assertThisInitialized.exports;
615
592
  hasRequiredAssertThisInitialized = 1;
616
593
  (function(module) {
617
- function _assertThisInitialized(self) {
618
- if (self === void 0) {
594
+ function _assertThisInitialized(e) {
595
+ if (void 0 === e)
619
596
  throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
620
- }
621
- return self;
597
+ return e;
622
598
  }
623
599
  module.exports = _assertThisInitialized, module.exports.__esModule = true, module.exports["default"] = module.exports;
624
600
  })(assertThisInitialized);
@@ -631,10 +607,9 @@ function requireClassCallCheck() {
631
607
  return classCallCheck.exports;
632
608
  hasRequiredClassCallCheck = 1;
633
609
  (function(module) {
634
- function _classCallCheck(instance, Constructor) {
635
- if (!(instance instanceof Constructor)) {
610
+ function _classCallCheck(a, n) {
611
+ if (!(a instanceof n))
636
612
  throw new TypeError("Cannot call a class as a function");
637
- }
638
613
  }
639
614
  module.exports = _classCallCheck, module.exports.__esModule = true, module.exports["default"] = module.exports;
640
615
  })(classCallCheck);
@@ -648,25 +623,16 @@ function requireCreateClass() {
648
623
  hasRequiredCreateClass = 1;
649
624
  (function(module) {
650
625
  var toPropertyKey2 = requireToPropertyKey();
651
- function _defineProperties(target, props) {
652
- for (var i = 0; i < props.length; i++) {
653
- var descriptor = props[i];
654
- descriptor.enumerable = descriptor.enumerable || false;
655
- descriptor.configurable = true;
656
- if ("value" in descriptor)
657
- descriptor.writable = true;
658
- Object.defineProperty(target, toPropertyKey2(descriptor.key), descriptor);
626
+ function _defineProperties(e, r) {
627
+ for (var t = 0; t < r.length; t++) {
628
+ var o = r[t];
629
+ o.enumerable = o.enumerable || false, o.configurable = true, "value" in o && (o.writable = true), Object.defineProperty(e, toPropertyKey2(o.key), o);
659
630
  }
660
631
  }
661
- function _createClass(Constructor, protoProps, staticProps) {
662
- if (protoProps)
663
- _defineProperties(Constructor.prototype, protoProps);
664
- if (staticProps)
665
- _defineProperties(Constructor, staticProps);
666
- Object.defineProperty(Constructor, "prototype", {
632
+ function _createClass(e, r, t) {
633
+ return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", {
667
634
  writable: false
668
- });
669
- return Constructor;
635
+ }), e;
670
636
  }
671
637
  module.exports = _createClass, module.exports.__esModule = true, module.exports["default"] = module.exports;
672
638
  })(createClass);
@@ -680,12 +646,10 @@ function requireSetPrototypeOf() {
680
646
  return setPrototypeOf.exports;
681
647
  hasRequiredSetPrototypeOf = 1;
682
648
  (function(module) {
683
- function _setPrototypeOf(o, p) {
684
- module.exports = _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf2(o2, p2) {
685
- o2.__proto__ = p2;
686
- return o2;
687
- }, module.exports.__esModule = true, module.exports["default"] = module.exports;
688
- return _setPrototypeOf(o, p);
649
+ function _setPrototypeOf(t, e) {
650
+ return module.exports = _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(t2, e2) {
651
+ return t2.__proto__ = e2, t2;
652
+ }, module.exports.__esModule = true, module.exports["default"] = module.exports, _setPrototypeOf(t, e);
689
653
  }
690
654
  module.exports = _setPrototypeOf, module.exports.__esModule = true, module.exports["default"] = module.exports;
691
655
  })(setPrototypeOf);
@@ -698,22 +662,18 @@ function requireInherits() {
698
662
  hasRequiredInherits = 1;
699
663
  (function(module) {
700
664
  var setPrototypeOf2 = requireSetPrototypeOf();
701
- function _inherits(subClass, superClass) {
702
- if (typeof superClass !== "function" && superClass !== null) {
665
+ function _inherits(t, e) {
666
+ if ("function" != typeof e && null !== e)
703
667
  throw new TypeError("Super expression must either be null or a function");
704
- }
705
- subClass.prototype = Object.create(superClass && superClass.prototype, {
668
+ t.prototype = Object.create(e && e.prototype, {
706
669
  constructor: {
707
- value: subClass,
670
+ value: t,
708
671
  writable: true,
709
672
  configurable: true
710
673
  }
711
- });
712
- Object.defineProperty(subClass, "prototype", {
674
+ }), Object.defineProperty(t, "prototype", {
713
675
  writable: false
714
- });
715
- if (superClass)
716
- setPrototypeOf2(subClass, superClass);
676
+ }), e && setPrototypeOf2(t, e);
717
677
  }
718
678
  module.exports = _inherits, module.exports.__esModule = true, module.exports["default"] = module.exports;
719
679
  })(inherits);
@@ -728,13 +688,12 @@ function requirePossibleConstructorReturn() {
728
688
  (function(module) {
729
689
  var _typeof2 = _typeofExports["default"];
730
690
  var assertThisInitialized2 = requireAssertThisInitialized();
731
- function _possibleConstructorReturn(self, call) {
732
- if (call && (_typeof2(call) === "object" || typeof call === "function")) {
733
- return call;
734
- } else if (call !== void 0) {
691
+ function _possibleConstructorReturn(t, e) {
692
+ if (e && ("object" == _typeof2(e) || "function" == typeof e))
693
+ return e;
694
+ if (void 0 !== e)
735
695
  throw new TypeError("Derived constructors may only return object or undefined");
736
- }
737
- return assertThisInitialized2(self);
696
+ return assertThisInitialized2(t);
738
697
  }
739
698
  module.exports = _possibleConstructorReturn, module.exports.__esModule = true, module.exports["default"] = module.exports;
740
699
  })(possibleConstructorReturn);
@@ -747,11 +706,10 @@ function requireGetPrototypeOf() {
747
706
  return getPrototypeOf.exports;
748
707
  hasRequiredGetPrototypeOf = 1;
749
708
  (function(module) {
750
- function _getPrototypeOf(o) {
751
- module.exports = _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf2(o2) {
752
- return o2.__proto__ || Object.getPrototypeOf(o2);
753
- }, module.exports.__esModule = true, module.exports["default"] = module.exports;
754
- return _getPrototypeOf(o);
709
+ function _getPrototypeOf(t) {
710
+ return module.exports = _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(t2) {
711
+ return t2.__proto__ || Object.getPrototypeOf(t2);
712
+ }, module.exports.__esModule = true, module.exports["default"] = module.exports, _getPrototypeOf(t);
755
713
  }
756
714
  module.exports = _getPrototypeOf, module.exports.__esModule = true, module.exports["default"] = module.exports;
757
715
  })(getPrototypeOf);
@@ -765,8 +723,12 @@ function requireIsNativeFunction() {
765
723
  return isNativeFunction.exports;
766
724
  hasRequiredIsNativeFunction = 1;
767
725
  (function(module) {
768
- function _isNativeFunction(fn) {
769
- return Function.toString.call(fn).indexOf("[native code]") !== -1;
726
+ function _isNativeFunction(t) {
727
+ try {
728
+ return -1 !== Function.toString.call(t).indexOf("[native code]");
729
+ } catch (n) {
730
+ return "function" == typeof t;
731
+ }
770
732
  }
771
733
  module.exports = _isNativeFunction, module.exports.__esModule = true, module.exports["default"] = module.exports;
772
734
  })(isNativeFunction);
@@ -781,19 +743,14 @@ function requireIsNativeReflectConstruct() {
781
743
  hasRequiredIsNativeReflectConstruct = 1;
782
744
  (function(module) {
783
745
  function _isNativeReflectConstruct() {
784
- if (typeof Reflect === "undefined" || !Reflect.construct)
785
- return false;
786
- if (Reflect.construct.sham)
787
- return false;
788
- if (typeof Proxy === "function")
789
- return true;
790
746
  try {
791
- Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {
747
+ var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {
792
748
  }));
793
- return true;
794
- } catch (e) {
795
- return false;
749
+ } catch (t2) {
796
750
  }
751
+ return (module.exports = _isNativeReflectConstruct = function _isNativeReflectConstruct2() {
752
+ return !!t;
753
+ }, module.exports.__esModule = true, module.exports["default"] = module.exports)();
797
754
  }
798
755
  module.exports = _isNativeReflectConstruct, module.exports.__esModule = true, module.exports["default"] = module.exports;
799
756
  })(isNativeReflectConstruct);
@@ -805,23 +762,15 @@ function requireConstruct() {
805
762
  return construct.exports;
806
763
  hasRequiredConstruct = 1;
807
764
  (function(module) {
808
- var setPrototypeOf2 = requireSetPrototypeOf();
809
765
  var isNativeReflectConstruct2 = requireIsNativeReflectConstruct();
810
- function _construct(Parent, args, Class) {
811
- if (isNativeReflectConstruct2()) {
812
- module.exports = _construct = Reflect.construct.bind(), module.exports.__esModule = true, module.exports["default"] = module.exports;
813
- } else {
814
- module.exports = _construct = function _construct2(Parent2, args2, Class2) {
815
- var a = [null];
816
- a.push.apply(a, args2);
817
- var Constructor = Function.bind.apply(Parent2, a);
818
- var instance = new Constructor();
819
- if (Class2)
820
- setPrototypeOf2(instance, Class2.prototype);
821
- return instance;
822
- }, module.exports.__esModule = true, module.exports["default"] = module.exports;
823
- }
824
- return _construct.apply(null, arguments);
766
+ var setPrototypeOf2 = requireSetPrototypeOf();
767
+ function _construct(t, e, r) {
768
+ if (isNativeReflectConstruct2())
769
+ return Reflect.construct.apply(null, arguments);
770
+ var o = [null];
771
+ o.push.apply(o, e);
772
+ var p = new (t.bind.apply(t, o))();
773
+ return r && setPrototypeOf2(p, r.prototype), p;
825
774
  }
826
775
  module.exports = _construct, module.exports.__esModule = true, module.exports["default"] = module.exports;
827
776
  })(construct);
@@ -837,33 +786,30 @@ function requireWrapNativeSuper() {
837
786
  var setPrototypeOf2 = requireSetPrototypeOf();
838
787
  var isNativeFunction2 = requireIsNativeFunction();
839
788
  var construct2 = requireConstruct();
840
- function _wrapNativeSuper(Class) {
841
- var _cache = typeof Map === "function" ? /* @__PURE__ */ new Map() : void 0;
842
- module.exports = _wrapNativeSuper = function _wrapNativeSuper2(Class2) {
843
- if (Class2 === null || !isNativeFunction2(Class2))
844
- return Class2;
845
- if (typeof Class2 !== "function") {
789
+ function _wrapNativeSuper(t) {
790
+ var r = "function" == typeof Map ? /* @__PURE__ */ new Map() : void 0;
791
+ return module.exports = _wrapNativeSuper = function _wrapNativeSuper2(t2) {
792
+ if (null === t2 || !isNativeFunction2(t2))
793
+ return t2;
794
+ if ("function" != typeof t2)
846
795
  throw new TypeError("Super expression must either be null or a function");
847
- }
848
- if (typeof _cache !== "undefined") {
849
- if (_cache.has(Class2))
850
- return _cache.get(Class2);
851
- _cache.set(Class2, Wrapper);
796
+ if (void 0 !== r) {
797
+ if (r.has(t2))
798
+ return r.get(t2);
799
+ r.set(t2, Wrapper);
852
800
  }
853
801
  function Wrapper() {
854
- return construct2(Class2, arguments, getPrototypeOf2(this).constructor);
802
+ return construct2(t2, arguments, getPrototypeOf2(this).constructor);
855
803
  }
856
- Wrapper.prototype = Object.create(Class2.prototype, {
804
+ return Wrapper.prototype = Object.create(t2.prototype, {
857
805
  constructor: {
858
806
  value: Wrapper,
859
807
  enumerable: false,
860
808
  writable: true,
861
809
  configurable: true
862
810
  }
863
- });
864
- return setPrototypeOf2(Wrapper, Class2);
865
- }, module.exports.__esModule = true, module.exports["default"] = module.exports;
866
- return _wrapNativeSuper(Class);
811
+ }), setPrototypeOf2(Wrapper, t2);
812
+ }, module.exports.__esModule = true, module.exports["default"] = module.exports, _wrapNativeSuper(t);
867
813
  }
868
814
  module.exports = _wrapNativeSuper, module.exports.__esModule = true, module.exports["default"] = module.exports;
869
815
  })(wrapNativeSuper);