@dereekb/zoom 12.1.2 → 12.1.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/index.cjs.js CHANGED
@@ -4,6 +4,60 @@ var fetch = require('@dereekb/util/fetch');
4
4
  var util = require('@dereekb/util');
5
5
  var makeError = require('make-error');
6
6
 
7
+ /**
8
+ * The Zoom API returns the data for a page for a specific key.
9
+ *
10
+ * This function maps the data under that key to a ZoomPageResult with the data on the "data" variable.
11
+
12
+ * @param dataTypeKey
13
+ * @returns
14
+ */
15
+ function mapToZoomPageResult(dataTypeKey) {
16
+ return data => {
17
+ const {
18
+ next_page_token,
19
+ page_count,
20
+ page_number,
21
+ page_size,
22
+ total_records
23
+ } = data;
24
+ return {
25
+ data: data[dataTypeKey],
26
+ next_page_token,
27
+ page_count,
28
+ page_number,
29
+ page_size,
30
+ total_records
31
+ };
32
+ };
33
+ }
34
+ /**
35
+ * Creates a FetchPageFactory using the input ZoomFetchPageFetchFunction.
36
+ *
37
+ * @param fetch
38
+ * @param defaults
39
+ * @returns
40
+ */
41
+ function zoomFetchPageFactory(fetch$1, defaults) {
42
+ return fetch.fetchPageFactory({
43
+ ...defaults,
44
+ fetch: fetch$1,
45
+ readFetchPageResultInfo: function (result) {
46
+ return {
47
+ nextPageCursor: result.next_page_token,
48
+ hasNext: Boolean(result.next_page_token) // has more when a non-empty next_page_token is returned
49
+ };
50
+ },
51
+ buildInputForNextPage: function (pageResult, input, options) {
52
+ return {
53
+ ...input,
54
+ next_page_token: pageResult.nextPageCursor,
55
+ page_size: options.maxItemsPerPage ?? input.page_size
56
+ };
57
+ }
58
+ });
59
+ }
60
+
7
61
  var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
8
62
 
9
63
  var check = function (it) {
@@ -11,7 +65,7 @@ var check = function (it) {
11
65
  };
12
66
 
13
67
  // https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
14
- var global$j =
68
+ var global$a =
15
69
  // eslint-disable-next-line es/no-global-this -- safe
16
70
  check(typeof globalThis == 'object' && globalThis) ||
17
71
  check(typeof window == 'object' && window) ||
@@ -24,7 +78,7 @@ var global$j =
24
78
 
25
79
  var objectGetOwnPropertyDescriptor = {};
26
80
 
27
- var fails$h = function (exec) {
81
+ var fails$9 = function (exec) {
28
82
  try {
29
83
  return !!exec();
30
84
  } catch (error) {
@@ -32,48 +86,48 @@ var fails$h = function (exec) {
32
86
  }
33
87
  };
34
88
 
35
- var fails$g = fails$h;
89
+ var fails$8 = fails$9;
36
90
 
37
91
  // Detect IE8's incomplete defineProperty implementation
38
- var descriptors = !fails$g(function () {
92
+ var descriptors = !fails$8(function () {
39
93
  // eslint-disable-next-line es/no-object-defineproperty -- required for testing
40
94
  return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] !== 7;
41
95
  });
42
96
 
43
- var fails$f = fails$h;
97
+ var fails$7 = fails$9;
44
98
 
45
- var functionBindNative = !fails$f(function () {
99
+ var functionBindNative = !fails$7(function () {
46
100
  // eslint-disable-next-line es/no-function-prototype-bind -- safe
47
101
  var test = (function () { /* empty */ }).bind();
48
102
  // eslint-disable-next-line no-prototype-builtins -- safe
49
103
  return typeof test != 'function' || test.hasOwnProperty('prototype');
50
104
  });
51
105
 
52
- var NATIVE_BIND$3 = functionBindNative;
106
+ var NATIVE_BIND$1 = functionBindNative;
53
107
 
54
- var call$h = Function.prototype.call;
108
+ var call$7 = Function.prototype.call;
55
109
 
56
- var functionCall = NATIVE_BIND$3 ? call$h.bind(call$h) : function () {
57
- return call$h.apply(call$h, arguments);
110
+ var functionCall = NATIVE_BIND$1 ? call$7.bind(call$7) : function () {
111
+ return call$7.apply(call$7, arguments);
58
112
  };
59
113
 
60
114
  var objectPropertyIsEnumerable = {};
61
115
 
62
116
  var $propertyIsEnumerable = {}.propertyIsEnumerable;
63
117
  // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
64
- var getOwnPropertyDescriptor$2 = Object.getOwnPropertyDescriptor;
118
+ var getOwnPropertyDescriptor$1 = Object.getOwnPropertyDescriptor;
65
119
 
66
120
  // Nashorn ~ JDK8 bug
67
- var NASHORN_BUG = getOwnPropertyDescriptor$2 && !$propertyIsEnumerable.call({ 1: 2 }, 1);
121
+ var NASHORN_BUG = getOwnPropertyDescriptor$1 && !$propertyIsEnumerable.call({ 1: 2 }, 1);
68
122
 
69
123
  // `Object.prototype.propertyIsEnumerable` method implementation
70
124
  // https://tc39.es/ecma262/#sec-object.prototype.propertyisenumerable
71
125
  objectPropertyIsEnumerable.f = NASHORN_BUG ? function propertyIsEnumerable(V) {
72
- var descriptor = getOwnPropertyDescriptor$2(this, V);
126
+ var descriptor = getOwnPropertyDescriptor$1(this, V);
73
127
  return !!descriptor && descriptor.enumerable;
74
128
  } : $propertyIsEnumerable;
75
129
 
76
- var createPropertyDescriptor$4 = function (bitmap, value) {
130
+ var createPropertyDescriptor$2 = function (bitmap, value) {
77
131
  return {
78
132
  enumerable: !(bitmap & 1),
79
133
  configurable: !(bitmap & 2),
@@ -82,66 +136,66 @@ var createPropertyDescriptor$4 = function (bitmap, value) {
82
136
  };
83
137
  };
84
138
 
85
- var NATIVE_BIND$2 = functionBindNative;
139
+ var NATIVE_BIND = functionBindNative;
86
140
 
87
- var FunctionPrototype$2 = Function.prototype;
88
- var call$g = FunctionPrototype$2.call;
89
- var uncurryThisWithBind = NATIVE_BIND$2 && FunctionPrototype$2.bind.bind(call$g, call$g);
141
+ var FunctionPrototype$1 = Function.prototype;
142
+ var call$6 = FunctionPrototype$1.call;
143
+ var uncurryThisWithBind = NATIVE_BIND && FunctionPrototype$1.bind.bind(call$6, call$6);
90
144
 
91
- var functionUncurryThis = NATIVE_BIND$2 ? uncurryThisWithBind : function (fn) {
145
+ var functionUncurryThis = NATIVE_BIND ? uncurryThisWithBind : function (fn) {
92
146
  return function () {
93
- return call$g.apply(fn, arguments);
147
+ return call$6.apply(fn, arguments);
94
148
  };
95
149
  };
96
150
 
97
- var uncurryThis$j = functionUncurryThis;
151
+ var uncurryThis$b = functionUncurryThis;
98
152
 
99
- var toString$4 = uncurryThis$j({}.toString);
100
- var stringSlice$1 = uncurryThis$j(''.slice);
153
+ var toString$1 = uncurryThis$b({}.toString);
154
+ var stringSlice$1 = uncurryThis$b(''.slice);
101
155
 
102
- var classofRaw$2 = function (it) {
103
- return stringSlice$1(toString$4(it), 8, -1);
156
+ var classofRaw = function (it) {
157
+ return stringSlice$1(toString$1(it), 8, -1);
104
158
  };
105
159
 
106
- var uncurryThis$i = functionUncurryThis;
107
- var fails$e = fails$h;
108
- var classof$7 = classofRaw$2;
160
+ var uncurryThis$a = functionUncurryThis;
161
+ var fails$6 = fails$9;
162
+ var classof = classofRaw;
109
163
 
110
- var $Object$4 = Object;
111
- var split = uncurryThis$i(''.split);
164
+ var $Object$2 = Object;
165
+ var split = uncurryThis$a(''.split);
112
166
 
113
167
  // fallback for non-array-like ES3 and non-enumerable old V8 strings
114
- var indexedObject = fails$e(function () {
168
+ var indexedObject = fails$6(function () {
115
169
  // throws an error in rhino, see https://github.com/mozilla/rhino/issues/346
116
170
  // eslint-disable-next-line no-prototype-builtins -- safe
117
- return !$Object$4('z').propertyIsEnumerable(0);
171
+ return !$Object$2('z').propertyIsEnumerable(0);
118
172
  }) ? function (it) {
119
- return classof$7(it) === 'String' ? split(it, '') : $Object$4(it);
120
- } : $Object$4;
173
+ return classof(it) === 'String' ? split(it, '') : $Object$2(it);
174
+ } : $Object$2;
121
175
 
122
176
  // we can't use just `it == null` since of `document.all` special case
123
177
  // https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot-aec
124
- var isNullOrUndefined$4 = function (it) {
178
+ var isNullOrUndefined$2 = function (it) {
125
179
  return it === null || it === undefined;
126
180
  };
127
181
 
128
- var isNullOrUndefined$3 = isNullOrUndefined$4;
182
+ var isNullOrUndefined$1 = isNullOrUndefined$2;
129
183
 
130
- var $TypeError$d = TypeError;
184
+ var $TypeError$6 = TypeError;
131
185
 
132
186
  // `RequireObjectCoercible` abstract operation
133
187
  // https://tc39.es/ecma262/#sec-requireobjectcoercible
134
- var requireObjectCoercible$3 = function (it) {
135
- if (isNullOrUndefined$3(it)) throw new $TypeError$d("Can't call method on " + it);
188
+ var requireObjectCoercible$2 = function (it) {
189
+ if (isNullOrUndefined$1(it)) throw new $TypeError$6("Can't call method on " + it);
136
190
  return it;
137
191
  };
138
192
 
139
193
  // toObject with fallback for non-array-like ES3 strings
140
- var IndexedObject$1 = indexedObject;
141
- var requireObjectCoercible$2 = requireObjectCoercible$3;
194
+ var IndexedObject = indexedObject;
195
+ var requireObjectCoercible$1 = requireObjectCoercible$2;
142
196
 
143
- var toIndexedObject$5 = function (it) {
144
- return IndexedObject$1(requireObjectCoercible$2(it));
197
+ var toIndexedObject$3 = function (it) {
198
+ return IndexedObject(requireObjectCoercible$1(it));
145
199
  };
146
200
 
147
201
  // https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot
@@ -150,41 +204,41 @@ var documentAll = typeof document == 'object' && document.all;
150
204
  // `IsCallable` abstract operation
151
205
  // https://tc39.es/ecma262/#sec-iscallable
152
206
  // eslint-disable-next-line unicorn/no-typeof-undefined -- required for testing
153
- var isCallable$m = typeof documentAll == 'undefined' && documentAll !== undefined ? function (argument) {
207
+ var isCallable$a = typeof documentAll == 'undefined' && documentAll !== undefined ? function (argument) {
154
208
  return typeof argument == 'function' || argument === documentAll;
155
209
  } : function (argument) {
156
210
  return typeof argument == 'function';
157
211
  };
158
212
 
159
- var isCallable$l = isCallable$m;
213
+ var isCallable$9 = isCallable$a;
160
214
 
161
- var isObject$c = function (it) {
162
- return typeof it == 'object' ? it !== null : isCallable$l(it);
215
+ var isObject$5 = function (it) {
216
+ return typeof it == 'object' ? it !== null : isCallable$9(it);
163
217
  };
164
218
 
165
- var global$i = global$j;
166
- var isCallable$k = isCallable$m;
219
+ var global$9 = global$a;
220
+ var isCallable$8 = isCallable$a;
167
221
 
168
222
  var aFunction = function (argument) {
169
- return isCallable$k(argument) ? argument : undefined;
223
+ return isCallable$8(argument) ? argument : undefined;
170
224
  };
171
225
 
172
- var getBuiltIn$a = function (namespace, method) {
173
- return arguments.length < 2 ? aFunction(global$i[namespace]) : global$i[namespace] && global$i[namespace][method];
226
+ var getBuiltIn$3 = function (namespace, method) {
227
+ return arguments.length < 2 ? aFunction(global$9[namespace]) : global$9[namespace] && global$9[namespace][method];
174
228
  };
175
229
 
176
- var uncurryThis$h = functionUncurryThis;
230
+ var uncurryThis$9 = functionUncurryThis;
177
231
 
178
- var objectIsPrototypeOf = uncurryThis$h({}.isPrototypeOf);
232
+ var objectIsPrototypeOf = uncurryThis$9({}.isPrototypeOf);
179
233
 
180
234
  var engineUserAgent = typeof navigator != 'undefined' && String(navigator.userAgent) || '';
181
235
 
182
- var global$h = global$j;
183
- var userAgent$3 = engineUserAgent;
236
+ var global$8 = global$a;
237
+ var userAgent = engineUserAgent;
184
238
 
185
- var process$3 = global$h.process;
186
- var Deno$1 = global$h.Deno;
187
- var versions = process$3 && process$3.versions || Deno$1 && Deno$1.version;
239
+ var process = global$8.process;
240
+ var Deno = global$8.Deno;
241
+ var versions = process && process.versions || Deno && Deno.version;
188
242
  var v8 = versions && versions.v8;
189
243
  var match, version;
190
244
 
@@ -197,10 +251,10 @@ if (v8) {
197
251
 
198
252
  // BrowserFS NodeJS `process` polyfill incorrectly set `.v8` to `0.0`
199
253
  // so check `userAgent` even if `.v8` exists, but 0
200
- if (!version && userAgent$3) {
201
- match = userAgent$3.match(/Edge\/(\d+)/);
254
+ if (!version && userAgent) {
255
+ match = userAgent.match(/Edge\/(\d+)/);
202
256
  if (!match || match[1] >= 74) {
203
- match = userAgent$3.match(/Chrome\/(\d+)/);
257
+ match = userAgent.match(/Chrome\/(\d+)/);
204
258
  if (match) version = +match[1];
205
259
  }
206
260
  }
@@ -208,108 +262,108 @@ if (!version && userAgent$3) {
208
262
  var engineV8Version = version;
209
263
 
210
264
  /* eslint-disable es/no-symbol -- required for testing */
211
- var V8_VERSION$1 = engineV8Version;
212
- var fails$d = fails$h;
213
- var global$g = global$j;
265
+ var V8_VERSION = engineV8Version;
266
+ var fails$5 = fails$9;
267
+ var global$7 = global$a;
214
268
 
215
- var $String$6 = global$g.String;
269
+ var $String$3 = global$7.String;
216
270
 
217
271
  // eslint-disable-next-line es/no-object-getownpropertysymbols -- required for testing
218
- var symbolConstructorDetection = !!Object.getOwnPropertySymbols && !fails$d(function () {
272
+ var symbolConstructorDetection = !!Object.getOwnPropertySymbols && !fails$5(function () {
219
273
  var symbol = Symbol('symbol detection');
220
274
  // Chrome 38 Symbol has incorrect toString conversion
221
275
  // `get-own-property-symbols` polyfill symbols converted to object are not Symbol instances
222
276
  // nb: Do not call `String` directly to avoid this being optimized out to `symbol+''` which will,
223
277
  // of course, fail.
224
- return !$String$6(symbol) || !(Object(symbol) instanceof Symbol) ||
278
+ return !$String$3(symbol) || !(Object(symbol) instanceof Symbol) ||
225
279
  // Chrome 38-40 symbols are not inherited from DOM collections prototypes to instances
226
- !Symbol.sham && V8_VERSION$1 && V8_VERSION$1 < 41;
280
+ !Symbol.sham && V8_VERSION && V8_VERSION < 41;
227
281
  });
228
282
 
229
283
  /* eslint-disable es/no-symbol -- required for testing */
230
- var NATIVE_SYMBOL$2 = symbolConstructorDetection;
284
+ var NATIVE_SYMBOL$1 = symbolConstructorDetection;
231
285
 
232
- var useSymbolAsUid = NATIVE_SYMBOL$2
286
+ var useSymbolAsUid = NATIVE_SYMBOL$1
233
287
  && !Symbol.sham
234
288
  && typeof Symbol.iterator == 'symbol';
235
289
 
236
- var getBuiltIn$9 = getBuiltIn$a;
237
- var isCallable$j = isCallable$m;
238
- var isPrototypeOf$4 = objectIsPrototypeOf;
290
+ var getBuiltIn$2 = getBuiltIn$3;
291
+ var isCallable$7 = isCallable$a;
292
+ var isPrototypeOf = objectIsPrototypeOf;
239
293
  var USE_SYMBOL_AS_UID$1 = useSymbolAsUid;
240
294
 
241
- var $Object$3 = Object;
295
+ var $Object$1 = Object;
242
296
 
243
- var isSymbol$3 = USE_SYMBOL_AS_UID$1 ? function (it) {
297
+ var isSymbol$2 = USE_SYMBOL_AS_UID$1 ? function (it) {
244
298
  return typeof it == 'symbol';
245
299
  } : function (it) {
246
- var $Symbol = getBuiltIn$9('Symbol');
247
- return isCallable$j($Symbol) && isPrototypeOf$4($Symbol.prototype, $Object$3(it));
300
+ var $Symbol = getBuiltIn$2('Symbol');
301
+ return isCallable$7($Symbol) && isPrototypeOf($Symbol.prototype, $Object$1(it));
248
302
  };
249
303
 
250
- var $String$5 = String;
304
+ var $String$2 = String;
251
305
 
252
- var tryToString$4 = function (argument) {
306
+ var tryToString$1 = function (argument) {
253
307
  try {
254
- return $String$5(argument);
308
+ return $String$2(argument);
255
309
  } catch (error) {
256
310
  return 'Object';
257
311
  }
258
312
  };
259
313
 
260
- var isCallable$i = isCallable$m;
261
- var tryToString$3 = tryToString$4;
314
+ var isCallable$6 = isCallable$a;
315
+ var tryToString = tryToString$1;
262
316
 
263
- var $TypeError$c = TypeError;
317
+ var $TypeError$5 = TypeError;
264
318
 
265
319
  // `Assert: IsCallable(argument) is true`
266
- var aCallable$9 = function (argument) {
267
- if (isCallable$i(argument)) return argument;
268
- throw new $TypeError$c(tryToString$3(argument) + ' is not a function');
320
+ var aCallable$3 = function (argument) {
321
+ if (isCallable$6(argument)) return argument;
322
+ throw new $TypeError$5(tryToString(argument) + ' is not a function');
269
323
  };
270
324
 
271
- var aCallable$8 = aCallable$9;
272
- var isNullOrUndefined$2 = isNullOrUndefined$4;
325
+ var aCallable$2 = aCallable$3;
326
+ var isNullOrUndefined = isNullOrUndefined$2;
273
327
 
274
328
  // `GetMethod` abstract operation
275
329
  // https://tc39.es/ecma262/#sec-getmethod
276
- var getMethod$3 = function (V, P) {
330
+ var getMethod$2 = function (V, P) {
277
331
  var func = V[P];
278
- return isNullOrUndefined$2(func) ? undefined : aCallable$8(func);
332
+ return isNullOrUndefined(func) ? undefined : aCallable$2(func);
279
333
  };
280
334
 
281
- var call$f = functionCall;
282
- var isCallable$h = isCallable$m;
283
- var isObject$b = isObject$c;
335
+ var call$5 = functionCall;
336
+ var isCallable$5 = isCallable$a;
337
+ var isObject$4 = isObject$5;
284
338
 
285
- var $TypeError$b = TypeError;
339
+ var $TypeError$4 = TypeError;
286
340
 
287
341
  // `OrdinaryToPrimitive` abstract operation
288
342
  // https://tc39.es/ecma262/#sec-ordinarytoprimitive
289
343
  var ordinaryToPrimitive$1 = function (input, pref) {
290
344
  var fn, val;
291
- if (pref === 'string' && isCallable$h(fn = input.toString) && !isObject$b(val = call$f(fn, input))) return val;
292
- if (isCallable$h(fn = input.valueOf) && !isObject$b(val = call$f(fn, input))) return val;
293
- if (pref !== 'string' && isCallable$h(fn = input.toString) && !isObject$b(val = call$f(fn, input))) return val;
294
- throw new $TypeError$b("Can't convert object to primitive value");
345
+ if (pref === 'string' && isCallable$5(fn = input.toString) && !isObject$4(val = call$5(fn, input))) return val;
346
+ if (isCallable$5(fn = input.valueOf) && !isObject$4(val = call$5(fn, input))) return val;
347
+ if (pref !== 'string' && isCallable$5(fn = input.toString) && !isObject$4(val = call$5(fn, input))) return val;
348
+ throw new $TypeError$4("Can't convert object to primitive value");
295
349
  };
296
350
 
297
351
  var sharedStore = {exports: {}};
298
352
 
299
- var global$f = global$j;
353
+ var global$6 = global$a;
300
354
 
301
355
  // eslint-disable-next-line es/no-object-defineproperty -- safe
302
- var defineProperty$7 = Object.defineProperty;
356
+ var defineProperty$1 = Object.defineProperty;
303
357
 
304
358
  var defineGlobalProperty$3 = function (key, value) {
305
359
  try {
306
- defineProperty$7(global$f, key, { value: value, configurable: true, writable: true });
360
+ defineProperty$1(global$6, key, { value: value, configurable: true, writable: true });
307
361
  } catch (error) {
308
- global$f[key] = value;
362
+ global$6[key] = value;
309
363
  } return value;
310
364
  };
311
365
 
312
- var globalThis$1 = global$j;
366
+ var globalThis$1 = global$a;
313
367
  var defineGlobalProperty$2 = defineGlobalProperty$3;
314
368
 
315
369
  var SHARED = '__core-js_shared__';
@@ -331,123 +385,123 @@ var shared$3 = function (key, value) {
331
385
  return store$2[key] || (store$2[key] = value || {});
332
386
  };
333
387
 
334
- var requireObjectCoercible$1 = requireObjectCoercible$3;
388
+ var requireObjectCoercible = requireObjectCoercible$2;
335
389
 
336
- var $Object$2 = Object;
390
+ var $Object = Object;
337
391
 
338
392
  // `ToObject` abstract operation
339
393
  // https://tc39.es/ecma262/#sec-toobject
340
- var toObject$3 = function (argument) {
341
- return $Object$2(requireObjectCoercible$1(argument));
394
+ var toObject$1 = function (argument) {
395
+ return $Object(requireObjectCoercible(argument));
342
396
  };
343
397
 
344
- var uncurryThis$g = functionUncurryThis;
345
- var toObject$2 = toObject$3;
398
+ var uncurryThis$8 = functionUncurryThis;
399
+ var toObject = toObject$1;
346
400
 
347
- var hasOwnProperty = uncurryThis$g({}.hasOwnProperty);
401
+ var hasOwnProperty = uncurryThis$8({}.hasOwnProperty);
348
402
 
349
403
  // `HasOwnProperty` abstract operation
350
404
  // https://tc39.es/ecma262/#sec-hasownproperty
351
405
  // eslint-disable-next-line es/no-object-hasown -- safe
352
406
  var hasOwnProperty_1 = Object.hasOwn || function hasOwn(it, key) {
353
- return hasOwnProperty(toObject$2(it), key);
407
+ return hasOwnProperty(toObject(it), key);
354
408
  };
355
409
 
356
- var uncurryThis$f = functionUncurryThis;
410
+ var uncurryThis$7 = functionUncurryThis;
357
411
 
358
412
  var id = 0;
359
413
  var postfix = Math.random();
360
- var toString$3 = uncurryThis$f(1.0.toString);
414
+ var toString = uncurryThis$7(1.0.toString);
361
415
 
362
416
  var uid$2 = function (key) {
363
- return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString$3(++id + postfix, 36);
417
+ return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString(++id + postfix, 36);
364
418
  };
365
419
 
366
- var global$e = global$j;
420
+ var global$5 = global$a;
367
421
  var shared$2 = shared$3;
368
- var hasOwn$b = hasOwnProperty_1;
422
+ var hasOwn$6 = hasOwnProperty_1;
369
423
  var uid$1 = uid$2;
370
- var NATIVE_SYMBOL$1 = symbolConstructorDetection;
424
+ var NATIVE_SYMBOL = symbolConstructorDetection;
371
425
  var USE_SYMBOL_AS_UID = useSymbolAsUid;
372
426
 
373
- var Symbol$1 = global$e.Symbol;
427
+ var Symbol$1 = global$5.Symbol;
374
428
  var WellKnownSymbolsStore = shared$2('wks');
375
429
  var createWellKnownSymbol = USE_SYMBOL_AS_UID ? Symbol$1['for'] || Symbol$1 : Symbol$1 && Symbol$1.withoutSetter || uid$1;
376
430
 
377
- var wellKnownSymbol$e = function (name) {
378
- if (!hasOwn$b(WellKnownSymbolsStore, name)) {
379
- WellKnownSymbolsStore[name] = NATIVE_SYMBOL$1 && hasOwn$b(Symbol$1, name)
431
+ var wellKnownSymbol$1 = function (name) {
432
+ if (!hasOwn$6(WellKnownSymbolsStore, name)) {
433
+ WellKnownSymbolsStore[name] = NATIVE_SYMBOL && hasOwn$6(Symbol$1, name)
380
434
  ? Symbol$1[name]
381
435
  : createWellKnownSymbol('Symbol.' + name);
382
436
  } return WellKnownSymbolsStore[name];
383
437
  };
384
438
 
385
- var call$e = functionCall;
386
- var isObject$a = isObject$c;
387
- var isSymbol$2 = isSymbol$3;
388
- var getMethod$2 = getMethod$3;
439
+ var call$4 = functionCall;
440
+ var isObject$3 = isObject$5;
441
+ var isSymbol$1 = isSymbol$2;
442
+ var getMethod$1 = getMethod$2;
389
443
  var ordinaryToPrimitive = ordinaryToPrimitive$1;
390
- var wellKnownSymbol$d = wellKnownSymbol$e;
444
+ var wellKnownSymbol = wellKnownSymbol$1;
391
445
 
392
- var $TypeError$a = TypeError;
393
- var TO_PRIMITIVE = wellKnownSymbol$d('toPrimitive');
446
+ var $TypeError$3 = TypeError;
447
+ var TO_PRIMITIVE = wellKnownSymbol('toPrimitive');
394
448
 
395
449
  // `ToPrimitive` abstract operation
396
450
  // https://tc39.es/ecma262/#sec-toprimitive
397
451
  var toPrimitive$1 = function (input, pref) {
398
- if (!isObject$a(input) || isSymbol$2(input)) return input;
399
- var exoticToPrim = getMethod$2(input, TO_PRIMITIVE);
452
+ if (!isObject$3(input) || isSymbol$1(input)) return input;
453
+ var exoticToPrim = getMethod$1(input, TO_PRIMITIVE);
400
454
  var result;
401
455
  if (exoticToPrim) {
402
456
  if (pref === undefined) pref = 'default';
403
- result = call$e(exoticToPrim, input, pref);
404
- if (!isObject$a(result) || isSymbol$2(result)) return result;
405
- throw new $TypeError$a("Can't convert object to primitive value");
457
+ result = call$4(exoticToPrim, input, pref);
458
+ if (!isObject$3(result) || isSymbol$1(result)) return result;
459
+ throw new $TypeError$3("Can't convert object to primitive value");
406
460
  }
407
461
  if (pref === undefined) pref = 'number';
408
462
  return ordinaryToPrimitive(input, pref);
409
463
  };
410
464
 
411
465
  var toPrimitive = toPrimitive$1;
412
- var isSymbol$1 = isSymbol$3;
466
+ var isSymbol = isSymbol$2;
413
467
 
414
468
  // `ToPropertyKey` abstract operation
415
469
  // https://tc39.es/ecma262/#sec-topropertykey
416
470
  var toPropertyKey$2 = function (argument) {
417
471
  var key = toPrimitive(argument, 'string');
418
- return isSymbol$1(key) ? key : key + '';
472
+ return isSymbol(key) ? key : key + '';
419
473
  };
420
474
 
421
- var global$d = global$j;
422
- var isObject$9 = isObject$c;
475
+ var global$4 = global$a;
476
+ var isObject$2 = isObject$5;
423
477
 
424
- var document$3 = global$d.document;
478
+ var document$1 = global$4.document;
425
479
  // typeof document.createElement is 'object' in old IE
426
- var EXISTS$1 = isObject$9(document$3) && isObject$9(document$3.createElement);
480
+ var EXISTS$1 = isObject$2(document$1) && isObject$2(document$1.createElement);
427
481
 
428
- var documentCreateElement$2 = function (it) {
429
- return EXISTS$1 ? document$3.createElement(it) : {};
482
+ var documentCreateElement = function (it) {
483
+ return EXISTS$1 ? document$1.createElement(it) : {};
430
484
  };
431
485
 
432
- var DESCRIPTORS$c = descriptors;
433
- var fails$c = fails$h;
434
- var createElement$1 = documentCreateElement$2;
486
+ var DESCRIPTORS$6 = descriptors;
487
+ var fails$4 = fails$9;
488
+ var createElement = documentCreateElement;
435
489
 
436
490
  // Thanks to IE8 for its funny defineProperty
437
- var ie8DomDefine = !DESCRIPTORS$c && !fails$c(function () {
491
+ var ie8DomDefine = !DESCRIPTORS$6 && !fails$4(function () {
438
492
  // eslint-disable-next-line es/no-object-defineproperty -- required for testing
439
- return Object.defineProperty(createElement$1('div'), 'a', {
493
+ return Object.defineProperty(createElement('div'), 'a', {
440
494
  get: function () { return 7; }
441
495
  }).a !== 7;
442
496
  });
443
497
 
444
- var DESCRIPTORS$b = descriptors;
445
- var call$d = functionCall;
446
- var propertyIsEnumerableModule$1 = objectPropertyIsEnumerable;
447
- var createPropertyDescriptor$3 = createPropertyDescriptor$4;
448
- var toIndexedObject$4 = toIndexedObject$5;
498
+ var DESCRIPTORS$5 = descriptors;
499
+ var call$3 = functionCall;
500
+ var propertyIsEnumerableModule = objectPropertyIsEnumerable;
501
+ var createPropertyDescriptor$1 = createPropertyDescriptor$2;
502
+ var toIndexedObject$2 = toIndexedObject$3;
449
503
  var toPropertyKey$1 = toPropertyKey$2;
450
- var hasOwn$a = hasOwnProperty_1;
504
+ var hasOwn$5 = hasOwnProperty_1;
451
505
  var IE8_DOM_DEFINE$1 = ie8DomDefine;
452
506
 
453
507
  // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
@@ -455,23 +509,23 @@ var $getOwnPropertyDescriptor$1 = Object.getOwnPropertyDescriptor;
455
509
 
456
510
  // `Object.getOwnPropertyDescriptor` method
457
511
  // https://tc39.es/ecma262/#sec-object.getownpropertydescriptor
458
- objectGetOwnPropertyDescriptor.f = DESCRIPTORS$b ? $getOwnPropertyDescriptor$1 : function getOwnPropertyDescriptor(O, P) {
459
- O = toIndexedObject$4(O);
512
+ objectGetOwnPropertyDescriptor.f = DESCRIPTORS$5 ? $getOwnPropertyDescriptor$1 : function getOwnPropertyDescriptor(O, P) {
513
+ O = toIndexedObject$2(O);
460
514
  P = toPropertyKey$1(P);
461
515
  if (IE8_DOM_DEFINE$1) try {
462
516
  return $getOwnPropertyDescriptor$1(O, P);
463
517
  } catch (error) { /* empty */ }
464
- if (hasOwn$a(O, P)) return createPropertyDescriptor$3(!call$d(propertyIsEnumerableModule$1.f, O, P), O[P]);
518
+ if (hasOwn$5(O, P)) return createPropertyDescriptor$1(!call$3(propertyIsEnumerableModule.f, O, P), O[P]);
465
519
  };
466
520
 
467
521
  var objectDefineProperty = {};
468
522
 
469
- var DESCRIPTORS$a = descriptors;
470
- var fails$b = fails$h;
523
+ var DESCRIPTORS$4 = descriptors;
524
+ var fails$3 = fails$9;
471
525
 
472
526
  // V8 ~ Chrome 36-
473
527
  // https://bugs.chromium.org/p/v8/issues/detail?id=3334
474
- var v8PrototypeDefineBug = DESCRIPTORS$a && fails$b(function () {
528
+ var v8PrototypeDefineBug = DESCRIPTORS$4 && fails$3(function () {
475
529
  // eslint-disable-next-line es/no-object-defineproperty -- required for testing
476
530
  return Object.defineProperty(function () { /* empty */ }, 'prototype', {
477
531
  value: 42,
@@ -479,24 +533,24 @@ var v8PrototypeDefineBug = DESCRIPTORS$a && fails$b(function () {
479
533
  }).prototype !== 42;
480
534
  });
481
535
 
482
- var isObject$8 = isObject$c;
536
+ var isObject$1 = isObject$5;
483
537
 
484
- var $String$4 = String;
485
- var $TypeError$9 = TypeError;
538
+ var $String$1 = String;
539
+ var $TypeError$2 = TypeError;
486
540
 
487
541
  // `Assert: Type(argument) is Object`
488
- var anObject$c = function (argument) {
489
- if (isObject$8(argument)) return argument;
490
- throw new $TypeError$9($String$4(argument) + ' is not an object');
542
+ var anObject$4 = function (argument) {
543
+ if (isObject$1(argument)) return argument;
544
+ throw new $TypeError$2($String$1(argument) + ' is not an object');
491
545
  };
492
546
 
493
- var DESCRIPTORS$9 = descriptors;
547
+ var DESCRIPTORS$3 = descriptors;
494
548
  var IE8_DOM_DEFINE = ie8DomDefine;
495
- var V8_PROTOTYPE_DEFINE_BUG$1 = v8PrototypeDefineBug;
496
- var anObject$b = anObject$c;
549
+ var V8_PROTOTYPE_DEFINE_BUG = v8PrototypeDefineBug;
550
+ var anObject$3 = anObject$4;
497
551
  var toPropertyKey = toPropertyKey$2;
498
552
 
499
- var $TypeError$8 = TypeError;
553
+ var $TypeError$1 = TypeError;
500
554
  // eslint-disable-next-line es/no-object-defineproperty -- safe
501
555
  var $defineProperty = Object.defineProperty;
502
556
  // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
@@ -507,10 +561,10 @@ var WRITABLE = 'writable';
507
561
 
508
562
  // `Object.defineProperty` method
509
563
  // https://tc39.es/ecma262/#sec-object.defineproperty
510
- objectDefineProperty.f = DESCRIPTORS$9 ? V8_PROTOTYPE_DEFINE_BUG$1 ? function defineProperty(O, P, Attributes) {
511
- anObject$b(O);
564
+ objectDefineProperty.f = DESCRIPTORS$3 ? V8_PROTOTYPE_DEFINE_BUG ? function defineProperty(O, P, Attributes) {
565
+ anObject$3(O);
512
566
  P = toPropertyKey(P);
513
- anObject$b(Attributes);
567
+ anObject$3(Attributes);
514
568
  if (typeof O === 'function' && P === 'prototype' && 'value' in Attributes && WRITABLE in Attributes && !Attributes[WRITABLE]) {
515
569
  var current = $getOwnPropertyDescriptor(O, P);
516
570
  if (current && current[WRITABLE]) {
@@ -523,41 +577,41 @@ objectDefineProperty.f = DESCRIPTORS$9 ? V8_PROTOTYPE_DEFINE_BUG$1 ? function de
523
577
  }
524
578
  } return $defineProperty(O, P, Attributes);
525
579
  } : $defineProperty : function defineProperty(O, P, Attributes) {
526
- anObject$b(O);
580
+ anObject$3(O);
527
581
  P = toPropertyKey(P);
528
- anObject$b(Attributes);
582
+ anObject$3(Attributes);
529
583
  if (IE8_DOM_DEFINE) try {
530
584
  return $defineProperty(O, P, Attributes);
531
585
  } catch (error) { /* empty */ }
532
- if ('get' in Attributes || 'set' in Attributes) throw new $TypeError$8('Accessors not supported');
586
+ if ('get' in Attributes || 'set' in Attributes) throw new $TypeError$1('Accessors not supported');
533
587
  if ('value' in Attributes) O[P] = Attributes.value;
534
588
  return O;
535
589
  };
536
590
 
537
- var DESCRIPTORS$8 = descriptors;
538
- var definePropertyModule$3 = objectDefineProperty;
539
- var createPropertyDescriptor$2 = createPropertyDescriptor$4;
591
+ var DESCRIPTORS$2 = descriptors;
592
+ var definePropertyModule$2 = objectDefineProperty;
593
+ var createPropertyDescriptor = createPropertyDescriptor$2;
540
594
 
541
- var createNonEnumerableProperty$7 = DESCRIPTORS$8 ? function (object, key, value) {
542
- return definePropertyModule$3.f(object, key, createPropertyDescriptor$2(1, value));
595
+ var createNonEnumerableProperty$2 = DESCRIPTORS$2 ? function (object, key, value) {
596
+ return definePropertyModule$2.f(object, key, createPropertyDescriptor(1, value));
543
597
  } : function (object, key, value) {
544
598
  object[key] = value;
545
599
  return object;
546
600
  };
547
601
 
548
- var makeBuiltIn$3 = {exports: {}};
602
+ var makeBuiltIn$2 = {exports: {}};
549
603
 
550
- var DESCRIPTORS$7 = descriptors;
551
- var hasOwn$9 = hasOwnProperty_1;
604
+ var DESCRIPTORS$1 = descriptors;
605
+ var hasOwn$4 = hasOwnProperty_1;
552
606
 
553
- var FunctionPrototype$1 = Function.prototype;
607
+ var FunctionPrototype = Function.prototype;
554
608
  // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
555
- var getDescriptor = DESCRIPTORS$7 && Object.getOwnPropertyDescriptor;
609
+ var getDescriptor = DESCRIPTORS$1 && Object.getOwnPropertyDescriptor;
556
610
 
557
- var EXISTS = hasOwn$9(FunctionPrototype$1, 'name');
611
+ var EXISTS = hasOwn$4(FunctionPrototype, 'name');
558
612
  // additional protection from minified / mangled / dropped function names
559
613
  var PROPER = EXISTS && (function something() { /* empty */ }).name === 'something';
560
- var CONFIGURABLE = EXISTS && (!DESCRIPTORS$7 || (DESCRIPTORS$7 && getDescriptor(FunctionPrototype$1, 'name').configurable));
614
+ var CONFIGURABLE = EXISTS && (!DESCRIPTORS$1 || (DESCRIPTORS$1 && getDescriptor(FunctionPrototype, 'name').configurable));
561
615
 
562
616
  var functionName = {
563
617
  EXISTS: EXISTS,
@@ -565,62 +619,62 @@ var functionName = {
565
619
  CONFIGURABLE: CONFIGURABLE
566
620
  };
567
621
 
568
- var uncurryThis$e = functionUncurryThis;
569
- var isCallable$g = isCallable$m;
622
+ var uncurryThis$6 = functionUncurryThis;
623
+ var isCallable$4 = isCallable$a;
570
624
  var store$1 = sharedStoreExports;
571
625
 
572
- var functionToString = uncurryThis$e(Function.toString);
626
+ var functionToString = uncurryThis$6(Function.toString);
573
627
 
574
628
  // this helper broken in `core-js@3.4.1-3.4.4`, so we can't use `shared` helper
575
- if (!isCallable$g(store$1.inspectSource)) {
629
+ if (!isCallable$4(store$1.inspectSource)) {
576
630
  store$1.inspectSource = function (it) {
577
631
  return functionToString(it);
578
632
  };
579
633
  }
580
634
 
581
- var inspectSource$3 = store$1.inspectSource;
635
+ var inspectSource$1 = store$1.inspectSource;
582
636
 
583
- var global$c = global$j;
584
- var isCallable$f = isCallable$m;
637
+ var global$3 = global$a;
638
+ var isCallable$3 = isCallable$a;
585
639
 
586
- var WeakMap$1 = global$c.WeakMap;
640
+ var WeakMap$1 = global$3.WeakMap;
587
641
 
588
- var weakMapBasicDetection = isCallable$f(WeakMap$1) && /native code/.test(String(WeakMap$1));
642
+ var weakMapBasicDetection = isCallable$3(WeakMap$1) && /native code/.test(String(WeakMap$1));
589
643
 
590
644
  var shared$1 = shared$3;
591
645
  var uid = uid$2;
592
646
 
593
647
  var keys$1 = shared$1('keys');
594
648
 
595
- var sharedKey$3 = function (key) {
649
+ var sharedKey$1 = function (key) {
596
650
  return keys$1[key] || (keys$1[key] = uid(key));
597
651
  };
598
652
 
599
- var hiddenKeys$4 = {};
653
+ var hiddenKeys$3 = {};
600
654
 
601
655
  var NATIVE_WEAK_MAP = weakMapBasicDetection;
602
- var global$b = global$j;
603
- var isObject$7 = isObject$c;
604
- var createNonEnumerableProperty$6 = createNonEnumerableProperty$7;
605
- var hasOwn$8 = hasOwnProperty_1;
656
+ var global$2 = global$a;
657
+ var isObject = isObject$5;
658
+ var createNonEnumerableProperty$1 = createNonEnumerableProperty$2;
659
+ var hasOwn$3 = hasOwnProperty_1;
606
660
  var shared = sharedStoreExports;
607
- var sharedKey$2 = sharedKey$3;
608
- var hiddenKeys$3 = hiddenKeys$4;
661
+ var sharedKey = sharedKey$1;
662
+ var hiddenKeys$2 = hiddenKeys$3;
609
663
 
610
664
  var OBJECT_ALREADY_INITIALIZED = 'Object already initialized';
611
- var TypeError$2 = global$b.TypeError;
612
- var WeakMap = global$b.WeakMap;
613
- var set$1, get, has$6;
665
+ var TypeError$1 = global$2.TypeError;
666
+ var WeakMap = global$2.WeakMap;
667
+ var set, get, has$6;
614
668
 
615
669
  var enforce = function (it) {
616
- return has$6(it) ? get(it) : set$1(it, {});
670
+ return has$6(it) ? get(it) : set(it, {});
617
671
  };
618
672
 
619
673
  var getterFor = function (TYPE) {
620
674
  return function (it) {
621
675
  var state;
622
- if (!isObject$7(it) || (state = get(it)).type !== TYPE) {
623
- throw new TypeError$2('Incompatible receiver, ' + TYPE + ' required');
676
+ if (!isObject(it) || (state = get(it)).type !== TYPE) {
677
+ throw new TypeError$1('Incompatible receiver, ' + TYPE + ' required');
624
678
  } return state;
625
679
  };
626
680
  };
@@ -632,8 +686,8 @@ if (NATIVE_WEAK_MAP || shared.state) {
632
686
  store.has = store.has;
633
687
  store.set = store.set;
634
688
  /* eslint-enable no-self-assign -- prototype methods protection */
635
- set$1 = function (it, metadata) {
636
- if (store.has(it)) throw new TypeError$2(OBJECT_ALREADY_INITIALIZED);
689
+ set = function (it, metadata) {
690
+ if (store.has(it)) throw new TypeError$1(OBJECT_ALREADY_INITIALIZED);
637
691
  metadata.facade = it;
638
692
  store.set(it, metadata);
639
693
  return metadata;
@@ -645,97 +699,97 @@ if (NATIVE_WEAK_MAP || shared.state) {
645
699
  return store.has(it);
646
700
  };
647
701
  } else {
648
- var STATE = sharedKey$2('state');
649
- hiddenKeys$3[STATE] = true;
650
- set$1 = function (it, metadata) {
651
- if (hasOwn$8(it, STATE)) throw new TypeError$2(OBJECT_ALREADY_INITIALIZED);
702
+ var STATE = sharedKey('state');
703
+ hiddenKeys$2[STATE] = true;
704
+ set = function (it, metadata) {
705
+ if (hasOwn$3(it, STATE)) throw new TypeError$1(OBJECT_ALREADY_INITIALIZED);
652
706
  metadata.facade = it;
653
- createNonEnumerableProperty$6(it, STATE, metadata);
707
+ createNonEnumerableProperty$1(it, STATE, metadata);
654
708
  return metadata;
655
709
  };
656
710
  get = function (it) {
657
- return hasOwn$8(it, STATE) ? it[STATE] : {};
711
+ return hasOwn$3(it, STATE) ? it[STATE] : {};
658
712
  };
659
713
  has$6 = function (it) {
660
- return hasOwn$8(it, STATE);
714
+ return hasOwn$3(it, STATE);
661
715
  };
662
716
  }
663
717
 
664
718
  var internalState = {
665
- set: set$1,
719
+ set: set,
666
720
  get: get,
667
721
  has: has$6,
668
722
  enforce: enforce,
669
723
  getterFor: getterFor
670
724
  };
671
725
 
672
- var uncurryThis$d = functionUncurryThis;
673
- var fails$a = fails$h;
674
- var isCallable$e = isCallable$m;
675
- var hasOwn$7 = hasOwnProperty_1;
676
- var DESCRIPTORS$6 = descriptors;
677
- var CONFIGURABLE_FUNCTION_NAME$1 = functionName.CONFIGURABLE;
678
- var inspectSource$2 = inspectSource$3;
679
- var InternalStateModule$2 = internalState;
726
+ var uncurryThis$5 = functionUncurryThis;
727
+ var fails$2 = fails$9;
728
+ var isCallable$2 = isCallable$a;
729
+ var hasOwn$2 = hasOwnProperty_1;
730
+ var DESCRIPTORS = descriptors;
731
+ var CONFIGURABLE_FUNCTION_NAME = functionName.CONFIGURABLE;
732
+ var inspectSource = inspectSource$1;
733
+ var InternalStateModule = internalState;
680
734
 
681
- var enforceInternalState = InternalStateModule$2.enforce;
682
- var getInternalState$1 = InternalStateModule$2.get;
683
- var $String$3 = String;
735
+ var enforceInternalState = InternalStateModule.enforce;
736
+ var getInternalState = InternalStateModule.get;
737
+ var $String = String;
684
738
  // eslint-disable-next-line es/no-object-defineproperty -- safe
685
- var defineProperty$6 = Object.defineProperty;
686
- var stringSlice = uncurryThis$d(''.slice);
687
- var replace$2 = uncurryThis$d(''.replace);
688
- var join = uncurryThis$d([].join);
739
+ var defineProperty = Object.defineProperty;
740
+ var stringSlice = uncurryThis$5(''.slice);
741
+ var replace = uncurryThis$5(''.replace);
742
+ var join = uncurryThis$5([].join);
689
743
 
690
- var CONFIGURABLE_LENGTH = DESCRIPTORS$6 && !fails$a(function () {
691
- return defineProperty$6(function () { /* empty */ }, 'length', { value: 8 }).length !== 8;
744
+ var CONFIGURABLE_LENGTH = DESCRIPTORS && !fails$2(function () {
745
+ return defineProperty(function () { /* empty */ }, 'length', { value: 8 }).length !== 8;
692
746
  });
693
747
 
694
748
  var TEMPLATE = String(String).split('String');
695
749
 
696
- var makeBuiltIn$2 = makeBuiltIn$3.exports = function (value, name, options) {
697
- if (stringSlice($String$3(name), 0, 7) === 'Symbol(') {
698
- name = '[' + replace$2($String$3(name), /^Symbol\(([^)]*)\).*$/, '$1') + ']';
750
+ var makeBuiltIn$1 = makeBuiltIn$2.exports = function (value, name, options) {
751
+ if (stringSlice($String(name), 0, 7) === 'Symbol(') {
752
+ name = '[' + replace($String(name), /^Symbol\(([^)]*)\).*$/, '$1') + ']';
699
753
  }
700
754
  if (options && options.getter) name = 'get ' + name;
701
755
  if (options && options.setter) name = 'set ' + name;
702
- if (!hasOwn$7(value, 'name') || (CONFIGURABLE_FUNCTION_NAME$1 && value.name !== name)) {
703
- if (DESCRIPTORS$6) defineProperty$6(value, 'name', { value: name, configurable: true });
756
+ if (!hasOwn$2(value, 'name') || (CONFIGURABLE_FUNCTION_NAME && value.name !== name)) {
757
+ if (DESCRIPTORS) defineProperty(value, 'name', { value: name, configurable: true });
704
758
  else value.name = name;
705
759
  }
706
- if (CONFIGURABLE_LENGTH && options && hasOwn$7(options, 'arity') && value.length !== options.arity) {
707
- defineProperty$6(value, 'length', { value: options.arity });
760
+ if (CONFIGURABLE_LENGTH && options && hasOwn$2(options, 'arity') && value.length !== options.arity) {
761
+ defineProperty(value, 'length', { value: options.arity });
708
762
  }
709
763
  try {
710
- if (options && hasOwn$7(options, 'constructor') && options.constructor) {
711
- if (DESCRIPTORS$6) defineProperty$6(value, 'prototype', { writable: false });
764
+ if (options && hasOwn$2(options, 'constructor') && options.constructor) {
765
+ if (DESCRIPTORS) defineProperty(value, 'prototype', { writable: false });
712
766
  // in V8 ~ Chrome 53, prototypes of some methods, like `Array.prototype.values`, are non-writable
713
767
  } else if (value.prototype) value.prototype = undefined;
714
768
  } catch (error) { /* empty */ }
715
769
  var state = enforceInternalState(value);
716
- if (!hasOwn$7(state, 'source')) {
770
+ if (!hasOwn$2(state, 'source')) {
717
771
  state.source = join(TEMPLATE, typeof name == 'string' ? name : '');
718
772
  } return value;
719
773
  };
720
774
 
721
775
  // add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative
722
776
  // eslint-disable-next-line no-extend-native -- required
723
- Function.prototype.toString = makeBuiltIn$2(function toString() {
724
- return isCallable$e(this) && getInternalState$1(this).source || inspectSource$2(this);
777
+ Function.prototype.toString = makeBuiltIn$1(function toString() {
778
+ return isCallable$2(this) && getInternalState(this).source || inspectSource(this);
725
779
  }, 'toString');
726
780
 
727
- var makeBuiltInExports = makeBuiltIn$3.exports;
781
+ var makeBuiltInExports = makeBuiltIn$2.exports;
728
782
 
729
- var isCallable$d = isCallable$m;
730
- var definePropertyModule$2 = objectDefineProperty;
731
- var makeBuiltIn$1 = makeBuiltInExports;
783
+ var isCallable$1 = isCallable$a;
784
+ var definePropertyModule$1 = objectDefineProperty;
785
+ var makeBuiltIn = makeBuiltInExports;
732
786
  var defineGlobalProperty$1 = defineGlobalProperty$3;
733
787
 
734
- var defineBuiltIn$6 = function (O, key, value, options) {
788
+ var defineBuiltIn$1 = function (O, key, value, options) {
735
789
  if (!options) options = {};
736
790
  var simple = options.enumerable;
737
791
  var name = options.name !== undefined ? options.name : key;
738
- if (isCallable$d(value)) makeBuiltIn$1(value, name, options);
792
+ if (isCallable$1(value)) makeBuiltIn(value, name, options);
739
793
  if (options.global) {
740
794
  if (simple) O[key] = value;
741
795
  else defineGlobalProperty$1(key, value);
@@ -745,7 +799,7 @@ var defineBuiltIn$6 = function (O, key, value, options) {
745
799
  else if (O[key]) simple = true;
746
800
  } catch (error) { /* empty */ }
747
801
  if (simple) O[key] = value;
748
- else definePropertyModule$2.f(O, key, {
802
+ else definePropertyModule$1.f(O, key, {
749
803
  value: value,
750
804
  enumerable: false,
751
805
  configurable: !options.nonConfigurable,
@@ -805,19 +859,19 @@ var toLength = toLength$1;
805
859
 
806
860
  // `LengthOfArrayLike` abstract operation
807
861
  // https://tc39.es/ecma262/#sec-lengthofarraylike
808
- var lengthOfArrayLike$2 = function (obj) {
862
+ var lengthOfArrayLike$1 = function (obj) {
809
863
  return toLength(obj.length);
810
864
  };
811
865
 
812
- var toIndexedObject$3 = toIndexedObject$5;
866
+ var toIndexedObject$1 = toIndexedObject$3;
813
867
  var toAbsoluteIndex = toAbsoluteIndex$1;
814
- var lengthOfArrayLike$1 = lengthOfArrayLike$2;
868
+ var lengthOfArrayLike = lengthOfArrayLike$1;
815
869
 
816
870
  // `Array.prototype.{ indexOf, includes }` methods implementation
817
871
  var createMethod = function (IS_INCLUDES) {
818
872
  return function ($this, el, fromIndex) {
819
- var O = toIndexedObject$3($this);
820
- var length = lengthOfArrayLike$1(O);
873
+ var O = toIndexedObject$1($this);
874
+ var length = lengthOfArrayLike(O);
821
875
  if (length === 0) return !IS_INCLUDES && -1;
822
876
  var index = toAbsoluteIndex(fromIndex, length);
823
877
  var value;
@@ -843,2027 +897,165 @@ var arrayIncludes = {
843
897
  indexOf: createMethod(false)
844
898
  };
845
899
 
846
- var uncurryThis$c = functionUncurryThis;
847
- var hasOwn$6 = hasOwnProperty_1;
848
- var toIndexedObject$2 = toIndexedObject$5;
900
+ var uncurryThis$4 = functionUncurryThis;
901
+ var hasOwn$1 = hasOwnProperty_1;
902
+ var toIndexedObject = toIndexedObject$3;
849
903
  var indexOf = arrayIncludes.indexOf;
850
- var hiddenKeys$2 = hiddenKeys$4;
904
+ var hiddenKeys$1 = hiddenKeys$3;
851
905
 
852
- var push$1 = uncurryThis$c([].push);
906
+ var push = uncurryThis$4([].push);
853
907
 
854
908
  var objectKeysInternal = function (object, names) {
855
- var O = toIndexedObject$2(object);
909
+ var O = toIndexedObject(object);
856
910
  var i = 0;
857
911
  var result = [];
858
912
  var key;
859
- for (key in O) !hasOwn$6(hiddenKeys$2, key) && hasOwn$6(O, key) && push$1(result, key);
913
+ for (key in O) !hasOwn$1(hiddenKeys$1, key) && hasOwn$1(O, key) && push(result, key);
860
914
  // Don't enum bug & hidden keys
861
- while (names.length > i) if (hasOwn$6(O, key = names[i++])) {
862
- ~indexOf(result, key) || push$1(result, key);
915
+ while (names.length > i) if (hasOwn$1(O, key = names[i++])) {
916
+ ~indexOf(result, key) || push(result, key);
863
917
  }
864
918
  return result;
865
919
  };
866
920
 
867
- // IE8- don't enum bug keys
868
- var enumBugKeys$3 = [
869
- 'constructor',
870
- 'hasOwnProperty',
871
- 'isPrototypeOf',
872
- 'propertyIsEnumerable',
873
- 'toLocaleString',
874
- 'toString',
875
- 'valueOf'
876
- ];
877
-
878
- var internalObjectKeys$1 = objectKeysInternal;
879
- var enumBugKeys$2 = enumBugKeys$3;
880
-
881
- var hiddenKeys$1 = enumBugKeys$2.concat('length', 'prototype');
882
-
883
- // `Object.getOwnPropertyNames` method
884
- // https://tc39.es/ecma262/#sec-object.getownpropertynames
885
- // eslint-disable-next-line es/no-object-getownpropertynames -- safe
886
- objectGetOwnPropertyNames.f = Object.getOwnPropertyNames || function getOwnPropertyNames(O) {
887
- return internalObjectKeys$1(O, hiddenKeys$1);
888
- };
889
-
890
- var objectGetOwnPropertySymbols = {};
891
-
892
- // eslint-disable-next-line es/no-object-getownpropertysymbols -- safe
893
- objectGetOwnPropertySymbols.f = Object.getOwnPropertySymbols;
894
-
895
- var getBuiltIn$8 = getBuiltIn$a;
896
- var uncurryThis$b = functionUncurryThis;
897
- var getOwnPropertyNamesModule = objectGetOwnPropertyNames;
898
- var getOwnPropertySymbolsModule$1 = objectGetOwnPropertySymbols;
899
- var anObject$a = anObject$c;
900
-
901
- var concat$1 = uncurryThis$b([].concat);
902
-
903
- // all object keys, includes non-enumerable and symbols
904
- var ownKeys$1 = getBuiltIn$8('Reflect', 'ownKeys') || function ownKeys(it) {
905
- var keys = getOwnPropertyNamesModule.f(anObject$a(it));
906
- var getOwnPropertySymbols = getOwnPropertySymbolsModule$1.f;
907
- return getOwnPropertySymbols ? concat$1(keys, getOwnPropertySymbols(it)) : keys;
908
- };
909
-
910
- var hasOwn$5 = hasOwnProperty_1;
911
- var ownKeys = ownKeys$1;
912
- var getOwnPropertyDescriptorModule = objectGetOwnPropertyDescriptor;
913
- var definePropertyModule$1 = objectDefineProperty;
914
-
915
- var copyConstructorProperties$2 = function (target, source, exceptions) {
916
- var keys = ownKeys(source);
917
- var defineProperty = definePropertyModule$1.f;
918
- var getOwnPropertyDescriptor = getOwnPropertyDescriptorModule.f;
919
- for (var i = 0; i < keys.length; i++) {
920
- var key = keys[i];
921
- if (!hasOwn$5(target, key) && !(exceptions && hasOwn$5(exceptions, key))) {
922
- defineProperty(target, key, getOwnPropertyDescriptor(source, key));
923
- }
924
- }
925
- };
926
-
927
- var fails$9 = fails$h;
928
- var isCallable$c = isCallable$m;
929
-
930
- var replacement = /#|\.prototype\./;
931
-
932
- var isForced$2 = function (feature, detection) {
933
- var value = data[normalize(feature)];
934
- return value === POLYFILL ? true
935
- : value === NATIVE ? false
936
- : isCallable$c(detection) ? fails$9(detection)
937
- : !!detection;
938
- };
939
-
940
- var normalize = isForced$2.normalize = function (string) {
941
- return String(string).replace(replacement, '.').toLowerCase();
942
- };
943
-
944
- var data = isForced$2.data = {};
945
- var NATIVE = isForced$2.NATIVE = 'N';
946
- var POLYFILL = isForced$2.POLYFILL = 'P';
947
-
948
- var isForced_1 = isForced$2;
949
-
950
- var global$a = global$j;
951
- var getOwnPropertyDescriptor$1 = objectGetOwnPropertyDescriptor.f;
952
- var createNonEnumerableProperty$5 = createNonEnumerableProperty$7;
953
- var defineBuiltIn$5 = defineBuiltIn$6;
954
- var defineGlobalProperty = defineGlobalProperty$3;
955
- var copyConstructorProperties$1 = copyConstructorProperties$2;
956
- var isForced$1 = isForced_1;
957
-
958
- /*
959
- options.target - name of the target object
960
- options.global - target is the global object
961
- options.stat - export as static methods of target
962
- options.proto - export as prototype methods of target
963
- options.real - real prototype method for the `pure` version
964
- options.forced - export even if the native feature is available
965
- options.bind - bind methods to the target, required for the `pure` version
966
- options.wrap - wrap constructors to preventing global pollution, required for the `pure` version
967
- options.unsafe - use the simple assignment of property instead of delete + defineProperty
968
- options.sham - add a flag to not completely full polyfills
969
- options.enumerable - export as enumerable property
970
- options.dontCallGetSet - prevent calling a getter on target
971
- options.name - the .name of the function if it does not match the key
972
- */
973
- var _export = function (options, source) {
974
- var TARGET = options.target;
975
- var GLOBAL = options.global;
976
- var STATIC = options.stat;
977
- var FORCED, target, key, targetProperty, sourceProperty, descriptor;
978
- if (GLOBAL) {
979
- target = global$a;
980
- } else if (STATIC) {
981
- target = global$a[TARGET] || defineGlobalProperty(TARGET, {});
982
- } else {
983
- target = global$a[TARGET] && global$a[TARGET].prototype;
984
- }
985
- if (target) for (key in source) {
986
- sourceProperty = source[key];
987
- if (options.dontCallGetSet) {
988
- descriptor = getOwnPropertyDescriptor$1(target, key);
989
- targetProperty = descriptor && descriptor.value;
990
- } else targetProperty = target[key];
991
- FORCED = isForced$1(GLOBAL ? key : TARGET + (STATIC ? '.' : '#') + key, options.forced);
992
- // contained in target
993
- if (!FORCED && targetProperty !== undefined) {
994
- if (typeof sourceProperty == typeof targetProperty) continue;
995
- copyConstructorProperties$1(sourceProperty, targetProperty);
996
- }
997
- // add a flag to not completely full polyfills
998
- if (options.sham || (targetProperty && targetProperty.sham)) {
999
- createNonEnumerableProperty$5(sourceProperty, 'sham', true);
1000
- }
1001
- defineBuiltIn$5(target, key, sourceProperty, options);
1002
- }
1003
- };
1004
-
1005
- var NATIVE_BIND$1 = functionBindNative;
1006
-
1007
- var FunctionPrototype = Function.prototype;
1008
- var apply$3 = FunctionPrototype.apply;
1009
- var call$c = FunctionPrototype.call;
1010
-
1011
- // eslint-disable-next-line es/no-reflect -- safe
1012
- var functionApply = typeof Reflect == 'object' && Reflect.apply || (NATIVE_BIND$1 ? call$c.bind(apply$3) : function () {
1013
- return call$c.apply(apply$3, arguments);
1014
- });
1015
-
1016
- var uncurryThis$a = functionUncurryThis;
1017
-
1018
- var arraySlice$2 = uncurryThis$a([].slice);
1019
-
1020
- var classof$6 = classofRaw$2;
1021
-
1022
- // `IsArray` abstract operation
1023
- // https://tc39.es/ecma262/#sec-isarray
1024
- // eslint-disable-next-line es/no-array-isarray -- safe
1025
- var isArray$1 = Array.isArray || function isArray(argument) {
1026
- return classof$6(argument) === 'Array';
1027
- };
1028
-
1029
- var wellKnownSymbol$c = wellKnownSymbol$e;
1030
-
1031
- var TO_STRING_TAG$2 = wellKnownSymbol$c('toStringTag');
1032
- var test = {};
1033
-
1034
- test[TO_STRING_TAG$2] = 'z';
1035
-
1036
- var toStringTagSupport = String(test) === '[object z]';
1037
-
1038
- var TO_STRING_TAG_SUPPORT = toStringTagSupport;
1039
- var isCallable$b = isCallable$m;
1040
- var classofRaw$1 = classofRaw$2;
1041
- var wellKnownSymbol$b = wellKnownSymbol$e;
1042
-
1043
- var TO_STRING_TAG$1 = wellKnownSymbol$b('toStringTag');
1044
- var $Object$1 = Object;
1045
-
1046
- // ES3 wrong here
1047
- var CORRECT_ARGUMENTS = classofRaw$1(function () { return arguments; }()) === 'Arguments';
1048
-
1049
- // fallback for IE11 Script Access Denied error
1050
- var tryGet = function (it, key) {
1051
- try {
1052
- return it[key];
1053
- } catch (error) { /* empty */ }
1054
- };
1055
-
1056
- // getting tag from ES6+ `Object.prototype.toString`
1057
- var classof$5 = TO_STRING_TAG_SUPPORT ? classofRaw$1 : function (it) {
1058
- var O, tag, result;
1059
- return it === undefined ? 'Undefined' : it === null ? 'Null'
1060
- // @@toStringTag case
1061
- : typeof (tag = tryGet(O = $Object$1(it), TO_STRING_TAG$1)) == 'string' ? tag
1062
- // builtinTag case
1063
- : CORRECT_ARGUMENTS ? classofRaw$1(O)
1064
- // ES3 arguments fallback
1065
- : (result = classofRaw$1(O)) === 'Object' && isCallable$b(O.callee) ? 'Arguments' : result;
1066
- };
1067
-
1068
- var classof$4 = classof$5;
1069
-
1070
- var $String$2 = String;
1071
-
1072
- var toString$2 = function (argument) {
1073
- if (classof$4(argument) === 'Symbol') throw new TypeError('Cannot convert a Symbol value to a string');
1074
- return $String$2(argument);
1075
- };
1076
-
1077
- var uncurryThis$9 = functionUncurryThis;
1078
- var isArray = isArray$1;
1079
- var isCallable$a = isCallable$m;
1080
- var classof$3 = classofRaw$2;
1081
- var toString$1 = toString$2;
1082
-
1083
- var push = uncurryThis$9([].push);
1084
-
1085
- var getJsonReplacerFunction = function (replacer) {
1086
- if (isCallable$a(replacer)) return replacer;
1087
- if (!isArray(replacer)) return;
1088
- var rawLength = replacer.length;
1089
- var keys = [];
1090
- for (var i = 0; i < rawLength; i++) {
1091
- var element = replacer[i];
1092
- if (typeof element == 'string') push(keys, element);
1093
- else if (typeof element == 'number' || classof$3(element) === 'Number' || classof$3(element) === 'String') push(keys, toString$1(element));
1094
- }
1095
- var keysLength = keys.length;
1096
- var root = true;
1097
- return function (key, value) {
1098
- if (root) {
1099
- root = false;
1100
- return value;
1101
- }
1102
- if (isArray(this)) return value;
1103
- for (var j = 0; j < keysLength; j++) if (keys[j] === key) return value;
1104
- };
1105
- };
1106
-
1107
- var $$g = _export;
1108
- var getBuiltIn$7 = getBuiltIn$a;
1109
- var apply$2 = functionApply;
1110
- var call$b = functionCall;
1111
- var uncurryThis$8 = functionUncurryThis;
1112
- var fails$8 = fails$h;
1113
- var isCallable$9 = isCallable$m;
1114
- var isSymbol = isSymbol$3;
1115
- var arraySlice$1 = arraySlice$2;
1116
- var getReplacerFunction = getJsonReplacerFunction;
1117
- var NATIVE_SYMBOL = symbolConstructorDetection;
1118
-
1119
- var $String$1 = String;
1120
- var $stringify = getBuiltIn$7('JSON', 'stringify');
1121
- var exec$1 = uncurryThis$8(/./.exec);
1122
- var charAt = uncurryThis$8(''.charAt);
1123
- var charCodeAt = uncurryThis$8(''.charCodeAt);
1124
- var replace$1 = uncurryThis$8(''.replace);
1125
- var numberToString = uncurryThis$8(1.0.toString);
1126
-
1127
- var tester = /[\uD800-\uDFFF]/g;
1128
- var low = /^[\uD800-\uDBFF]$/;
1129
- var hi = /^[\uDC00-\uDFFF]$/;
1130
-
1131
- var WRONG_SYMBOLS_CONVERSION = !NATIVE_SYMBOL || fails$8(function () {
1132
- var symbol = getBuiltIn$7('Symbol')('stringify detection');
1133
- // MS Edge converts symbol values to JSON as {}
1134
- return $stringify([symbol]) !== '[null]'
1135
- // WebKit converts symbol values to JSON as null
1136
- || $stringify({ a: symbol }) !== '{}'
1137
- // V8 throws on boxed symbols
1138
- || $stringify(Object(symbol)) !== '{}';
1139
- });
1140
-
1141
- // https://github.com/tc39/proposal-well-formed-stringify
1142
- var ILL_FORMED_UNICODE = fails$8(function () {
1143
- return $stringify('\uDF06\uD834') !== '"\\udf06\\ud834"'
1144
- || $stringify('\uDEAD') !== '"\\udead"';
1145
- });
1146
-
1147
- var stringifyWithSymbolsFix = function (it, replacer) {
1148
- var args = arraySlice$1(arguments);
1149
- var $replacer = getReplacerFunction(replacer);
1150
- if (!isCallable$9($replacer) && (it === undefined || isSymbol(it))) return; // IE8 returns string on undefined
1151
- args[1] = function (key, value) {
1152
- // some old implementations (like WebKit) could pass numbers as keys
1153
- if (isCallable$9($replacer)) value = call$b($replacer, this, $String$1(key), value);
1154
- if (!isSymbol(value)) return value;
1155
- };
1156
- return apply$2($stringify, null, args);
1157
- };
1158
-
1159
- var fixIllFormed = function (match, offset, string) {
1160
- var prev = charAt(string, offset - 1);
1161
- var next = charAt(string, offset + 1);
1162
- if ((exec$1(low, match) && !exec$1(hi, next)) || (exec$1(hi, match) && !exec$1(low, prev))) {
1163
- return '\\u' + numberToString(charCodeAt(match, 0), 16);
1164
- } return match;
1165
- };
1166
-
1167
- if ($stringify) {
1168
- // `JSON.stringify` method
1169
- // https://tc39.es/ecma262/#sec-json.stringify
1170
- $$g({ target: 'JSON', stat: true, arity: 3, forced: WRONG_SYMBOLS_CONVERSION || ILL_FORMED_UNICODE }, {
1171
- // eslint-disable-next-line no-unused-vars -- required for `.length`
1172
- stringify: function stringify(it, replacer, space) {
1173
- var args = arraySlice$1(arguments);
1174
- var result = apply$2(WRONG_SYMBOLS_CONVERSION ? stringifyWithSymbolsFix : $stringify, null, args);
1175
- return ILL_FORMED_UNICODE && typeof result == 'string' ? replace$1(result, tester, fixIllFormed) : result;
1176
- }
1177
- });
1178
- }
1179
-
1180
- var internalObjectKeys = objectKeysInternal;
1181
- var enumBugKeys$1 = enumBugKeys$3;
1182
-
1183
- // `Object.keys` method
1184
- // https://tc39.es/ecma262/#sec-object.keys
1185
- // eslint-disable-next-line es/no-object-keys -- safe
1186
- var objectKeys$2 = Object.keys || function keys(O) {
1187
- return internalObjectKeys(O, enumBugKeys$1);
1188
- };
1189
-
1190
- var DESCRIPTORS$5 = descriptors;
1191
- var uncurryThis$7 = functionUncurryThis;
1192
- var call$a = functionCall;
1193
- var fails$7 = fails$h;
1194
- var objectKeys$1 = objectKeys$2;
1195
- var getOwnPropertySymbolsModule = objectGetOwnPropertySymbols;
1196
- var propertyIsEnumerableModule = objectPropertyIsEnumerable;
1197
- var toObject$1 = toObject$3;
1198
- var IndexedObject = indexedObject;
1199
-
1200
- // eslint-disable-next-line es/no-object-assign -- safe
1201
- var $assign = Object.assign;
1202
- // eslint-disable-next-line es/no-object-defineproperty -- required for testing
1203
- var defineProperty$5 = Object.defineProperty;
1204
- var concat = uncurryThis$7([].concat);
1205
-
1206
- // `Object.assign` method
1207
- // https://tc39.es/ecma262/#sec-object.assign
1208
- var objectAssign = !$assign || fails$7(function () {
1209
- // should have correct order of operations (Edge bug)
1210
- if (DESCRIPTORS$5 && $assign({ b: 1 }, $assign(defineProperty$5({}, 'a', {
1211
- enumerable: true,
1212
- get: function () {
1213
- defineProperty$5(this, 'b', {
1214
- value: 3,
1215
- enumerable: false
1216
- });
1217
- }
1218
- }), { b: 2 })).b !== 1) return true;
1219
- // should work with symbols and should have deterministic property order (V8 bug)
1220
- var A = {};
1221
- var B = {};
1222
- // eslint-disable-next-line es/no-symbol -- safe
1223
- var symbol = Symbol('assign detection');
1224
- var alphabet = 'abcdefghijklmnopqrst';
1225
- A[symbol] = 7;
1226
- alphabet.split('').forEach(function (chr) { B[chr] = chr; });
1227
- return $assign({}, A)[symbol] !== 7 || objectKeys$1($assign({}, B)).join('') !== alphabet;
1228
- }) ? function assign(target, source) { // eslint-disable-line no-unused-vars -- required for `.length`
1229
- var T = toObject$1(target);
1230
- var argumentsLength = arguments.length;
1231
- var index = 1;
1232
- var getOwnPropertySymbols = getOwnPropertySymbolsModule.f;
1233
- var propertyIsEnumerable = propertyIsEnumerableModule.f;
1234
- while (argumentsLength > index) {
1235
- var S = IndexedObject(arguments[index++]);
1236
- var keys = getOwnPropertySymbols ? concat(objectKeys$1(S), getOwnPropertySymbols(S)) : objectKeys$1(S);
1237
- var length = keys.length;
1238
- var j = 0;
1239
- var key;
1240
- while (length > j) {
1241
- key = keys[j++];
1242
- if (!DESCRIPTORS$5 || call$a(propertyIsEnumerable, S, key)) T[key] = S[key];
1243
- }
1244
- } return T;
1245
- } : $assign;
1246
-
1247
- var $$f = _export;
1248
- var assign = objectAssign;
1249
-
1250
- // `Object.assign` method
1251
- // https://tc39.es/ecma262/#sec-object.assign
1252
- // eslint-disable-next-line es/no-object-assign -- required for testing
1253
- $$f({ target: 'Object', stat: true, arity: 2, forced: Object.assign !== assign }, {
1254
- assign: assign
1255
- });
1256
-
1257
- /**
1258
- * The Zoom API returns the data for a page for a specific key.
1259
- *
1260
- * This function maps the data under that key to a ZoomPageResult with the data on the "data" variable.
1261
-
1262
- * @param dataTypeKey
1263
- * @returns
1264
- */
1265
- function mapToZoomPageResult(dataTypeKey) {
1266
- return data => {
1267
- const {
1268
- next_page_token,
1269
- page_count,
1270
- page_number,
1271
- page_size,
1272
- total_records
1273
- } = data;
1274
- return {
1275
- data: data[dataTypeKey],
1276
- next_page_token,
1277
- page_count,
1278
- page_number,
1279
- page_size,
1280
- total_records
1281
- };
1282
- };
1283
- }
1284
- /**
1285
- * Creates a FetchPageFactory using the input ZoomFetchPageFetchFunction.
1286
- *
1287
- * @param fetch
1288
- * @param defaults
1289
- * @returns
1290
- */
1291
- function zoomFetchPageFactory(fetch$1, defaults) {
1292
- return fetch.fetchPageFactory(Object.assign({}, defaults, {
1293
- fetch: fetch$1,
1294
- readFetchPageResultInfo: function (result) {
1295
- return {
1296
- nextPageCursor: result.next_page_token,
1297
- hasNext: Boolean(result.next_page_token) // has more when a non-empty next_page_token is returned
1298
- };
1299
- },
1300
- buildInputForNextPage: function (pageResult, input, options) {
1301
- var _options$maxItemsPerP;
1302
- return Object.assign({}, input, {
1303
- next_page_token: pageResult.nextPageCursor,
1304
- page_size: (_options$maxItemsPerP = options.maxItemsPerPage) != null ? _options$maxItemsPerP : input.page_size
1305
- });
1306
- }
1307
- }));
1308
- }
1309
-
1310
- var objectDefineProperties = {};
1311
-
1312
- var DESCRIPTORS$4 = descriptors;
1313
- var V8_PROTOTYPE_DEFINE_BUG = v8PrototypeDefineBug;
1314
- var definePropertyModule = objectDefineProperty;
1315
- var anObject$9 = anObject$c;
1316
- var toIndexedObject$1 = toIndexedObject$5;
1317
- var objectKeys = objectKeys$2;
1318
-
1319
- // `Object.defineProperties` method
1320
- // https://tc39.es/ecma262/#sec-object.defineproperties
1321
- // eslint-disable-next-line es/no-object-defineproperties -- safe
1322
- objectDefineProperties.f = DESCRIPTORS$4 && !V8_PROTOTYPE_DEFINE_BUG ? Object.defineProperties : function defineProperties(O, Properties) {
1323
- anObject$9(O);
1324
- var props = toIndexedObject$1(Properties);
1325
- var keys = objectKeys(Properties);
1326
- var length = keys.length;
1327
- var index = 0;
1328
- var key;
1329
- while (length > index) definePropertyModule.f(O, key = keys[index++], props[key]);
1330
- return O;
1331
- };
1332
-
1333
- var getBuiltIn$6 = getBuiltIn$a;
1334
-
1335
- var html$2 = getBuiltIn$6('document', 'documentElement');
1336
-
1337
- /* global ActiveXObject -- old IE, WSH */
1338
- var anObject$8 = anObject$c;
1339
- var definePropertiesModule = objectDefineProperties;
1340
- var enumBugKeys = enumBugKeys$3;
1341
- var hiddenKeys = hiddenKeys$4;
1342
- var html$1 = html$2;
1343
- var documentCreateElement$1 = documentCreateElement$2;
1344
- var sharedKey$1 = sharedKey$3;
1345
-
1346
- var GT = '>';
1347
- var LT = '<';
1348
- var PROTOTYPE = 'prototype';
1349
- var SCRIPT = 'script';
1350
- var IE_PROTO$1 = sharedKey$1('IE_PROTO');
1351
-
1352
- var EmptyConstructor = function () { /* empty */ };
1353
-
1354
- var scriptTag = function (content) {
1355
- return LT + SCRIPT + GT + content + LT + '/' + SCRIPT + GT;
1356
- };
1357
-
1358
- // Create object with fake `null` prototype: use ActiveX Object with cleared prototype
1359
- var NullProtoObjectViaActiveX = function (activeXDocument) {
1360
- activeXDocument.write(scriptTag(''));
1361
- activeXDocument.close();
1362
- var temp = activeXDocument.parentWindow.Object;
1363
- activeXDocument = null; // avoid memory leak
1364
- return temp;
1365
- };
1366
-
1367
- // Create object with fake `null` prototype: use iframe Object with cleared prototype
1368
- var NullProtoObjectViaIFrame = function () {
1369
- // Thrash, waste and sodomy: IE GC bug
1370
- var iframe = documentCreateElement$1('iframe');
1371
- var JS = 'java' + SCRIPT + ':';
1372
- var iframeDocument;
1373
- iframe.style.display = 'none';
1374
- html$1.appendChild(iframe);
1375
- // https://github.com/zloirock/core-js/issues/475
1376
- iframe.src = String(JS);
1377
- iframeDocument = iframe.contentWindow.document;
1378
- iframeDocument.open();
1379
- iframeDocument.write(scriptTag('document.F=Object'));
1380
- iframeDocument.close();
1381
- return iframeDocument.F;
1382
- };
1383
-
1384
- // Check for document.domain and active x support
1385
- // No need to use active x approach when document.domain is not set
1386
- // see https://github.com/es-shims/es5-shim/issues/150
1387
- // variation of https://github.com/kitcambridge/es5-shim/commit/4f738ac066346
1388
- // avoid IE GC bug
1389
- var activeXDocument;
1390
- var NullProtoObject = function () {
1391
- try {
1392
- activeXDocument = new ActiveXObject('htmlfile');
1393
- } catch (error) { /* ignore */ }
1394
- NullProtoObject = typeof document != 'undefined'
1395
- ? document.domain && activeXDocument
1396
- ? NullProtoObjectViaActiveX(activeXDocument) // old IE
1397
- : NullProtoObjectViaIFrame()
1398
- : NullProtoObjectViaActiveX(activeXDocument); // WSH
1399
- var length = enumBugKeys.length;
1400
- while (length--) delete NullProtoObject[PROTOTYPE][enumBugKeys[length]];
1401
- return NullProtoObject();
1402
- };
1403
-
1404
- hiddenKeys[IE_PROTO$1] = true;
1405
-
1406
- // `Object.create` method
1407
- // https://tc39.es/ecma262/#sec-object.create
1408
- // eslint-disable-next-line es/no-object-create -- safe
1409
- var objectCreate = Object.create || function create(O, Properties) {
1410
- var result;
1411
- if (O !== null) {
1412
- EmptyConstructor[PROTOTYPE] = anObject$8(O);
1413
- result = new EmptyConstructor();
1414
- EmptyConstructor[PROTOTYPE] = null;
1415
- // add "__proto__" for Object.getPrototypeOf polyfill
1416
- result[IE_PROTO$1] = O;
1417
- } else result = NullProtoObject();
1418
- return Properties === undefined ? result : definePropertiesModule.f(result, Properties);
1419
- };
1420
-
1421
- var wellKnownSymbol$a = wellKnownSymbol$e;
1422
- var create$1 = objectCreate;
1423
- var defineProperty$4 = objectDefineProperty.f;
1424
-
1425
- var UNSCOPABLES = wellKnownSymbol$a('unscopables');
1426
- var ArrayPrototype$1 = Array.prototype;
1427
-
1428
- // Array.prototype[@@unscopables]
1429
- // https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
1430
- if (ArrayPrototype$1[UNSCOPABLES] === undefined) {
1431
- defineProperty$4(ArrayPrototype$1, UNSCOPABLES, {
1432
- configurable: true,
1433
- value: create$1(null)
1434
- });
1435
- }
1436
-
1437
- // add a key to Array.prototype[@@unscopables]
1438
- var addToUnscopables$1 = function (key) {
1439
- ArrayPrototype$1[UNSCOPABLES][key] = true;
1440
- };
1441
-
1442
- var iterators = {};
1443
-
1444
- var fails$6 = fails$h;
1445
-
1446
- var correctPrototypeGetter = !fails$6(function () {
1447
- function F() { /* empty */ }
1448
- F.prototype.constructor = null;
1449
- // eslint-disable-next-line es/no-object-getprototypeof -- required for testing
1450
- return Object.getPrototypeOf(new F()) !== F.prototype;
1451
- });
1452
-
1453
- var hasOwn$4 = hasOwnProperty_1;
1454
- var isCallable$8 = isCallable$m;
1455
- var toObject = toObject$3;
1456
- var sharedKey = sharedKey$3;
1457
- var CORRECT_PROTOTYPE_GETTER = correctPrototypeGetter;
1458
-
1459
- var IE_PROTO = sharedKey('IE_PROTO');
1460
- var $Object = Object;
1461
- var ObjectPrototype = $Object.prototype;
1462
-
1463
- // `Object.getPrototypeOf` method
1464
- // https://tc39.es/ecma262/#sec-object.getprototypeof
1465
- // eslint-disable-next-line es/no-object-getprototypeof -- safe
1466
- var objectGetPrototypeOf = CORRECT_PROTOTYPE_GETTER ? $Object.getPrototypeOf : function (O) {
1467
- var object = toObject(O);
1468
- if (hasOwn$4(object, IE_PROTO)) return object[IE_PROTO];
1469
- var constructor = object.constructor;
1470
- if (isCallable$8(constructor) && object instanceof constructor) {
1471
- return constructor.prototype;
1472
- } return object instanceof $Object ? ObjectPrototype : null;
1473
- };
1474
-
1475
- var fails$5 = fails$h;
1476
- var isCallable$7 = isCallable$m;
1477
- var isObject$6 = isObject$c;
1478
- var getPrototypeOf$1 = objectGetPrototypeOf;
1479
- var defineBuiltIn$4 = defineBuiltIn$6;
1480
- var wellKnownSymbol$9 = wellKnownSymbol$e;
1481
-
1482
- var ITERATOR$5 = wellKnownSymbol$9('iterator');
1483
- var BUGGY_SAFARI_ITERATORS$1 = false;
1484
-
1485
- // `%IteratorPrototype%` object
1486
- // https://tc39.es/ecma262/#sec-%iteratorprototype%-object
1487
- var IteratorPrototype$2, PrototypeOfArrayIteratorPrototype, arrayIterator;
1488
-
1489
- /* eslint-disable es/no-array-prototype-keys -- safe */
1490
- if ([].keys) {
1491
- arrayIterator = [].keys();
1492
- // Safari 8 has buggy iterators w/o `next`
1493
- if (!('next' in arrayIterator)) BUGGY_SAFARI_ITERATORS$1 = true;
1494
- else {
1495
- PrototypeOfArrayIteratorPrototype = getPrototypeOf$1(getPrototypeOf$1(arrayIterator));
1496
- if (PrototypeOfArrayIteratorPrototype !== Object.prototype) IteratorPrototype$2 = PrototypeOfArrayIteratorPrototype;
1497
- }
1498
- }
1499
-
1500
- var NEW_ITERATOR_PROTOTYPE = !isObject$6(IteratorPrototype$2) || fails$5(function () {
1501
- var test = {};
1502
- // FF44- legacy iterators case
1503
- return IteratorPrototype$2[ITERATOR$5].call(test) !== test;
1504
- });
1505
-
1506
- if (NEW_ITERATOR_PROTOTYPE) IteratorPrototype$2 = {};
1507
-
1508
- // `%IteratorPrototype%[@@iterator]()` method
1509
- // https://tc39.es/ecma262/#sec-%iteratorprototype%-@@iterator
1510
- if (!isCallable$7(IteratorPrototype$2[ITERATOR$5])) {
1511
- defineBuiltIn$4(IteratorPrototype$2, ITERATOR$5, function () {
1512
- return this;
1513
- });
1514
- }
1515
-
1516
- var iteratorsCore = {
1517
- IteratorPrototype: IteratorPrototype$2,
1518
- BUGGY_SAFARI_ITERATORS: BUGGY_SAFARI_ITERATORS$1
1519
- };
1520
-
1521
- var defineProperty$3 = objectDefineProperty.f;
1522
- var hasOwn$3 = hasOwnProperty_1;
1523
- var wellKnownSymbol$8 = wellKnownSymbol$e;
1524
-
1525
- var TO_STRING_TAG = wellKnownSymbol$8('toStringTag');
1526
-
1527
- var setToStringTag$4 = function (target, TAG, STATIC) {
1528
- if (target && !STATIC) target = target.prototype;
1529
- if (target && !hasOwn$3(target, TO_STRING_TAG)) {
1530
- defineProperty$3(target, TO_STRING_TAG, { configurable: true, value: TAG });
1531
- }
1532
- };
1533
-
1534
- var IteratorPrototype$1 = iteratorsCore.IteratorPrototype;
1535
- var create = objectCreate;
1536
- var createPropertyDescriptor$1 = createPropertyDescriptor$4;
1537
- var setToStringTag$3 = setToStringTag$4;
1538
- var Iterators$4 = iterators;
1539
-
1540
- var returnThis$1 = function () { return this; };
1541
-
1542
- var iteratorCreateConstructor = function (IteratorConstructor, NAME, next, ENUMERABLE_NEXT) {
1543
- var TO_STRING_TAG = NAME + ' Iterator';
1544
- IteratorConstructor.prototype = create(IteratorPrototype$1, { next: createPropertyDescriptor$1(+!ENUMERABLE_NEXT, next) });
1545
- setToStringTag$3(IteratorConstructor, TO_STRING_TAG, false);
1546
- Iterators$4[TO_STRING_TAG] = returnThis$1;
1547
- return IteratorConstructor;
1548
- };
1549
-
1550
- var uncurryThis$6 = functionUncurryThis;
1551
- var aCallable$7 = aCallable$9;
1552
-
1553
- var functionUncurryThisAccessor = function (object, key, method) {
1554
- try {
1555
- // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
1556
- return uncurryThis$6(aCallable$7(Object.getOwnPropertyDescriptor(object, key)[method]));
1557
- } catch (error) { /* empty */ }
1558
- };
1559
-
1560
- var isObject$5 = isObject$c;
1561
-
1562
- var isPossiblePrototype$1 = function (argument) {
1563
- return isObject$5(argument) || argument === null;
1564
- };
1565
-
1566
- var isPossiblePrototype = isPossiblePrototype$1;
1567
-
1568
- var $String = String;
1569
- var $TypeError$7 = TypeError;
1570
-
1571
- var aPossiblePrototype$1 = function (argument) {
1572
- if (isPossiblePrototype(argument)) return argument;
1573
- throw new $TypeError$7("Can't set " + $String(argument) + ' as a prototype');
1574
- };
1575
-
1576
- /* eslint-disable no-proto -- safe */
1577
- var uncurryThisAccessor$1 = functionUncurryThisAccessor;
1578
- var isObject$4 = isObject$c;
1579
- var requireObjectCoercible = requireObjectCoercible$3;
1580
- var aPossiblePrototype = aPossiblePrototype$1;
1581
-
1582
- // `Object.setPrototypeOf` method
1583
- // https://tc39.es/ecma262/#sec-object.setprototypeof
1584
- // Works with __proto__ only. Old v8 can't work with null proto objects.
1585
- // eslint-disable-next-line es/no-object-setprototypeof -- safe
1586
- var objectSetPrototypeOf = Object.setPrototypeOf || ('__proto__' in {} ? function () {
1587
- var CORRECT_SETTER = false;
1588
- var test = {};
1589
- var setter;
1590
- try {
1591
- setter = uncurryThisAccessor$1(Object.prototype, '__proto__', 'set');
1592
- setter(test, []);
1593
- CORRECT_SETTER = test instanceof Array;
1594
- } catch (error) { /* empty */ }
1595
- return function setPrototypeOf(O, proto) {
1596
- requireObjectCoercible(O);
1597
- aPossiblePrototype(proto);
1598
- if (!isObject$4(O)) return O;
1599
- if (CORRECT_SETTER) setter(O, proto);
1600
- else O.__proto__ = proto;
1601
- return O;
1602
- };
1603
- }() : undefined);
1604
-
1605
- var $$e = _export;
1606
- var call$9 = functionCall;
1607
- var FunctionName = functionName;
1608
- var isCallable$6 = isCallable$m;
1609
- var createIteratorConstructor = iteratorCreateConstructor;
1610
- var getPrototypeOf = objectGetPrototypeOf;
1611
- var setPrototypeOf$3 = objectSetPrototypeOf;
1612
- var setToStringTag$2 = setToStringTag$4;
1613
- var createNonEnumerableProperty$4 = createNonEnumerableProperty$7;
1614
- var defineBuiltIn$3 = defineBuiltIn$6;
1615
- var wellKnownSymbol$7 = wellKnownSymbol$e;
1616
- var Iterators$3 = iterators;
1617
- var IteratorsCore = iteratorsCore;
1618
-
1619
- var PROPER_FUNCTION_NAME$1 = FunctionName.PROPER;
1620
- var CONFIGURABLE_FUNCTION_NAME = FunctionName.CONFIGURABLE;
1621
- var IteratorPrototype = IteratorsCore.IteratorPrototype;
1622
- var BUGGY_SAFARI_ITERATORS = IteratorsCore.BUGGY_SAFARI_ITERATORS;
1623
- var ITERATOR$4 = wellKnownSymbol$7('iterator');
1624
- var KEYS = 'keys';
1625
- var VALUES = 'values';
1626
- var ENTRIES = 'entries';
1627
-
1628
- var returnThis = function () { return this; };
1629
-
1630
- var iteratorDefine = function (Iterable, NAME, IteratorConstructor, next, DEFAULT, IS_SET, FORCED) {
1631
- createIteratorConstructor(IteratorConstructor, NAME, next);
1632
-
1633
- var getIterationMethod = function (KIND) {
1634
- if (KIND === DEFAULT && defaultIterator) return defaultIterator;
1635
- if (!BUGGY_SAFARI_ITERATORS && KIND && KIND in IterablePrototype) return IterablePrototype[KIND];
1636
-
1637
- switch (KIND) {
1638
- case KEYS: return function keys() { return new IteratorConstructor(this, KIND); };
1639
- case VALUES: return function values() { return new IteratorConstructor(this, KIND); };
1640
- case ENTRIES: return function entries() { return new IteratorConstructor(this, KIND); };
1641
- }
1642
-
1643
- return function () { return new IteratorConstructor(this); };
1644
- };
1645
-
1646
- var TO_STRING_TAG = NAME + ' Iterator';
1647
- var INCORRECT_VALUES_NAME = false;
1648
- var IterablePrototype = Iterable.prototype;
1649
- var nativeIterator = IterablePrototype[ITERATOR$4]
1650
- || IterablePrototype['@@iterator']
1651
- || DEFAULT && IterablePrototype[DEFAULT];
1652
- var defaultIterator = !BUGGY_SAFARI_ITERATORS && nativeIterator || getIterationMethod(DEFAULT);
1653
- var anyNativeIterator = NAME === 'Array' ? IterablePrototype.entries || nativeIterator : nativeIterator;
1654
- var CurrentIteratorPrototype, methods, KEY;
1655
-
1656
- // fix native
1657
- if (anyNativeIterator) {
1658
- CurrentIteratorPrototype = getPrototypeOf(anyNativeIterator.call(new Iterable()));
1659
- if (CurrentIteratorPrototype !== Object.prototype && CurrentIteratorPrototype.next) {
1660
- if (getPrototypeOf(CurrentIteratorPrototype) !== IteratorPrototype) {
1661
- if (setPrototypeOf$3) {
1662
- setPrototypeOf$3(CurrentIteratorPrototype, IteratorPrototype);
1663
- } else if (!isCallable$6(CurrentIteratorPrototype[ITERATOR$4])) {
1664
- defineBuiltIn$3(CurrentIteratorPrototype, ITERATOR$4, returnThis);
1665
- }
1666
- }
1667
- // Set @@toStringTag to native iterators
1668
- setToStringTag$2(CurrentIteratorPrototype, TO_STRING_TAG, true);
1669
- }
1670
- }
1671
-
1672
- // fix Array.prototype.{ values, @@iterator }.name in V8 / FF
1673
- if (PROPER_FUNCTION_NAME$1 && DEFAULT === VALUES && nativeIterator && nativeIterator.name !== VALUES) {
1674
- if (CONFIGURABLE_FUNCTION_NAME) {
1675
- createNonEnumerableProperty$4(IterablePrototype, 'name', VALUES);
1676
- } else {
1677
- INCORRECT_VALUES_NAME = true;
1678
- defaultIterator = function values() { return call$9(nativeIterator, this); };
1679
- }
1680
- }
1681
-
1682
- // export additional methods
1683
- if (DEFAULT) {
1684
- methods = {
1685
- values: getIterationMethod(VALUES),
1686
- keys: IS_SET ? defaultIterator : getIterationMethod(KEYS),
1687
- entries: getIterationMethod(ENTRIES)
1688
- };
1689
- if (FORCED) for (KEY in methods) {
1690
- if (BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME || !(KEY in IterablePrototype)) {
1691
- defineBuiltIn$3(IterablePrototype, KEY, methods[KEY]);
1692
- }
1693
- } else $$e({ target: NAME, proto: true, forced: BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME }, methods);
1694
- }
1695
-
1696
- // define iterator
1697
- if (IterablePrototype[ITERATOR$4] !== defaultIterator) {
1698
- defineBuiltIn$3(IterablePrototype, ITERATOR$4, defaultIterator, { name: DEFAULT });
1699
- }
1700
- Iterators$3[NAME] = defaultIterator;
1701
-
1702
- return methods;
1703
- };
1704
-
1705
- // `CreateIterResultObject` abstract operation
1706
- // https://tc39.es/ecma262/#sec-createiterresultobject
1707
- var createIterResultObject$1 = function (value, done) {
1708
- return { value: value, done: done };
1709
- };
1710
-
1711
- var toIndexedObject = toIndexedObject$5;
1712
- var addToUnscopables = addToUnscopables$1;
1713
- var Iterators$2 = iterators;
1714
- var InternalStateModule$1 = internalState;
1715
- var defineProperty$2 = objectDefineProperty.f;
1716
- var defineIterator = iteratorDefine;
1717
- var createIterResultObject = createIterResultObject$1;
1718
- var DESCRIPTORS$3 = descriptors;
1719
-
1720
- var ARRAY_ITERATOR = 'Array Iterator';
1721
- var setInternalState$1 = InternalStateModule$1.set;
1722
- var getInternalState = InternalStateModule$1.getterFor(ARRAY_ITERATOR);
1723
-
1724
- // `Array.prototype.entries` method
1725
- // https://tc39.es/ecma262/#sec-array.prototype.entries
1726
- // `Array.prototype.keys` method
1727
- // https://tc39.es/ecma262/#sec-array.prototype.keys
1728
- // `Array.prototype.values` method
1729
- // https://tc39.es/ecma262/#sec-array.prototype.values
1730
- // `Array.prototype[@@iterator]` method
1731
- // https://tc39.es/ecma262/#sec-array.prototype-@@iterator
1732
- // `CreateArrayIterator` internal method
1733
- // https://tc39.es/ecma262/#sec-createarrayiterator
1734
- var es_array_iterator = defineIterator(Array, 'Array', function (iterated, kind) {
1735
- setInternalState$1(this, {
1736
- type: ARRAY_ITERATOR,
1737
- target: toIndexedObject(iterated), // target
1738
- index: 0, // next index
1739
- kind: kind // kind
1740
- });
1741
- // `%ArrayIteratorPrototype%.next` method
1742
- // https://tc39.es/ecma262/#sec-%arrayiteratorprototype%.next
1743
- }, function () {
1744
- var state = getInternalState(this);
1745
- var target = state.target;
1746
- var index = state.index++;
1747
- if (!target || index >= target.length) {
1748
- state.target = undefined;
1749
- return createIterResultObject(undefined, true);
1750
- }
1751
- switch (state.kind) {
1752
- case 'keys': return createIterResultObject(index, false);
1753
- case 'values': return createIterResultObject(target[index], false);
1754
- } return createIterResultObject([index, target[index]], false);
1755
- }, 'values');
1756
-
1757
- // argumentsList[@@iterator] is %ArrayProto_values%
1758
- // https://tc39.es/ecma262/#sec-createunmappedargumentsobject
1759
- // https://tc39.es/ecma262/#sec-createmappedargumentsobject
1760
- var values = Iterators$2.Arguments = Iterators$2.Array;
1761
-
1762
- // https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
1763
- addToUnscopables('keys');
1764
- addToUnscopables('values');
1765
- addToUnscopables('entries');
1766
-
1767
- // V8 ~ Chrome 45- bug
1768
- if (DESCRIPTORS$3 && values.name !== 'values') try {
1769
- defineProperty$2(values, 'name', { value: 'values' });
1770
- } catch (error) { /* empty */ }
1771
-
1772
- var global$9 = global$j;
1773
- var classof$2 = classofRaw$2;
1774
-
1775
- var engineIsNode = classof$2(global$9.process) === 'process';
1776
-
1777
- var makeBuiltIn = makeBuiltInExports;
1778
- var defineProperty$1 = objectDefineProperty;
1779
-
1780
- var defineBuiltInAccessor$1 = function (target, name, descriptor) {
1781
- if (descriptor.get) makeBuiltIn(descriptor.get, name, { getter: true });
1782
- if (descriptor.set) makeBuiltIn(descriptor.set, name, { setter: true });
1783
- return defineProperty$1.f(target, name, descriptor);
1784
- };
1785
-
1786
- var getBuiltIn$5 = getBuiltIn$a;
1787
- var defineBuiltInAccessor = defineBuiltInAccessor$1;
1788
- var wellKnownSymbol$6 = wellKnownSymbol$e;
1789
- var DESCRIPTORS$2 = descriptors;
1790
-
1791
- var SPECIES$2 = wellKnownSymbol$6('species');
1792
-
1793
- var setSpecies$1 = function (CONSTRUCTOR_NAME) {
1794
- var Constructor = getBuiltIn$5(CONSTRUCTOR_NAME);
1795
-
1796
- if (DESCRIPTORS$2 && Constructor && !Constructor[SPECIES$2]) {
1797
- defineBuiltInAccessor(Constructor, SPECIES$2, {
1798
- configurable: true,
1799
- get: function () { return this; }
1800
- });
1801
- }
1802
- };
1803
-
1804
- var isPrototypeOf$3 = objectIsPrototypeOf;
1805
-
1806
- var $TypeError$6 = TypeError;
1807
-
1808
- var anInstance$1 = function (it, Prototype) {
1809
- if (isPrototypeOf$3(Prototype, it)) return it;
1810
- throw new $TypeError$6('Incorrect invocation');
1811
- };
1812
-
1813
- var uncurryThis$5 = functionUncurryThis;
1814
- var fails$4 = fails$h;
1815
- var isCallable$5 = isCallable$m;
1816
- var classof$1 = classof$5;
1817
- var getBuiltIn$4 = getBuiltIn$a;
1818
- var inspectSource$1 = inspectSource$3;
1819
-
1820
- var noop = function () { /* empty */ };
1821
- var construct = getBuiltIn$4('Reflect', 'construct');
1822
- var constructorRegExp = /^\s*(?:class|function)\b/;
1823
- var exec = uncurryThis$5(constructorRegExp.exec);
1824
- var INCORRECT_TO_STRING = !constructorRegExp.test(noop);
1825
-
1826
- var isConstructorModern = function isConstructor(argument) {
1827
- if (!isCallable$5(argument)) return false;
1828
- try {
1829
- construct(noop, [], argument);
1830
- return true;
1831
- } catch (error) {
1832
- return false;
1833
- }
1834
- };
1835
-
1836
- var isConstructorLegacy = function isConstructor(argument) {
1837
- if (!isCallable$5(argument)) return false;
1838
- switch (classof$1(argument)) {
1839
- case 'AsyncFunction':
1840
- case 'GeneratorFunction':
1841
- case 'AsyncGeneratorFunction': return false;
1842
- }
1843
- try {
1844
- // we can't check .prototype since constructors produced by .bind haven't it
1845
- // `Function#toString` throws on some built-it function in some legacy engines
1846
- // (for example, `DOMQuad` and similar in FF41-)
1847
- return INCORRECT_TO_STRING || !!exec(constructorRegExp, inspectSource$1(argument));
1848
- } catch (error) {
1849
- return true;
1850
- }
1851
- };
1852
-
1853
- isConstructorLegacy.sham = true;
1854
-
1855
- // `IsConstructor` abstract operation
1856
- // https://tc39.es/ecma262/#sec-isconstructor
1857
- var isConstructor$1 = !construct || fails$4(function () {
1858
- var called;
1859
- return isConstructorModern(isConstructorModern.call)
1860
- || !isConstructorModern(Object)
1861
- || !isConstructorModern(function () { called = true; })
1862
- || called;
1863
- }) ? isConstructorLegacy : isConstructorModern;
1864
-
1865
- var isConstructor = isConstructor$1;
1866
- var tryToString$2 = tryToString$4;
1867
-
1868
- var $TypeError$5 = TypeError;
1869
-
1870
- // `Assert: IsConstructor(argument) is true`
1871
- var aConstructor$1 = function (argument) {
1872
- if (isConstructor(argument)) return argument;
1873
- throw new $TypeError$5(tryToString$2(argument) + ' is not a constructor');
1874
- };
1875
-
1876
- var anObject$7 = anObject$c;
1877
- var aConstructor = aConstructor$1;
1878
- var isNullOrUndefined$1 = isNullOrUndefined$4;
1879
- var wellKnownSymbol$5 = wellKnownSymbol$e;
1880
-
1881
- var SPECIES$1 = wellKnownSymbol$5('species');
1882
-
1883
- // `SpeciesConstructor` abstract operation
1884
- // https://tc39.es/ecma262/#sec-speciesconstructor
1885
- var speciesConstructor$1 = function (O, defaultConstructor) {
1886
- var C = anObject$7(O).constructor;
1887
- var S;
1888
- return C === undefined || isNullOrUndefined$1(S = anObject$7(C)[SPECIES$1]) ? defaultConstructor : aConstructor(S);
1889
- };
1890
-
1891
- var classofRaw = classofRaw$2;
1892
- var uncurryThis$4 = functionUncurryThis;
1893
-
1894
- var functionUncurryThisClause = function (fn) {
1895
- // Nashorn bug:
1896
- // https://github.com/zloirock/core-js/issues/1128
1897
- // https://github.com/zloirock/core-js/issues/1130
1898
- if (classofRaw(fn) === 'Function') return uncurryThis$4(fn);
1899
- };
1900
-
1901
- var uncurryThis$3 = functionUncurryThisClause;
1902
- var aCallable$6 = aCallable$9;
1903
- var NATIVE_BIND = functionBindNative;
1904
-
1905
- var bind$4 = uncurryThis$3(uncurryThis$3.bind);
1906
-
1907
- // optional / simple context binding
1908
- var functionBindContext = function (fn, that) {
1909
- aCallable$6(fn);
1910
- return that === undefined ? fn : NATIVE_BIND ? bind$4(fn, that) : function (/* ...args */) {
1911
- return fn.apply(that, arguments);
1912
- };
1913
- };
1914
-
1915
- var $TypeError$4 = TypeError;
1916
-
1917
- var validateArgumentsLength$1 = function (passed, required) {
1918
- if (passed < required) throw new $TypeError$4('Not enough arguments');
1919
- return passed;
1920
- };
1921
-
1922
- var userAgent$2 = engineUserAgent;
1923
-
1924
- // eslint-disable-next-line redos/no-vulnerable -- safe
1925
- var engineIsIos = /(?:ipad|iphone|ipod).*applewebkit/i.test(userAgent$2);
1926
-
1927
- var global$8 = global$j;
1928
- var apply$1 = functionApply;
1929
- var bind$3 = functionBindContext;
1930
- var isCallable$4 = isCallable$m;
1931
- var hasOwn$2 = hasOwnProperty_1;
1932
- var fails$3 = fails$h;
1933
- var html = html$2;
1934
- var arraySlice = arraySlice$2;
1935
- var createElement = documentCreateElement$2;
1936
- var validateArgumentsLength = validateArgumentsLength$1;
1937
- var IS_IOS$1 = engineIsIos;
1938
- var IS_NODE$3 = engineIsNode;
1939
-
1940
- var set = global$8.setImmediate;
1941
- var clear = global$8.clearImmediate;
1942
- var process$2 = global$8.process;
1943
- var Dispatch = global$8.Dispatch;
1944
- var Function$1 = global$8.Function;
1945
- var MessageChannel = global$8.MessageChannel;
1946
- var String$1 = global$8.String;
1947
- var counter = 0;
1948
- var queue$2 = {};
1949
- var ONREADYSTATECHANGE = 'onreadystatechange';
1950
- var $location, defer, channel, port;
1951
-
1952
- fails$3(function () {
1953
- // Deno throws a ReferenceError on `location` access without `--location` flag
1954
- $location = global$8.location;
1955
- });
1956
-
1957
- var run = function (id) {
1958
- if (hasOwn$2(queue$2, id)) {
1959
- var fn = queue$2[id];
1960
- delete queue$2[id];
1961
- fn();
1962
- }
1963
- };
1964
-
1965
- var runner = function (id) {
1966
- return function () {
1967
- run(id);
1968
- };
1969
- };
1970
-
1971
- var eventListener = function (event) {
1972
- run(event.data);
1973
- };
1974
-
1975
- var globalPostMessageDefer = function (id) {
1976
- // old engines have not location.origin
1977
- global$8.postMessage(String$1(id), $location.protocol + '//' + $location.host);
1978
- };
1979
-
1980
- // Node.js 0.9+ & IE10+ has setImmediate, otherwise:
1981
- if (!set || !clear) {
1982
- set = function setImmediate(handler) {
1983
- validateArgumentsLength(arguments.length, 1);
1984
- var fn = isCallable$4(handler) ? handler : Function$1(handler);
1985
- var args = arraySlice(arguments, 1);
1986
- queue$2[++counter] = function () {
1987
- apply$1(fn, undefined, args);
1988
- };
1989
- defer(counter);
1990
- return counter;
1991
- };
1992
- clear = function clearImmediate(id) {
1993
- delete queue$2[id];
1994
- };
1995
- // Node.js 0.8-
1996
- if (IS_NODE$3) {
1997
- defer = function (id) {
1998
- process$2.nextTick(runner(id));
1999
- };
2000
- // Sphere (JS game engine) Dispatch API
2001
- } else if (Dispatch && Dispatch.now) {
2002
- defer = function (id) {
2003
- Dispatch.now(runner(id));
2004
- };
2005
- // Browsers with MessageChannel, includes WebWorkers
2006
- // except iOS - https://github.com/zloirock/core-js/issues/624
2007
- } else if (MessageChannel && !IS_IOS$1) {
2008
- channel = new MessageChannel();
2009
- port = channel.port2;
2010
- channel.port1.onmessage = eventListener;
2011
- defer = bind$3(port.postMessage, port);
2012
- // Browsers with postMessage, skip WebWorkers
2013
- // IE8 has postMessage, but it's sync & typeof its postMessage is 'object'
2014
- } else if (
2015
- global$8.addEventListener &&
2016
- isCallable$4(global$8.postMessage) &&
2017
- !global$8.importScripts &&
2018
- $location && $location.protocol !== 'file:' &&
2019
- !fails$3(globalPostMessageDefer)
2020
- ) {
2021
- defer = globalPostMessageDefer;
2022
- global$8.addEventListener('message', eventListener, false);
2023
- // IE8-
2024
- } else if (ONREADYSTATECHANGE in createElement('script')) {
2025
- defer = function (id) {
2026
- html.appendChild(createElement('script'))[ONREADYSTATECHANGE] = function () {
2027
- html.removeChild(this);
2028
- run(id);
2029
- };
2030
- };
2031
- // Rest old browsers
2032
- } else {
2033
- defer = function (id) {
2034
- setTimeout(runner(id), 0);
2035
- };
2036
- }
2037
- }
2038
-
2039
- var task$1 = {
2040
- set: set,
2041
- clear: clear
2042
- };
2043
-
2044
- var global$7 = global$j;
2045
- var DESCRIPTORS$1 = descriptors;
2046
-
2047
- // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
2048
- var getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
2049
-
2050
- // Avoid NodeJS experimental warning
2051
- var safeGetBuiltIn$1 = function (name) {
2052
- if (!DESCRIPTORS$1) return global$7[name];
2053
- var descriptor = getOwnPropertyDescriptor(global$7, name);
2054
- return descriptor && descriptor.value;
2055
- };
2056
-
2057
- var Queue$2 = function () {
2058
- this.head = null;
2059
- this.tail = null;
2060
- };
2061
-
2062
- Queue$2.prototype = {
2063
- add: function (item) {
2064
- var entry = { item: item, next: null };
2065
- var tail = this.tail;
2066
- if (tail) tail.next = entry;
2067
- else this.head = entry;
2068
- this.tail = entry;
2069
- },
2070
- get: function () {
2071
- var entry = this.head;
2072
- if (entry) {
2073
- var next = this.head = entry.next;
2074
- if (next === null) this.tail = null;
2075
- return entry.item;
2076
- }
2077
- }
2078
- };
2079
-
2080
- var queue$1 = Queue$2;
2081
-
2082
- var userAgent$1 = engineUserAgent;
2083
-
2084
- var engineIsIosPebble = /ipad|iphone|ipod/i.test(userAgent$1) && typeof Pebble != 'undefined';
2085
-
2086
- var userAgent = engineUserAgent;
2087
-
2088
- var engineIsWebosWebkit = /web0s(?!.*chrome)/i.test(userAgent);
2089
-
2090
- var global$6 = global$j;
2091
- var safeGetBuiltIn = safeGetBuiltIn$1;
2092
- var bind$2 = functionBindContext;
2093
- var macrotask = task$1.set;
2094
- var Queue$1 = queue$1;
2095
- var IS_IOS = engineIsIos;
2096
- var IS_IOS_PEBBLE = engineIsIosPebble;
2097
- var IS_WEBOS_WEBKIT = engineIsWebosWebkit;
2098
- var IS_NODE$2 = engineIsNode;
2099
-
2100
- var MutationObserver = global$6.MutationObserver || global$6.WebKitMutationObserver;
2101
- var document$2 = global$6.document;
2102
- var process$1 = global$6.process;
2103
- var Promise$1 = global$6.Promise;
2104
- var microtask$1 = safeGetBuiltIn('queueMicrotask');
2105
- var notify$1, toggle, node, promise, then;
2106
-
2107
- // modern engines have queueMicrotask method
2108
- if (!microtask$1) {
2109
- var queue = new Queue$1();
2110
-
2111
- var flush = function () {
2112
- var parent, fn;
2113
- if (IS_NODE$2 && (parent = process$1.domain)) parent.exit();
2114
- while (fn = queue.get()) try {
2115
- fn();
2116
- } catch (error) {
2117
- if (queue.head) notify$1();
2118
- throw error;
2119
- }
2120
- if (parent) parent.enter();
2121
- };
2122
-
2123
- // browsers with MutationObserver, except iOS - https://github.com/zloirock/core-js/issues/339
2124
- // also except WebOS Webkit https://github.com/zloirock/core-js/issues/898
2125
- if (!IS_IOS && !IS_NODE$2 && !IS_WEBOS_WEBKIT && MutationObserver && document$2) {
2126
- toggle = true;
2127
- node = document$2.createTextNode('');
2128
- new MutationObserver(flush).observe(node, { characterData: true });
2129
- notify$1 = function () {
2130
- node.data = toggle = !toggle;
2131
- };
2132
- // environments with maybe non-completely correct, but existent Promise
2133
- } else if (!IS_IOS_PEBBLE && Promise$1 && Promise$1.resolve) {
2134
- // Promise.resolve without an argument throws an error in LG WebOS 2
2135
- promise = Promise$1.resolve(undefined);
2136
- // workaround of WebKit ~ iOS Safari 10.1 bug
2137
- promise.constructor = Promise$1;
2138
- then = bind$2(promise.then, promise);
2139
- notify$1 = function () {
2140
- then(flush);
2141
- };
2142
- // Node.js without promises
2143
- } else if (IS_NODE$2) {
2144
- notify$1 = function () {
2145
- process$1.nextTick(flush);
2146
- };
2147
- // for other environments - macrotask based on:
2148
- // - setImmediate
2149
- // - MessageChannel
2150
- // - window.postMessage
2151
- // - onreadystatechange
2152
- // - setTimeout
2153
- } else {
2154
- // `webpack` dev server bug on IE global methods - use bind(fn, global)
2155
- macrotask = bind$2(macrotask, global$6);
2156
- notify$1 = function () {
2157
- macrotask(flush);
2158
- };
2159
- }
2160
-
2161
- microtask$1 = function (fn) {
2162
- if (!queue.head) notify$1();
2163
- queue.add(fn);
2164
- };
2165
- }
2166
-
2167
- var microtask_1 = microtask$1;
2168
-
2169
- var hostReportErrors$1 = function (a, b) {
2170
- try {
2171
- // eslint-disable-next-line no-console -- safe
2172
- arguments.length === 1 ? console.error(a) : console.error(a, b);
2173
- } catch (error) { /* empty */ }
2174
- };
2175
-
2176
- var perform$3 = function (exec) {
2177
- try {
2178
- return { error: false, value: exec() };
2179
- } catch (error) {
2180
- return { error: true, value: error };
2181
- }
2182
- };
2183
-
2184
- var global$5 = global$j;
2185
-
2186
- var promiseNativeConstructor = global$5.Promise;
2187
-
2188
- /* global Deno -- Deno case */
2189
- var engineIsDeno = typeof Deno == 'object' && Deno && typeof Deno.version == 'object';
2190
-
2191
- var IS_DENO$1 = engineIsDeno;
2192
- var IS_NODE$1 = engineIsNode;
2193
-
2194
- var engineIsBrowser = !IS_DENO$1 && !IS_NODE$1
2195
- && typeof window == 'object'
2196
- && typeof document == 'object';
2197
-
2198
- var global$4 = global$j;
2199
- var NativePromiseConstructor$3 = promiseNativeConstructor;
2200
- var isCallable$3 = isCallable$m;
2201
- var isForced = isForced_1;
2202
- var inspectSource = inspectSource$3;
2203
- var wellKnownSymbol$4 = wellKnownSymbol$e;
2204
- var IS_BROWSER = engineIsBrowser;
2205
- var IS_DENO = engineIsDeno;
2206
- var V8_VERSION = engineV8Version;
2207
-
2208
- NativePromiseConstructor$3 && NativePromiseConstructor$3.prototype;
2209
- var SPECIES = wellKnownSymbol$4('species');
2210
- var SUBCLASSING = false;
2211
- var NATIVE_PROMISE_REJECTION_EVENT$1 = isCallable$3(global$4.PromiseRejectionEvent);
2212
-
2213
- var FORCED_PROMISE_CONSTRUCTOR$5 = isForced('Promise', function () {
2214
- var PROMISE_CONSTRUCTOR_SOURCE = inspectSource(NativePromiseConstructor$3);
2215
- var GLOBAL_CORE_JS_PROMISE = PROMISE_CONSTRUCTOR_SOURCE !== String(NativePromiseConstructor$3);
2216
- // V8 6.6 (Node 10 and Chrome 66) have a bug with resolving custom thenables
2217
- // https://bugs.chromium.org/p/chromium/issues/detail?id=830565
2218
- // We can't detect it synchronously, so just check versions
2219
- if (!GLOBAL_CORE_JS_PROMISE && V8_VERSION === 66) return true;
2220
- // We can't use @@species feature detection in V8 since it causes
2221
- // deoptimization and performance degradation
2222
- // https://github.com/zloirock/core-js/issues/679
2223
- if (!V8_VERSION || V8_VERSION < 51 || !/native code/.test(PROMISE_CONSTRUCTOR_SOURCE)) {
2224
- // Detect correctness of subclassing with @@species support
2225
- var promise = new NativePromiseConstructor$3(function (resolve) { resolve(1); });
2226
- var FakePromise = function (exec) {
2227
- exec(function () { /* empty */ }, function () { /* empty */ });
2228
- };
2229
- var constructor = promise.constructor = {};
2230
- constructor[SPECIES] = FakePromise;
2231
- SUBCLASSING = promise.then(function () { /* empty */ }) instanceof FakePromise;
2232
- if (!SUBCLASSING) return true;
2233
- // Unhandled rejections tracking support, NodeJS Promise without it fails @@species test
2234
- } return !GLOBAL_CORE_JS_PROMISE && (IS_BROWSER || IS_DENO) && !NATIVE_PROMISE_REJECTION_EVENT$1;
2235
- });
2236
-
2237
- var promiseConstructorDetection = {
2238
- CONSTRUCTOR: FORCED_PROMISE_CONSTRUCTOR$5,
2239
- REJECTION_EVENT: NATIVE_PROMISE_REJECTION_EVENT$1,
2240
- SUBCLASSING: SUBCLASSING
2241
- };
2242
-
2243
- var newPromiseCapability$2 = {};
2244
-
2245
- var aCallable$5 = aCallable$9;
2246
-
2247
- var $TypeError$3 = TypeError;
2248
-
2249
- var PromiseCapability = function (C) {
2250
- var resolve, reject;
2251
- this.promise = new C(function ($$resolve, $$reject) {
2252
- if (resolve !== undefined || reject !== undefined) throw new $TypeError$3('Bad Promise constructor');
2253
- resolve = $$resolve;
2254
- reject = $$reject;
2255
- });
2256
- this.resolve = aCallable$5(resolve);
2257
- this.reject = aCallable$5(reject);
2258
- };
2259
-
2260
- // `NewPromiseCapability` abstract operation
2261
- // https://tc39.es/ecma262/#sec-newpromisecapability
2262
- newPromiseCapability$2.f = function (C) {
2263
- return new PromiseCapability(C);
2264
- };
2265
-
2266
- var $$d = _export;
2267
- var IS_NODE = engineIsNode;
2268
- var global$3 = global$j;
2269
- var call$8 = functionCall;
2270
- var defineBuiltIn$2 = defineBuiltIn$6;
2271
- var setPrototypeOf$2 = objectSetPrototypeOf;
2272
- var setToStringTag$1 = setToStringTag$4;
2273
- var setSpecies = setSpecies$1;
2274
- var aCallable$4 = aCallable$9;
2275
- var isCallable$2 = isCallable$m;
2276
- var isObject$3 = isObject$c;
2277
- var anInstance = anInstance$1;
2278
- var speciesConstructor = speciesConstructor$1;
2279
- var task = task$1.set;
2280
- var microtask = microtask_1;
2281
- var hostReportErrors = hostReportErrors$1;
2282
- var perform$2 = perform$3;
2283
- var Queue = queue$1;
2284
- var InternalStateModule = internalState;
2285
- var NativePromiseConstructor$2 = promiseNativeConstructor;
2286
- var PromiseConstructorDetection = promiseConstructorDetection;
2287
- var newPromiseCapabilityModule$3 = newPromiseCapability$2;
2288
-
2289
- var PROMISE = 'Promise';
2290
- var FORCED_PROMISE_CONSTRUCTOR$4 = PromiseConstructorDetection.CONSTRUCTOR;
2291
- var NATIVE_PROMISE_REJECTION_EVENT = PromiseConstructorDetection.REJECTION_EVENT;
2292
- var NATIVE_PROMISE_SUBCLASSING = PromiseConstructorDetection.SUBCLASSING;
2293
- var getInternalPromiseState = InternalStateModule.getterFor(PROMISE);
2294
- var setInternalState = InternalStateModule.set;
2295
- var NativePromisePrototype$1 = NativePromiseConstructor$2 && NativePromiseConstructor$2.prototype;
2296
- var PromiseConstructor = NativePromiseConstructor$2;
2297
- var PromisePrototype = NativePromisePrototype$1;
2298
- var TypeError$1 = global$3.TypeError;
2299
- var document$1 = global$3.document;
2300
- var process = global$3.process;
2301
- var newPromiseCapability$1 = newPromiseCapabilityModule$3.f;
2302
- var newGenericPromiseCapability = newPromiseCapability$1;
2303
-
2304
- var DISPATCH_EVENT = !!(document$1 && document$1.createEvent && global$3.dispatchEvent);
2305
- var UNHANDLED_REJECTION = 'unhandledrejection';
2306
- var REJECTION_HANDLED = 'rejectionhandled';
2307
- var PENDING = 0;
2308
- var FULFILLED = 1;
2309
- var REJECTED = 2;
2310
- var HANDLED = 1;
2311
- var UNHANDLED = 2;
2312
-
2313
- var Internal, OwnPromiseCapability, PromiseWrapper, nativeThen;
2314
-
2315
- // helpers
2316
- var isThenable = function (it) {
2317
- var then;
2318
- return isObject$3(it) && isCallable$2(then = it.then) ? then : false;
2319
- };
2320
-
2321
- var callReaction = function (reaction, state) {
2322
- var value = state.value;
2323
- var ok = state.state === FULFILLED;
2324
- var handler = ok ? reaction.ok : reaction.fail;
2325
- var resolve = reaction.resolve;
2326
- var reject = reaction.reject;
2327
- var domain = reaction.domain;
2328
- var result, then, exited;
2329
- try {
2330
- if (handler) {
2331
- if (!ok) {
2332
- if (state.rejection === UNHANDLED) onHandleUnhandled(state);
2333
- state.rejection = HANDLED;
2334
- }
2335
- if (handler === true) result = value;
2336
- else {
2337
- if (domain) domain.enter();
2338
- result = handler(value); // can throw
2339
- if (domain) {
2340
- domain.exit();
2341
- exited = true;
2342
- }
2343
- }
2344
- if (result === reaction.promise) {
2345
- reject(new TypeError$1('Promise-chain cycle'));
2346
- } else if (then = isThenable(result)) {
2347
- call$8(then, result, resolve, reject);
2348
- } else resolve(result);
2349
- } else reject(value);
2350
- } catch (error) {
2351
- if (domain && !exited) domain.exit();
2352
- reject(error);
2353
- }
2354
- };
2355
-
2356
- var notify = function (state, isReject) {
2357
- if (state.notified) return;
2358
- state.notified = true;
2359
- microtask(function () {
2360
- var reactions = state.reactions;
2361
- var reaction;
2362
- while (reaction = reactions.get()) {
2363
- callReaction(reaction, state);
2364
- }
2365
- state.notified = false;
2366
- if (isReject && !state.rejection) onUnhandled(state);
2367
- });
2368
- };
2369
-
2370
- var dispatchEvent = function (name, promise, reason) {
2371
- var event, handler;
2372
- if (DISPATCH_EVENT) {
2373
- event = document$1.createEvent('Event');
2374
- event.promise = promise;
2375
- event.reason = reason;
2376
- event.initEvent(name, false, true);
2377
- global$3.dispatchEvent(event);
2378
- } else event = { promise: promise, reason: reason };
2379
- if (!NATIVE_PROMISE_REJECTION_EVENT && (handler = global$3['on' + name])) handler(event);
2380
- else if (name === UNHANDLED_REJECTION) hostReportErrors('Unhandled promise rejection', reason);
2381
- };
2382
-
2383
- var onUnhandled = function (state) {
2384
- call$8(task, global$3, function () {
2385
- var promise = state.facade;
2386
- var value = state.value;
2387
- var IS_UNHANDLED = isUnhandled(state);
2388
- var result;
2389
- if (IS_UNHANDLED) {
2390
- result = perform$2(function () {
2391
- if (IS_NODE) {
2392
- process.emit('unhandledRejection', value, promise);
2393
- } else dispatchEvent(UNHANDLED_REJECTION, promise, value);
2394
- });
2395
- // Browsers should not trigger `rejectionHandled` event if it was handled here, NodeJS - should
2396
- state.rejection = IS_NODE || isUnhandled(state) ? UNHANDLED : HANDLED;
2397
- if (result.error) throw result.value;
2398
- }
2399
- });
2400
- };
2401
-
2402
- var isUnhandled = function (state) {
2403
- return state.rejection !== HANDLED && !state.parent;
2404
- };
2405
-
2406
- var onHandleUnhandled = function (state) {
2407
- call$8(task, global$3, function () {
2408
- var promise = state.facade;
2409
- if (IS_NODE) {
2410
- process.emit('rejectionHandled', promise);
2411
- } else dispatchEvent(REJECTION_HANDLED, promise, state.value);
2412
- });
2413
- };
2414
-
2415
- var bind$1 = function (fn, state, unwrap) {
2416
- return function (value) {
2417
- fn(state, value, unwrap);
2418
- };
2419
- };
2420
-
2421
- var internalReject = function (state, value, unwrap) {
2422
- if (state.done) return;
2423
- state.done = true;
2424
- if (unwrap) state = unwrap;
2425
- state.value = value;
2426
- state.state = REJECTED;
2427
- notify(state, true);
2428
- };
2429
-
2430
- var internalResolve = function (state, value, unwrap) {
2431
- if (state.done) return;
2432
- state.done = true;
2433
- if (unwrap) state = unwrap;
2434
- try {
2435
- if (state.facade === value) throw new TypeError$1("Promise can't be resolved itself");
2436
- var then = isThenable(value);
2437
- if (then) {
2438
- microtask(function () {
2439
- var wrapper = { done: false };
2440
- try {
2441
- call$8(then, value,
2442
- bind$1(internalResolve, wrapper, state),
2443
- bind$1(internalReject, wrapper, state)
2444
- );
2445
- } catch (error) {
2446
- internalReject(wrapper, error, state);
2447
- }
2448
- });
2449
- } else {
2450
- state.value = value;
2451
- state.state = FULFILLED;
2452
- notify(state, false);
2453
- }
2454
- } catch (error) {
2455
- internalReject({ done: false }, error, state);
2456
- }
2457
- };
2458
-
2459
- // constructor polyfill
2460
- if (FORCED_PROMISE_CONSTRUCTOR$4) {
2461
- // 25.4.3.1 Promise(executor)
2462
- PromiseConstructor = function Promise(executor) {
2463
- anInstance(this, PromisePrototype);
2464
- aCallable$4(executor);
2465
- call$8(Internal, this);
2466
- var state = getInternalPromiseState(this);
2467
- try {
2468
- executor(bind$1(internalResolve, state), bind$1(internalReject, state));
2469
- } catch (error) {
2470
- internalReject(state, error);
2471
- }
2472
- };
2473
-
2474
- PromisePrototype = PromiseConstructor.prototype;
2475
-
2476
- // eslint-disable-next-line no-unused-vars -- required for `.length`
2477
- Internal = function Promise(executor) {
2478
- setInternalState(this, {
2479
- type: PROMISE,
2480
- done: false,
2481
- notified: false,
2482
- parent: false,
2483
- reactions: new Queue(),
2484
- rejection: false,
2485
- state: PENDING,
2486
- value: undefined
2487
- });
2488
- };
2489
-
2490
- // `Promise.prototype.then` method
2491
- // https://tc39.es/ecma262/#sec-promise.prototype.then
2492
- Internal.prototype = defineBuiltIn$2(PromisePrototype, 'then', function then(onFulfilled, onRejected) {
2493
- var state = getInternalPromiseState(this);
2494
- var reaction = newPromiseCapability$1(speciesConstructor(this, PromiseConstructor));
2495
- state.parent = true;
2496
- reaction.ok = isCallable$2(onFulfilled) ? onFulfilled : true;
2497
- reaction.fail = isCallable$2(onRejected) && onRejected;
2498
- reaction.domain = IS_NODE ? process.domain : undefined;
2499
- if (state.state === PENDING) state.reactions.add(reaction);
2500
- else microtask(function () {
2501
- callReaction(reaction, state);
2502
- });
2503
- return reaction.promise;
2504
- });
2505
-
2506
- OwnPromiseCapability = function () {
2507
- var promise = new Internal();
2508
- var state = getInternalPromiseState(promise);
2509
- this.promise = promise;
2510
- this.resolve = bind$1(internalResolve, state);
2511
- this.reject = bind$1(internalReject, state);
2512
- };
2513
-
2514
- newPromiseCapabilityModule$3.f = newPromiseCapability$1 = function (C) {
2515
- return C === PromiseConstructor || C === PromiseWrapper
2516
- ? new OwnPromiseCapability(C)
2517
- : newGenericPromiseCapability(C);
2518
- };
2519
-
2520
- if (isCallable$2(NativePromiseConstructor$2) && NativePromisePrototype$1 !== Object.prototype) {
2521
- nativeThen = NativePromisePrototype$1.then;
2522
-
2523
- if (!NATIVE_PROMISE_SUBCLASSING) {
2524
- // make `Promise#then` return a polyfilled `Promise` for native promise-based APIs
2525
- defineBuiltIn$2(NativePromisePrototype$1, 'then', function then(onFulfilled, onRejected) {
2526
- var that = this;
2527
- return new PromiseConstructor(function (resolve, reject) {
2528
- call$8(nativeThen, that, resolve, reject);
2529
- }).then(onFulfilled, onRejected);
2530
- // https://github.com/zloirock/core-js/issues/640
2531
- }, { unsafe: true });
2532
- }
2533
-
2534
- // make `.constructor === Promise` work for native promise-based APIs
2535
- try {
2536
- delete NativePromisePrototype$1.constructor;
2537
- } catch (error) { /* empty */ }
2538
-
2539
- // make `instanceof Promise` work for native promise-based APIs
2540
- if (setPrototypeOf$2) {
2541
- setPrototypeOf$2(NativePromisePrototype$1, PromisePrototype);
2542
- }
2543
- }
2544
- }
2545
-
2546
- $$d({ global: true, constructor: true, wrap: true, forced: FORCED_PROMISE_CONSTRUCTOR$4 }, {
2547
- Promise: PromiseConstructor
2548
- });
2549
-
2550
- setToStringTag$1(PromiseConstructor, PROMISE, false);
2551
- setSpecies(PROMISE);
2552
-
2553
- var wellKnownSymbol$3 = wellKnownSymbol$e;
2554
- var Iterators$1 = iterators;
2555
-
2556
- var ITERATOR$3 = wellKnownSymbol$3('iterator');
2557
- var ArrayPrototype = Array.prototype;
2558
-
2559
- // check on default Array iterator
2560
- var isArrayIteratorMethod$1 = function (it) {
2561
- return it !== undefined && (Iterators$1.Array === it || ArrayPrototype[ITERATOR$3] === it);
2562
- };
2563
-
2564
- var classof = classof$5;
2565
- var getMethod$1 = getMethod$3;
2566
- var isNullOrUndefined = isNullOrUndefined$4;
2567
- var Iterators = iterators;
2568
- var wellKnownSymbol$2 = wellKnownSymbol$e;
2569
-
2570
- var ITERATOR$2 = wellKnownSymbol$2('iterator');
2571
-
2572
- var getIteratorMethod$2 = function (it) {
2573
- if (!isNullOrUndefined(it)) return getMethod$1(it, ITERATOR$2)
2574
- || getMethod$1(it, '@@iterator')
2575
- || Iterators[classof(it)];
2576
- };
2577
-
2578
- var call$7 = functionCall;
2579
- var aCallable$3 = aCallable$9;
2580
- var anObject$6 = anObject$c;
2581
- var tryToString$1 = tryToString$4;
2582
- var getIteratorMethod$1 = getIteratorMethod$2;
2583
-
2584
- var $TypeError$2 = TypeError;
2585
-
2586
- var getIterator$1 = function (argument, usingIterator) {
2587
- var iteratorMethod = arguments.length < 2 ? getIteratorMethod$1(argument) : usingIterator;
2588
- if (aCallable$3(iteratorMethod)) return anObject$6(call$7(iteratorMethod, argument));
2589
- throw new $TypeError$2(tryToString$1(argument) + ' is not iterable');
2590
- };
2591
-
2592
- var call$6 = functionCall;
2593
- var anObject$5 = anObject$c;
2594
- var getMethod = getMethod$3;
2595
-
2596
- var iteratorClose$3 = function (iterator, kind, value) {
2597
- var innerResult, innerError;
2598
- anObject$5(iterator);
2599
- try {
2600
- innerResult = getMethod(iterator, 'return');
2601
- if (!innerResult) {
2602
- if (kind === 'throw') throw value;
2603
- return value;
2604
- }
2605
- innerResult = call$6(innerResult, iterator);
2606
- } catch (error) {
2607
- innerError = true;
2608
- innerResult = error;
2609
- }
2610
- if (kind === 'throw') throw value;
2611
- if (innerError) throw innerResult;
2612
- anObject$5(innerResult);
2613
- return value;
2614
- };
921
+ // IE8- don't enum bug keys
922
+ var enumBugKeys$1 = [
923
+ 'constructor',
924
+ 'hasOwnProperty',
925
+ 'isPrototypeOf',
926
+ 'propertyIsEnumerable',
927
+ 'toLocaleString',
928
+ 'toString',
929
+ 'valueOf'
930
+ ];
2615
931
 
2616
- var bind = functionBindContext;
2617
- var call$5 = functionCall;
2618
- var anObject$4 = anObject$c;
2619
- var tryToString = tryToString$4;
2620
- var isArrayIteratorMethod = isArrayIteratorMethod$1;
2621
- var lengthOfArrayLike = lengthOfArrayLike$2;
2622
- var isPrototypeOf$2 = objectIsPrototypeOf;
2623
- var getIterator = getIterator$1;
2624
- var getIteratorMethod = getIteratorMethod$2;
2625
- var iteratorClose$2 = iteratorClose$3;
932
+ var internalObjectKeys = objectKeysInternal;
933
+ var enumBugKeys = enumBugKeys$1;
2626
934
 
2627
- var $TypeError$1 = TypeError;
935
+ var hiddenKeys = enumBugKeys.concat('length', 'prototype');
2628
936
 
2629
- var Result = function (stopped, result) {
2630
- this.stopped = stopped;
2631
- this.result = result;
937
+ // `Object.getOwnPropertyNames` method
938
+ // https://tc39.es/ecma262/#sec-object.getownpropertynames
939
+ // eslint-disable-next-line es/no-object-getownpropertynames -- safe
940
+ objectGetOwnPropertyNames.f = Object.getOwnPropertyNames || function getOwnPropertyNames(O) {
941
+ return internalObjectKeys(O, hiddenKeys);
2632
942
  };
2633
943
 
2634
- var ResultPrototype = Result.prototype;
2635
-
2636
- var iterate$4 = function (iterable, unboundFunction, options) {
2637
- var that = options && options.that;
2638
- var AS_ENTRIES = !!(options && options.AS_ENTRIES);
2639
- var IS_RECORD = !!(options && options.IS_RECORD);
2640
- var IS_ITERATOR = !!(options && options.IS_ITERATOR);
2641
- var INTERRUPTED = !!(options && options.INTERRUPTED);
2642
- var fn = bind(unboundFunction, that);
2643
- var iterator, iterFn, index, length, result, next, step;
944
+ var objectGetOwnPropertySymbols = {};
2644
945
 
2645
- var stop = function (condition) {
2646
- if (iterator) iteratorClose$2(iterator, 'normal', condition);
2647
- return new Result(true, condition);
2648
- };
946
+ // eslint-disable-next-line es/no-object-getownpropertysymbols -- safe
947
+ objectGetOwnPropertySymbols.f = Object.getOwnPropertySymbols;
2649
948
 
2650
- var callFn = function (value) {
2651
- if (AS_ENTRIES) {
2652
- anObject$4(value);
2653
- return INTERRUPTED ? fn(value[0], value[1], stop) : fn(value[0], value[1]);
2654
- } return INTERRUPTED ? fn(value, stop) : fn(value);
2655
- };
949
+ var getBuiltIn$1 = getBuiltIn$3;
950
+ var uncurryThis$3 = functionUncurryThis;
951
+ var getOwnPropertyNamesModule = objectGetOwnPropertyNames;
952
+ var getOwnPropertySymbolsModule = objectGetOwnPropertySymbols;
953
+ var anObject$2 = anObject$4;
2656
954
 
2657
- if (IS_RECORD) {
2658
- iterator = iterable.iterator;
2659
- } else if (IS_ITERATOR) {
2660
- iterator = iterable;
2661
- } else {
2662
- iterFn = getIteratorMethod(iterable);
2663
- if (!iterFn) throw new $TypeError$1(tryToString(iterable) + ' is not iterable');
2664
- // optimisation for array iterators
2665
- if (isArrayIteratorMethod(iterFn)) {
2666
- for (index = 0, length = lengthOfArrayLike(iterable); length > index; index++) {
2667
- result = callFn(iterable[index]);
2668
- if (result && isPrototypeOf$2(ResultPrototype, result)) return result;
2669
- } return new Result(false);
2670
- }
2671
- iterator = getIterator(iterable, iterFn);
2672
- }
955
+ var concat = uncurryThis$3([].concat);
2673
956
 
2674
- next = IS_RECORD ? iterable.next : iterator.next;
2675
- while (!(step = call$5(next, iterator)).done) {
2676
- try {
2677
- result = callFn(step.value);
2678
- } catch (error) {
2679
- iteratorClose$2(iterator, 'throw', error);
2680
- }
2681
- if (typeof result == 'object' && result && isPrototypeOf$2(ResultPrototype, result)) return result;
2682
- } return new Result(false);
957
+ // all object keys, includes non-enumerable and symbols
958
+ var ownKeys$1 = getBuiltIn$1('Reflect', 'ownKeys') || function ownKeys(it) {
959
+ var keys = getOwnPropertyNamesModule.f(anObject$2(it));
960
+ var getOwnPropertySymbols = getOwnPropertySymbolsModule.f;
961
+ return getOwnPropertySymbols ? concat(keys, getOwnPropertySymbols(it)) : keys;
2683
962
  };
2684
963
 
2685
- var wellKnownSymbol$1 = wellKnownSymbol$e;
2686
-
2687
- var ITERATOR$1 = wellKnownSymbol$1('iterator');
2688
- var SAFE_CLOSING = false;
964
+ var hasOwn = hasOwnProperty_1;
965
+ var ownKeys = ownKeys$1;
966
+ var getOwnPropertyDescriptorModule = objectGetOwnPropertyDescriptor;
967
+ var definePropertyModule = objectDefineProperty;
2689
968
 
2690
- try {
2691
- var called = 0;
2692
- var iteratorWithReturn = {
2693
- next: function () {
2694
- return { done: !!called++ };
2695
- },
2696
- 'return': function () {
2697
- SAFE_CLOSING = true;
969
+ var copyConstructorProperties$1 = function (target, source, exceptions) {
970
+ var keys = ownKeys(source);
971
+ var defineProperty = definePropertyModule.f;
972
+ var getOwnPropertyDescriptor = getOwnPropertyDescriptorModule.f;
973
+ for (var i = 0; i < keys.length; i++) {
974
+ var key = keys[i];
975
+ if (!hasOwn(target, key) && !(exceptions && hasOwn(exceptions, key))) {
976
+ defineProperty(target, key, getOwnPropertyDescriptor(source, key));
2698
977
  }
2699
- };
2700
- iteratorWithReturn[ITERATOR$1] = function () {
2701
- return this;
2702
- };
2703
- // eslint-disable-next-line es/no-array-from, no-throw-literal -- required for testing
2704
- Array.from(iteratorWithReturn, function () { throw 2; });
2705
- } catch (error) { /* empty */ }
2706
-
2707
- var checkCorrectnessOfIteration$1 = function (exec, SKIP_CLOSING) {
2708
- try {
2709
- if (!SKIP_CLOSING && !SAFE_CLOSING) return false;
2710
- } catch (error) { return false; } // workaround of old WebKit + `eval` bug
2711
- var ITERATION_SUPPORT = false;
2712
- try {
2713
- var object = {};
2714
- object[ITERATOR$1] = function () {
2715
- return {
2716
- next: function () {
2717
- return { done: ITERATION_SUPPORT = true };
2718
- }
2719
- };
2720
- };
2721
- exec(object);
2722
- } catch (error) { /* empty */ }
2723
- return ITERATION_SUPPORT;
978
+ }
2724
979
  };
2725
980
 
2726
- var NativePromiseConstructor$1 = promiseNativeConstructor;
2727
- var checkCorrectnessOfIteration = checkCorrectnessOfIteration$1;
2728
- var FORCED_PROMISE_CONSTRUCTOR$3 = promiseConstructorDetection.CONSTRUCTOR;
981
+ var fails$1 = fails$9;
982
+ var isCallable = isCallable$a;
2729
983
 
2730
- var promiseStaticsIncorrectIteration = FORCED_PROMISE_CONSTRUCTOR$3 || !checkCorrectnessOfIteration(function (iterable) {
2731
- NativePromiseConstructor$1.all(iterable).then(undefined, function () { /* empty */ });
2732
- });
984
+ var replacement = /#|\.prototype\./;
2733
985
 
2734
- var $$c = _export;
2735
- var call$4 = functionCall;
2736
- var aCallable$2 = aCallable$9;
2737
- var newPromiseCapabilityModule$2 = newPromiseCapability$2;
2738
- var perform$1 = perform$3;
2739
- var iterate$3 = iterate$4;
2740
- var PROMISE_STATICS_INCORRECT_ITERATION$1 = promiseStaticsIncorrectIteration;
2741
-
2742
- // `Promise.all` method
2743
- // https://tc39.es/ecma262/#sec-promise.all
2744
- $$c({ target: 'Promise', stat: true, forced: PROMISE_STATICS_INCORRECT_ITERATION$1 }, {
2745
- all: function all(iterable) {
2746
- var C = this;
2747
- var capability = newPromiseCapabilityModule$2.f(C);
2748
- var resolve = capability.resolve;
2749
- var reject = capability.reject;
2750
- var result = perform$1(function () {
2751
- var $promiseResolve = aCallable$2(C.resolve);
2752
- var values = [];
2753
- var counter = 0;
2754
- var remaining = 1;
2755
- iterate$3(iterable, function (promise) {
2756
- var index = counter++;
2757
- var alreadyCalled = false;
2758
- remaining++;
2759
- call$4($promiseResolve, C, promise).then(function (value) {
2760
- if (alreadyCalled) return;
2761
- alreadyCalled = true;
2762
- values[index] = value;
2763
- --remaining || resolve(values);
2764
- }, reject);
2765
- });
2766
- --remaining || resolve(values);
2767
- });
2768
- if (result.error) reject(result.value);
2769
- return capability.promise;
2770
- }
2771
- });
986
+ var isForced$1 = function (feature, detection) {
987
+ var value = data[normalize(feature)];
988
+ return value === POLYFILL ? true
989
+ : value === NATIVE ? false
990
+ : isCallable(detection) ? fails$1(detection)
991
+ : !!detection;
992
+ };
2772
993
 
2773
- var $$b = _export;
2774
- var FORCED_PROMISE_CONSTRUCTOR$2 = promiseConstructorDetection.CONSTRUCTOR;
2775
- var NativePromiseConstructor = promiseNativeConstructor;
2776
- var getBuiltIn$3 = getBuiltIn$a;
2777
- var isCallable$1 = isCallable$m;
2778
- var defineBuiltIn$1 = defineBuiltIn$6;
994
+ var normalize = isForced$1.normalize = function (string) {
995
+ return String(string).replace(replacement, '.').toLowerCase();
996
+ };
2779
997
 
2780
- var NativePromisePrototype = NativePromiseConstructor && NativePromiseConstructor.prototype;
998
+ var data = isForced$1.data = {};
999
+ var NATIVE = isForced$1.NATIVE = 'N';
1000
+ var POLYFILL = isForced$1.POLYFILL = 'P';
2781
1001
 
2782
- // `Promise.prototype.catch` method
2783
- // https://tc39.es/ecma262/#sec-promise.prototype.catch
2784
- $$b({ target: 'Promise', proto: true, forced: FORCED_PROMISE_CONSTRUCTOR$2, real: true }, {
2785
- 'catch': function (onRejected) {
2786
- return this.then(undefined, onRejected);
2787
- }
2788
- });
1002
+ var isForced_1 = isForced$1;
2789
1003
 
2790
- // makes sure that native promise-based APIs `Promise#catch` properly works with patched `Promise#then`
2791
- if (isCallable$1(NativePromiseConstructor)) {
2792
- var method = getBuiltIn$3('Promise').prototype['catch'];
2793
- if (NativePromisePrototype['catch'] !== method) {
2794
- defineBuiltIn$1(NativePromisePrototype, 'catch', method, { unsafe: true });
2795
- }
2796
- }
1004
+ var global$1 = global$a;
1005
+ var getOwnPropertyDescriptor = objectGetOwnPropertyDescriptor.f;
1006
+ var createNonEnumerableProperty = createNonEnumerableProperty$2;
1007
+ var defineBuiltIn = defineBuiltIn$1;
1008
+ var defineGlobalProperty = defineGlobalProperty$3;
1009
+ var copyConstructorProperties = copyConstructorProperties$1;
1010
+ var isForced = isForced_1;
2797
1011
 
2798
- var $$a = _export;
2799
- var call$3 = functionCall;
2800
- var aCallable$1 = aCallable$9;
2801
- var newPromiseCapabilityModule$1 = newPromiseCapability$2;
2802
- var perform = perform$3;
2803
- var iterate$2 = iterate$4;
2804
- var PROMISE_STATICS_INCORRECT_ITERATION = promiseStaticsIncorrectIteration;
2805
-
2806
- // `Promise.race` method
2807
- // https://tc39.es/ecma262/#sec-promise.race
2808
- $$a({ target: 'Promise', stat: true, forced: PROMISE_STATICS_INCORRECT_ITERATION }, {
2809
- race: function race(iterable) {
2810
- var C = this;
2811
- var capability = newPromiseCapabilityModule$1.f(C);
2812
- var reject = capability.reject;
2813
- var result = perform(function () {
2814
- var $promiseResolve = aCallable$1(C.resolve);
2815
- iterate$2(iterable, function (promise) {
2816
- call$3($promiseResolve, C, promise).then(capability.resolve, reject);
2817
- });
2818
- });
2819
- if (result.error) reject(result.value);
2820
- return capability.promise;
1012
+ /*
1013
+ options.target - name of the target object
1014
+ options.global - target is the global object
1015
+ options.stat - export as static methods of target
1016
+ options.proto - export as prototype methods of target
1017
+ options.real - real prototype method for the `pure` version
1018
+ options.forced - export even if the native feature is available
1019
+ options.bind - bind methods to the target, required for the `pure` version
1020
+ options.wrap - wrap constructors to preventing global pollution, required for the `pure` version
1021
+ options.unsafe - use the simple assignment of property instead of delete + defineProperty
1022
+ options.sham - add a flag to not completely full polyfills
1023
+ options.enumerable - export as enumerable property
1024
+ options.dontCallGetSet - prevent calling a getter on target
1025
+ options.name - the .name of the function if it does not match the key
1026
+ */
1027
+ var _export = function (options, source) {
1028
+ var TARGET = options.target;
1029
+ var GLOBAL = options.global;
1030
+ var STATIC = options.stat;
1031
+ var FORCED, target, key, targetProperty, sourceProperty, descriptor;
1032
+ if (GLOBAL) {
1033
+ target = global$1;
1034
+ } else if (STATIC) {
1035
+ target = global$1[TARGET] || defineGlobalProperty(TARGET, {});
1036
+ } else {
1037
+ target = global$1[TARGET] && global$1[TARGET].prototype;
2821
1038
  }
2822
- });
2823
-
2824
- var $$9 = _export;
2825
- var newPromiseCapabilityModule = newPromiseCapability$2;
2826
- var FORCED_PROMISE_CONSTRUCTOR$1 = promiseConstructorDetection.CONSTRUCTOR;
2827
-
2828
- // `Promise.reject` method
2829
- // https://tc39.es/ecma262/#sec-promise.reject
2830
- $$9({ target: 'Promise', stat: true, forced: FORCED_PROMISE_CONSTRUCTOR$1 }, {
2831
- reject: function reject(r) {
2832
- var capability = newPromiseCapabilityModule.f(this);
2833
- var capabilityReject = capability.reject;
2834
- capabilityReject(r);
2835
- return capability.promise;
1039
+ if (target) for (key in source) {
1040
+ sourceProperty = source[key];
1041
+ if (options.dontCallGetSet) {
1042
+ descriptor = getOwnPropertyDescriptor(target, key);
1043
+ targetProperty = descriptor && descriptor.value;
1044
+ } else targetProperty = target[key];
1045
+ FORCED = isForced(GLOBAL ? key : TARGET + (STATIC ? '.' : '#') + key, options.forced);
1046
+ // contained in target
1047
+ if (!FORCED && targetProperty !== undefined) {
1048
+ if (typeof sourceProperty == typeof targetProperty) continue;
1049
+ copyConstructorProperties(sourceProperty, targetProperty);
1050
+ }
1051
+ // add a flag to not completely full polyfills
1052
+ if (options.sham || (targetProperty && targetProperty.sham)) {
1053
+ createNonEnumerableProperty(sourceProperty, 'sham', true);
1054
+ }
1055
+ defineBuiltIn(target, key, sourceProperty, options);
2836
1056
  }
2837
- });
2838
-
2839
- var anObject$3 = anObject$c;
2840
- var isObject$2 = isObject$c;
2841
- var newPromiseCapability = newPromiseCapability$2;
2842
-
2843
- var promiseResolve$1 = function (C, x) {
2844
- anObject$3(C);
2845
- if (isObject$2(x) && x.constructor === C) return x;
2846
- var promiseCapability = newPromiseCapability.f(C);
2847
- var resolve = promiseCapability.resolve;
2848
- resolve(x);
2849
- return promiseCapability.promise;
2850
1057
  };
2851
1058
 
2852
- var $$8 = _export;
2853
- var getBuiltIn$2 = getBuiltIn$a;
2854
- var FORCED_PROMISE_CONSTRUCTOR = promiseConstructorDetection.CONSTRUCTOR;
2855
- var promiseResolve = promiseResolve$1;
2856
-
2857
- getBuiltIn$2('Promise');
2858
-
2859
- // `Promise.resolve` method
2860
- // https://tc39.es/ecma262/#sec-promise.resolve
2861
- $$8({ target: 'Promise', stat: true, forced: FORCED_PROMISE_CONSTRUCTOR }, {
2862
- resolve: function resolve(x) {
2863
- return promiseResolve(this, x);
2864
- }
2865
- });
2866
-
2867
1059
  var uncurryThis$2 = functionUncurryThis;
2868
1060
 
2869
1061
  // eslint-disable-next-line es/no-set -- safe
@@ -2926,6 +1118,16 @@ var setClone = function (set) {
2926
1118
  return result;
2927
1119
  };
2928
1120
 
1121
+ var uncurryThis = functionUncurryThis;
1122
+ var aCallable$1 = aCallable$3;
1123
+
1124
+ var functionUncurryThisAccessor = function (object, key, method) {
1125
+ try {
1126
+ // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
1127
+ return uncurryThis(aCallable$1(Object.getOwnPropertyDescriptor(object, key)[method]));
1128
+ } catch (error) { /* empty */ }
1129
+ };
1130
+
2929
1131
  var uncurryThisAccessor = functionUncurryThisAccessor;
2930
1132
  var SetHelpers$3 = setHelpers;
2931
1133
 
@@ -2943,8 +1145,8 @@ var getIteratorDirect$1 = function (obj) {
2943
1145
  };
2944
1146
  };
2945
1147
 
2946
- var aCallable = aCallable$9;
2947
- var anObject$2 = anObject$c;
1148
+ var aCallable = aCallable$3;
1149
+ var anObject$1 = anObject$4;
2948
1150
  var call$1 = functionCall;
2949
1151
  var toIntegerOrInfinity = toIntegerOrInfinity$3;
2950
1152
  var getIteratorDirect = getIteratorDirect$1;
@@ -2963,7 +1165,7 @@ var SetRecord = function (set, intSize) {
2963
1165
 
2964
1166
  SetRecord.prototype = {
2965
1167
  getIterator: function () {
2966
- return getIteratorDirect(anObject$2(call$1(this.keys, this.set)));
1168
+ return getIteratorDirect(anObject$1(call$1(this.keys, this.set)));
2967
1169
  },
2968
1170
  includes: function (it) {
2969
1171
  return call$1(this.has, this.set, it);
@@ -2973,7 +1175,7 @@ SetRecord.prototype = {
2973
1175
  // `GetSetRecord` abstract operation
2974
1176
  // https://tc39.es/proposal-set-methods/#sec-getsetrecord
2975
1177
  var getSetRecord$7 = function (obj) {
2976
- anObject$2(obj);
1178
+ anObject$1(obj);
2977
1179
  var numSize = +obj.size;
2978
1180
  // NOTE: If size is undefined, then numSize will be NaN
2979
1181
  // eslint-disable-next-line no-self-compare -- NaN check
@@ -3009,7 +1211,7 @@ var setDifference = function difference(other) {
3009
1211
  return result;
3010
1212
  };
3011
1213
 
3012
- var getBuiltIn$1 = getBuiltIn$a;
1214
+ var getBuiltIn = getBuiltIn$3;
3013
1215
 
3014
1216
  var createSetLike = function (size) {
3015
1217
  return {
@@ -3028,7 +1230,7 @@ var createSetLike = function (size) {
3028
1230
  };
3029
1231
 
3030
1232
  var setMethodAcceptSetLike$7 = function (name) {
3031
- var Set = getBuiltIn$1('Set');
1233
+ var Set = getBuiltIn('Set');
3032
1234
  try {
3033
1235
  new Set()[name](createSetLike(0));
3034
1236
  try {
@@ -3044,13 +1246,13 @@ var setMethodAcceptSetLike$7 = function (name) {
3044
1246
  }
3045
1247
  };
3046
1248
 
3047
- var $$7 = _export;
1249
+ var $$6 = _export;
3048
1250
  var difference = setDifference;
3049
1251
  var setMethodAcceptSetLike$6 = setMethodAcceptSetLike$7;
3050
1252
 
3051
1253
  // `Set.prototype.difference` method
3052
1254
  // https://github.com/tc39/proposal-set-methods
3053
- $$7({ target: 'Set', proto: true, real: true, forced: !setMethodAcceptSetLike$6('difference') }, {
1255
+ $$6({ target: 'Set', proto: true, real: true, forced: !setMethodAcceptSetLike$6('difference') }, {
3054
1256
  difference: difference
3055
1257
  });
3056
1258
 
@@ -3085,29 +1287,53 @@ var setIntersection = function intersection(other) {
3085
1287
  return result;
3086
1288
  };
3087
1289
 
3088
- var $$6 = _export;
3089
- var fails$2 = fails$h;
1290
+ var $$5 = _export;
1291
+ var fails = fails$9;
3090
1292
  var intersection = setIntersection;
3091
1293
  var setMethodAcceptSetLike$5 = setMethodAcceptSetLike$7;
3092
1294
 
3093
- var INCORRECT = !setMethodAcceptSetLike$5('intersection') || fails$2(function () {
1295
+ var INCORRECT = !setMethodAcceptSetLike$5('intersection') || fails(function () {
3094
1296
  // eslint-disable-next-line es/no-array-from, es/no-set -- testing
3095
1297
  return String(Array.from(new Set([1, 2, 3]).intersection(new Set([3, 2])))) !== '3,2';
3096
1298
  });
3097
1299
 
3098
1300
  // `Set.prototype.intersection` method
3099
1301
  // https://github.com/tc39/proposal-set-methods
3100
- $$6({ target: 'Set', proto: true, real: true, forced: INCORRECT }, {
1302
+ $$5({ target: 'Set', proto: true, real: true, forced: INCORRECT }, {
3101
1303
  intersection: intersection
3102
1304
  });
3103
1305
 
1306
+ var call = functionCall;
1307
+ var anObject = anObject$4;
1308
+ var getMethod = getMethod$2;
1309
+
1310
+ var iteratorClose$2 = function (iterator, kind, value) {
1311
+ var innerResult, innerError;
1312
+ anObject(iterator);
1313
+ try {
1314
+ innerResult = getMethod(iterator, 'return');
1315
+ if (!innerResult) {
1316
+ if (kind === 'throw') throw value;
1317
+ return value;
1318
+ }
1319
+ innerResult = call(innerResult, iterator);
1320
+ } catch (error) {
1321
+ innerError = true;
1322
+ innerResult = error;
1323
+ }
1324
+ if (kind === 'throw') throw value;
1325
+ if (innerError) throw innerResult;
1326
+ anObject(innerResult);
1327
+ return value;
1328
+ };
1329
+
3104
1330
  var aSet$4 = aSet$7;
3105
1331
  var has$2 = setHelpers.has;
3106
1332
  var size$2 = setSize;
3107
1333
  var getSetRecord$4 = getSetRecord$7;
3108
1334
  var iterateSet = setIterate;
3109
1335
  var iterateSimple$3 = iterateSimple$7;
3110
- var iteratorClose$1 = iteratorClose$3;
1336
+ var iteratorClose$1 = iteratorClose$2;
3111
1337
 
3112
1338
  // `Set.prototype.isDisjointFrom` method
3113
1339
  // https://tc39.github.io/proposal-set-methods/#Set.prototype.isDisjointFrom
@@ -3123,13 +1349,13 @@ var setIsDisjointFrom = function isDisjointFrom(other) {
3123
1349
  }) !== false;
3124
1350
  };
3125
1351
 
3126
- var $$5 = _export;
1352
+ var $$4 = _export;
3127
1353
  var isDisjointFrom = setIsDisjointFrom;
3128
1354
  var setMethodAcceptSetLike$4 = setMethodAcceptSetLike$7;
3129
1355
 
3130
1356
  // `Set.prototype.isDisjointFrom` method
3131
1357
  // https://github.com/tc39/proposal-set-methods
3132
- $$5({ target: 'Set', proto: true, real: true, forced: !setMethodAcceptSetLike$4('isDisjointFrom') }, {
1358
+ $$4({ target: 'Set', proto: true, real: true, forced: !setMethodAcceptSetLike$4('isDisjointFrom') }, {
3133
1359
  isDisjointFrom: isDisjointFrom
3134
1360
  });
3135
1361
 
@@ -3149,13 +1375,13 @@ var setIsSubsetOf = function isSubsetOf(other) {
3149
1375
  }, true) !== false;
3150
1376
  };
3151
1377
 
3152
- var $$4 = _export;
1378
+ var $$3 = _export;
3153
1379
  var isSubsetOf = setIsSubsetOf;
3154
1380
  var setMethodAcceptSetLike$3 = setMethodAcceptSetLike$7;
3155
1381
 
3156
1382
  // `Set.prototype.isSubsetOf` method
3157
1383
  // https://github.com/tc39/proposal-set-methods
3158
- $$4({ target: 'Set', proto: true, real: true, forced: !setMethodAcceptSetLike$3('isSubsetOf') }, {
1384
+ $$3({ target: 'Set', proto: true, real: true, forced: !setMethodAcceptSetLike$3('isSubsetOf') }, {
3159
1385
  isSubsetOf: isSubsetOf
3160
1386
  });
3161
1387
 
@@ -3164,7 +1390,7 @@ var has$1 = setHelpers.has;
3164
1390
  var size = setSize;
3165
1391
  var getSetRecord$2 = getSetRecord$7;
3166
1392
  var iterateSimple$2 = iterateSimple$7;
3167
- var iteratorClose = iteratorClose$3;
1393
+ var iteratorClose = iteratorClose$2;
3168
1394
 
3169
1395
  // `Set.prototype.isSupersetOf` method
3170
1396
  // https://tc39.github.io/proposal-set-methods/#Set.prototype.isSupersetOf
@@ -3178,13 +1404,13 @@ var setIsSupersetOf = function isSupersetOf(other) {
3178
1404
  }) !== false;
3179
1405
  };
3180
1406
 
3181
- var $$3 = _export;
1407
+ var $$2 = _export;
3182
1408
  var isSupersetOf = setIsSupersetOf;
3183
1409
  var setMethodAcceptSetLike$2 = setMethodAcceptSetLike$7;
3184
1410
 
3185
1411
  // `Set.prototype.isSupersetOf` method
3186
1412
  // https://github.com/tc39/proposal-set-methods
3187
- $$3({ target: 'Set', proto: true, real: true, forced: !setMethodAcceptSetLike$2('isSupersetOf') }, {
1413
+ $$2({ target: 'Set', proto: true, real: true, forced: !setMethodAcceptSetLike$2('isSupersetOf') }, {
3188
1414
  isSupersetOf: isSupersetOf
3189
1415
  });
3190
1416
 
@@ -3211,13 +1437,13 @@ var setSymmetricDifference = function symmetricDifference(other) {
3211
1437
  return result;
3212
1438
  };
3213
1439
 
3214
- var $$2 = _export;
1440
+ var $$1 = _export;
3215
1441
  var symmetricDifference = setSymmetricDifference;
3216
1442
  var setMethodAcceptSetLike$1 = setMethodAcceptSetLike$7;
3217
1443
 
3218
1444
  // `Set.prototype.symmetricDifference` method
3219
1445
  // https://github.com/tc39/proposal-set-methods
3220
- $$2({ target: 'Set', proto: true, real: true, forced: !setMethodAcceptSetLike$1('symmetricDifference') }, {
1446
+ $$1({ target: 'Set', proto: true, real: true, forced: !setMethodAcceptSetLike$1('symmetricDifference') }, {
3221
1447
  symmetricDifference: symmetricDifference
3222
1448
  });
3223
1449
 
@@ -3239,97 +1465,16 @@ var setUnion = function union(other) {
3239
1465
  return result;
3240
1466
  };
3241
1467
 
3242
- var $$1 = _export;
1468
+ var $ = _export;
3243
1469
  var union = setUnion;
3244
1470
  var setMethodAcceptSetLike = setMethodAcceptSetLike$7;
3245
1471
 
3246
1472
  // `Set.prototype.union` method
3247
1473
  // https://github.com/tc39/proposal-set-methods
3248
- $$1({ target: 'Set', proto: true, real: true, forced: !setMethodAcceptSetLike('union') }, {
1474
+ $({ target: 'Set', proto: true, real: true, forced: !setMethodAcceptSetLike('union') }, {
3249
1475
  union: union
3250
1476
  });
3251
1477
 
3252
- // iterable DOM collections
3253
- // flag - `iterable` interface - 'entries', 'keys', 'values', 'forEach' methods
3254
- var domIterables = {
3255
- CSSRuleList: 0,
3256
- CSSStyleDeclaration: 0,
3257
- CSSValueList: 0,
3258
- ClientRectList: 0,
3259
- DOMRectList: 0,
3260
- DOMStringList: 0,
3261
- DOMTokenList: 1,
3262
- DataTransferItemList: 0,
3263
- FileList: 0,
3264
- HTMLAllCollection: 0,
3265
- HTMLCollection: 0,
3266
- HTMLFormElement: 0,
3267
- HTMLSelectElement: 0,
3268
- MediaList: 0,
3269
- MimeTypeArray: 0,
3270
- NamedNodeMap: 0,
3271
- NodeList: 1,
3272
- PaintRequestList: 0,
3273
- Plugin: 0,
3274
- PluginArray: 0,
3275
- SVGLengthList: 0,
3276
- SVGNumberList: 0,
3277
- SVGPathSegList: 0,
3278
- SVGPointList: 0,
3279
- SVGStringList: 0,
3280
- SVGTransformList: 0,
3281
- SourceBufferList: 0,
3282
- StyleSheetList: 0,
3283
- TextTrackCueList: 0,
3284
- TextTrackList: 0,
3285
- TouchList: 0
3286
- };
3287
-
3288
- // in old WebKit versions, `element.classList` is not an instance of global `DOMTokenList`
3289
- var documentCreateElement = documentCreateElement$2;
3290
-
3291
- var classList = documentCreateElement('span').classList;
3292
- var DOMTokenListPrototype$1 = classList && classList.constructor && classList.constructor.prototype;
3293
-
3294
- var domTokenListPrototype = DOMTokenListPrototype$1 === Object.prototype ? undefined : DOMTokenListPrototype$1;
3295
-
3296
- var global$2 = global$j;
3297
- var DOMIterables = domIterables;
3298
- var DOMTokenListPrototype = domTokenListPrototype;
3299
- var ArrayIteratorMethods = es_array_iterator;
3300
- var createNonEnumerableProperty$3 = createNonEnumerableProperty$7;
3301
- var setToStringTag = setToStringTag$4;
3302
- var wellKnownSymbol = wellKnownSymbol$e;
3303
-
3304
- var ITERATOR = wellKnownSymbol('iterator');
3305
- var ArrayValues = ArrayIteratorMethods.values;
3306
-
3307
- var handlePrototype = function (CollectionPrototype, COLLECTION_NAME) {
3308
- if (CollectionPrototype) {
3309
- // some Chrome versions have non-configurable methods on DOMTokenList
3310
- if (CollectionPrototype[ITERATOR] !== ArrayValues) try {
3311
- createNonEnumerableProperty$3(CollectionPrototype, ITERATOR, ArrayValues);
3312
- } catch (error) {
3313
- CollectionPrototype[ITERATOR] = ArrayValues;
3314
- }
3315
- setToStringTag(CollectionPrototype, COLLECTION_NAME, true);
3316
- if (DOMIterables[COLLECTION_NAME]) for (var METHOD_NAME in ArrayIteratorMethods) {
3317
- // some Chrome versions have non-configurable methods on DOMTokenList
3318
- if (CollectionPrototype[METHOD_NAME] !== ArrayIteratorMethods[METHOD_NAME]) try {
3319
- createNonEnumerableProperty$3(CollectionPrototype, METHOD_NAME, ArrayIteratorMethods[METHOD_NAME]);
3320
- } catch (error) {
3321
- CollectionPrototype[METHOD_NAME] = ArrayIteratorMethods[METHOD_NAME];
3322
- }
3323
- }
3324
- }
3325
- };
3326
-
3327
- for (var COLLECTION_NAME in DOMIterables) {
3328
- handlePrototype(global$2[COLLECTION_NAME] && global$2[COLLECTION_NAME].prototype, COLLECTION_NAME);
3329
- }
3330
-
3331
- handlePrototype(DOMTokenListPrototype, 'DOMTokenList');
3332
-
3333
1478
  /**
3334
1479
  * A code used in some cases to denote success.
3335
1480
  */
@@ -3495,7 +1640,7 @@ function silenceZoomErrorWithCodesFunction(codes, returnFn) {
3495
1640
  return reason => {
3496
1641
  if (silence !== false && reason instanceof ZoomServerFetchResponseError) {
3497
1642
  if (codesSet.has(reason.code)) {
3498
- return returnFn == null ? void 0 : returnFn(reason);
1643
+ return returnFn?.(reason);
3499
1644
  }
3500
1645
  }
3501
1646
  throw reason;
@@ -3691,7 +1836,7 @@ function parseZoomOAuthServerErrorResponseData(zoomServerError, responseError) {
3691
1836
  let result;
3692
1837
  if (zoomServerError) {
3693
1838
  const potentialErrorStringCode = zoomServerError.error;
3694
- const errorCode = potentialErrorStringCode != null ? potentialErrorStringCode : zoomServerError.code;
1839
+ const errorCode = potentialErrorStringCode ?? zoomServerError.code;
3695
1840
  switch (errorCode) {
3696
1841
  case ZOOM_ACCOUNTS_INVALID_GRANT_ERROR_CODE:
3697
1842
  result = new ZoomOAuthAccessTokenError(errorCode);
@@ -3711,7 +1856,7 @@ const handleZoomOAuthErrorFetch = handleZoomErrorFetchFactory(parseZoomOAuthErro
3711
1856
  function zoomAccessTokenStringFactory(zoomAccessTokenFactory) {
3712
1857
  return async () => {
3713
1858
  const token = await zoomAccessTokenFactory();
3714
- if (!(token != null && token.accessToken)) {
1859
+ if (!token?.accessToken) {
3715
1860
  throw new ZoomOAuthAuthFailureError();
3716
1861
  }
3717
1862
  return token.accessToken;
@@ -3722,10 +1867,9 @@ const DEFAULT_ZOOM_RATE_LIMITED_TOO_MANY_REQUETS_LOG_FUNCTION = headers => {
3722
1867
  console.warn(`zoomRateLimitedFetchHandler(): Too many requests made. The limit is ${headers.limit} requests per reset period. RetryAt is set for ${headers.retryAfterAt}.`);
3723
1868
  };
3724
1869
  function zoomRateLimitedFetchHandler(config) {
3725
- var _config$onTooManyRequ, _config$maxRateLimit, _config$resetPeriod;
3726
- const onTooManyRequests = (config == null ? void 0 : config.onTooManyRequests) !== false ? (_config$onTooManyRequ = config == null ? void 0 : config.onTooManyRequests) != null ? _config$onTooManyRequ : DEFAULT_ZOOM_RATE_LIMITED_TOO_MANY_REQUETS_LOG_FUNCTION : undefined;
3727
- const defaultLimit = (_config$maxRateLimit = config == null ? void 0 : config.maxRateLimit) != null ? _config$maxRateLimit : DEFAULT_ZOOM_API_RATE_LIMIT;
3728
- const defaultResetPeriod = (_config$resetPeriod = config == null ? void 0 : config.resetPeriod) != null ? _config$resetPeriod : DEFAULT_ZOOM_API_RATE_LIMIT_RESET_PERIOD;
1870
+ const onTooManyRequests = config?.onTooManyRequests !== false ? config?.onTooManyRequests ?? DEFAULT_ZOOM_RATE_LIMITED_TOO_MANY_REQUETS_LOG_FUNCTION : undefined;
1871
+ const defaultLimit = config?.maxRateLimit ?? DEFAULT_ZOOM_API_RATE_LIMIT;
1872
+ const defaultResetPeriod = config?.resetPeriod ?? DEFAULT_ZOOM_API_RATE_LIMIT_RESET_PERIOD;
3729
1873
  function configForLimit(limit, resetAt) {
3730
1874
  return {
3731
1875
  limit: defaultLimit,
@@ -3759,7 +1903,7 @@ function zoomRateLimitedFetchHandler(config) {
3759
1903
  if (type === 'QPS') {
3760
1904
  shouldRetry = true;
3761
1905
  try {
3762
- onTooManyRequests == null || onTooManyRequests(headerDetails, response, fetchResponseError);
1906
+ onTooManyRequests?.(headerDetails, response, fetchResponseError);
3763
1907
  } catch (e) {}
3764
1908
  }
3765
1909
  }
@@ -3860,63 +2004,6 @@ function zoomFactory(factoryConfig) {
3860
2004
  };
3861
2005
  }
3862
2006
 
3863
- var anObject$1 = anObject$c;
3864
-
3865
- // `RegExp.prototype.flags` getter implementation
3866
- // https://tc39.es/ecma262/#sec-get-regexp.prototype.flags
3867
- var regexpFlags = function () {
3868
- var that = anObject$1(this);
3869
- var result = '';
3870
- if (that.hasIndices) result += 'd';
3871
- if (that.global) result += 'g';
3872
- if (that.ignoreCase) result += 'i';
3873
- if (that.multiline) result += 'm';
3874
- if (that.dotAll) result += 's';
3875
- if (that.unicode) result += 'u';
3876
- if (that.unicodeSets) result += 'v';
3877
- if (that.sticky) result += 'y';
3878
- return result;
3879
- };
3880
-
3881
- var call = functionCall;
3882
- var hasOwn$1 = hasOwnProperty_1;
3883
- var isPrototypeOf$1 = objectIsPrototypeOf;
3884
- var regExpFlags = regexpFlags;
3885
-
3886
- var RegExpPrototype$1 = RegExp.prototype;
3887
-
3888
- var regexpGetFlags = function (R) {
3889
- var flags = R.flags;
3890
- return flags === undefined && !('flags' in RegExpPrototype$1) && !hasOwn$1(R, 'flags') && isPrototypeOf$1(RegExpPrototype$1, R)
3891
- ? call(regExpFlags, R) : flags;
3892
- };
3893
-
3894
- var PROPER_FUNCTION_NAME = functionName.PROPER;
3895
- var defineBuiltIn = defineBuiltIn$6;
3896
- var anObject = anObject$c;
3897
- var $toString = toString$2;
3898
- var fails$1 = fails$h;
3899
- var getRegExpFlags = regexpGetFlags;
3900
-
3901
- var TO_STRING = 'toString';
3902
- var RegExpPrototype = RegExp.prototype;
3903
- var nativeToString = RegExpPrototype[TO_STRING];
3904
-
3905
- var NOT_GENERIC = fails$1(function () { return nativeToString.call({ source: 'a', flags: 'b' }) !== '/a/b'; });
3906
- // FF44- RegExp#toString has a wrong name
3907
- var INCORRECT_NAME = PROPER_FUNCTION_NAME && nativeToString.name !== TO_STRING;
3908
-
3909
- // `RegExp.prototype.toString` method
3910
- // https://tc39.es/ecma262/#sec-regexp.prototype.tostring
3911
- if (NOT_GENERIC || INCORRECT_NAME) {
3912
- defineBuiltIn(RegExpPrototype, TO_STRING, function toString() {
3913
- var R = anObject(this);
3914
- var pattern = $toString(R.source);
3915
- var flags = $toString(getRegExpFlags(R));
3916
- return '/' + pattern + '/' + flags;
3917
- }, { unsafe: true });
3918
- }
3919
-
3920
2007
  /**
3921
2008
  * Retrieves a new AccessToken for Server to Server authentication.
3922
2009
  *
@@ -3925,8 +2012,7 @@ if (NOT_GENERIC || INCORRECT_NAME) {
3925
2012
  */
3926
2013
  function serverAccessToken(context) {
3927
2014
  return input => {
3928
- var _input$accountId;
3929
- return context.fetchJson(`/token?grant_type=account_credentials&account_id=${(_input$accountId = input == null ? void 0 : input.accountId) != null ? _input$accountId : context.config.accountId}`, zoomOAuthApiFetchJsonInput(context, input));
2015
+ return context.fetchJson(`/token?grant_type=account_credentials&account_id=${input?.accountId ?? context.config.accountId}`, zoomOAuthApiFetchJsonInput(context, input));
3930
2016
  };
3931
2017
  }
3932
2018
  /**
@@ -3942,9 +2028,8 @@ function userAccessToken(context) {
3942
2028
  };
3943
2029
  }
3944
2030
  function zoomOAuthApiFetchJsonInput(context, input) {
3945
- var _input$client$clientI, _input$client, _input$client$clientS, _input$client2;
3946
- const clientId = (_input$client$clientI = input == null || (_input$client = input.client) == null ? void 0 : _input$client.clientId) != null ? _input$client$clientI : context.config.clientId;
3947
- const clientSecret = (_input$client$clientS = input == null || (_input$client2 = input.client) == null ? void 0 : _input$client2.clientSecret) != null ? _input$client$clientS : context.config.clientSecret;
2031
+ const clientId = input?.client?.clientId ?? context.config.clientId;
2032
+ const clientSecret = input?.client?.clientSecret ?? context.config.clientSecret;
3948
2033
  const fetchJsonInput = {
3949
2034
  headers: {
3950
2035
  Authorization: zoomOAuthServerBasicAuthorizationHeaderValue({
@@ -3965,215 +2050,6 @@ function zoomOAuthServerBasicAuthorizationHeaderValue(input) {
3965
2050
  */
3966
2051
  const ZOOM_OAUTH_API_URL = 'https://zoom.us/oauth';
3967
2052
 
3968
- var defineProperty = objectDefineProperty.f;
3969
-
3970
- var proxyAccessor$1 = function (Target, Source, key) {
3971
- key in Target || defineProperty(Target, key, {
3972
- configurable: true,
3973
- get: function () { return Source[key]; },
3974
- set: function (it) { Source[key] = it; }
3975
- });
3976
- };
3977
-
3978
- var isCallable = isCallable$m;
3979
- var isObject$1 = isObject$c;
3980
- var setPrototypeOf$1 = objectSetPrototypeOf;
3981
-
3982
- // makes subclassing work correct for wrapped built-ins
3983
- var inheritIfRequired$1 = function ($this, dummy, Wrapper) {
3984
- var NewTarget, NewTargetPrototype;
3985
- if (
3986
- // it can work only with native `setPrototypeOf`
3987
- setPrototypeOf$1 &&
3988
- // we haven't completely correct pre-ES6 way for getting `new.target`, so use this
3989
- isCallable(NewTarget = dummy.constructor) &&
3990
- NewTarget !== Wrapper &&
3991
- isObject$1(NewTargetPrototype = NewTarget.prototype) &&
3992
- NewTargetPrototype !== Wrapper.prototype
3993
- ) setPrototypeOf$1($this, NewTargetPrototype);
3994
- return $this;
3995
- };
3996
-
3997
- var toString = toString$2;
3998
-
3999
- var normalizeStringArgument$1 = function (argument, $default) {
4000
- return argument === undefined ? arguments.length < 2 ? '' : $default : toString(argument);
4001
- };
4002
-
4003
- var isObject = isObject$c;
4004
- var createNonEnumerableProperty$2 = createNonEnumerableProperty$7;
4005
-
4006
- // `InstallErrorCause` abstract operation
4007
- // https://tc39.es/proposal-error-cause/#sec-errorobjects-install-error-cause
4008
- var installErrorCause$1 = function (O, options) {
4009
- if (isObject(options) && 'cause' in options) {
4010
- createNonEnumerableProperty$2(O, 'cause', options.cause);
4011
- }
4012
- };
4013
-
4014
- var uncurryThis = functionUncurryThis;
4015
-
4016
- var $Error = Error;
4017
- var replace = uncurryThis(''.replace);
4018
-
4019
- var TEST = (function (arg) { return String(new $Error(arg).stack); })('zxcasd');
4020
- // eslint-disable-next-line redos/no-vulnerable -- safe
4021
- var V8_OR_CHAKRA_STACK_ENTRY = /\n\s*at [^:]*:[^\n]*/;
4022
- var IS_V8_OR_CHAKRA_STACK = V8_OR_CHAKRA_STACK_ENTRY.test(TEST);
4023
-
4024
- var errorStackClear = function (stack, dropEntries) {
4025
- if (IS_V8_OR_CHAKRA_STACK && typeof stack == 'string' && !$Error.prepareStackTrace) {
4026
- while (dropEntries--) stack = replace(stack, V8_OR_CHAKRA_STACK_ENTRY, '');
4027
- } return stack;
4028
- };
4029
-
4030
- var fails = fails$h;
4031
- var createPropertyDescriptor = createPropertyDescriptor$4;
4032
-
4033
- var errorStackInstallable = !fails(function () {
4034
- var error = new Error('a');
4035
- if (!('stack' in error)) return true;
4036
- // eslint-disable-next-line es/no-object-defineproperty -- safe
4037
- Object.defineProperty(error, 'stack', createPropertyDescriptor(1, 7));
4038
- return error.stack !== 7;
4039
- });
4040
-
4041
- var createNonEnumerableProperty$1 = createNonEnumerableProperty$7;
4042
- var clearErrorStack = errorStackClear;
4043
- var ERROR_STACK_INSTALLABLE = errorStackInstallable;
4044
-
4045
- // non-standard V8
4046
- var captureStackTrace = Error.captureStackTrace;
4047
-
4048
- var errorStackInstall = function (error, C, stack, dropEntries) {
4049
- if (ERROR_STACK_INSTALLABLE) {
4050
- if (captureStackTrace) captureStackTrace(error, C);
4051
- else createNonEnumerableProperty$1(error, 'stack', clearErrorStack(stack, dropEntries));
4052
- }
4053
- };
4054
-
4055
- var getBuiltIn = getBuiltIn$a;
4056
- var hasOwn = hasOwnProperty_1;
4057
- var createNonEnumerableProperty = createNonEnumerableProperty$7;
4058
- var isPrototypeOf = objectIsPrototypeOf;
4059
- var setPrototypeOf = objectSetPrototypeOf;
4060
- var copyConstructorProperties = copyConstructorProperties$2;
4061
- var proxyAccessor = proxyAccessor$1;
4062
- var inheritIfRequired = inheritIfRequired$1;
4063
- var normalizeStringArgument = normalizeStringArgument$1;
4064
- var installErrorCause = installErrorCause$1;
4065
- var installErrorStack = errorStackInstall;
4066
- var DESCRIPTORS = descriptors;
4067
-
4068
- var wrapErrorConstructorWithCause$1 = function (FULL_NAME, wrapper, FORCED, IS_AGGREGATE_ERROR) {
4069
- var STACK_TRACE_LIMIT = 'stackTraceLimit';
4070
- var OPTIONS_POSITION = IS_AGGREGATE_ERROR ? 2 : 1;
4071
- var path = FULL_NAME.split('.');
4072
- var ERROR_NAME = path[path.length - 1];
4073
- var OriginalError = getBuiltIn.apply(null, path);
4074
-
4075
- if (!OriginalError) return;
4076
-
4077
- var OriginalErrorPrototype = OriginalError.prototype;
4078
-
4079
- // V8 9.3- bug https://bugs.chromium.org/p/v8/issues/detail?id=12006
4080
- if (hasOwn(OriginalErrorPrototype, 'cause')) delete OriginalErrorPrototype.cause;
4081
-
4082
- if (!FORCED) return OriginalError;
4083
-
4084
- var BaseError = getBuiltIn('Error');
4085
-
4086
- var WrappedError = wrapper(function (a, b) {
4087
- var message = normalizeStringArgument(IS_AGGREGATE_ERROR ? b : a, undefined);
4088
- var result = IS_AGGREGATE_ERROR ? new OriginalError(a) : new OriginalError();
4089
- if (message !== undefined) createNonEnumerableProperty(result, 'message', message);
4090
- installErrorStack(result, WrappedError, result.stack, 2);
4091
- if (this && isPrototypeOf(OriginalErrorPrototype, this)) inheritIfRequired(result, this, WrappedError);
4092
- if (arguments.length > OPTIONS_POSITION) installErrorCause(result, arguments[OPTIONS_POSITION]);
4093
- return result;
4094
- });
4095
-
4096
- WrappedError.prototype = OriginalErrorPrototype;
4097
-
4098
- if (ERROR_NAME !== 'Error') {
4099
- if (setPrototypeOf) setPrototypeOf(WrappedError, BaseError);
4100
- else copyConstructorProperties(WrappedError, BaseError, { name: true });
4101
- } else if (DESCRIPTORS && STACK_TRACE_LIMIT in OriginalError) {
4102
- proxyAccessor(WrappedError, OriginalError, STACK_TRACE_LIMIT);
4103
- proxyAccessor(WrappedError, OriginalError, 'prepareStackTrace');
4104
- }
4105
-
4106
- copyConstructorProperties(WrappedError, OriginalError);
4107
-
4108
- try {
4109
- // Safari 13- bug: WebAssembly errors does not have a proper `.name`
4110
- if (OriginalErrorPrototype.name !== ERROR_NAME) {
4111
- createNonEnumerableProperty(OriginalErrorPrototype, 'name', ERROR_NAME);
4112
- }
4113
- OriginalErrorPrototype.constructor = WrappedError;
4114
- } catch (error) { /* empty */ }
4115
-
4116
- return WrappedError;
4117
- };
4118
-
4119
- /* eslint-disable no-unused-vars -- required for functions `.length` */
4120
- var $ = _export;
4121
- var global$1 = global$j;
4122
- var apply = functionApply;
4123
- var wrapErrorConstructorWithCause = wrapErrorConstructorWithCause$1;
4124
-
4125
- var WEB_ASSEMBLY = 'WebAssembly';
4126
- var WebAssembly = global$1[WEB_ASSEMBLY];
4127
-
4128
- // eslint-disable-next-line es/no-error-cause -- feature detection
4129
- var FORCED = new Error('e', { cause: 7 }).cause !== 7;
4130
-
4131
- var exportGlobalErrorCauseWrapper = function (ERROR_NAME, wrapper) {
4132
- var O = {};
4133
- O[ERROR_NAME] = wrapErrorConstructorWithCause(ERROR_NAME, wrapper, FORCED);
4134
- $({ global: true, constructor: true, arity: 1, forced: FORCED }, O);
4135
- };
4136
-
4137
- var exportWebAssemblyErrorCauseWrapper = function (ERROR_NAME, wrapper) {
4138
- if (WebAssembly && WebAssembly[ERROR_NAME]) {
4139
- var O = {};
4140
- O[ERROR_NAME] = wrapErrorConstructorWithCause(WEB_ASSEMBLY + '.' + ERROR_NAME, wrapper, FORCED);
4141
- $({ target: WEB_ASSEMBLY, stat: true, constructor: true, arity: 1, forced: FORCED }, O);
4142
- }
4143
- };
4144
-
4145
- // https://tc39.es/ecma262/#sec-nativeerror
4146
- exportGlobalErrorCauseWrapper('Error', function (init) {
4147
- return function Error(message) { return apply(init, this, arguments); };
4148
- });
4149
- exportGlobalErrorCauseWrapper('EvalError', function (init) {
4150
- return function EvalError(message) { return apply(init, this, arguments); };
4151
- });
4152
- exportGlobalErrorCauseWrapper('RangeError', function (init) {
4153
- return function RangeError(message) { return apply(init, this, arguments); };
4154
- });
4155
- exportGlobalErrorCauseWrapper('ReferenceError', function (init) {
4156
- return function ReferenceError(message) { return apply(init, this, arguments); };
4157
- });
4158
- exportGlobalErrorCauseWrapper('SyntaxError', function (init) {
4159
- return function SyntaxError(message) { return apply(init, this, arguments); };
4160
- });
4161
- exportGlobalErrorCauseWrapper('TypeError', function (init) {
4162
- return function TypeError(message) { return apply(init, this, arguments); };
4163
- });
4164
- exportGlobalErrorCauseWrapper('URIError', function (init) {
4165
- return function URIError(message) { return apply(init, this, arguments); };
4166
- });
4167
- exportWebAssemblyErrorCauseWrapper('CompileError', function (init) {
4168
- return function CompileError(message) { return apply(init, this, arguments); };
4169
- });
4170
- exportWebAssemblyErrorCauseWrapper('LinkError', function (init) {
4171
- return function LinkError(message) { return apply(init, this, arguments); };
4172
- });
4173
- exportWebAssemblyErrorCauseWrapper('RuntimeError', function (init) {
4174
- return function RuntimeError(message) { return apply(init, this, arguments); };
4175
- });
4176
-
4177
2053
  function zoomOAuthFactory(factoryConfig) {
4178
2054
  const fetchHandler = zoomRateLimitedFetchHandler();
4179
2055
  const {
@@ -4267,7 +2143,7 @@ function zoomOAuthZoomAccessTokenFactory(config) {
4267
2143
  accessTokenCache,
4268
2144
  tokenExpirationBuffer: inputTokenExpirationBuffer
4269
2145
  } = config;
4270
- const tokenExpirationBuffer = inputTokenExpirationBuffer != null ? inputTokenExpirationBuffer : util.MS_IN_MINUTE;
2146
+ const tokenExpirationBuffer = inputTokenExpirationBuffer ?? util.MS_IN_MINUTE;
4271
2147
  /**
4272
2148
  * Caches the token internally here until it expires.
4273
2149
  */
@@ -4275,7 +2151,7 @@ function zoomOAuthZoomAccessTokenFactory(config) {
4275
2151
  return async () => {
4276
2152
  // load from cache
4277
2153
  if (!currentToken) {
4278
- const cachedToken = await (accessTokenCache == null ? void 0 : accessTokenCache.loadCachedToken());
2154
+ const cachedToken = await accessTokenCache?.loadCachedToken();
4279
2155
  if (cachedToken) {
4280
2156
  currentToken = cachedToken;
4281
2157
  }
@@ -4297,7 +2173,7 @@ function zoomOAuthZoomAccessTokenFactory(config) {
4297
2173
  }
4298
2174
  if (currentToken) {
4299
2175
  try {
4300
- await (accessTokenCache == null ? void 0 : accessTokenCache.updateCachedToken(currentToken));
2176
+ await accessTokenCache?.updateCachedToken(currentToken);
4301
2177
  } catch (e) {
4302
2178
  // do nothing
4303
2179
  }