@dereekb/zoom 12.6.21 → 13.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (63) hide show
  1. package/LICENSE +1 -1
  2. package/index.cjs.js +4 -1417
  3. package/index.esm.js +5 -1418
  4. package/nestjs/index.cjs.js +692 -0
  5. package/nestjs/index.esm.js +662 -0
  6. package/nestjs/package.json +19 -3
  7. package/nestjs/src/lib/webhook/webhook.zoom.controller.d.ts +1 -1
  8. package/nestjs/src/lib/zoom/zoom.api.d.ts +1 -1
  9. package/package.json +14 -7
  10. package/src/lib/oauth/oauth.error.api.d.ts +2 -2
  11. package/src/lib/zoom/zoom.error.api.d.ts +2 -2
  12. package/src/lib/zoom.error.api.d.ts +2 -2
  13. package/src/lib/zoom.type.d.ts +2 -2
  14. package/nestjs/CHANGELOG.md +0 -459
  15. package/nestjs/README.md +0 -11
  16. package/nestjs/src/index.js +0 -5
  17. package/nestjs/src/index.js.map +0 -1
  18. package/nestjs/src/lib/index.js +0 -7
  19. package/nestjs/src/lib/index.js.map +0 -1
  20. package/nestjs/src/lib/oauth/index.js +0 -8
  21. package/nestjs/src/lib/oauth/index.js.map +0 -1
  22. package/nestjs/src/lib/oauth/oauth.api.js +0 -41
  23. package/nestjs/src/lib/oauth/oauth.api.js.map +0 -1
  24. package/nestjs/src/lib/oauth/oauth.config.js +0 -50
  25. package/nestjs/src/lib/oauth/oauth.config.js.map +0 -1
  26. package/nestjs/src/lib/oauth/oauth.module.js +0 -36
  27. package/nestjs/src/lib/oauth/oauth.module.js.map +0 -1
  28. package/nestjs/src/lib/oauth/oauth.service.js +0 -230
  29. package/nestjs/src/lib/oauth/oauth.service.js.map +0 -1
  30. package/nestjs/src/lib/webhook/index.js +0 -15
  31. package/nestjs/src/lib/webhook/index.js.map +0 -1
  32. package/nestjs/src/lib/webhook/webhook.zoom.config.js +0 -17
  33. package/nestjs/src/lib/webhook/webhook.zoom.config.js.map +0 -1
  34. package/nestjs/src/lib/webhook/webhook.zoom.controller.js +0 -38
  35. package/nestjs/src/lib/webhook/webhook.zoom.controller.js.map +0 -1
  36. package/nestjs/src/lib/webhook/webhook.zoom.js +0 -38
  37. package/nestjs/src/lib/webhook/webhook.zoom.js.map +0 -1
  38. package/nestjs/src/lib/webhook/webhook.zoom.module.js +0 -41
  39. package/nestjs/src/lib/webhook/webhook.zoom.module.js.map +0 -1
  40. package/nestjs/src/lib/webhook/webhook.zoom.service.js +0 -60
  41. package/nestjs/src/lib/webhook/webhook.zoom.service.js.map +0 -1
  42. package/nestjs/src/lib/webhook/webhook.zoom.type.common.js +0 -3
  43. package/nestjs/src/lib/webhook/webhook.zoom.type.common.js.map +0 -1
  44. package/nestjs/src/lib/webhook/webhook.zoom.type.js +0 -3
  45. package/nestjs/src/lib/webhook/webhook.zoom.type.js.map +0 -1
  46. package/nestjs/src/lib/webhook/webhook.zoom.type.meeting.js +0 -18
  47. package/nestjs/src/lib/webhook/webhook.zoom.type.meeting.js.map +0 -1
  48. package/nestjs/src/lib/webhook/webhook.zoom.type.validate.js +0 -5
  49. package/nestjs/src/lib/webhook/webhook.zoom.type.validate.js.map +0 -1
  50. package/nestjs/src/lib/webhook/webhook.zoom.validate.js +0 -25
  51. package/nestjs/src/lib/webhook/webhook.zoom.validate.js.map +0 -1
  52. package/nestjs/src/lib/webhook/webhook.zoom.verify.js +0 -27
  53. package/nestjs/src/lib/webhook/webhook.zoom.verify.js.map +0 -1
  54. package/nestjs/src/lib/zoom/index.js +0 -7
  55. package/nestjs/src/lib/zoom/index.js.map +0 -1
  56. package/nestjs/src/lib/zoom/zoom.api.js +0 -78
  57. package/nestjs/src/lib/zoom/zoom.api.js.map +0 -1
  58. package/nestjs/src/lib/zoom/zoom.config.js +0 -15
  59. package/nestjs/src/lib/zoom/zoom.config.js.map +0 -1
  60. package/nestjs/src/lib/zoom/zoom.module.js +0 -40
  61. package/nestjs/src/lib/zoom/zoom.module.js.map +0 -1
  62. /package/{index.cjs.d.ts → index.d.ts} +0 -0
  63. /package/{index.esm.d.ts → nestjs/index.d.ts} +0 -0
package/index.esm.js CHANGED
@@ -1,4 +1,8 @@
1
- import { fetchPageFactory, FetchResponseError, mergeMakeUrlSearchParamsOptions, makeUrlSearchParams, FetchRequestFactoryError, rateLimitedFetchHandler, fetchJsonFunction, returnNullHandleFetchJsonParseErrorFunction, fetchApiFetchService } from '@dereekb/util/fetch';
1
+ import 'core-js/modules/es.json.stringify.js';
2
+ import { fetchPageFactory, FetchResponseError, mergeMakeUrlSearchParamsOptions, makeUrlSearchParams, FetchRequestFactoryError, rateLimitedFetchHandler, fetchApiFetchService, fetchJsonFunction, returnNullHandleFetchJsonParseErrorFunction } from '@dereekb/util/fetch';
3
+ import 'core-js/modules/es.set.difference.v2.js';
4
+ import 'core-js/modules/es.set.symmetric-difference.v2.js';
5
+ import 'core-js/modules/es.set.union.v2.js';
2
6
  import { MS_IN_SECOND, asArray, resetPeriodPromiseRateLimiter, MS_IN_MINUTE } from '@dereekb/util';
3
7
  import { BaseError } from 'make-error';
4
8
 
@@ -56,1423 +60,6 @@ function zoomFetchPageFactory(fetch, defaults) {
56
60
  });
57
61
  }
58
62
 
59
- var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
60
-
61
- var check = function (it) {
62
- return it && it.Math === Math && it;
63
- };
64
-
65
- // https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
66
- var global$a =
67
- // eslint-disable-next-line es/no-global-this -- safe
68
- check(typeof globalThis == 'object' && globalThis) ||
69
- check(typeof window == 'object' && window) ||
70
- // eslint-disable-next-line no-restricted-globals -- safe
71
- check(typeof self == 'object' && self) ||
72
- check(typeof commonjsGlobal == 'object' && commonjsGlobal) ||
73
- check(typeof commonjsGlobal == 'object' && commonjsGlobal) ||
74
- // eslint-disable-next-line no-new-func -- fallback
75
- (function () { return this; })() || Function('return this')();
76
-
77
- var objectGetOwnPropertyDescriptor = {};
78
-
79
- var fails$9 = function (exec) {
80
- try {
81
- return !!exec();
82
- } catch (error) {
83
- return true;
84
- }
85
- };
86
-
87
- var fails$8 = fails$9;
88
-
89
- // Detect IE8's incomplete defineProperty implementation
90
- var descriptors = !fails$8(function () {
91
- // eslint-disable-next-line es/no-object-defineproperty -- required for testing
92
- return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] !== 7;
93
- });
94
-
95
- var fails$7 = fails$9;
96
-
97
- var functionBindNative = !fails$7(function () {
98
- // eslint-disable-next-line es/no-function-prototype-bind -- safe
99
- var test = (function () { /* empty */ }).bind();
100
- // eslint-disable-next-line no-prototype-builtins -- safe
101
- return typeof test != 'function' || test.hasOwnProperty('prototype');
102
- });
103
-
104
- var NATIVE_BIND$1 = functionBindNative;
105
-
106
- var call$7 = Function.prototype.call;
107
-
108
- var functionCall = NATIVE_BIND$1 ? call$7.bind(call$7) : function () {
109
- return call$7.apply(call$7, arguments);
110
- };
111
-
112
- var objectPropertyIsEnumerable = {};
113
-
114
- var $propertyIsEnumerable = {}.propertyIsEnumerable;
115
- // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
116
- var getOwnPropertyDescriptor$1 = Object.getOwnPropertyDescriptor;
117
-
118
- // Nashorn ~ JDK8 bug
119
- var NASHORN_BUG = getOwnPropertyDescriptor$1 && !$propertyIsEnumerable.call({ 1: 2 }, 1);
120
-
121
- // `Object.prototype.propertyIsEnumerable` method implementation
122
- // https://tc39.es/ecma262/#sec-object.prototype.propertyisenumerable
123
- objectPropertyIsEnumerable.f = NASHORN_BUG ? function propertyIsEnumerable(V) {
124
- var descriptor = getOwnPropertyDescriptor$1(this, V);
125
- return !!descriptor && descriptor.enumerable;
126
- } : $propertyIsEnumerable;
127
-
128
- var createPropertyDescriptor$2 = function (bitmap, value) {
129
- return {
130
- enumerable: !(bitmap & 1),
131
- configurable: !(bitmap & 2),
132
- writable: !(bitmap & 4),
133
- value: value
134
- };
135
- };
136
-
137
- var NATIVE_BIND = functionBindNative;
138
-
139
- var FunctionPrototype$1 = Function.prototype;
140
- var call$6 = FunctionPrototype$1.call;
141
- var uncurryThisWithBind = NATIVE_BIND && FunctionPrototype$1.bind.bind(call$6, call$6);
142
-
143
- var functionUncurryThis = NATIVE_BIND ? uncurryThisWithBind : function (fn) {
144
- return function () {
145
- return call$6.apply(fn, arguments);
146
- };
147
- };
148
-
149
- var uncurryThis$b = functionUncurryThis;
150
-
151
- var toString$1 = uncurryThis$b({}.toString);
152
- var stringSlice$1 = uncurryThis$b(''.slice);
153
-
154
- var classofRaw = function (it) {
155
- return stringSlice$1(toString$1(it), 8, -1);
156
- };
157
-
158
- var uncurryThis$a = functionUncurryThis;
159
- var fails$6 = fails$9;
160
- var classof = classofRaw;
161
-
162
- var $Object$2 = Object;
163
- var split = uncurryThis$a(''.split);
164
-
165
- // fallback for non-array-like ES3 and non-enumerable old V8 strings
166
- var indexedObject = fails$6(function () {
167
- // throws an error in rhino, see https://github.com/mozilla/rhino/issues/346
168
- // eslint-disable-next-line no-prototype-builtins -- safe
169
- return !$Object$2('z').propertyIsEnumerable(0);
170
- }) ? function (it) {
171
- return classof(it) === 'String' ? split(it, '') : $Object$2(it);
172
- } : $Object$2;
173
-
174
- // we can't use just `it == null` since of `document.all` special case
175
- // https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot-aec
176
- var isNullOrUndefined$2 = function (it) {
177
- return it === null || it === undefined;
178
- };
179
-
180
- var isNullOrUndefined$1 = isNullOrUndefined$2;
181
-
182
- var $TypeError$6 = TypeError;
183
-
184
- // `RequireObjectCoercible` abstract operation
185
- // https://tc39.es/ecma262/#sec-requireobjectcoercible
186
- var requireObjectCoercible$2 = function (it) {
187
- if (isNullOrUndefined$1(it)) throw new $TypeError$6("Can't call method on " + it);
188
- return it;
189
- };
190
-
191
- // toObject with fallback for non-array-like ES3 strings
192
- var IndexedObject = indexedObject;
193
- var requireObjectCoercible$1 = requireObjectCoercible$2;
194
-
195
- var toIndexedObject$3 = function (it) {
196
- return IndexedObject(requireObjectCoercible$1(it));
197
- };
198
-
199
- // https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot
200
- var documentAll = typeof document == 'object' && document.all;
201
-
202
- // `IsCallable` abstract operation
203
- // https://tc39.es/ecma262/#sec-iscallable
204
- // eslint-disable-next-line unicorn/no-typeof-undefined -- required for testing
205
- var isCallable$a = typeof documentAll == 'undefined' && documentAll !== undefined ? function (argument) {
206
- return typeof argument == 'function' || argument === documentAll;
207
- } : function (argument) {
208
- return typeof argument == 'function';
209
- };
210
-
211
- var isCallable$9 = isCallable$a;
212
-
213
- var isObject$5 = function (it) {
214
- return typeof it == 'object' ? it !== null : isCallable$9(it);
215
- };
216
-
217
- var global$9 = global$a;
218
- var isCallable$8 = isCallable$a;
219
-
220
- var aFunction = function (argument) {
221
- return isCallable$8(argument) ? argument : undefined;
222
- };
223
-
224
- var getBuiltIn$3 = function (namespace, method) {
225
- return arguments.length < 2 ? aFunction(global$9[namespace]) : global$9[namespace] && global$9[namespace][method];
226
- };
227
-
228
- var uncurryThis$9 = functionUncurryThis;
229
-
230
- var objectIsPrototypeOf = uncurryThis$9({}.isPrototypeOf);
231
-
232
- var engineUserAgent = typeof navigator != 'undefined' && String(navigator.userAgent) || '';
233
-
234
- var global$8 = global$a;
235
- var userAgent = engineUserAgent;
236
-
237
- var process = global$8.process;
238
- var Deno = global$8.Deno;
239
- var versions = process && process.versions || Deno && Deno.version;
240
- var v8 = versions && versions.v8;
241
- var match, version;
242
-
243
- if (v8) {
244
- match = v8.split('.');
245
- // in old Chrome, versions of V8 isn't V8 = Chrome / 10
246
- // but their correct versions are not interesting for us
247
- version = match[0] > 0 && match[0] < 4 ? 1 : +(match[0] + match[1]);
248
- }
249
-
250
- // BrowserFS NodeJS `process` polyfill incorrectly set `.v8` to `0.0`
251
- // so check `userAgent` even if `.v8` exists, but 0
252
- if (!version && userAgent) {
253
- match = userAgent.match(/Edge\/(\d+)/);
254
- if (!match || match[1] >= 74) {
255
- match = userAgent.match(/Chrome\/(\d+)/);
256
- if (match) version = +match[1];
257
- }
258
- }
259
-
260
- var engineV8Version = version;
261
-
262
- /* eslint-disable es/no-symbol -- required for testing */
263
- var V8_VERSION = engineV8Version;
264
- var fails$5 = fails$9;
265
- var global$7 = global$a;
266
-
267
- var $String$3 = global$7.String;
268
-
269
- // eslint-disable-next-line es/no-object-getownpropertysymbols -- required for testing
270
- var symbolConstructorDetection = !!Object.getOwnPropertySymbols && !fails$5(function () {
271
- var symbol = Symbol('symbol detection');
272
- // Chrome 38 Symbol has incorrect toString conversion
273
- // `get-own-property-symbols` polyfill symbols converted to object are not Symbol instances
274
- // nb: Do not call `String` directly to avoid this being optimized out to `symbol+''` which will,
275
- // of course, fail.
276
- return !$String$3(symbol) || !(Object(symbol) instanceof Symbol) ||
277
- // Chrome 38-40 symbols are not inherited from DOM collections prototypes to instances
278
- !Symbol.sham && V8_VERSION && V8_VERSION < 41;
279
- });
280
-
281
- /* eslint-disable es/no-symbol -- required for testing */
282
- var NATIVE_SYMBOL$1 = symbolConstructorDetection;
283
-
284
- var useSymbolAsUid = NATIVE_SYMBOL$1
285
- && !Symbol.sham
286
- && typeof Symbol.iterator == 'symbol';
287
-
288
- var getBuiltIn$2 = getBuiltIn$3;
289
- var isCallable$7 = isCallable$a;
290
- var isPrototypeOf = objectIsPrototypeOf;
291
- var USE_SYMBOL_AS_UID$1 = useSymbolAsUid;
292
-
293
- var $Object$1 = Object;
294
-
295
- var isSymbol$2 = USE_SYMBOL_AS_UID$1 ? function (it) {
296
- return typeof it == 'symbol';
297
- } : function (it) {
298
- var $Symbol = getBuiltIn$2('Symbol');
299
- return isCallable$7($Symbol) && isPrototypeOf($Symbol.prototype, $Object$1(it));
300
- };
301
-
302
- var $String$2 = String;
303
-
304
- var tryToString$1 = function (argument) {
305
- try {
306
- return $String$2(argument);
307
- } catch (error) {
308
- return 'Object';
309
- }
310
- };
311
-
312
- var isCallable$6 = isCallable$a;
313
- var tryToString = tryToString$1;
314
-
315
- var $TypeError$5 = TypeError;
316
-
317
- // `Assert: IsCallable(argument) is true`
318
- var aCallable$3 = function (argument) {
319
- if (isCallable$6(argument)) return argument;
320
- throw new $TypeError$5(tryToString(argument) + ' is not a function');
321
- };
322
-
323
- var aCallable$2 = aCallable$3;
324
- var isNullOrUndefined = isNullOrUndefined$2;
325
-
326
- // `GetMethod` abstract operation
327
- // https://tc39.es/ecma262/#sec-getmethod
328
- var getMethod$2 = function (V, P) {
329
- var func = V[P];
330
- return isNullOrUndefined(func) ? undefined : aCallable$2(func);
331
- };
332
-
333
- var call$5 = functionCall;
334
- var isCallable$5 = isCallable$a;
335
- var isObject$4 = isObject$5;
336
-
337
- var $TypeError$4 = TypeError;
338
-
339
- // `OrdinaryToPrimitive` abstract operation
340
- // https://tc39.es/ecma262/#sec-ordinarytoprimitive
341
- var ordinaryToPrimitive$1 = function (input, pref) {
342
- var fn, val;
343
- if (pref === 'string' && isCallable$5(fn = input.toString) && !isObject$4(val = call$5(fn, input))) return val;
344
- if (isCallable$5(fn = input.valueOf) && !isObject$4(val = call$5(fn, input))) return val;
345
- if (pref !== 'string' && isCallable$5(fn = input.toString) && !isObject$4(val = call$5(fn, input))) return val;
346
- throw new $TypeError$4("Can't convert object to primitive value");
347
- };
348
-
349
- var sharedStore = {exports: {}};
350
-
351
- var global$6 = global$a;
352
-
353
- // eslint-disable-next-line es/no-object-defineproperty -- safe
354
- var defineProperty$1 = Object.defineProperty;
355
-
356
- var defineGlobalProperty$3 = function (key, value) {
357
- try {
358
- defineProperty$1(global$6, key, { value: value, configurable: true, writable: true });
359
- } catch (error) {
360
- global$6[key] = value;
361
- } return value;
362
- };
363
-
364
- var globalThis$1 = global$a;
365
- var defineGlobalProperty$2 = defineGlobalProperty$3;
366
-
367
- var SHARED = '__core-js_shared__';
368
- var store$3 = sharedStore.exports = globalThis$1[SHARED] || defineGlobalProperty$2(SHARED, {});
369
-
370
- (store$3.versions || (store$3.versions = [])).push({
371
- version: '3.36.1',
372
- mode: 'global',
373
- copyright: '© 2014-2024 Denis Pushkarev (zloirock.ru)',
374
- license: 'https://github.com/zloirock/core-js/blob/v3.36.1/LICENSE',
375
- source: 'https://github.com/zloirock/core-js'
376
- });
377
-
378
- var sharedStoreExports = sharedStore.exports;
379
-
380
- var store$2 = sharedStoreExports;
381
-
382
- var shared$3 = function (key, value) {
383
- return store$2[key] || (store$2[key] = value || {});
384
- };
385
-
386
- var requireObjectCoercible = requireObjectCoercible$2;
387
-
388
- var $Object = Object;
389
-
390
- // `ToObject` abstract operation
391
- // https://tc39.es/ecma262/#sec-toobject
392
- var toObject$1 = function (argument) {
393
- return $Object(requireObjectCoercible(argument));
394
- };
395
-
396
- var uncurryThis$8 = functionUncurryThis;
397
- var toObject = toObject$1;
398
-
399
- var hasOwnProperty = uncurryThis$8({}.hasOwnProperty);
400
-
401
- // `HasOwnProperty` abstract operation
402
- // https://tc39.es/ecma262/#sec-hasownproperty
403
- // eslint-disable-next-line es/no-object-hasown -- safe
404
- var hasOwnProperty_1 = Object.hasOwn || function hasOwn(it, key) {
405
- return hasOwnProperty(toObject(it), key);
406
- };
407
-
408
- var uncurryThis$7 = functionUncurryThis;
409
-
410
- var id = 0;
411
- var postfix = Math.random();
412
- var toString = uncurryThis$7(1.0.toString);
413
-
414
- var uid$2 = function (key) {
415
- return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString(++id + postfix, 36);
416
- };
417
-
418
- var global$5 = global$a;
419
- var shared$2 = shared$3;
420
- var hasOwn$6 = hasOwnProperty_1;
421
- var uid$1 = uid$2;
422
- var NATIVE_SYMBOL = symbolConstructorDetection;
423
- var USE_SYMBOL_AS_UID = useSymbolAsUid;
424
-
425
- var Symbol$1 = global$5.Symbol;
426
- var WellKnownSymbolsStore = shared$2('wks');
427
- var createWellKnownSymbol = USE_SYMBOL_AS_UID ? Symbol$1['for'] || Symbol$1 : Symbol$1 && Symbol$1.withoutSetter || uid$1;
428
-
429
- var wellKnownSymbol$1 = function (name) {
430
- if (!hasOwn$6(WellKnownSymbolsStore, name)) {
431
- WellKnownSymbolsStore[name] = NATIVE_SYMBOL && hasOwn$6(Symbol$1, name)
432
- ? Symbol$1[name]
433
- : createWellKnownSymbol('Symbol.' + name);
434
- } return WellKnownSymbolsStore[name];
435
- };
436
-
437
- var call$4 = functionCall;
438
- var isObject$3 = isObject$5;
439
- var isSymbol$1 = isSymbol$2;
440
- var getMethod$1 = getMethod$2;
441
- var ordinaryToPrimitive = ordinaryToPrimitive$1;
442
- var wellKnownSymbol = wellKnownSymbol$1;
443
-
444
- var $TypeError$3 = TypeError;
445
- var TO_PRIMITIVE = wellKnownSymbol('toPrimitive');
446
-
447
- // `ToPrimitive` abstract operation
448
- // https://tc39.es/ecma262/#sec-toprimitive
449
- var toPrimitive$1 = function (input, pref) {
450
- if (!isObject$3(input) || isSymbol$1(input)) return input;
451
- var exoticToPrim = getMethod$1(input, TO_PRIMITIVE);
452
- var result;
453
- if (exoticToPrim) {
454
- if (pref === undefined) pref = 'default';
455
- result = call$4(exoticToPrim, input, pref);
456
- if (!isObject$3(result) || isSymbol$1(result)) return result;
457
- throw new $TypeError$3("Can't convert object to primitive value");
458
- }
459
- if (pref === undefined) pref = 'number';
460
- return ordinaryToPrimitive(input, pref);
461
- };
462
-
463
- var toPrimitive = toPrimitive$1;
464
- var isSymbol = isSymbol$2;
465
-
466
- // `ToPropertyKey` abstract operation
467
- // https://tc39.es/ecma262/#sec-topropertykey
468
- var toPropertyKey$2 = function (argument) {
469
- var key = toPrimitive(argument, 'string');
470
- return isSymbol(key) ? key : key + '';
471
- };
472
-
473
- var global$4 = global$a;
474
- var isObject$2 = isObject$5;
475
-
476
- var document$1 = global$4.document;
477
- // typeof document.createElement is 'object' in old IE
478
- var EXISTS$1 = isObject$2(document$1) && isObject$2(document$1.createElement);
479
-
480
- var documentCreateElement = function (it) {
481
- return EXISTS$1 ? document$1.createElement(it) : {};
482
- };
483
-
484
- var DESCRIPTORS$6 = descriptors;
485
- var fails$4 = fails$9;
486
- var createElement = documentCreateElement;
487
-
488
- // Thanks to IE8 for its funny defineProperty
489
- var ie8DomDefine = !DESCRIPTORS$6 && !fails$4(function () {
490
- // eslint-disable-next-line es/no-object-defineproperty -- required for testing
491
- return Object.defineProperty(createElement('div'), 'a', {
492
- get: function () { return 7; }
493
- }).a !== 7;
494
- });
495
-
496
- var DESCRIPTORS$5 = descriptors;
497
- var call$3 = functionCall;
498
- var propertyIsEnumerableModule = objectPropertyIsEnumerable;
499
- var createPropertyDescriptor$1 = createPropertyDescriptor$2;
500
- var toIndexedObject$2 = toIndexedObject$3;
501
- var toPropertyKey$1 = toPropertyKey$2;
502
- var hasOwn$5 = hasOwnProperty_1;
503
- var IE8_DOM_DEFINE$1 = ie8DomDefine;
504
-
505
- // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
506
- var $getOwnPropertyDescriptor$1 = Object.getOwnPropertyDescriptor;
507
-
508
- // `Object.getOwnPropertyDescriptor` method
509
- // https://tc39.es/ecma262/#sec-object.getownpropertydescriptor
510
- objectGetOwnPropertyDescriptor.f = DESCRIPTORS$5 ? $getOwnPropertyDescriptor$1 : function getOwnPropertyDescriptor(O, P) {
511
- O = toIndexedObject$2(O);
512
- P = toPropertyKey$1(P);
513
- if (IE8_DOM_DEFINE$1) try {
514
- return $getOwnPropertyDescriptor$1(O, P);
515
- } catch (error) { /* empty */ }
516
- if (hasOwn$5(O, P)) return createPropertyDescriptor$1(!call$3(propertyIsEnumerableModule.f, O, P), O[P]);
517
- };
518
-
519
- var objectDefineProperty = {};
520
-
521
- var DESCRIPTORS$4 = descriptors;
522
- var fails$3 = fails$9;
523
-
524
- // V8 ~ Chrome 36-
525
- // https://bugs.chromium.org/p/v8/issues/detail?id=3334
526
- var v8PrototypeDefineBug = DESCRIPTORS$4 && fails$3(function () {
527
- // eslint-disable-next-line es/no-object-defineproperty -- required for testing
528
- return Object.defineProperty(function () { /* empty */ }, 'prototype', {
529
- value: 42,
530
- writable: false
531
- }).prototype !== 42;
532
- });
533
-
534
- var isObject$1 = isObject$5;
535
-
536
- var $String$1 = String;
537
- var $TypeError$2 = TypeError;
538
-
539
- // `Assert: Type(argument) is Object`
540
- var anObject$4 = function (argument) {
541
- if (isObject$1(argument)) return argument;
542
- throw new $TypeError$2($String$1(argument) + ' is not an object');
543
- };
544
-
545
- var DESCRIPTORS$3 = descriptors;
546
- var IE8_DOM_DEFINE = ie8DomDefine;
547
- var V8_PROTOTYPE_DEFINE_BUG = v8PrototypeDefineBug;
548
- var anObject$3 = anObject$4;
549
- var toPropertyKey = toPropertyKey$2;
550
-
551
- var $TypeError$1 = TypeError;
552
- // eslint-disable-next-line es/no-object-defineproperty -- safe
553
- var $defineProperty = Object.defineProperty;
554
- // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
555
- var $getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
556
- var ENUMERABLE = 'enumerable';
557
- var CONFIGURABLE$1 = 'configurable';
558
- var WRITABLE = 'writable';
559
-
560
- // `Object.defineProperty` method
561
- // https://tc39.es/ecma262/#sec-object.defineproperty
562
- objectDefineProperty.f = DESCRIPTORS$3 ? V8_PROTOTYPE_DEFINE_BUG ? function defineProperty(O, P, Attributes) {
563
- anObject$3(O);
564
- P = toPropertyKey(P);
565
- anObject$3(Attributes);
566
- if (typeof O === 'function' && P === 'prototype' && 'value' in Attributes && WRITABLE in Attributes && !Attributes[WRITABLE]) {
567
- var current = $getOwnPropertyDescriptor(O, P);
568
- if (current && current[WRITABLE]) {
569
- O[P] = Attributes.value;
570
- Attributes = {
571
- configurable: CONFIGURABLE$1 in Attributes ? Attributes[CONFIGURABLE$1] : current[CONFIGURABLE$1],
572
- enumerable: ENUMERABLE in Attributes ? Attributes[ENUMERABLE] : current[ENUMERABLE],
573
- writable: false
574
- };
575
- }
576
- } return $defineProperty(O, P, Attributes);
577
- } : $defineProperty : function defineProperty(O, P, Attributes) {
578
- anObject$3(O);
579
- P = toPropertyKey(P);
580
- anObject$3(Attributes);
581
- if (IE8_DOM_DEFINE) try {
582
- return $defineProperty(O, P, Attributes);
583
- } catch (error) { /* empty */ }
584
- if ('get' in Attributes || 'set' in Attributes) throw new $TypeError$1('Accessors not supported');
585
- if ('value' in Attributes) O[P] = Attributes.value;
586
- return O;
587
- };
588
-
589
- var DESCRIPTORS$2 = descriptors;
590
- var definePropertyModule$2 = objectDefineProperty;
591
- var createPropertyDescriptor = createPropertyDescriptor$2;
592
-
593
- var createNonEnumerableProperty$2 = DESCRIPTORS$2 ? function (object, key, value) {
594
- return definePropertyModule$2.f(object, key, createPropertyDescriptor(1, value));
595
- } : function (object, key, value) {
596
- object[key] = value;
597
- return object;
598
- };
599
-
600
- var makeBuiltIn$2 = {exports: {}};
601
-
602
- var DESCRIPTORS$1 = descriptors;
603
- var hasOwn$4 = hasOwnProperty_1;
604
-
605
- var FunctionPrototype = Function.prototype;
606
- // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
607
- var getDescriptor = DESCRIPTORS$1 && Object.getOwnPropertyDescriptor;
608
-
609
- var EXISTS = hasOwn$4(FunctionPrototype, 'name');
610
- // additional protection from minified / mangled / dropped function names
611
- var PROPER = EXISTS && (function something() { /* empty */ }).name === 'something';
612
- var CONFIGURABLE = EXISTS && (!DESCRIPTORS$1 || (DESCRIPTORS$1 && getDescriptor(FunctionPrototype, 'name').configurable));
613
-
614
- var functionName = {
615
- EXISTS: EXISTS,
616
- PROPER: PROPER,
617
- CONFIGURABLE: CONFIGURABLE
618
- };
619
-
620
- var uncurryThis$6 = functionUncurryThis;
621
- var isCallable$4 = isCallable$a;
622
- var store$1 = sharedStoreExports;
623
-
624
- var functionToString = uncurryThis$6(Function.toString);
625
-
626
- // this helper broken in `core-js@3.4.1-3.4.4`, so we can't use `shared` helper
627
- if (!isCallable$4(store$1.inspectSource)) {
628
- store$1.inspectSource = function (it) {
629
- return functionToString(it);
630
- };
631
- }
632
-
633
- var inspectSource$1 = store$1.inspectSource;
634
-
635
- var global$3 = global$a;
636
- var isCallable$3 = isCallable$a;
637
-
638
- var WeakMap$1 = global$3.WeakMap;
639
-
640
- var weakMapBasicDetection = isCallable$3(WeakMap$1) && /native code/.test(String(WeakMap$1));
641
-
642
- var shared$1 = shared$3;
643
- var uid = uid$2;
644
-
645
- var keys$1 = shared$1('keys');
646
-
647
- var sharedKey$1 = function (key) {
648
- return keys$1[key] || (keys$1[key] = uid(key));
649
- };
650
-
651
- var hiddenKeys$3 = {};
652
-
653
- var NATIVE_WEAK_MAP = weakMapBasicDetection;
654
- var global$2 = global$a;
655
- var isObject = isObject$5;
656
- var createNonEnumerableProperty$1 = createNonEnumerableProperty$2;
657
- var hasOwn$3 = hasOwnProperty_1;
658
- var shared = sharedStoreExports;
659
- var sharedKey = sharedKey$1;
660
- var hiddenKeys$2 = hiddenKeys$3;
661
-
662
- var OBJECT_ALREADY_INITIALIZED = 'Object already initialized';
663
- var TypeError$1 = global$2.TypeError;
664
- var WeakMap = global$2.WeakMap;
665
- var set, get, has$6;
666
-
667
- var enforce = function (it) {
668
- return has$6(it) ? get(it) : set(it, {});
669
- };
670
-
671
- var getterFor = function (TYPE) {
672
- return function (it) {
673
- var state;
674
- if (!isObject(it) || (state = get(it)).type !== TYPE) {
675
- throw new TypeError$1('Incompatible receiver, ' + TYPE + ' required');
676
- } return state;
677
- };
678
- };
679
-
680
- if (NATIVE_WEAK_MAP || shared.state) {
681
- var store = shared.state || (shared.state = new WeakMap());
682
- /* eslint-disable no-self-assign -- prototype methods protection */
683
- store.get = store.get;
684
- store.has = store.has;
685
- store.set = store.set;
686
- /* eslint-enable no-self-assign -- prototype methods protection */
687
- set = function (it, metadata) {
688
- if (store.has(it)) throw new TypeError$1(OBJECT_ALREADY_INITIALIZED);
689
- metadata.facade = it;
690
- store.set(it, metadata);
691
- return metadata;
692
- };
693
- get = function (it) {
694
- return store.get(it) || {};
695
- };
696
- has$6 = function (it) {
697
- return store.has(it);
698
- };
699
- } else {
700
- var STATE = sharedKey('state');
701
- hiddenKeys$2[STATE] = true;
702
- set = function (it, metadata) {
703
- if (hasOwn$3(it, STATE)) throw new TypeError$1(OBJECT_ALREADY_INITIALIZED);
704
- metadata.facade = it;
705
- createNonEnumerableProperty$1(it, STATE, metadata);
706
- return metadata;
707
- };
708
- get = function (it) {
709
- return hasOwn$3(it, STATE) ? it[STATE] : {};
710
- };
711
- has$6 = function (it) {
712
- return hasOwn$3(it, STATE);
713
- };
714
- }
715
-
716
- var internalState = {
717
- set: set,
718
- get: get,
719
- has: has$6,
720
- enforce: enforce,
721
- getterFor: getterFor
722
- };
723
-
724
- var uncurryThis$5 = functionUncurryThis;
725
- var fails$2 = fails$9;
726
- var isCallable$2 = isCallable$a;
727
- var hasOwn$2 = hasOwnProperty_1;
728
- var DESCRIPTORS = descriptors;
729
- var CONFIGURABLE_FUNCTION_NAME = functionName.CONFIGURABLE;
730
- var inspectSource = inspectSource$1;
731
- var InternalStateModule = internalState;
732
-
733
- var enforceInternalState = InternalStateModule.enforce;
734
- var getInternalState = InternalStateModule.get;
735
- var $String = String;
736
- // eslint-disable-next-line es/no-object-defineproperty -- safe
737
- var defineProperty = Object.defineProperty;
738
- var stringSlice = uncurryThis$5(''.slice);
739
- var replace = uncurryThis$5(''.replace);
740
- var join = uncurryThis$5([].join);
741
-
742
- var CONFIGURABLE_LENGTH = DESCRIPTORS && !fails$2(function () {
743
- return defineProperty(function () { /* empty */ }, 'length', { value: 8 }).length !== 8;
744
- });
745
-
746
- var TEMPLATE = String(String).split('String');
747
-
748
- var makeBuiltIn$1 = makeBuiltIn$2.exports = function (value, name, options) {
749
- if (stringSlice($String(name), 0, 7) === 'Symbol(') {
750
- name = '[' + replace($String(name), /^Symbol\(([^)]*)\).*$/, '$1') + ']';
751
- }
752
- if (options && options.getter) name = 'get ' + name;
753
- if (options && options.setter) name = 'set ' + name;
754
- if (!hasOwn$2(value, 'name') || (CONFIGURABLE_FUNCTION_NAME && value.name !== name)) {
755
- if (DESCRIPTORS) defineProperty(value, 'name', { value: name, configurable: true });
756
- else value.name = name;
757
- }
758
- if (CONFIGURABLE_LENGTH && options && hasOwn$2(options, 'arity') && value.length !== options.arity) {
759
- defineProperty(value, 'length', { value: options.arity });
760
- }
761
- try {
762
- if (options && hasOwn$2(options, 'constructor') && options.constructor) {
763
- if (DESCRIPTORS) defineProperty(value, 'prototype', { writable: false });
764
- // in V8 ~ Chrome 53, prototypes of some methods, like `Array.prototype.values`, are non-writable
765
- } else if (value.prototype) value.prototype = undefined;
766
- } catch (error) { /* empty */ }
767
- var state = enforceInternalState(value);
768
- if (!hasOwn$2(state, 'source')) {
769
- state.source = join(TEMPLATE, typeof name == 'string' ? name : '');
770
- } return value;
771
- };
772
-
773
- // add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative
774
- // eslint-disable-next-line no-extend-native -- required
775
- Function.prototype.toString = makeBuiltIn$1(function toString() {
776
- return isCallable$2(this) && getInternalState(this).source || inspectSource(this);
777
- }, 'toString');
778
-
779
- var makeBuiltInExports = makeBuiltIn$2.exports;
780
-
781
- var isCallable$1 = isCallable$a;
782
- var definePropertyModule$1 = objectDefineProperty;
783
- var makeBuiltIn = makeBuiltInExports;
784
- var defineGlobalProperty$1 = defineGlobalProperty$3;
785
-
786
- var defineBuiltIn$1 = function (O, key, value, options) {
787
- if (!options) options = {};
788
- var simple = options.enumerable;
789
- var name = options.name !== undefined ? options.name : key;
790
- if (isCallable$1(value)) makeBuiltIn(value, name, options);
791
- if (options.global) {
792
- if (simple) O[key] = value;
793
- else defineGlobalProperty$1(key, value);
794
- } else {
795
- try {
796
- if (!options.unsafe) delete O[key];
797
- else if (O[key]) simple = true;
798
- } catch (error) { /* empty */ }
799
- if (simple) O[key] = value;
800
- else definePropertyModule$1.f(O, key, {
801
- value: value,
802
- enumerable: false,
803
- configurable: !options.nonConfigurable,
804
- writable: !options.nonWritable
805
- });
806
- } return O;
807
- };
808
-
809
- var objectGetOwnPropertyNames = {};
810
-
811
- var ceil = Math.ceil;
812
- var floor = Math.floor;
813
-
814
- // `Math.trunc` method
815
- // https://tc39.es/ecma262/#sec-math.trunc
816
- // eslint-disable-next-line es/no-math-trunc -- safe
817
- var mathTrunc = Math.trunc || function trunc(x) {
818
- var n = +x;
819
- return (n > 0 ? floor : ceil)(n);
820
- };
821
-
822
- var trunc = mathTrunc;
823
-
824
- // `ToIntegerOrInfinity` abstract operation
825
- // https://tc39.es/ecma262/#sec-tointegerorinfinity
826
- var toIntegerOrInfinity$3 = function (argument) {
827
- var number = +argument;
828
- // eslint-disable-next-line no-self-compare -- NaN check
829
- return number !== number || number === 0 ? 0 : trunc(number);
830
- };
831
-
832
- var toIntegerOrInfinity$2 = toIntegerOrInfinity$3;
833
-
834
- var max$1 = Math.max;
835
- var min$1 = Math.min;
836
-
837
- // Helper for a popular repeating case of the spec:
838
- // Let integer be ? ToInteger(index).
839
- // If integer < 0, let result be max((length + integer), 0); else let result be min(integer, length).
840
- var toAbsoluteIndex$1 = function (index, length) {
841
- var integer = toIntegerOrInfinity$2(index);
842
- return integer < 0 ? max$1(integer + length, 0) : min$1(integer, length);
843
- };
844
-
845
- var toIntegerOrInfinity$1 = toIntegerOrInfinity$3;
846
-
847
- var min = Math.min;
848
-
849
- // `ToLength` abstract operation
850
- // https://tc39.es/ecma262/#sec-tolength
851
- var toLength$1 = function (argument) {
852
- var len = toIntegerOrInfinity$1(argument);
853
- return len > 0 ? min(len, 0x1FFFFFFFFFFFFF) : 0; // 2 ** 53 - 1 == 9007199254740991
854
- };
855
-
856
- var toLength = toLength$1;
857
-
858
- // `LengthOfArrayLike` abstract operation
859
- // https://tc39.es/ecma262/#sec-lengthofarraylike
860
- var lengthOfArrayLike$1 = function (obj) {
861
- return toLength(obj.length);
862
- };
863
-
864
- var toIndexedObject$1 = toIndexedObject$3;
865
- var toAbsoluteIndex = toAbsoluteIndex$1;
866
- var lengthOfArrayLike = lengthOfArrayLike$1;
867
-
868
- // `Array.prototype.{ indexOf, includes }` methods implementation
869
- var createMethod = function (IS_INCLUDES) {
870
- return function ($this, el, fromIndex) {
871
- var O = toIndexedObject$1($this);
872
- var length = lengthOfArrayLike(O);
873
- if (length === 0) return !IS_INCLUDES && -1;
874
- var index = toAbsoluteIndex(fromIndex, length);
875
- var value;
876
- // Array#includes uses SameValueZero equality algorithm
877
- // eslint-disable-next-line no-self-compare -- NaN check
878
- if (IS_INCLUDES && el !== el) while (length > index) {
879
- value = O[index++];
880
- // eslint-disable-next-line no-self-compare -- NaN check
881
- if (value !== value) return true;
882
- // Array#indexOf ignores holes, Array#includes - not
883
- } else for (;length > index; index++) {
884
- if ((IS_INCLUDES || index in O) && O[index] === el) return IS_INCLUDES || index || 0;
885
- } return !IS_INCLUDES && -1;
886
- };
887
- };
888
-
889
- var arrayIncludes = {
890
- // `Array.prototype.includes` method
891
- // https://tc39.es/ecma262/#sec-array.prototype.includes
892
- includes: createMethod(true),
893
- // `Array.prototype.indexOf` method
894
- // https://tc39.es/ecma262/#sec-array.prototype.indexof
895
- indexOf: createMethod(false)
896
- };
897
-
898
- var uncurryThis$4 = functionUncurryThis;
899
- var hasOwn$1 = hasOwnProperty_1;
900
- var toIndexedObject = toIndexedObject$3;
901
- var indexOf = arrayIncludes.indexOf;
902
- var hiddenKeys$1 = hiddenKeys$3;
903
-
904
- var push = uncurryThis$4([].push);
905
-
906
- var objectKeysInternal = function (object, names) {
907
- var O = toIndexedObject(object);
908
- var i = 0;
909
- var result = [];
910
- var key;
911
- for (key in O) !hasOwn$1(hiddenKeys$1, key) && hasOwn$1(O, key) && push(result, key);
912
- // Don't enum bug & hidden keys
913
- while (names.length > i) if (hasOwn$1(O, key = names[i++])) {
914
- ~indexOf(result, key) || push(result, key);
915
- }
916
- return result;
917
- };
918
-
919
- // IE8- don't enum bug keys
920
- var enumBugKeys$1 = [
921
- 'constructor',
922
- 'hasOwnProperty',
923
- 'isPrototypeOf',
924
- 'propertyIsEnumerable',
925
- 'toLocaleString',
926
- 'toString',
927
- 'valueOf'
928
- ];
929
-
930
- var internalObjectKeys = objectKeysInternal;
931
- var enumBugKeys = enumBugKeys$1;
932
-
933
- var hiddenKeys = enumBugKeys.concat('length', 'prototype');
934
-
935
- // `Object.getOwnPropertyNames` method
936
- // https://tc39.es/ecma262/#sec-object.getownpropertynames
937
- // eslint-disable-next-line es/no-object-getownpropertynames -- safe
938
- objectGetOwnPropertyNames.f = Object.getOwnPropertyNames || function getOwnPropertyNames(O) {
939
- return internalObjectKeys(O, hiddenKeys);
940
- };
941
-
942
- var objectGetOwnPropertySymbols = {};
943
-
944
- // eslint-disable-next-line es/no-object-getownpropertysymbols -- safe
945
- objectGetOwnPropertySymbols.f = Object.getOwnPropertySymbols;
946
-
947
- var getBuiltIn$1 = getBuiltIn$3;
948
- var uncurryThis$3 = functionUncurryThis;
949
- var getOwnPropertyNamesModule = objectGetOwnPropertyNames;
950
- var getOwnPropertySymbolsModule = objectGetOwnPropertySymbols;
951
- var anObject$2 = anObject$4;
952
-
953
- var concat = uncurryThis$3([].concat);
954
-
955
- // all object keys, includes non-enumerable and symbols
956
- var ownKeys$1 = getBuiltIn$1('Reflect', 'ownKeys') || function ownKeys(it) {
957
- var keys = getOwnPropertyNamesModule.f(anObject$2(it));
958
- var getOwnPropertySymbols = getOwnPropertySymbolsModule.f;
959
- return getOwnPropertySymbols ? concat(keys, getOwnPropertySymbols(it)) : keys;
960
- };
961
-
962
- var hasOwn = hasOwnProperty_1;
963
- var ownKeys = ownKeys$1;
964
- var getOwnPropertyDescriptorModule = objectGetOwnPropertyDescriptor;
965
- var definePropertyModule = objectDefineProperty;
966
-
967
- var copyConstructorProperties$1 = function (target, source, exceptions) {
968
- var keys = ownKeys(source);
969
- var defineProperty = definePropertyModule.f;
970
- var getOwnPropertyDescriptor = getOwnPropertyDescriptorModule.f;
971
- for (var i = 0; i < keys.length; i++) {
972
- var key = keys[i];
973
- if (!hasOwn(target, key) && !(exceptions && hasOwn(exceptions, key))) {
974
- defineProperty(target, key, getOwnPropertyDescriptor(source, key));
975
- }
976
- }
977
- };
978
-
979
- var fails$1 = fails$9;
980
- var isCallable = isCallable$a;
981
-
982
- var replacement = /#|\.prototype\./;
983
-
984
- var isForced$1 = function (feature, detection) {
985
- var value = data[normalize(feature)];
986
- return value === POLYFILL ? true
987
- : value === NATIVE ? false
988
- : isCallable(detection) ? fails$1(detection)
989
- : !!detection;
990
- };
991
-
992
- var normalize = isForced$1.normalize = function (string) {
993
- return String(string).replace(replacement, '.').toLowerCase();
994
- };
995
-
996
- var data = isForced$1.data = {};
997
- var NATIVE = isForced$1.NATIVE = 'N';
998
- var POLYFILL = isForced$1.POLYFILL = 'P';
999
-
1000
- var isForced_1 = isForced$1;
1001
-
1002
- var global$1 = global$a;
1003
- var getOwnPropertyDescriptor = objectGetOwnPropertyDescriptor.f;
1004
- var createNonEnumerableProperty = createNonEnumerableProperty$2;
1005
- var defineBuiltIn = defineBuiltIn$1;
1006
- var defineGlobalProperty = defineGlobalProperty$3;
1007
- var copyConstructorProperties = copyConstructorProperties$1;
1008
- var isForced = isForced_1;
1009
-
1010
- /*
1011
- options.target - name of the target object
1012
- options.global - target is the global object
1013
- options.stat - export as static methods of target
1014
- options.proto - export as prototype methods of target
1015
- options.real - real prototype method for the `pure` version
1016
- options.forced - export even if the native feature is available
1017
- options.bind - bind methods to the target, required for the `pure` version
1018
- options.wrap - wrap constructors to preventing global pollution, required for the `pure` version
1019
- options.unsafe - use the simple assignment of property instead of delete + defineProperty
1020
- options.sham - add a flag to not completely full polyfills
1021
- options.enumerable - export as enumerable property
1022
- options.dontCallGetSet - prevent calling a getter on target
1023
- options.name - the .name of the function if it does not match the key
1024
- */
1025
- var _export = function (options, source) {
1026
- var TARGET = options.target;
1027
- var GLOBAL = options.global;
1028
- var STATIC = options.stat;
1029
- var FORCED, target, key, targetProperty, sourceProperty, descriptor;
1030
- if (GLOBAL) {
1031
- target = global$1;
1032
- } else if (STATIC) {
1033
- target = global$1[TARGET] || defineGlobalProperty(TARGET, {});
1034
- } else {
1035
- target = global$1[TARGET] && global$1[TARGET].prototype;
1036
- }
1037
- if (target) for (key in source) {
1038
- sourceProperty = source[key];
1039
- if (options.dontCallGetSet) {
1040
- descriptor = getOwnPropertyDescriptor(target, key);
1041
- targetProperty = descriptor && descriptor.value;
1042
- } else targetProperty = target[key];
1043
- FORCED = isForced(GLOBAL ? key : TARGET + (STATIC ? '.' : '#') + key, options.forced);
1044
- // contained in target
1045
- if (!FORCED && targetProperty !== undefined) {
1046
- if (typeof sourceProperty == typeof targetProperty) continue;
1047
- copyConstructorProperties(sourceProperty, targetProperty);
1048
- }
1049
- // add a flag to not completely full polyfills
1050
- if (options.sham || (targetProperty && targetProperty.sham)) {
1051
- createNonEnumerableProperty(sourceProperty, 'sham', true);
1052
- }
1053
- defineBuiltIn(target, key, sourceProperty, options);
1054
- }
1055
- };
1056
-
1057
- var uncurryThis$2 = functionUncurryThis;
1058
-
1059
- // eslint-disable-next-line es/no-set -- safe
1060
- var SetPrototype$1 = Set.prototype;
1061
-
1062
- var setHelpers = {
1063
- // eslint-disable-next-line es/no-set -- safe
1064
- Set: Set,
1065
- add: uncurryThis$2(SetPrototype$1.add),
1066
- has: uncurryThis$2(SetPrototype$1.has),
1067
- remove: uncurryThis$2(SetPrototype$1['delete']),
1068
- proto: SetPrototype$1
1069
- };
1070
-
1071
- var has$5 = setHelpers.has;
1072
-
1073
- // Perform ? RequireInternalSlot(M, [[SetData]])
1074
- var aSet$7 = function (it) {
1075
- has$5(it);
1076
- return it;
1077
- };
1078
-
1079
- var call$2 = functionCall;
1080
-
1081
- var iterateSimple$7 = function (record, fn, ITERATOR_INSTEAD_OF_RECORD) {
1082
- var iterator = ITERATOR_INSTEAD_OF_RECORD ? record : record.iterator;
1083
- var next = record.next;
1084
- var step, result;
1085
- while (!(step = call$2(next, iterator)).done) {
1086
- result = fn(step.value);
1087
- if (result !== undefined) return result;
1088
- }
1089
- };
1090
-
1091
- var uncurryThis$1 = functionUncurryThis;
1092
- var iterateSimple$6 = iterateSimple$7;
1093
- var SetHelpers$5 = setHelpers;
1094
-
1095
- var Set$3 = SetHelpers$5.Set;
1096
- var SetPrototype = SetHelpers$5.proto;
1097
- var forEach = uncurryThis$1(SetPrototype.forEach);
1098
- var keys = uncurryThis$1(SetPrototype.keys);
1099
- var next = keys(new Set$3()).next;
1100
-
1101
- var setIterate = function (set, fn, interruptible) {
1102
- return interruptible ? iterateSimple$6({ iterator: keys(set), next: next }, fn) : forEach(set, fn);
1103
- };
1104
-
1105
- var SetHelpers$4 = setHelpers;
1106
- var iterate$1 = setIterate;
1107
-
1108
- var Set$2 = SetHelpers$4.Set;
1109
- var add$3 = SetHelpers$4.add;
1110
-
1111
- var setClone = function (set) {
1112
- var result = new Set$2();
1113
- iterate$1(set, function (it) {
1114
- add$3(result, it);
1115
- });
1116
- return result;
1117
- };
1118
-
1119
- var uncurryThis = functionUncurryThis;
1120
- var aCallable$1 = aCallable$3;
1121
-
1122
- var functionUncurryThisAccessor = function (object, key, method) {
1123
- try {
1124
- // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
1125
- return uncurryThis(aCallable$1(Object.getOwnPropertyDescriptor(object, key)[method]));
1126
- } catch (error) { /* empty */ }
1127
- };
1128
-
1129
- var uncurryThisAccessor = functionUncurryThisAccessor;
1130
- var SetHelpers$3 = setHelpers;
1131
-
1132
- var setSize = uncurryThisAccessor(SetHelpers$3.proto, 'size', 'get') || function (set) {
1133
- return set.size;
1134
- };
1135
-
1136
- // `GetIteratorDirect(obj)` abstract operation
1137
- // https://tc39.es/proposal-iterator-helpers/#sec-getiteratordirect
1138
- var getIteratorDirect$1 = function (obj) {
1139
- return {
1140
- iterator: obj,
1141
- next: obj.next,
1142
- done: false
1143
- };
1144
- };
1145
-
1146
- var aCallable = aCallable$3;
1147
- var anObject$1 = anObject$4;
1148
- var call$1 = functionCall;
1149
- var toIntegerOrInfinity = toIntegerOrInfinity$3;
1150
- var getIteratorDirect = getIteratorDirect$1;
1151
-
1152
- var INVALID_SIZE = 'Invalid size';
1153
- var $RangeError = RangeError;
1154
- var $TypeError = TypeError;
1155
- var max = Math.max;
1156
-
1157
- var SetRecord = function (set, intSize) {
1158
- this.set = set;
1159
- this.size = max(intSize, 0);
1160
- this.has = aCallable(set.has);
1161
- this.keys = aCallable(set.keys);
1162
- };
1163
-
1164
- SetRecord.prototype = {
1165
- getIterator: function () {
1166
- return getIteratorDirect(anObject$1(call$1(this.keys, this.set)));
1167
- },
1168
- includes: function (it) {
1169
- return call$1(this.has, this.set, it);
1170
- }
1171
- };
1172
-
1173
- // `GetSetRecord` abstract operation
1174
- // https://tc39.es/proposal-set-methods/#sec-getsetrecord
1175
- var getSetRecord$7 = function (obj) {
1176
- anObject$1(obj);
1177
- var numSize = +obj.size;
1178
- // NOTE: If size is undefined, then numSize will be NaN
1179
- // eslint-disable-next-line no-self-compare -- NaN check
1180
- if (numSize !== numSize) throw new $TypeError(INVALID_SIZE);
1181
- var intSize = toIntegerOrInfinity(numSize);
1182
- if (intSize < 0) throw new $RangeError(INVALID_SIZE);
1183
- return new SetRecord(obj, intSize);
1184
- };
1185
-
1186
- var aSet$6 = aSet$7;
1187
- var SetHelpers$2 = setHelpers;
1188
- var clone$2 = setClone;
1189
- var size$4 = setSize;
1190
- var getSetRecord$6 = getSetRecord$7;
1191
- var iterateSet$2 = setIterate;
1192
- var iterateSimple$5 = iterateSimple$7;
1193
-
1194
- var has$4 = SetHelpers$2.has;
1195
- var remove$1 = SetHelpers$2.remove;
1196
-
1197
- // `Set.prototype.difference` method
1198
- // https://github.com/tc39/proposal-set-methods
1199
- var setDifference = function difference(other) {
1200
- var O = aSet$6(this);
1201
- var otherRec = getSetRecord$6(other);
1202
- var result = clone$2(O);
1203
- if (size$4(O) <= otherRec.size) iterateSet$2(O, function (e) {
1204
- if (otherRec.includes(e)) remove$1(result, e);
1205
- });
1206
- else iterateSimple$5(otherRec.getIterator(), function (e) {
1207
- if (has$4(O, e)) remove$1(result, e);
1208
- });
1209
- return result;
1210
- };
1211
-
1212
- var getBuiltIn = getBuiltIn$3;
1213
-
1214
- var createSetLike = function (size) {
1215
- return {
1216
- size: size,
1217
- has: function () {
1218
- return false;
1219
- },
1220
- keys: function () {
1221
- return {
1222
- next: function () {
1223
- return { done: true };
1224
- }
1225
- };
1226
- }
1227
- };
1228
- };
1229
-
1230
- var setMethodAcceptSetLike$7 = function (name) {
1231
- var Set = getBuiltIn('Set');
1232
- try {
1233
- new Set()[name](createSetLike(0));
1234
- try {
1235
- // late spec change, early WebKit ~ Safari 17.0 beta implementation does not pass it
1236
- // https://github.com/tc39/proposal-set-methods/pull/88
1237
- new Set()[name](createSetLike(-1));
1238
- return false;
1239
- } catch (error2) {
1240
- return true;
1241
- }
1242
- } catch (error) {
1243
- return false;
1244
- }
1245
- };
1246
-
1247
- var $$6 = _export;
1248
- var difference = setDifference;
1249
- var setMethodAcceptSetLike$6 = setMethodAcceptSetLike$7;
1250
-
1251
- // `Set.prototype.difference` method
1252
- // https://github.com/tc39/proposal-set-methods
1253
- $$6({ target: 'Set', proto: true, real: true, forced: !setMethodAcceptSetLike$6('difference') }, {
1254
- difference: difference
1255
- });
1256
-
1257
- var aSet$5 = aSet$7;
1258
- var SetHelpers$1 = setHelpers;
1259
- var size$3 = setSize;
1260
- var getSetRecord$5 = getSetRecord$7;
1261
- var iterateSet$1 = setIterate;
1262
- var iterateSimple$4 = iterateSimple$7;
1263
-
1264
- var Set$1 = SetHelpers$1.Set;
1265
- var add$2 = SetHelpers$1.add;
1266
- var has$3 = SetHelpers$1.has;
1267
-
1268
- // `Set.prototype.intersection` method
1269
- // https://github.com/tc39/proposal-set-methods
1270
- var setIntersection = function intersection(other) {
1271
- var O = aSet$5(this);
1272
- var otherRec = getSetRecord$5(other);
1273
- var result = new Set$1();
1274
-
1275
- if (size$3(O) > otherRec.size) {
1276
- iterateSimple$4(otherRec.getIterator(), function (e) {
1277
- if (has$3(O, e)) add$2(result, e);
1278
- });
1279
- } else {
1280
- iterateSet$1(O, function (e) {
1281
- if (otherRec.includes(e)) add$2(result, e);
1282
- });
1283
- }
1284
-
1285
- return result;
1286
- };
1287
-
1288
- var $$5 = _export;
1289
- var fails = fails$9;
1290
- var intersection = setIntersection;
1291
- var setMethodAcceptSetLike$5 = setMethodAcceptSetLike$7;
1292
-
1293
- var INCORRECT = !setMethodAcceptSetLike$5('intersection') || fails(function () {
1294
- // eslint-disable-next-line es/no-array-from, es/no-set -- testing
1295
- return String(Array.from(new Set([1, 2, 3]).intersection(new Set([3, 2])))) !== '3,2';
1296
- });
1297
-
1298
- // `Set.prototype.intersection` method
1299
- // https://github.com/tc39/proposal-set-methods
1300
- $$5({ target: 'Set', proto: true, real: true, forced: INCORRECT }, {
1301
- intersection: intersection
1302
- });
1303
-
1304
- var call = functionCall;
1305
- var anObject = anObject$4;
1306
- var getMethod = getMethod$2;
1307
-
1308
- var iteratorClose$2 = function (iterator, kind, value) {
1309
- var innerResult, innerError;
1310
- anObject(iterator);
1311
- try {
1312
- innerResult = getMethod(iterator, 'return');
1313
- if (!innerResult) {
1314
- if (kind === 'throw') throw value;
1315
- return value;
1316
- }
1317
- innerResult = call(innerResult, iterator);
1318
- } catch (error) {
1319
- innerError = true;
1320
- innerResult = error;
1321
- }
1322
- if (kind === 'throw') throw value;
1323
- if (innerError) throw innerResult;
1324
- anObject(innerResult);
1325
- return value;
1326
- };
1327
-
1328
- var aSet$4 = aSet$7;
1329
- var has$2 = setHelpers.has;
1330
- var size$2 = setSize;
1331
- var getSetRecord$4 = getSetRecord$7;
1332
- var iterateSet = setIterate;
1333
- var iterateSimple$3 = iterateSimple$7;
1334
- var iteratorClose$1 = iteratorClose$2;
1335
-
1336
- // `Set.prototype.isDisjointFrom` method
1337
- // https://tc39.github.io/proposal-set-methods/#Set.prototype.isDisjointFrom
1338
- var setIsDisjointFrom = function isDisjointFrom(other) {
1339
- var O = aSet$4(this);
1340
- var otherRec = getSetRecord$4(other);
1341
- if (size$2(O) <= otherRec.size) return iterateSet(O, function (e) {
1342
- if (otherRec.includes(e)) return false;
1343
- }, true) !== false;
1344
- var iterator = otherRec.getIterator();
1345
- return iterateSimple$3(iterator, function (e) {
1346
- if (has$2(O, e)) return iteratorClose$1(iterator, 'normal', false);
1347
- }) !== false;
1348
- };
1349
-
1350
- var $$4 = _export;
1351
- var isDisjointFrom = setIsDisjointFrom;
1352
- var setMethodAcceptSetLike$4 = setMethodAcceptSetLike$7;
1353
-
1354
- // `Set.prototype.isDisjointFrom` method
1355
- // https://github.com/tc39/proposal-set-methods
1356
- $$4({ target: 'Set', proto: true, real: true, forced: !setMethodAcceptSetLike$4('isDisjointFrom') }, {
1357
- isDisjointFrom: isDisjointFrom
1358
- });
1359
-
1360
- var aSet$3 = aSet$7;
1361
- var size$1 = setSize;
1362
- var iterate = setIterate;
1363
- var getSetRecord$3 = getSetRecord$7;
1364
-
1365
- // `Set.prototype.isSubsetOf` method
1366
- // https://tc39.github.io/proposal-set-methods/#Set.prototype.isSubsetOf
1367
- var setIsSubsetOf = function isSubsetOf(other) {
1368
- var O = aSet$3(this);
1369
- var otherRec = getSetRecord$3(other);
1370
- if (size$1(O) > otherRec.size) return false;
1371
- return iterate(O, function (e) {
1372
- if (!otherRec.includes(e)) return false;
1373
- }, true) !== false;
1374
- };
1375
-
1376
- var $$3 = _export;
1377
- var isSubsetOf = setIsSubsetOf;
1378
- var setMethodAcceptSetLike$3 = setMethodAcceptSetLike$7;
1379
-
1380
- // `Set.prototype.isSubsetOf` method
1381
- // https://github.com/tc39/proposal-set-methods
1382
- $$3({ target: 'Set', proto: true, real: true, forced: !setMethodAcceptSetLike$3('isSubsetOf') }, {
1383
- isSubsetOf: isSubsetOf
1384
- });
1385
-
1386
- var aSet$2 = aSet$7;
1387
- var has$1 = setHelpers.has;
1388
- var size = setSize;
1389
- var getSetRecord$2 = getSetRecord$7;
1390
- var iterateSimple$2 = iterateSimple$7;
1391
- var iteratorClose = iteratorClose$2;
1392
-
1393
- // `Set.prototype.isSupersetOf` method
1394
- // https://tc39.github.io/proposal-set-methods/#Set.prototype.isSupersetOf
1395
- var setIsSupersetOf = function isSupersetOf(other) {
1396
- var O = aSet$2(this);
1397
- var otherRec = getSetRecord$2(other);
1398
- if (size(O) < otherRec.size) return false;
1399
- var iterator = otherRec.getIterator();
1400
- return iterateSimple$2(iterator, function (e) {
1401
- if (!has$1(O, e)) return iteratorClose(iterator, 'normal', false);
1402
- }) !== false;
1403
- };
1404
-
1405
- var $$2 = _export;
1406
- var isSupersetOf = setIsSupersetOf;
1407
- var setMethodAcceptSetLike$2 = setMethodAcceptSetLike$7;
1408
-
1409
- // `Set.prototype.isSupersetOf` method
1410
- // https://github.com/tc39/proposal-set-methods
1411
- $$2({ target: 'Set', proto: true, real: true, forced: !setMethodAcceptSetLike$2('isSupersetOf') }, {
1412
- isSupersetOf: isSupersetOf
1413
- });
1414
-
1415
- var aSet$1 = aSet$7;
1416
- var SetHelpers = setHelpers;
1417
- var clone$1 = setClone;
1418
- var getSetRecord$1 = getSetRecord$7;
1419
- var iterateSimple$1 = iterateSimple$7;
1420
-
1421
- var add$1 = SetHelpers.add;
1422
- var has = SetHelpers.has;
1423
- var remove = SetHelpers.remove;
1424
-
1425
- // `Set.prototype.symmetricDifference` method
1426
- // https://github.com/tc39/proposal-set-methods
1427
- var setSymmetricDifference = function symmetricDifference(other) {
1428
- var O = aSet$1(this);
1429
- var keysIter = getSetRecord$1(other).getIterator();
1430
- var result = clone$1(O);
1431
- iterateSimple$1(keysIter, function (e) {
1432
- if (has(O, e)) remove(result, e);
1433
- else add$1(result, e);
1434
- });
1435
- return result;
1436
- };
1437
-
1438
- var $$1 = _export;
1439
- var symmetricDifference = setSymmetricDifference;
1440
- var setMethodAcceptSetLike$1 = setMethodAcceptSetLike$7;
1441
-
1442
- // `Set.prototype.symmetricDifference` method
1443
- // https://github.com/tc39/proposal-set-methods
1444
- $$1({ target: 'Set', proto: true, real: true, forced: !setMethodAcceptSetLike$1('symmetricDifference') }, {
1445
- symmetricDifference: symmetricDifference
1446
- });
1447
-
1448
- var aSet = aSet$7;
1449
- var add = setHelpers.add;
1450
- var clone = setClone;
1451
- var getSetRecord = getSetRecord$7;
1452
- var iterateSimple = iterateSimple$7;
1453
-
1454
- // `Set.prototype.union` method
1455
- // https://github.com/tc39/proposal-set-methods
1456
- var setUnion = function union(other) {
1457
- var O = aSet(this);
1458
- var keysIter = getSetRecord(other).getIterator();
1459
- var result = clone(O);
1460
- iterateSimple(keysIter, function (it) {
1461
- add(result, it);
1462
- });
1463
- return result;
1464
- };
1465
-
1466
- var $ = _export;
1467
- var union = setUnion;
1468
- var setMethodAcceptSetLike = setMethodAcceptSetLike$7;
1469
-
1470
- // `Set.prototype.union` method
1471
- // https://github.com/tc39/proposal-set-methods
1472
- $({ target: 'Set', proto: true, real: true, forced: !setMethodAcceptSetLike('union') }, {
1473
- union: union
1474
- });
1475
-
1476
63
  /**
1477
64
  * A code used in some cases to denote success.
1478
65
  */